diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql index 22bee3095e..7f0e4cc6ba 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql @@ -957,7 +957,6 @@ type Workspace { installedApplications: [Application!]! currentBillingSubscription: BillingSubscription billingEntitlements: [BillingEntitlement!]! - hasValidEnterpriseKey: Boolean! hasValidSignedEnterpriseKey: Boolean! hasValidEnterpriseValidityToken: Boolean! workspaceUrls: WorkspaceUrls! diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts index 5d33e5db09..a12c26be5f 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts @@ -674,7 +674,6 @@ export interface Workspace { installedApplications: Application[] currentBillingSubscription?: BillingSubscription billingEntitlements: BillingEntitlement[] - hasValidEnterpriseKey: Scalars['Boolean'] hasValidSignedEnterpriseKey: Scalars['Boolean'] hasValidEnterpriseValidityToken: Scalars['Boolean'] workspaceUrls: WorkspaceUrls @@ -3601,7 +3600,6 @@ export interface WorkspaceGenqlSelection{ installedApplications?: ApplicationGenqlSelection currentBillingSubscription?: BillingSubscriptionGenqlSelection billingEntitlements?: BillingEntitlementGenqlSelection - hasValidEnterpriseKey?: boolean | number hasValidSignedEnterpriseKey?: boolean | number hasValidEnterpriseValidityToken?: boolean | number workspaceUrls?: WorkspaceUrlsGenqlSelection diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts index a0f461a657..08a7d86973 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/types.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts @@ -1896,9 +1896,6 @@ export default { "billingEntitlements": [ 230 ], - "hasValidEnterpriseKey": [ - 6 - ], "hasValidSignedEnterpriseKey": [ 6 ], diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index af2df2ab78..b47da6349f 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -5969,7 +5969,6 @@ export type Workspace = { eventLogRetentionDays: Scalars['Float']; fastModel: Scalars['String']; featureFlags?: Maybe>; - hasValidEnterpriseKey: Scalars['Boolean']; hasValidEnterpriseValidityToken: Scalars['Boolean']; hasValidSignedEnterpriseKey: Scalars['Boolean']; id: Scalars['UUID']; diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts index 1b77e3ad96..05028f8a95 100644 --- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts +++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/useColumnDefinitionsFromObjectMetadata.test.ts @@ -35,7 +35,6 @@ describe('useColumnDefinitionsFromObjectMetadata', () => { allowImpersonation: false, subdomain: 'test', activationStatus: WorkspaceActivationStatus.ACTIVE, - hasValidEnterpriseKey: false, hasValidSignedEnterpriseKey: false, hasValidEnterpriseValidityToken: false, metadataVersion: 1, diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts index 37b79472dc..b8656717a6 100644 --- a/packages/twenty-front/src/testing/mock-data/users.ts +++ b/packages/twenty-front/src/testing/mock-data/users.ts @@ -70,7 +70,6 @@ export const mockCurrentWorkspace = { isPublicInviteLinkEnabled: true, allowImpersonation: true, activationStatus: WorkspaceActivationStatus.ACTIVE, - hasValidEnterpriseKey: false, hasValidSignedEnterpriseKey: false, hasValidEnterpriseValidityToken: false, isGoogleAuthEnabled: true, diff --git a/packages/twenty-server/src/engine/core-modules/workspace/workspace.resolver.ts b/packages/twenty-server/src/engine/core-modules/workspace/workspace.resolver.ts index f663a71c6d..3ed60aa327 100644 --- a/packages/twenty-server/src/engine/core-modules/workspace/workspace.resolver.ts +++ b/packages/twenty-server/src/engine/core-modules/workspace/workspace.resolver.ts @@ -309,11 +309,6 @@ export class WorkspaceResolver { ); } - @ResolveField(() => Boolean) - hasValidEnterpriseKey(): boolean { - return this.enterprisePlanService.hasValidSignedEnterpriseKey(); - } - @ResolveField(() => Boolean) hasValidSignedEnterpriseKey(): boolean { return this.enterprisePlanService.hasValidSignedEnterpriseKey();