The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
Deprecate dummy enterprise key 2/2 (#21328)
Marie137fe45cf682
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphqlindex 22bee3095ee..7f0e4cc6baa 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: BillingSubscriptionbillingEntitlements: [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.tsindex 5d33e5db09d..a12c26be5f3 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?: BillingSubscriptionbillingEntitlements: BillingEntitlement[]- hasValidEnterpriseKey: Scalars['Boolean']hasValidSignedEnterpriseKey: Scalars['Boolean']hasValidEnterpriseValidityToken: Scalars['Boolean']workspaceUrls: WorkspaceUrls@@ -3601,7 +3600,6 @@ export interface WorkspaceGenqlSelection{installedApplications?: ApplicationGenqlSelectioncurrentBillingSubscription?: BillingSubscriptionGenqlSelectionbillingEntitlements?: BillingEntitlementGenqlSelection- hasValidEnterpriseKey?: boolean | numberhasValidSignedEnterpriseKey?: boolean | numberhasValidEnterpriseValidityToken?: boolean | numberworkspaceUrls?: WorkspaceUrlsGenqlSelectiondiff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.tsindex a0f461a6578..08a7d869733 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.tsindex af2df2ab78e..b47da6349f1 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<Array<FeatureFlag>>;- 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.tsindex 1b77e3ad966..05028f8a952 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.tsindex 37b79472dc0..b8656717a6c 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.tsindex f663a71c6d6..3ed60aa3274 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();