diff --git a/packages/frontend-2/lib/common/generated/gql/graphql.ts b/packages/frontend-2/lib/common/generated/gql/graphql.ts index eedd81a15..c5086c940 100644 --- a/packages/frontend-2/lib/common/generated/gql/graphql.ts +++ b/packages/frontend-2/lib/common/generated/gql/graphql.ts @@ -3840,6 +3840,8 @@ export type WebhookUpdateInput = { export type Workspace = { __typename?: 'Workspace'; + /** Billing data for Workspaces beta */ + billing: WorkspaceBilling; createdAt: Scalars['DateTime']['output']; /** Selected fallback when `logo` not set */ defaultLogoIndex: Scalars['Int']['output']; @@ -3880,6 +3882,11 @@ export type WorkspaceTeamArgs = { filter?: InputMaybe; }; +export type WorkspaceBilling = { + __typename?: 'WorkspaceBilling'; + versionsCount?: Maybe; +}; + export type WorkspaceCollaborator = { __typename?: 'WorkspaceCollaborator'; id: Scalars['ID']['output']; @@ -3895,7 +3902,7 @@ export type WorkspaceCollection = { }; export type WorkspaceCreateInput = { - defaultLogoIndex: Scalars['Int']['input']; + defaultLogoIndex?: InputMaybe; description?: InputMaybe; /** Logo image as base64-encoded string */ logo?: InputMaybe; @@ -4083,6 +4090,14 @@ export type WorkspaceUpdateInput = { name?: 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 AuthLoginWithEmailBlock_PendingWorkspaceCollaboratorFragment = { __typename?: 'PendingWorkspaceCollaborator', id: string, email?: string | null, user?: { __typename?: 'LimitedUser', id: string } | null }; export type AuthRegisterPanelQueryVariables = Exact<{ diff --git a/packages/server/modules/workspaces/tests/integration/workspaces.graph.spec.ts b/packages/server/modules/workspaces/tests/integration/workspaces.graph.spec.ts index d018621ab..7d3e64e90 100644 --- a/packages/server/modules/workspaces/tests/integration/workspaces.graph.spec.ts +++ b/packages/server/modules/workspaces/tests/integration/workspaces.graph.spec.ts @@ -242,6 +242,12 @@ describe('Workspaces GQL CRUD', () => { describe('query workspace.projects', () => { it('should return all projects for a user in the workspace', async () => { + const workspace = { + id: '', + name: 'test ws', + ownerId: '' + } + await createTestWorkspace(workspace, testMemberUser) const user = { id: createRandomPassword(), email: createRandomEmail(),