diff --git a/packages/dui3/lib/common/generated/gql/graphql.ts b/packages/dui3/lib/common/generated/gql/graphql.ts index 3cb87ca38..ed4aadb05 100644 --- a/packages/dui3/lib/common/generated/gql/graphql.ts +++ b/packages/dui3/lib/common/generated/gql/graphql.ts @@ -29,7 +29,6 @@ export type ActiveUserMutations = { finishOnboarding: Scalars['Boolean']['output']; /** Edit a user's profile */ update: User; - workspaceMutations?: Maybe; }; @@ -826,6 +825,12 @@ export type CreateVersionInput = { totalChildrenCount?: InputMaybe; }; +export enum Currency { + Eur = 'EUR', + Gbp = 'GBP', + Usd = 'USD' +} + export type DeleteModelInput = { id: Scalars['ID']['input']; projectId: Scalars['ID']['input']; @@ -851,8 +856,10 @@ export type DiscoverableStreamsSortingInput = { export type DiscoverableWorkspace = { __typename?: 'DiscoverableWorkspace'; + defaultLogoIndex: Scalars['Int']['output']; description?: Maybe; id: Scalars['ID']['output']; + logo?: Maybe; name: Scalars['String']['output']; }; @@ -929,6 +936,10 @@ export type GendoAiRenderInput = { versionId: Scalars['ID']['input']; }; +export type JoinWorkspaceInput = { + workspaceId: Scalars['ID']['input']; +}; + export type LegacyCommentViewerData = { __typename?: 'LegacyCommentViewerData'; /** @@ -984,6 +995,7 @@ export type LimitedUser = { */ totalOwnedStreamsFavorites: Scalars['Int']['output']; verified?: Maybe; + workspaceDomainPolicyCompliant?: Maybe; }; @@ -1031,6 +1043,15 @@ export type LimitedUserTimelineArgs = { limit?: Scalars['Int']['input']; }; + +/** + * Limited user type, for showing public info about a user + * to another user + */ +export type LimitedUserWorkspaceDomainPolicyCompliantArgs = { + workspaceId?: InputMaybe; +}; + export type MarkReceivedVersionInput = { message?: InputMaybe; projectId: Scalars['String']['input']; @@ -1839,7 +1860,7 @@ export type ProjectCommentArgs = { export type ProjectCommentThreadsArgs = { cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']['input']; + limit?: InputMaybe; }; @@ -2274,6 +2295,12 @@ export enum ProjectPendingVersionsUpdatedMessageType { Updated = 'UPDATED' } +export type ProjectRole = { + __typename?: 'ProjectRole'; + project: Project; + role: Scalars['String']['output']; +}; + export type ProjectTestAutomationCreateInput = { functionId: Scalars['String']['input']; modelId: Scalars['String']['input']; @@ -2461,6 +2488,8 @@ export type Query = { * The query looks for matches in name & email */ userSearch: UserSearchResultCollection; + /** Validates the slug, to make sure it contains only valid characters and its not taken. */ + validateWorkspaceSlug: Scalars['Boolean']['output']; workspace: Workspace; /** * Look for an invitation to a workspace, for the current user (authed or not). @@ -2596,6 +2625,11 @@ export type QueryUserSearchArgs = { }; +export type QueryValidateWorkspaceSlugArgs = { + slug: Scalars['String']['input']; +}; + + export type QueryWorkspaceArgs = { id: Scalars['String']['input']; }; @@ -3829,18 +3863,28 @@ export type WebhookUpdateInput = { id: Scalars['String']['input']; secret?: InputMaybe; streamId: Scalars['String']['input']; - triggers?: InputMaybe>>; + triggers?: InputMaybe>; url?: InputMaybe; }; export type Workspace = { __typename?: 'Workspace'; + /** Billing data for Workspaces beta */ + billing?: Maybe; createdAt: Scalars['DateTime']['output']; /** Selected fallback when `logo` not set */ defaultLogoIndex: Scalars['Int']['output']; + /** The default role workspace members will receive for workspace projects. */ + defaultProjectRole: Scalars['String']['output']; description?: Maybe; + /** Enable/Disable discovery of the workspace */ + discoverabilityEnabled: Scalars['Boolean']['output']; + /** Enable/Disable restriction to invite users to workspace as Guests only */ + domainBasedMembershipProtectionEnabled: Scalars['Boolean']['output']; + /** Verified workspace domains */ + domains?: Maybe>; id: Scalars['ID']['output']; - /** Only available to workspace owners */ + /** Only available to workspace owners/members */ invitedTeam?: Maybe>; /** Logo image as base64-encoded string */ logo?: Maybe; @@ -3848,7 +3892,8 @@ export type Workspace = { projects: ProjectCollection; /** Active user's role for this workspace. `null` if request is not authenticated, or the workspace is not explicitly shared with you. */ role?: Maybe; - team: Array; + slug: Scalars['String']['output']; + team: WorkspaceCollaboratorCollection; updatedAt: Scalars['DateTime']['output']; }; @@ -3866,16 +3911,33 @@ export type WorkspaceProjectsArgs = { export type WorkspaceTeamArgs = { + cursor?: InputMaybe; filter?: InputMaybe; + limit?: Scalars['Int']['input']; }; +export type WorkspaceBilling = { + __typename?: 'WorkspaceBilling'; + cost: WorkspaceCost; + versionsCount: WorkspaceVersionsCount; +}; + +/** Overridden by `WorkspaceCollaboratorGraphQLReturn` */ export type WorkspaceCollaborator = { __typename?: 'WorkspaceCollaborator'; id: Scalars['ID']['output']; + projectRoles: Array; role: Scalars['String']['output']; user: LimitedUser; }; +export type WorkspaceCollaboratorCollection = { + __typename?: 'WorkspaceCollaboratorCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; +}; + export type WorkspaceCollection = { __typename?: 'WorkspaceCollection'; cursor?: Maybe; @@ -3883,10 +3945,51 @@ export type WorkspaceCollection = { totalCount: Scalars['Int']['output']; }; +export type WorkspaceCost = { + __typename?: 'WorkspaceCost'; + /** Currency of the price */ + currency: Currency; + /** Discount applied to the total */ + discount?: Maybe; + items: Array; + /** Estimated cost of the workspace with no discount applied */ + subTotal: Scalars['Float']['output']; + /** Total cost with discount applied */ + total: Scalars['Float']['output']; +}; + +export type WorkspaceCostDiscount = { + __typename?: 'WorkspaceCostDiscount'; + amount: Scalars['Float']['output']; + name: Scalars['String']['output']; +}; + +export type WorkspaceCostItem = { + __typename?: 'WorkspaceCostItem'; + cost: Scalars['Float']['output']; + count: Scalars['Int']['output']; + label: Scalars['String']['output']; + name: Scalars['String']['output']; +}; + export type WorkspaceCreateInput = { defaultLogoIndex?: InputMaybe; description?: InputMaybe; + /** Logo image as base64-encoded string */ + logo?: InputMaybe; name: Scalars['String']['input']; + slug?: InputMaybe; +}; + +export type WorkspaceDomain = { + __typename?: 'WorkspaceDomain'; + domain: Scalars['String']['output']; + id: Scalars['ID']['output']; +}; + +export type WorkspaceDomainDeleteInput = { + id: Scalars['ID']['input']; + workspaceId: Scalars['ID']['input']; }; export type WorkspaceInviteCreateInput = { @@ -3954,15 +4057,24 @@ export type WorkspaceInviteUseInput = { export type WorkspaceMutations = { __typename?: 'WorkspaceMutations'; + addDomain: Workspace; create: Workspace; delete: Scalars['Boolean']['output']; + deleteDomain: Workspace; invites: WorkspaceInviteMutations; + join: Workspace; leave: Scalars['Boolean']['output']; + projects: WorkspaceProjectMutations; update: Workspace; updateRole: Workspace; }; +export type WorkspaceMutationsAddDomainArgs = { + input: AddDomainToWorkspaceInput; +}; + + export type WorkspaceMutationsCreateArgs = { input: WorkspaceCreateInput; }; @@ -3973,6 +4085,16 @@ export type WorkspaceMutationsDeleteArgs = { }; +export type WorkspaceMutationsDeleteDomainArgs = { + input: WorkspaceDomainDeleteInput; +}; + + +export type WorkspaceMutationsJoinArgs = { + input: JoinWorkspaceInput; +}; + + export type WorkspaceMutationsLeaveArgs = { id: Scalars['ID']['input']; }; @@ -4000,6 +4122,23 @@ export type WorkspaceProjectInviteCreateInput = { workspaceRole?: InputMaybe; }; +export type WorkspaceProjectMutations = { + __typename?: 'WorkspaceProjectMutations'; + moveToWorkspace: Project; + updateRole: Project; +}; + + +export type WorkspaceProjectMutationsMoveToWorkspaceArgs = { + projectId: Scalars['String']['input']; + workspaceId: Scalars['String']['input']; +}; + + +export type WorkspaceProjectMutationsUpdateRoleArgs = { + input: ProjectUpdateRoleInput; +}; + export type WorkspaceProjectsFilter = { /** Filter out projects by name */ search?: InputMaybe; @@ -4032,11 +4171,23 @@ export type WorkspaceTeamFilter = { export type WorkspaceUpdateInput = { defaultLogoIndex?: InputMaybe; + defaultProjectRole?: InputMaybe; description?: InputMaybe; + discoverabilityEnabled?: InputMaybe; + domainBasedMembershipProtectionEnabled?: InputMaybe; id: Scalars['String']['input']; /** Logo image as base64-encoded string */ logo?: InputMaybe; name?: InputMaybe; + slug?: InputMaybe; +}; + +export type WorkspaceVersionsCount = { + __typename?: 'WorkspaceVersionsCount'; + /** Total number of versions of all projects in the workspace */ + current: Scalars['Int']['output']; + /** Maximum number of version of all projects in the workspace with no additional cost */ + max: Scalars['Int']['output']; }; export type AcccountTestQueryQueryVariables = Exact<{ [key: string]: never; }>; @@ -4045,4 +4196,4 @@ export type AcccountTestQueryQueryVariables = Exact<{ [key: string]: never; }>; export type AcccountTestQueryQuery = { __typename?: 'Query', serverInfo: { __typename?: 'ServerInfo', version?: string | null, name: string, company?: string | null } }; -export const AcccountTestQueryDocument = { "kind": "Document", "definitions": [{ "kind": "OperationDefinition", "operation": "query", "name": { "kind": "Name", "value": "AcccountTestQuery" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "serverInfo" }, "selectionSet": { "kind": "SelectionSet", "selections": [{ "kind": "Field", "name": { "kind": "Name", "value": "version" } }, { "kind": "Field", "name": { "kind": "Name", "value": "name" } }, { "kind": "Field", "name": { "kind": "Name", "value": "company" } }] } }] } }] } as unknown as DocumentNode; \ No newline at end of file +export const AcccountTestQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"AcccountTestQuery"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"serverInfo"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"version"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"company"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/packages/frontend/src/graphql/generated/graphql.ts b/packages/frontend/src/graphql/generated/graphql.ts index 1a3f1a994..5465faf00 100644 --- a/packages/frontend/src/graphql/generated/graphql.ts +++ b/packages/frontend/src/graphql/generated/graphql.ts @@ -56,6 +56,11 @@ export type ActivityCollection = { totalCount: Scalars['Int']['output']; }; +export type AddDomainToWorkspaceInput = { + domain: Scalars['String']['input']; + workspaceId: Scalars['ID']['input']; +}; + export type AdminInviteList = { __typename?: 'AdminInviteList'; cursor?: Maybe; @@ -835,6 +840,12 @@ export type CreateVersionInput = { totalChildrenCount?: InputMaybe; }; +export enum Currency { + Eur = 'EUR', + Gbp = 'GBP', + Usd = 'USD' +} + export type DeleteModelInput = { id: Scalars['ID']['input']; projectId: Scalars['ID']['input']; @@ -858,6 +869,15 @@ export type DiscoverableStreamsSortingInput = { type: DiscoverableStreamsSortType; }; +export type DiscoverableWorkspace = { + __typename?: 'DiscoverableWorkspace'; + defaultLogoIndex: Scalars['Int']['output']; + description?: Maybe; + id: Scalars['ID']['output']; + logo?: Maybe; + name: Scalars['String']['output']; +}; + export type EditCommentInput = { commentId: Scalars['String']['input']; content: CommentContentInput; @@ -931,6 +951,10 @@ export type GendoAiRenderInput = { versionId: Scalars['ID']['input']; }; +export type JoinWorkspaceInput = { + workspaceId: Scalars['ID']['input']; +}; + export type LegacyCommentViewerData = { __typename?: 'LegacyCommentViewerData'; /** @@ -986,6 +1010,7 @@ export type LimitedUser = { */ totalOwnedStreamsFavorites: Scalars['Int']['output']; verified?: Maybe; + workspaceDomainPolicyCompliant?: Maybe; }; @@ -1033,6 +1058,15 @@ export type LimitedUserTimelineArgs = { limit?: Scalars['Int']['input']; }; + +/** + * Limited user type, for showing public info about a user + * to another user + */ +export type LimitedUserWorkspaceDomainPolicyCompliantArgs = { + workspaceId?: InputMaybe; +}; + export type MarkReceivedVersionInput = { message?: InputMaybe; projectId: Scalars['String']['input']; @@ -1841,7 +1875,7 @@ export type ProjectCommentArgs = { export type ProjectCommentThreadsArgs = { cursor?: InputMaybe; filter?: InputMaybe; - limit?: Scalars['Int']['input']; + limit?: InputMaybe; }; @@ -2276,6 +2310,12 @@ export enum ProjectPendingVersionsUpdatedMessageType { Updated = 'UPDATED' } +export type ProjectRole = { + __typename?: 'ProjectRole'; + project: Project; + role: Scalars['String']['output']; +}; + export type ProjectTestAutomationCreateInput = { functionId: Scalars['String']['input']; modelId: Scalars['String']['input']; @@ -2465,6 +2505,8 @@ export type Query = { * The query looks for matches in name & email */ userSearch: UserSearchResultCollection; + /** Validates the slug, to make sure it contains only valid characters and its not taken. */ + validateWorkspaceSlug: Scalars['Boolean']['output']; workspace: Workspace; /** * Look for an invitation to a workspace, for the current user (authed or not). @@ -2600,6 +2642,11 @@ export type QueryUserSearchArgs = { }; +export type QueryValidateWorkspaceSlugArgs = { + slug: Scalars['String']['input']; +}; + + export type QueryWorkspaceArgs = { id: Scalars['String']['input']; }; @@ -3388,6 +3435,8 @@ export type User = { /** Returns the apps you have created. */ createdApps?: Maybe>; createdAt?: Maybe; + /** Get discoverable workspaces with verified domains that match the active user's */ + discoverableWorkspaces: Array; /** Only returned if API user is the user being requested or an admin */ email?: Maybe; emails: Array; @@ -3837,18 +3886,28 @@ export type WebhookUpdateInput = { id: Scalars['String']['input']; secret?: InputMaybe; streamId: Scalars['String']['input']; - triggers?: InputMaybe>>; + triggers?: InputMaybe>; url?: InputMaybe; }; export type Workspace = { __typename?: 'Workspace'; + /** Billing data for Workspaces beta */ + billing?: Maybe; createdAt: Scalars['DateTime']['output']; /** Selected fallback when `logo` not set */ defaultLogoIndex: Scalars['Int']['output']; + /** The default role workspace members will receive for workspace projects. */ + defaultProjectRole: Scalars['String']['output']; description?: Maybe; + /** Enable/Disable discovery of the workspace */ + discoverabilityEnabled: Scalars['Boolean']['output']; + /** Enable/Disable restriction to invite users to workspace as Guests only */ + domainBasedMembershipProtectionEnabled: Scalars['Boolean']['output']; + /** Verified workspace domains */ + domains?: Maybe>; id: Scalars['ID']['output']; - /** Only available to workspace owners */ + /** Only available to workspace owners/members */ invitedTeam?: Maybe>; /** Logo image as base64-encoded string */ logo?: Maybe; @@ -3856,7 +3915,8 @@ export type Workspace = { projects: ProjectCollection; /** Active user's role for this workspace. `null` if request is not authenticated, or the workspace is not explicitly shared with you. */ role?: Maybe; - team: Array; + slug: Scalars['String']['output']; + team: WorkspaceCollaboratorCollection; updatedAt: Scalars['DateTime']['output']; }; @@ -3874,16 +3934,33 @@ export type WorkspaceProjectsArgs = { export type WorkspaceTeamArgs = { + cursor?: InputMaybe; filter?: InputMaybe; + limit?: Scalars['Int']['input']; }; +export type WorkspaceBilling = { + __typename?: 'WorkspaceBilling'; + cost: WorkspaceCost; + versionsCount: WorkspaceVersionsCount; +}; + +/** Overridden by `WorkspaceCollaboratorGraphQLReturn` */ export type WorkspaceCollaborator = { __typename?: 'WorkspaceCollaborator'; id: Scalars['ID']['output']; + projectRoles: Array; role: Scalars['String']['output']; user: LimitedUser; }; +export type WorkspaceCollaboratorCollection = { + __typename?: 'WorkspaceCollaboratorCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']['output']; +}; + export type WorkspaceCollection = { __typename?: 'WorkspaceCollection'; cursor?: Maybe; @@ -3891,10 +3968,51 @@ export type WorkspaceCollection = { totalCount: Scalars['Int']['output']; }; +export type WorkspaceCost = { + __typename?: 'WorkspaceCost'; + /** Currency of the price */ + currency: Currency; + /** Discount applied to the total */ + discount?: Maybe; + items: Array; + /** Estimated cost of the workspace with no discount applied */ + subTotal: Scalars['Float']['output']; + /** Total cost with discount applied */ + total: Scalars['Float']['output']; +}; + +export type WorkspaceCostDiscount = { + __typename?: 'WorkspaceCostDiscount'; + amount: Scalars['Float']['output']; + name: Scalars['String']['output']; +}; + +export type WorkspaceCostItem = { + __typename?: 'WorkspaceCostItem'; + cost: Scalars['Float']['output']; + count: Scalars['Int']['output']; + label: Scalars['String']['output']; + name: Scalars['String']['output']; +}; + export type WorkspaceCreateInput = { defaultLogoIndex?: InputMaybe; description?: InputMaybe; + /** Logo image as base64-encoded string */ + logo?: InputMaybe; name: Scalars['String']['input']; + slug?: InputMaybe; +}; + +export type WorkspaceDomain = { + __typename?: 'WorkspaceDomain'; + domain: Scalars['String']['output']; + id: Scalars['ID']['output']; +}; + +export type WorkspaceDomainDeleteInput = { + id: Scalars['ID']['input']; + workspaceId: Scalars['ID']['input']; }; export type WorkspaceInviteCreateInput = { @@ -3962,15 +4080,24 @@ export type WorkspaceInviteUseInput = { export type WorkspaceMutations = { __typename?: 'WorkspaceMutations'; + addDomain: Workspace; create: Workspace; delete: Scalars['Boolean']['output']; + deleteDomain: Workspace; invites: WorkspaceInviteMutations; + join: Workspace; leave: Scalars['Boolean']['output']; + projects: WorkspaceProjectMutations; update: Workspace; updateRole: Workspace; }; +export type WorkspaceMutationsAddDomainArgs = { + input: AddDomainToWorkspaceInput; +}; + + export type WorkspaceMutationsCreateArgs = { input: WorkspaceCreateInput; }; @@ -3981,6 +4108,16 @@ export type WorkspaceMutationsDeleteArgs = { }; +export type WorkspaceMutationsDeleteDomainArgs = { + input: WorkspaceDomainDeleteInput; +}; + + +export type WorkspaceMutationsJoinArgs = { + input: JoinWorkspaceInput; +}; + + export type WorkspaceMutationsLeaveArgs = { id: Scalars['ID']['input']; }; @@ -4008,6 +4145,23 @@ export type WorkspaceProjectInviteCreateInput = { workspaceRole?: InputMaybe; }; +export type WorkspaceProjectMutations = { + __typename?: 'WorkspaceProjectMutations'; + moveToWorkspace: Project; + updateRole: Project; +}; + + +export type WorkspaceProjectMutationsMoveToWorkspaceArgs = { + projectId: Scalars['String']['input']; + workspaceId: Scalars['String']['input']; +}; + + +export type WorkspaceProjectMutationsUpdateRoleArgs = { + input: ProjectUpdateRoleInput; +}; + export type WorkspaceProjectsFilter = { /** Filter out projects by name */ search?: InputMaybe; @@ -4040,11 +4194,23 @@ export type WorkspaceTeamFilter = { export type WorkspaceUpdateInput = { defaultLogoIndex?: InputMaybe; + defaultProjectRole?: InputMaybe; description?: InputMaybe; + discoverabilityEnabled?: InputMaybe; + domainBasedMembershipProtectionEnabled?: InputMaybe; id: Scalars['String']['input']; /** Logo image as base64-encoded string */ logo?: InputMaybe; name?: InputMaybe; + slug?: InputMaybe; +}; + +export type WorkspaceVersionsCount = { + __typename?: 'WorkspaceVersionsCount'; + /** Total number of versions of all projects in the workspace */ + current: Scalars['Int']['output']; + /** Maximum number of version of all projects in the workspace with no additional cost */ + max: Scalars['Int']['output']; }; export type GetStreamAccessRequestQueryVariables = Exact<{