diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/feed/threadCount.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/feed/threadCount.ts new file mode 100644 index 00000000000..c52e0c4f993 --- /dev/null +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/feed/threadCount.ts @@ -0,0 +1,35 @@ +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* + * Copyright 2021 Collate + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * http://www.apache.org/licenses/LICENSE-2.0 + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * This schema defines the type for reporting the count of threads related to an entity. + */ +export interface ThreadCount { + counts: EntityLinkThreadCount[]; + /** + * Total count of all the threads. + */ + totalCount: number; +} + +/** + * Type used to return thread count per entity link. + */ +export interface EntityLinkThreadCount { + /** + * Count of threads for the given entity link. + */ + count: number; + entityLink: string; +} diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts index 571f6c8d61b..491710e0cdd 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/policies/createPolicy.ts @@ -515,4 +515,5 @@ export enum Operation { UpdateLineage = 'UpdateLineage', UpdateOwner = 'UpdateOwner', UpdateTags = 'UpdateTags', + UpdateTeam = 'UpdateTeam', } diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/api/teams/createTeam.ts b/openmetadata-ui/src/main/resources/ui/src/generated/api/teams/createTeam.ts index d4ab276a8f3..c34736588da 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/api/teams/createTeam.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/api/teams/createTeam.ts @@ -17,26 +17,30 @@ */ export interface CreateTeam { /** - * Optional description of the team + * Roles to be assigned to all users that are part of this team. + */ + defaultRoles?: string[]; + /** + * Optional description of the team. */ description?: string; /** - * Optional name used for display purposes. Example 'Marketing Team' + * Optional name used for display purposes. Example 'Marketing Team'. */ displayName?: string; name: string; /** - * Optional team profile information + * Optional team profile information. */ profile?: Profile; /** - * Optional IDs of users that are part of the team + * Optional IDs of users that are part of the team. */ users?: string[]; } /** - * Optional team profile information + * Optional team profile information. * * This schema defines the type for a profile of a user, team, or organization. */ diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/feed/thread.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/feed/thread.ts index 35225ec82a5..171f1697ebf 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/feed/thread.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/feed/thread.ts @@ -34,6 +34,10 @@ export interface Thread { * User who created the thread. */ createdBy?: string; + /** + * Entity Id of the entity that the thread belongs to. + */ + entityId?: string; /** * Link to the resource corresponding to this entity. */ @@ -42,7 +46,15 @@ export interface Thread { * Unique identifier that identifies an entity instance. */ id: string; + /** + * The main message of the thread in markdown format + */ + message?: string; posts: Post[]; + /** + * The total count of posts in the thread + */ + postsCount?: number; /** * When `true` indicates the thread has been resolved */ diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/accessControl/rule.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/accessControl/rule.ts index 920882adc98..740a0bad518 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/accessControl/rule.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/accessControl/rule.ts @@ -64,4 +64,5 @@ export enum Operation { UpdateLineage = 'UpdateLineage', UpdateOwner = 'UpdateOwner', UpdateTags = 'UpdateTags', + UpdateTeam = 'UpdateTeam', } diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts index 8a8bb57660b..cd182d184a3 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/policies/policy.ts @@ -624,4 +624,5 @@ export enum Operation { UpdateLineage = 'UpdateLineage', UpdateOwner = 'UpdateOwner', UpdateTags = 'UpdateTags', + UpdateTeam = 'UpdateTeam', } diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/role.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/role.ts index 5df73ab5af3..6aaa3d5c9f6 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/role.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/role.ts @@ -20,6 +20,10 @@ export interface Role { * Change that lead to this version of the entity. */ changeDescription?: ChangeDescription; + /** + * If `true`, this role is set as default and will be assigned to all users. + */ + default?: boolean; /** * When `true` indicates the entity has been soft deleted. */ @@ -42,6 +46,10 @@ export interface Role { * Policy that is attached to this role. */ policy?: EntityReference; + /** + * Teams that have this role assigned. + */ + teams?: EntityReference[]; /** * Last update time corresponding to the new version of the entity in Unix epoch time * milliseconds. @@ -110,7 +118,7 @@ export interface FieldChange { * example, a table has an attribute called database of type EntityReference that captures * the relationship of a table `belongs to a` database. * - * Users that have this role assigned. + * Teams that have this role assigned. */ export interface EntityReference { /** diff --git a/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/team.ts b/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/team.ts index abc4cb16e5f..d6350ac8f1c 100644 --- a/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/team.ts +++ b/openmetadata-ui/src/main/resources/ui/src/generated/entity/teams/team.ts @@ -21,6 +21,10 @@ export interface Team { * Change that lead to this version of the entity. */ changeDescription?: ChangeDescription; + /** + * Roles to be assigned to all users that are part of this team. + */ + defaultRoles?: EntityReference[]; /** * When `true` indicates the entity has been soft deleted. */ @@ -108,7 +112,7 @@ export interface FieldChange { } /** - * List of entities owned by the team. + * Roles to be assigned to all users that are part of this team. * * This schema defines the EntityReference type used for referencing an entity. * EntityReference is used for capturing relationships from one entity to another. For