Skip to content

The open alternative to Salesforce, designed for AI.

Reduce leak between gql schema (#17878)

Charles Bochetb456f791670f
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 98122895864..4639498df1d 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -271,14 +271,6 @@ export type AppToken = {
updatedAt: Scalars['DateTime'];
};
-export type AppTokenEdge = {
- __typename?: 'AppTokenEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the AppToken */
- node: AppToken;
-};
-
export type Application = {
__typename?: 'Application';
agents: Array<Agent>;
@@ -649,11 +641,6 @@ export type BooleanFieldComparison = {
isNot?: InputMaybe<Scalars['Boolean']>;
};
-export enum CalendarChannelVisibility {
- METADATA = 'METADATA',
- SHARE_EVERYTHING = 'SHARE_EVERYTHING'
-}
-
export type CalendarConfiguration = {
__typename?: 'CalendarConfiguration';
configurationType: WidgetConfigurationType;
@@ -693,6 +680,38 @@ export type ClientAiModelConfig = {
provider: ModelProvider;
};
+export type ClientConfig = {
+ __typename?: 'ClientConfig';
+ aiModels: Array<ClientAiModelConfig>;
+ allowRequestsToTwentyIcons: Scalars['Boolean'];
+ analyticsEnabled: Scalars['Boolean'];
+ api: ApiConfig;
+ appVersion?: Maybe<Scalars['String']>;
+ authProviders: AuthProviders;
+ billing: Billing;
+ calendarBookingPageId?: Maybe<Scalars['String']>;
+ canManageFeatureFlags: Scalars['Boolean'];
+ captcha: Captcha;
+ chromeExtensionId?: Maybe<Scalars['String']>;
+ defaultSubdomain?: Maybe<Scalars['String']>;
+ frontDomain: Scalars['String'];
+ isAttachmentPreviewEnabled: Scalars['Boolean'];
+ isClickHouseConfigured: Scalars['Boolean'];
+ isCloudflareIntegrationEnabled: Scalars['Boolean'];
+ isConfigVariablesInDbEnabled: Scalars['Boolean'];
+ isEmailVerificationRequired: Scalars['Boolean'];
+ isGoogleCalendarEnabled: Scalars['Boolean'];
+ isGoogleMessagingEnabled: Scalars['Boolean'];
+ isImapSmtpCaldavEnabled: Scalars['Boolean'];
+ isMicrosoftCalendarEnabled: Scalars['Boolean'];
+ isMicrosoftMessagingEnabled: Scalars['Boolean'];
+ isMultiWorkspaceEnabled: Scalars['Boolean'];
+ publicFeatureFlags: Array<PublicFeatureFlag>;
+ sentry: Sentry;
+ signInPrefilled: Scalars['Boolean'];
+ support: Support;
+};
+
export type CommandMenuItem = {
__typename?: 'CommandMenuItem';
applicationId?: Maybe<Scalars['UUID']>;
@@ -1927,19 +1946,6 @@ export type LineChartSeries = {
label: Scalars['String'];
};
-export type LinkMetadata = {
- __typename?: 'LinkMetadata';
- label: Scalars['String'];
- url: Scalars['String'];
-};
-
-export type LinksMetadata = {
- __typename?: 'LinksMetadata';
- primaryLinkLabel: Scalars['String'];
- primaryLinkUrl: Scalars['String'];
- secondaryLinks?: Maybe<Array<LinkMetadata>>;
-};
-
export type Location = {
__typename?: 'Location';
lat?: Maybe<Scalars['Float']>;
@@ -2029,12 +2035,6 @@ export type MarketplaceApp = {
websiteUrl?: Maybe<Scalars['String']>;
};
-export enum MessageChannelVisibility {
- METADATA = 'METADATA',
- SHARE_EVERYTHING = 'SHARE_EVERYTHING',
- SUBJECT = 'SUBJECT'
-}
-
export enum ModelProvider {
ANTHROPIC = 'ANTHROPIC',
GROQ = 'GROQ',
@@ -4141,29 +4141,6 @@ export enum SsoIdentityProviderStatus {
Inactive = 'Inactive'
}
-export type SearchRecord = {
- __typename?: 'SearchRecord';
- imageUrl?: Maybe<Scalars['String']>;
- label: Scalars['String'];
- objectLabelSingular: Scalars['String'];
- objectNameSingular: Scalars['String'];
- recordId: Scalars['UUID'];
- tsRank: Scalars['Float'];
- tsRankCD: Scalars['Float'];
-};
-
-export type SearchResultEdge = {
- __typename?: 'SearchResultEdge';
- cursor: Scalars['String'];
- node: SearchRecord;
-};
-
-export type SearchResultPageInfo = {
- __typename?: 'SearchResultPageInfo';
- endCursor?: Maybe<Scalars['String']>;
- hasNextPage: Scalars['Boolean'];
-};
-
export type SendInvitationsOutput = {
__typename?: 'SendInvitationsOutput';
errors: Array<Scalars['String']>;
@@ -4311,63 +4288,11 @@ export type TasksConfiguration = {
configurationType: WidgetConfigurationType;
};
-export type TimelineCalendarEvent = {
- __typename?: 'TimelineCalendarEvent';
- conferenceLink: LinksMetadata;
- conferenceSolution: Scalars['String'];
- description: Scalars['String'];
- endsAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- isCanceled: Scalars['Boolean'];
- isFullDay: Scalars['Boolean'];
- location: Scalars['String'];
- participants: Array<TimelineCalendarEventParticipant>;
- startsAt: Scalars['DateTime'];
- title: Scalars['String'];
- visibility: CalendarChannelVisibility;
-};
-
-export type TimelineCalendarEventParticipant = {
- __typename?: 'TimelineCalendarEventParticipant';
- avatarUrl: Scalars['String'];
- displayName: Scalars['String'];
- firstName: Scalars['String'];
- handle: Scalars['String'];
- lastName: Scalars['String'];
- personId?: Maybe<Scalars['UUID']>;
- workspaceMemberId?: Maybe<Scalars['UUID']>;
-};
-
export type TimelineConfiguration = {
__typename?: 'TimelineConfiguration';
configurationType: WidgetConfigurationType;
};
-export type TimelineThread = {
- __typename?: 'TimelineThread';
- firstParticipant: TimelineThreadParticipant;
- id: Scalars['UUID'];
- lastMessageBody: Scalars['String'];
- lastMessageReceivedAt: Scalars['DateTime'];
- lastTwoParticipants: Array<TimelineThreadParticipant>;
- numberOfMessagesInThread: Scalars['Float'];
- participantCount: Scalars['Float'];
- read: Scalars['Boolean'];
- subject: Scalars['String'];
- visibility: MessageChannelVisibility;
-};
-
-export type TimelineThreadParticipant = {
- __typename?: 'TimelineThreadParticipant';
- avatarUrl: Scalars['String'];
- displayName: Scalars['String'];
- firstName: Scalars['String'];
- handle: Scalars['String'];
- lastName: Scalars['String'];
- personId?: Maybe<Scalars['UUID']>;
- workspaceMemberId?: Maybe<Scalars['UUID']>;
-};
-
export type ToolIndexEntry = {
__typename?: 'ToolIndexEntry';
category: Scalars['String'];
@@ -4782,14 +4707,6 @@ export type User = {
workspaces: Array<UserWorkspace>;
};
-export type UserEdge = {
- __typename?: 'UserEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the User */
- node: User;
-};
-
export type UserInfo = {
__typename?: 'UserInfo';
email: Scalars['String'];
@@ -4998,12 +4915,6 @@ export type WorkflowRunConfiguration = {
configurationType: WidgetConfigurationType;
};
-export type WorkflowStepPosition = {
- __typename?: 'WorkflowStepPosition';
- x: Scalars['Float'];
- y: Scalars['Float'];
-};
-
export type WorkflowVersionConfiguration = {
__typename?: 'WorkflowVersionConfiguration';
configurationType: WidgetConfigurationType;
@@ -5068,14 +4979,6 @@ export enum WorkspaceActivationStatus {
SUSPENDED = 'SUSPENDED'
}
-export type WorkspaceEdge = {
- __typename?: 'WorkspaceEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the Workspace */
- node: Workspace;
-};
-
export type WorkspaceInfo = {
__typename?: 'WorkspaceInfo';
allowImpersonation: Scalars['Boolean'];
diff --git a/packages/twenty-front/src/generated/graphql.ts b/packages/twenty-front/src/generated/graphql.ts
index 8003f733f50..ef0594f26cb 100644
--- a/packages/twenty-front/src/generated/graphql.ts
+++ b/packages/twenty-front/src/generated/graphql.ts
@@ -13,1536 +13,95 @@ export type Scalars = {
Boolean: boolean;
Int: number;
Float: number;
- ConnectionCursor: any;
DateTime: string;
JSON: any;
- JSONObject: any;
UUID: any;
};
-export type AiSystemPromptPreview = {
- __typename?: 'AISystemPromptPreview';
- estimatedTokenCount: Scalars['Int'];
- sections: Array<AiSystemPromptSection>;
-};
-
-export type AiSystemPromptSection = {
- __typename?: 'AISystemPromptSection';
- content: Scalars['String'];
- estimatedTokenCount: Scalars['Int'];
- title: Scalars['String'];
-};
-
-export type AdminPanelHealthServiceData = {
- __typename?: 'AdminPanelHealthServiceData';
- description: Scalars['String'];
- details?: Maybe<Scalars['String']>;
- errorMessage?: Maybe<Scalars['String']>;
- id: HealthIndicatorId;
- label: Scalars['String'];
- queues?: Maybe<Array<AdminPanelWorkerQueueHealth>>;
- status: AdminPanelHealthServiceStatus;
-};
-
-export enum AdminPanelHealthServiceStatus {
- OPERATIONAL = 'OPERATIONAL',
- OUTAGE = 'OUTAGE'
-}
-
-export type AdminPanelWorkerQueueHealth = {
- __typename?: 'AdminPanelWorkerQueueHealth';
- id: Scalars['String'];
- queueName: Scalars['String'];
- status: AdminPanelHealthServiceStatus;
-};
-
-export type Agent = {
- __typename?: 'Agent';
- applicationId?: Maybe<Scalars['UUID']>;
- createdAt: Scalars['DateTime'];
- description?: Maybe<Scalars['String']>;
- evaluationInputs: Array<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isCustom: Scalars['Boolean'];
- label: Scalars['String'];
- modelConfiguration?: Maybe<Scalars['JSON']>;
- modelId: Scalars['String'];
- name: Scalars['String'];
- prompt: Scalars['String'];
- responseFormat?: Maybe<Scalars['JSON']>;
- roleId?: Maybe<Scalars['UUID']>;
- updatedAt: Scalars['DateTime'];
-};
-
-export type AgentChatThread = {
- __typename?: 'AgentChatThread';
- contextWindowTokens?: Maybe<Scalars['Int']>;
- conversationSize: Scalars['Int'];
- createdAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- title?: Maybe<Scalars['String']>;
- totalInputCredits: Scalars['Float'];
- totalInputTokens: Scalars['Int'];
- totalOutputCredits: Scalars['Float'];
- totalOutputTokens: Scalars['Int'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type AgentMessage = {
- __typename?: 'AgentMessage';
- agentId?: Maybe<Scalars['UUID']>;
- createdAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- parts: Array<AgentMessagePart>;
- role: Scalars['String'];
- threadId: Scalars['UUID'];
- turnId: Scalars['UUID'];
-};
-
-export type AgentMessagePart = {
- __typename?: 'AgentMessagePart';
- createdAt: Scalars['DateTime'];
- errorDetails?: Maybe<Scalars['JSON']>;
- errorMessage?: Maybe<Scalars['String']>;
- fileFilename?: Maybe<Scalars['String']>;
- fileMediaType?: Maybe<Scalars['String']>;
- fileUrl?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- messageId: Scalars['UUID'];
- orderIndex: Scalars['Int'];
- providerMetadata?: Maybe<Scalars['JSON']>;
- reasoningContent?: Maybe<Scalars['String']>;
- sourceDocumentFilename?: Maybe<Scalars['String']>;
- sourceDocumentMediaType?: Maybe<Scalars['String']>;
- sourceDocumentSourceId?: Maybe<Scalars['String']>;
- sourceDocumentTitle?: Maybe<Scalars['String']>;
- sourceUrlSourceId?: Maybe<Scalars['String']>;
- sourceUrlTitle?: Maybe<Scalars['String']>;
- sourceUrlUrl?: Maybe<Scalars['String']>;
- state?: Maybe<Scalars['String']>;
- textContent?: Maybe<Scalars['String']>;
- toolCallId?: Maybe<Scalars['String']>;
- toolInput?: Maybe<Scalars['JSON']>;
- toolName?: Maybe<Scalars['String']>;
- toolOutput?: Maybe<Scalars['JSON']>;
- type: Scalars['String'];
-};
-
-export type AgentTurn = {
- __typename?: 'AgentTurn';
- agentId?: Maybe<Scalars['UUID']>;
- createdAt: Scalars['DateTime'];
- evaluations: Array<AgentTurnEvaluation>;
- id: Scalars['UUID'];
- messages: Array<AgentMessage>;
- threadId: Scalars['UUID'];
-};
-
-export type AgentTurnEvaluation = {
- __typename?: 'AgentTurnEvaluation';
- comment?: Maybe<Scalars['String']>;
- createdAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- score: Scalars['Int'];
- turnId: Scalars['UUID'];
-};
-
-export type AggregateChartConfiguration = {
- __typename?: 'AggregateChartConfiguration';
- aggregateFieldMetadataId: Scalars['UUID'];
- aggregateOperation: AggregateOperations;
- configurationType: WidgetConfigurationType;
- description?: Maybe<Scalars['String']>;
- displayDataLabel?: Maybe<Scalars['Boolean']>;
- filter?: Maybe<Scalars['JSON']>;
- firstDayOfTheWeek?: Maybe<Scalars['Int']>;
- format?: Maybe<Scalars['String']>;
- label?: Maybe<Scalars['String']>;
- prefix?: Maybe<Scalars['String']>;
- ratioAggregateConfig?: Maybe<RatioAggregateConfig>;
- suffix?: Maybe<Scalars['String']>;
- timezone?: Maybe<Scalars['String']>;
-};
-
-export enum AggregateOperations {
- AVG = 'AVG',
- COUNT = 'COUNT',
- COUNT_EMPTY = 'COUNT_EMPTY',
- COUNT_FALSE = 'COUNT_FALSE',
- COUNT_NOT_EMPTY = 'COUNT_NOT_EMPTY',
- COUNT_TRUE = 'COUNT_TRUE',
- COUNT_UNIQUE_VALUES = 'COUNT_UNIQUE_VALUES',
- MAX = 'MAX',
- MIN = 'MIN',
- PERCENTAGE_EMPTY = 'PERCENTAGE_EMPTY',
- PERCENTAGE_NOT_EMPTY = 'PERCENTAGE_NOT_EMPTY',
- SUM = 'SUM'
-}
-
-export type Analytics = {
- __typename?: 'Analytics';
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type ApiConfig = {
- __typename?: 'ApiConfig';
- mutationMaximumAffectedRecords: Scalars['Float'];
-};
-
-export type ApiKey = {
- __typename?: 'ApiKey';
- createdAt: Scalars['DateTime'];
- expiresAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- name: Scalars['String'];
- revokedAt?: Maybe<Scalars['DateTime']>;
- role: Role;
- updatedAt: Scalars['DateTime'];
-};
-
-export type ApiKeyForRole = {
- __typename?: 'ApiKeyForRole';
- expiresAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- name: Scalars['String'];
- revokedAt?: Maybe<Scalars['DateTime']>;
-};
-
-export type ApiKeyToken = {
- __typename?: 'ApiKeyToken';
- token: Scalars['String'];
-};
-
-export type AppToken = {
- __typename?: 'AppToken';
- createdAt: Scalars['DateTime'];
- expiresAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- type: Scalars['String'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type AppTokenEdge = {
- __typename?: 'AppTokenEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the AppToken */
- node: AppToken;
-};
-
-export type Application = {
- __typename?: 'Application';
- agents: Array<Agent>;
- applicationVariables: Array<ApplicationVariable>;
- availablePackages: Scalars['JSON'];
- canBeUninstalled: Scalars['Boolean'];
- defaultLogicFunctionRole?: Maybe<Role>;
- defaultRoleId?: Maybe<Scalars['String']>;
- description: Scalars['String'];
- id: Scalars['UUID'];
- logicFunctions: Array<LogicFunction>;
- name: Scalars['String'];
- objects: Array<Object>;
- packageJsonChecksum?: Maybe<Scalars['String']>;
- packageJsonFileId?: Maybe<Scalars['UUID']>;
- universalIdentifier: Scalars['String'];
- version: Scalars['String'];
- yarnLockChecksum?: Maybe<Scalars['String']>;
- yarnLockFileId?: Maybe<Scalars['UUID']>;
-};
-
-export type ApplicationVariable = {
- __typename?: 'ApplicationVariable';
- description: Scalars['String'];
- id: Scalars['UUID'];
- isSecret: Scalars['Boolean'];
- key: Scalars['String'];
- value: Scalars['String'];
-};
-
-export type ApprovedAccessDomain = {
- __typename?: 'ApprovedAccessDomain';
- createdAt: Scalars['DateTime'];
- domain: Scalars['String'];
- id: Scalars['UUID'];
- isValidated: Scalars['Boolean'];
-};
-
-export type AuthBypassProviders = {
- __typename?: 'AuthBypassProviders';
- google: Scalars['Boolean'];
- microsoft: Scalars['Boolean'];
- password: Scalars['Boolean'];
-};
-
-export type AuthProviders = {
- __typename?: 'AuthProviders';
- google: Scalars['Boolean'];
- magicLink: Scalars['Boolean'];
- microsoft: Scalars['Boolean'];
- password: Scalars['Boolean'];
- sso: Array<SsoIdentityProvider>;
-};
-
-export type AuthToken = {
- __typename?: 'AuthToken';
- expiresAt: Scalars['DateTime'];
- token: Scalars['String'];
-};
-
-export type AuthTokenPair = {
- __typename?: 'AuthTokenPair';
- accessOrWorkspaceAgnosticToken: AuthToken;
- refreshToken: AuthToken;
-};
-
-export type AuthTokens = {
- __typename?: 'AuthTokens';
- tokens: AuthTokenPair;
-};
-
-export type AuthorizeAppOutput = {
- __typename?: 'AuthorizeAppOutput';
- redirectUrl: Scalars['String'];
-};
-
-export type AutocompleteResult = {
- __typename?: 'AutocompleteResult';
- placeId: Scalars['String'];
- text: Scalars['String'];
-};
-
-export type AvailableWorkspace = {
- __typename?: 'AvailableWorkspace';
- displayName?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- inviteHash?: Maybe<Scalars['String']>;
- loginToken?: Maybe<Scalars['String']>;
- logo?: Maybe<Scalars['String']>;
- personalInviteToken?: Maybe<Scalars['String']>;
- sso: Array<SsoConnection>;
- workspaceUrls: WorkspaceUrls;
-};
-
-export type AvailableWorkspaces = {
- __typename?: 'AvailableWorkspaces';
- availableWorkspacesForSignIn: Array<AvailableWorkspace>;
- availableWorkspacesForSignUp: Array<AvailableWorkspace>;
-};
-
-export type AvailableWorkspacesAndAccessTokensOutput = {
- __typename?: 'AvailableWorkspacesAndAccessTokensOutput';
- availableWorkspaces: AvailableWorkspaces;
- tokens: AuthTokenPair;
-};
-
-/** Which axes should display labels */
-export enum AxisNameDisplay {
- BOTH = 'BOTH',
- NONE = 'NONE',
- X = 'X',
- Y = 'Y'
-}
-
-export type BarChartConfiguration = {
- __typename?: 'BarChartConfiguration';
- aggregateFieldMetadataId: Scalars['UUID'];
- aggregateOperation: AggregateOperations;
- axisNameDisplay?: Maybe<AxisNameDisplay>;
- color?: Maybe<Scalars['String']>;
- configurationType: WidgetConfigurationType;
- description?: Maybe<Scalars['String']>;
- displayDataLabel?: Maybe<Scalars['Boolean']>;
- displayLegend?: Maybe<Scalars['Boolean']>;
- filter?: Maybe<Scalars['JSON']>;
- firstDayOfTheWeek?: Maybe<Scalars['Int']>;
- groupMode?: Maybe<BarChartGroupMode>;
- isCumulative?: Maybe<Scalars['Boolean']>;
- layout: BarChartLayout;
- omitNullValues?: Maybe<Scalars['Boolean']>;
- primaryAxisDateGranularity?: Maybe<ObjectRecordGroupByDateGranularity>;
- primaryAxisGroupByFieldMetadataId: Scalars['UUID'];
- primaryAxisGroupBySubFieldName?: Maybe<Scalars['String']>;
- primaryAxisManualSortOrder?: Maybe<Array<Scalars['String']>>;
- primaryAxisOrderBy?: Maybe<GraphOrderBy>;
- rangeMax?: Maybe<Scalars['Float']>;
- rangeMin?: Maybe<Scalars['Float']>;
- secondaryAxisGroupByDateGranularity?: Maybe<ObjectRecordGroupByDateGranularity>;
- secondaryAxisGroupByFieldMetadataId?: Maybe<Scalars['UUID']>;
- secondaryAxisGroupBySubFieldName?: Maybe<Scalars['String']>;
- secondaryAxisManualSortOrder?: Maybe<Array<Scalars['String']>>;
- secondaryAxisOrderBy?: Maybe<GraphOrderBy>;
- timezone?: Maybe<Scalars['String']>;
-};
-
-export type BarChartDataOutput = {
- __typename?: 'BarChartDataOutput';
- data: Array<Scalars['JSON']>;
- formattedToRawLookup: Scalars['JSON'];
- groupMode: BarChartGroupMode;
- hasTooManyGroups: Scalars['Boolean'];
- indexBy: Scalars['String'];
- keys: Array<Scalars['String']>;
- layout: BarChartLayout;
- series: Array<BarChartSeries>;
- showDataLabels: Scalars['Boolean'];
- showLegend: Scalars['Boolean'];
- xAxisLabel: Scalars['String'];
- yAxisLabel: Scalars['String'];
-};
-
-/** Display mode for bar charts with secondary grouping */
-export enum BarChartGroupMode {
- GROUPED = 'GROUPED',
- STACKED = 'STACKED'
-}
-
-/** Layout orientation for bar charts */
-export enum BarChartLayout {
- HORIZONTAL = 'HORIZONTAL',
- VERTICAL = 'VERTICAL'
-}
-
-export type BarChartSeries = {
- __typename?: 'BarChartSeries';
- key: Scalars['String'];
- label: Scalars['String'];
-};
-
-export type Billing = {
- __typename?: 'Billing';
- billingUrl?: Maybe<Scalars['String']>;
- isBillingEnabled: Scalars['Boolean'];
- trialPeriods: Array<BillingTrialPeriod>;
-};
-
-export type BillingEndTrialPeriodOutput = {
- __typename?: 'BillingEndTrialPeriodOutput';
- /** Billing portal URL for payment method update (returned when no payment method exists) */
- billingPortalUrl?: Maybe<Scalars['String']>;
- /** Boolean that confirms if a payment method was found */
- hasPaymentMethod: Scalars['Boolean'];
- /** Updated subscription status */
- status?: Maybe<SubscriptionStatus>;
-};
-
-export type BillingEntitlement = {
- __typename?: 'BillingEntitlement';
- key: BillingEntitlementKey;
- value: Scalars['Boolean'];
-};
-
-export enum BillingEntitlementKey {
- AUDIT_LOGS = 'AUDIT_LOGS',
- CUSTOM_DOMAIN = 'CUSTOM_DOMAIN',
- RLS = 'RLS',
- SSO = 'SSO'
-}
-
-export type BillingLicensedProduct = BillingProductDto & {
- __typename?: 'BillingLicensedProduct';
- description: Scalars['String'];
- images?: Maybe<Array<Scalars['String']>>;
- metadata: BillingProductMetadata;
- name: Scalars['String'];
- prices?: Maybe<Array<BillingPriceLicensed>>;
-};
-
-export type BillingMeteredProduct = BillingProductDto & {
- __typename?: 'BillingMeteredProduct';
- description: Scalars['String'];
- images?: Maybe<Array<Scalars['String']>>;
- metadata: BillingProductMetadata;
- name: Scalars['String'];
- prices?: Maybe<Array<BillingPriceMetered>>;
-};
-
-export type BillingMeteredProductUsageOutput = {
- __typename?: 'BillingMeteredProductUsageOutput';
- grantedCredits: Scalars['Float'];
- periodEnd: Scalars['DateTime'];
- periodStart: Scalars['DateTime'];
- productKey: BillingProductKey;
- rolloverCredits: Scalars['Float'];
- totalGrantedCredits: Scalars['Float'];
- unitPriceCents: Scalars['Float'];
- usedCredits: Scalars['Float'];
-};
-
-/** The different billing plans available */
-export enum BillingPlanKey {
- ENTERPRISE = 'ENTERPRISE',
- PRO = 'PRO'
-}
-
-export type BillingPlanOutput = {
- __typename?: 'BillingPlanOutput';
- licensedProducts: Array<BillingLicensedProduct>;
- meteredProducts: Array<BillingMeteredProduct>;
- planKey: BillingPlanKey;
-};
-
-export type BillingPriceLicensed = {
- __typename?: 'BillingPriceLicensed';
- priceUsageType: BillingUsageType;
- recurringInterval: SubscriptionInterval;
- stripePriceId: Scalars['String'];
- unitAmount: Scalars['Float'];
-};
-
-export type BillingPriceMetered = {
- __typename?: 'BillingPriceMetered';
- priceUsageType: BillingUsageType;
- recurringInterval: SubscriptionInterval;
- stripePriceId: Scalars['String'];
- tiers: Array<BillingPriceTier>;
-};
-
-export type BillingPriceTier = {
- __typename?: 'BillingPriceTier';
- flatAmount?: Maybe<Scalars['Float']>;
- unitAmount?: Maybe<Scalars['Float']>;
- upTo?: Maybe<Scalars['Float']>;
-};
-
-export type BillingProduct = {
- __typename?: 'BillingProduct';
- description: Scalars['String'];
- images?: Maybe<Array<Scalars['String']>>;
- metadata: BillingProductMetadata;
- name: Scalars['String'];
-};
-
-export type BillingProductDto = {
- description: Scalars['String'];
- images?: Maybe<Array<Scalars['String']>>;
- metadata: BillingProductMetadata;
- name: Scalars['String'];
-};
-
-/** The different billing products available */
-export enum BillingProductKey {
- BASE_PRODUCT = 'BASE_PRODUCT',
- WORKFLOW_NODE_EXECUTION = 'WORKFLOW_NODE_EXECUTION'
-}
-
-export type BillingProductMetadata = {
- __typename?: 'BillingProductMetadata';
- planKey: BillingPlanKey;
- priceUsageBased: BillingUsageType;
- productKey: BillingProductKey;
-};
-
-export type BillingSessionOutput = {
- __typename?: 'BillingSessionOutput';
- url?: Maybe<Scalars['String']>;
-};
-
-export type BillingSubscription = {
- __typename?: 'BillingSubscription';
- billingSubscriptionItems?: Maybe<Array<BillingSubscriptionItemDto>>;
- currentPeriodEnd?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- interval?: Maybe<SubscriptionInterval>;
- metadata: Scalars['JSON'];
- phases: Array<BillingSubscriptionSchedulePhase>;
- status: SubscriptionStatus;
-};
-
-export type BillingSubscriptionItemDto = {
- __typename?: 'BillingSubscriptionItemDTO';
- billingProduct: BillingProductDto;
- hasReachedCurrentPeriodCap: Scalars['Boolean'];
- id: Scalars['UUID'];
- quantity?: Maybe<Scalars['Float']>;
- stripePriceId: Scalars['String'];
-};
-
-export type BillingSubscriptionSchedulePhase = {
- __typename?: 'BillingSubscriptionSchedulePhase';
- end_date: Scalars['Float'];
- items: Array<BillingSubscriptionSchedulePhaseItem>;
- start_date: Scalars['Float'];
-};
-
-export type BillingSubscriptionSchedulePhaseItem = {
- __typename?: 'BillingSubscriptionSchedulePhaseItem';
- price: Scalars['String'];
- quantity?: Maybe<Scalars['Float']>;
-};
-
-export type BillingTrialPeriod = {
- __typename?: 'BillingTrialPeriod';
- duration: Scalars['Float'];
- isCreditCardRequired: Scalars['Boolean'];
-};
-
-export type BillingUpdateOutput = {
- __typename?: 'BillingUpdateOutput';
- /** All billing subscriptions */
- billingSubscriptions: Array<BillingSubscription>;
- /** Current billing subscription */
- currentBillingSubscription: BillingSubscription;
-};
-
-export enum BillingUsageType {
- LICENSED = 'LICENSED',
- METERED = 'METERED'
-}
-
-export type BooleanFieldComparison = {
- is?: InputMaybe<Scalars['Boolean']>;
- isNot?: InputMaybe<Scalars['Boolean']>;
-};
-
-export enum CalendarChannelVisibility {
- METADATA = 'METADATA',
- SHARE_EVERYTHING = 'SHARE_EVERYTHING'
-}
-
-export type CalendarConfiguration = {
- __typename?: 'CalendarConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type Captcha = {
- __typename?: 'Captcha';
- provider?: Maybe<CaptchaDriverType>;
- siteKey?: Maybe<Scalars['String']>;
-};
-
-export enum CaptchaDriverType {
- GOOGLE_RECAPTCHA = 'GOOGLE_RECAPTCHA',
- TURNSTILE = 'TURNSTILE'
-}
-
-export type ChannelSyncSuccess = {
- __typename?: 'ChannelSyncSuccess';
- success: Scalars['Boolean'];
-};
-
-export type CheckUserExistOutput = {
- __typename?: 'CheckUserExistOutput';
- availableWorkspacesCount: Scalars['Float'];
- exists: Scalars['Boolean'];
- isEmailVerified: Scalars['Boolean'];
-};
-
-export type ClientAiModelConfig = {
- __typename?: 'ClientAIModelConfig';
- deprecated?: Maybe<Scalars['Boolean']>;
- inputCostPer1kTokensInCredits: Scalars['Float'];
- label: Scalars['String'];
- modelId: Scalars['String'];
- nativeCapabilities?: Maybe<NativeModelCapabilities>;
- outputCostPer1kTokensInCredits: Scalars['Float'];
- provider: ModelProvider;
-};
-
-export type CommandMenuItem = {
- __typename?: 'CommandMenuItem';
- applicationId?: Maybe<Scalars['UUID']>;
- availabilityObjectMetadataId?: Maybe<Scalars['UUID']>;
- availabilityType: CommandMenuItemAvailabilityType;
- createdAt: Scalars['DateTime'];
- frontComponent?: Maybe<FrontComponent>;
- frontComponentId?: Maybe<Scalars['UUID']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isPinned: Scalars['Boolean'];
- label: Scalars['String'];
- updatedAt: Scalars['DateTime'];
- workflowVersionId?: Maybe<Scalars['UUID']>;
-};
-
-export enum CommandMenuItemAvailabilityType {
- BULK_RECORDS = 'BULK_RECORDS',
- GLOBAL = 'GLOBAL',
- SINGLE_RECORD = 'SINGLE_RECORD'
-}
-
-export type ComputeStepOutputSchemaInput = {
- /** Step JSON format */
- step: Scalars['JSON'];
- /** Workflow version ID */
- workflowVersionId?: InputMaybe<Scalars['UUID']>;
-};
-
-export enum ConfigSource {
- DATABASE = 'DATABASE',
- DEFAULT = 'DEFAULT',
- ENVIRONMENT = 'ENVIRONMENT'
-}
-
-export type ConfigVariable = {
- __typename?: 'ConfigVariable';
- description: Scalars['String'];
- isEnvOnly: Scalars['Boolean'];
- isSensitive: Scalars['Boolean'];
- name: Scalars['String'];
- options?: Maybe<Scalars['JSON']>;
- source: ConfigSource;
- type: ConfigVariableType;
- value?: Maybe<Scalars['JSON']>;
-};
-
-export enum ConfigVariableType {
- ARRAY = 'ARRAY',
- BOOLEAN = 'BOOLEAN',
- ENUM = 'ENUM',
- NUMBER = 'NUMBER',
- STRING = 'STRING'
-}
-
-export enum ConfigVariablesGroup {
- ANALYTICS_CONFIG = 'ANALYTICS_CONFIG',
- AWS_SES_SETTINGS = 'AWS_SES_SETTINGS',
- BILLING_CONFIG = 'BILLING_CONFIG',
- CAPTCHA_CONFIG = 'CAPTCHA_CONFIG',
- CLOUDFLARE_CONFIG = 'CLOUDFLARE_CONFIG',
- CODE_INTERPRETER_CONFIG = 'CODE_INTERPRETER_CONFIG',
- EMAIL_SETTINGS = 'EMAIL_SETTINGS',
- EXCEPTION_HANDLER = 'EXCEPTION_HANDLER',
- GOOGLE_AUTH = 'GOOGLE_AUTH',
- LLM = 'LLM',
- LOGGING = 'LOGGING',
- LOGIC_FUNCTION_CONFIG = 'LOGIC_FUNCTION_CONFIG',
- METERING = 'METERING',
- MICROSOFT_AUTH = 'MICROSOFT_AUTH',
- OTHER = 'OTHER',
- RATE_LIMITING = 'RATE_LIMITING',
- SERVER_CONFIG = 'SERVER_CONFIG',
- SSL = 'SSL',
- STORAGE_CONFIG = 'STORAGE_CONFIG',
- SUPPORT_CHAT_CONFIG = 'SUPPORT_CHAT_CONFIG',
- TOKENS_DURATION = 'TOKENS_DURATION',
- TWO_FACTOR_AUTHENTICATION = 'TWO_FACTOR_AUTHENTICATION'
-}
-
-export type ConfigVariablesGroupData = {
- __typename?: 'ConfigVariablesGroupData';
- description: Scalars['String'];
- isHiddenOnLoad: Scalars['Boolean'];
- name: ConfigVariablesGroup;
- variables: Array<ConfigVariable>;
-};
-
-export type ConfigVariablesOutput = {
- __typename?: 'ConfigVariablesOutput';
- groups: Array<ConfigVariablesGroupData>;
-};
-
-export type ConnectedImapSmtpCaldavAccount = {
- __typename?: 'ConnectedImapSmtpCaldavAccount';
- accountOwnerId: Scalars['UUID'];
- connectionParameters?: Maybe<ImapSmtpCaldavConnectionParameters>;
- handle: Scalars['String'];
- id: Scalars['UUID'];
- provider: Scalars['String'];
-};
-
-export type ConnectionParametersOutput = {
- __typename?: 'ConnectionParametersOutput';
- host: Scalars['String'];
- password: Scalars['String'];
- port: Scalars['Float'];
- secure?: Maybe<Scalars['Boolean']>;
- username?: Maybe<Scalars['String']>;
-};
-
-export type CoreView = {
- __typename?: 'CoreView';
- anyFieldFilterValue?: Maybe<Scalars['String']>;
- calendarFieldMetadataId?: Maybe<Scalars['UUID']>;
- calendarLayout?: Maybe<ViewCalendarLayout>;
- createdAt: Scalars['DateTime'];
- createdByUserWorkspaceId?: Maybe<Scalars['UUID']>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- icon: Scalars['String'];
- id: Scalars['UUID'];
- isCompact: Scalars['Boolean'];
- isCustom: Scalars['Boolean'];
- kanbanAggregateOperation?: Maybe<AggregateOperations>;
- kanbanAggregateOperationFieldMetadataId?: Maybe<Scalars['UUID']>;
- key?: Maybe<ViewKey>;
- mainGroupByFieldMetadataId?: Maybe<Scalars['UUID']>;
- name: Scalars['String'];
- objectMetadataId: Scalars['UUID'];
- openRecordIn: ViewOpenRecordIn;
- position: Scalars['Float'];
- shouldHideEmptyGroups: Scalars['Boolean'];
- type: ViewType;
- updatedAt: Scalars['DateTime'];
- viewFieldGroups: Array<CoreViewFieldGroup>;
- viewFields: Array<CoreViewField>;
- viewFilterGroups: Array<CoreViewFilterGroup>;
- viewFilters: Array<CoreViewFilter>;
- viewGroups: Array<CoreViewGroup>;
- viewSorts: Array<CoreViewSort>;
- visibility: ViewVisibility;
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewField = {
- __typename?: 'CoreViewField';
- aggregateOperation?: Maybe<AggregateOperations>;
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- isVisible: Scalars['Boolean'];
- position: Scalars['Float'];
- size: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFieldGroup = {
- __typename?: 'CoreViewFieldGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- isVisible: Scalars['Boolean'];
- name: Scalars['String'];
- position: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- viewFields: Array<CoreViewField>;
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFilter = {
- __typename?: 'CoreViewFilter';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- operand: ViewFilterOperand;
- positionInViewFilterGroup?: Maybe<Scalars['Float']>;
- subFieldName?: Maybe<Scalars['String']>;
- updatedAt: Scalars['DateTime'];
- value: Scalars['JSON'];
- viewFilterGroupId?: Maybe<Scalars['UUID']>;
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewFilterGroup = {
- __typename?: 'CoreViewFilterGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- logicalOperator: ViewFilterGroupLogicalOperator;
- parentViewFilterGroupId?: Maybe<Scalars['UUID']>;
- positionInViewFilterGroup?: Maybe<Scalars['Float']>;
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewGroup = {
- __typename?: 'CoreViewGroup';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- fieldValue: Scalars['String'];
- id: Scalars['UUID'];
- isVisible: Scalars['Boolean'];
- position: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CoreViewSort = {
- __typename?: 'CoreViewSort';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- direction: ViewSortDirection;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- updatedAt: Scalars['DateTime'];
- viewId: Scalars['UUID'];
- workspaceId: Scalars['UUID'];
-};
-
-export type CreateDraftFromWorkflowVersionInput = {
- /** Workflow ID */
- workflowId: Scalars['UUID'];
- /** Workflow version ID */
- workflowVersionIdToCopy: Scalars['UUID'];
-};
-
-export type CreateWorkflowVersionEdgeInput = {
- /** Workflow version source step ID */
- source: Scalars['String'];
- /** Workflow version source step connection options */
- sourceConnectionOptions?: InputMaybe<Scalars['JSON']>;
- /** Workflow version target step ID */
- target: Scalars['String'];
- /** Workflow version ID */
- workflowVersionId: Scalars['String'];
-};
-
-export type CreateWorkflowVersionStepInput = {
- /** Default settings for the step */
- defaultSettings?: InputMaybe<Scalars['JSON']>;
- /** Step ID */
- id?: InputMaybe<Scalars['String']>;
- /** Next step ID */
- nextStepId?: InputMaybe<Scalars['UUID']>;
- /** Parent step connection options */
- parentStepConnectionOptions?: InputMaybe<Scalars['JSON']>;
- /** Parent step ID */
- parentStepId?: InputMaybe<Scalars['String']>;
- /** Step position */
- position?: InputMaybe<WorkflowStepPositionInput>;
- /** New step type */
- stepType: Scalars['String'];
- /** Workflow version ID */
- workflowVersionId: Scalars['UUID'];
-};
-
-export type CursorPaging = {
- /** Paginate after opaque cursor */
- after?: InputMaybe<Scalars['ConnectionCursor']>;
- /** Paginate before opaque cursor */
- before?: InputMaybe<Scalars['ConnectionCursor']>;
- /** Paginate first */
- first?: InputMaybe<Scalars['Int']>;
- /** Paginate last */
- last?: InputMaybe<Scalars['Int']>;
-};
-
-/** Database Event Action */
-export enum DatabaseEventAction {
- CREATED = 'CREATED',
- DELETED = 'DELETED',
- DESTROYED = 'DESTROYED',
- RESTORED = 'RESTORED',
- UPDATED = 'UPDATED',
- UPSERTED = 'UPSERTED'
-}
-
-export type DateTimeFilter = {
- eq?: InputMaybe<Scalars['DateTime']>;
- gt?: InputMaybe<Scalars['DateTime']>;
- gte?: InputMaybe<Scalars['DateTime']>;
- in?: InputMaybe<Array<Scalars['DateTime']>>;
- is?: InputMaybe<FilterIs>;
- lt?: InputMaybe<Scalars['DateTime']>;
- lte?: InputMaybe<Scalars['DateTime']>;
- neq?: InputMaybe<Scalars['DateTime']>;
-};
-
-export type DeleteJobsResponse = {
- __typename?: 'DeleteJobsResponse';
- deletedCount: Scalars['Int'];
- results: Array<JobOperationResult>;
-};
-
-export type DeleteSsoOutput = {
- __typename?: 'DeleteSsoOutput';
- identityProviderId: Scalars['UUID'];
-};
-
-export type DeleteTwoFactorAuthenticationMethodOutput = {
- __typename?: 'DeleteTwoFactorAuthenticationMethodOutput';
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type DeleteWorkflowVersionStepInput = {
- /** Step to delete ID */
- stepId: Scalars['String'];
- /** Workflow version ID */
- workflowVersionId: Scalars['UUID'];
-};
-
-export type DeletedWorkspaceMember = {
- __typename?: 'DeletedWorkspaceMember';
- avatarUrl?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- name: FullName;
- userEmail: Scalars['String'];
- userWorkspaceId?: Maybe<Scalars['UUID']>;
-};
-
-export type DomainRecord = {
- __typename?: 'DomainRecord';
- key: Scalars['String'];
- status: Scalars['String'];
- type: Scalars['String'];
- validationType: Scalars['String'];
- value: Scalars['String'];
-};
-
-export type DomainValidRecords = {
- __typename?: 'DomainValidRecords';
- domain: Scalars['String'];
- id: Scalars['UUID'];
- records: Array<DomainRecord>;
-};
-
-export type DuplicateWorkflowInput = {
- /** Workflow ID to duplicate */
- workflowIdToDuplicate: Scalars['UUID'];
- /** Workflow version ID to copy */
- workflowVersionIdToCopy: Scalars['UUID'];
-};
-
-export type DuplicateWorkflowVersionStepInput = {
- stepId: Scalars['String'];
- workflowVersionId: Scalars['String'];
-};
-
-export type DuplicatedDashboard = {
- __typename?: 'DuplicatedDashboard';
- createdAt: Scalars['String'];
- id: Scalars['UUID'];
- pageLayoutId?: Maybe<Scalars['UUID']>;
- position: Scalars['Float'];
- title?: Maybe<Scalars['String']>;
- updatedAt: Scalars['String'];
-};
-
-export type EditSsoOutput = {
- __typename?: 'EditSsoOutput';
- id: Scalars['UUID'];
- issuer: Scalars['String'];
- name: Scalars['String'];
- status: SsoIdentityProviderStatus;
- type: IdentityProviderType;
-};
-
-export type EmailPasswordResetLinkOutput = {
- __typename?: 'EmailPasswordResetLinkOutput';
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type EmailingDomain = {
- __typename?: 'EmailingDomain';
- createdAt: Scalars['DateTime'];
- domain: Scalars['String'];
- driver: EmailingDomainDriver;
- id: Scalars['UUID'];
- status: EmailingDomainStatus;
- updatedAt: Scalars['DateTime'];
- verificationRecords?: Maybe<Array<VerificationRecord>>;
- verifiedAt?: Maybe<Scalars['DateTime']>;
-};
-
-export enum EmailingDomainDriver {
- AWS_SES = 'AWS_SES'
-}
-
-export enum EmailingDomainStatus {
- FAILED = 'FAILED',
- PENDING = 'PENDING',
- TEMPORARY_FAILURE = 'TEMPORARY_FAILURE',
- VERIFIED = 'VERIFIED'
-}
-
-export type EmailsConfiguration = {
- __typename?: 'EmailsConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type EventLogPageInfo = {
- __typename?: 'EventLogPageInfo';
- endCursor?: Maybe<Scalars['String']>;
- hasNextPage: Scalars['Boolean'];
-};
-
-export type EventLogQueryResult = {
- __typename?: 'EventLogQueryResult';
- pageInfo: EventLogPageInfo;
- records: Array<EventLogRecord>;
- totalCount: Scalars['Int'];
-};
-
-export type EventLogRecord = {
- __typename?: 'EventLogRecord';
- event: Scalars['String'];
- isCustom?: Maybe<Scalars['Boolean']>;
- objectMetadataId?: Maybe<Scalars['String']>;
- properties?: Maybe<Scalars['JSON']>;
- recordId?: Maybe<Scalars['String']>;
- timestamp: Scalars['DateTime'];
- userWorkspaceId?: Maybe<Scalars['String']>;
-};
-
-export type EventSubscription = {
- __typename?: 'EventSubscription';
- eventStreamId: Scalars['String'];
- eventWithQueryIdsList: Array<EventWithQueryIds>;
-};
-
-export type EventWithQueryIds = {
- __typename?: 'EventWithQueryIds';
- event: ObjectRecordEvent;
- queryIds: Array<Scalars['String']>;
-};
-
-export type FeatureFlag = {
- __typename?: 'FeatureFlag';
- id: Scalars['UUID'];
- key: FeatureFlagKey;
- value: Scalars['Boolean'];
-};
-
-export type FeatureFlagDto = {
- __typename?: 'FeatureFlagDTO';
- key: FeatureFlagKey;
- value: Scalars['Boolean'];
-};
-
-export enum FeatureFlagKey {
- IS_AI_ENABLED = 'IS_AI_ENABLED',
- IS_APPLICATION_ENABLED = 'IS_APPLICATION_ENABLED',
- IS_APPLICATION_INSTALLATION_FROM_TARBALL_ENABLED = 'IS_APPLICATION_INSTALLATION_FROM_TARBALL_ENABLED',
- IS_ATTACHMENT_MIGRATED = 'IS_ATTACHMENT_MIGRATED',
- IS_COMMAND_MENU_ITEM_ENABLED = 'IS_COMMAND_MENU_ITEM_ENABLED',
- IS_DASHBOARD_V2_ENABLED = 'IS_DASHBOARD_V2_ENABLED',
- IS_EMAILING_DOMAIN_ENABLED = 'IS_EMAILING_DOMAIN_ENABLED',
- IS_FILES_FIELD_MIGRATED = 'IS_FILES_FIELD_MIGRATED',
- IS_JSON_FILTER_ENABLED = 'IS_JSON_FILTER_ENABLED',
- IS_JUNCTION_RELATIONS_ENABLED = 'IS_JUNCTION_RELATIONS_ENABLED',
- IS_MARKETPLACE_ENABLED = 'IS_MARKETPLACE_ENABLED',
- IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED = 'IS_NAVIGATION_MENU_ITEM_EDITING_ENABLED',
- IS_NAVIGATION_MENU_ITEM_ENABLED = 'IS_NAVIGATION_MENU_ITEM_ENABLED',
- IS_NOTE_TARGET_MIGRATED = 'IS_NOTE_TARGET_MIGRATED',
- IS_PUBLIC_DOMAIN_ENABLED = 'IS_PUBLIC_DOMAIN_ENABLED',
- IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED = 'IS_RECORD_PAGE_LAYOUT_EDITING_ENABLED',
- IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED = 'IS_ROW_LEVEL_PERMISSION_PREDICATES_ENABLED',
- IS_SSE_DB_EVENTS_ENABLED = 'IS_SSE_DB_EVENTS_ENABLED',
- IS_TASK_TARGET_MIGRATED = 'IS_TASK_TARGET_MIGRATED',
- IS_UNIQUE_INDEXES_ENABLED = 'IS_UNIQUE_INDEXES_ENABLED'
-}
-
-export type Field = {
- __typename?: 'Field';
- applicationId: Scalars['UUID'];
- createdAt: Scalars['DateTime'];
- defaultValue?: Maybe<Scalars['JSON']>;
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isActive?: Maybe<Scalars['Boolean']>;
- isCustom?: Maybe<Scalars['Boolean']>;
- isLabelSyncedWithName?: Maybe<Scalars['Boolean']>;
- isNullable?: Maybe<Scalars['Boolean']>;
- isSystem?: Maybe<Scalars['Boolean']>;
- isUIReadOnly?: Maybe<Scalars['Boolean']>;
- isUnique?: Maybe<Scalars['Boolean']>;
- label: Scalars['String'];
- morphId?: Maybe<Scalars['UUID']>;
- morphRelations?: Maybe<Array<Relation>>;
- name: Scalars['String'];
- object?: Maybe<Object>;
- options?: Maybe<Scalars['JSON']>;
- relation?: Maybe<Relation>;
- settings?: Maybe<Scalars['JSON']>;
- standardOverrides?: Maybe<StandardOverrides>;
- type: FieldMetadataType;
- updatedAt: Scalars['DateTime'];
-};
-
-export type FieldConfiguration = {
- __typename?: 'FieldConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type FieldConnection = {
- __typename?: 'FieldConnection';
- /** Array of edges. */
- edges: Array<FieldEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type FieldEdge = {
- __typename?: 'FieldEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the Field */
- node: Field;
-};
-
-export type FieldFilter = {
- and?: InputMaybe<Array<FieldFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isActive?: InputMaybe<BooleanFieldComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- isSystem?: InputMaybe<BooleanFieldComparison>;
- isUIReadOnly?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<FieldFilter>>;
-};
-
-/** Type of the field */
-export enum FieldMetadataType {
- ACTOR = 'ACTOR',
- ADDRESS = 'ADDRESS',
- ARRAY = 'ARRAY',
- BOOLEAN = 'BOOLEAN',
- CURRENCY = 'CURRENCY',
- DATE = 'DATE',
- DATE_TIME = 'DATE_TIME',
- EMAILS = 'EMAILS',
- FILES = 'FILES',
- FULL_NAME = 'FULL_NAME',
- LINKS = 'LINKS',
- MORPH_RELATION = 'MORPH_RELATION',
- MULTI_SELECT = 'MULTI_SELECT',
- NUMBER = 'NUMBER',
- NUMERIC = 'NUMERIC',
- PHONES = 'PHONES',
- POSITION = 'POSITION',
- RATING = 'RATING',
- RAW_JSON = 'RAW_JSON',
- RELATION = 'RELATION',
- RICH_TEXT = 'RICH_TEXT',
- RICH_TEXT_V2 = 'RICH_TEXT_V2',
- SELECT = 'SELECT',
- TEXT = 'TEXT',
- TS_VECTOR = 'TS_VECTOR',
- UUID = 'UUID'
-}
-
-export type FieldPermission = {
- __typename?: 'FieldPermission';
- canReadFieldValue?: Maybe<Scalars['Boolean']>;
- canUpdateFieldValue?: Maybe<Scalars['Boolean']>;
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- objectMetadataId: Scalars['UUID'];
- roleId: Scalars['UUID'];
-};
-
-export type FieldRichTextConfiguration = {
- __typename?: 'FieldRichTextConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type FieldsConfiguration = {
- __typename?: 'FieldsConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type File = {
- __typename?: 'File';
- createdAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- path: Scalars['String'];
- size: Scalars['Float'];
-};
-
-export type FilesConfiguration = {
- __typename?: 'FilesConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export enum FilterIs {
- NotNull = 'NotNull',
- Null = 'Null'
-}
-
-export type FindAvailableSsoidpOutput = {
- __typename?: 'FindAvailableSSOIDPOutput';
- id: Scalars['UUID'];
- issuer: Scalars['String'];
- name: Scalars['String'];
- status: SsoIdentityProviderStatus;
- type: IdentityProviderType;
- workspace: WorkspaceNameAndId;
-};
-
-export type FrontComponent = {
- __typename?: 'FrontComponent';
- applicationId: Scalars['UUID'];
- builtComponentChecksum: Scalars['String'];
- builtComponentPath: Scalars['String'];
- componentName: Scalars['String'];
- createdAt: Scalars['DateTime'];
- description?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- name: Scalars['String'];
- sourceComponentPath: Scalars['String'];
- universalIdentifier?: Maybe<Scalars['UUID']>;
- updatedAt: Scalars['DateTime'];
-};
-
-export type FrontComponentConfiguration = {
- __typename?: 'FrontComponentConfiguration';
- configurationType: WidgetConfigurationType;
- frontComponentId: Scalars['UUID'];
-};
-
-export type FullName = {
- __typename?: 'FullName';
- firstName: Scalars['String'];
- lastName: Scalars['String'];
-};
-
-export type GaugeChartConfiguration = {
- __typename?: 'GaugeChartConfiguration';
- aggregateFieldMetadataId: Scalars['UUID'];
- aggregateOperation: AggregateOperations;
- color?: Maybe<Scalars['String']>;
- configurationType: WidgetConfigurationType;
- description?: Maybe<Scalars['String']>;
- displayDataLabel?: Maybe<Scalars['Boolean']>;
- filter?: Maybe<Scalars['JSON']>;
- firstDayOfTheWeek?: Maybe<Scalars['Int']>;
- timezone?: Maybe<Scalars['String']>;
-};
-
-export type GetAuthorizationUrlForSsoOutput = {
- __typename?: 'GetAuthorizationUrlForSSOOutput';
- authorizationURL: Scalars['String'];
- id: Scalars['UUID'];
- type: Scalars['String'];
-};
-
-/** Order by options for graph widgets */
-export enum GraphOrderBy {
- FIELD_ASC = 'FIELD_ASC',
- FIELD_DESC = 'FIELD_DESC',
- FIELD_POSITION_ASC = 'FIELD_POSITION_ASC',
- FIELD_POSITION_DESC = 'FIELD_POSITION_DESC',
- MANUAL = 'MANUAL',
- VALUE_ASC = 'VALUE_ASC',
- VALUE_DESC = 'VALUE_DESC'
-}
-
-export type GridPosition = {
- __typename?: 'GridPosition';
- column: Scalars['Float'];
- columnSpan: Scalars['Float'];
- row: Scalars['Float'];
- rowSpan: Scalars['Float'];
-};
-
-export enum HealthIndicatorId {
- app = 'app',
- connectedAccount = 'connectedAccount',
- database = 'database',
- redis = 'redis',
- worker = 'worker'
-}
-
-export enum IdentityProviderType {
- OIDC = 'OIDC',
- SAML = 'SAML'
+export enum CalendarChannelVisibility {
+ METADATA = 'METADATA',
+ SHARE_EVERYTHING = 'SHARE_EVERYTHING'
}
-export type IframeConfiguration = {
- __typename?: 'IframeConfiguration';
- configurationType: WidgetConfigurationType;
- url?: Maybe<Scalars['String']>;
-};
-
-export type ImapSmtpCaldavConnectionParameters = {
- __typename?: 'ImapSmtpCaldavConnectionParameters';
- CALDAV?: Maybe<ConnectionParametersOutput>;
- IMAP?: Maybe<ConnectionParametersOutput>;
- SMTP?: Maybe<ConnectionParametersOutput>;
-};
-
-export type ImapSmtpCaldavConnectionSuccess = {
- __typename?: 'ImapSmtpCaldavConnectionSuccess';
- connectedAccountId: Scalars['String'];
- success: Scalars['Boolean'];
-};
-
-export type ImpersonateOutput = {
- __typename?: 'ImpersonateOutput';
- loginToken: AuthToken;
- workspace: WorkspaceUrlsAndId;
-};
-
-export type Index = {
- __typename?: 'Index';
- createdAt: Scalars['DateTime'];
- id: Scalars['UUID'];
- indexFieldMetadataList: Array<IndexField>;
- indexFieldMetadatas: IndexIndexFieldMetadatasConnection;
- indexType: IndexType;
- indexWhereClause?: Maybe<Scalars['String']>;
- isCustom?: Maybe<Scalars['Boolean']>;
- isUnique: Scalars['Boolean'];
- name: Scalars['String'];
- objectMetadata: IndexObjectMetadataConnection;
- updatedAt: Scalars['DateTime'];
-};
-
-
-export type IndexIndexFieldMetadatasArgs = {
- filter?: IndexFieldFilter;
- paging?: CursorPaging;
-};
-
-
-export type IndexObjectMetadataArgs = {
- filter?: ObjectFilter;
- paging?: CursorPaging;
-};
-
-export type IndexConnection = {
- __typename?: 'IndexConnection';
- /** Array of edges. */
- edges: Array<IndexEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type IndexEdge = {
- __typename?: 'IndexEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the Index */
- node: Index;
-};
-
-export type IndexField = {
- __typename?: 'IndexField';
- createdAt: Scalars['DateTime'];
- fieldMetadataId: Scalars['UUID'];
- id: Scalars['UUID'];
- order: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type IndexFieldEdge = {
- __typename?: 'IndexFieldEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the IndexField */
- node: IndexField;
+export type ComputeStepOutputSchemaInput = {
+ /** Step JSON format */
+ step: Scalars['JSON'];
+ /** Workflow version ID */
+ workflowVersionId?: InputMaybe<Scalars['UUID']>;
};
-export type IndexFieldFilter = {
- and?: InputMaybe<Array<IndexFieldFilter>>;
- fieldMetadataId?: InputMaybe<UuidFilterComparison>;
- id?: InputMaybe<UuidFilterComparison>;
- or?: InputMaybe<Array<IndexFieldFilter>>;
+export type CreateDraftFromWorkflowVersionInput = {
+ /** Workflow ID */
+ workflowId: Scalars['UUID'];
+ /** Workflow version ID */
+ workflowVersionIdToCopy: Scalars['UUID'];
};
-export type IndexFilter = {
- and?: InputMaybe<Array<IndexFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<IndexFilter>>;
+export type CreateWorkflowVersionEdgeInput = {
+ /** Workflow version source step ID */
+ source: Scalars['String'];
+ /** Workflow version source step connection options */
+ sourceConnectionOptions?: InputMaybe<Scalars['JSON']>;
+ /** Workflow version target step ID */
+ target: Scalars['String'];
+ /** Workflow version ID */
+ workflowVersionId: Scalars['String'];
};
-export type IndexIndexFieldMetadatasConnection = {
- __typename?: 'IndexIndexFieldMetadatasConnection';
- /** Array of edges. */
- edges: Array<IndexFieldEdge>;
- /** Paging information */
- pageInfo: PageInfo;
+export type CreateWorkflowVersionStepInput = {
+ /** Default settings for the step */
+ defaultSettings?: InputMaybe<Scalars['JSON']>;
+ /** Step ID */
+ id?: InputMaybe<Scalars['String']>;
+ /** Next step ID */
+ nextStepId?: InputMaybe<Scalars['UUID']>;
+ /** Parent step connection options */
+ parentStepConnectionOptions?: InputMaybe<Scalars['JSON']>;
+ /** Parent step ID */
+ parentStepId?: InputMaybe<Scalars['String']>;
+ /** Step position */
+ position?: InputMaybe<WorkflowStepPositionInput>;
+ /** New step type */
+ stepType: Scalars['String'];
+ /** Workflow version ID */
+ workflowVersionId: Scalars['UUID'];
};
-export type IndexObjectMetadataConnection = {
- __typename?: 'IndexObjectMetadataConnection';
- /** Array of edges. */
- edges: Array<ObjectEdge>;
- /** Paging information */
- pageInfo: PageInfo;
+export type DateTimeFilter = {
+ eq?: InputMaybe<Scalars['DateTime']>;
+ gt?: InputMaybe<Scalars['DateTime']>;
+ gte?: InputMaybe<Scalars['DateTime']>;
+ in?: InputMaybe<Array<Scalars['DateTime']>>;
+ is?: InputMaybe<FilterIs>;
+ lt?: InputMaybe<Scalars['DateTime']>;
+ lte?: InputMaybe<Scalars['DateTime']>;
+ neq?: InputMaybe<Scalars['DateTime']>;
};
-/** Type of the index */
-export enum IndexType {
- BTREE = 'BTREE',
- GIN = 'GIN'
-}
-
-export type InitiateTwoFactorAuthenticationProvisioningOutput = {
- __typename?: 'InitiateTwoFactorAuthenticationProvisioningOutput';
- uri: Scalars['String'];
+export type DeleteWorkflowVersionStepInput = {
+ /** Step to delete ID */
+ stepId: Scalars['String'];
+ /** Workflow version ID */
+ workflowVersionId: Scalars['UUID'];
};
-export type InvalidatePasswordOutput = {
- __typename?: 'InvalidatePasswordOutput';
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
+export type DuplicateWorkflowInput = {
+ /** Workflow ID to duplicate */
+ workflowIdToDuplicate: Scalars['UUID'];
+ /** Workflow version ID to copy */
+ workflowVersionIdToCopy: Scalars['UUID'];
};
-export type JobOperationResult = {
- __typename?: 'JobOperationResult';
- error?: Maybe<Scalars['String']>;
- jobId: Scalars['String'];
- success: Scalars['Boolean'];
+export type DuplicateWorkflowVersionStepInput = {
+ stepId: Scalars['String'];
+ workflowVersionId: Scalars['String'];
};
-/** Job state in the queue */
-export enum JobState {
- ACTIVE = 'ACTIVE',
- COMPLETED = 'COMPLETED',
- DELAYED = 'DELAYED',
- FAILED = 'FAILED',
- PRIORITIZED = 'PRIORITIZED',
- WAITING = 'WAITING',
- WAITING_CHILDREN = 'WAITING_CHILDREN'
+export enum FilterIs {
+ NotNull = 'NotNull',
+ Null = 'Null'
}
-export type LineChartConfiguration = {
- __typename?: 'LineChartConfiguration';
- aggregateFieldMetadataId: Scalars['UUID'];
- aggregateOperation: AggregateOperations;
- axisNameDisplay?: Maybe<AxisNameDisplay>;
- color?: Maybe<Scalars['String']>;
- configurationType: WidgetConfigurationType;
- description?: Maybe<Scalars['String']>;
- displayDataLabel?: Maybe<Scalars['Boolean']>;
- displayLegend?: Maybe<Scalars['Boolean']>;
- filter?: Maybe<Scalars['JSON']>;
- firstDayOfTheWeek?: Maybe<Scalars['Int']>;
- isCumulative?: Maybe<Scalars['Boolean']>;
- isStacked?: Maybe<Scalars['Boolean']>;
- omitNullValues?: Maybe<Scalars['Boolean']>;
- primaryAxisDateGranularity?: Maybe<ObjectRecordGroupByDateGranularity>;
- primaryAxisGroupByFieldMetadataId: Scalars['UUID'];
- primaryAxisGroupBySubFieldName?: Maybe<Scalars['String']>;
- primaryAxisManualSortOrder?: Maybe<Array<Scalars['String']>>;
- primaryAxisOrderBy?: Maybe<GraphOrderBy>;
- rangeMax?: Maybe<Scalars['Float']>;
- rangeMin?: Maybe<Scalars['Float']>;
- secondaryAxisGroupByDateGranularity?: Maybe<ObjectRecordGroupByDateGranularity>;
- secondaryAxisGroupByFieldMetadataId?: Maybe<Scalars['UUID']>;
- secondaryAxisGroupBySubFieldName?: Maybe<Scalars['String']>;
- secondaryAxisManualSortOrder?: Maybe<Array<Scalars['String']>>;
- secondaryAxisOrderBy?: Maybe<GraphOrderBy>;
- timezone?: Maybe<Scalars['String']>;
-};
-
-export type LineChartDataOutput = {
- __typename?: 'LineChartDataOutput';
- formattedToRawLookup: Scalars['JSON'];
- hasTooManyGroups: Scalars['Boolean'];
- series: Array<LineChartSeries>;
- showDataLabels: Scalars['Boolean'];
- showLegend: Scalars['Boolean'];
- xAxisLabel: Scalars['String'];
- yAxisLabel: Scalars['String'];
-};
-
-export type LineChartDataPoint = {
- __typename?: 'LineChartDataPoint';
- x: Scalars['String'];
- y: Scalars['Float'];
-};
-
-export type LineChartSeries = {
- __typename?: 'LineChartSeries';
- data: Array<LineChartDataPoint>;
- id: Scalars['String'];
- label: Scalars['String'];
-};
-
export type LinkMetadata = {
__typename?: 'LinkMetadata';
label: Scalars['String'];
@@ -1556,97 +115,12 @@ export type LinksMetadata = {
secondaryLinks?: Maybe<Array<LinkMetadata>>;
};
-export type Location = {
- __typename?: 'Location';
- lat?: Maybe<Scalars['Float']>;
- lng?: Maybe<Scalars['Float']>;
-};
-
-export type LogicFunction = {
- __typename?: 'LogicFunction';
- applicationId?: Maybe<Scalars['UUID']>;
- builtHandlerPath: Scalars['String'];
- createdAt: Scalars['DateTime'];
- cronTriggerSettings?: Maybe<Scalars['JSON']>;
- databaseEventTriggerSettings?: Maybe<Scalars['JSON']>;
- description?: Maybe<Scalars['String']>;
- handlerName: Scalars['String'];
- httpRouteTriggerSettings?: Maybe<Scalars['JSON']>;
- id: Scalars['UUID'];
- isTool: Scalars['Boolean'];
- name: Scalars['String'];
- runtime: Scalars['String'];
- sourceHandlerPath: Scalars['String'];
- timeoutSeconds: Scalars['Float'];
- toolInputSchema?: Maybe<Scalars['JSON']>;
- universalIdentifier?: Maybe<Scalars['UUID']>;
- updatedAt: Scalars['DateTime'];
-};
-
-export type LogicFunctionExecutionResult = {
- __typename?: 'LogicFunctionExecutionResult';
- /** Execution result in JSON format */
- data?: Maybe<Scalars['JSON']>;
- /** Execution duration in milliseconds */
- duration: Scalars['Float'];
- /** Execution error in JSON format */
- error?: Maybe<Scalars['JSON']>;
- /** Execution Logs */
- logs: Scalars['String'];
- /** Execution status */
- status: LogicFunctionExecutionStatus;
-};
-
-/** Status of the logic function execution */
-export enum LogicFunctionExecutionStatus {
- ERROR = 'ERROR',
- IDLE = 'IDLE',
- SUCCESS = 'SUCCESS'
-}
-
-export type LogicFunctionLogs = {
- __typename?: 'LogicFunctionLogs';
- /** Execution Logs */
- logs: Scalars['String'];
-};
-
-export type LoginTokenOutput = {
- __typename?: 'LoginTokenOutput';
- loginToken: AuthToken;
-};
-
-export type MarketplaceApp = {
- __typename?: 'MarketplaceApp';
- aboutDescription: Scalars['String'];
- author: Scalars['String'];
- category: Scalars['String'];
- description: Scalars['String'];
- icon: Scalars['String'];
- id: Scalars['String'];
- logo?: Maybe<Scalars['String']>;
- name: Scalars['String'];
- providers: Array<Scalars['String']>;
- screenshots: Array<Scalars['String']>;
- termsUrl?: Maybe<Scalars['String']>;
- version: Scalars['String'];
- websiteUrl?: Maybe<Scalars['String']>;
-};
-
export enum MessageChannelVisibility {
METADATA = 'METADATA',
SHARE_EVERYTHING = 'SHARE_EVERYTHING',
SUBJECT = 'SUBJECT'
}
-export enum ModelProvider {
- ANTHROPIC = 'ANTHROPIC',
- GROQ = 'GROQ',
- NONE = 'NONE',
- OPENAI = 'OPENAI',
- OPENAI_COMPATIBLE = 'OPENAI_COMPATIBLE',
- XAI = 'XAI'
-}
-
export type Mutation = {
__typename?: 'Mutation';
activateWorkflowVersion: Scalars['Boolean'];
@@ -1715,459 +189,58 @@ export type MutationDismissReconnectAccountBannerArgs = {
};
-export type MutationDuplicateWorkflowArgs = {
- input: DuplicateWorkflowInput;
-};
-
-
-export type MutationDuplicateWorkflowVersionStepArgs = {
- input: DuplicateWorkflowVersionStepInput;
-};
-
-
-export type MutationRunWorkflowVersionArgs = {
- input: RunWorkflowVersionInput;
-};
-
-
-export type MutationStopWorkflowRunArgs = {
- workflowRunId: Scalars['UUID'];
-};
-
-
-export type MutationSubmitFormStepArgs = {
- input: SubmitFormStepInput;
-};
-
-
-export type MutationTestHttpRequestArgs = {
- input: TestHttpRequestInput;
-};
-
-
-export type MutationUpdateWorkflowRunStepArgs = {
- input: UpdateWorkflowRunStepInput;
-};
-
-
-export type MutationUpdateWorkflowVersionPositionsArgs = {
- input: UpdateWorkflowVersionPositionsInput;
-};
-
-
-export type MutationUpdateWorkflowVersionStepArgs = {
- input: UpdateWorkflowVersionStepInput;
-};
-
-export type NativeModelCapabilities = {
- __typename?: 'NativeModelCapabilities';
- twitterSearch?: Maybe<Scalars['Boolean']>;
- webSearch?: Maybe<Scalars['Boolean']>;
-};
-
-export type NavigationMenuItem = {
- __typename?: 'NavigationMenuItem';
- applicationId?: Maybe<Scalars['UUID']>;
- createdAt: Scalars['DateTime'];
- folderId?: Maybe<Scalars['UUID']>;
- id: Scalars['UUID'];
- link?: Maybe<Scalars['String']>;
- name?: Maybe<Scalars['String']>;
- position: Scalars['Float'];
- targetObjectMetadataId?: Maybe<Scalars['UUID']>;
- targetRecordId?: Maybe<Scalars['UUID']>;
- targetRecordIdentifier?: Maybe<RecordIdentifier>;
- updatedAt: Scalars['DateTime'];
- userWorkspaceId?: Maybe<Scalars['UUID']>;
- viewId?: Maybe<Scalars['UUID']>;
-};
-
-export type NotesConfiguration = {
- __typename?: 'NotesConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export type Object = {
- __typename?: 'Object';
- applicationId: Scalars['UUID'];
- createdAt: Scalars['DateTime'];
- description?: Maybe<Scalars['String']>;
- duplicateCriteria?: Maybe<Array<Array<Scalars['String']>>>;
- fields: ObjectFieldsConnection;
- fieldsList: Array<Field>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- imageIdentifierFieldMetadataId?: Maybe<Scalars['UUID']>;
- indexMetadataList: Array<Index>;
- indexMetadatas: ObjectIndexMetadatasConnection;
- isActive: Scalars['Boolean'];
- isCustom: Scalars['Boolean'];
- isLabelSyncedWithName: Scalars['Boolean'];
- isRemote: Scalars['Boolean'];
- isSearchable: Scalars['Boolean'];
- isSystem: Scalars['Boolean'];
- isUIReadOnly: Scalars['Boolean'];
- labelIdentifierFieldMetadataId?: Maybe<Scalars['UUID']>;
- labelPlural: Scalars['String'];
- labelSingular: Scalars['String'];
- namePlural: Scalars['String'];
- nameSingular: Scalars['String'];
- shortcut?: Maybe<Scalars['String']>;
- standardOverrides?: Maybe<ObjectStandardOverrides>;
- updatedAt: Scalars['DateTime'];
-};
-
-
-export type ObjectFieldsArgs = {
- filter?: FieldFilter;
- paging?: CursorPaging;
-};
-
-
-export type ObjectIndexMetadatasArgs = {
- filter?: IndexFilter;
- paging?: CursorPaging;
-};
-
-export type ObjectConnection = {
- __typename?: 'ObjectConnection';
- /** Array of edges. */
- edges: Array<ObjectEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type ObjectEdge = {
- __typename?: 'ObjectEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the Object */
- node: Object;
-};
-
-export type ObjectFieldsConnection = {
- __typename?: 'ObjectFieldsConnection';
- /** Array of edges. */
- edges: Array<FieldEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type ObjectFilter = {
- and?: InputMaybe<Array<ObjectFilter>>;
- id?: InputMaybe<UuidFilterComparison>;
- isActive?: InputMaybe<BooleanFieldComparison>;
- isCustom?: InputMaybe<BooleanFieldComparison>;
- isRemote?: InputMaybe<BooleanFieldComparison>;
- isSearchable?: InputMaybe<BooleanFieldComparison>;
- isSystem?: InputMaybe<BooleanFieldComparison>;
- isUIReadOnly?: InputMaybe<BooleanFieldComparison>;
- or?: InputMaybe<Array<ObjectFilter>>;
-};
-
-export type ObjectIndexMetadatasConnection = {
- __typename?: 'ObjectIndexMetadatasConnection';
- /** Array of edges. */
- edges: Array<IndexEdge>;
- /** Paging information */
- pageInfo: PageInfo;
-};
-
-export type ObjectPermission = {
- __typename?: 'ObjectPermission';
- canDestroyObjectRecords?: Maybe<Scalars['Boolean']>;
- canReadObjectRecords?: Maybe<Scalars['Boolean']>;
- canSoftDeleteObjectRecords?: Maybe<Scalars['Boolean']>;
- canUpdateObjectRecords?: Maybe<Scalars['Boolean']>;
- objectMetadataId: Scalars['UUID'];
- restrictedFields?: Maybe<Scalars['JSON']>;
- rowLevelPermissionPredicateGroups?: Maybe<Array<RowLevelPermissionPredicateGroup>>;
- rowLevelPermissionPredicates?: Maybe<Array<RowLevelPermissionPredicate>>;
-};
-
-export type ObjectRecordEvent = {
- __typename?: 'ObjectRecordEvent';
- action: DatabaseEventAction;
- objectNameSingular: Scalars['String'];
- properties: ObjectRecordEventProperties;
- recordId: Scalars['String'];
- userId?: Maybe<Scalars['String']>;
- workspaceMemberId?: Maybe<Scalars['String']>;
-};
-
-export type ObjectRecordEventProperties = {
- __typename?: 'ObjectRecordEventProperties';
- after?: Maybe<Scalars['JSON']>;
- before?: Maybe<Scalars['JSON']>;
- diff?: Maybe<Scalars['JSON']>;
- updatedFields?: Maybe<Array<Scalars['String']>>;
-};
-
-export type ObjectRecordFilterInput = {
- and?: InputMaybe<Array<ObjectRecordFilterInput>>;
- createdAt?: InputMaybe<DateTimeFilter>;
- deletedAt?: InputMaybe<DateTimeFilter>;
- id?: InputMaybe<UuidFilter>;
- not?: InputMaybe<ObjectRecordFilterInput>;
- or?: InputMaybe<Array<ObjectRecordFilterInput>>;
- updatedAt?: InputMaybe<DateTimeFilter>;
-};
-
-/** Date granularity options (e.g. DAY, MONTH, QUARTER, YEAR, WEEK, DAY_OF_THE_WEEK, MONTH_OF_THE_YEAR, QUARTER_OF_THE_YEAR) */
-export enum ObjectRecordGroupByDateGranularity {
- DAY = 'DAY',
- DAY_OF_THE_WEEK = 'DAY_OF_THE_WEEK',
- MONTH = 'MONTH',
- MONTH_OF_THE_YEAR = 'MONTH_OF_THE_YEAR',
- NONE = 'NONE',
- QUARTER = 'QUARTER',
- QUARTER_OF_THE_YEAR = 'QUARTER_OF_THE_YEAR',
- WEEK = 'WEEK',
- YEAR = 'YEAR'
-}
-
-export type ObjectStandardOverrides = {
- __typename?: 'ObjectStandardOverrides';
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- labelPlural?: Maybe<Scalars['String']>;
- labelSingular?: Maybe<Scalars['String']>;
- translations?: Maybe<Scalars['JSON']>;
-};
-
-export type OnDbEvent = {
- __typename?: 'OnDbEvent';
- action: DatabaseEventAction;
- eventDate: Scalars['DateTime'];
- objectNameSingular: Scalars['String'];
- record: Scalars['JSON'];
- updatedFields?: Maybe<Array<Scalars['String']>>;
-};
-
-/** Onboarding status */
-export enum OnboardingStatus {
- BOOK_ONBOARDING = 'BOOK_ONBOARDING',
- COMPLETED = 'COMPLETED',
- INVITE_TEAM = 'INVITE_TEAM',
- PLAN_REQUIRED = 'PLAN_REQUIRED',
- PROFILE_CREATION = 'PROFILE_CREATION',
- SYNC_EMAIL = 'SYNC_EMAIL',
- WORKSPACE_ACTIVATION = 'WORKSPACE_ACTIVATION'
-}
-
-export type OnboardingStepSuccess = {
- __typename?: 'OnboardingStepSuccess';
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type PageInfo = {
- __typename?: 'PageInfo';
- /** The cursor of the last returned record. */
- endCursor?: Maybe<Scalars['ConnectionCursor']>;
- /** true if paging forward and there are more records. */
- hasNextPage?: Maybe<Scalars['Boolean']>;
- /** true if paging backwards and there are more records. */
- hasPreviousPage?: Maybe<Scalars['Boolean']>;
- /** The cursor of the first returned record. */
- startCursor?: Maybe<Scalars['ConnectionCursor']>;
-};
-
-export type PageLayout = {
- __typename?: 'PageLayout';
- createdAt: Scalars['DateTime'];
- defaultTabToFocusOnMobileAndSidePanelId?: Maybe<Scalars['UUID']>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- name: Scalars['String'];
- objectMetadataId?: Maybe<Scalars['UUID']>;
- tabs?: Maybe<Array<PageLayoutTab>>;
- type: PageLayoutType;
- updatedAt: Scalars['DateTime'];
-};
-
-export type PageLayoutTab = {
- __typename?: 'PageLayoutTab';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- layoutMode?: Maybe<PageLayoutTabLayoutMode>;
- pageLayoutId: Scalars['UUID'];
- position: Scalars['Float'];
- title: Scalars['String'];
- updatedAt: Scalars['DateTime'];
- widgets?: Maybe<Array<PageLayoutWidget>>;
-};
-
-export enum PageLayoutTabLayoutMode {
- CANVAS = 'CANVAS',
- GRID = 'GRID',
- VERTICAL_LIST = 'VERTICAL_LIST'
-}
-
-export enum PageLayoutType {
- DASHBOARD = 'DASHBOARD',
- RECORD_INDEX = 'RECORD_INDEX',
- RECORD_PAGE = 'RECORD_PAGE'
-}
-
-export type PageLayoutWidget = {
- __typename?: 'PageLayoutWidget';
- conditionalDisplay?: Maybe<Scalars['JSON']>;
- configuration: WidgetConfiguration;
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- gridPosition: GridPosition;
- id: Scalars['UUID'];
- objectMetadataId?: Maybe<Scalars['UUID']>;
- pageLayoutTabId: Scalars['UUID'];
- position?: Maybe<PageLayoutWidgetPosition>;
- title: Scalars['String'];
- type: WidgetType;
- updatedAt: Scalars['DateTime'];
+export type MutationDuplicateWorkflowArgs = {
+ input: DuplicateWorkflowInput;
};
-export type PageLayoutWidgetCanvasPosition = {
- __typename?: 'PageLayoutWidgetCanvasPosition';
- layoutMode: PageLayoutTabLayoutMode;
-};
-export type PageLayoutWidgetGridPosition = {
- __typename?: 'PageLayoutWidgetGridPosition';
- column: Scalars['Int'];
- columnSpan: Scalars['Int'];
- layoutMode: PageLayoutTabLayoutMode;
- row: Scalars['Int'];
- rowSpan: Scalars['Int'];
+export type MutationDuplicateWorkflowVersionStepArgs = {
+ input: DuplicateWorkflowVersionStepInput;
};
-export type PageLayoutWidgetPosition = PageLayoutWidgetCanvasPosition | PageLayoutWidgetGridPosition | PageLayoutWidgetVerticalListPosition;
-export type PageLayoutWidgetVerticalListPosition = {
- __typename?: 'PageLayoutWidgetVerticalListPosition';
- index: Scalars['Int'];
- layoutMode: PageLayoutTabLayoutMode;
+export type MutationRunWorkflowVersionArgs = {
+ input: RunWorkflowVersionInput;
};
-export type PermissionFlag = {
- __typename?: 'PermissionFlag';
- flag: PermissionFlagType;
- id: Scalars['UUID'];
- roleId: Scalars['UUID'];
+
+export type MutationStopWorkflowRunArgs = {
+ workflowRunId: Scalars['UUID'];
};
-export enum PermissionFlagType {
- AI = 'AI',
- AI_SETTINGS = 'AI_SETTINGS',
- API_KEYS_AND_WEBHOOKS = 'API_KEYS_AND_WEBHOOKS',
- APPLICATIONS = 'APPLICATIONS',
- BILLING = 'BILLING',
- CODE_INTERPRETER_TOOL = 'CODE_INTERPRETER_TOOL',
- CONNECTED_ACCOUNTS = 'CONNECTED_ACCOUNTS',
- DATA_MODEL = 'DATA_MODEL',
- DOWNLOAD_FILE = 'DOWNLOAD_FILE',
- EXPORT_CSV = 'EXPORT_CSV',
- HTTP_REQUEST_TOOL = 'HTTP_REQUEST_TOOL',
- IMPERSONATE = 'IMPERSONATE',
- IMPORT_CSV = 'IMPORT_CSV',
- LAYOUTS = 'LAYOUTS',
- MARKETPLACE_APPS = 'MARKETPLACE_APPS',
- PROFILE_INFORMATION = 'PROFILE_INFORMATION',
- ROLES = 'ROLES',
- SECURITY = 'SECURITY',
- SEND_EMAIL_TOOL = 'SEND_EMAIL_TOOL',
- SSO_BYPASS = 'SSO_BYPASS',
- UPLOAD_FILE = 'UPLOAD_FILE',
- VIEWS = 'VIEWS',
- WORKFLOWS = 'WORKFLOWS',
- WORKSPACE = 'WORKSPACE',
- WORKSPACE_MEMBERS = 'WORKSPACE_MEMBERS'
-}
-export type PieChartConfiguration = {
- __typename?: 'PieChartConfiguration';
- aggregateFieldMetadataId: Scalars['UUID'];
- aggregateOperation: AggregateOperations;
- color?: Maybe<Scalars['String']>;
- configurationType: WidgetConfigurationType;
- dateGranularity?: Maybe<ObjectRecordGroupByDateGranularity>;
- description?: Maybe<Scalars['String']>;
- displayDataLabel?: Maybe<Scalars['Boolean']>;
- displayLegend?: Maybe<Scalars['Boolean']>;
- filter?: Maybe<Scalars['JSON']>;
- firstDayOfTheWeek?: Maybe<Scalars['Int']>;
- groupByFieldMetadataId: Scalars['UUID'];
- groupBySubFieldName?: Maybe<Scalars['String']>;
- hideEmptyCategory?: Maybe<Scalars['Boolean']>;
- manualSortOrder?: Maybe<Array<Scalars['String']>>;
- orderBy?: Maybe<GraphOrderBy>;
- showCenterMetric?: Maybe<Scalars['Boolean']>;
- timezone?: Maybe<Scalars['String']>;
+export type MutationSubmitFormStepArgs = {
+ input: SubmitFormStepInput;
};
-export type PieChartDataItem = {
- __typename?: 'PieChartDataItem';
- id: Scalars['String'];
- value: Scalars['Float'];
-};
-export type PieChartDataOutput = {
- __typename?: 'PieChartDataOutput';
- data: Array<PieChartDataItem>;
- formattedToRawLookup: Scalars['JSON'];
- hasTooManyGroups: Scalars['Boolean'];
- showCenterMetric: Scalars['Boolean'];
- showDataLabels: Scalars['Boolean'];
- showLegend: Scalars['Boolean'];
+export type MutationTestHttpRequestArgs = {
+ input: TestHttpRequestInput;
};
-export type PlaceDetailsResult = {
- __typename?: 'PlaceDetailsResult';
- city?: Maybe<Scalars['String']>;
- country?: Maybe<Scalars['String']>;
- location?: Maybe<Location>;
- postcode?: Maybe<Scalars['String']>;
- state?: Maybe<Scalars['String']>;
-};
-export type PostgresCredentials = {
- __typename?: 'PostgresCredentials';
- id: Scalars['UUID'];
- password: Scalars['String'];
- user: Scalars['String'];
- workspaceId: Scalars['UUID'];
+export type MutationUpdateWorkflowRunStepArgs = {
+ input: UpdateWorkflowRunStepInput;
};
-export type PublicDomain = {
- __typename?: 'PublicDomain';
- createdAt: Scalars['DateTime'];
- domain: Scalars['String'];
- id: Scalars['UUID'];
- isValidated: Scalars['Boolean'];
-};
-export type PublicFeatureFlag = {
- __typename?: 'PublicFeatureFlag';
- key: FeatureFlagKey;
- metadata: PublicFeatureFlagMetadata;
+export type MutationUpdateWorkflowVersionPositionsArgs = {
+ input: UpdateWorkflowVersionPositionsInput;
};
-export type PublicFeatureFlagMetadata = {
- __typename?: 'PublicFeatureFlagMetadata';
- description: Scalars['String'];
- imagePath?: Maybe<Scalars['String']>;
- label: Scalars['String'];
+
+export type MutationUpdateWorkflowVersionStepArgs = {
+ input: UpdateWorkflowVersionStepInput;
};
-export type PublicWorkspaceDataOutput = {
- __typename?: 'PublicWorkspaceDataOutput';
- authBypassProviders?: Maybe<AuthBypassProviders>;
- authProviders: AuthProviders;
- displayName?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- logo?: Maybe<Scalars['String']>;
- workspaceUrls: WorkspaceUrls;
+export type ObjectRecordFilterInput = {
+ and?: InputMaybe<Array<ObjectRecordFilterInput>>;
+ createdAt?: InputMaybe<DateTimeFilter>;
+ deletedAt?: InputMaybe<DateTimeFilter>;
+ id?: InputMaybe<UuidFilter>;
+ not?: InputMaybe<ObjectRecordFilterInput>;
+ or?: InputMaybe<Array<ObjectRecordFilterInput>>;
+ updatedAt?: InputMaybe<DateTimeFilter>;
};
export type Query = {
@@ -2233,189 +306,6 @@ export type QuerySearchArgs = {
searchInput: Scalars['String'];
};
-export type QueueJob = {
- __typename?: 'QueueJob';
- attemptsMade: Scalars['Float'];
- data?: Maybe<Scalars['JSON']>;
- failedReason?: Maybe<Scalars['String']>;
- finishedOn?: Maybe<Scalars['Float']>;
- id: Scalars['String'];
- logs?: Maybe<Array<Scalars['String']>>;
- name: Scalars['String'];
- processedOn?: Maybe<Scalars['Float']>;
- returnValue?: Maybe<Scalars['JSON']>;
- stackTrace?: Maybe<Array<Scalars['String']>>;
- state: JobState;
- timestamp?: Maybe<Scalars['Float']>;
-};
-
-export type QueueJobsResponse = {
- __typename?: 'QueueJobsResponse';
- count: Scalars['Float'];
- hasMore: Scalars['Boolean'];
- jobs: Array<QueueJob>;
- retentionConfig: QueueRetentionConfig;
- totalCount: Scalars['Float'];
-};
-
-export type QueueMetricsData = {
- __typename?: 'QueueMetricsData';
- data: Array<QueueMetricsSeries>;
- details?: Maybe<WorkerQueueMetrics>;
- queueName: Scalars['String'];
- timeRange: QueueMetricsTimeRange;
- workers: Scalars['Float'];
-};
-
-export type QueueMetricsDataPoint = {
- __typename?: 'QueueMetricsDataPoint';
- x: Scalars['Float'];
- y: Scalars['Float'];
-};
-
-export type QueueMetricsSeries = {
- __typename?: 'QueueMetricsSeries';
- data: Array<QueueMetricsDataPoint>;
- id: Scalars['String'];
-};
-
-export enum QueueMetricsTimeRange {
- FourHours = 'FourHours',
- OneDay = 'OneDay',
- OneHour = 'OneHour',
- SevenDays = 'SevenDays',
- TwelveHours = 'TwelveHours'
-}
-
-export type QueueRetentionConfig = {
- __typename?: 'QueueRetentionConfig';
- completedMaxAge: Scalars['Float'];
- completedMaxCount: Scalars['Float'];
- failedMaxAge: Scalars['Float'];
- failedMaxCount: Scalars['Float'];
-};
-
-export type RatioAggregateConfig = {
- __typename?: 'RatioAggregateConfig';
- fieldMetadataId: Scalars['UUID'];
- optionValue: Scalars['String'];
-};
-
-export type RecordIdentifier = {
- __typename?: 'RecordIdentifier';
- id: Scalars['UUID'];
- imageIdentifier?: Maybe<Scalars['String']>;
- labelIdentifier: Scalars['String'];
-};
-
-export type Relation = {
- __typename?: 'Relation';
- sourceFieldMetadata: Field;
- sourceObjectMetadata: Object;
- targetFieldMetadata: Field;
- targetObjectMetadata: Object;
- type: RelationType;
-};
-
-/** Relation type */
-export enum RelationType {
- MANY_TO_ONE = 'MANY_TO_ONE',
- ONE_TO_MANY = 'ONE_TO_MANY'
-}
-
-export type ResendEmailVerificationTokenOutput = {
- __typename?: 'ResendEmailVerificationTokenOutput';
- success: Scalars['Boolean'];
-};
-
-export type RetryJobsResponse = {
- __typename?: 'RetryJobsResponse';
- results: Array<JobOperationResult>;
- retriedCount: Scalars['Int'];
-};
-
-export type RichTextV2Body = {
- __typename?: 'RichTextV2Body';
- blocknote?: Maybe<Scalars['String']>;
- markdown?: Maybe<Scalars['String']>;
-};
-
-export type Role = {
- __typename?: 'Role';
- agents: Array<Agent>;
- apiKeys: Array<ApiKeyForRole>;
- canAccessAllTools: Scalars['Boolean'];
- canBeAssignedToAgents: Scalars['Boolean'];
- canBeAssignedToApiKeys: Scalars['Boolean'];
- canBeAssignedToUsers: Scalars['Boolean'];
- canDestroyAllObjectRecords: Scalars['Boolean'];
- canReadAllObjectRecords: Scalars['Boolean'];
- canSoftDeleteAllObjectRecords: Scalars['Boolean'];
- canUpdateAllObjectRecords: Scalars['Boolean'];
- canUpdateAllSettings: Scalars['Boolean'];
- description?: Maybe<Scalars['String']>;
- fieldPermissions?: Maybe<Array<FieldPermission>>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isEditable: Scalars['Boolean'];
- label: Scalars['String'];
- objectPermissions?: Maybe<Array<ObjectPermission>>;
- permissionFlags?: Maybe<Array<PermissionFlag>>;
- rowLevelPermissionPredicateGroups?: Maybe<Array<RowLevelPermissionPredicateGroup>>;
- rowLevelPermissionPredicates?: Maybe<Array<RowLevelPermissionPredicate>>;
- universalIdentifier?: Maybe<Scalars['UUID']>;
- workspaceMembers: Array<WorkspaceMember>;
-};
-
-export type RowLevelPermissionPredicate = {
- __typename?: 'RowLevelPermissionPredicate';
- fieldMetadataId: Scalars['String'];
- id: Scalars['String'];
- objectMetadataId: Scalars['String'];
- operand: RowLevelPermissionPredicateOperand;
- positionInRowLevelPermissionPredicateGroup?: Maybe<Scalars['Float']>;
- roleId: Scalars['String'];
- rowLevelPermissionPredicateGroupId?: Maybe<Scalars['String']>;
- subFieldName?: Maybe<Scalars['String']>;
- value?: Maybe<Scalars['JSON']>;
- workspaceMemberFieldMetadataId?: Maybe<Scalars['String']>;
- workspaceMemberSubFieldName?: Maybe<Scalars['String']>;
-};
-
-export type RowLevelPermissionPredicateGroup = {
- __typename?: 'RowLevelPermissionPredicateGroup';
- id: Scalars['String'];
- logicalOperator: RowLevelPermissionPredicateGroupLogicalOperator;
- objectMetadataId: Scalars['String'];
- parentRowLevelPermissionPredicateGroupId?: Maybe<Scalars['String']>;
- positionInRowLevelPermissionPredicateGroup?: Maybe<Scalars['Float']>;
- roleId: Scalars['String'];
-};
-
-export enum RowLevelPermissionPredicateGroupLogicalOperator {
- AND = 'AND',
- OR = 'OR'
-}
-
-export enum RowLevelPermissionPredicateOperand {
- CONTAINS = 'CONTAINS',
- DOES_NOT_CONTAIN = 'DOES_NOT_CONTAIN',
- GREATER_THAN_OR_EQUAL = 'GREATER_THAN_OR_EQUAL',
- IS = 'IS',
- IS_AFTER = 'IS_AFTER',
- IS_BEFORE = 'IS_BEFORE',
- IS_EMPTY = 'IS_EMPTY',
- IS_IN_FUTURE = 'IS_IN_FUTURE',
- IS_IN_PAST = 'IS_IN_PAST',
- IS_NOT = 'IS_NOT',
- IS_NOT_EMPTY = 'IS_NOT_EMPTY',
- IS_NOT_NULL = 'IS_NOT_NULL',
- IS_RELATIVE = 'IS_RELATIVE',
- IS_TODAY = 'IS_TODAY',
- LESS_THAN_OR_EQUAL = 'LESS_THAN_OR_EQUAL',
- VECTOR_SEARCH = 'VECTOR_SEARCH'
-}
-
export type RunWorkflowVersionInput = {
/** Execution result in JSON format */
payload?: InputMaybe<Scalars['JSON']>;
@@ -2430,30 +320,6 @@ export type RunWorkflowVersionOutput = {
workflowRunId: Scalars['UUID'];
};
-export type SsoConnection = {
- __typename?: 'SSOConnection';
- id: Scalars['UUID'];
- issuer: Scalars['String'];
- name: Scalars['String'];
- status: SsoIdentityProviderStatus;
- type: IdentityProviderType;
-};
-
-export type SsoIdentityProvider = {
- __typename?: 'SSOIdentityProvider';
- id: Scalars['UUID'];
- issuer: Scalars['String'];
- name: Scalars['String'];
- status: SsoIdentityProviderStatus;
- type: IdentityProviderType;
-};
-
-export enum SsoIdentityProviderStatus {
- Active = 'Active',
- Error = 'Error',
- Inactive = 'Inactive'
-}
-
export type SearchRecord = {
__typename?: 'SearchRecord';
imageUrl?: Maybe<Scalars['String']>;
@@ -2483,71 +349,6 @@ export type SearchResultPageInfo = {
hasNextPage: Scalars['Boolean'];
};
-export type SendInvitationsOutput = {
- __typename?: 'SendInvitationsOutput';
- errors: Array<Scalars['String']>;
- result: Array<WorkspaceInvitation>;
- /** Boolean that confirms query was dispatched */
- success: Scalars['Boolean'];
-};
-
-export type Sentry = {
- __typename?: 'Sentry';
- dsn?: Maybe<Scalars['String']>;
- environment?: Maybe<Scalars['String']>;
- release?: Maybe<Scalars['String']>;
-};
-
-export type SetupSsoOutput = {
- __typename?: 'SetupSsoOutput';
- id: Scalars['UUID'];
- issuer: Scalars['String'];
- name: Scalars['String'];
- status: SsoIdentityProviderStatus;
- type: IdentityProviderType;
-};
-
-export type SignUpOutput = {
- __typename?: 'SignUpOutput';
- loginToken: AuthToken;
- workspace: WorkspaceUrlsAndId;
-};
-
-export type SignedFile = {
- __typename?: 'SignedFile';
- path: Scalars['String'];
- token: Scalars['String'];
-};
-
-export type Skill = {
- __typename?: 'Skill';
- applicationId?: Maybe<Scalars['UUID']>;
- content: Scalars['String'];
- createdAt: Scalars['DateTime'];
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- isActive: Scalars['Boolean'];
- isCustom: Scalars['Boolean'];
- label: Scalars['String'];
- name: Scalars['String'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type StandaloneRichTextConfiguration = {
- __typename?: 'StandaloneRichTextConfiguration';
- body: RichTextV2Body;
- configurationType: WidgetConfigurationType;
-};
-
-export type StandardOverrides = {
- __typename?: 'StandardOverrides';
- description?: Maybe<Scalars['String']>;
- icon?: Maybe<Scalars['String']>;
- label?: Maybe<Scalars['String']>;
- translations?: Maybe<Scalars['JSON']>;
-};
-
export type SubmitFormStepInput = {
/** Form response in JSON format */
response: Scalars['JSON'];
@@ -2557,50 +358,6 @@ export type SubmitFormStepInput = {
workflowRunId: Scalars['UUID'];
};
-export enum SubscriptionInterval {
- Month = 'Month',
- Year = 'Year'
-}
-
-export enum SubscriptionStatus {
- Active = 'Active',
- Canceled = 'Canceled',
- Incomplete = 'Incomplete',
- IncompleteExpired = 'IncompleteExpired',
- PastDue = 'PastDue',
- Paused = 'Paused',
- Trialing = 'Trialing',
- Unpaid = 'Unpaid'
-}
-
-export type Support = {
- __typename?: 'Support';
- supportDriver: SupportDriver;
- supportFrontChatId?: Maybe<Scalars['String']>;
-};
-
-export enum SupportDriver {
- FRONT = 'FRONT',
- NONE = 'NONE'
-}
-
-export type SystemHealth = {
- __typename?: 'SystemHealth';
- services: Array<SystemHealthService>;
-};
-
-export type SystemHealthService = {
- __typename?: 'SystemHealthService';
- id: HealthIndicatorId;
- label: Scalars['String'];
- status: AdminPanelHealthServiceStatus;
-};
-
-export type TasksConfiguration = {
- __typename?: 'TasksConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
export type TestHttpRequestInput = {
/** Request body */
body?: InputMaybe<Scalars['JSON']>;
@@ -2663,11 +420,6 @@ export type TimelineCalendarEventsWithTotal = {
totalNumberOfCalendarEvents: Scalars['Int'];
};
-export type TimelineConfiguration = {
- __typename?: 'TimelineConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
export type TimelineThread = {
__typename?: 'TimelineThread';
firstParticipant: TimelineThreadParticipant;
@@ -2699,27 +451,6 @@ export type TimelineThreadsWithTotal = {
totalNumberOfThreads: Scalars['Int'];
};
-export type ToolIndexEntry = {
- __typename?: 'ToolIndexEntry';
- category: Scalars['String'];
- description: Scalars['String'];
- inputSchema?: Maybe<Scalars['JSON']>;
- name: Scalars['String'];
- objectName?: Maybe<Scalars['String']>;
-};
-
-export type TransientTokenOutput = {
- __typename?: 'TransientTokenOutput';
- transientToken: AuthToken;
-};
-
-export type TwoFactorAuthenticationMethodDto = {
- __typename?: 'TwoFactorAuthenticationMethodDTO';
- status: Scalars['String'];
- strategy: Scalars['String'];
- twoFactorAuthenticationMethodId: Scalars['UUID'];
-};
-
export type UuidFilter = {
eq?: InputMaybe<Scalars['UUID']>;
gt?: InputMaybe<Scalars['UUID']>;
@@ -2731,23 +462,6 @@ export type UuidFilter = {
neq?: InputMaybe<Scalars['UUID']>;
};
-export type UuidFilterComparison = {
- eq?: InputMaybe<Scalars['UUID']>;
- gt?: InputMaybe<Scalars['UUID']>;
- gte?: InputMaybe<Scalars['UUID']>;
- iLike?: InputMaybe<Scalars['UUID']>;
- in?: InputMaybe<Array<Scalars['UUID']>>;
- is?: InputMaybe<Scalars['Boolean']>;
- isNot?: InputMaybe<Scalars['Boolean']>;
- like?: InputMaybe<Scalars['UUID']>;
- lt?: InputMaybe<Scalars['UUID']>;
- lte?: InputMaybe<Scalars['UUID']>;
- neq?: InputMaybe<Scalars['UUID']>;
- notILike?: InputMaybe<Scalars['UUID']>;
- notIn?: InputMaybe<Array<Scalars['UUID']>>;
- notLike?: InputMaybe<Scalars['UUID']>;
-};
-
export type UpdateWorkflowRunStepInput = {
/** Step to update in JSON format */
step: Scalars['JSON'];
@@ -2769,243 +483,6 @@ export type UpdateWorkflowVersionStepInput = {
workflowVersionId: Scalars['UUID'];
};
-export type UpsertRowLevelPermissionPredicatesResult = {
- __typename?: 'UpsertRowLevelPermissionPredicatesResult';
- predicateGroups: Array<RowLevelPermissionPredicateGroup>;
- predicates: Array<RowLevelPermissionPredicate>;
-};
-
-export type User = {
- __typename?: 'User';
- availableWorkspaces: AvailableWorkspaces;
- canAccessFullAdminPanel: Scalars['Boolean'];
- canImpersonate: Scalars['Boolean'];
- createdAt: Scalars['DateTime'];
- currentUserWorkspace?: Maybe<UserWorkspace>;
- currentWorkspace?: Maybe<Workspace>;
- defaultAvatarUrl?: Maybe<Scalars['String']>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- deletedWorkspaceMembers?: Maybe<Array<DeletedWorkspaceMember>>;
- disabled?: Maybe<Scalars['Boolean']>;
- email: Scalars['String'];
- firstName: Scalars['String'];
- hasPassword: Scalars['Boolean'];
- id: Scalars['UUID'];
- isEmailVerified: Scalars['Boolean'];
- lastName: Scalars['String'];
- locale: Scalars['String'];
- onboardingStatus?: Maybe<OnboardingStatus>;
- passwordHash?: Maybe<Scalars['String']>;
- supportUserHash?: Maybe<Scalars['String']>;
- updatedAt: Scalars['DateTime'];
- userVars?: Maybe<Scalars['JSONObject']>;
- userWorkspaces: Array<UserWorkspace>;
- workspaceMember?: Maybe<WorkspaceMember>;
- workspaceMembers?: Maybe<Array<WorkspaceMember>>;
- workspaces: Array<UserWorkspace>;
-};
-
-export type UserEdge = {
- __typename?: 'UserEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the User */
- node: User;
-};
-
-export type UserInfo = {
- __typename?: 'UserInfo';
- email: Scalars['String'];
- firstName?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- lastName?: Maybe<Scalars['String']>;
-};
-
-export type UserLookup = {
- __typename?: 'UserLookup';
- user: UserInfo;
- workspaces: Array<WorkspaceInfo>;
-};
-
-export type UserWorkspace = {
- __typename?: 'UserWorkspace';
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- id: Scalars['UUID'];
- locale: Scalars['String'];
- objectPermissions?: Maybe<Array<ObjectPermission>>;
- objectsPermissions?: Maybe<Array<ObjectPermission>>;
- permissionFlags?: Maybe<Array<PermissionFlagType>>;
- twoFactorAuthenticationMethodSummary?: Maybe<Array<TwoFactorAuthenticationMethodDto>>;
- updatedAt: Scalars['DateTime'];
- user: User;
- userId: Scalars['UUID'];
-};
-
-export type ValidatePasswordResetTokenOutput = {
- __typename?: 'ValidatePasswordResetTokenOutput';
- email: Scalars['String'];
- hasPassword: Scalars['Boolean'];
- id: Scalars['UUID'];
-};
-
-export type VerificationRecord = {
- __typename?: 'VerificationRecord';
- key: Scalars['String'];
- priority?: Maybe<Scalars['Float']>;
- type: Scalars['String'];
- value: Scalars['String'];
-};
-
-export type VerifyEmailAndGetLoginTokenOutput = {
- __typename?: 'VerifyEmailAndGetLoginTokenOutput';
- loginToken: AuthToken;
- workspaceUrls: WorkspaceUrls;
-};
-
-export type VerifyTwoFactorAuthenticationMethodOutput = {
- __typename?: 'VerifyTwoFactorAuthenticationMethodOutput';
- success: Scalars['Boolean'];
-};
-
-export type VersionInfo = {
- __typename?: 'VersionInfo';
- currentVersion?: Maybe<Scalars['String']>;
- latestVersion: Scalars['String'];
-};
-
-export enum ViewCalendarLayout {
- DAY = 'DAY',
- MONTH = 'MONTH',
- WEEK = 'WEEK'
-}
-
-export type ViewConfiguration = {
- __typename?: 'ViewConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
-export enum ViewFilterGroupLogicalOperator {
- AND = 'AND',
- NOT = 'NOT',
- OR = 'OR'
-}
-
-export enum ViewFilterOperand {
- CONTAINS = 'CONTAINS',
- DOES_NOT_CONTAIN = 'DOES_NOT_CONTAIN',
- GREATER_THAN_OR_EQUAL = 'GREATER_THAN_OR_EQUAL',
- IS = 'IS',
- IS_AFTER = 'IS_AFTER',
- IS_BEFORE = 'IS_BEFORE',
- IS_EMPTY = 'IS_EMPTY',
- IS_IN_FUTURE = 'IS_IN_FUTURE',
- IS_IN_PAST = 'IS_IN_PAST',
- IS_NOT = 'IS_NOT',
- IS_NOT_EMPTY = 'IS_NOT_EMPTY',
- IS_NOT_NULL = 'IS_NOT_NULL',
- IS_RELATIVE = 'IS_RELATIVE',
- IS_TODAY = 'IS_TODAY',
- LESS_THAN_OR_EQUAL = 'LESS_THAN_OR_EQUAL',
- VECTOR_SEARCH = 'VECTOR_SEARCH'
-}
-
-export enum ViewKey {
- INDEX = 'INDEX'
-}
-
-export enum ViewOpenRecordIn {
- RECORD_PAGE = 'RECORD_PAGE',
- SIDE_PANEL = 'SIDE_PANEL'
-}
-
-export enum ViewSortDirection {
- ASC = 'ASC',
- DESC = 'DESC'
-}
-
-export enum ViewType {
- CALENDAR = 'CALENDAR',
- KANBAN = 'KANBAN',
- TABLE = 'TABLE'
-}
-
-export enum ViewVisibility {
- UNLISTED = 'UNLISTED',
- WORKSPACE = 'WORKSPACE'
-}
-
-export type Webhook = {
- __typename?: 'Webhook';
- applicationId: Scalars['UUID'];
- createdAt: Scalars['DateTime'];
- deletedAt?: Maybe<Scalars['DateTime']>;
- description?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
- operations: Array<Scalars['String']>;
- secret: Scalars['String'];
- targetUrl: Scalars['String'];
- updatedAt: Scalars['DateTime'];
-};
-
-export type WidgetConfiguration = AggregateChartConfiguration | BarChartConfiguration | CalendarConfiguration | EmailsConfiguration | FieldConfiguration | FieldRichTextConfiguration | FieldsConfiguration | FilesConfiguration | FrontComponentConfiguration | GaugeChartConfiguration | IframeConfiguration | LineChartConfiguration | NotesConfiguration | PieChartConfiguration | StandaloneRichTextConfiguration | TasksConfiguration | TimelineConfiguration | ViewConfiguration | WorkflowConfiguration | WorkflowRunConfiguration | WorkflowVersionConfiguration;
-
-export enum WidgetConfigurationType {
- AGGREGATE_CHART = 'AGGREGATE_CHART',
- BAR_CHART = 'BAR_CHART',
- CALENDAR = 'CALENDAR',
- EMAILS = 'EMAILS',
- FIELD = 'FIELD',
- FIELDS = 'FIELDS',
- FIELD_RICH_TEXT = 'FIELD_RICH_TEXT',
- FILES = 'FILES',
- FRONT_COMPONENT = 'FRONT_COMPONENT',
- GAUGE_CHART = 'GAUGE_CHART',
- IFRAME = 'IFRAME',
- LINE_CHART = 'LINE_CHART',
- NOTES = 'NOTES',
- PIE_CHART = 'PIE_CHART',
- STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT',
- TASKS = 'TASKS',
- TIMELINE = 'TIMELINE',
- VIEW = 'VIEW',
- WORKFLOW = 'WORKFLOW',
- WORKFLOW_RUN = 'WORKFLOW_RUN',
- WORKFLOW_VERSION = 'WORKFLOW_VERSION'
-}
-
-export enum WidgetType {
- CALENDAR = 'CALENDAR',
- EMAILS = 'EMAILS',
- FIELD = 'FIELD',
- FIELDS = 'FIELDS',
- FIELD_RICH_TEXT = 'FIELD_RICH_TEXT',
- FILES = 'FILES',
- FRONT_COMPONENT = 'FRONT_COMPONENT',
- GRAPH = 'GRAPH',
- IFRAME = 'IFRAME',
- NOTES = 'NOTES',
- STANDALONE_RICH_TEXT = 'STANDALONE_RICH_TEXT',
- TASKS = 'TASKS',
- TIMELINE = 'TIMELINE',
- VIEW = 'VIEW',
- WORKFLOW = 'WORKFLOW',
- WORKFLOW_RUN = 'WORKFLOW_RUN',
- WORKFLOW_VERSION = 'WORKFLOW_VERSION'
-}
-
-export type WorkerQueueMetrics = {
- __typename?: 'WorkerQueueMetrics';
- active: Scalars['Float'];
- completed: Scalars['Float'];
- completedData?: Maybe<Array<Scalars['Float']>>;
- delayed: Scalars['Float'];
- failed: Scalars['Float'];
- failedData?: Maybe<Array<Scalars['Float']>>;
- failureRate: Scalars['Float'];
- waiting: Scalars['Float'];
-};
-
export type WorkflowAction = {
__typename?: 'WorkflowAction';
id: Scalars['UUID'];
@@ -3036,22 +513,12 @@ export enum WorkflowActionType {
UPSERT_RECORD = 'UPSERT_RECORD'
}
-export type WorkflowConfiguration = {
- __typename?: 'WorkflowConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
export type WorkflowRun = {
__typename?: 'WorkflowRun';
id: Scalars['UUID'];
status: WorkflowRunStatusEnum;
};
-export type WorkflowRunConfiguration = {
- __typename?: 'WorkflowRunConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
/** Status of the workflow run */
export enum WorkflowRunStatusEnum {
COMPLETED = 'COMPLETED',
@@ -3081,11 +548,6 @@ export type WorkflowStepPositionUpdateInput = {
position: WorkflowStepPositionInput;
};
-export type WorkflowVersionConfiguration = {
- __typename?: 'WorkflowVersionConfiguration';
- configurationType: WidgetConfigurationType;
-};
-
export type WorkflowVersionDto = {
__typename?: 'WorkflowVersionDTO';
createdAt: Scalars['String'];
@@ -3104,156 +566,6 @@ export type WorkflowVersionStepChanges = {
triggerDiff?: Maybe<Scalars['JSON']>;
};
-export type Workspace = {
- __typename?: 'Workspace';
- activationStatus: WorkspaceActivationStatus;
- aiAdditionalInstructions?: Maybe<Scalars['String']>;
- allowImpersonation: Scalars['Boolean'];
- billingEntitlements: Array<BillingEntitlement>;
- billingSubscriptions: Array<BillingSubscription>;
- createdAt: Scalars['DateTime'];
- currentBillingSubscription?: Maybe<BillingSubscription>;
- customDomain?: Maybe<Scalars['String']>;
- databaseSchema: Scalars['String'];
- databaseUrl: Scalars['String'];
- defaultRole?: Maybe<Role>;
- deletedAt?: Maybe<Scalars['DateTime']>;
- displayName?: Maybe<Scalars['String']>;
- editableProfileFields?: Maybe<Array<Scalars['String']>>;
- eventLogRetentionDays: Scalars['Float'];
- fastModel: Scalars['String'];
- featureFlags?: Maybe<Array<FeatureFlagDto>>;
- hasValidEnterpriseKey: Scalars['Boolean'];
- id: Scalars['UUID'];
- inviteHash?: Maybe<Scalars['String']>;
- isCustomDomainEnabled: Scalars['Boolean'];
- isGoogleAuthBypassEnabled: Scalars['Boolean'];
- isGoogleAuthEnabled: Scalars['Boolean'];
- isMicrosoftAuthBypassEnabled: Scalars['Boolean'];
- isMicrosoftAuthEnabled: Scalars['Boolean'];
- isPasswordAuthBypassEnabled: Scalars['Boolean'];
- isPasswordAuthEnabled: Scalars['Boolean'];
- isPublicInviteLinkEnabled: Scalars['Boolean'];
- isTwoFactorAuthenticationEnforced: Scalars['Boolean'];
- logo?: Maybe<Scalars['String']>;
- metadataVersion: Scalars['Float'];
- routerModel: Scalars['String'];
- smartModel: Scalars['String'];
- subdomain: Scalars['String'];
- trashRetentionDays: Scalars['Float'];
- updatedAt: Scalars['DateTime'];
- version?: Maybe<Scalars['String']>;
- viewFields?: Maybe<Array<CoreViewField>>;
- viewFilterGroups?: Maybe<Array<CoreViewFilterGroup>>;
- viewFilters?: Maybe<Array<CoreViewFilter>>;
- viewGroups?: Maybe<Array<CoreViewGroup>>;
- viewSorts?: Maybe<Array<CoreViewSort>>;
- views?: Maybe<Array<CoreView>>;
- workspaceCustomApplication?: Maybe<Application>;
- workspaceCustomApplicationId: Scalars['String'];
- workspaceMembersCount?: Maybe<Scalars['Float']>;
- workspaceUrls: WorkspaceUrls;
-};
-
-export enum WorkspaceActivationStatus {
- ACTIVE = 'ACTIVE',
- INACTIVE = 'INACTIVE',
- ONGOING_CREATION = 'ONGOING_CREATION',
- PENDING_CREATION = 'PENDING_CREATION',
- SUSPENDED = 'SUSPENDED'
-}
-
-export type WorkspaceEdge = {
- __typename?: 'WorkspaceEdge';
- /** Cursor for this node. */
- cursor: Scalars['ConnectionCursor'];
- /** The node containing the Workspace */
- node: Workspace;
-};
-
-export type WorkspaceInfo = {
- __typename?: 'WorkspaceInfo';
- allowImpersonation: Scalars['Boolean'];
- featureFlags: Array<FeatureFlag>;
- id: Scalars['UUID'];
- logo?: Maybe<Scalars['String']>;
- name: Scalars['String'];
- totalUsers: Scalars['Float'];
- users: Array<UserInfo>;
- workspaceUrls: WorkspaceUrls;
-};
-
-export type WorkspaceInvitation = {
- __typename?: 'WorkspaceInvitation';
- email: Scalars['String'];
- expiresAt: Scalars['DateTime'];
- id: Scalars['UUID'];
-};
-
-export type WorkspaceInviteHashValidOutput = {
- __typename?: 'WorkspaceInviteHashValidOutput';
- isValid: Scalars['Boolean'];
-};
-
-export type WorkspaceMember = {
- __typename?: 'WorkspaceMember';
- avatarUrl?: Maybe<Scalars['String']>;
- calendarStartDay?: Maybe<Scalars['Int']>;
- colorScheme: Scalars['String'];
- dateFormat?: Maybe<WorkspaceMemberDateFormatEnum>;
- id: Scalars['UUID'];
- locale?: Maybe<Scalars['String']>;
- name: FullName;
- numberFormat?: Maybe<WorkspaceMemberNumberFormatEnum>;
- roles?: Maybe<Array<Role>>;
- timeFormat?: Maybe<WorkspaceMemberTimeFormatEnum>;
- timeZone?: Maybe<Scalars['String']>;
- userEmail: Scalars['String'];
- userWorkspaceId?: Maybe<Scalars['UUID']>;
-};
-
-/** Date format as Month first, Day first, Year first or system as default */
-export enum WorkspaceMemberDateFormatEnum {
- DAY_FIRST = 'DAY_FIRST',
- MONTH_FIRST = 'MONTH_FIRST',
- SYSTEM = 'SYSTEM',
- YEAR_FIRST = 'YEAR_FIRST'
-}
-
-/** Number format for displaying numbers */
-export enum WorkspaceMemberNumberFormatEnum {
- APOSTROPHE_AND_DOT = 'APOSTROPHE_AND_DOT',
- COMMAS_AND_DOT = 'COMMAS_AND_DOT',
- DOTS_AND_COMMA = 'DOTS_AND_COMMA',
- SPACES_AND_COMMA = 'SPACES_AND_COMMA',
- SYSTEM = 'SYSTEM'
-}
-
-/** Time time as Military, Standard or system as default */
-export enum WorkspaceMemberTimeFormatEnum {
- HOUR_12 = 'HOUR_12',
- HOUR_24 = 'HOUR_24',
- SYSTEM = 'SYSTEM'
-}
-
-export type WorkspaceNameAndId = {
- __typename?: 'WorkspaceNameAndId';
- displayName?: Maybe<Scalars['String']>;
- id: Scalars['UUID'];
-};
-
-export type WorkspaceUrls = {
- __typename?: 'WorkspaceUrls';
- customUrl?: Maybe<Scalars['String']>;
- subdomainUrl: Scalars['String'];
-};
-
-export type WorkspaceUrlsAndId = {
- __typename?: 'WorkspaceUrlsAndId';
- id: Scalars['UUID'];
- workspaceUrls: WorkspaceUrls;
-};
-
export type TimelineCalendarEventFragmentFragment = { __typename?: 'TimelineCalendarEvent', id: any, title: string, description: string, location: string, startsAt: string, endsAt: string, isFullDay: boolean, visibility: CalendarChannelVisibility, participants: Array<{ __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string }> };
export type TimelineCalendarEventParticipantFragmentFragment = { __typename?: 'TimelineCalendarEventParticipant', personId?: any | null, workspaceMemberId?: any | null, firstName: string, lastName: string, displayName: string, avatarUrl: string, handle: string };
diff --git a/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts b/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts
index e269a0f6f77..e2b122f5ad6 100644
--- a/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts
+++ b/packages/twenty-front/src/hooks/__tests__/usePageChangeEffectNavigateLocation.test.ts
@@ -7,7 +7,7 @@ import { useRecoilValue } from 'recoil';
import { AppPath, SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { useIsCurrentLocationOnAWorkspace } from '@/domain-manager/hooks/useIsCurrentLocationOnAWorkspace';
import { usePageChangeEffectNavigateLocation } from '~/hooks/usePageChangeEffectNavigateLocation';
diff --git a/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts b/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts
index dbd693ea9f4..b72462db85d 100644
--- a/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts
+++ b/packages/twenty-front/src/hooks/usePageChangeEffectNavigateLocation.ts
@@ -11,7 +11,7 @@ import { useRecoilValue } from 'recoil';
import { AppPath, SettingsPath } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import { WorkspaceActivationStatus } from 'twenty-shared/workspace';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { isMatchingLocation } from '~/utils/isMatchingLocation';
export const usePageChangeEffectNavigateLocation = () => {
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx
index 01589207c7d..b9705ec579d 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/constants/DefaultRecordActionsConfig.tsx
@@ -66,8 +66,10 @@ import {
} from 'twenty-ui/display';
import { isDefined } from 'twenty-shared/utils';
-import { PermissionFlagType } from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
+import {
+ PermissionFlagType,
+ FeatureFlagKey,
+} from '~/generated-metadata/graphql';
export const DEFAULT_RECORD_ACTIONS_CONFIG: Record<
| NoSelectionRecordActionKeys
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx
index bfbc5ba6362..93a36a15286 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/AddToFavoritesSingleRecordAction.tsx
@@ -7,7 +7,7 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const AddToFavoritesSingleRecordAction = () => {
const { objectMetadataItem } = useContextStoreObjectMetadataItemOrThrow();
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx
index 2c78c7d8b09..32b8bb74bfd 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/DeleteSingleRecordAction.tsx
@@ -10,7 +10,7 @@ import { useRecordIndexIdFromCurrentContextStore } from '@/object-record/record-
import { useResetTableRowSelection } from '@/object-record/record-table/hooks/internal/useResetTableRowSelection';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const DeleteSingleRecordAction = () => {
const { recordIndexId, objectMetadataItem } =
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx
index 30ee9384432..afe61abbe43 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-actions/single-record/components/RemoveFromFavoritesSingleRecordAction.tsx
@@ -7,7 +7,7 @@ import { useDeleteNavigationMenuItem } from '@/navigation-menu-item/hooks/useDel
import { usePrefetchedNavigationMenuItemsData } from '@/navigation-menu-item/hooks/usePrefetchedNavigationMenuItemsData';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const RemoveFromFavoritesSingleRecordAction = () => {
const recordId = useSelectedRecordIdOrThrow();
diff --git a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts
index ad972ec128e..8c59c276927 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts
+++ b/packages/twenty-front/src/modules/action-menu/actions/record-agnostic-actions/hooks/useRecordAgnosticActions.ts
@@ -2,7 +2,7 @@ import { RECORD_AGNOSTIC_ACTIONS_CONFIG } from '@/action-menu/actions/record-agn
import { RecordAgnosticActionsKeys } from '@/action-menu/actions/record-agnostic-actions/types/RecordAgnosticActionsKeys';
import { type ActionConfig } from '@/action-menu/actions/types/ActionConfig';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const useRecordAgnosticActions = () => {
const isAiEnabled = useIsFeatureEnabled(FeatureFlagKey.IS_AI_ENABLED);
diff --git a/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts b/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts
index 3f9cb59a9d2..c58696275d7 100644
--- a/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts
+++ b/packages/twenty-front/src/modules/action-menu/actions/types/ShouldBeRegisteredFunctionParams.ts
@@ -4,7 +4,7 @@ import { type RecordFilter } from '@/object-record/record-filter/types/RecordFil
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { type WorkflowWithCurrentVersion } from '@/workflow/types/Workflow';
import { type ObjectPermissions } from 'twenty-shared/types';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
export type ShouldBeRegisteredFunctionParams = {
objectMetadataItem?: ObjectMetadataItem;
diff --git a/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts b/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts
index 34e9966240f..2bc37469290 100644
--- a/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts
+++ b/packages/twenty-front/src/modules/action-menu/hooks/useShouldActionBeRegisteredParams.ts
@@ -20,7 +20,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useContext, useMemo } from 'react';
import { useRecoilCallback, useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const useShouldActionBeRegisteredParams = ({
objectMetadataItem,
diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx
index 770ee9ea727..a8ff11d6467 100644
--- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx
+++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventParticipantsAvatarGroup.tsx
@@ -2,7 +2,7 @@ import { type CalendarEventParticipant } from '@/activities/calendar/types/Calen
import { isTimelineCalendarEventParticipant } from '@/activities/calendar/types/guards/IsTimelineCalendarEventParticipant';
import { isDefined } from 'twenty-shared/utils';
import { Avatar, AvatarGroup } from 'twenty-ui/display';
-import { type TimelineCalendarEventParticipant } from '~/generated-metadata/graphql';
+import { type TimelineCalendarEventParticipant } from '~/generated/graphql';
type CalendarEventParticipantsAvatarGroupProps = {
participants: CalendarEventParticipant[] | TimelineCalendarEventParticipant[];
diff --git a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx
index 71e1218fe08..9e72fede5a6 100644
--- a/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx
+++ b/packages/twenty-front/src/modules/activities/calendar/components/CalendarEventRow.tsx
@@ -3,6 +3,10 @@ import styled from '@emotion/styled';
import { t } from '@lingui/core/macro';
import { format } from 'date-fns';
import { useRecoilValue } from 'recoil';
+import {
+ CalendarChannelVisibility,
+ type TimelineCalendarEvent,
+} from '~/generated/graphql';
import { CalendarEventNotSharedContent } from '@/activities/calendar/components/CalendarEventNotSharedContent';
import { CalendarEventParticipantsAvatarGroup } from '@/activities/calendar/components/CalendarEventParticipantsAvatarGroup';
@@ -12,10 +16,6 @@ import { hasCalendarEventEnded } from '@/activities/calendar/utils/hasCalendarEv
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
import { useOpenCalendarEventInCommandMenu } from '@/command-menu/hooks/useOpenCalendarEventInCommandMenu';
import { IconArrowRight } from 'twenty-ui/display';
-import {
- CalendarChannelVisibility,
- type TimelineCalendarEvent,
-} from '~/generated-metadata/graphql';
type CalendarEventRowProps = {
calendarEvent: TimelineCalendarEvent;
diff --git a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx
index 1b25109cf5b..d1c6e086815 100644
--- a/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx
+++ b/packages/twenty-front/src/modules/activities/calendar/components/__stories__/Calendar.stories.tsx
@@ -7,7 +7,7 @@ import { getTimelineCalendarEventsFromCompanyId } from '@/activities/calendar/gr
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { ComponentDecorator } from 'twenty-ui/testing';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
import { graphqlMocks } from '~/testing/graphqlMocks';
diff --git a/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts b/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts
index 58d35384e44..282a27276a7 100644
--- a/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts
+++ b/packages/twenty-front/src/modules/activities/calendar/types/guards/IsTimelineCalendarEventParticipant.ts
@@ -1,5 +1,5 @@
import { type CalendarEventParticipant } from '@/activities/calendar/types/CalendarEventParticipant';
-import { type TimelineCalendarEventParticipant } from '~/generated-metadata/graphql';
+import { type TimelineCalendarEventParticipant } from '~/generated/graphql';
export const isTimelineCalendarEventParticipant = (
participant: CalendarEventParticipant | TimelineCalendarEventParticipant,
diff --git a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
index db0f29f3fbb..eb69a2c820e 100644
--- a/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
+++ b/packages/twenty-front/src/modules/activities/components/ActivityRichTextEditor.tsx
@@ -42,7 +42,7 @@ import '@blocknote/mantine/style.css';
import { useCreateBlockNote } from '@blocknote/react';
import '@blocknote/react/style.css';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type ActivityRichTextEditorProps = {
activityId: string;
diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
index 2c80022b6b5..59b22ebaca4 100644
--- a/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
+++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentList.tsx
@@ -20,8 +20,10 @@ import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
import { IconDownload, IconX } from 'twenty-ui/display';
import { IconButton } from 'twenty-ui/input';
-import { PermissionFlagType } from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
+import {
+ PermissionFlagType,
+ FeatureFlagKey,
+} from '~/generated-metadata/graphql';
import { AttachmentRow } from './AttachmentRow';
const DocumentViewer = lazy(() =>
diff --git a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx
index aa9ae7b7c8a..bbdf40cd34c 100644
--- a/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx
+++ b/packages/twenty-front/src/modules/activities/files/components/AttachmentRow.tsx
@@ -22,8 +22,10 @@ import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFla
import { t } from '@lingui/core/macro';
import { IconCalendar, OverflowingTextWithTooltip } from 'twenty-ui/display';
import { isNavigationModifierPressed } from 'twenty-ui/utilities';
-import { PermissionFlagType } from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
+import {
+ PermissionFlagType,
+ FeatureFlagKey,
+} from '~/generated-metadata/graphql';
import { formatToHumanReadableDate } from '~/utils/date-utils';
import { getFileNameAndExtension } from '~/utils/file/getFileNameAndExtension';
diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx
index 848bf8b9e52..5b77b8d4f4d 100644
--- a/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx
+++ b/packages/twenty-front/src/modules/activities/files/hooks/useAttachments.tsx
@@ -4,7 +4,7 @@ import { getActivityTargetObjectFieldIdName } from '@/activities/utils/getActivi
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const useAttachments = (targetableObject: ActivityTargetableObject) => {
const isAttachmentMigrated = useIsFeatureEnabled(
diff --git a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx
index 6dd05ecd8c5..fddf7930d61 100644
--- a/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx
+++ b/packages/twenty-front/src/modules/activities/files/hooks/useUploadAttachmentFile.tsx
@@ -13,8 +13,9 @@ import {
FileFolder,
useUploadFileMutation,
useUploadFilesFieldFileMutation,
+ FeatureFlagKey,
+ FieldMetadataType,
} from '~/generated-metadata/graphql';
-import { FeatureFlagKey, FieldMetadataType } from '~/generated/graphql';
export const useUploadAttachmentFile = () => {
const coreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts b/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts
index 1e9ff0e4baf..85ec4f68821 100644
--- a/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts
+++ b/packages/twenty-front/src/modules/activities/hooks/useActivityTargetsForTargetableObjects.ts
@@ -12,7 +12,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { useFindManyRecords } from '@/object-record/hooks/useFindManyRecords';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const useActivityTargetsForTargetableObjects = ({
objectNameSingular,
diff --git a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts
index f34cb2684f3..8915d56c5ff 100644
--- a/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts
+++ b/packages/twenty-front/src/modules/activities/hooks/usePrepareFindManyActivitiesQuery.ts
@@ -15,7 +15,7 @@ import { useObjectPermissions } from '@/object-record/hooks/useObjectPermissions
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { sortByAscString } from '~/utils/array/sortByAscString';
export const usePrepareFindManyActivitiesQuery = ({
diff --git a/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts b/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts
index 3cefaeeca69..301dabc7ea6 100644
--- a/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts
+++ b/packages/twenty-front/src/modules/activities/inline-cell/hooks/useUpdateActivityTargetFromCell.ts
@@ -15,7 +15,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useRecoilCallback, useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type UpdateActivityTargetFromCellProps = {
recordPickerInstanceId: string;
diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx
index 46ae711ab78..abc643e76e2 100644
--- a/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx
+++ b/packages/twenty-front/src/modules/activities/timeline-activities/components/__stories__/TimelineActivities.stories.tsx
@@ -6,7 +6,7 @@ import { TimelineActivityContext } from '@/activities/timeline-activities/contex
import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSingular';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { ComponentDecorator } from 'twenty-ui/testing';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { SnackBarDecorator } from '~/testing/decorators/SnackBarDecorator';
import { mockedTimelineActivities } from '~/testing/mock-data/timeline-activities';
diff --git a/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts b/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts
index 8f0beb6df9b..96cc1bc0ce6 100644
--- a/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts
+++ b/packages/twenty-front/src/modules/activities/timeline-activities/types/TimelineActivity.ts
@@ -1,5 +1,5 @@
import { isDefined } from 'twenty-shared/utils';
-import { type WorkspaceMember } from '~/generated/graphql';
+import { type WorkspaceMember } from '~/generated-metadata/graphql';
export type TimelineActivity = {
id: string;
diff --git a/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx b/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx
index ac5810f849c..c482a5c9787 100644
--- a/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx
+++ b/packages/twenty-front/src/modules/ai/components/AgentChatProvider.tsx
@@ -4,7 +4,7 @@ import { useAgentChat } from '@/ai/hooks/useAgentChat';
import { useAgentChatData } from '@/ai/hooks/useAgentChatData';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { Suspense } from 'react';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const AgentChatProviderContent = ({
children,
diff --git a/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts b/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts
index aaf65b4eb0a..0d8395b44f6 100644
--- a/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts
+++ b/packages/twenty-front/src/modules/ai/utils/mapDBMessagesToUIMessages.ts
@@ -1,6 +1,6 @@
import { mapDBPartToUIMessagePart } from '@/ai/utils/mapDBPartToUIMessagePart';
import { type ExtendedUIMessage } from 'twenty-shared/ai';
-import { type AgentMessage } from '~/generated/graphql';
+import { type AgentMessage } from '~/generated-metadata/graphql';
export const mapDBMessagesToUIMessages = (
dbMessages: AgentMessage[],
diff --git a/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts b/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts
index 5bb6d60a0a0..ccef19433fc 100644
--- a/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts
+++ b/packages/twenty-front/src/modules/ai/utils/mapDBPartToUIMessagePart.ts
@@ -1,6 +1,6 @@
import { type ReasoningUIPart, type ToolUIPart } from 'ai';
import { type ExtendedUIMessagePart } from 'twenty-shared/ai';
-import { type AgentMessagePart } from '~/generated/graphql';
+import { type AgentMessagePart } from '~/generated-metadata/graphql';
export const mapDBPartToUIMessagePart = (
part: AgentMessagePart,
diff --git a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts
index 45d5c586b82..e60c23cfd10 100644
--- a/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts
+++ b/packages/twenty-front/src/modules/apollo/services/__tests__/apollo.factory.test.ts
@@ -5,7 +5,7 @@ import { DEFAULT_FAST_MODEL } from '@/ai/constants/DefaultFastModel';
import { DEFAULT_SMART_MODEL } from '@/ai/constants/DefaultSmartModel';
import { ApolloFactory, type Options } from '@/apollo/services/apollo.factory';
import { CUSTOM_WORKSPACE_APPLICATION_MOCK } from '@/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant';
-import { WorkspaceActivationStatus } from '~/generated/graphql';
+import { WorkspaceActivationStatus } from '~/generated-metadata/graphql';
enableFetchMocks();
diff --git a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts
index 02b934c907e..8a0c5d29ff6 100644
--- a/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts
+++ b/packages/twenty-front/src/modules/apollo/services/apollo.factory.ts
@@ -18,7 +18,7 @@ import { createUploadLink } from 'apollo-upload-client';
import { renewToken } from '@/auth/services/AuthService';
import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMemberState';
import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState';
-import { type AuthTokenPair } from '~/generated/graphql';
+import { type AuthTokenPair } from '~/generated-metadata/graphql';
import { logDebug } from '~/utils/logDebug';
import { REST_API_BASE_URL } from '@/apollo/constant/rest-api-base-url';
diff --git a/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts b/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts
index 564caa49916..8a213e655f9 100644
--- a/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts
+++ b/packages/twenty-front/src/modules/apollo/utils/getTokenPair.ts
@@ -1,5 +1,5 @@
import { isDefined } from 'twenty-shared/utils';
-import { type AuthTokenPair } from '~/generated/graphql';
+import { type AuthTokenPair } from '~/generated-metadata/graphql';
import { cookieStorage } from '~/utils/cookie-storage';
import { isValidAuthTokenPair } from './isValidAuthTokenPair';
diff --git a/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts b/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts
index 43896d19c61..f9d742bb933 100644
--- a/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts
+++ b/packages/twenty-front/src/modules/apollo/utils/isValidAuthTokenPair.ts
@@ -1,4 +1,4 @@
-import { type AuthTokenPair } from '~/generated/graphql';
+import { type AuthTokenPair } from '~/generated-metadata/graphql';
export const isValidAuthTokenPair = (
tokenPair: any,
diff --git a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
index 91bb70e77f3..e26ca005392 100644
--- a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
+++ b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
@@ -5,7 +5,10 @@ import { SettingsProtectedRouteWrapper } from '@/settings/components/SettingsPro
import { SettingsSkeletonLoader } from '@/settings/components/SettingsSkeletonLoader';
import { SettingPublicDomain } from '@/settings/domains/components/SettingPublicDomain';
import { SettingsPath } from 'twenty-shared/types';
-import { FeatureFlagKey, PermissionFlagType } from '~/generated/graphql';
+import {
+ FeatureFlagKey,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
const SettingsGraphQLPlayground = lazy(() =>
import(
diff --git a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx
index 78e0afc9b52..6a0bcacd7cc 100644
--- a/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx
+++ b/packages/twenty-front/src/modules/auth/hooks/__tests__/useAuth.test.tsx
@@ -21,7 +21,7 @@ import { isMultiWorkspaceEnabledState } from '@/client-config/states/isMultiWork
import { SnackBarComponentInstanceContext } from '@/ui/feedback/snack-bar-manager/contexts/SnackBarComponentInstanceContext';
import { renderHook } from '@testing-library/react';
import { iconsState } from 'twenty-ui/display';
-import { SupportDriver } from '~/generated/graphql';
+import { SupportDriver } from '~/generated-metadata/graphql';
const redirectSpy = jest.fn();
diff --git a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts
index d754f082ef0..6517ae5823e 100644
--- a/packages/twenty-front/src/modules/auth/hooks/useAuth.ts
+++ b/packages/twenty-front/src/modules/auth/hooks/useAuth.ts
@@ -24,6 +24,7 @@ import {
useVerifyEmailAndGetLoginTokenMutation,
useVerifyEmailAndGetWorkspaceAgnosticTokenMutation,
type AuthTokenPair,
+ type AuthToken,
} from '~/generated-metadata/graphql';
import { tokenPairState } from '@/auth/states/tokenPairState';
@@ -67,7 +68,6 @@ import { useNavigate, useSearchParams } from 'react-router-dom';
import { SOURCE_LOCALE } from 'twenty-shared/translations';
import { isDefined } from 'twenty-shared/utils';
import { iconsState } from 'twenty-ui/display';
-import { type AuthToken } from '~/generated/graphql';
import { cookieStorage } from '~/utils/cookie-storage';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
index bc6981ce0ca..be12892345a 100644
--- a/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
+++ b/packages/twenty-front/src/modules/auth/sign-in-up/components/SignInUpGlobalScopeForm.tsx
@@ -27,7 +27,7 @@ import {
IconChevronRight,
IconPlus,
} from 'twenty-ui/display';
-import { type AvailableWorkspace } from '~/generated/graphql';
+import { type AvailableWorkspace } from '~/generated-metadata/graphql';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
const StyledContentContainer = styled(motion.div)`
diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts
index faa494074f5..48dfe7965f0 100644
--- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts
+++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/__tests__/useSignInWithGoogle.test.ts
@@ -2,7 +2,10 @@ import { useAuth } from '@/auth/hooks/useAuth';
import { useSignInWithGoogle } from '@/auth/sign-in-up/hooks/useSignInWithGoogle';
import { renderHook } from '@testing-library/react';
import { useParams, useSearchParams } from 'react-router-dom';
-import { BillingPlanKey, SubscriptionInterval } from '~/generated/graphql';
+import {
+ BillingPlanKey,
+ SubscriptionInterval,
+} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
jest.mock('react-router-dom', () => ({
diff --git a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts
index dd741cd037d..a8ad23af787 100644
--- a/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts
+++ b/packages/twenty-front/src/modules/auth/sign-in-up/hooks/useSignInWithGoogle.ts
@@ -3,8 +3,10 @@ import { useParams, useSearchParams } from 'react-router-dom';
import { useAuth } from '@/auth/hooks/useAuth';
import { type BillingCheckoutSession } from '@/auth/types/billingCheckoutSession.type';
import { type SocialSSOSignInUpActionType } from '@/auth/types/socialSSOSignInUp.type';
-import { BillingPlanKey } from '~/generated/graphql';
-import { SubscriptionInterval } from '~/generated-metadata/graphql';
+import {
+ BillingPlanKey,
+ SubscriptionInterval,
+} from '~/generated-metadata/graphql';
export const useSignInWithGoogle = () => {
const workspaceInviteHash = useParams().workspaceInviteHash;
diff --git a/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts b/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts
index 9a4a8d93585..0d17f2a47d9 100644
--- a/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts
+++ b/packages/twenty-front/src/modules/auth/states/availableWorkspacesState.ts
@@ -1,5 +1,5 @@
import { createState } from 'twenty-ui/utilities';
-import { type AvailableWorkspaces } from '~/generated/graphql';
+import { type AvailableWorkspaces } from '~/generated-metadata/graphql';
export const availableWorkspacesState = createState<AvailableWorkspaces>({
key: 'availableWorkspacesState',
diff --git a/packages/twenty-front/src/modules/auth/states/currentUserState.ts b/packages/twenty-front/src/modules/auth/states/currentUserState.ts
index 3ff6b14de05..2f7dd33de16 100644
--- a/packages/twenty-front/src/modules/auth/states/currentUserState.ts
+++ b/packages/twenty-front/src/modules/auth/states/currentUserState.ts
@@ -1,5 +1,5 @@
import { createState } from 'twenty-ui/utilities';
-import { type User } from '~/generated/graphql';
+import { type User } from '~/generated-metadata/graphql';
export type CurrentUser = Pick<
User,
diff --git a/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts b/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts
index d3c1375529b..954640a4166 100644
--- a/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts
+++ b/packages/twenty-front/src/modules/auth/states/currentUserWorkspaceState.ts
@@ -1,6 +1,6 @@
import { type ObjectPermissions } from 'twenty-shared/types';
import { createState } from 'twenty-ui/utilities';
-import { type UserWorkspace } from '~/generated/graphql';
+import { type UserWorkspace } from '~/generated-metadata/graphql';
export type CurrentUserWorkspace = Pick<
UserWorkspace,
diff --git a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts
index 5483ef84d0a..8f0ba979983 100644
--- a/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts
+++ b/packages/twenty-front/src/modules/auth/states/currentWorkspaceState.ts
@@ -3,7 +3,7 @@ import {
type Application,
type Role,
type Workspace,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type CurrentWorkspace = Pick<
Workspace,
diff --git a/packages/twenty-front/src/modules/auth/states/loginTokenState.ts b/packages/twenty-front/src/modules/auth/states/loginTokenState.ts
index 46a05a2fde7..25ec477fb3b 100644
--- a/packages/twenty-front/src/modules/auth/states/loginTokenState.ts
+++ b/packages/twenty-front/src/modules/auth/states/loginTokenState.ts
@@ -1,5 +1,5 @@
import { createState } from 'twenty-ui/utilities';
-import { type AuthToken } from '~/generated/graphql';
+import { type AuthToken } from '~/generated-metadata/graphql';
export const loginTokenState = createState<AuthToken['token'] | null>({
key: 'loginTokenState',
diff --git a/packages/twenty-front/src/modules/auth/states/tokenPairState.ts b/packages/twenty-front/src/modules/auth/states/tokenPairState.ts
index 35addfdcfb4..ac9a4beda48 100644
--- a/packages/twenty-front/src/modules/auth/states/tokenPairState.ts
+++ b/packages/twenty-front/src/modules/auth/states/tokenPairState.ts
@@ -1,5 +1,5 @@
import { createState } from 'twenty-ui/utilities';
-import { type AuthTokenPair } from '~/generated/graphql';
+import { type AuthTokenPair } from '~/generated-metadata/graphql';
import { cookieStorageEffect } from '~/utils/recoil/cookieStorageEffect';
export const tokenPairState = createState<AuthTokenPair | null>({
diff --git a/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts b/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts
index 0e76b4528cd..18c182c0acd 100644
--- a/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts
+++ b/packages/twenty-front/src/modules/auth/states/workspacePublicDataState.ts
@@ -1,4 +1,4 @@
-import { type PublicWorkspaceDataOutput } from '~/generated/graphql';
+import { type PublicWorkspaceDataOutput } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const workspacePublicDataState =
diff --git a/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts b/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts
index 375190c62da..777fcd71cab 100644
--- a/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts
+++ b/packages/twenty-front/src/modules/auth/types/billingCheckoutSession.type.ts
@@ -1,5 +1,7 @@
-import { type SubscriptionInterval } from '~/generated-metadata/graphql';
-import { type BillingPlanKey } from '~/generated/graphql';
+import {
+ type SubscriptionInterval,
+ type BillingPlanKey,
+} from '~/generated-metadata/graphql';
export type BillingCheckoutSession = {
plan: BillingPlanKey;
diff --git a/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts b/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts
index ae599dd6d21..0a3c7ddf5d9 100644
--- a/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts
+++ b/packages/twenty-front/src/modules/auth/utils/__tests__/availableWorkspacesUtils.test.ts
@@ -2,7 +2,7 @@ import { AppPath } from 'twenty-shared/types';
import {
type AvailableWorkspace,
type AvailableWorkspaces,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import {
countAvailableWorkspaces,
getAvailableWorkspacePathAndSearchParams,
diff --git a/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts b/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts
index 0443e47414d..e10356e4910 100644
--- a/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts
+++ b/packages/twenty-front/src/modules/auth/utils/availableWorkspacesUtils.ts
@@ -4,7 +4,7 @@ import { isDefined } from 'twenty-shared/utils';
import {
type AvailableWorkspace,
type AvailableWorkspaces,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const countAvailableWorkspaces = ({
availableWorkspacesForSignIn,
diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
index 892f48d65b4..21ce641689a 100644
--- a/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
+++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingCreditsSection.tsx
@@ -15,7 +15,7 @@ import { formatToShortNumber } from 'twenty-shared/utils';
import { H2Title } from 'twenty-ui/display';
import { ProgressBar } from 'twenty-ui/feedback';
import { Section } from 'twenty-ui/layout';
-import { SubscriptionStatus } from '~/generated/graphql';
+import { SubscriptionStatus } from '~/generated-metadata/graphql';
const StyledLineSeparator = styled.div`
width: 100%;
diff --git a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
index ea1f095efd0..e4a7f350806 100644
--- a/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
+++ b/packages/twenty-front/src/modules/billing/components/SettingsBillingSubscriptionInfo.tsx
@@ -55,8 +55,8 @@ import {
useCancelSwitchMeteredPriceMutation,
useSwitchBillingPlanMutation,
useSwitchSubscriptionIntervalMutation,
+ SubscriptionStatus,
} from '~/generated-metadata/graphql';
-import { SubscriptionStatus } from '~/generated/graphql';
import { beautifyExactDate } from '~/utils/date-utils';
const SWITCH_BILLING_INTERVAL_TO_MONTHLY_MODAL_ID =
diff --git a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx
index b0afbeecef8..bcbb10b174e 100644
--- a/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx
+++ b/packages/twenty-front/src/modules/billing/components/internal/MeteredPriceSelector.tsx
@@ -18,8 +18,10 @@ import { useRecoilState } from 'recoil';
import { findOrThrow, isDefined } from 'twenty-shared/utils';
import { H2Title } from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
-import { useSetMeteredSubscriptionPriceMutation } from '~/generated-metadata/graphql';
-import { SubscriptionInterval } from '~/generated/graphql';
+import {
+ useSetMeteredSubscriptionPriceMutation,
+ SubscriptionInterval,
+} from '~/generated-metadata/graphql';
const StyledRow = styled.div`
align-items: flex-end;
diff --git a/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts
index 11c189c16dd..ddc84f070e9 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useAllBillingPrices.ts
@@ -2,7 +2,7 @@ import { usePlans } from '@/billing/hooks/usePlans';
import {
type BillingPriceLicensed,
type BillingPriceMetered,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useAllBillingPrices = () => {
const { listPlans } = usePlans();
diff --git a/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts b/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts
index 978d5f31db3..861b73b40ab 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval.ts
@@ -1,5 +1,7 @@
-import { type SubscriptionInterval } from '~/generated-metadata/graphql';
-import { type BillingPlanKey } from '~/generated/graphql';
+import {
+ type SubscriptionInterval,
+ type BillingPlanKey,
+} from '~/generated-metadata/graphql';
import { findOrThrow } from 'twenty-shared/utils';
import { useBaseProductByPlanKey } from '@/billing/hooks/useBaseProductByPlanKey';
diff --git a/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts b/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts
index 76cedf48f49..9e7ef45bc3e 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useBaseProductByPlanKey.ts
@@ -1,4 +1,7 @@
-import { BillingProductKey, type BillingPlanKey } from '~/generated/graphql';
+import {
+ BillingProductKey,
+ type BillingPlanKey,
+} from '~/generated-metadata/graphql';
import { findOrThrow } from 'twenty-shared/utils';
import { usePlanByPlanKey } from '@/billing/hooks/usePlanByPlanKey';
diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts
index 2188bc1c52b..0417fdb34c4 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentBillingFlags.ts
@@ -1,5 +1,7 @@
-import { SubscriptionInterval } from '~/generated-metadata/graphql';
-import { BillingPlanKey } from '~/generated/graphql';
+import {
+ SubscriptionInterval,
+ BillingPlanKey,
+} from '~/generated-metadata/graphql';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { useRecoilValue } from 'recoil';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts
index 4d03908d5b0..b2f868bdd2e 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentMetered.ts
@@ -1,10 +1,12 @@
-import { type SubscriptionInterval } from '~/generated-metadata/graphql';
-import { BillingProductKey } from '~/generated/graphql';
-import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils';
-import type { MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type';
-import { useCurrentPlan } from '@/billing/hooks/useCurrentPlan';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { useCurrentPlan } from '@/billing/hooks/useCurrentPlan';
+import type { MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type';
import { useRecoilValue } from 'recoil';
+import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils';
+import {
+ BillingProductKey,
+ type SubscriptionInterval,
+} from '~/generated-metadata/graphql';
export const useCurrentMetered = () => {
const { currentPlan } = useCurrentPlan();
diff --git a/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts b/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts
index d4e55c4790f..9bb08280f94 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useCurrentPlan.ts
@@ -1,4 +1,4 @@
-import { BillingPlanKey } from '~/generated/graphql';
+import { BillingPlanKey } from '~/generated-metadata/graphql';
import { assertIsDefinedOrThrow, findOrThrow } from 'twenty-shared/utils';
import { usePlans } from './usePlans';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
diff --git a/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts
index 999dd80c84b..d8cd8448ecc 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useFormatPrices.ts
@@ -1,4 +1,7 @@
-import { BillingPlanKey, SubscriptionInterval } from '~/generated/graphql';
+import {
+ BillingPlanKey,
+ SubscriptionInterval,
+} from '~/generated-metadata/graphql';
import { useBaseLicensedPriceByPlanKeyAndInterval } from '@/billing/hooks/useBaseLicensedPriceByPlanKeyAndInterval';
export const useFormatPrices = () => {
diff --git a/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts b/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts
index 74e02410697..0f6a8487410 100644
--- a/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/usePlanByPlanKey.ts
@@ -1,4 +1,4 @@
-import { type BillingPlanKey } from '~/generated/graphql';
+import { type BillingPlanKey } from '~/generated-metadata/graphql';
import { findOrThrow } from 'twenty-shared/utils';
import { usePlans } from './usePlans';
diff --git a/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts b/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts
index 90b64dfc191..d6947600a4b 100644
--- a/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/usePriceAndBillingUsageByPriceId.ts
@@ -3,7 +3,7 @@ import {
type BillingPriceLicensed,
type BillingPriceMetered,
BillingUsageType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { useAllBillingPrices } from './useAllBillingPrices';
export const usePriceAndBillingUsageByPriceId = () => {
diff --git a/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts b/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts
index f8ff7f1ef57..9a9139fcc38 100644
--- a/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts
+++ b/packages/twenty-front/src/modules/billing/hooks/useSplitPhaseItemsInPrices.ts
@@ -2,9 +2,9 @@ import { useNextBillingPhase } from '@/billing/hooks/useNextBillingPhase';
import { usePriceAndBillingUsageByPriceId } from '@/billing/hooks/usePriceAndBillingUsageByPriceId';
import { type MeteredBillingPrice } from '@/billing/types/billing-price-tiers.type';
import {
- type BillingPriceLicensed,
BillingUsageType,
-} from '~/generated/graphql';
+ type BillingPriceLicensed,
+} from '~/generated-metadata/graphql';
export const useSplitPhaseItemsInPrices = () => {
const { nextBillingPhase } = useNextBillingPhase();
diff --git a/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts b/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts
index 64cbd7d0fbb..96d345588f3 100644
--- a/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts
+++ b/packages/twenty-front/src/modules/billing/types/billing-price-tiers.type.ts
@@ -1,4 +1,4 @@
-import type { BillingPriceMetered } from '~/generated/graphql';
+import type { BillingPriceMetered } from '~/generated-metadata/graphql';
export type BillingPriceTiers = [
{
diff --git a/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx b/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx
index 65b8350a78c..e58972d07b8 100644
--- a/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx
+++ b/packages/twenty-front/src/modules/captcha/components/CaptchaProviderScriptLoaderEffect.tsx
@@ -9,7 +9,7 @@ import { isCaptchaRequiredForPath } from '@/captcha/utils/isCaptchaRequiredForPa
import { useCaptcha } from '@/client-config/hooks/useCaptcha';
import { captchaState } from '@/client-config/states/captchaState';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
-import { CaptchaDriverType } from '~/generated/graphql';
+import { CaptchaDriverType } from '~/generated-metadata/graphql';
export const CaptchaProviderScriptLoaderEffect = () => {
const captcha = useRecoilValue(captchaState);
diff --git a/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts b/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts
index 486791edae6..099e6681eb2 100644
--- a/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts
+++ b/packages/twenty-front/src/modules/captcha/utils/__tests__/getCaptchaUrlByProvider.test.ts
@@ -1,4 +1,4 @@
-import { CaptchaDriverType } from '~/generated/graphql';
+import { CaptchaDriverType } from '~/generated-metadata/graphql';
import { getCaptchaUrlByProvider } from '@/captcha/utils/getCaptchaUrlByProvider';
diff --git a/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts b/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts
index 6ddfd3ae07b..64108c2a899 100644
--- a/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/apiConfigState.ts
@@ -1,4 +1,4 @@
-import { type ApiConfig } from '~/generated/graphql';
+import { type ApiConfig } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const apiConfigState = createState<ApiConfig | null>({
diff --git a/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts b/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts
index 0e794b4e55e..52b9620f61f 100644
--- a/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/authProvidersState.ts
@@ -1,4 +1,4 @@
-import { type AuthProviders } from '~/generated/graphql';
+import { type AuthProviders } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const authProvidersState = createState<AuthProviders>({
diff --git a/packages/twenty-front/src/modules/client-config/states/billingState.ts b/packages/twenty-front/src/modules/client-config/states/billingState.ts
index 3022552c7f7..e691bcfed28 100644
--- a/packages/twenty-front/src/modules/client-config/states/billingState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/billingState.ts
@@ -1,4 +1,4 @@
-import { type Billing } from '~/generated/graphql';
+import { type Billing } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const billingState = createState<Billing | null>({
diff --git a/packages/twenty-front/src/modules/client-config/states/captchaState.ts b/packages/twenty-front/src/modules/client-config/states/captchaState.ts
index d8f5f894302..ef0b2d88d67 100644
--- a/packages/twenty-front/src/modules/client-config/states/captchaState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/captchaState.ts
@@ -1,4 +1,4 @@
-import { type Captcha } from '~/generated/graphql';
+import { type Captcha } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const captchaState = createState<Captcha | null>({
diff --git a/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts b/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts
index d0807178359..3c130a022eb 100644
--- a/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/labPublicFeatureFlagsState.ts
@@ -1,5 +1,5 @@
import { atom } from 'recoil';
-import { type PublicFeatureFlag } from '~/generated/graphql';
+import { type PublicFeatureFlag } from '~/generated-metadata/graphql';
export const labPublicFeatureFlagsState = atom<PublicFeatureFlag[]>({
key: 'labPublicFeatureFlagsState',
diff --git a/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts b/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts
index be06f969ae4..e9077724c07 100644
--- a/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/sentryConfigState.ts
@@ -1,4 +1,4 @@
-import { type Sentry } from '~/generated/graphql';
+import { type Sentry } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const sentryConfigState = createState<Sentry | null>({
diff --git a/packages/twenty-front/src/modules/client-config/states/supportChatState.ts b/packages/twenty-front/src/modules/client-config/states/supportChatState.ts
index b99a36af059..cbadb9625db 100644
--- a/packages/twenty-front/src/modules/client-config/states/supportChatState.ts
+++ b/packages/twenty-front/src/modules/client-config/states/supportChatState.ts
@@ -1,5 +1,5 @@
import { createState } from 'twenty-ui/utilities';
-import { type Support, SupportDriver } from '~/generated/graphql';
+import { type Support, SupportDriver } from '~/generated-metadata/graphql';
export const supportChatState = createState<Support>({
key: 'supportChatState',
diff --git a/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx b/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx
index 731a6221ceb..60b806b098b 100644
--- a/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/hooks/useCommandMenuItemFrontComponentActions.tsx
@@ -16,9 +16,9 @@ import { COMMAND_MENU_DEFAULT_ICON } from '@/workflow/workflow-trigger/constants
import {
type CommandMenuItemFieldsFragment,
CommandMenuItemAvailabilityType,
+ FeatureFlagKey,
useFindManyCommandMenuItemsQuery,
} from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
type CommandMenuItemWithFrontComponent = CommandMenuItemFieldsFragment & {
frontComponentId: string;
diff --git a/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx b/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx
index 65d819bceea..68759dee451 100644
--- a/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx
+++ b/packages/twenty-front/src/modules/command-menu/components/CommandMenuTopBarRightCornerIcon.tsx
@@ -8,7 +8,7 @@ import { useRecoilValue } from 'recoil';
import { IconEdit, IconSparkles } from 'twenty-ui/display';
import { IconButton } from 'twenty-ui/input';
import { useIsMobile } from 'twenty-ui/utilities';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { useCreateNewAIChatThread } from '@/ai/hooks/useCreateNewAIChatThread';
diff --git a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts
index 5336f474099..5b42cf9870e 100644
--- a/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts
+++ b/packages/twenty-front/src/modules/command-menu/hooks/useCommandMenuHotKeys.ts
@@ -17,7 +17,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isNonEmptyString } from '@sniptt/guards';
import { useRecoilValue } from 'recoil';
import { Key } from 'ts-key-enum';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const useCommandMenuHotKeys = () => {
const { toggleCommandMenu } = useCommandMenu();
diff --git a/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx b/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx
index 71d7563209d..0f4f411145b 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/calendar-event/components/CommandMenuCalendarEventPage.tsx
@@ -8,7 +8,7 @@ import { useFindOneRecord } from '@/object-record/hooks/useFindOneRecord';
import { useUpsertRecordsInStore } from '@/object-record/record-store/hooks/useUpsertRecordsInStore';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
export const CommandMenuCalendarEventPage = () => {
const { upsertRecordsInStore } = useUpsertRecordsInStore();
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx
index 8a9f5fe4bb7..f03067ba7c7 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/ChartLimitInfoBanner.tsx
@@ -1,7 +1,7 @@
import { getChartLimitMessage } from '@/command-menu/pages/page-layout/utils/getChartLimitMessage';
import { t } from '@lingui/core/macro';
import { SidePanelInformationBanner } from 'twenty-ui/display';
-import { type WidgetConfigurationType } from '~/generated/graphql';
+import { type WidgetConfigurationType } from '~/generated-metadata/graphql';
type ChartLimitInfoBannerProps = {
widgetConfigurationType: WidgetConfigurationType;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx
index 0e3cba156f1..804b96f7dbb 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutIframeSettings.tsx
@@ -8,7 +8,7 @@ import { t } from '@lingui/core/macro';
import { isNonEmptyString, isString } from '@sniptt/guards';
import { useState } from 'react';
import { isDefined, isValidUrl } from 'twenty-shared/utils';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
const StyledOuterContainer = styled.div`
display: flex;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx
index 3445fb6b546..daa26ae9e7d 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/CommandMenuPageLayoutWidgetTypeSelect.tsx
@@ -33,7 +33,7 @@ import {
FeatureFlagKey,
type FrontComponent,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const CommandMenuPageLayoutWidgetTypeSelect = () => {
const { pageLayoutId } = usePageLayoutIdFromContextStoreTargetedRecord();
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx
index 5085052d131..0d715e082cf 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartAxisNameSelectionDropdownContent.tsx
@@ -12,7 +12,7 @@ import { selectedItemIdComponentState } from '@/ui/layout/selectable-list/states
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { MenuItemSelect } from 'twenty-ui/navigation';
-import { AxisNameDisplay } from '~/generated/graphql';
+import { AxisNameDisplay } from '~/generated-metadata/graphql';
export const ChartAxisNameSelectionDropdownContent = () => {
const { pageLayoutId } = usePageLayoutIdFromContextStoreTargetedRecord();
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
index 4f8a7c78fc3..e5292532c5e 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDataSourceDropdownContent.tsx
@@ -91,17 +91,17 @@ export const ChartDataSourceDropdownContent = () => {
updateCurrentWidgetConfig({
objectMetadataId: newObjectMetadataItemId,
configToUpdate: {
- aggregateFieldMetadataId: null,
- primaryAxisGroupByFieldMetadataId: null,
- primaryAxisGroupBySubFieldName: null,
- secondaryAxisGroupByFieldMetadataId: null,
- secondaryAxisGroupBySubFieldName: null,
- primaryAxisOrderBy: null,
- secondaryAxisOrderBy: null,
- groupByFieldMetadataId: null,
- groupBySubFieldName: null,
+ aggregateFieldMetadataId: undefined,
+ primaryAxisGroupByFieldMetadataId: undefined,
+ primaryAxisGroupBySubFieldName: undefined,
+ secondaryAxisGroupByFieldMetadataId: undefined,
+ secondaryAxisGroupBySubFieldName: undefined,
+ primaryAxisOrderBy: undefined,
+ secondaryAxisOrderBy: undefined,
+ groupByFieldMetadataId: undefined,
+ groupBySubFieldName: undefined,
filter: {},
- ratioAggregateConfig: null,
+ ratioAggregateConfig: undefined,
},
});
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx
index ba93fede8c1..541843d282b 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartDateGranularitySelectionDropdownContent.tsx
@@ -17,7 +17,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
import { MenuItemSelect } from 'twenty-ui/navigation';
-import { type WidgetConfiguration } from '~/generated/graphql';
+import { type WidgetConfiguration } from '~/generated-metadata/graphql';
type ChartDateGranularitySelectionDropdownContentProps = {
axis?: 'primary' | 'secondary';
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx
index c15001734c6..29a838eea38 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartGroupByFieldSelectionDropdownContentBase.tsx
@@ -24,7 +24,7 @@ import { useMemo, useState } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { useIcons } from 'twenty-ui/display';
import { MenuItemSelect } from 'twenty-ui/navigation';
-import { RelationType } from '~/generated/graphql';
+import { RelationType } from '~/generated-metadata/graphql';
import { filterBySearchQuery } from '~/utils/filterBySearchQuery';
type ChartGroupByFieldSelectionDropdownContentBaseProps<
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx
index 913347c442f..9eee99f2d35 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartManualSortSubMenuContent.tsx
@@ -18,7 +18,7 @@ import { isDefined } from 'twenty-shared/utils';
import { Tag } from 'twenty-ui/components';
import { IconChevronLeft } from 'twenty-ui/display';
import { MenuItemDraggable } from 'twenty-ui/navigation';
-import { type WidgetConfiguration } from '~/generated/graphql';
+import { type WidgetConfiguration } from '~/generated-metadata/graphql';
import { moveArrayItem } from '~/utils/array/moveArrayItem';
type ChartManualSortSubMenuContentProps = {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx
index b63a606720c..13bac6f0ba5 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionBooleanSelectableListItem.tsx
@@ -10,7 +10,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { IconCheck, IconX } from 'twenty-ui/display';
import { MenuItemSelect } from 'twenty-ui/navigation';
-import { AggregateOperations } from '~/generated/graphql';
+import { AggregateOperations } from '~/generated-metadata/graphql';
export const ChartRatioOptionBooleanSelectableListItem = ({
optionValue,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx
index 0d6f825603d..496542f3f41 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartRatioOptionSelectSelectableListItem.tsx
@@ -10,7 +10,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { MenuItemSelectTag } from 'twenty-ui/navigation';
import { type ThemeColor } from 'twenty-ui/theme';
-import { AggregateOperations } from '~/generated/graphql';
+import { AggregateOperations } from '~/generated-metadata/graphql';
export const ChartRatioOptionSelectSelectableListItem = ({
optionValue,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx
index cf79593b2fd..7e0575c3a1b 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortByGroupByFieldDropdownContent.tsx
@@ -22,9 +22,9 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { isDefined } from 'twenty-shared/utils';
import { MenuItemSelect } from 'twenty-ui/navigation';
import {
- GraphOrderBy,
- type GraphOrderBy as GraphOrderByType,
-} from '~/generated/graphql';
+ type GraphOrderBy,
+ GraphOrderBy as GraphOrderByEnum,
+} from '~/generated-metadata/graphql';
export const ChartSortByGroupByFieldDropdownContent = () => {
const [isSubMenuOpen, setIsSubMenuOpen] = useState(false);
@@ -74,12 +74,12 @@ export const ChartSortByGroupByFieldDropdownContent = () => {
return null;
}
- const handleSelectSortOption = (orderBy: GraphOrderByType) => {
+ const handleSelectSortOption = (orderBy: GraphOrderBy) => {
const configToUpdate: Record<string, unknown> = {
secondaryAxisOrderBy: orderBy,
};
- if (orderBy === GraphOrderBy.MANUAL) {
+ if (orderBy === GraphOrderByEnum.MANUAL) {
const existingManualSortOrder =
configuration.secondaryAxisManualSortOrder;
@@ -94,7 +94,7 @@ export const ChartSortByGroupByFieldDropdownContent = () => {
return;
}
- if (configuration.secondaryAxisOrderBy === GraphOrderBy.MANUAL) {
+ if (configuration.secondaryAxisOrderBy === GraphOrderByEnum.MANUAL) {
configToUpdate.secondaryAxisManualSortOrder = null;
}
@@ -125,7 +125,7 @@ export const ChartSortByGroupByFieldDropdownContent = () => {
selectableItemIdArray={availableOptions.map((option) => option.value)}
>
{availableOptions.map((sortOption) => {
- const isManualOption = sortOption.value === GraphOrderBy.MANUAL;
+ const isManualOption = sortOption.value === GraphOrderByEnum.MANUAL;
return (
<SelectableListItem
@@ -138,8 +138,7 @@ export const ChartSortByGroupByFieldDropdownContent = () => {
<MenuItemSelect
text={getGroupBySortOptionLabel({
graphOrderBy: sortOption.value,
- groupByFieldMetadataId:
- configuration.secondaryAxisGroupByFieldMetadataId,
+ groupByFieldMetadataId: secondaryAxisField.id,
})}
selected={
configuration.secondaryAxisOrderBy === sortOption.value
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortBySelectionDropdownContent.tsx b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortBySelectionDropdownContent.tsx
index 862f4682688..0f41eb7a846 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortBySelectionDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/components/dropdown-content/ChartSortBySelectionDropdownContent.tsx
@@ -26,7 +26,7 @@ import {
type BarChartConfiguration,
GraphOrderBy,
type LineChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const ChartSortBySelectionDropdownContent = () => {
const [isSubMenuOpen, setIsSubMenuOpen] = useState(false);
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts
index f4fab91b470..ef34b3d701b 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/AggregateSortByOptions.ts
@@ -3,7 +3,7 @@ import {
IconSortAscending,
IconSortDescending,
} from 'twenty-ui/display';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const AGGREGATE_SORT_BY_OPTIONS = [
{
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts
index 18caa5ca71a..355430404cc 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphConfigurationTypeToConfigTypename.ts
@@ -1,4 +1,4 @@
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
export const GRAPH_CONFIGURATION_TYPE_TO_CONFIG_TYPENAME: Partial<
Record<WidgetConfigurationType, string>
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts
index 0b27e821869..64169cd8676 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/GraphTypeInformation.ts
@@ -16,7 +16,7 @@ import {
IconGauge,
IconSum,
} from 'twenty-ui/display';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export const GRAPH_TYPE_INFORMATION: Record<
GraphType,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts
index 1c4abba768e..4a897a5a01a 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/constants/XSortByOptions.ts
@@ -6,7 +6,7 @@ import {
IconTrendingDown,
IconTrendingUp,
} from 'twenty-ui/display';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
type XSortByOption = {
value: GraphOrderBy;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts
index 3f8cf30579d..82f84e45151 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useChartSettingsValues.ts
@@ -61,8 +61,10 @@ export const useChartSettingsValues = ({
let groupByOrderBy: GraphOrderBy | undefined | null;
if (isBarOrLineChart) {
- groupByFieldXId = configuration.primaryAxisGroupByFieldMetadataId;
- groupByFieldYId = configuration.secondaryAxisGroupByFieldMetadataId;
+ groupByFieldXId =
+ configuration.primaryAxisGroupByFieldMetadataId ?? undefined;
+ groupByFieldYId =
+ configuration.secondaryAxisGroupByFieldMetadataId ?? undefined;
groupBySubFieldNameX = configuration.primaryAxisGroupBySubFieldName as
| CompositeFieldSubFieldName
| undefined;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts
index 9ee90cf9fdb..1e43f39d2f7 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphGroupBySortOptionLabels.ts
@@ -5,7 +5,7 @@ import { t } from '@lingui/core/macro';
import { useRecoilValue } from 'recoil';
import { type CompositeFieldSubFieldName } from 'twenty-shared/types';
import { assertUnreachable } from 'twenty-shared/utils';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const useGraphGroupBySortOptionLabels = ({
objectMetadataId,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts
index 142d98373b7..28674c34eea 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useGraphXSortOptionLabels.ts
@@ -7,7 +7,7 @@ import { t } from '@lingui/core/macro';
import { useRecoilValue } from 'recoil';
import { type CompositeFieldSubFieldName } from 'twenty-shared/types';
import { assertUnreachable, isDefined } from 'twenty-shared/utils';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const useGraphXSortOptionLabels = ({
objectMetadataId,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts
index 33386d1b7cd..b54662f4f78 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateChartSettingToggle.ts
@@ -1,7 +1,7 @@
import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ChartConfiguration';
import { CHART_CONFIGURATION_SETTING_IDS } from '@/command-menu/pages/page-layout/types/ChartConfigurationSettingIds';
import { getConfigKeyFromSettingId } from '@/command-menu/pages/page-layout/utils/getConfigKeyFromSettingId';
-import { BarChartGroupMode } from '~/generated/graphql';
+import { BarChartGroupMode } from '~/generated-metadata/graphql';
import { useChartSettingsValues } from './useChartSettingsValues';
import { useUpdateCurrentWidgetConfig } from './useUpdateCurrentWidgetConfig';
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts
index 8c5e02fec66..6832ae15be7 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/hooks/useUpdateGraphTypeConfig.ts
@@ -18,7 +18,7 @@ import { activeTabIdComponentState } from '@/ui/layout/tab-list/states/activeTab
import { useRecoilComponentCallbackState } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentCallbackState';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export const useGetConfigToUpdateAfterGraphTypeChange = ({
pageLayoutId,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts
index 24254a1dd24..82438e7133f 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/BarLineChartConvertibleFields.ts
@@ -1,7 +1,7 @@
import {
type GraphOrderBy,
type ObjectRecordGroupByDateGranularity,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type BarLineChartConvertibleFields = {
primaryAxisGroupByFieldMetadataId?: string;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts
index 251867f3009..5ecb12c618c 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/ChartWidget.ts
@@ -1,7 +1,7 @@
import { type ChartWidgetConfiguration } from '@/command-menu/pages/page-layout/types/ChartWidgetConfiguration';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { type ModifiedProperties } from 'twenty-shared/types';
-import { type WidgetType } from '~/generated/graphql';
+import { type WidgetType } from '~/generated-metadata/graphql';
export type ChartWidget = ModifiedProperties<
PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts
index 097cb61950c..71e029762c5 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/PieChartConvertibleFields.ts
@@ -1,7 +1,7 @@
import {
type GraphOrderBy,
type ObjectRecordGroupByDateGranularity,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type PieChartConvertibleFields = {
groupByFieldMetadataId?: string;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts
index 3e97ce27555..c487bdc0c75 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedAggregateChartConfiguration.ts
@@ -1,7 +1,7 @@
import {
type AggregateChartConfiguration,
type WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type TypedAggregateChartConfiguration = AggregateChartConfiguration & {
configurationType: WidgetConfigurationType.AGGREGATE_CHART;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts
index 3204c323a4b..517ebd7b2db 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedBarChartConfiguration.ts
@@ -1,7 +1,7 @@
import {
type BarChartConfiguration,
type WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type TypedBarChartConfiguration = BarChartConfiguration & {
configurationType: WidgetConfigurationType.BAR_CHART;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts
index 308065644dd..3ba4123bcf1 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedGaugeChartConfiguration.ts
@@ -1,7 +1,7 @@
import {
type GaugeChartConfiguration,
type WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type TypedGaugeChartConfiguration = GaugeChartConfiguration & {
configurationType: WidgetConfigurationType.GAUGE_CHART;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts
index 3ab40c6ae44..00ee5ae9f1b 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedLineChartConfiguration.ts
@@ -1,7 +1,7 @@
import {
type LineChartConfiguration,
type WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type TypedLineChartConfiguration = LineChartConfiguration & {
configurationType: WidgetConfigurationType.LINE_CHART;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts
index a89445f55f3..03c25e17d6e 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/types/TypedPieChartConfiguration.ts
@@ -1,7 +1,7 @@
import {
type PieChartConfiguration,
type WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type TypedPieChartConfiguration = PieChartConfiguration & {
configurationType: WidgetConfigurationType.PIE_CHART;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts
index bf71573c2e1..262cd2f28a6 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/buildChartGroupByFieldConfigUpdate.test.ts
@@ -6,7 +6,7 @@ import {
BarChartGroupMode,
GraphOrderBy,
WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
describe('buildChartGroupByFieldConfigUpdate', () => {
it('sets default orderBy and dateGranularity for primary axis', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts
index 91ba5294487..d13967a9eb6 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertBarOrLineChartConfigToPieChart.test.ts
@@ -1,5 +1,5 @@
import { convertBarOrLineChartConfigToPieChart } from '@/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart';
-import { type BarChartConfiguration } from '~/generated/graphql';
+import { type BarChartConfiguration } from '~/generated-metadata/graphql';
import {
TEST_BAR_CHART_CONFIGURATION,
TEST_LINE_CHART_CONFIGURATION,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts
index 4154ac3dee8..66714158c38 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/convertPieChartConfigToBarOrLineChart.test.ts
@@ -1,5 +1,5 @@
import { convertPieChartConfigToBarOrLineChart } from '@/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
import {
TEST_BAR_CHART_CONFIGURATION,
TEST_PIE_CHART_CONFIGURATION,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts
index f88a86bb0f8..a7084e721c9 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/filterSortOptionsByFieldType.test.ts
@@ -1,7 +1,7 @@
import { FieldMetadataType } from 'twenty-shared/types';
import { filterSortOptionsByFieldType } from '@/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('filterSortOptionsByFieldType', () => {
const allOptions = [
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts
index 9775f7f83ac..4e5a0271c82 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getBarChartSettings.test.ts
@@ -19,7 +19,7 @@ import { SORT_BY_GROUP_BY_FIELD_SETTING } from '@/command-menu/pages/page-layout
import { STACKED_BARS_SETTING } from '@/command-menu/pages/page-layout/constants/settings/StackedBarsSetting';
import { getBarChartSettings } from '@/command-menu/pages/page-layout/utils/getBarChartSettings';
import { IconAxisX, IconAxisY } from 'twenty-ui/display';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
describe('getBarChartSettings', () => {
describe('Vertical bar chart', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts
index 0bdb9ab2cdc..6a70f7b12fa 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartDefaultOrderByForFieldType.test.ts
@@ -1,7 +1,7 @@
import { FieldMetadataType } from 'twenty-shared/types';
import { getChartDefaultOrderByForFieldType } from '@/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('getChartDefaultOrderByForFieldType', () => {
it('should return FIELD_POSITION_ASC for SELECT field type', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts
index 79666de1529..04fb4228f9a 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getChartLimitMessage.test.ts
@@ -1,6 +1,6 @@
import { getChartLimitMessage } from '@/command-menu/pages/page-layout/utils/getChartLimitMessage';
import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
describe('getChartLimitMessage', () => {
it('returns date-based message for bar chart with date axis', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts
index 42579ce48c6..ceda91f3f19 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getConfigurationTypeFromGraphType.test.ts
@@ -1,6 +1,6 @@
import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType';
import { getConfigurationTypeFromGraphType } from '@/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
describe('getConfigurationTypeFromGraphType', () => {
it('returns BAR_CHART for VERTICAL_BAR', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts
index 6311415d488..98d637a9e45 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getManualSortOrderFromConfig.test.ts
@@ -4,7 +4,7 @@ import {
type BarChartConfiguration,
type LineChartConfiguration,
type PieChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
describe('getManualSortOrderFromConfig', () => {
describe('pie chart configuration', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts
index 6ea922ca98f..4c9e2e8e789 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortIconForFieldType.test.ts
@@ -9,7 +9,7 @@ import {
} from 'twenty-ui/display';
import { getSortIconForFieldType } from '@/command-menu/pages/page-layout/utils/getSortIconForFieldType';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('getSortIconForFieldType', () => {
describe('position sort', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts
index cc154ee0c7e..2ae9c01073c 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/getSortLabelSuffixForFieldType.test.ts
@@ -1,6 +1,6 @@
import { getSortLabelSuffixForFieldType } from '@/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType';
import { FieldMetadataType } from 'twenty-shared/types';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('getSortLabelSuffixForFieldType', () => {
it('returns alphabetical for TEXT field with FIELD_ASC', () => {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts
index 9e8adbc28ba..283e3a6ef64 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/__tests__/isMinMaxRangeValid.test.ts
@@ -1,7 +1,10 @@
import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/ChartConfiguration';
import { CHART_CONFIGURATION_SETTING_IDS } from '@/command-menu/pages/page-layout/types/ChartConfigurationSettingIds';
import { isMinMaxRangeValid } from '@/command-menu/pages/page-layout/utils/isMinMaxRangeValid';
-import { BarChartLayout, WidgetConfigurationType } from '~/generated/graphql';
+import {
+ BarChartLayout,
+ WidgetConfigurationType,
+} from '~/generated-metadata/graphql';
describe('isMinMaxRangeValid', () => {
const mockConfiguration = {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts
index ee7aad1752f..58ea6501208 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/buildChartGroupByFieldConfigUpdate.ts
@@ -5,7 +5,7 @@ import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/ut
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { BarChartGroupMode, GraphOrderBy } from '~/generated/graphql';
+import { BarChartGroupMode, GraphOrderBy } from '~/generated-metadata/graphql';
type BuildChartGroupByFieldConfigUpdateArgs<T extends ChartConfiguration> = {
configuration: T;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts
index cd6934c6fcf..9101a255887 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertBarOrLineChartConfigToPieChart.ts
@@ -2,7 +2,7 @@ import { type PieChartConvertibleFields } from '@/command-menu/pages/page-layout
import {
type BarChartConfiguration,
type LineChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const convertBarOrLineChartConfigToPieChart = (
configuration: BarChartConfiguration | LineChartConfiguration,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts
index 8d94272cea7..2af8cc985eb 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/convertPieChartConfigToBarOrLineChart.ts
@@ -1,6 +1,6 @@
import { type BarLineChartConvertibleFields } from '@/command-menu/pages/page-layout/types/BarLineChartConvertibleFields';
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
export const convertPieChartConfigToBarOrLineChart = (
configuration: PieChartConfiguration,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts
index 456b4a21282..b075e5a20a3 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/filterSortOptionsByFieldType.ts
@@ -4,7 +4,7 @@ import {
isFieldMetadataSelectKind,
} from 'twenty-shared/utils';
import { type IconComponent } from 'twenty-ui/display';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export type SortOption = {
value: GraphOrderBy;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts
index 4918a07c2cd..e52b8ee9d6f 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getBarChartSettings.ts
@@ -19,7 +19,7 @@ import { SORT_BY_GROUP_BY_FIELD_SETTING } from '@/command-menu/pages/page-layout
import { STACKED_BARS_SETTING } from '@/command-menu/pages/page-layout/constants/settings/StackedBarsSetting';
import { type ChartSettingsGroup } from '@/command-menu/pages/page-layout/types/ChartSettingsGroup';
import { IconAxisX, IconAxisY } from 'twenty-ui/display';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export const getBarChartSettings = (
layout: BarChartLayout,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts
index 6aed2c464ba..42dac40c8e0 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartAxisNameDisplayOptions.ts
@@ -1,6 +1,6 @@
import { t } from '@lingui/core/macro';
import { assertUnreachable } from 'twenty-shared/utils';
-import { AxisNameDisplay } from '~/generated/graphql';
+import { AxisNameDisplay } from '~/generated-metadata/graphql';
export const getChartAxisNameDisplayOptions = (option: AxisNameDisplay) => {
switch (option) {
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts
index 2ff797d6ffe..3d7826cdba3 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartDefaultOrderByForFieldType.ts
@@ -1,5 +1,5 @@
import { FieldMetadataType } from 'twenty-shared/types';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const getChartDefaultOrderByForFieldType = (
fieldType: FieldMetadataType,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts
index 5878fb2021d..d53e2510a70 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getChartLimitMessage.ts
@@ -5,7 +5,7 @@ import { PIE_CHART_MAXIMUM_NUMBER_OF_SLICES } from '@/page-layout/widgets/graph/
import { t } from '@lingui/core/macro';
import { type ObjectRecordGroupByDateGranularity } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
type GetChartLimitMessageParams = {
widgetConfigurationType: WidgetConfigurationType;
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts
index 11276533d35..68e958ea9c1 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getConfigurationTypeFromGraphType.ts
@@ -1,6 +1,6 @@
import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType';
import { assertUnreachable } from 'twenty-shared/utils';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
export const getConfigurationTypeFromGraphType = (
graphType: GraphType,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts
index 1200226b88c..69cda0cce38 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getCurrentGraphTypeFromConfig.ts
@@ -2,7 +2,7 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/
import { GraphType } from '@/command-menu/pages/page-layout/types/GraphType';
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { t } from '@lingui/core/macro';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export const getCurrentGraphTypeFromConfig = (
configuration: ChartConfiguration,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts
index 076bc718a50..f3f9ff79606 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getManualSortOrderFromConfig.ts
@@ -1,6 +1,6 @@
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { isDefined } from 'twenty-shared/utils';
-import { type WidgetConfiguration } from '~/generated/graphql';
+import { type WidgetConfiguration } from '~/generated-metadata/graphql';
export const getManualSortOrderFromConfig = (
configuration: WidgetConfiguration,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts
index d4eaa635b78..d1aec08039f 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortIconForFieldType.ts
@@ -12,7 +12,7 @@ import {
IconSortDescendingLetters,
IconSortDescendingNumbers,
} from 'twenty-ui/display';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const getSortIconForFieldType = ({
fieldType,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts
index 5be5b01d54f..c079d3a35b8 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/getSortLabelSuffixForFieldType.ts
@@ -6,7 +6,7 @@ import {
isFieldMetadataTextKind,
} from 'twenty-shared/utils';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
export const getSortLabelSuffixForFieldType = ({
fieldType,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts
index c9955387aa0..351e88bcde1 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isChartWidget.ts
@@ -1,7 +1,7 @@
import { type ChartWidget } from '@/command-menu/pages/page-layout/types/ChartWidget';
import { isWidgetConfigurationOfTypeGraph } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
-import { type WidgetConfiguration } from '~/generated/graphql';
+import { type WidgetConfiguration } from '~/generated-metadata/graphql';
export const isChartWidget = (
pageLayoutWidget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts
index 68ecfd170dc..1545d3d7fe7 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isExistingWidgetMissingOrDifferentType.ts
@@ -1,4 +1,4 @@
-import { type WidgetType } from '~/generated/graphql';
+import { type WidgetType } from '~/generated-metadata/graphql';
export const isExistingWidgetMissingOrDifferentType = (
existingWidgetType: WidgetType | undefined,
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts
index 789fcf1e89a..c85de34a17f 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType.ts
@@ -22,7 +22,7 @@ import {
type WorkflowConfiguration,
type WorkflowRunConfiguration,
type WorkflowVersionConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type WidgetConfigurationTypenameMap = {
AggregateChartConfiguration: Omit<
diff --git a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts
index 9e66e4034b7..d600af38366 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts
+++ b/packages/twenty-front/src/modules/command-menu/pages/page-layout/utils/isWidgetConfigurationOfTypeGraph.ts
@@ -2,7 +2,7 @@ import { type ChartConfiguration } from '@/command-menu/pages/page-layout/types/
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { type FieldConfiguration } from '@/page-layout/types/FieldConfiguration';
import { type FieldsConfiguration } from '@/page-layout/types/FieldsConfiguration';
-import { type WidgetConfiguration } from '~/generated/graphql';
+import { type WidgetConfiguration } from '~/generated-metadata/graphql';
export const isWidgetConfigurationOfTypeGraph = (
configuration:
diff --git a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx
index 8d3a6fa7472..f853365be0d 100644
--- a/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx
+++ b/packages/twenty-front/src/modules/command-menu/pages/workflow/action/components/CommandMenuWorkflowSelectAction.tsx
@@ -15,7 +15,7 @@ import { useLingui } from '@lingui/react/macro';
import { useRecoilValue } from 'recoil';
import { IconFunction } from 'twenty-ui/display';
import { MenuItem } from 'twenty-ui/navigation';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export type WorkflowActionSelection = {
type: WorkflowActionType;
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts
index 3509e621519..cf94617885b 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getDateFormatFromWorkspaceDateFormat.test.ts
@@ -1,6 +1,6 @@
import { DateFormat } from '@/localization/constants/DateFormat';
import { getDateFormatFromWorkspaceDateFormat } from '@/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
// Mock detectDateFormat
jest.mock('@/localization/utils/detection/detectDateFormat', () => ({
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts
index 0581ee78c79..9e1c9d32392 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/__tests__/getTimeFormatFromWorkspaceTimeFormat.test.ts
@@ -1,6 +1,6 @@
import { TimeFormat } from '@/localization/constants/TimeFormat';
import { getTimeFormatFromWorkspaceTimeFormat } from '@/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
// Mock detectTimeFormat
jest.mock('@/localization/utils/detection/detectTimeFormat', () => ({
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts
index 86dfdc6738d..910c5c497fb 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceDateFormat.ts
@@ -1,6 +1,6 @@
import { DateFormat } from '@/localization/constants/DateFormat';
import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
export const getDateFormatFromWorkspaceDateFormat = (
workspaceDateFormat: WorkspaceMemberDateFormatEnum,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts
index 638c591126f..6cdf4a92df2 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getDateFormatFromWorkspaceMember.ts
@@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe
import { DateFormat } from '@/localization/constants/DateFormat';
import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat';
import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
export const getDateFormatFromWorkspaceMember = (
workspaceMember: WorkspaceMember | CurrentWorkspaceMember,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts
index 052af2a7c44..07f5c4a0f20 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceMember.ts
@@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe
import { NumberFormat } from '@/localization/constants/NumberFormat';
import { detectNumberFormat } from '@/localization/utils/detection/detectNumberFormat';
import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember';
-import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql';
export const getNumberFormatFromWorkspaceMember = (
workspaceMember: WorkspaceMember | CurrentWorkspaceMember,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts
index 92521670c12..a0897a56ec6 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getNumberFormatFromWorkspaceNumberFormat.ts
@@ -1,6 +1,6 @@
import { NumberFormat } from '@/localization/constants/NumberFormat';
import { detectNumberFormat } from '@/localization/utils/detection/detectNumberFormat';
-import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql';
export const getNumberFormatFromWorkspaceNumberFormat = (
numberFormat: WorkspaceMemberNumberFormatEnum,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts
index 883523d9fd1..2c0202c29db 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceMember.ts
@@ -2,7 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe
import { TimeFormat } from '@/localization/constants/TimeFormat';
import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat';
import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
export const getTimeFormatFromWorkspaceMember = (
workspaceMember: WorkspaceMember | CurrentWorkspaceMember,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts
index bf51187c822..f744bd21a3d 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getTimeFormatFromWorkspaceTimeFormat.ts
@@ -1,6 +1,6 @@
import { TimeFormat } from '@/localization/constants/TimeFormat';
import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
export const getTimeFormatFromWorkspaceTimeFormat = (
workspaceTimeFormat: WorkspaceMemberTimeFormatEnum,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts
index 4f319267ca9..794e5d203f3 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceDateFormatFromDateFormat.ts
@@ -1,5 +1,5 @@
import { DateFormat } from '@/localization/constants/DateFormat';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
export const getWorkspaceDateFormatFromDateFormat = (
dateFormat: DateFormat,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts
index 1f04817dcdb..0c7029452fd 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceNumberFormatFromNumberFormat.ts
@@ -1,5 +1,5 @@
import { NumberFormat } from '@/localization/constants/NumberFormat';
-import { WorkspaceMemberNumberFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberNumberFormatEnum } from '~/generated-metadata/graphql';
export const getWorkspaceNumberFormatFromNumberFormat = (
numberFormat: NumberFormat,
diff --git a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts
index 8655ae605a4..4afd1127041 100644
--- a/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts
+++ b/packages/twenty-front/src/modules/localization/utils/format-preferences/getWorkspaceTimeFormatFromTimeFormat.ts
@@ -1,5 +1,5 @@
import { TimeFormat } from '@/localization/constants/TimeFormat';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
export const getWorkspaceTimeFormatFromTimeFormat = (
timeFormat: TimeFormat,
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx
index 40e93455667..179372b5ee5 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFoldersDispatcher.tsx
@@ -1,4 +1,4 @@
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { CurrentWorkspaceMemberFavoritesFolders } from '@/favorites/components/CurrentWorkspaceMemberFavoritesFolders';
import { CurrentWorkspaceMemberNavigationMenuItemFolders } from '@/navigation-menu-item/components/CurrentWorkspaceMemberNavigationMenuItemFolders';
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx
index 314b5b13959..906cbd643ae 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuEditModeBar.tsx
@@ -14,7 +14,7 @@ import { selectedNavigationMenuItemInEditModeState } from '@/navigation-menu-ite
import { SaveAndCancelButtons } from '@/settings/components/SaveAndCancelButtons/SaveAndCancelButtons';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
align-items: center;
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx
index 2be2a8f9473..ca4bb7e7bc2 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/NavigationMenuItemFolderContentDispatcher.tsx
@@ -1,5 +1,5 @@
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { FavoritesFolderContent } from '@/favorites/components/FavoritesFolderContent';
import { type ProcessedFavorite } from '@/favorites/utils/sortFavorites';
diff --git a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx
index d8b8e22e119..ad862615ec4 100644
--- a/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx
+++ b/packages/twenty-front/src/modules/navigation-menu-item/components/WorkspaceNavigationMenuItemsDispatcher.tsx
@@ -1,4 +1,4 @@
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { WorkspaceFavorites } from '@/favorites/components/WorkspaceFavorites';
import { WorkspaceNavigationMenuItems } from '@/navigation-menu-item/components/WorkspaceNavigationMenuItems';
diff --git a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx
index f60f934cb48..867e9839ce0 100644
--- a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx
+++ b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawer.tsx
@@ -13,7 +13,7 @@ import { NavigationDrawerScrollableContent } from '@/ui/navigation/navigation-dr
import { currentFavoriteFolderIdState } from '@/ui/navigation/navigation-drawer/states/currentFavoriteFolderIdState';
import { currentNavigationMenuItemFolderIdState } from '@/ui/navigation/navigation-drawer/states/currentNavigationMenuItemFolderIdState';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledScrollableContent = styled.div`
height: 100%;
diff --git a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx
index 8399f4114f9..78abcbd17bd 100644
--- a/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx
+++ b/packages/twenty-front/src/modules/navigation/components/MainNavigationDrawerFixedItems.tsx
@@ -12,7 +12,7 @@ import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
import { IconSearch, IconSettings, IconSparkles } from 'twenty-ui/display';
import { useIsMobile } from 'twenty-ui/utilities';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const MainNavigationDrawerFixedItems = () => {
const isMobile = useIsMobile();
diff --git a/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts b/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts
index 3af06f1c7a8..99c525d9c58 100644
--- a/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts
+++ b/packages/twenty-front/src/modules/navigation/hooks/__tests__/useDefaultHomePagePath.test.ts
@@ -13,7 +13,7 @@ import {
ViewOpenRecordIn,
ViewType,
ViewVisibility,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { getMockCompanyObjectMetadataItem } from '~/testing/mock-data/companies';
import { mockedUserData } from '~/testing/mock-data/users';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
diff --git a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
index c943e3b07a2..be1bd61fcae 100644
--- a/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/components/NavigationDrawerOpenedSection.tsx
@@ -9,7 +9,7 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSi
import { useIsPrefetchLoading } from '@/prefetch/hooks/useIsPrefetchLoading';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useLingui } from '@lingui/react/macro';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const WORKFLOW_OBJECTS_IN_SIDEBAR = [
CoreObjectNameSingular.Workflow,
diff --git a/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx b/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx
index 330c04d4434..f2c9445a246 100644
--- a/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx
+++ b/packages/twenty-front/src/modules/object-metadata/components/PreComputedChipGeneratorsProvider.tsx
@@ -6,7 +6,7 @@ import { PreComputedChipGeneratorsContext } from '@/object-metadata/contexts/Pre
import { objectMetadataItemsState } from '@/object-metadata/states/objectMetadataItemsState';
import { getRecordChipGenerators } from '@/object-record/utils/getRecordChipGenerators';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const PreComputedChipGeneratorsProvider = ({
children,
diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts
index 563829e196f..850bce91747 100644
--- a/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__mocks__/useFieldMetadataItem.ts
@@ -1,5 +1,5 @@
import { gql } from '@apollo/client';
-import { FieldMetadataType } from '~/generated/graphql';
+import { FieldMetadataType } from '~/generated-metadata/graphql';
export const FIELD_METADATA_ID = '2c43466a-fe9e-4005-8d08-c5836067aa6c';
export const FIELD_RELATION_METADATA_ID =
diff --git a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts
index 3f6bb098934..fcd217ead48 100644
--- a/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts
+++ b/packages/twenty-front/src/modules/object-metadata/hooks/__tests__/constants/CustomWorkspaceApplicationMock.test.constant.ts
@@ -1,4 +1,4 @@
-import { type Application } from '~/generated/graphql';
+import { type Application } from '~/generated-metadata/graphql';
export const CUSTOM_WORKSPACE_APPLICATION_MOCK = {
id: 'dc75f982-35a2-4c1b-a63d-bd1131215377',
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 9ca1755059a..87dc30a2a1c 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
@@ -10,7 +10,7 @@ import {
SubscriptionInterval,
SubscriptionStatus,
WorkspaceActivationStatus,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts
index 53ad5a073a9..09675a70b67 100644
--- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts
+++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/fieldMetadataItemSchema.ts
@@ -2,7 +2,7 @@ import { z } from 'zod';
import { metadataLabelSchema } from '@/object-metadata/validation-schemas/metadataLabelSchema';
import { themeColorSchema } from 'twenty-ui/theme';
-import { FieldMetadataType, RelationType } from '~/generated/graphql';
+import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql';
import { camelCaseStringSchema } from '~/utils/validation-schemas/camelCaseStringSchema';
export const fieldMetadataItemSchema = (existingLabels?: string[]) => {
diff --git a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
index a569753945a..f88c31d828e 100644
--- a/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
+++ b/packages/twenty-front/src/modules/object-metadata/validation-schemas/indexMetadataItemSchema.ts
@@ -2,7 +2,7 @@ import { z } from 'zod';
import { type IndexMetadataItem } from '@/object-metadata/types/IndexMetadataItem';
import { indexFieldMetadataItemSchema } from '@/object-metadata/validation-schemas/indexFieldMetadataItemSchema';
-import { IndexType } from '~/generated/graphql';
+import { IndexType } from '~/generated-metadata/graphql';
export const indexMetadataItemSchema = z.object({
__typename: z.literal('Index'),
diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
index 82043378d73..4ce3aee4c64 100644
--- a/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
+++ b/packages/twenty-front/src/modules/object-record/hooks/useDeleteManyRecords.ts
@@ -20,7 +20,7 @@ import { getDeleteManyRecordsMutationResponseField } from '@/object-record/utils
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { sleep } from '~/utils/sleep';
type useDeleteManyRecordProps = {
diff --git a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts
index aa20e56e209..54615ea54d3 100644
--- a/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts
+++ b/packages/twenty-front/src/modules/object-record/hooks/useDestroyManyRecords.ts
@@ -16,7 +16,7 @@ import { getDestroyManyRecordsMutationResponseField } from '@/object-record/util
import { useRemoveNavigationMenuItemByTargetRecordId } from '@/navigation-menu-item/hooks/useRemoveNavigationMenuItemByTargetRecordId';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useRecoilValue } from 'recoil';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { capitalize, isDefined } from 'twenty-shared/utils';
import { sleep } from '~/utils/sleep';
diff --git a/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts b/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts
index 6729d74ff15..e4127d55d0b 100644
--- a/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts
+++ b/packages/twenty-front/src/modules/object-record/hooks/useIncrementalDeleteManyRecords.ts
@@ -20,7 +20,7 @@ import { dispatchObjectRecordOperationBrowserEvent } from '@/object-record/utils
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { sleep } from '~/utils/sleep';
const DEFAULT_DELAY_BETWEEN_MUTATIONS_MS = 50;
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx
index dc997edb0f9..a24b3e18c2a 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownCustomView.tsx
@@ -31,7 +31,7 @@ import {
IconTrash,
} from 'twenty-ui/display';
import { MenuItem } from 'twenty-ui/navigation';
-import { ViewCalendarLayout } from '~/generated/graphql';
+import { ViewCalendarLayout } from '~/generated-metadata/graphql';
interface ObjectOptionsDropdownCustomViewProps {
onBackToDefault?: () => void;
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
index aadc4c577aa..779ee3df4f8 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownLayoutContent.tsx
@@ -37,7 +37,7 @@ import {
OverflowingTextWithTooltip,
} from 'twenty-ui/display';
import { MenuItem, MenuItemSelect, MenuItemToggle } from 'twenty-ui/navigation';
-import { ViewCalendarLayout } from '~/generated/graphql';
+import { ViewCalendarLayout } from '~/generated-metadata/graphql';
export const ObjectOptionsDropdownLayoutContent = () => {
const { t } = useLingui();
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx
index 8d9c9a7e083..1a8404d0f0e 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/components/ObjectOptionsDropdownVisibilityContent.tsx
@@ -26,8 +26,10 @@ import {
IconCopy,
} from 'twenty-ui/display';
import { MenuItem, MenuItemSelect } from 'twenty-ui/navigation';
-import { ViewVisibility } from '~/generated-metadata/graphql';
-import { PermissionFlagType } from '~/generated/graphql';
+import {
+ ViewVisibility,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
export const ObjectOptionsDropdownVisibilityContent = () => {
const { t } = useLingui();
diff --git a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
index 8c0016dcfb0..e1eb9b3dde0 100644
--- a/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
+++ b/packages/twenty-front/src/modules/object-record/object-options-dropdown/hooks/useSetViewTypeFromLayoutOptionsMenu.ts
@@ -14,7 +14,7 @@ import { useGetAvailableFieldsForCalendar } from '@/views/view-picker/hooks/useG
import { useGetAvailableFieldsToGroupRecordsBy } from '@/views/view-picker/hooks/useGetAvailableFieldsToGroupRecordsBy';
import { useRecoilCallback, useSetRecoilState } from 'recoil';
import { assertUnreachable, isDefined } from 'twenty-shared/utils';
-import { ViewCalendarLayout } from '~/generated/graphql';
+import { ViewCalendarLayout } from '~/generated-metadata/graphql';
export const useSetViewTypeFromLayoutOptionsMenu = () => {
const { updateCurrentView } = useUpdateCurrentView();
diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx
index adb8c882356..78f85c980e2 100644
--- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx
+++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/components/ObjectSortDropdownButton.tsx
@@ -34,7 +34,7 @@ import { findByProperty } from 'twenty-shared/utils';
import { IconX, useIcons } from 'twenty-ui/display';
import { MenuItem } from 'twenty-ui/navigation';
import { v4 } from 'uuid';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
export const ObjectSortDropdownButton = () => {
const { resetRecordSortDropdownSearchInput } =
diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts
index 8ab37fc4255..0b4e99fe0a7 100644
--- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts
+++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/hooks/useResetSortDropdown.ts
@@ -1,7 +1,7 @@
import { isRecordSortDirectionDropdownMenuUnfoldedComponentState } from '@/object-record/object-sort-dropdown/states/isRecordSortDirectionDropdownMenuUnfoldedComponentState';
import { selectedRecordSortDirectionComponentState } from '@/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState';
import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
export const useResetSortDropdown = () => {
const setIsRecordSortDirectionDropdownMenuUnfolded =
diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts
index 29b0077a6ea..16ba281903c 100644
--- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts
+++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/states/selectedRecordSortDirectionComponentState.ts
@@ -1,6 +1,6 @@
import { ObjectSortDropdownComponentInstanceContext } from '@/object-record/object-sort-dropdown/states/context/ObjectSortDropdownComponentInstanceContext';
import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
export const selectedRecordSortDirectionComponentState =
createComponentState<ViewSortDirection>({
diff --git a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts
index 16c71c66df7..720e2f29621 100644
--- a/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts
+++ b/packages/twenty-front/src/modules/object-record/object-sort-dropdown/utils/turnSortsIntoOrderBy.ts
@@ -14,7 +14,10 @@ import {
import { hasObjectMetadataItemPositionField } from '@/object-metadata/utils/hasObjectMetadataItemPositionField';
import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
import { isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType, ViewSortDirection } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ ViewSortDirection,
+} from '~/generated-metadata/graphql';
export const turnSortsIntoOrderBy = (
objectMetadataItem: ObjectMetadataItem,
diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts
index d3857a4e931..7bd5bbc66e9 100644
--- a/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts
+++ b/packages/twenty-front/src/modules/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions.ts
@@ -1,4 +1,4 @@
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
type IsFieldMetadataReadOnlyByPermissionParams = {
objectPermissions: ObjectPermission;
diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts
index 254e6da5b45..cf17c007848 100644
--- a/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts
+++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isObjectMetadataReadOnly.ts
@@ -1,5 +1,5 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
import { isDefined } from 'twenty-shared/utils';
type IsObjectMetadataReadOnlyParams = {
diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts
index e913b03143c..64ae9ce0db3 100644
--- a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts
+++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordFieldReadOnly.ts
@@ -1,6 +1,6 @@
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { isFieldMetadataReadOnlyByPermissions } from '@/object-record/read-only/utils/internal/isFieldMetadataReadOnlyByPermissions';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
type IsRecordFieldReadOnlyParams = {
isRecordReadOnly: boolean;
diff --git a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts
index 029506ba627..93c4b30b566 100644
--- a/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts
+++ b/packages/twenty-front/src/modules/object-record/read-only/utils/isRecordReadOnly.ts
@@ -1,6 +1,6 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { isObjectMetadataReadOnly } from '@/object-record/read-only/utils/isObjectMetadataReadOnly';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
export type IsObjectReadOnlyParams = {
objectPermissions: ObjectPermission;
diff --git a/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts b/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts
index 668cc9daf0f..44b4c084b57 100644
--- a/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts
+++ b/packages/twenty-front/src/modules/object-record/record-board/contexts/RecordBoardContext.ts
@@ -3,7 +3,7 @@ import { createContext } from 'react';
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
type RecordBoardContextProps = {
objectMetadataItem: ObjectMetadataItem;
diff --git a/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts b/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts
index 64febe8c8fe..0451e3c838a 100644
--- a/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts
+++ b/packages/twenty-front/src/modules/object-record/record-calendar/contexts/RecordCalendarContext.ts
@@ -1,6 +1,6 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { type RecordField } from '@/object-record/record-field/types/RecordField';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
import { createRequiredContext } from '~/utils/createRequiredContext';
type RecordCalendarContextValue = {
diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts b/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts
index 7c6bee00094..725e3375c79 100644
--- a/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field-list/hooks/useFieldListFieldMetadataItems.ts
@@ -7,7 +7,7 @@ import { isFieldCellSupported } from '@/object-record/utils/isFieldCellSupported
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import groupBy from 'lodash.groupby';
import { FieldMetadataType } from 'twenty-shared/types';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type UseFieldListFieldMetadataItemsProps = {
objectNameSingular: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx
index f0f0807f814..11ce48f2c22 100644
--- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/components/RecordDetailRecordsListItemContainer.tsx
@@ -1,7 +1,7 @@
import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext';
import isPropValid from '@emotion/is-prop-valid';
import styled from '@emotion/styled';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
const StyledListItem = styled('div', {
shouldForwardProp: (prop) =>
diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx
index d1d3c32ee46..328e0b26d3f 100644
--- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/duplicate/components/__stories__/RecordDetailDuplicatesSection.stories.tsx
@@ -10,7 +10,7 @@ import { getCompaniesMock } from '~/testing/mock-data/companies';
import { RecordDetailDuplicatesSection } from '@/object-record/record-field-list/record-detail-section/duplicate/components/RecordDetailDuplicatesSection';
import { ComponentDecorator } from 'twenty-ui/testing';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
const companiesMock = getCompaniesMock();
diff --git a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx
index 01de52e9944..8dd39e29b01 100644
--- a/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-field-list/record-detail-section/relation/components/__stories__/RecordDetailRelationSection.stories.tsx
@@ -14,7 +14,7 @@ import { RecordFieldsScopeContextProvider } from '@/object-record/record-field-l
import { RecordDetailRelationSection } from '@/object-record/record-field-list/record-detail-section/relation/components/RecordDetailRelationSection';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { ComponentDecorator } from 'twenty-ui/testing';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { RightDrawerDecorator } from '~/testing/decorators/RightDrawerDecorator';
import { allMockPersonRecords } from '~/testing/mock-data/people';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
diff --git a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
index 7866c609f82..7066c72bc01 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/hooks/useRecordsFieldVisibleGqlFields.ts
@@ -11,7 +11,7 @@ import { useRecordIndexContextOrThrow } from '@/object-record/record-index/conte
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type UseRecordsFieldVisibleGqlFields = {
objectMetadataItem: ObjectMetadataItem;
diff --git a/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts b/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts
index 55abe5c69e9..1522d167e90 100644
--- a/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts
+++ b/packages/twenty-front/src/modules/object-record/record-field/types/RecordField.ts
@@ -1,4 +1,4 @@
-import { type AggregateOperations } from '~/generated/graphql';
+import { type AggregateOperations } from '~/generated-metadata/graphql';
export type RecordField = {
id: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts b/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts
index db8f659b79d..436c3715464 100644
--- a/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts
+++ b/packages/twenty-front/src/modules/object-record/record-group/hooks/useRecordGroupActions.ts
@@ -25,7 +25,7 @@ import {
IconEyeOff,
IconSettings,
} from 'twenty-ui/display';
-import { PermissionFlagType } from '~/generated/graphql';
+import { PermissionFlagType } from '~/generated-metadata/graphql';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
type UseRecordGroupActionsParams = {
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts
index 151133aa40d..271d187f88b 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useAggregateGqlFieldsFromRecordIndexGroupAggregates.ts
@@ -5,7 +5,7 @@ import { getAvailableAggregationsFromObjectFields } from '@/object-record/utils/
import { useMemo } from 'react';
import { type Nullable } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { AggregateOperations } from '~/generated/graphql';
+import { AggregateOperations } from '~/generated-metadata/graphql';
export const useAggregateGqlFieldsFromRecordIndexGroupAggregates = ({
objectMetadataItem,
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts
index 473a62d7287..949ce65a182 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleRecordGroupField.ts
@@ -12,7 +12,7 @@ import { convertCoreViewToView } from '@/views/utils/convertCoreViewToView';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { type CoreView } from '~/generated/graphql';
+import { type CoreView } from '~/generated-metadata/graphql';
import { isUndefinedOrNull } from '~/utils/isUndefinedOrNull';
export const useHandleRecordGroupField = () => {
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts
index 399f1185104..21d0c098147 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useHandleToggleColumnSort.ts
@@ -8,7 +8,7 @@ import { getSnapshotValue } from '@/ui/utilities/state/utils/getSnapshotValue';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
type UseHandleToggleColumnSortProps = {
objectMetadataItemId: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts b/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts
index a2aa2d21cf0..2335a0dbd0b 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/hooks/useRecordIndexGroupsRecordsLazyGroupBy.ts
@@ -10,7 +10,7 @@ import { buildGroupByFieldObject } from '@/page-layout/widgets/graph/utils/build
import { useLazyQuery } from '@apollo/client';
import { type Nullable } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { type PageInfo } from '~/generated/graphql';
+import { type PageInfo } from '~/generated-metadata/graphql';
export type GroupsRecordsGroupByLazyResult = {
[queryGqlFieldName: string]: Array<{
diff --git a/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts b/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts
index 614d041e1cb..6a0b109d45e 100644
--- a/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts
+++ b/packages/twenty-front/src/modules/object-record/record-index/utils/getRecordndexAggregateDisplayLabel.ts
@@ -3,7 +3,7 @@ import { getAggregateLabelWithFieldName } from '@/object-record/record-aggregate
import { getAggregateOperationLabel } from '@/object-record/record-board/record-board-column/utils/getAggregateOperationLabel';
import { type ExtendedAggregateOperations } from '@/object-record/record-table/types/ExtendedAggregateOperations';
import { isDefined } from 'twenty-shared/utils';
-import { AggregateOperations } from '~/generated/graphql';
+import { AggregateOperations } from '~/generated-metadata/graphql';
type GetRecordIndexAggregateDisplayLabelParams = {
aggregateOperation: ExtendedAggregateOperations;
diff --git a/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx b/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx
index eebbbb04910..126e91831df 100644
--- a/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-inline-cell/property-box/components/PropertyBox.tsx
@@ -1,7 +1,7 @@
import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext';
import isPropValid from '@emotion/is-prop-valid';
import styled from '@emotion/styled';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
interface PropertyBoxProps {
children: React.ReactNode;
diff --git a/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx b/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx
index 2025be24efb..d4cfdca1bda 100644
--- a/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-merge/components/MergePreviewTab.tsx
@@ -5,7 +5,7 @@ import { getCardComponent } from '@/object-record/record-show/utils/getCardCompo
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { isDefined } from 'twenty-shared/utils';
import { Section } from 'twenty-ui/layout';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
type MergePreviewTabProps = {
objectNameSingular: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx b/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx
index d55b6024312..c085d15c723 100644
--- a/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-merge/components/MergeRecordTab.tsx
@@ -3,7 +3,7 @@ import { CardType } from '@/object-record/record-show/types/CardType';
import { getCardComponent } from '@/object-record/record-show/utils/getCardComponent';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
import { Section } from 'twenty-ui/layout';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
type MergeRecordTabProps = {
isInRightDrawer?: boolean;
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx
index 0d91892b94f..69898e0c3ef 100644
--- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/components/MultipleRecordPickerMenuItemContent.tsx
@@ -17,7 +17,7 @@ import { Avatar } from 'twenty-ui/display';
import { MenuItemMultiSelectAvatar } from 'twenty-ui/navigation';
import { multipleRecordPickerSearchableObjectMetadataItemsComponentState } from '@/object-record/record-picker/multiple-record-picker/states/multipleRecordPickerSearchableObjectMetadataItemsComponentState';
-import { type SearchRecord } from '~/generated-metadata/graphql';
+import { type SearchRecord } from '~/generated/graphql';
export const StyledSelectableItem = styled(SelectableListItem)`
height: 100%;
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts
index 2e1d9f823a9..df631c9a112 100644
--- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts
+++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/hooks/useMultipleRecordPickerPerformSearch.ts
@@ -16,8 +16,7 @@ import { type ApolloClient } from '@apollo/client';
import { isNonEmptyArray } from '@sniptt/guards';
import { useRecoilCallback } from 'recoil';
import { capitalize, isDefined } from 'twenty-shared/utils';
-import { type SearchRecord } from '~/generated-metadata/graphql';
-import { type SearchResultEdge } from '~/generated/graphql';
+import { type SearchRecord, type SearchResultEdge } from '~/generated/graphql';
const MULTIPLE_RECORD_PICKER_PAGE_SIZE = 30;
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts
index d524798e2c8..4b31531af0c 100644
--- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts
+++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/states/searchRecordStoreComponentFamilyState.ts
@@ -1,6 +1,6 @@
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { createFamilyState } from '@/ui/utilities/state/utils/createFamilyState';
-import { type SearchRecord } from '~/generated-metadata/graphql';
+import { type SearchRecord } from '~/generated/graphql';
export const searchRecordStoreFamilyState = createFamilyState<
(SearchRecord & { record?: ObjectRecord }) | undefined,
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts
index 042aa2c828f..a4a1ecb8277 100644
--- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts
+++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/__tests__/sortMorphItems.test.ts
@@ -1,5 +1,5 @@
import { type RecordPickerPickableMorphItem } from '@/object-record/record-picker/types/RecordPickerPickableMorphItem';
-import { type SearchRecord } from '~/generated-metadata/graphql';
+import { type SearchRecord } from '~/generated/graphql';
import { sortMorphItems } from '@/object-record/record-picker/multiple-record-picker/utils/sortMorphItems';
const createMorphItem = (
diff --git a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts
index e32571f280b..c37b3a02ff9 100644
--- a/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts
+++ b/packages/twenty-front/src/modules/object-record/record-picker/multiple-record-picker/utils/sortMorphItems.ts
@@ -1,5 +1,5 @@
import { type RecordPickerPickableMorphItem } from '@/object-record/record-picker/types/RecordPickerPickableMorphItem';
-import { type SearchRecord } from '~/generated-metadata/graphql';
+import { type SearchRecord } from '~/generated/graphql';
export const sortMorphItems = (
morphItems: RecordPickerPickableMorphItem[],
diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx
index bdf62929e35..55caf67890b 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-show/components/PageLayoutRecordPageRenderer.tsx
@@ -13,7 +13,7 @@ import { RightDrawerFooter } from '@/ui/layout/right-drawer/components/RightDraw
import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
const StyledShowPageBannerContainer = styled.div`
z-index: 1;
diff --git a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx
index 10ec9da8be5..1c21f06ee4c 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-show/components/SummaryCard.tsx
@@ -16,8 +16,10 @@ import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ FeatureFlagKey,
+} from '~/generated-metadata/graphql';
type SummaryCardProps = {
objectNameSingular: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts b/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts
index d92c1252249..e39906a3ec9 100644
--- a/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts
+++ b/packages/twenty-front/src/modules/object-record/record-show/hooks/usePersonAvatarUpload.ts
@@ -9,8 +9,9 @@ import {
FileFolder,
useUploadFilesFieldFileMutation,
useUploadImageMutation,
+ FeatureFlagKey,
+ FieldMetadataType,
} from '~/generated-metadata/graphql';
-import { FeatureFlagKey, FieldMetadataType } from '~/generated/graphql';
export const usePersonAvatarUpload = (personRecordId: string) => {
const coreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts b/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts
index f419ff05ee6..4f3cdf34249 100644
--- a/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts
+++ b/packages/twenty-front/src/modules/object-record/record-sort/types/RecordSort.ts
@@ -1,4 +1,4 @@
-import { type ViewSortDirection } from '~/generated/graphql';
+import { type ViewSortDirection } from '~/generated-metadata/graphql';
export type RecordSort = {
id: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts
index 8b2987e203d..e8e74540bc5 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/contexts/RecordTableContext.ts
@@ -1,6 +1,6 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { type RecordField } from '@/object-record/record-field/types/RecordField';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
import { createRequiredContext } from '~/utils/createRequiredContext';
type RecordTableContextValue = {
diff --git a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
index cfc2a2c75a3..4242a3619e9 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
+++ b/packages/twenty-front/src/modules/object-record/record-table/record-table-row/components/RecordTableRow.tsx
@@ -16,7 +16,7 @@ import { getDefaultRecordFieldsToListen } from '@/sse-db-event/utils/getDefaultR
import { useRecoilComponentFamilyValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentFamilyValue';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type RecordTableRowProps = {
recordId: string;
diff --git a/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts b/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts
index 6ce8d0890b7..2b32fc484ff 100644
--- a/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts
+++ b/packages/twenty-front/src/modules/object-record/record-table/types/ExtendedAggregateOperations.ts
@@ -1,5 +1,5 @@
import { type DateAggregateOperations } from '@/object-record/record-table/constants/DateAggregateOperations';
-import { type AggregateOperations } from '~/generated/graphql';
+import { type AggregateOperations } from '~/generated-metadata/graphql';
export type ExtendedAggregateOperations =
| AggregateOperations
diff --git a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
index 5710c32803c..7c3472c6532 100644
--- a/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
+++ b/packages/twenty-front/src/modules/object-record/spreadsheet-import/utils/__tests__/buildRecordFromImportedStructuredRow.test.ts
@@ -5,8 +5,7 @@ import {
type ImportedStructuredRow,
type SpreadsheetImportField,
} from '@/spreadsheet-import/types';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
-import { RelationType } from '~/generated/graphql';
+import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql';
describe('buildRecordFromImportedStructuredRow', () => {
const fields: FieldMetadataItem[] = [
diff --git a/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts b/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts
index 198e9392c6c..2ad96b0fdbd 100644
--- a/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts
+++ b/packages/twenty-front/src/modules/object-record/utils/prefillRecord.ts
@@ -5,7 +5,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { generateEmptyFieldValue } from '@/object-record/utils/generateEmptyFieldValue';
import { computeMorphRelationFieldName, isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType, RelationType } from '~/generated/graphql';
+import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql';
type PrefillRecordArgs = {
objectMetadataItem: ObjectMetadataItem;
diff --git a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts
index 8514c501937..39f8986b782 100644
--- a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts
+++ b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useOnboardingStatus.test.ts
@@ -8,7 +8,7 @@ import {
} from '@/auth/states/currentUserState';
import { tokenPairState } from '@/auth/states/tokenPairState';
import { useOnboardingStatus } from '@/onboarding/hooks/useOnboardingStatus';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
const tokenPair = {
accessOrWorkspaceAgnosticToken: {
diff --git a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts
index 2a76bb1c474..ffd9be1f9cf 100644
--- a/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts
+++ b/packages/twenty-front/src/modules/onboarding/hooks/__tests__/useSetNextOnboardingStatus.test.ts
@@ -5,7 +5,10 @@ import { v4 } from 'uuid';
import { currentUserState } from '@/auth/states/currentUserState';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { useSetNextOnboardingStatus } from '@/onboarding/hooks/useSetNextOnboardingStatus';
-import { OnboardingStatus, SubscriptionStatus } from '~/generated/graphql';
+import {
+ OnboardingStatus,
+ SubscriptionStatus,
+} from '~/generated-metadata/graphql';
import {
mockCurrentWorkspace,
mockedUserData,
diff --git a/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts b/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts
index 1fe6b894045..fb36541ed5d 100644
--- a/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts
+++ b/packages/twenty-front/src/modules/onboarding/hooks/useOnboardingStatus.ts
@@ -2,7 +2,7 @@ import { useRecoilValue } from 'recoil';
import { useIsLogged } from '@/auth/hooks/useIsLogged';
import { currentUserState } from '@/auth/states/currentUserState';
-import { type OnboardingStatus } from '~/generated/graphql';
+import { type OnboardingStatus } from '~/generated-metadata/graphql';
export const useOnboardingStatus = (): OnboardingStatus | null | undefined => {
const currentUser = useRecoilValue(currentUserState);
diff --git a/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts b/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts
index 7a12ac3691e..674899cdd2a 100644
--- a/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts
+++ b/packages/twenty-front/src/modules/onboarding/hooks/useSetNextOnboardingStatus.ts
@@ -10,7 +10,7 @@ import {
} from '@/auth/states/currentWorkspaceState';
import { calendarBookingPageIdState } from '@/client-config/states/calendarBookingPageIdState';
import { isDefined } from 'twenty-shared/utils';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
const getNextOnboardingStatus = (
currentUser: CurrentUser | null,
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx
index 9dff96dd7e8..9369d78af0f 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutContent.tsx
@@ -8,7 +8,10 @@ import { usePageLayoutTabWithVisibleWidgetsOrThrow } from '@/page-layout/hooks/u
import { useReorderPageLayoutWidgets } from '@/page-layout/hooks/useReorderPageLayoutWidgets';
import { isPageLayoutInEditModeComponentState } from '@/page-layout/states/isPageLayoutInEditModeComponentState';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
-import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql';
+import {
+ PageLayoutTabLayoutMode,
+ PageLayoutType,
+} from '~/generated-metadata/graphql';
export const PageLayoutContent = () => {
const isPageLayoutInEditMode = useRecoilComponentValue(
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx
index 9c4e9888dcc..e88d93ed89b 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutLeftPanel.tsx
@@ -8,7 +8,7 @@ import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingC
import { useTargetRecord } from '@/ui/layout/contexts/useTargetRecord';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
import styled from '@emotion/styled';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
background: ${({ theme }) => theme.background.secondary};
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx
index d31a1679d2b..e2a020949df 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRelationWidgetsSyncEffect.tsx
@@ -14,7 +14,7 @@ import { getSnapshotValue } from '@/ui/utilities/state/utils/getSnapshotValue';
import { useEffect } from 'react';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
type PageLayoutRelationWidgetsSyncEffectProps = {
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx
index a03a911629f..fcd3f93ec9e 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutRendererContent.tsx
@@ -121,7 +121,8 @@ export const PageLayoutRendererContent = () => {
tabs={sortedTabs}
componentInstanceId={tabListInstanceId}
defaultTabToFocusOnMobileAndSidePanelId={
- currentPageLayout.defaultTabToFocusOnMobileAndSidePanelId
+ currentPageLayout.defaultTabToFocusOnMobileAndSidePanelId ??
+ undefined
}
/>
{(sortedTabs.length > 1 || isPageLayoutInEditMode) && (
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx
index 4c7b80092e9..977e636a43f 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabList.tsx
@@ -43,7 +43,7 @@ import { type SingleTabProps } from '@/ui/layout/tab-list/types/SingleTabProps';
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { isDefined } from 'twenty-shared/utils';
-import { type PageLayoutType } from '~/generated/graphql';
+import { type PageLayoutType } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
box-sizing: border-box;
diff --git a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx
index 8a0a7f55802..81799dc596e 100644
--- a/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/PageLayoutTabListReorderableOverflowDropdown.tsx
@@ -29,7 +29,7 @@ import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/com
import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValue';
import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState';
import { useContext } from 'react';
-import { type PageLayoutType } from '~/generated/graphql';
+import { type PageLayoutType } from '~/generated-metadata/graphql';
const StyledOverflowDropdownListDraggableWrapper = styled.div`
display: flex;
diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx
index 3a65c1f86f6..eb960dce356 100644
--- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutRenderer.stories.tsx
@@ -14,16 +14,17 @@ import { CoreObjectNameSingular } from '@/object-metadata/types/CoreObjectNameSi
import { generateGroupByAggregateQuery } from '@/object-record/record-aggregate/utils/generateGroupByAggregateQuery';
import { PageLayoutRenderer } from '@/page-layout/components/PageLayoutRenderer';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
-import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql';
import {
AggregateOperations,
AxisNameDisplay,
type BarChartConfiguration,
BarChartLayout,
+ GraphOrderBy,
PageLayoutType,
type PageLayoutWidget,
WidgetConfigurationType,
-} from '~/generated/graphql';
+ WidgetType,
+} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
diff --git a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx
index 47d7a057fd1..23697271440 100644
--- a/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/components/__stories__/PageLayoutTabList.stories.tsx
@@ -11,7 +11,7 @@ import { PageLayoutTabListEffect } from '@/page-layout/components/PageLayoutTabL
import { PageLayoutComponentInstanceContext } from '@/page-layout/states/contexts/PageLayoutComponentInstanceContext';
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
import { calculateNewPosition } from '@/ui/layout/draggable-list/utils/calculateNewPosition';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
border: 1px solid ${({ theme }) => theme.border.color.strong};
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts
index 5a4e61b5560..61e053a4d95 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultNoteRecordPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const DEFAULT_NOTE_RECORD_PAGE_LAYOUT: PageLayout = {
__typename: 'PageLayout',
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts
index 6df2602b49d..e38835c7833 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultOpportunityRecordPageLayout.ts
@@ -5,7 +5,7 @@ import {
PageLayoutType,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const DEFAULT_OPPORTUNITY_RECORD_PAGE_LAYOUT: PageLayout = {
__typename: 'PageLayout',
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts
index ec8160ab916..5c54d33c9a5 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultPersonRecordPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const DEFAULT_PERSON_RECORD_PAGE_LAYOUT: PageLayout = {
__typename: 'PageLayout',
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts
index 484bb119a82..15ac70d0816 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultRecordPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const DEFAULT_RECORD_PAGE_LAYOUT: PageLayout = {
__typename: 'PageLayout',
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts
index cc24a5dbc99..fbeb3a95b9c 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultTaskRecordPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const DEFAULT_TASK_RECORD_PAGE_LAYOUT: PageLayout = {
__typename: 'PageLayout',
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts
index 9ca75e1454f..6214e7f6c47 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
/**
* Default Workflow PageLayout.
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts
index ba864bcde5a..a2a185e8b30 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowRunPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
/**
* Default WorkflowRun PageLayout.
diff --git a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts
index 0d00b80b3c6..f9b3b2caf42 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/DefaultWorkflowVersionPageLayout.ts
@@ -4,7 +4,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
/**
* Default WorkflowVersion PageLayout.
diff --git a/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts b/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts
index ac7cbfa1192..a8dee82a314 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/GraphWidgetSizes.ts
@@ -1,5 +1,5 @@
import { type WidgetSizeConfig } from '@/page-layout/types/WidgetSizeConfig';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
export const GRAPH_WIDGET_SIZES: Partial<
Record<WidgetConfigurationType, WidgetSizeConfig>
diff --git a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
index 216f92f7766..29f9e47e894 100644
--- a/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
+++ b/packages/twenty-front/src/modules/page-layout/constants/WidgetSizes.ts
@@ -1,5 +1,5 @@
import { type WidgetSizeConfig } from '@/page-layout/types/WidgetSizeConfig';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
export const WIDGET_SIZES: Partial<Record<WidgetType, WidgetSizeConfig>> = {
[WidgetType.IFRAME]: {
diff --git a/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts b/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts
index e0a9ef1090c..0737807b618 100644
--- a/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts
+++ b/packages/twenty-front/src/modules/page-layout/contexts/PageLayoutContentContext.ts
@@ -1,4 +1,4 @@
-import { type PageLayoutTabLayoutMode } from '~/generated/graphql';
+import { type PageLayoutTabLayoutMode } from '~/generated-metadata/graphql';
import { createRequiredContext } from '~/utils/createRequiredContext';
export type PageLayoutContentContextType = {
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx
index cfa0bf7809a..f1211f5e9de 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutGraphWidget.test.tsx
@@ -8,8 +8,11 @@ import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state
import { act, renderHook } from '@testing-library/react';
import { useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { WidgetType } from '~/generated-metadata/graphql';
-import { PageLayoutType, WidgetConfigurationType } from '~/generated/graphql';
+import {
+ WidgetType,
+ PageLayoutType,
+ WidgetConfigurationType,
+} from '~/generated-metadata/graphql';
import {
PAGE_LAYOUT_TEST_INSTANCE_ID,
PageLayoutTestWrapper,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
index 815184061b1..a83ec557a97 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/useCreatePageLayoutTab.test.tsx
@@ -5,7 +5,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { useSetRecoilComponentState } from '@/ui/utilities/state/component-state/hooks/useSetRecoilComponentState';
import { act, renderHook } from '@testing-library/react';
import { useSetRecoilState } from 'recoil';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { useCreatePageLayoutTab } from '@/page-layout/hooks/useCreatePageLayoutTab';
import {
PAGE_LAYOUT_TEST_INSTANCE_ID,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx
index c88dd71a805..d6a6fee8109 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutDraftState.test.tsx
@@ -1,12 +1,13 @@
import { usePageLayoutDraftState } from '@/page-layout/hooks/usePageLayoutDraftState';
import { act, renderHook } from '@testing-library/react';
-import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql';
import {
+ GraphOrderBy,
+ WidgetType,
AggregateOperations,
BarChartLayout,
PageLayoutType,
WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import {
PAGE_LAYOUT_TEST_INSTANCE_ID,
PageLayoutTestWrapper,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx
index f67e3b70380..8b15f214208 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx
+++ b/packages/twenty-front/src/modules/page-layout/hooks/__tests__/usePageLayoutWithRelationWidgets.test.tsx
@@ -12,7 +12,7 @@ import {
PageLayoutType,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
jest.mock('@/ui/layout/contexts/LayoutRenderingContext');
jest.mock(
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts
index c84c861bb14..53242c3cf65 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutFrontComponentWidget.ts
@@ -16,7 +16,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 as uuidv4 } from 'uuid';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
export const useCreatePageLayoutFrontComponentWidget = (
pageLayoutIdFromProps?: string,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts
index 420f7b32cbb..9589441d7e7 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutGraphWidget.ts
@@ -23,7 +23,7 @@ import {
BarChartLayout,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useCreatePageLayoutGraphWidget = (
pageLayoutIdFromProps?: string,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts
index 1eed19d7c54..b1e0c3d7a0d 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutIframeWidget.ts
@@ -16,7 +16,7 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 as uuidv4 } from 'uuid';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
export const useCreatePageLayoutIframeWidget = (
pageLayoutIdFromProps?: string,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts
index 754db3d13aa..7e5ba4939aa 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useCreatePageLayoutStandaloneRichTextWidget.ts
@@ -18,7 +18,7 @@ import {
type PageLayoutWidget,
type RichTextV2Body,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useCreatePageLayoutStandaloneRichTextWidget = (
pageLayoutIdFromProps?: string,
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
index 680dab921c5..bae3496ef2e 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/useEditPageLayoutWidget.ts
@@ -11,7 +11,7 @@ import { PageLayoutComponentInstanceContext } from '@/page-layout/states/context
import { pageLayoutEditingWidgetIdComponentState } from '@/page-layout/states/pageLayoutEditingWidgetIdComponentState';
import { useAvailableComponentInstanceIdOrThrow } from '@/ui/utilities/state/component-state/hooks/useAvailableComponentInstanceIdOrThrow';
import { t } from '@lingui/core/macro';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
export const useEditPageLayoutWidget = (pageLayoutIdFromProps?: string) => {
const pageLayoutId = useAvailableComponentInstanceIdOrThrow(
diff --git a/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts b/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts
index ed513a538d3..935200b7fdf 100644
--- a/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts
+++ b/packages/twenty-front/src/modules/page-layout/hooks/usePageLayoutWithRelationWidgets.ts
@@ -3,7 +3,7 @@ import { type PageLayout } from '@/page-layout/types/PageLayout';
import { injectRelationWidgetsIntoLayout } from '@/page-layout/utils/injectRelationWidgetsIntoLayout';
import { useLayoutRenderingContext } from '@/ui/layout/contexts/LayoutRenderingContext';
import { isDefined } from 'twenty-shared/utils';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
export const usePageLayoutWithRelationWidgets = (
basePageLayout: PageLayout | undefined,
diff --git a/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts b/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts
index bd8ab1439b8..0d19653308b 100644
--- a/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts
+++ b/packages/twenty-front/src/modules/page-layout/states/pageLayoutDraftComponentState.ts
@@ -1,5 +1,5 @@
import { createComponentState } from '@/ui/utilities/state/component-state/utils/createComponentState';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
import { type DraftPageLayout } from '@/page-layout/types/DraftPageLayout';
import { PageLayoutComponentInstanceContext } from './contexts/PageLayoutComponentInstanceContext';
diff --git a/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts b/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts
index 3b37d3fba4c..69bf177190e 100644
--- a/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts
+++ b/packages/twenty-front/src/modules/page-layout/types/FieldConfiguration.ts
@@ -1,4 +1,4 @@
-import { type WidgetConfigurationType } from '~/generated/graphql';
+import { type WidgetConfigurationType } from '~/generated-metadata/graphql';
export type FieldConfiguration = {
__typename: 'FieldConfiguration';
diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts
index 017aacf9576..bf429526603 100644
--- a/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/types/PageLayout.ts
@@ -1,5 +1,5 @@
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { type PageLayout as PageLayoutGenerated } from '~/generated/graphql';
+import { type PageLayout as PageLayoutGenerated } from '~/generated-metadata/graphql';
export type PageLayout = Omit<PageLayoutGenerated, 'tabs'> & {
tabs: PageLayoutTab[];
diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts
index 243e711a2fb..4d3c57ff552 100644
--- a/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts
+++ b/packages/twenty-front/src/modules/page-layout/types/PageLayoutTab.ts
@@ -1,5 +1,5 @@
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
-import { type PageLayoutTab as PageLayoutTabGenerated } from '~/generated/graphql';
+import { type PageLayoutTab as PageLayoutTabGenerated } from '~/generated-metadata/graphql';
export type PageLayoutTab = Omit<PageLayoutTabGenerated, 'widgets'> & {
widgets: PageLayoutWidget[];
diff --git a/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts b/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts
index 73237610754..93384fe680b 100644
--- a/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/types/PageLayoutWidget.ts
@@ -4,7 +4,7 @@ import { type Nullable } from 'twenty-shared/types';
import {
type PageLayoutWidget as PageLayoutWidgetGenerated,
type WidgetConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type PageLayoutWidget = Omit<
PageLayoutWidgetGenerated,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts
index c921937ba1f..adfb92981eb 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/addWidgetToTab.test.ts
@@ -1,11 +1,11 @@
-import { WidgetType } from '~/generated-metadata/graphql';
+import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
+import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab';
import {
AggregateOperations,
WidgetConfigurationType,
+ WidgetType,
type PageLayoutWidget,
-} from '~/generated/graphql';
-import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { addWidgetToTab } from '@/page-layout/utils/addWidgetToTab';
+} from '~/generated-metadata/graphql';
describe('addWidgetToTab', () => {
const mockWidget: PageLayoutWidget = {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
index 4582fd0719c..fa3efd0bdab 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/convertPageLayoutToTabLayouts.test.ts
@@ -7,7 +7,7 @@ import {
PageLayoutType,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
describe('convertPageLayoutToTabLayouts', () => {
it('should convert page layout to tab layouts', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts
index 5cf2262d9ff..d2db22d2c8a 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultGraphWidget.test.ts
@@ -4,7 +4,7 @@ import {
BarChartLayout,
GraphOrderBy,
WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { createDefaultGraphWidget } from '@/page-layout/utils/createDefaultGraphWidget';
describe('createDefaultGraphWidget', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
index 27678e86b03..21053b59d9d 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/createDefaultStandaloneRichTextWidget.test.ts
@@ -1,4 +1,4 @@
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
import { createDefaultStandaloneRichTextWidget } from '@/page-layout/utils/createDefaultStandaloneRichTextWidget';
describe('createDefaultStandaloneRichTextWidget', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts
index e099d1bd959..c9670beb983 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/extractFieldMetadataIdsFromWidget.test.ts
@@ -2,8 +2,8 @@ import { extractFieldMetadataIdsFromWidget } from '@/page-layout/utils/extractFi
import {
type PageLayoutWidget,
WidgetType,
+ type WidgetConfiguration,
} from '~/generated-metadata/graphql';
-import { type WidgetConfiguration } from '~/generated/graphql';
import {
TEST_AGGREGATE_CHART_CONFIGURATION,
TEST_BAR_CHART_CONFIGURATION,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts
index 35f29137c37..97b8ae02dad 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/filterVisibleWidgets.test.ts
@@ -1,5 +1,5 @@
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
import { filterVisibleWidgets } from '@/page-layout/utils/filterVisibleWidgets';
describe('filterVisibleWidgets', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts
index 43faf7a0c06..50d242972c2 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsByDisplayMode.test.ts
@@ -1,7 +1,10 @@
import { type DraftPageLayout } from '@/page-layout/types/DraftPageLayout';
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
import { getTabsByDisplayMode } from '@/page-layout/utils/getTabsByDisplayMode';
-import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql';
+import {
+ PageLayoutTabLayoutMode,
+ PageLayoutType,
+} from '~/generated-metadata/graphql';
describe('getTabsByDisplayMode', () => {
const createMockTab = (id: string): PageLayoutTab => ({
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts
index 16fcafdc82a..a3a2908aa57 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getTabsWithVisibleWidgets.test.ts
@@ -1,5 +1,5 @@
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
import { getTabsWithVisibleWidgets } from '@/page-layout/utils/getTabsWithVisibleWidgets';
describe('getTabsWithVisibleWidgets', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts
index b653995bce5..399e57b184f 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/getWidgetSize.test.ts
@@ -1,5 +1,5 @@
import { getWidgetSize } from '@/page-layout/utils/getWidgetSize';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
describe('getWidgetSize', () => {
describe('chart types with specific sizes', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts
index c0d3d6ce159..d4e5a9f0fbc 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/prepareGridLayoutItemsWithPlaceholders.test.ts
@@ -1,11 +1,11 @@
import { PENDING_WIDGET_PLACEHOLDER_LAYOUT_KEY } from '@/page-layout/constants/PendingWidgetPlaceholderLayoutKey';
+import { prepareGridLayoutItemsWithPlaceholders } from '@/page-layout/utils/prepareGridLayoutItemsWithPlaceholders';
import {
AggregateOperations,
WidgetConfigurationType,
WidgetType,
type PageLayoutWidget,
-} from '~/generated/graphql';
-import { prepareGridLayoutItemsWithPlaceholders } from '@/page-layout/utils/prepareGridLayoutItemsWithPlaceholders';
+} from '~/generated-metadata/graphql';
describe('prepareGridLayoutItemsWithPlaceholders', () => {
const createMockWidget = (id: string): PageLayoutWidget => ({
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts
index f384fe256f8..c0eec0fe3fb 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/shouldEnableTabEditingFeatures.test.ts
@@ -1,5 +1,5 @@
import { shouldEnableTabEditingFeatures } from '@/page-layout/utils/shouldEnableTabEditingFeatures';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
describe('shouldEnableTabEditingFeatures', () => {
it('should return true for DASHBOARD layout type', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts b/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts
index 673689cdac6..2698574ed3d 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/__tests__/updateWidgetMinimumSizeForGraphType.test.ts
@@ -2,7 +2,7 @@ import { getWidgetSize } from '@/page-layout/utils/getWidgetSize';
import { updateLayoutItemConstraints } from '@/page-layout/utils/updateLayoutItemConstraints';
import { updateWidgetMinimumSizeForGraphType } from '@/page-layout/utils/updateWidgetMinimumSizeForGraphType';
import { type Layouts } from 'react-grid-layout';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
jest.mock('../getWidgetSize');
jest.mock('../updateLayoutItemConstraints');
diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts
index d1ab5ab8604..4d083539b90 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultFrontComponentWidget.ts
@@ -2,7 +2,7 @@ import {
type GridPosition,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
export const createDefaultFrontComponentWidget = (
diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts
index a584e23eab9..097392d7cf4 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultGraphWidget.ts
@@ -8,7 +8,7 @@ import {
type WidgetConfiguration,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { type GraphWidgetFieldSelection } from '@/page-layout/types/GraphWidgetFieldSelection';
import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor';
@@ -25,8 +25,9 @@ const createDefaultGraphConfiguration = (
displayDataLabel: true,
displayLegend: true,
color: 'auto' satisfies GraphColor,
- primaryAxisGroupByFieldMetadataId: fieldSelection?.groupByFieldMetadataIdX,
- aggregateFieldMetadataId: fieldSelection?.aggregateFieldMetadataId,
+ primaryAxisGroupByFieldMetadataId:
+ fieldSelection?.groupByFieldMetadataIdX ?? '',
+ aggregateFieldMetadataId: fieldSelection?.aggregateFieldMetadataId ?? '',
aggregateOperation: AggregateOperations.SUM,
primaryAxisOrderBy: GraphOrderBy.FIELD_POSITION_ASC,
axisNameDisplay: AxisNameDisplay.NONE,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts
index 0fce64132b0..18288aab2b7 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultIframeWidget.ts
@@ -3,7 +3,7 @@ import {
type PageLayoutWidget,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const createDefaultIframeWidget = (
id: string,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts b/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts
index 80db57dde19..3fa7032b9e1 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/createDefaultStandaloneRichTextWidget.ts
@@ -4,7 +4,7 @@ import {
type RichTextV2Body,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const createDefaultStandaloneRichTextWidget = (
id: string,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts b/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts
index 80a57246060..ac2cb38cdef 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/getTabLayoutMode.ts
@@ -1,6 +1,9 @@
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
import { assertPageLayoutTabHasDefinedLayoutModeOrThrow } from '@/page-layout/utils/assertPageLayoutTabHasDefinedLayoutModeOrThrow';
-import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql';
+import {
+ PageLayoutTabLayoutMode,
+ PageLayoutType,
+} from '~/generated-metadata/graphql';
type GetTabLayoutModeParams = {
tab: PageLayoutTab | undefined;
diff --git a/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts b/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts
index 97a8b94a3a8..29911c6b499 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/getTabsByDisplayMode.ts
@@ -1,5 +1,5 @@
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
type GetTabsByDisplayModeParams = {
tabs: PageLayoutTab[];
diff --git a/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts b/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts
index 1fc757b0d2c..29026ada79b 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/getWidgetSize.ts
@@ -1,6 +1,6 @@
import { DEFAULT_WIDGET_SIZE } from '@/page-layout/constants/DefaultWidgetSize';
import { GRAPH_WIDGET_SIZES } from '@/page-layout/constants/GraphWidgetSizes';
-import { type WidgetConfigurationType } from '~/generated/graphql';
+import { type WidgetConfigurationType } from '~/generated-metadata/graphql';
export const getWidgetSize = (
configurationType: WidgetConfigurationType,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts b/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts
index 6c3345588c7..6a94d613cce 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/getWidgetTitle.ts
@@ -4,7 +4,7 @@ import {
BarChartLayout,
WidgetConfigurationType,
type WidgetConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const getWidgetTitle = (
configuration: Pick<WidgetConfiguration, 'configurationType'> & {
diff --git a/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts b/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts
index c68537a874b..301534a1631 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/injectRelationWidgetsIntoLayout.ts
@@ -2,7 +2,10 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIte
import { type PageLayout } from '@/page-layout/types/PageLayout';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { isDefined } from 'twenty-shared/utils';
-import { WidgetConfigurationType, WidgetType } from '~/generated/graphql';
+import {
+ WidgetConfigurationType,
+ WidgetType,
+} from '~/generated-metadata/graphql';
const getRelationFieldWidgetToInsert = (
field: FieldMetadataItem,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts b/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts
index 54c74723c63..5da943dedd9 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/shouldEnableTabEditingFeatures.ts
@@ -1,4 +1,4 @@
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
export const shouldEnableTabEditingFeatures = (
pageLayoutType: PageLayoutType,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts b/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts
index 1c775eaae69..811044b47a4 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/transformPageLayout.ts
@@ -1,6 +1,6 @@
import { type PageLayout } from '@/page-layout/types/PageLayout';
import { type PageLayoutTab } from '@/page-layout/types/PageLayoutTab';
-import { type PageLayout as PageLayoutGenerated } from '~/generated/graphql';
+import { type PageLayout as PageLayoutGenerated } from '~/generated-metadata/graphql';
export const transformPageLayout = (
pageLayout: PageLayoutGenerated,
diff --git a/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts b/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts
index a6a2c997b28..260ad9da551 100644
--- a/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts
+++ b/packages/twenty-front/src/modules/page-layout/utils/updateWidgetMinimumSizeForGraphType.ts
@@ -2,7 +2,7 @@ import { getWidgetSize } from '@/page-layout/utils/getWidgetSize';
import { updateLayoutItemConstraints } from '@/page-layout/utils/updateLayoutItemConstraints';
import { type Layouts } from 'react-grid-layout';
import { isDefined } from 'twenty-shared/utils';
-import { type WidgetConfigurationType } from '~/generated/graphql';
+import { type WidgetConfigurationType } from '~/generated-metadata/graphql';
export const updateWidgetMinimumSizeForGraphType = ({
configurationType,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx
index e8d23c7532f..9cc20b7641b 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/PageLayoutWidgetNoDataDisplay.tsx
@@ -2,7 +2,7 @@ import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget';
import styled from '@emotion/styled';
import { t } from '@lingui/core/macro';
import { AppTooltip, Status } from 'twenty-ui/display';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
const StyledNoDataContainer = styled.div`
align-items: center;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx
index 929ed124377..99871a1a101 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetActionRenderer.tsx
@@ -1,6 +1,6 @@
import { type WidgetAction } from '@/page-layout/widgets/types/WidgetAction';
import { CustomError } from 'twenty-shared/utils';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget';
import { WidgetActionFieldEdit } from './WidgetActionFieldEdit';
import { WidgetActionFieldSeeAll } from './WidgetActionFieldSeeAll';
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx
index ed2eea936ad..81a064c8bb0 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetPlaceholder.tsx
@@ -1,6 +1,6 @@
import { useCurrentPageLayoutOrThrow } from '@/page-layout/hooks/useCurrentPageLayoutOrThrow';
import { DashboardWidgetPlaceholder } from '@/page-layout/widgets/components/DashboardWidgetPlaceholder';
-import { PageLayoutType } from '~/generated/graphql';
+import { PageLayoutType } from '~/generated-metadata/graphql';
export const WidgetPlaceholder = () => {
const { currentPageLayout } = useCurrentPageLayoutOrThrow();
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx
index 758605ebc39..5e5d91572db 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/WidgetRenderer.tsx
@@ -33,7 +33,7 @@ import {
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
const StyledNoAccessContainer = styled.div`
align-items: center;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx
index ef4e3386493..56e3965b45d 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/DashboardWidgetPlaceholder.stories.tsx
@@ -12,7 +12,10 @@ import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingCon
import { type Meta, type StoryObj } from '@storybook/react-vite';
import { type MutableSnapshot } from 'recoil';
import { ComponentDecorator } from 'twenty-ui/testing';
-import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql';
+import {
+ PageLayoutTabLayoutMode,
+ PageLayoutType,
+} from '~/generated-metadata/graphql';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
const mockPageLayout: PageLayout = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx
index e6c824646c5..41ff028b7ba 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/components/__stories__/WidgetRenderer.stories.tsx
@@ -37,15 +37,16 @@ import { WidgetComponentInstanceContext } from '@/page-layout/widgets/states/con
import { widgetCardHoveredComponentFamilyState } from '@/page-layout/widgets/states/widgetCardHoveredComponentFamilyState';
import { type WidgetCardVariant } from '@/page-layout/widgets/types/WidgetCardVariant';
import { LayoutRenderingProvider } from '@/ui/layout/contexts/LayoutRenderingContext';
-import { GraphOrderBy, WidgetType } from '~/generated-metadata/graphql';
import {
+ GraphOrderBy,
+ WidgetType,
AggregateOperations,
AxisNameDisplay,
BarChartLayout,
PageLayoutTabLayoutMode,
PageLayoutType,
WidgetConfigurationType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { ChipGeneratorsDecorator } from '~/testing/decorators/ChipGeneratorsDecorator';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts
index bdec2f84b6d..6d06e9a2a03 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/field/utils/isFieldWidget.ts
@@ -1,7 +1,7 @@
import { type FieldConfiguration } from '@/page-layout/types/FieldConfiguration';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { isDefined } from 'twenty-shared/utils';
-import { WidgetType } from '~/generated/graphql';
+import { WidgetType } from '~/generated-metadata/graphql';
export const isFieldWidget = (
widget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx
index 7b634ee0a0c..f75dc84fbe9 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/GraphWidget.tsx
@@ -9,7 +9,7 @@ import { areChartConfigurationFieldsValidForQuery } from '@/page-layout/widgets/
import { useCurrentWidget } from '@/page-layout/widgets/hooks/useCurrentWidget';
import { lazy, Suspense } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
const GraphWidgetGaugeChart = lazy(() =>
import(
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx
index 1880bd55acf..27626cc1f7a 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetBarChart.stories.tsx
@@ -3,7 +3,7 @@ import { type Meta, type StoryObj } from '@storybook/react-vite';
import { GraphWidgetTestWrapper } from '@/page-layout/widgets/graph/__tests__/GraphWidgetTestWrapper';
import { GraphWidgetBarChart } from '@/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart';
import { CatalogDecorator, ComponentDecorator } from 'twenty-ui/testing';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
const meta: Meta<typeof GraphWidgetBarChart> = {
title: 'Modules/PageLayout/Widgets/GraphWidgetBarChart',
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx
index 94e845d6cf5..8dbf74bbb0b 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/components/__stories__/GraphWidgetPieChart.stories.tsx
@@ -8,7 +8,7 @@ import {
AggregateOperations,
WidgetConfigurationType,
type PieChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { ObjectMetadataItemsDecorator } from '~/testing/decorators/ObjectMetadataItemsDecorator';
import { getMockFieldMetadataItemOrThrow } from '~/testing/utils/getMockFieldMetadataItemOrThrow';
import { getMockObjectMetadataItemOrThrow } from '~/testing/utils/getMockObjectMetadataItemOrThrow';
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts
index 2c9f2a50b21..0442bd2475c 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/__tests__/buildRatioNumeratorFilter.test.ts
@@ -1,6 +1,8 @@
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
-import { type RatioAggregateConfig } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ type RatioAggregateConfig,
+} from '~/generated-metadata/graphql';
import { buildRatioNumeratorFilter } from '@/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter';
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts
index 61c1afd28d3..fd2de262083 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetAggregateChart/utils/buildRatioNumeratorFilter.ts
@@ -1,8 +1,10 @@
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { type RecordGqlOperationFilter } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
-import { type RatioAggregateConfig } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ type RatioAggregateConfig,
+} from '~/generated-metadata/graphql';
export const buildRatioNumeratorFilter = ({
ratioConfig,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx
index b10e57e79f7..10110ca2f75 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChart.tsx
@@ -19,7 +19,7 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { type MouseEvent } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type BarChartProps = {
data: BarChartDatum[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx
index 6142cc57732..3ddec628990 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayer.tsx
@@ -3,7 +3,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import styled from '@emotion/styled';
import { useRef } from 'react';
-import { type BarChartLayout } from '~/generated/graphql';
+import { type BarChartLayout } from '~/generated-metadata/graphql';
type BarChartBaseLayerProps = {
bars: BarPosition[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx
index 89035d46f91..9f204ef9305 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartBaseLayerEffect.tsx
@@ -9,7 +9,7 @@ import { renderBars } from '@/page-layout/widgets/graph/graphWidgetBarChart/util
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import { useTheme } from '@emotion/react';
import { useCallback, useEffect, useState, type RefObject } from 'react';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type BarChartBaseLayerEffectProps = {
bars: BarPosition[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx
index 23819ba35e9..8af38591602 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayer.tsx
@@ -3,7 +3,7 @@ import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarCh
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import styled from '@emotion/styled';
import { useRef } from 'react';
-import { type BarChartLayout } from '~/generated/graphql';
+import { type BarChartLayout } from '~/generated-metadata/graphql';
type BarChartHoverLayerProps = {
hoveredSlice: BarChartSlice | null;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx
index 0f6233f9ce7..cacf9097858 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartHoverLayerEffect.tsx
@@ -4,7 +4,7 @@ import { renderSliceHighlight } from '@/page-layout/widgets/graph/graphWidgetBar
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import { useTheme } from '@emotion/react';
import { useEffect, useState, type RefObject } from 'react';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type BarChartHoverLayerEffectProps = {
hoveredSlice: BarChartSlice | null;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx
index 5d74bedbe39..fef5d30817e 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartLayers.tsx
@@ -8,7 +8,7 @@ import { type BarChartSlice } from '@/page-layout/widgets/graph/graphWidgetBarCh
import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarPosition';
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import styled from '@emotion/styled';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
const StyledNoDataOverlay = styled.svg`
height: 100%;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx
index 9ad7e35857a..0cf8a455198 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/BarChartTotalsLayer.tsx
@@ -6,7 +6,7 @@ import { computeBarChartStackedLabels } from '@/page-layout/widgets/graph/graphW
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import { type GraphLabelData } from '@/page-layout/widgets/graph/types/GraphLabelData';
import styled from '@emotion/styled';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type BarChartTotalsLayerProps = {
bars: BarPosition[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
index 65f62c38952..343932b1b08 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChart.tsx
@@ -27,7 +27,7 @@ import { useMemo, useRef, useState } from 'react';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { useDebouncedCallback } from 'use-debounce';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type GraphWidgetBarChartProps = {
colorMode: GraphColorMode;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx
index 3ea2f878fb7..c0327589a43 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/components/GraphWidgetBarChartRenderer.tsx
@@ -17,7 +17,7 @@ import { useNavigate } from 'react-router-dom';
import { useRecoilValue } from 'recoil';
import { AppPath } from 'twenty-shared/types';
import { getAppPath } from 'twenty-shared/utils';
-import { AxisNameDisplay } from '~/generated/graphql';
+import { AxisNameDisplay } from '~/generated-metadata/graphql';
const GraphWidgetBarChart = lazy(() =>
import(
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts
index 8a6ac53d972..9f24c93ef08 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useBarChartLayout.ts
@@ -9,7 +9,7 @@ import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxis
import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';
import { resolveAxisFontSizes } from '@/page-layout/widgets/graph/utils/resolveAxisFontSizes';
import { useMemo } from 'react';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type UseBarChartLayoutParams = {
axisTheme: ChartAxisTheme;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts
index e8cee0ac571..0834c820ceb 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useGraphBarChartWidgetData.ts
@@ -20,7 +20,7 @@ import {
type BarChartConfiguration,
type BarChartLayout,
type BarChartSeries,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type UseGraphBarChartWidgetDataProps = {
objectMetadataItemId: string;
@@ -156,7 +156,7 @@ export const useGraphBarChartWidgetData = ({
layout: effectiveQueryData?.barChartData?.layout,
groupMode: getEffectiveGroupMode(
configuration.groupMode,
- configuration.secondaryAxisGroupByFieldMetadataId,
+ isDefined(configuration.secondaryAxisGroupByFieldMetadataId),
),
hasTooManyGroups:
effectiveQueryData?.barChartData?.hasTooManyGroups ?? false,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts
index 3242b0fc1b8..1e72f626b86 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/hooks/useMemoizedBarPositions.ts
@@ -4,7 +4,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar
import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions';
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import { useMemo } from 'react';
-import { type BarChartLayout } from '~/generated/graphql';
+import { type BarChartLayout } from '~/generated-metadata/graphql';
type UseBarPositionsParams = {
data: BarChartDatum[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts
index a0cfca8e2ec..ca91df6bf34 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartSeries.ts
@@ -1,5 +1,5 @@
import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor';
-import { type BarChartSeries } from '~/generated/graphql';
+import { type BarChartSeries } from '~/generated-metadata/graphql';
export type BarChartSeriesWithColor = BarChartSeries & {
color?: GraphColor;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts
index a5bbe9e2ba7..27d2e8d1dc4 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/computeBarPositions.test.ts
@@ -1,6 +1,6 @@
import { type BarChartEnrichedKey } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartEnrichedKey';
import { computeBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
describe('computeBarPositions', () => {
const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 };
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts
index 2bdd86519eb..a1d3ab14348 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartInnerPadding.test.ts
@@ -1,6 +1,6 @@
import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';
import { getBarChartInnerPadding } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
describe('getBarChartInnerPadding', () => {
const defaultMargins = { top: 20, right: 20, bottom: 40, left: 60 };
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts
index c928e1e6744..5987a9cbb46 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getBarChartLayout.test.ts
@@ -3,7 +3,7 @@ import { getBarChartLayout } from '@/page-layout/widgets/graph/graphWidgetBarCha
import { type ChartAxisTheme } from '@/page-layout/widgets/graph/types/ChartAxisTheme';
import { type GraphValueFormatOptions } from '@/page-layout/widgets/graph/utils/graphFormatters';
import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
describe('getBarChartLayout', () => {
const defaultAxisTheme: ChartAxisTheme = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts
index 8634c5be7cc..be8fe6d2c3f 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/__tests__/getEffectiveGroupMode.test.ts
@@ -1,5 +1,5 @@
import { getEffectiveGroupMode } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode';
-import { BarChartGroupMode } from '~/generated/graphql';
+import { BarChartGroupMode } from '~/generated-metadata/graphql';
describe('getEffectiveGroupMode', () => {
describe('without secondary axis grouping', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts
index c2f2a4cfa6b..da51663eda8 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartCategoryTickValues.ts
@@ -3,7 +3,7 @@ import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarCh
import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick';
import { computeChartCategoryTickValues } from '@/page-layout/widgets/graph/utils/computeChartCategoryTickValues';
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export const computeBarChartCategoryTickValues = ({
axisSize,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts
index 7a49b0468b1..205c3d680e8 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarChartValueTickCount.ts
@@ -1,6 +1,6 @@
import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';
import { computeMinHeightPerTick } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeMinHeightPerTick';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type ComputeBarChartValueTickCountProps = {
axisSize: number;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts
index b0993afd2b4..0e40d549030 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext.ts
@@ -3,9 +3,9 @@ import { computeValueScale } from '@/page-layout/widgets/graph/chart-core/utils/
import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';
import { type BarChartDatum } from '@/page-layout/widgets/graph/graphWidgetBarChart/types/BarChartDatum';
import {
- BarChartLayout as BarChartLayoutEnum,
type BarChartLayout,
-} from '~/generated/graphql';
+ BarChartLayout as BarChartLayoutEnum,
+} from '~/generated-metadata/graphql';
export type BarPositionContext = {
isVertical: boolean;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts
index 790e6cfe19f..1daeb1afd46 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositions.ts
@@ -5,7 +5,7 @@ import { computeBarPositionsByGroupMode } from '@/page-layout/widgets/graph/grap
import { computeShouldRoundFreeEndMap } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeShouldRoundFreeEndMap';
import { getChartInnerDimensions } from '@/page-layout/widgets/graph/chart-core/utils/getChartInnerDimensions';
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
-import { type BarChartLayout } from '~/generated/graphql';
+import { type BarChartLayout } from '~/generated-metadata/graphql';
type ComputeBarPositionsParams = {
data: BarChartDatum[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts
index 97937cf3d47..243e0726e16 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionsByGroupMode.ts
@@ -4,7 +4,7 @@ import { type BarPosition } from '@/page-layout/widgets/graph/graphWidgetBarChar
import { computeBarPositionContext } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeBarPositionContext';
import { computeGroupedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeGroupedBarPositions';
import { computeStackedBarPositions } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/computeStackedBarPositions';
-import { type BarChartLayout } from '~/generated/graphql';
+import { type BarChartLayout } from '~/generated-metadata/graphql';
type ComputeBarPositionsByGroupModeParams = {
data: BarChartDatum[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts
index 85493e27cf3..c7d393e54a9 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartAxisConfigs.ts
@@ -8,7 +8,7 @@ import { COMMON_CHART_CONSTANTS } from '@/page-layout/widgets/graph/constants/Co
import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';
import { type BarChartTickConfig } from '@/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig';
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type GetBarChartAxisConfigsProps = {
layout: BarChartLayout;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts
index 0770140ea53..47e43f112c5 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartInnerPadding.ts
@@ -1,6 +1,6 @@
import { BAR_CHART_CONSTANTS } from '@/page-layout/widgets/graph/graphWidgetBarChart/constants/BarChartConstants';
import { computeBandScale } from '@/page-layout/widgets/graph/chart-core/utils/computeBandScale';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type BarChartMargins = {
top: number;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts
index 9788d9ecc6f..8b3e2758b05 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartLayout.ts
@@ -17,7 +17,7 @@ import {
type GraphValueFormatOptions,
} from '@/page-layout/widgets/graph/utils/graphFormatters';
import { resolveAxisFontSizes } from '@/page-layout/widgets/graph/utils/resolveAxisFontSizes';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
type GetBarChartLayoutParams = {
axisTheme: ChartAxisTheme;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts
index 2c8631cd270..17eff5fb08f 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getBarChartTickConfig.ts
@@ -5,7 +5,7 @@ import { computeBarChartValueTickCount } from '@/page-layout/widgets/graph/graph
import { type ChartMargins } from '@/page-layout/widgets/graph/types/ChartMargins';
import { computeMaxLabelLengthForMargin } from '@/page-layout/widgets/graph/utils/computeMaxLabelLengthForMargin';
import { getTickRotationConfig } from '@/page-layout/widgets/graph/utils/getTickRotationConfig';
-import { BarChartLayout } from '~/generated/graphql';
+import { BarChartLayout } from '~/generated-metadata/graphql';
export type BarChartTickConfig = {
categoryTickValues: (string | number)[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
index 85a5cc8abec..e8a5078b15c 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetBarChart/utils/getEffectiveGroupMode.ts
@@ -1,4 +1,4 @@
-import { type BarChartConfiguration } from '~/generated/graphql';
+import { type BarChartConfiguration } from '~/generated-metadata/graphql';
export const getEffectiveGroupMode = (
groupMode: BarChartConfiguration['groupMode'],
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx
index 79fa540b97e..391b6f85eac 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/components/GraphWidgetLineChartRenderer.tsx
@@ -18,7 +18,10 @@ import { useNavigate } from 'react-router-dom';
import { useRecoilValue } from 'recoil';
import { AppPath } from 'twenty-shared/types';
import { getAppPath, isDefined } from 'twenty-shared/utils';
-import { AxisNameDisplay, type LineChartDataPoint } from '~/generated/graphql';
+import {
+ AxisNameDisplay,
+ type LineChartDataPoint,
+} from '~/generated-metadata/graphql';
const GraphWidgetLineChart = lazy(() =>
import(
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts
index 407da072547..8a5d2a4a2d0 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/__tests__/useLineChartData.test.ts
@@ -3,7 +3,7 @@ import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/Graph
import { renderHook } from '@testing-library/react';
import { useLineChartData } from '@/page-layout/widgets/graph/graphWidgetLineChart/hooks/useLineChartData';
-import { type LineChartSeries } from '~/generated/graphql';
+import { type LineChartSeries } from '~/generated-metadata/graphql';
const mockUseRecoilComponentValue = jest.fn();
jest.mock(
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts
index 47f1c62357d..050e498e09e 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/hooks/useGraphLineChartWidgetData.ts
@@ -17,7 +17,7 @@ import {
type LineChartConfiguration,
type LineChartDataPoint,
type LineChartSeries,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type UseGraphLineChartWidgetDataProps = {
objectMetadataItemId: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts
index aff71507c99..fc226dc2c21 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetLineChart/utils/__tests__/calculateValueRangeFromLineChartSeries.test.ts
@@ -1,6 +1,6 @@
import { type LineChartSeriesWithColor } from '@/page-layout/widgets/graph/graphWidgetLineChart/types/LineChartSeriesWithColor';
import { calculateValueRangeFromLineChartSeries } from '@/page-layout/widgets/graph/graphWidgetLineChart/utils/calculateValueRangeFromLineChartSeries';
-import { type LineChartSeries } from '~/generated/graphql';
+import { type LineChartSeries } from '~/generated-metadata/graphql';
describe('calculateValueRangeFromLineChartSeries', () => {
describe('with valid data', () => {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
index c9fe799ed7a..316953fa8e3 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/GraphWidgetPieChart.tsx
@@ -31,7 +31,7 @@ import { isDefined } from 'twenty-shared/utils';
import {
type PieChartConfiguration,
type PieChartDataItem,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type GraphWidgetPieChartProps = {
data: PieChartDataItemWithColor[];
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx
index 1e5595641d4..cd82b0a5161 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/components/PieChartCenterMetricLayer.tsx
@@ -3,7 +3,7 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { useLingui } from '@lingui/react/macro';
import { AnimatePresence, motion } from 'framer-motion';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
type PieChartCenterMetricProps = {
objectMetadataItemId: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts
index 44b4870e9b4..74a6753d7f9 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/__tests__/usePieChartData.test.ts
@@ -2,7 +2,7 @@ import { usePieChartData } from '@/page-layout/widgets/graph/graphWidgetPieChart
import { type PieChartDataItemWithColor } from '@/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem';
import { type GraphColorRegistry } from '@/page-layout/widgets/graph/types/GraphColorRegistry';
import { renderHook } from '@testing-library/react';
-import { type PieChartDataItem } from '~/generated/graphql';
+import { type PieChartDataItem } from '~/generated-metadata/graphql';
const mockUseRecoilComponentValue = jest.fn();
jest.mock(
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts
index 8b55d3c9b69..cf21905b309 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/useGraphPieChartWidgetData.ts
@@ -14,7 +14,7 @@ import { isString } from '@sniptt/guards';
import { useMemo } from 'react';
import { FieldMetadataType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
type UseGraphPieChartWidgetDataProps = {
objectMetadataItemId: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts
index 7d67703c5f5..d7be6e5d699 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/hooks/usePieChartCenterMetricData.ts
@@ -11,7 +11,7 @@ import { useContext, useMemo } from 'react';
import { useRecoilValue } from 'recoil';
import { FIELD_FOR_TOTAL_COUNT_AGGREGATE_OPERATION } from 'twenty-shared/constants';
import { findById, isDefined } from 'twenty-shared/utils';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
import { dateLocaleState } from '~/localization/states/dateLocaleState';
type UsePieChartCenterMetricDataProps = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts
index 6b2ba319428..82447d38798 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/graphWidgetPieChart/types/PieChartDataItem.ts
@@ -1,5 +1,5 @@
import { type GraphColor } from '@/page-layout/widgets/graph/types/GraphColor';
-import { type PieChartDataItem } from '~/generated/graphql';
+import { type PieChartDataItem } from '~/generated-metadata/graphql';
export type PieChartDataItemWithColor = PieChartDataItem & {
color?: GraphColor;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts
index f6c6c42a6fc..aebfcc2c81c 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetAggregateQuery.ts
@@ -14,7 +14,7 @@ import { useContext } from 'react';
import { useRecoilValue } from 'recoil';
import { FIELD_FOR_TOTAL_COUNT_AGGREGATE_OPERATION } from 'twenty-shared/constants';
import { findById, isDefined } from 'twenty-shared/utils';
-import { type AggregateChartConfiguration } from '~/generated/graphql';
+import { type AggregateChartConfiguration } from '~/generated-metadata/graphql';
import { dateLocaleState } from '~/localization/states/dateLocaleState';
export const useGraphWidgetAggregateQuery = ({
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts
index 1fcf5c7f28e..9c3738460f6 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/hooks/useGraphWidgetQueryCommon.ts
@@ -9,7 +9,7 @@ import {
type BarChartConfiguration,
type LineChartConfiguration,
type PieChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useGraphWidgetQueryCommon = ({
objectMetadataItemId,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts
index f881990f236..21de9b1a84a 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/types/BuildChartDrilldownQueryParamsInput.ts
@@ -5,7 +5,7 @@ import {
type BarChartConfiguration,
type LineChartConfiguration,
type PieChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type BuildChartDrilldownQueryParamsInput = {
objectMetadataItem: ObjectMetadataItem;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts
index d0625b30e71..3c84828063a 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/areChartConfigurationFieldsValidForQuery.test.ts
@@ -1,10 +1,10 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
import {
AggregateOperations,
+ FieldMetadataType,
WidgetConfigurationType,
type AggregateChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { areChartConfigurationFieldsValidForQuery } from '@/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery';
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts
index 50952b6b858..f88c841f246 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartFieldOrderBy.test.ts
@@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { buildSortsForChartFieldOrderBy } from '@/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy';
import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields';
import { FieldMetadataType } from 'twenty-shared/types';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('buildSortsForChartFieldOrderBy', () => {
const mockObjectMetadataItem: ObjectMetadataItem = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts
index e85599b2145..bb1702da676 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsForChartValueOrderBy.test.ts
@@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { buildSortsForChartValueOrderBy } from '@/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy';
import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields';
import { FieldMetadataType } from 'twenty-shared/types';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
describe('buildSortsForChartValueOrderBy', () => {
const mockObjectMetadataItem: ObjectMetadataItem = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts
index 6187cd76e95..cdf7695bf42 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/__tests__/buildSortsFromChartConfig.test.ts
@@ -5,7 +5,7 @@ import {
type BarChartConfiguration,
type PieChartConfiguration,
GraphOrderBy,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
describe('buildSortsFromChartConfig', () => {
const mockObjectMetadataItem: ObjectMetadataItem = {
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts
index c1e8f718e54..101191718bd 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/areChartConfigurationFieldsValidForQuery.ts
@@ -3,8 +3,10 @@ import { isString } from '@sniptt/guards';
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType } from '~/generated-metadata/graphql';
-import { type RatioAggregateConfig } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ type RatioAggregateConfig,
+} from '~/generated-metadata/graphql';
const fieldExists = (
fieldId: string | undefined | null,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts
index 9bb98926e13..8b2f0f3c3dd 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertAggregateChartWidget.ts
@@ -1,7 +1,7 @@
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
-import { type AggregateChartConfiguration } from '~/generated/graphql';
+import { type AggregateChartConfiguration } from '~/generated-metadata/graphql';
type AssertAggregateChartWidgetOrThrow = (
widget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts
index 4ac136da5a0..90a6c1ec574 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertBarChartWidget.ts
@@ -1,7 +1,7 @@
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
-import { type BarChartConfiguration } from '~/generated/graphql';
+import { type BarChartConfiguration } from '~/generated-metadata/graphql';
type AssertBarChartWidgetOrThrow = (
widget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts
index 3f09325cd93..87a9e28f80b 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertLineChartWidget.ts
@@ -1,6 +1,6 @@
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
-import { type LineChartConfiguration } from '~/generated/graphql';
+import { type LineChartConfiguration } from '~/generated-metadata/graphql';
type AssertLineChartWidgetOrThrow = (
widget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts
index 165b48f5f88..cb5f8c612f6 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/assertPieChartWidget.ts
@@ -1,7 +1,7 @@
import { isWidgetConfigurationOfType } from '@/command-menu/pages/page-layout/utils/isWidgetConfigurationOfType';
import { type PageLayoutWidget } from '@/page-layout/types/PageLayoutWidget';
import { assertIsDefinedOrThrow } from 'twenty-shared/utils';
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
type AssertPieChartWidgetOrThrow = (
widget: PageLayoutWidget,
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts
index 472162cdae3..5717a6931fb 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartFieldOrderBy.ts
@@ -2,7 +2,7 @@ import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataI
import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields';
import { isNonEmptyString } from '@sniptt/guards';
import { isDefined } from 'twenty-shared/utils';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
type ChartSort = {
fieldName: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts
index 004356d98a8..31e50c45c45 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsForChartValueOrderBy.ts
@@ -1,7 +1,7 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { type NormalizedChartConfigurationFields } from '@/page-layout/widgets/graph/utils/normalizeChartConfigurationFields';
import { isDefined } from 'twenty-shared/utils';
-import { GraphOrderBy } from '~/generated/graphql';
+import { GraphOrderBy } from '~/generated-metadata/graphql';
type ChartSort = {
fieldName: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts
index 32e7bb6e68f..86b028c7742 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/buildSortsFromChartConfig.ts
@@ -7,7 +7,7 @@ import {
type BarChartConfiguration,
type LineChartConfiguration,
type PieChartConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type ChartSort = {
fieldName: string;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts
index 0682533d425..4f21dbe9e26 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractBarChartDataConfiguration.ts
@@ -1,4 +1,4 @@
-import { type BarChartConfiguration } from '~/generated/graphql';
+import { type BarChartConfiguration } from '~/generated-metadata/graphql';
type BarChartStyleFields =
| 'displayDataLabel'
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts
index c6fa563c248..2cf15a48755 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractLineChartDataConfiguration.ts
@@ -1,4 +1,4 @@
-import { type LineChartConfiguration } from '~/generated/graphql';
+import { type LineChartConfiguration } from '~/generated-metadata/graphql';
type LineChartStyleFields =
| 'displayDataLabel'
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts
index 3dcc2a422ac..b68500325d5 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/graph/utils/extractPieChartDataConfiguration.ts
@@ -1,4 +1,4 @@
-import { type PieChartConfiguration } from '~/generated/graphql';
+import { type PieChartConfiguration } from '~/generated-metadata/graphql';
type PieChartStyleFields =
| 'displayDataLabel'
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
index 00263ea161c..3660755caca 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextEditorContent.tsx
@@ -24,7 +24,7 @@ import { useCreateBlockNote } from '@blocknote/react';
import '@blocknote/react/style.css';
import { useRecoilCallback } from 'recoil';
import { useDebouncedCallback } from 'use-debounce';
-import { WidgetConfigurationType } from '~/generated/graphql';
+import { WidgetConfigurationType } from '~/generated-metadata/graphql';
type StandaloneRichTextEditorContentProps = {
widget: PageLayoutWidget;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
index 5675d0dac2c..e3bd8efab83 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
+++ b/packages/twenty-front/src/modules/page-layout/widgets/standalone-rich-text/components/StandaloneRichTextWidget.tsx
@@ -18,7 +18,7 @@ import {
FeatureFlagKey,
PageLayoutType,
type StandaloneRichTextConfiguration,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
const StyledContainer = styled.div<{ isPageLayoutInEditMode?: boolean }>`
box-sizing: border-box;
diff --git a/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts b/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts
index d7fe162b446..3a929fa2055 100644
--- a/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts
+++ b/packages/twenty-front/src/modules/page-layout/widgets/utils/getWidgetCardVariant.ts
@@ -1,4 +1,7 @@
-import { PageLayoutTabLayoutMode, PageLayoutType } from '~/generated/graphql';
+import {
+ PageLayoutTabLayoutMode,
+ PageLayoutType,
+} from '~/generated-metadata/graphql';
import { type WidgetCardVariant } from '~/modules/page-layout/widgets/types/WidgetCardVariant';
type GetWidgetCardVariantParams = {
diff --git a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx
index 9a0646ac27a..87d37fe72ba 100644
--- a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx
+++ b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunFavoriteQueriesEffect.tsx
@@ -19,7 +19,7 @@ import { useShowAuthModal } from '@/ui/layout/hooks/useShowAuthModal';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
import { WorkspaceActivationStatus } from 'twenty-shared/workspace';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
export const PrefetchRunFavoriteQueriesEffect = () => {
diff --git a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx
index 4766161ad5f..ff142a427e4 100644
--- a/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx
+++ b/packages/twenty-front/src/modules/prefetch/components/PrefetchRunNavigationMenuItemQueriesEffect.tsx
@@ -11,10 +11,10 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
import { WorkspaceActivationStatus } from 'twenty-shared/workspace';
import {
+ FeatureFlagKey,
useFindManyNavigationMenuItemsQuery,
type NavigationMenuItem,
} from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
export const PrefetchRunNavigationMenuItemQueriesEffect = () => {
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
index 1b71c4dfaf4..ad3927a09f4 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsCalendarChannelDetails.tsx
@@ -8,7 +8,7 @@ import { t } from '@lingui/core/macro';
import { Section } from '@react-email/components';
import { H2Title, IconUserPlus } from 'twenty-ui/display';
import { Card } from 'twenty-ui/layout';
-import { type CalendarChannelVisibility } from '~/generated-metadata/graphql';
+import { type CalendarChannelVisibility } from '~/generated/graphql';
const StyledDetailsContainer = styled.div`
display: flex;
diff --git a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
index 776be8b0466..53a8cffbb1d 100644
--- a/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/components/SettingsAccountsMessageChannelDetails.tsx
@@ -14,7 +14,7 @@ import { SettingsOptionCardContentToggle } from '@/settings/components/SettingsO
import { t } from '@lingui/core/macro';
import { H2Title, IconBriefcase, IconUsers } from 'twenty-ui/display';
import { Card, Section } from 'twenty-ui/layout';
-import { type MessageChannelVisibility } from '~/generated-metadata/graphql';
+import { type MessageChannelVisibility } from '~/generated/graphql';
type SettingsAccountsMessageChannelDetailsProps = {
messageChannel: Pick<
diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx b/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx
index 1db55dd2f89..eca3cedd90d 100644
--- a/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx
+++ b/packages/twenty-front/src/modules/settings/accounts/hooks/__tests__/useTriggerProviderReconnect.test.tsx
@@ -1,12 +1,12 @@
+import {
+ MessageChannelVisibility,
+ CalendarChannelVisibility,
+} from '~/generated/graphql';
import { act, renderHook } from '@testing-library/react';
import { type ReactNode } from 'react';
import { RecoilRoot } from 'recoil';
import { ConnectedAccountProvider, SettingsPath } from 'twenty-shared/types';
-import {
- CalendarChannelVisibility,
- MessageChannelVisibility,
-} from '~/generated-metadata/graphql';
import { useTriggerProviderReconnect } from '@/settings/accounts/hooks/useTriggerProviderReconnect';
const mockTriggerApisOAuth = jest.fn();
diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts
index 75ada170ee7..cc5e5278680 100644
--- a/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts
+++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useTriggerApiOAuth.ts
@@ -1,14 +1,14 @@
+import {
+ type MessageChannelVisibility,
+ type CalendarChannelVisibility,
+} from '~/generated/graphql';
import { useCallback } from 'react';
import { type AppPath, ConnectedAccountProvider } from 'twenty-shared/types';
import { useRedirect } from '@/domain-manager/hooks/useRedirect';
import { CustomError } from 'twenty-shared/utils';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
-import {
- type CalendarChannelVisibility,
- type MessageChannelVisibility,
- useGenerateTransientTokenMutation,
-} from '~/generated-metadata/graphql';
+import { useGenerateTransientTokenMutation } from '~/generated-metadata/graphql';
const getProviderUrl = (provider: ConnectedAccountProvider) => {
switch (provider) {
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx
index 97af98b3d58..862b6426f8b 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableActionButtons.tsx
@@ -8,7 +8,10 @@ import {
IconRefreshAlert,
} from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
-import { ConfigSource, type ConfigVariable } from '~/generated/graphql';
+import {
+ ConfigSource,
+ type ConfigVariable,
+} from '~/generated-metadata/graphql';
type ConfigVariableActionButtonsProps = {
variable: ConfigVariable;
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx
index 3d67839ecbf..63dbf68df6a 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableDatabaseInput.tsx
@@ -9,7 +9,7 @@ import { t } from '@lingui/core/macro';
import { type ConfigVariableValue } from 'twenty-shared/types';
import { CustomError } from 'twenty-shared/utils';
import { MenuItemMultiSelect } from 'twenty-ui/navigation';
-import { ConfigVariableType } from '~/generated/graphql';
+import { ConfigVariableType } from '~/generated-metadata/graphql';
import { type ConfigVariableOptions } from '@/settings/admin-panel/config-variables/types/ConfigVariableOptions';
type ConfigVariableDatabaseInputProps = {
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx
index 068273f4089..561f1935592 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableHelpText.tsx
@@ -3,7 +3,10 @@ import { useLingui } from '@lingui/react/macro';
import { isConfigVariablesInDbEnabledState } from '@/client-config/states/isConfigVariablesInDbEnabledState';
import { useRecoilValue } from 'recoil';
-import { ConfigSource, type ConfigVariable } from '~/generated/graphql';
+import {
+ ConfigSource,
+ type ConfigVariable,
+} from '~/generated-metadata/graphql';
const StyledHelpText = styled.div<{ color?: string }>`
color: ${({ theme, color }) => color || theme.font.color.tertiary};
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx
index d0d8db97a74..6bd224726f1 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/ConfigVariableValueInput.tsx
@@ -5,7 +5,7 @@ import { TextInput } from '@/ui/input/components/TextInput';
import styled from '@emotion/styled';
import { useRecoilValue } from 'recoil';
import { type ConfigVariableValue } from 'twenty-shared/types';
-import { type ConfigVariable } from '~/generated/graphql';
+import { type ConfigVariable } from '~/generated-metadata/graphql';
import { ConfigVariableDatabaseInput } from './ConfigVariableDatabaseInput';
type ConfigVariableValueInputProps = {
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx
index 4b6ef6cbb49..3317112b80c 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesRow.tsx
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
import { IconChevronRight } from 'twenty-ui/display';
-import { type ConfigVariable } from '~/generated/graphql';
+import { type ConfigVariable } from '~/generated-metadata/graphql';
type SettingsAdminConfigVariablesRowProps = {
variable: ConfigVariable;
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx
index ad837c34825..8f18365f3dc 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/components/SettingsAdminConfigVariablesTable.tsx
@@ -5,7 +5,7 @@ import { TableBody } from '@/ui/layout/table/components/TableBody';
import { TableHeader } from '@/ui/layout/table/components/TableHeader';
import { TableRow } from '@/ui/layout/table/components/TableRow';
import styled from '@emotion/styled';
-import { type ConfigVariable } from '~/generated/graphql';
+import { type ConfigVariable } from '~/generated-metadata/graphql';
const StyledTableBody = styled(TableBody)`
border-bottom: 1px solid ${({ theme }) => theme.border.color.light};
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts
index 9b0b647bcb5..24d8f8a443b 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/config-variables/utils/useSourceContent.ts
@@ -2,7 +2,7 @@ import { useTheme } from '@emotion/react';
import { useLingui } from '@lingui/react/macro';
import { CustomError } from 'twenty-shared/utils';
-import { ConfigSource } from '~/generated/graphql';
+import { ConfigSource } from '~/generated-metadata/graphql';
export const useSourceContent = (source: ConfigSource) => {
const { t } = useLingui();
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx
index 4a25e536351..187df867dc2 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/components/SettingsAdminIndicatorHealthStatusContent.tsx
@@ -2,7 +2,7 @@ import { SettingsAdminConnectedAccountHealthStatus } from '@/settings/admin-pane
import { SettingsAdminJsonDataIndicatorHealthStatus } from '@/settings/admin-panel/health-status/components/SettingsAdminJsonDataIndicatorHealthStatus';
import { SettingsAdminWorkerHealthStatus } from '@/settings/admin-panel/health-status/components/SettingsAdminWorkerHealthStatus';
import { useParams } from 'react-router-dom';
-import { HealthIndicatorId } from '~/generated/graphql';
+import { HealthIndicatorId } from '~/generated-metadata/graphql';
export const SettingsAdminIndicatorHealthStatusContent = () => {
const { indicatorId } = useParams();
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts b/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts
index 7f933bc6761..5e3ec4cabf5 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/constants/WorkerQueueMetricsSelectOptions.ts
@@ -1,5 +1,5 @@
import { msg } from '@lingui/core/macro';
-import { QueueMetricsTimeRange } from '~/generated/graphql';
+import { QueueMetricsTimeRange } from '~/generated-metadata/graphql';
export const WORKER_QUEUE_METRICS_SELECT_OPTIONS = [
{ value: QueueMetricsTimeRange.SevenDays, label: msg`This week` },
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx
index 95ab5534f23..14809eb94b1 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx
+++ b/packages/twenty-front/src/modules/settings/admin-panel/health-status/contexts/SettingsAdminIndicatorHealthContext.tsx
@@ -1,9 +1,9 @@
import { createContext } from 'react';
import {
- type AdminPanelHealthServiceData,
AdminPanelHealthServiceStatus,
HealthIndicatorId,
-} from '~/generated/graphql';
+ type AdminPanelHealthServiceData,
+} from '~/generated-metadata/graphql';
type SettingsAdminIndicatorHealthContextType = {
indicatorHealth: AdminPanelHealthServiceData;
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts
index 57361186072..87ebc3c8532 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useFeatureFlagState.ts
@@ -1,6 +1,6 @@
import { userLookupResultState } from '@/settings/admin-panel/states/userLookupResultState';
import { useRecoilState } from 'recoil';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
import { isDefined } from 'twenty-shared/utils';
export const useFeatureFlagState = () => {
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts
index 97d102281d4..52d688a6f85 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/hooks/useImpersonationRedirect.ts
@@ -1,6 +1,6 @@
import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain';
import { AppPath } from 'twenty-shared/types';
-import { type WorkspaceUrls } from '~/generated/graphql';
+import { type WorkspaceUrls } from '~/generated-metadata/graphql';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
export const useImpersonationRedirect = () => {
diff --git a/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts b/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts
index 2394c34a673..ae4cd365761 100644
--- a/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts
+++ b/packages/twenty-front/src/modules/settings/admin-panel/types/FeatureFlag.ts
@@ -1,4 +1,4 @@
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
export type FeatureFlag = {
key: FeatureFlagKey;
diff --git a/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx b/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx
index dead3f27403..ae9500059e9 100644
--- a/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx
+++ b/packages/twenty-front/src/modules/settings/components/SettingsProtectedRouteWrapper.tsx
@@ -8,7 +8,7 @@ import { getSettingsPath } from 'twenty-shared/utils';
import {
type FeatureFlagKey,
type PermissionFlagType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
type SettingsProtectedRouteWrapperProps = {
children?: ReactNode;
diff --git a/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx b/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx
index 15444f68e56..2218ecd7f3c 100644
--- a/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx
+++ b/packages/twenty-front/src/modules/settings/data-model/fields/forms/morph-relation/components/SettingsDataModelFieldRelationFormCard.tsx
@@ -14,8 +14,11 @@ import { SettingsDataModelRelationFieldPreviewSubWidget } from '@/settings/data-
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { isDefined } from 'twenty-shared/utils';
-import { FieldMetadataType, RelationType } from '~/generated-metadata/graphql';
-import { FeatureFlagKey } from '~/generated/graphql';
+import {
+ FieldMetadataType,
+ RelationType,
+ FeatureFlagKey,
+} from '~/generated-metadata/graphql';
import { type SettingsDataModelFieldEditFormValues } from '~/pages/settings/data-model/SettingsObjectFieldEdit';
type SettingsDataModelFieldRelationFormCardProps = {
diff --git a/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx b/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx
index 85d28cc98e3..f0149134486 100644
--- a/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx
+++ b/packages/twenty-front/src/modules/settings/domains/components/CheckPublicDomainValidRecordsEffect.tsx
@@ -1,6 +1,6 @@
import { useEffect } from 'react';
import { useCheckPublicDomainValidRecords } from '@/settings/domains/hooks/useCheckPublicDomainValidRecords';
-import { type PublicDomain } from '~/generated/graphql';
+import { type PublicDomain } from '~/generated-metadata/graphql';
export const CheckPublicDomainValidRecordsEffect = ({
publicDomain,
diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx
index c17298a5c2f..a9120d95c4f 100644
--- a/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx
+++ b/packages/twenty-front/src/modules/settings/domains/components/SettingPublicDomainRowDropdownMenu.tsx
@@ -1,17 +1,17 @@
-import { type PublicDomain } from '~/generated/graphql';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
+import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
+import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
+import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
import { useCloseDropdown } from '@/ui/layout/dropdown/hooks/useCloseDropdown';
+import { useLingui } from '@lingui/react/macro';
+import { IconDotsVertical, IconTrash } from 'twenty-ui/display';
+import { LightIconButton } from 'twenty-ui/input';
+import { MenuItem } from 'twenty-ui/navigation';
import {
useDeletePublicDomainMutation,
useFindManyPublicDomainsQuery,
+ type PublicDomain,
} from '~/generated-metadata/graphql';
-import { useLingui } from '@lingui/react/macro';
-import { LightIconButton } from 'twenty-ui/input';
-import { IconDotsVertical, IconTrash } from 'twenty-ui/display';
-import { DropdownContent } from '@/ui/layout/dropdown/components/DropdownContent';
-import { DropdownMenuItemsContainer } from '@/ui/layout/dropdown/components/DropdownMenuItemsContainer';
-import { MenuItem } from 'twenty-ui/navigation';
-import { Dropdown } from '@/ui/layout/dropdown/components/Dropdown';
export const SettingPublicDomainRowDropdownMenu = ({
publicDomain,
diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx
index ccfa8d22fc2..f27cbe0f02d 100644
--- a/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx
+++ b/packages/twenty-front/src/modules/settings/domains/components/SettingsDomainRecords.tsx
@@ -8,7 +8,7 @@ import { type ThemeColor } from 'twenty-ui/theme';
import {
type DomainRecord,
type DomainValidRecords,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const SettingsDomainRecords = ({
records,
diff --git a/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx b/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx
index ce22e0113f0..663c1d80173 100644
--- a/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx
+++ b/packages/twenty-front/src/modules/settings/domains/components/SettingsPublicDomainsListCard.tsx
@@ -6,8 +6,10 @@ import { useLingui } from '@lingui/react/macro';
import { useSetRecoilState } from 'recoil';
import { SettingsPath } from 'twenty-shared/types';
import { IconAt, IconMailCog, Status } from 'twenty-ui/display';
-import { useFindManyPublicDomainsQuery } from '~/generated-metadata/graphql';
-import { type PublicDomain } from '~/generated/graphql';
+import {
+ useFindManyPublicDomainsQuery,
+ type PublicDomain,
+} from '~/generated-metadata/graphql';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
export const SettingsPublicDomainsListCard = () => {
diff --git a/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts b/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts
index 076b7c87e12..79d373febfa 100644
--- a/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts
+++ b/packages/twenty-front/src/modules/settings/domains/states/customDomainRecordsState.ts
@@ -1,4 +1,4 @@
-import { type DomainValidRecords } from '~/generated/graphql';
+import { type DomainValidRecords } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const customDomainRecordsState = createState<{
diff --git a/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts b/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts
index d8be1a34aa6..cb44d9fb312 100644
--- a/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts
+++ b/packages/twenty-front/src/modules/settings/domains/states/publicDomainRecordsState.ts
@@ -1,4 +1,4 @@
-import { type DomainValidRecords } from '~/generated/graphql';
+import { type DomainValidRecords } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const publicDomainRecordsState = createState<{
diff --git a/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts b/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts
index b33e2d33a65..1f9b17693c5 100644
--- a/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts
+++ b/packages/twenty-front/src/modules/settings/domains/states/selectedPublicDomainState.ts
@@ -1,4 +1,4 @@
-import { type PublicDomain } from '~/generated/graphql';
+import { type PublicDomain } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const selectedPublicDomainState = createState<PublicDomain | undefined>({
diff --git a/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx b/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx
index a350f2fdb94..3ef96fbe03a 100644
--- a/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx
+++ b/packages/twenty-front/src/modules/settings/experience/components/FormatPreferencesSettings.tsx
@@ -16,7 +16,7 @@ import {
WorkspaceMemberDateFormatEnum,
WorkspaceMemberNumberFormatEnum,
WorkspaceMemberTimeFormatEnum,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { DateTimeSettingsCalendarStartDaySelect } from '~/pages/settings/profile/appearance/components/DateTimeSettingsCalendarStartDaySelect';
const StyledContainer = styled.div`
diff --git a/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx b/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx
index b55bab4f0b4..795736c02d3 100644
--- a/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx
+++ b/packages/twenty-front/src/modules/settings/hooks/__tests__/useSettingsNavigationItems.test.tsx
@@ -8,7 +8,7 @@ import {
type Billing,
OnboardingStatus,
PermissionFlagType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { currentUserState } from '@/auth/states/currentUserState';
import { billingState } from '@/client-config/states/billingState';
diff --git a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
index b266ff05dde..cab015b94f4 100644
--- a/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
+++ b/packages/twenty-front/src/modules/settings/hooks/useSettingsNavigationItems.tsx
@@ -36,7 +36,10 @@ import {
IconUsers,
IconWorld,
} from 'twenty-ui/display';
-import { FeatureFlagKey, PermissionFlagType } from '~/generated/graphql';
+import {
+ FeatureFlagKey,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
export type SettingsNavigationSection = {
label: string;
diff --git a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
index c52e47967f0..0f64241fece 100644
--- a/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
+++ b/packages/twenty-front/src/modules/settings/lab/components/SettingsLabContent.tsx
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
import { useState } from 'react';
import { useRecoilValue } from 'recoil';
import { Card } from 'twenty-ui/layout';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledCardGrid = styled.div`
display: grid;
diff --git a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx
index 3e3956e337e..17f25f5221d 100644
--- a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTabEnvironmentVariableTableRow.tsx
@@ -18,7 +18,7 @@ import {
} from 'twenty-ui/display';
import { LightIconButton } from 'twenty-ui/input';
import { MenuItem } from 'twenty-ui/navigation';
-import type { ApplicationVariable } from '~/generated/graphql';
+import type { ApplicationVariable } from '~/generated-metadata/graphql';
const StyledEditModeTableRow = styled(TableRow)`
grid-template-columns: 180px auto 56px;
diff --git a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx
index 28265316e8f..f7b36736e4e 100644
--- a/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx
+++ b/packages/twenty-front/src/modules/settings/logic-functions/components/tabs/SettingsLogicFunctionTriggersTab.tsx
@@ -7,7 +7,7 @@ import styled from '@emotion/styled';
import { useLingui } from '@lingui/react/macro';
import { H2Title } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
-import { type LogicFunction } from '~/generated/graphql';
+import { type LogicFunction } from '~/generated-metadata/graphql';
export const StyledRouteTriggerTableRow = styled(TableRow)`
grid-template-columns: 1fr 120px 120px;
diff --git a/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts b/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts
index 7420e98a454..f370ed8e74c 100644
--- a/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts
+++ b/packages/twenty-front/src/modules/settings/logic-functions/hooks/useLogicFunctionUpdateFormState.ts
@@ -2,8 +2,10 @@ import { useGetOneLogicFunction } from '@/settings/logic-functions/hooks/useGetO
import { type Dispatch, type SetStateAction, useState } from 'react';
import { type Sources } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { type GetOneLogicFunctionQuery } from '~/generated-metadata/graphql';
-import { type LogicFunction } from '~/generated/graphql';
+import {
+ type GetOneLogicFunctionQuery,
+ type LogicFunction,
+} from '~/generated-metadata/graphql';
export type LogicFunctionNewFormValues = {
name: string;
diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts
index a2fcd153ad6..72f9c3ce93a 100644
--- a/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts
+++ b/packages/twenty-front/src/modules/settings/roles/hooks/useHasPermissionFlag.ts
@@ -3,7 +3,7 @@ import { useRecoilValue } from 'recoil';
import {
WorkspaceActivationStatus,
PermissionFlagType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
export const useHasPermissionFlag = (permissionFlag?: PermissionFlagType) => {
diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts b/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts
index 387a0decbc0..1da240b18d2 100644
--- a/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts
+++ b/packages/twenty-front/src/modules/settings/roles/hooks/usePermissionFlagMap.ts
@@ -1,6 +1,6 @@
import { currentUserWorkspaceState } from '@/auth/states/currentUserWorkspaceState';
import { useRecoilValue } from 'recoil';
-import { PermissionFlagType } from '~/generated/graphql';
+import { PermissionFlagType } from '~/generated-metadata/graphql';
import { buildRecordFromKeysWithSameValue } from '~/utils/array/buildRecordFromKeysWithSameValue';
export const usePermissionFlagMap = (): Record<PermissionFlagType, boolean> => {
diff --git a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts
index 0051ec9020c..69f0562318c 100644
--- a/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts
+++ b/packages/twenty-front/src/modules/settings/roles/hooks/useUpdateApiKeyRole.ts
@@ -1,7 +1,9 @@
import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';
import { useRecoilState } from 'recoil';
-import { useAssignRoleToApiKeyMutation } from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
+import {
+ useAssignRoleToApiKeyMutation,
+ type ApiKeyForRole,
+} from '~/generated-metadata/graphql';
export const useUpdateApiKeyRole = (roleId: string) => {
const [settingsDraftRole, setSettingsDraftRole] = useRecoilState(
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
index a42623e4286..f59381c2e96 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/RoleAssignmentSection.tsx
@@ -7,8 +7,7 @@ import styled from '@emotion/styled';
import { AppTooltip, IconPlus, TooltipDelay } from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
-import { type Agent } from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
+import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
import {
type PartialWorkspaceMember,
type RoleWithPartialMembers,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
index 76de3b48629..fa0eefddb5a 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignment.tsx
@@ -19,8 +19,9 @@ import {
useFindManyAgentsQuery,
useGetApiKeysQuery,
type Agent,
+ FeatureFlagKey,
+ type ApiKeyForRole,
} from '~/generated-metadata/graphql';
-import { FeatureFlagKey, type ApiKeyForRole } from '~/generated/graphql';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
import { ROLE_ASSIGNMENT_CONFIRMATION_MODAL_ID } from '@/settings/roles/role-assignment/constants/RoleAssignmentConfirmationModalId';
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
index 770fe937035..a60b4c6df19 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown.tsx
@@ -10,8 +10,8 @@ import {
type Agent,
useFindManyAgentsQuery,
useGetApiKeysQuery,
+ type ApiKeyForRole,
} from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
import { normalizeSearchText } from '~/utils/normalizeSearchText';
const StyledLoadingContainer = styled.div`
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
index a0f234420fc..253954594ea 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTable.tsx
@@ -13,8 +13,7 @@ import { useMemo, useState } from 'react';
import { useRecoilValue } from 'recoil';
import { H2Title, IconSearch } from 'twenty-ui/display';
-import { type Agent } from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
+import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
import { normalizeSearchText } from '~/utils/normalizeSearchText';
import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
index ceba066d77d..50c14797b4c 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentTableRow.tsx
@@ -13,8 +13,7 @@ import {
OverflowingTextWithTooltip,
useIcons,
} from 'twenty-ui/display';
-import { type Agent } from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
+import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
import { dateLocaleState } from '~/localization/states/dateLocaleState';
import { formatDateString } from '~/utils/string/formatDateString';
import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx
index bb83756437d..fa5ee4d4fa4 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdownContent.tsx
@@ -3,7 +3,7 @@ import { t } from '@lingui/core/macro';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { MenuItem, MenuItemAvatar } from 'twenty-ui/navigation';
-import { type SearchRecord } from '~/generated-metadata/graphql';
+import { type SearchRecord } from '~/generated/graphql';
import { type PartialWorkspaceMember } from '@/settings/roles/types/RoleWithPartialMembers';
type SettingsRoleAssignmentWorkspaceMemberPickerDropdownContentProps = {
diff --git a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
index fc1936821d3..33d48b2e419 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-assignment/constants/RoleTargetConfig.ts
@@ -2,8 +2,7 @@ import { type CurrentWorkspaceMember } from '@/auth/states/currentWorkspaceMembe
import { SettingsRoleAssignmentEntityPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentEntityPickerDropdown';
import { SettingsRoleAssignmentWorkspaceMemberPickerDropdown } from '@/settings/roles/role-assignment/components/SettingsRoleAssignmentWorkspaceMemberPickerDropdown';
import { t } from '@lingui/core/macro';
-import { type Agent } from '~/generated-metadata/graphql';
-import { type ApiKeyForRole } from '~/generated/graphql';
+import { type Agent, type ApiKeyForRole } from '~/generated-metadata/graphql';
import {
type PartialWorkspaceMember,
type RoleWithPartialMembers,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx
index ff3c5f535c4..a8ee9f1ef46 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/components/SettingsRolePermissionsObjectLevelObjectFieldPermissionTableRow.tsx
@@ -15,7 +15,10 @@ import { useMemo } from 'react';
import { isDefined } from 'twenty-shared/utils';
import { useIcons } from 'twenty-ui/display';
import { v4 } from 'uuid';
-import { type FieldPermission, RelationType } from '~/generated/graphql';
+import {
+ type FieldPermission,
+ RelationType,
+} from '~/generated-metadata/graphql';
export const StyledObjectFieldTableRow = styled(TableRow)`
grid-template-columns: 180px minmax(0, 1fr) 60px 60px;
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts
index 31b99062124..60eb31bb496 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/hooks/useUpsertFieldPermissionInDraftRole.ts
@@ -1,7 +1,7 @@
import { getRoleWithUpsertedFieldPermission } from '@/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission';
import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';
import { useSetRecoilState } from 'recoil';
-import { type FieldPermission } from '~/generated/graphql';
+import { type FieldPermission } from '~/generated-metadata/graphql';
export const useUpsertFieldPermissionInDraftRole = (roleId: string) => {
const setSettingsDraftRole = useSetRecoilState(
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts
index aa8f2d4d5ae..458db1019b9 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/field-permissions/utils/getRoleWithUpsertedFieldPermission.ts
@@ -1,7 +1,7 @@
import { type RoleWithPartialMembers } from '@/settings/roles/types/RoleWithPartialMembers';
import { isNonEmptyArray } from '@sniptt/guards';
import { produce } from 'immer';
-import { type FieldPermission } from '~/generated/graphql';
+import { type FieldPermission } from '~/generated-metadata/graphql';
export const getRoleWithUpsertedFieldPermission = (
role: RoleWithPartialMembers,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts
index 4e129347bd2..236aa93dea6 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission.ts
@@ -1,7 +1,7 @@
import { type RoleWithPartialMembers } from '@/settings/roles/types/RoleWithPartialMembers';
import { isNonEmptyArray } from '@sniptt/guards';
import { produce } from 'immer';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
export const getRoleWithUpsertedObjectPermission = (
role: RoleWithPartialMembers,
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts
index 8f4ff02de0a..bcbc5f04c68 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermission.ts
@@ -3,7 +3,7 @@ import { type SettingsRoleObjectPermissionKey } from '@/settings/roles/role-perm
import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
export const useUpsertObjectPermission = ({ roleId }: { roleId: string }) => {
const settingsDraftRole = useRecoilValue(
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts
index cf25c5938e3..2c8c5d27ae6 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/hooks/useUpsertObjectPermissionInDraftRole.ts
@@ -1,7 +1,7 @@
import { getRoleWithUpsertedObjectPermission } from '@/settings/roles/role-permissions/object-level-permissions/hooks/getRoleWithUpsertedObjectPermission';
import { settingsDraftRoleFamilyState } from '@/settings/roles/states/settingsDraftRoleFamilyState';
import { useSetRecoilState } from 'recoil';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
export const useUpsertObjectPermissionInDraftRole = (roleId: string) => {
const setSettingsDraftRole = useSetRecoilState(
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx
index 25d04b8b4c0..26cf7a52cb2 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/object-level-permissions/object-form/components/SettingsRolePermissionsObjectLevelObjectFormObjectLevelTableRow.tsx
@@ -12,8 +12,7 @@ import styled from '@emotion/styled';
import { t } from '@lingui/core/macro';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type ObjectPermission } from '~/generated-metadata/graphql';
-import type { Role } from '~/generated/graphql';
+import { type ObjectPermission, type Role } from '~/generated-metadata/graphql';
const StyledTableRow = styled(TableRow)<{ isDisabled: boolean }>`
align-items: center;
diff --git a/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts b/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts
index 66901e17e67..1e7d39f01de 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role-permissions/objects-permissions/types/SettingsRolePermissionsObjectPermission.ts
@@ -1,5 +1,5 @@
import { type ReactNode } from 'react';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
export type SettingsRolePermissionsObjectPermission = {
key: keyof Pick<
diff --git a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
index ae5040de3b6..c98ddfbbf4c 100644
--- a/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
+++ b/packages/twenty-front/src/modules/settings/roles/role-settings/components/SettingsRoleApplicability.tsx
@@ -6,7 +6,7 @@ import { t } from '@lingui/core/macro';
import { H2Title, IconKey, IconRobot, IconUsers } from 'twenty-ui/display';
import { Checkbox } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledCheckboxContainer = styled.div<{ disabled: boolean }>`
display: flex;
diff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts
index 8a047cc621f..ff7184c9ef0 100644
--- a/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role/hooks/useSaveDraftRoleToDB.ts
@@ -18,8 +18,8 @@ import {
useUpsertFieldPermissionsMutation,
useUpsertObjectPermissionsMutation,
useUpsertPermissionFlagsMutation,
+ type Role,
} from '~/generated-metadata/graphql';
-import { type Role } from '~/generated/graphql';
import { getDirtyFields } from '~/utils/getDirtyFields';
const ROLE_BASIC_KEYS: Array<keyof Role> = [
diff --git a/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts b/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts
index faf0504f3c2..a87a1b159c1 100644
--- a/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts
+++ b/packages/twenty-front/src/modules/settings/roles/role/hooks/utils/newFieldPermissionsFilter.util.ts
@@ -1,4 +1,4 @@
-import { type FieldPermission } from '~/generated/graphql';
+import { type FieldPermission } from '~/generated-metadata/graphql';
export const newFieldPermissionsFilter = (
dirtyFieldPermission: FieldPermission,
diff --git a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx
index 95e0e7771c4..d8648a7df4c 100644
--- a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx
+++ b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSSOIdentitiesProvidersForm.tsx
@@ -12,7 +12,7 @@ import { type ReactElement, useMemo } from 'react';
import { Controller, useFormContext } from 'react-hook-form';
import { H2Title, type IconComponent, IconKey } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
-import { IdentityProviderType } from '~/generated/graphql';
+import { IdentityProviderType } from '~/generated-metadata/graphql';
const StyledInputsContainer = styled.div`
display: grid;
diff --git a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx
index cfe6bd631ad..d750cd13444 100644
--- a/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx
+++ b/packages/twenty-front/src/modules/settings/security/components/SSO/SettingsSecuritySSORowDropdownMenu.tsx
@@ -12,7 +12,7 @@ import { isDefined } from 'twenty-shared/utils';
import { IconArchive, IconDotsVertical, IconTrash } from 'twenty-ui/display';
import { LightIconButton } from 'twenty-ui/input';
import { MenuItem } from 'twenty-ui/navigation';
-import { SsoIdentityProviderStatus } from '~/generated/graphql';
+import { SsoIdentityProviderStatus } from '~/generated-metadata/graphql';
type SettingsSecuritySSORowDropdownMenuProps = {
SSOIdp: UnwrapRecoilValue<typeof SSOIdentitiesProvidersState>[0];
diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx
index 62f7e3b4bd6..68d5f4a7193 100644
--- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx
+++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useCreateSSOIdentityProvider.test.tsx
@@ -9,6 +9,7 @@ const mutationOIDCCallSpy = jest.fn();
const mutationSAMLCallSpy = jest.fn();
jest.mock('~/generated-metadata/graphql', () => ({
+ ...jest.requireActual('~/generated-metadata/graphql'),
useCreateOidcIdentityProviderMutation: () => [mutationOIDCCallSpy],
useCreateSamlIdentityProviderMutation: () => [mutationSAMLCallSpy],
}));
diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx
index 415d549fe59..e90ed192828 100644
--- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx
+++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useDeleteSSOIdentityProvider.test.tsx
@@ -8,6 +8,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta
const mutationDeleteSSOIDPCallSpy = jest.fn();
jest.mock('~/generated-metadata/graphql', () => ({
+ ...jest.requireActual('~/generated-metadata/graphql'),
useDeleteSsoIdentityProviderMutation: () => [mutationDeleteSSOIDPCallSpy],
}));
diff --git a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx
index d0cc98d8f87..e4db8fd8151 100644
--- a/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx
+++ b/packages/twenty-front/src/modules/settings/security/hooks/__tests__/useEditSSOIdentityProvider.test.tsx
@@ -3,7 +3,7 @@
import { renderHook } from '@testing-library/react';
import { useUpdateSSOIdentityProvider } from '@/settings/security/hooks/useUpdateSSOIdentityProvider';
-import { SsoIdentityProviderStatus } from '~/generated/graphql';
+import { SsoIdentityProviderStatus } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
const mutationEditSSOIDPCallSpy = jest.fn();
diff --git a/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts b/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts
index 958090692f9..7fb3564379f 100644
--- a/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts
+++ b/packages/twenty-front/src/modules/settings/security/states/ApprovedAccessDomainsState.ts
@@ -1,4 +1,4 @@
-import { type ApprovedAccessDomain } from '~/generated/graphql';
+import { type ApprovedAccessDomain } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const approvedAccessDomainsState = createState<
diff --git a/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts b/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts
index b4bcc28aef1..ae882fe1b74 100644
--- a/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts
+++ b/packages/twenty-front/src/modules/settings/security/types/SSOIdentityProvider.ts
@@ -5,7 +5,7 @@ import { type z } from 'zod';
import {
type IdentityProviderType,
type SsoIdentityProviderStatus,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type SSOIdentityProvider = {
__typename: 'SSOIdentityProvider';
diff --git a/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts b/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts
index cd1497d82e5..9ddd16a1976 100644
--- a/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts
+++ b/packages/twenty-front/src/modules/settings/security/utils/getColorBySSOIdentityProviderStatus.ts
@@ -1,4 +1,4 @@
-import { type SsoIdentityProviderStatus } from '~/generated/graphql';
+import { type SsoIdentityProviderStatus } from '~/generated-metadata/graphql';
import { type ThemeColor } from 'twenty-ui/theme';
export const getColorBySSOIdentityProviderStatus: Record<
diff --git a/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts b/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts
index 4fda04f7035..7a08ef94f6c 100644
--- a/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts
+++ b/packages/twenty-front/src/modules/settings/security/utils/sSOIdentityProviderDefaultValues.ts
@@ -2,7 +2,7 @@
import { type SettingSecurityNewSSOIdentityFormValues } from '@/settings/security/types/SSOIdentityProvider';
import { v4 } from 'uuid';
-import { type IdentityProviderType } from '~/generated/graphql';
+import { type IdentityProviderType } from '~/generated-metadata/graphql';
export const sSOIdentityProviderDefaultValues: Record<
IdentityProviderType,
diff --git a/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts b/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts
index 444332fb1c8..cb3661e5936 100644
--- a/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts
+++ b/packages/twenty-front/src/modules/spreadsheet-import/utils/spreadsheetImportHasNestedFields.ts
@@ -1,7 +1,7 @@
import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataItem';
import { isCompositeFieldType } from '@/object-record/object-filter-dropdown/utils/isCompositeFieldType';
import { FieldMetadataType } from 'twenty-shared/types';
-import { RelationType } from '~/generated/graphql';
+import { RelationType } from '~/generated-metadata/graphql';
export const hasNestedFields = (fieldMetadata: FieldMetadataItem) => {
return (
diff --git a/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx b/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx
index 20cdf7c555a..3e85d75bd56 100644
--- a/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx
+++ b/packages/twenty-front/src/modules/sse-db-event/components/ListenRecordUpdatesEffect.tsx
@@ -14,7 +14,7 @@ import { type ObjectRecord } from '@/object-record/types/ObjectRecord';
import { useOnDbEvent } from '@/sse-db-event/hooks/useOnDbEvent';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { DatabaseEventAction } from '~/generated/graphql';
+import { DatabaseEventAction } from '~/generated-metadata/graphql';
type ListenRecordUpdatesEffectProps = {
objectNameSingular: string;
diff --git a/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx b/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx
index 7b9b702a037..d856ff3183b 100644
--- a/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx
+++ b/packages/twenty-front/src/modules/sse-db-event/components/SSEEventStreamEffect.tsx
@@ -13,7 +13,7 @@ import { isNonEmptyString } from '@sniptt/guards';
import { useEffect } from 'react';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { FeatureFlagKey, OnboardingStatus } from '~/generated/graphql';
+import { FeatureFlagKey, OnboardingStatus } from '~/generated-metadata/graphql';
export const SSEEventStreamEffect = () => {
const objectMetadataItems = useRecoilValue(objectMetadataItemsState);
diff --git a/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx b/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx
index 478c044db85..700236dd7a7 100644
--- a/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx
+++ b/packages/twenty-front/src/modules/sse-db-event/components/SSEProvider.tsx
@@ -7,7 +7,7 @@ import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { createClient } from 'graphql-sse';
import { type ReactNode } from 'react';
import { REACT_APP_SERVER_BASE_URL } from '~/config';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
type SSEProviderProps = {
children: ReactNode;
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts
index 32e7c863f7e..715632f856a 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useDispatchObjectRecordEventsFromSseToBrowserEvents.ts
@@ -4,7 +4,7 @@ import { groupObjectRecordSseEventsByObjectMetadataItemNameSingular } from '@/ss
import { turnSseObjectRecordEventsToObjectRecordOperationBrowserEvents } from '@/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent';
import { useCallback } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { type EventWithQueryIds } from '~/generated/graphql';
+import { type EventWithQueryIds } from '~/generated-metadata/graphql';
export const useDispatchObjectRecordEventsFromSseToBrowserEvents = () => {
const { objectMetadataItems } = useObjectMetadataItems();
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts
index 547d14904a1..5d9be496b3f 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerEventStreamCreation.ts
@@ -16,7 +16,7 @@ import { print, type ExecutionResult } from 'graphql';
import { useRecoilCallback, useSetRecoilState } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { type EventSubscription } from '~/generated/graphql';
+import { type EventSubscription } from '~/generated-metadata/graphql';
export const useTriggerEventStreamCreation = () => {
const setIsCreatingSseEventStream = useSetRecoilState(
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts
index 2b5f6e260dd..5fc8eb993dd 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseCreateEvents.ts
@@ -12,7 +12,7 @@ import { useDebouncedCallback } from 'use-debounce';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useTriggerOptimisticEffectFromSseCreateEvents = () => {
const apolloCoreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts
index f8284a39970..9be79d0cb12 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseDeleteEvents.ts
@@ -13,7 +13,7 @@ import { useDebouncedCallback } from 'use-debounce';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useTriggerOptimisticEffectFromSseDeleteEvents = () => {
const apolloCoreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts
index 491ddef3993..c4aa80ef908 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseEvents.ts
@@ -10,7 +10,7 @@ import { isDefined } from 'twenty-shared/utils';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useTriggerOptimisticEffectFromSseEvents = () => {
const { objectMetadataItems } = useObjectMetadataItems();
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts
index 0c8c1243287..bdb84d87033 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseRestoreEvents.ts
@@ -13,7 +13,7 @@ import { useDebouncedCallback } from 'use-debounce';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useTriggerOptimisticEffectFromSseRestoreEvents = () => {
const apolloCoreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts
index 02141584960..d79476b6f68 100644
--- a/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/hooks/useTriggerOptimisticEffectFromSseUpdateEvents.ts
@@ -16,7 +16,7 @@ import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const useTriggerOptimisticEffectFromSseUpdateEvents = () => {
const apolloCoreClient = useApolloCoreClient();
diff --git a/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts b/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts
index a81891ce09f..a0e904022b8 100644
--- a/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/types/ObjectRecordEventsByQueryId.ts
@@ -1,3 +1,3 @@
-import { type ObjectRecordEvent } from '~/generated/graphql';
+import { type ObjectRecordEvent } from '~/generated-metadata/graphql';
export type ObjectRecordEventsByQueryId = Record<string, ObjectRecordEvent[]>;
diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts b/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts
index bdcb4edb593..0281159f95b 100644
--- a/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/utils/dispatchObjectRecordEventsWithQueryIds.ts
@@ -1,7 +1,7 @@
import { type ObjectRecordEventsByQueryId } from '@/sse-db-event/types/ObjectRecordEventsByQueryId';
import { getObjectRecordEventsForQueryEventName } from '@/sse-db-event/utils/getObjectRecordEventsForQueryEventName';
import { isDefined } from 'twenty-shared/utils';
-import { type EventWithQueryIds } from '~/generated/graphql';
+import { type EventWithQueryIds } from '~/generated-metadata/graphql';
export const dispatchObjectRecordEventsWithQueryIds = (
objectRecordEventsWithQueryIds: EventWithQueryIds[],
diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts b/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts
index efb725d2908..c01af55efb5 100644
--- a/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/utils/getObjectRecordOperationUpdateInputs.ts
@@ -1,6 +1,6 @@
import { type ObjectRecordOperationUpdateInput } from '@/object-record/types/ObjectRecordOperationUpdateInput';
import { isDefined } from 'twenty-shared/utils';
-import { type ObjectRecordEvent } from '~/generated/graphql';
+import { type ObjectRecordEvent } from '~/generated-metadata/graphql';
export const getObjectRecordOperationUpdateInputs = (
events: ObjectRecordEvent[],
diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts
index 83f658bcd0e..0e88e7d1d0f 100644
--- a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByEventType.ts
@@ -1,7 +1,7 @@
import {
type DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const groupObjectRecordSseEventsByEventType = ({
objectRecordEvents,
diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts
index 5af512957ed..94869e6daad 100644
--- a/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/utils/groupObjectRecordSseEventsByObjectMetadataItemNameSingular.ts
@@ -1,4 +1,4 @@
-import { type ObjectRecordEvent } from '~/generated/graphql';
+import { type ObjectRecordEvent } from '~/generated-metadata/graphql';
export const groupObjectRecordSseEventsByObjectMetadataItemNameSingular = ({
objectRecordEvents,
diff --git a/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts b/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts
index 87a7d1a8130..0c17615b701 100644
--- a/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts
+++ b/packages/twenty-front/src/modules/sse-db-event/utils/turnSseObjectRecordEventToObjectRecordOperationBrowserEvent.ts
@@ -6,7 +6,7 @@ import { assertUnreachable, isDefined } from 'twenty-shared/utils';
import {
DatabaseEventAction,
type ObjectRecordEvent,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const turnSseObjectRecordEventsToObjectRecordOperationBrowserEvents = ({
objectMetadataItem,
diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts
index 8d131498eaf..13299bcd623 100644
--- a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts
+++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserDateFormat.ts
@@ -1,6 +1,6 @@
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
import { useRecoilValue } from 'recoil';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
export const useUserDateFormat = () => {
const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState);
diff --git a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts
index 3e51b384cfd..52537db5e5f 100644
--- a/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts
+++ b/packages/twenty-front/src/modules/ui/input/components/internal/date/hooks/useUserTimeFormat.ts
@@ -1,6 +1,6 @@
import { currentWorkspaceMemberState } from '@/auth/states/currentWorkspaceMemberState';
import { useRecoilValue } from 'recoil';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
export const useUserTimeFormat = () => {
const currentWorkspaceMember = useRecoilValue(currentWorkspaceMemberState);
diff --git a/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx b/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx
index 28bd4965a1b..88ad873c240 100644
--- a/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx
+++ b/packages/twenty-front/src/modules/ui/layout/contexts/LayoutRenderingContext.tsx
@@ -1,4 +1,4 @@
-import { type PageLayoutType } from '~/generated/graphql';
+import { type PageLayoutType } from '~/generated-metadata/graphql';
import { createRequiredContext } from '~/utils/createRequiredContext';
import { type TargetRecordIdentifier } from './TargetRecordIdentifier';
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx
index 38ee905ac75..679262e5c74 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/components/MultiWorkspaceDropdown/internal/components/AvailableWorkspaceItem.tsx
@@ -1,7 +1,7 @@
import { Avatar } from 'twenty-ui/display';
import { MenuItemSelectAvatar, UndecoratedLink } from 'twenty-ui/navigation';
import { DEFAULT_WORKSPACE_LOGO } from '@/ui/navigation/navigation-drawer/constants/DefaultWorkspaceLogo';
-import { type AvailableWorkspace } from '~/generated/graphql';
+import { type AvailableWorkspace } from '~/generated-metadata/graphql';
import { useRedirectToWorkspaceDomain } from '@/domain-manager/hooks/useRedirectToWorkspaceDomain';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
import { getAvailableWorkspacePathAndSearchParams } from '@/auth/utils/availableWorkspacesUtils';
diff --git a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts
index d32dbc44907..c24ed058a82 100644
--- a/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts
+++ b/packages/twenty-front/src/modules/ui/navigation/navigation-drawer/hooks/useFilteredAvailableWorkspaces.ts
@@ -1,6 +1,6 @@
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { useRecoilValue } from 'recoil';
-import { type AvailableWorkspace } from '~/generated/graphql';
+import { type AvailableWorkspace } from '~/generated-metadata/graphql';
export const useFilteredAvailableWorkspaces = () => {
const currentWorkspace = useRecoilValue(currentWorkspaceState);
diff --git a/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx b/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx
index 3b36343e14d..2f5f8d5c773 100644
--- a/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx
+++ b/packages/twenty-front/src/modules/views/editable-chip/components/EditableSortChip.tsx
@@ -4,7 +4,7 @@ import { useUpsertRecordSort } from '@/object-record/record-sort/hooks/useUpsert
import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
import { SortOrFilterChip } from '@/views/components/SortOrFilterChip';
import { IconArrowDown, IconArrowUp } from 'twenty-ui/display';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
type EditableSortChipProps = {
recordSort: RecordSort;
diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx
index 02b54d5dd0a..723a3991191 100644
--- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx
+++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFilterGroupsToCurrentRecordFilterGroups.test.tsx
@@ -13,7 +13,7 @@ import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLog
import { mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator } from '@/views/utils/mapViewFilterGroupLogicalOperatorToRecordFilterGroupLogicalOperator';
import { act } from 'react';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilterGroup } from '~/generated/graphql';
+import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper';
import {
mockedCoreViewsData,
diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx
index b9188b1f4d6..7657ed80227 100644
--- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx
+++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewFiltersToCurrentRecordFilters.test.tsx
@@ -14,7 +14,7 @@ import { getFilterTypeFromFieldType, isDefined } from 'twenty-shared/utils';
import {
type CoreViewFilter,
ViewFilterOperand as CoreViewFilterOperand,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper';
import {
mockedCoreViewsData,
diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx
index 1824540c082..7fdde540dca 100644
--- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx
+++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyCurrentViewSortsToCurrentRecordSorts.test.tsx
@@ -11,7 +11,7 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'
import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations';
import { type View } from '@/views/types/View';
import { isDefined } from 'twenty-shared/utils';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper';
import {
mockedCoreViewsData,
diff --git a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx
index 9400eb27bac..ef3bfe416d2 100644
--- a/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx
+++ b/packages/twenty-front/src/modules/views/hooks/__tests__/useApplyViewSortsToCurrentRecordSorts.test.tsx
@@ -7,7 +7,7 @@ import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockO
import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
import { isDefined } from 'twenty-shared/utils';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksAndActionMenuWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksAndActionMenuWrapper';
import { useApplyViewSortsToCurrentRecordSorts } from '@/views/hooks/useApplyViewSortsToCurrentRecordSorts';
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts
index 2269d68710a..2d728d01f79 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewFilterGroupAPIPersist.ts
@@ -7,7 +7,7 @@ import { type GraphQLView } from '@/views/types/GraphQLView';
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
import { useApolloClient } from '@apollo/client';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilterGroup } from '~/generated/graphql';
+import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
export const usePerformViewFilterGroupAPIPersist = () => {
const apolloClient = useApolloClient();
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts
index ae9fd481eea..257685f40ea 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/usePerformViewSortAPIPersist.ts
@@ -8,7 +8,7 @@ import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential'
import { type GraphQLView } from '@/views/types/GraphQLView';
import { useApolloClient } from '@apollo/client';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
export const usePerformViewSortAPIPersist = () => {
const apolloClient = useApolloClient();
diff --git a/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts b/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts
index 98ef86fabb9..144d875f242 100644
--- a/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts
+++ b/packages/twenty-front/src/modules/views/hooks/internal/useSortsFromQueryParams.ts
@@ -7,7 +7,7 @@ import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
import { sortUrlQueryParamsSchema } from '@/views/schemas/sortUrlQueryParamsSchema';
import { useParams, useSearchParams } from 'react-router-dom';
import { isDefined } from 'twenty-shared/utils';
-import { type ViewSortDirection } from '~/generated/graphql';
+import { type ViewSortDirection } from '~/generated-metadata/graphql';
export const useSortsFromQueryParams = () => {
const [searchParams] = useSearchParams();
diff --git a/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts b/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts
index b734fb3d739..50df6c77cbd 100644
--- a/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useCanPersistViewChanges.ts
@@ -1,7 +1,9 @@
import { useHasPermissionFlag } from '@/settings/roles/hooks/useHasPermissionFlag';
import { useGetCurrentViewOnly } from '@/views/hooks/useGetCurrentViewOnly';
-import { ViewVisibility } from '~/generated-metadata/graphql';
-import { PermissionFlagType } from '~/generated/graphql';
+import {
+ ViewVisibility,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
export const useCanPersistViewChanges = () => {
const { currentView } = useGetCurrentViewOnly();
diff --git a/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts
index a396a2ac773..05d4c210906 100644
--- a/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useMapViewFiltersToFilters.ts
@@ -1,5 +1,5 @@
import { useRecordIndexContextOrThrow } from '@/object-record/record-index/contexts/RecordIndexContext';
-import { type CoreViewFilter } from '~/generated/graphql';
+import { type CoreViewFilter } from '~/generated-metadata/graphql';
import { type ViewFilter } from '@/views/types/ViewFilter';
import { getFilterableFields } from '@/views/utils/getFilterableFields';
import { mapViewFiltersToFilters } from '@/views/utils/mapViewFiltersToFilters';
diff --git a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
index 2eaf2fe90a6..8a21b27bbec 100644
--- a/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useUpdateViewAggregate.ts
@@ -13,7 +13,7 @@ import {
isDefined,
upsertIntoArrayOfObjectsComparingId,
} from 'twenty-shared/utils';
-import { type CoreView } from '~/generated/graphql';
+import { type CoreView } from '~/generated-metadata/graphql';
export const useUpdateViewAggregate = () => {
const { canPersistChanges } = useCanPersistViewChanges();
diff --git a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
index db0ae3b00b6..f522a5ccc60 100644
--- a/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
+++ b/packages/twenty-front/src/modules/views/hooks/useViewsSideEffectsOnViewGroups.ts
@@ -4,7 +4,7 @@ import { type ViewGroup } from '@/views/types/ViewGroup';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { v4 } from 'uuid';
-import { type CoreViewGroup } from '~/generated/graphql';
+import { type CoreViewGroup } from '~/generated-metadata/graphql';
const useViewsSideEffectsOnViewGroups = () => {
const { triggerViewGroupOptimisticEffect } =
diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts
index 2e0fdc30670..7c312bcabd7 100644
--- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts
+++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFieldOptimisticEffect.ts
@@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations'
import { useApolloClient } from '@apollo/client';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewField } from '~/generated/graphql';
+import { type CoreViewField } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
export const useTriggerViewFieldOptimisticEffect = () => {
diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts
index 0f535a6d736..c2ff4ee3036 100644
--- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts
+++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewFilterOptimisticEffect.ts
@@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations'
import { useApolloClient } from '@apollo/client';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilter } from '~/generated/graphql';
+import { type CoreViewFilter } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
type UpdatedDeletedCoreViewFilter = {
createdViewFilters?: Omit<CoreViewFilter, 'workspaceId'>[];
diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts
index 5d3f848c98b..09ded1bdecf 100644
--- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts
+++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewGroupOptimisticEffect.ts
@@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations'
import { useApolloClient } from '@apollo/client';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewGroup } from '~/generated/graphql';
+import { type CoreViewGroup } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
type UpdatedDeletedCoreViewGroup = {
diff --git a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts
index 72772f94106..e371e8f75a1 100644
--- a/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts
+++ b/packages/twenty-front/src/modules/views/optimistic-effects/hooks/useTriggerViewSortOptimisticEffect.ts
@@ -4,7 +4,7 @@ import { type CoreViewWithRelations } from '@/views/types/CoreViewWithRelations'
import { useApolloClient } from '@apollo/client';
import { useRecoilCallback } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
import { isDeeplyEqual } from '~/utils/isDeeplyEqual';
export const useTriggerViewSortOptimisticEffect = () => {
diff --git a/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts b/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts
index 6f445c460d7..2baf4b036b7 100644
--- a/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts
+++ b/packages/twenty-front/src/modules/views/schemas/sortUrlQueryParamsSchema.ts
@@ -1,4 +1,4 @@
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import z from 'zod';
export const sortUrlQueryParamsSchema = z.object({
diff --git a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts b/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts
index 10895317ec5..4c8cc81e032 100644
--- a/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts
+++ b/packages/twenty-front/src/modules/views/types/CoreViewSortEssential.ts
@@ -1,4 +1,4 @@
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
export type CoreViewSortEssential = Pick<
CoreViewSort,
diff --git a/packages/twenty-front/src/modules/views/types/GraphQLView.ts b/packages/twenty-front/src/modules/views/types/GraphQLView.ts
index 2cb8c4491c5..7212731d89b 100644
--- a/packages/twenty-front/src/modules/views/types/GraphQLView.ts
+++ b/packages/twenty-front/src/modules/views/types/GraphQLView.ts
@@ -7,9 +7,10 @@ import { type ViewGroup } from '@/views/types/ViewGroup';
import { type ViewKey } from '@/views/types/ViewKey';
import { type ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
import { type ViewType } from '@/views/types/ViewType';
-import { type ViewVisibility } from '~/generated-metadata/graphql';
-import { type ViewCalendarLayout } from '~/generated/graphql';
-
+import {
+ type ViewVisibility,
+ type ViewCalendarLayout,
+} from '~/generated-metadata/graphql';
export type GraphQLView = {
id: string;
name: string;
diff --git a/packages/twenty-front/src/modules/views/types/View.ts b/packages/twenty-front/src/modules/views/types/View.ts
index b7f2bdf6b17..f8f2e617ce8 100644
--- a/packages/twenty-front/src/modules/views/types/View.ts
+++ b/packages/twenty-front/src/modules/views/types/View.ts
@@ -7,8 +7,10 @@ import { type ViewGroup } from '@/views/types/ViewGroup';
import { type ViewKey } from '@/views/types/ViewKey';
import { type ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
import { type ViewType } from '@/views/types/ViewType';
-import { type ViewVisibility } from '~/generated-metadata/graphql';
-import { type ViewCalendarLayout } from '~/generated/graphql';
+import {
+ type ViewVisibility,
+ type ViewCalendarLayout,
+} from '~/generated-metadata/graphql';
export type View = {
id: string;
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts
index 7be64085757..225f0175e0f 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/areViewSortsEqual.test.ts
@@ -1,5 +1,8 @@
import { areViewSortsEqual } from '@/views/utils/areViewSortsEqual';
-import { type CoreViewSort, ViewSortDirection } from '~/generated/graphql';
+import {
+ type CoreViewSort,
+ ViewSortDirection,
+} from '~/generated-metadata/graphql';
describe('areViewSortsEqual', () => {
const baseSort: CoreViewSort = {
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts
index 12ddb14a67b..4199a8b9f92 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToCreate.test.ts
@@ -1,5 +1,5 @@
import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getViewSortsToCreate } from '@/views/utils/getViewSortsToCreate';
describe('getViewSortsToCreate', () => {
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts
index a790b64b022..7d6c4315b10 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToDelete.test.ts
@@ -1,5 +1,5 @@
import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getViewSortsToDelete } from '@/views/utils/getViewSortsToDelete';
describe('getViewSortsToDelete', () => {
diff --git a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts
index e53dcf4f7ae..c863a37bef9 100644
--- a/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts
+++ b/packages/twenty-front/src/modules/views/utils/__tests__/getViewSortsToUpdate.test.ts
@@ -1,5 +1,5 @@
import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
import { getViewSortsToUpdate } from '@/views/utils/getViewSortsToUpdate';
describe('getViewSortsToUpdate', () => {
diff --git a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
index 2924680cd9b..742e9561cf6 100644
--- a/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
+++ b/packages/twenty-front/src/modules/views/utils/areViewSortsEqual.ts
@@ -1,4 +1,4 @@
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
import { compareStrictlyExceptForNullAndUndefined } from '~/utils/compareStrictlyExceptForNullAndUndefined';
export const areViewSortsEqual = (
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts
index 4c3b1fe5520..408dc7de516 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFieldToViewField.ts
@@ -1,7 +1,7 @@
import { type FieldMetadata } from '@/object-record/record-field/ui/types/FieldMetadata';
import { type ColumnDefinition } from '@/object-record/record-table/types/ColumnDefinition';
import { type ViewField } from '@/views/types/ViewField';
-import { type CoreViewField } from '~/generated/graphql';
+import { type CoreViewField } from '~/generated-metadata/graphql';
export const convertCoreViewFieldToViewField = (
coreViewField: Pick<
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts
index ce9d9fe8380..57a46fc9895 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterGroupToViewFilterGroup.ts
@@ -1,6 +1,6 @@
import { type ViewFilterGroup } from '@/views/types/ViewFilterGroup';
import { ViewFilterGroupLogicalOperator } from '@/views/types/ViewFilterGroupLogicalOperator';
-import { type CoreViewFilterGroup } from '~/generated/graphql';
+import { type CoreViewFilterGroup } from '~/generated-metadata/graphql';
export const convertCoreViewFilterGroupToViewFilterGroup = (
coreViewFilterGroup: Pick<
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts
index edac6289318..9d6927762a8 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewFilterToViewFilter.ts
@@ -1,7 +1,7 @@
import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName';
import { type ViewFilter } from '@/views/types/ViewFilter';
import { convertViewFilterValueToString } from 'twenty-shared/utils';
-import { type CoreViewFilter } from '~/generated/graphql';
+import { type CoreViewFilter } from '~/generated-metadata/graphql';
export const convertCoreViewFilterToViewFilter = (
coreViewFilter: Pick<
@@ -22,7 +22,7 @@ export const convertCoreViewFilterToViewFilter = (
operand: coreViewFilter.operand,
value: convertViewFilterValueToString(coreViewFilter.value),
displayValue: convertViewFilterValueToString(coreViewFilter.value),
- viewFilterGroupId: coreViewFilter.viewFilterGroupId,
+ viewFilterGroupId: coreViewFilter.viewFilterGroupId ?? undefined,
positionInViewFilterGroup: coreViewFilter.positionInViewFilterGroup,
subFieldName: coreViewFilter.subFieldName as CompositeFieldSubFieldName,
};
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts
index 210a8536b16..1d9523216f9 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewGroupToViewGroup.ts
@@ -1,5 +1,5 @@
import { type ViewGroup } from '@/views/types/ViewGroup';
-import { type CoreViewGroup } from '~/generated/graphql';
+import { type CoreViewGroup } from '~/generated-metadata/graphql';
export const convertCoreViewGroupToViewGroup = (
coreViewGroup: Pick<
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts
index c5e8d198de8..38ec6b89fe4 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewOpenRecordInToViewOpenRecordIn.ts
@@ -1,5 +1,5 @@
import { ViewOpenRecordInType } from '@/views/types/ViewOpenRecordInType';
-import { ViewOpenRecordIn as CoreViewOpenRecordIn } from '~/generated/graphql';
+import { ViewOpenRecordIn as CoreViewOpenRecordIn } from '~/generated-metadata/graphql';
export const convertCoreViewOpenRecordInToViewOpenRecordIn = (
openIn: CoreViewOpenRecordIn,
diff --git a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts b/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts
index bb32be8f14b..0349ca5db4e 100644
--- a/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts
+++ b/packages/twenty-front/src/modules/views/utils/convertCoreViewTypeToViewType.ts
@@ -1,5 +1,5 @@
import { ViewType } from '@/views/types/ViewType';
-import { ViewType as CoreViewType } from '~/generated/graphql';
+import { ViewType as CoreViewType } from '~/generated-metadata/graphql';
export const convertCoreViewTypeToViewType = (
coreViewType: CoreViewType,
diff --git a/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts b/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts
index cf405d0fce9..e39c0f241d8 100644
--- a/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts
+++ b/packages/twenty-front/src/modules/views/utils/getViewSortsToCreate.ts
@@ -1,6 +1,6 @@
import { type CoreViewSortEssential } from '@/views/types/CoreViewSortEssential';
import { isDefined } from 'twenty-shared/utils';
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
export const getViewSortsToCreate = (
currentViewSorts: Pick<CoreViewSort, 'fieldMetadataId'>[],
diff --git a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
index dc112878731..32d37db27ea 100644
--- a/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapRecordSortToViewSort.ts
@@ -1,5 +1,5 @@
import { type RecordSort } from '@/object-record/record-sort/types/RecordSort';
-import { type CoreViewSort } from '~/generated/graphql';
+import { type CoreViewSort } from '~/generated-metadata/graphql';
export const mapRecordSortToViewSort = (
recordSort: RecordSort,
diff --git a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
index 41ed4bd7b2f..38a34d28437 100644
--- a/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
+++ b/packages/twenty-front/src/modules/views/utils/mapViewFiltersToFilters.ts
@@ -5,7 +5,7 @@ import { type FieldMetadataItem } from '@/object-metadata/types/FieldMetadataIte
import { isSystemSearchVectorField } from '@/object-record/utils/isSystemSearchVectorField';
import { type CompositeFieldSubFieldName } from '@/settings/data-model/types/CompositeFieldSubFieldName';
import { getFilterTypeFromFieldType, isDefined } from 'twenty-shared/utils';
-import { type CoreViewFilter } from '~/generated/graphql';
+import { type CoreViewFilter } from '~/generated-metadata/graphql';
import { type ViewFilter } from '@/views/types/ViewFilter';
export const mapViewFiltersToFilters = (
@@ -43,7 +43,7 @@ export const mapViewFiltersToFilters = (
? viewFilter.displayValue
: viewFilter.value,
operand,
- recordFilterGroupId: viewFilter.viewFilterGroupId,
+ recordFilterGroupId: viewFilter.viewFilterGroupId ?? undefined,
positionInRecordFilterGroup: viewFilter.positionInViewFilterGroup,
label,
type: filterType,
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
index 77fcab318e6..cc4baff298a 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerContentEffect.tsx
@@ -21,8 +21,10 @@ import { viewPickerTypeComponentState } from '@/views/view-picker/states/viewPic
import { viewPickerVisibilityComponentState } from '@/views/view-picker/states/viewPickerVisibilityComponentState';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
-import { ViewVisibility } from '~/generated-metadata/graphql';
-import { PermissionFlagType } from '~/generated/graphql';
+import {
+ ViewVisibility,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
export const ViewPickerContentEffect = () => {
const setViewPickerSelectedIcon = useSetRecoilComponentState(
diff --git a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx
index 0b6c5327399..c0bae306f16 100644
--- a/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx
+++ b/packages/twenty-front/src/modules/views/view-picker/components/ViewPickerOptionDropdown.tsx
@@ -22,8 +22,11 @@ import {
useIcons,
} from 'twenty-ui/display';
import { MenuItem } from 'twenty-ui/navigation';
-import { FeatureFlagKey, ViewVisibility } from '~/generated-metadata/graphql';
-import { PermissionFlagType } from '~/generated/graphql';
+import {
+ FeatureFlagKey,
+ ViewVisibility,
+ PermissionFlagType,
+} from '~/generated-metadata/graphql';
type ViewPickerOptionDropdownProps = {
isIndexView: boolean;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx
index 32ff76b5d9f..475f95cffb1 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowCard.tsx
@@ -6,7 +6,7 @@ import { WorkflowSSESubscribeEffect } from '@/workflow/workflow-diagram/componen
import { WorkflowVisualizerEffect } from '@/workflow/workflow-diagram/components/WorkflowVisualizerEffect';
import { WorkflowVisualizerComponentInstanceContext } from '@/workflow/workflow-diagram/states/contexts/WorkflowVisualizerComponentInstanceContext';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
export const WorkflowCard = () => {
const targetRecord = useTargetRecord();
diff --git a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx
index fb6a71ee85b..3702b692f50 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-diagram/components/WorkflowRunCard.tsx
@@ -13,7 +13,7 @@ import { useTheme } from '@emotion/react';
import styled from '@emotion/styled';
import { Suspense, useId } from 'react';
import Skeleton, { SkeletonTheme } from 'react-loading-skeleton';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
const StyledLoadingSkeletonContainer = styled.div`
display: flex;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx
index a18e7a0f5ec..51219ceec71 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/ai-agent-action/components/WorkflowAiAgentPermissionList.tsx
@@ -1,7 +1,7 @@
import { useFilteredObjectMetadataItems } from '@/object-metadata/hooks/useFilteredObjectMetadataItems';
import { type SettingsRoleObjectPermissionKey } from '@/settings/roles/role-permissions/objects-permissions/constants/SettingsRoleObjectPermissionIconConfig';
import { t } from '@lingui/core/macro';
-import { type ObjectPermission } from '~/generated/graphql';
+import { type ObjectPermission } from '~/generated-metadata/graphql';
import { filterBySearchQuery } from '~/utils/filterBySearchQuery';
import { CRUD_PERMISSIONS } from '@/workflow/workflow-steps/workflow-actions/ai-agent-action/constants/WorkflowAiAgentCrudPermissions';
import { WorkflowAiAgentPermissionsPermissionRow } from './WorkflowAiAgentPermissionsPermissionRow';
diff --git a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx
index 3fa00bba209..b47df036e0b 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx
+++ b/packages/twenty-front/src/modules/workflow/workflow-steps/workflow-actions/find-records-action/components/WorkflowFindRecordsSorts.tsx
@@ -7,7 +7,7 @@ import { useLingui } from '@lingui/react/macro';
import { IconArrowsSort, IconTrash, useIcons } from 'twenty-ui/display';
import { Button, type SelectOption } from 'twenty-ui/input';
import { v4 as uuidv4 } from 'uuid';
-import { ViewSortDirection } from '~/generated/graphql';
+import { ViewSortDirection } from '~/generated-metadata/graphql';
const StyledContainer = styled.div`
display: flex;
diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts
index 03171dbd11d..d87860529e4 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/__tests__/generateRecordEventOutputSchema.test.ts
@@ -1,7 +1,7 @@
import { type ObjectMetadataItem } from '@/object-metadata/types/ObjectMetadataItem';
import { generateRecordEventOutputSchema } from '@/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema';
import { FieldMetadataType, RelationType } from 'twenty-shared/types';
-import { DatabaseEventAction } from '~/generated/graphql';
+import { DatabaseEventAction } from '~/generated-metadata/graphql';
const createMockObjectMetadataItem = (
overrides: Partial<ObjectMetadataItem> = {},
diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts
index b6e2eef2e59..420adcde012 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/computeStepOutputSchema.ts
@@ -11,7 +11,7 @@ import { generateRecordEventOutputSchema } from '@/workflow/workflow-variables/u
import { generateRecordOutputSchema } from '@/workflow/workflow-variables/utils/generate/generateRecordOutputSchema';
import { FieldMetadataType } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
-import { DatabaseEventAction } from '~/generated/graphql';
+import { DatabaseEventAction } from '~/generated-metadata/graphql';
const PERSISTED_OUTPUT_SCHEMA_TYPES = [
'CODE',
diff --git a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts
index 1dd9d6e6468..8f207cb2709 100644
--- a/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts
+++ b/packages/twenty-front/src/modules/workflow/workflow-variables/utils/generate/generateRecordEventOutputSchema.ts
@@ -12,7 +12,7 @@ import {
RelationType,
} from 'twenty-shared/types';
import { capitalize, isDefined } from 'twenty-shared/utils';
-import { DatabaseEventAction } from '~/generated/graphql';
+import { DatabaseEventAction } from '~/generated-metadata/graphql';
const camelToTitleCase = (camelCaseText: string): string =>
capitalize(
diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx
index d467643ba46..85a35aad640 100644
--- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx
+++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useCreateWorkspaceInvitation.test.tsx
@@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta
const mutationSendInvitationsCallSpy = jest.fn();
jest.mock('~/generated-metadata/graphql', () => ({
+ ...jest.requireActual('~/generated-metadata/graphql'),
useSendInvitationsMutation: () => [mutationSendInvitationsCallSpy],
}));
diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx
index 11d10c29e9e..0ebdf0c3693 100644
--- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx
+++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useDeleteWorkspaceInvitation.test.tsx
@@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta
const mutationDeleteWorkspaceInvitationCallSpy = jest.fn();
jest.mock('~/generated-metadata/graphql', () => ({
+ ...jest.requireActual('~/generated-metadata/graphql'),
useDeleteWorkspaceInvitationMutation: () => [
mutationDeleteWorkspaceInvitationCallSpy,
],
diff --git a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx
index 677845952ea..ed64dd9b00f 100644
--- a/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx
+++ b/packages/twenty-front/src/modules/workspace-invitation/hooks/__tests__/useResendWorkspaceInvitation.test.tsx
@@ -5,6 +5,7 @@ import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMeta
const mutationResendWorspaceInvitationCallSpy = jest.fn();
jest.mock('~/generated-metadata/graphql', () => ({
+ ...jest.requireActual('~/generated-metadata/graphql'),
useResendWorkspaceInvitationMutation: () => [
mutationResendWorspaceInvitationCallSpy,
],
diff --git a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts
index 2bab8e4b33f..f868a0fc18d 100644
--- a/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts
+++ b/packages/twenty-front/src/modules/workspace-member/types/WorkspaceMember.ts
@@ -2,7 +2,7 @@ import {
type WorkspaceMemberDateFormatEnum,
type WorkspaceMemberNumberFormatEnum,
type WorkspaceMemberTimeFormatEnum,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export type ColorScheme = 'Dark' | 'Light' | 'System';
diff --git a/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx b/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx
index f730eb79af4..1dc9346f33f 100644
--- a/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx
+++ b/packages/twenty-front/src/modules/workspace/components/WorkspaceProviderEffect.tsx
@@ -10,7 +10,7 @@ import { useInitializeQueryParamState } from '@/app/hooks/useInitializeQueryPara
import { useGetPublicWorkspaceDataByDomain } from '@/domain-manager/hooks/useGetPublicWorkspaceDataByDomain';
import { useIsCurrentLocationOnDefaultDomain } from '@/domain-manager/hooks/useIsCurrentLocationOnDefaultDomain';
import { isDefined } from 'twenty-shared/utils';
-import { type WorkspaceUrls } from '~/generated/graphql';
+import { type WorkspaceUrls } from '~/generated-metadata/graphql';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
export const WorkspaceProviderEffect = () => {
diff --git a/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts b/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts
index f4cfb4a25a6..4d76277aee2 100644
--- a/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts
+++ b/packages/twenty-front/src/modules/workspace/hooks/__tests__/useSubscriptionStatus.test.ts
@@ -10,7 +10,7 @@ import { useSubscriptionStatus } from '@/workspace/hooks/useSubscriptionStatus';
import {
SubscriptionStatus,
WorkspaceActivationStatus,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
const currentWorkspace = {
id: '1',
diff --git a/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts b/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts
index d56d1ef6e09..038f5bc7ecd 100644
--- a/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts
+++ b/packages/twenty-front/src/modules/workspace/hooks/useFeatureFlagsMap.ts
@@ -1,7 +1,7 @@
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { extractFeatureFlagMapFromWorkspace } from '@/workspace/utils/extractFeatureFlagMapFromWorkspace';
import { useRecoilValue } from 'recoil';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
export const useFeatureFlagsMap = (): Record<FeatureFlagKey, boolean> => {
const currentWorkspace = useRecoilValue(currentWorkspaceState);
diff --git a/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts b/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts
index 2d1676d7867..7c38faf9504 100644
--- a/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts
+++ b/packages/twenty-front/src/modules/workspace/hooks/useIsFeatureEnabled.ts
@@ -1,7 +1,7 @@
import { useRecoilValue } from 'recoil';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import { type FeatureFlagKey } from '~/generated-metadata/graphql';
export const useIsFeatureEnabled = (featureKey: FeatureFlagKey | null) => {
const currentWorkspace = useRecoilValue(currentWorkspaceState);
diff --git a/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts b/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts
index 6141775aaa4..ad1016942af 100644
--- a/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts
+++ b/packages/twenty-front/src/modules/workspace/hooks/useSubscriptionStatus.ts
@@ -1,7 +1,7 @@
import { useRecoilValue } from 'recoil';
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
-import { type SubscriptionStatus } from '~/generated/graphql';
+import { type SubscriptionStatus } from '~/generated-metadata/graphql';
export const useSubscriptionStatus = (): SubscriptionStatus | undefined => {
const currentWorkspace = useRecoilValue(currentWorkspaceState);
diff --git a/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts b/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts
index acfa6a882fb..c0c5161d0b1 100644
--- a/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts
+++ b/packages/twenty-front/src/modules/workspace/states/workspaceAuthBypassProvidersState.ts
@@ -1,4 +1,4 @@
-import { type AuthBypassProviders } from '~/generated/graphql';
+import { type AuthBypassProviders } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const workspaceAuthBypassProvidersState =
diff --git a/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts b/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts
index f9b885cf9cd..15f1230523a 100644
--- a/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts
+++ b/packages/twenty-front/src/modules/workspace/states/workspaceAuthProvidersState.ts
@@ -1,4 +1,4 @@
-import { type AuthProviders } from '~/generated/graphql';
+import { type AuthProviders } from '~/generated-metadata/graphql';
import { createState } from 'twenty-ui/utilities';
export const workspaceAuthProvidersState = createState<AuthProviders | null>({
diff --git a/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts b/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts
index 8e2e31ec044..78d33f786a9 100644
--- a/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts
+++ b/packages/twenty-front/src/modules/workspace/utils/extractFeatureFlagMapFromWorkspace.ts
@@ -1,5 +1,5 @@
import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { buildRecordFromKeysWithSameValue } from '~/utils/array/buildRecordFromKeysWithSameValue';
export const extractFeatureFlagMapFromWorkspace = (
diff --git a/packages/twenty-front/src/pages/auth/SignInUp.tsx b/packages/twenty-front/src/pages/auth/SignInUp.tsx
index 5d2ee89e443..2a1a3ea1910 100644
--- a/packages/twenty-front/src/pages/auth/SignInUp.tsx
+++ b/packages/twenty-front/src/pages/auth/SignInUp.tsx
@@ -33,7 +33,7 @@ import { useSearchParams } from 'react-router-dom';
import { isDefined } from 'twenty-shared/utils';
import { Loader } from 'twenty-ui/feedback';
import { AnimatedEaseIn } from 'twenty-ui/utilities';
-import { type PublicWorkspaceDataOutput } from '~/generated/graphql';
+import { type PublicWorkspaceDataOutput } from '~/generated-metadata/graphql';
const StyledLoaderContainer = styled.div`
align-items: center;
diff --git a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx
index e80586defdf..e7959e2c854 100644
--- a/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx
+++ b/packages/twenty-front/src/pages/onboarding/SyncEmails.tsx
@@ -25,8 +25,8 @@ import { ClickToActionLink } from 'twenty-ui/navigation';
import {
CalendarChannelVisibility,
MessageChannelVisibility,
- useSkipSyncEmailOnboardingStepMutation,
-} from '~/generated-metadata/graphql';
+} from '~/generated/graphql';
+import { useSkipSyncEmailOnboardingStepMutation } from '~/generated-metadata/graphql';
import { lastAuthenticatedMethodState } from '@/auth/states/lastAuthenticatedMethodState';
import { AuthenticatedMethod } from '@/auth/types/AuthenticatedMethod.enum';
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx
index 08f79ceec41..a33f3a9db8d 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/ChooseYourPlan.stories.tsx
@@ -5,7 +5,7 @@ import { within } from 'storybook/test';
import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { ChooseYourPlan } from '~/pages/onboarding/ChooseYourPlan';
import {
PageDecorator,
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx
index cd755a05d83..eb8f5712a1a 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateProfile.stories.tsx
@@ -5,7 +5,7 @@ import { within } from 'storybook/test';
import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { CreateProfile } from '~/pages/onboarding/CreateProfile';
import {
PageDecorator,
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx
index 225f5505bc2..69973d9430f 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/CreateWorkspace.stories.tsx
@@ -5,7 +5,7 @@ import { within } from 'storybook/test';
import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { CreateWorkspace } from '~/pages/onboarding/CreateWorkspace';
import {
PageDecorator,
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx
index 0945ceadf2b..c05389e2957 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/InviteTeam.stories.tsx
@@ -4,7 +4,7 @@ import { HttpResponse, graphql } from 'msw';
import { within } from 'storybook/test';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { GET_CURRENT_USER } from '~/modules/users/graphql/queries/getCurrentUser';
import { InviteTeam } from '~/pages/onboarding/InviteTeam';
import {
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx
index 55173a27ac4..9da677a93a4 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/PaymentSuccess.stories.tsx
@@ -5,7 +5,7 @@ import { within } from 'storybook/test';
import { GET_CURRENT_USER } from '@/users/graphql/queries/getCurrentUser';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { PaymentSuccess } from '~/pages/onboarding/PaymentSuccess';
import {
PageDecorator,
diff --git a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx
index bbd9c79bc8f..b050b63bf57 100644
--- a/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx
+++ b/packages/twenty-front/src/pages/onboarding/__stories__/SyncEmails.stories.tsx
@@ -4,7 +4,7 @@ import { HttpResponse, graphql } from 'msw';
import { within } from 'storybook/test';
import { AppPath } from 'twenty-shared/types';
-import { OnboardingStatus } from '~/generated/graphql';
+import { OnboardingStatus } from '~/generated-metadata/graphql';
import { GET_CURRENT_USER } from '~/modules/users/graphql/queries/getCurrentUser';
import { SyncEmails } from '~/pages/onboarding/SyncEmails';
import {
diff --git a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx
index 08ff380534d..eaa32a6eb21 100644
--- a/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx
+++ b/packages/twenty-front/src/pages/onboarding/internal/ChooseYourPlanContent.tsx
@@ -22,8 +22,7 @@ import {
ClickToActionLink,
TWENTY_PRICING_LINK,
} from 'twenty-ui/navigation';
-import { BillingPlanKey } from '~/generated-metadata/graphql';
-import { type Billing } from '~/generated/graphql';
+import { BillingPlanKey, type Billing } from '~/generated-metadata/graphql';
const StyledSubscriptionContainer = styled.div<{
withLongerMarginBottom: boolean;
diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
index 3ee82745491..7b3204d5763 100644
--- a/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsAgentSettingsTab.tsx
@@ -16,7 +16,7 @@ import { isDefined } from 'twenty-shared/utils';
import { H2Title, IconTrash } from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
-import { type Agent } from '~/generated/graphql';
+import { type Agent } from '~/generated-metadata/graphql';
import { SettingsAgentDeleteConfirmationModal } from '~/pages/settings/ai/components/SettingsAgentDeleteConfirmationModal';
import { SettingsAgentResponseFormat } from '~/pages/settings/ai/components/SettingsAgentResponseFormat';
import { computeMetadataNameFromLabel } from '~/pages/settings/data-model/utils/computeMetadataNameFromLabel';
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
index 3848baff589..25625fe56f7 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplications.tsx
@@ -8,8 +8,10 @@ import { useLingui } from '@lingui/react/macro';
import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
import { IconApps, IconCode, IconDownload } from 'twenty-ui/display';
-import { useFindManyApplicationsQuery } from '~/generated-metadata/graphql';
-import { type FeatureFlagKey } from '~/generated/graphql';
+import {
+ type FeatureFlagKey,
+ useFindManyApplicationsQuery,
+} from '~/generated-metadata/graphql';
import { SettingsApplicationsTable } from '~/pages/settings/applications/components/SettingsApplicationsTable';
import { SettingsApplicationsAvailableTab } from '~/pages/settings/applications/tabs/SettingsApplicationsAvailableTab';
import { SettingsApplicationsCreateTab } from '~/pages/settings/applications/tabs/SettingsApplicationsCreateTab';
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
index 4a46ffbaddd..069a2feb5a9 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsAvailableApplicationDetails.tsx
@@ -26,7 +26,7 @@ import {
} from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
import { Section } from 'twenty-ui/layout';
-import { PermissionFlagType } from '~/generated/graphql';
+import { PermissionFlagType } from '~/generated-metadata/graphql';
import { useMarketplaceApps } from '~/pages/settings/applications/hooks/useMarketplaceApps';
const AVAILABLE_APPLICATION_DETAIL_ID = 'available-application-detail';
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
index ae75ca53944..e4f581b4cd0 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVersionContainer.tsx
@@ -3,7 +3,7 @@ import { SettingsAdminVersionDisplay } from '@/settings/admin-panel/components/S
import { t } from '@lingui/core/macro';
import { isDefined } from 'twenty-shared/utils';
import { IconCircleDot, IconStatusChange } from 'twenty-ui/display';
-import type { Application } from '~/generated/graphql';
+import type { Application } from '~/generated-metadata/graphql';
export const SettingsApplicationVersionContainer = ({
application,
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx
index 8d2bde8bc28..92f09658a0f 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailAboutTab.tsx
@@ -3,7 +3,6 @@ import { t } from '@lingui/core/macro';
import { isDefined } from 'twenty-shared/utils';
import { H2Title, IconTrash } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
-import type { Application } from '~/generated/graphql';
import { SettingsApplicationVersionContainer } from '~/pages/settings/applications/components/SettingsApplicationVersionContainer';
import { Button } from 'twenty-ui/input';
import { ConfirmationModal } from '@/ui/layout/modal/components/ConfirmationModal';
@@ -11,7 +10,10 @@ import { Trans } from '@lingui/react/macro';
import { SettingsPath } from 'twenty-shared/types';
import { useModal } from '@/ui/layout/modal/hooks/useModal';
import { useState } from 'react';
-import { useUninstallApplicationMutation } from '~/generated-metadata/graphql';
+import {
+ type Application,
+ useUninstallApplicationMutation,
+} from '~/generated-metadata/graphql';
import { useSnackBar } from '@/ui/feedback/snack-bar-manager/hooks/useSnackBar';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx
index 251fa722355..2644a9640e0 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailContentTab.tsx
@@ -5,7 +5,7 @@ import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-shared/utils';
import { H2Title } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
-import { type Application } from '~/generated/graphql';
+import { type Application } from '~/generated-metadata/graphql';
import { SettingsAIAgentsTable } from '~/pages/settings/ai/components/SettingsAIAgentsTable';
import { SettingsObjectTable } from '~/pages/settings/data-model/SettingsObjectTable';
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx
index ff58f883321..9d522b21315 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable.tsx
@@ -1,4 +1,4 @@
-import { type ApplicationVariable } from '~/generated/graphql';
+import { type ApplicationVariable } from '~/generated-metadata/graphql';
import { t } from '@lingui/core/macro';
import { H2Title } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx
index d31d38a38bc..8768b2b40f6 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailSettingsTab.tsx
@@ -1,5 +1,5 @@
import { isDefined } from 'twenty-shared/utils';
-import type { Application } from '~/generated/graphql';
+import type { Application } from '~/generated-metadata/graphql';
import { useUpdateOneApplicationVariable } from '~/pages/settings/applications/hooks/useUpdateOneApplicationVariable';
import { SettingsApplicationDetailEnvironmentVariablesTable } from '~/pages/settings/applications/tabs/SettingsApplicationDetailEnvironmentVariablesTable';
diff --git a/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts b/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts
index f76971bdbd0..a2615cf6995 100644
--- a/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts
+++ b/packages/twenty-front/src/pages/settings/applications/types/applicationWithoutRelation.ts
@@ -1,4 +1,4 @@
-import { type Application } from '~/generated/graphql';
+import { type Application } from '~/generated-metadata/graphql';
export type ApplicationWithoutRelation = Pick<
Application,
diff --git a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
index d3d250fec5a..9ecc0a839ab 100644
--- a/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
+++ b/packages/twenty-front/src/pages/settings/data-model/SettingsObjectDetailPage.tsx
@@ -29,7 +29,7 @@ import {
} from 'twenty-ui/display';
import { Button } from 'twenty-ui/input';
import { UndecoratedLink } from 'twenty-ui/navigation';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { useNavigateApp } from '~/hooks/useNavigateApp';
import { SETTINGS_OBJECT_DETAIL_TABS } from '~/pages/settings/data-model/constants/SettingsObjectDetailTabs';
import { updatedObjectNamePluralState } from '~/pages/settings/data-model/states/updatedObjectNamePluralState';
diff --git a/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx b/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx
index 7f795d7f8b8..3b45116bfb4 100644
--- a/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx
+++ b/packages/twenty-front/src/pages/settings/domains/SettingsDomains.tsx
@@ -12,7 +12,7 @@ import { SettingsPath } from 'twenty-shared/types';
import { getSettingsPath } from 'twenty-shared/utils';
import { H2Title } from 'twenty-ui/display';
import { Section } from 'twenty-ui/layout';
-import { FeatureFlagKey } from '~/generated/graphql';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
import { SettingsEmailingDomains } from '~/pages/settings/emailing-domains/SettingsEmailingDomains';
const StyledMainContent = styled.div`
diff --git a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts
index c149dd89edb..ba3c07c3651 100644
--- a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts
+++ b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusColor.ts
@@ -1,4 +1,4 @@
-import { EmailingDomainStatus } from '~/generated/graphql';
+import { EmailingDomainStatus } from '~/generated-metadata/graphql';
export const getColorByEmailingDomainStatus = (
status: EmailingDomainStatus,
diff --git a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts
index ab539f678f8..8907a905d69 100644
--- a/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts
+++ b/packages/twenty-front/src/pages/settings/emailing-domains/utils/getEmailingDomainStatusText.ts
@@ -1,5 +1,5 @@
import { t } from '@lingui/core/macro';
-import { EmailingDomainStatus } from '~/generated/graphql';
+import { EmailingDomainStatus } from '~/generated-metadata/graphql';
export const getTextByEmailingDomainStatus = (status: EmailingDomainStatus) => {
switch (status) {
diff --git a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
index 6ec9f6ce004..0a428617e37 100644
--- a/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
+++ b/packages/twenty-front/src/pages/settings/members/SettingsWorkspaceMember.tsx
@@ -29,10 +29,10 @@ import { MemberPermissionsTab } from '@/settings/members/components/MemberPermis
import { useWorkspaceMemberRoles } from '@/settings/members/hooks/useWorkspaceMemberRoles';
import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember';
import {
+ PermissionFlagType,
useDeleteUserWorkspaceMutation,
useImpersonateMutation,
} from '~/generated-metadata/graphql';
-import { PermissionFlagType } from '~/generated/graphql';
const SETTINGS_WORKSPACE_MEMBER_TABS = {
COMPONENT_INSTANCE_ID: 'settings-workspace-member-tabs',
diff --git a/packages/twenty-front/src/testing/mock-data/config.ts b/packages/twenty-front/src/testing/mock-data/config.ts
index e76a02aba5f..0672401277d 100644
--- a/packages/twenty-front/src/testing/mock-data/config.ts
+++ b/packages/twenty-front/src/testing/mock-data/config.ts
@@ -1,5 +1,5 @@
import { type ClientConfig } from '@/client-config/types/ClientConfig';
-import { CaptchaDriverType, SupportDriver } from '~/generated/graphql';
+import { CaptchaDriverType, SupportDriver } from '~/generated-metadata/graphql';
export const mockedClientConfig: ClientConfig = {
aiModels: [],
diff --git a/packages/twenty-front/src/testing/mock-data/roles.ts b/packages/twenty-front/src/testing/mock-data/roles.ts
index 6b2dfceb7b1..75739e638d5 100644
--- a/packages/twenty-front/src/testing/mock-data/roles.ts
+++ b/packages/twenty-front/src/testing/mock-data/roles.ts
@@ -1,4 +1,4 @@
-import { PermissionFlagType, type Role } from '~/generated/graphql';
+import { PermissionFlagType, type Role } from '~/generated-metadata/graphql';
import { mockWorkspaceMembers } from '~/testing/mock-data/workspace-members';
const rolesMock: Role[] = [
diff --git a/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts b/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts
index 42c383dec4e..4c8237e51e2 100644
--- a/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts
+++ b/packages/twenty-front/src/testing/mock-data/roles/roles-mock.ts
@@ -3,7 +3,7 @@ import {
type FieldPermission,
type ObjectPermission,
type Role,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { getJestMetadataAndApolloMocksWrapper } from '~/testing/jest/getJestMetadataAndApolloMocksWrapper';
export const MOCK_ROLE_ID_GRANTS_ALL = 'role-id-1';
diff --git a/packages/twenty-front/src/testing/mock-data/users.ts b/packages/twenty-front/src/testing/mock-data/users.ts
index 41326c52e23..feaee59b31d 100644
--- a/packages/twenty-front/src/testing/mock-data/users.ts
+++ b/packages/twenty-front/src/testing/mock-data/users.ts
@@ -13,7 +13,7 @@ import {
WorkspaceActivationStatus,
WorkspaceMemberDateFormatEnum,
WorkspaceMemberTimeFormatEnum,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
import { mockBillingPlans } from '~/testing/mock-data/billing-plans';
import { generatedMockObjectMetadataItems } from '~/testing/utils/generatedMockObjectMetadataItems';
diff --git a/packages/twenty-front/src/testing/mock-data/widget-configurations.ts b/packages/twenty-front/src/testing/mock-data/widget-configurations.ts
index 996b98c8417..68fd09e627d 100644
--- a/packages/twenty-front/src/testing/mock-data/widget-configurations.ts
+++ b/packages/twenty-front/src/testing/mock-data/widget-configurations.ts
@@ -15,7 +15,7 @@ import {
type WidgetConfiguration,
WidgetConfigurationType,
WidgetType,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const TEST_FIELD_METADATA_ID_1 = '20202020-1111-4111-a111-111111111111';
export const TEST_FIELD_METADATA_ID_2 = '20202020-2222-4222-a222-222222222222';
diff --git a/packages/twenty-front/src/testing/mock-data/workspace-members.ts b/packages/twenty-front/src/testing/mock-data/workspace-members.ts
index e9c35d39fa5..3da5c1243af 100644
--- a/packages/twenty-front/src/testing/mock-data/workspace-members.ts
+++ b/packages/twenty-front/src/testing/mock-data/workspace-members.ts
@@ -3,7 +3,7 @@ import { type WorkspaceMember } from '@/workspace-member/types/WorkspaceMember';
import {
WorkspaceMemberDateFormatEnum,
WorkspaceMemberTimeFormatEnum,
-} from '~/generated/graphql';
+} from '~/generated-metadata/graphql';
export const mockWorkspaceMembers: WorkspaceMember[] = [
{
diff --git a/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts b/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts
index 935be988c0c..c29e9eb3375 100644
--- a/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts
+++ b/packages/twenty-front/src/utils/__tests__/getWorkspaceUrl.test.ts
@@ -1,4 +1,4 @@
-import { type WorkspaceUrls } from '~/generated/graphql';
+import { type WorkspaceUrls } from '~/generated-metadata/graphql';
import { getWorkspaceUrl } from '~/utils/getWorkspaceUrl';
describe('getWorkspaceUrl', () => {
diff --git a/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts b/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts
index 203ca8b4fbd..5335578c18c 100644
--- a/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts
+++ b/packages/twenty-front/src/utils/dates/formatZonedDateTimeDatePart.ts
@@ -1,6 +1,6 @@
import { detectDateFormat } from '@/localization/utils/detection/detectDateFormat';
import { type Temporal } from 'temporal-polyfill';
-import { WorkspaceMemberDateFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberDateFormatEnum } from '~/generated-metadata/graphql';
export const formatZonedDateTimeDatePart = (
zonedDateTime: Temporal.ZonedDateTime,
diff --git a/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts b/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts
index df444e98172..d6ba01a7e44 100644
--- a/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts
+++ b/packages/twenty-front/src/utils/dates/formatZonedDateTimeTimePart.ts
@@ -1,6 +1,6 @@
import { detectTimeFormat } from '@/localization/utils/detection/detectTimeFormat';
import { type Temporal } from 'temporal-polyfill';
-import { WorkspaceMemberTimeFormatEnum } from '~/generated/graphql';
+import { WorkspaceMemberTimeFormatEnum } from '~/generated-metadata/graphql';
export const formatZonedDateTimeTimePart = (
zonedDateTime: Temporal.ZonedDateTime,
diff --git a/packages/twenty-front/src/utils/getWorkspaceUrl.ts b/packages/twenty-front/src/utils/getWorkspaceUrl.ts
index db4c9461b4f..f6ea50b73ba 100644
--- a/packages/twenty-front/src/utils/getWorkspaceUrl.ts
+++ b/packages/twenty-front/src/utils/getWorkspaceUrl.ts
@@ -1,4 +1,4 @@
-import { type WorkspaceUrls } from '~/generated/graphql';
+import { type WorkspaceUrls } from '~/generated-metadata/graphql';
export const getWorkspaceUrl = (workspaceUrls: WorkspaceUrls) => {
return workspaceUrls.customUrl ?? workspaceUrls.subdomainUrl;
diff --git a/packages/twenty-front/src/utils/sort.ts b/packages/twenty-front/src/utils/sort.ts
index c09f245f2aa..efa36ddf2b7 100644
--- a/packages/twenty-front/src/utils/sort.ts
+++ b/packages/twenty-front/src/utils/sort.ts
@@ -1,6 +1,6 @@
import { isNonEmptyString } from '@sniptt/guards';
-import { type Maybe } from '~/generated/graphql';
+import { type Maybe } from '~/generated-metadata/graphql';
export const sortNullsFirst = (
fieldValueA: Maybe<unknown>,
diff --git a/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch b/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch
index a5709204db4..6f60f64be07 100644
--- a/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch
+++ b/packages/twenty-server/patches/@nestjs+graphql+12.1.1.patch
@@ -1,5 +1,5 @@
diff --git a/dist/interfaces/gql-module-options.interface.d.ts b/dist/interfaces/gql-module-options.interface.d.ts
-index 1234567..abcdefg 100644
+index 72bab49dcc2b411408c75adf64c3f250cdeaa195..068dc04966e3f7ac7c7093f9ed8f29f24337cebc 100644
--- a/dist/interfaces/gql-module-options.interface.d.ts
+++ b/dist/interfaces/gql-module-options.interface.d.ts
@@ -97,6 +97,10 @@ export interface GqlModuleOptions<TDriver extends GraphQLDriver = any> {
@@ -14,26 +14,178 @@ index 1234567..abcdefg 100644
export interface GqlOptionsFactory<T extends Record<string, any> = GqlModuleOptions> {
createGqlOptions(): Promise<Omit<T, 'driver'>> | Omit<T, 'driver'>;
diff --git a/dist/schema-builder/graphql-schema.factory.js b/dist/schema-builder/graphql-schema.factory.js
-index f349a6e..425815c 100644
+index f349a6e8ea629f8784143b2596e9e95b3255d348..790b062233936dcb336bc615887870d5e7a24de8 100644
--- a/dist/schema-builder/graphql-schema.factory.js
+++ b/dist/schema-builder/graphql-schema.factory.js
-@@ -32,6 +32,7 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory {
+@@ -16,6 +16,7 @@ const subscription_type_factory_1 = require("./factories/subscription-type.facto
+ const lazy_metadata_storage_1 = require("./storages/lazy-metadata.storage");
+ const type_metadata_storage_1 = require("./storages/type-metadata.storage");
+ const type_definitions_generator_1 = require("./type-definitions.generator");
++const get_interfaces_array_util_1 = require("./utils/get-interfaces-array.util");
+ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory {
+ constructor(queryTypeFactory, mutationTypeFactory, subscriptionTypeFactory, orphanedTypesFactory, typeDefinitionsGenerator) {
+ this.queryTypeFactory = queryTypeFactory;
+@@ -32,9 +33,14 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory {
else {
options = scalarsOrOptions;
}
+ this.typeDefinitionsGenerator.clearTypeDefinitionStorage();
++ this.orphanedTypesFactory.orphanedReferenceRegistry.clear();
lazy_metadata_storage_1.LazyMetadataStorage.load(resolvers);
type_metadata_storage_1.TypeMetadataStorage.compile(options.orphanedTypes);
- this.typeDefinitionsGenerator.generate(options);
+- this.typeDefinitionsGenerator.generate(options);
++ const reachableTypes = Array.isArray(resolvers)
++ ? this.computeReachableTypes(resolvers, options.orphanedTypes)
++ : undefined;
++ this.typeDefinitionsGenerator.generate(options, reachableTypes);
+ const schema = new graphql_1.GraphQLSchema({
+ mutation: this.mutationTypeFactory.create(resolvers, options),
+ query: this.queryTypeFactory.create(resolvers, options),
+@@ -68,6 +74,116 @@ let GraphQLSchemaFactory = GraphQLSchemaFactory_1 = class GraphQLSchemaFactory {
+ .forEach((classRef) => this.addScalarTypeByClassRef(classRef, scalarsMap));
+ options.scalarsMap = scalarsMap;
+ }
++ computeReachableTypes(resolverClasses, orphanedTypes) {
++ const SCALAR_TYPES = [String, Number, Boolean, Date];
++ const reachableTypes = new Set();
++ const pendingTypes = [];
++ const resolveTypeFn = (typeFn) => {
++ try { return typeFn === null || typeFn === void 0 ? void 0 : typeFn(); } catch (_) { return undefined; }
++ };
++ const markTypeForVisit = (typeReference) => {
++ if (!typeReference || reachableTypes.has(typeReference)) {
++ return;
++ }
++ if (typeof typeReference === 'function' && !SCALAR_TYPES.includes(typeReference)) {
++ pendingTypes.push(typeReference);
++ return;
++ }
++ // Symbols are union type identifiers from createUnionType()
++ if (typeof typeReference === 'symbol') {
++ reachableTypes.add(typeReference);
++ for (const unionMetadata of type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata()) {
++ if (unionMetadata.id === typeReference) {
++ for (const memberType of resolveTypeFn(unionMetadata.typesFn) || []) {
++ markTypeForVisit(memberType);
++ }
++ }
++ }
++ }
++ };
++ const getTypeMetadataByTarget = (target) => [
++ type_metadata_storage_1.TypeMetadataStorage.getObjectTypeMetadataByTarget(target),
++ type_metadata_storage_1.TypeMetadataStorage.getInputTypeMetadataByTarget(target),
++ type_metadata_storage_1.TypeMetadataStorage.getInterfaceMetadataByTarget(target),
++ type_metadata_storage_1.TypeMetadataStorage.getArgumentsMetadataByTarget(target),
++ ].filter(Boolean);
++ // Seed from resolver query/mutation/subscription handlers
++ const resolverHandlers = [
++ ...type_metadata_storage_1.TypeMetadataStorage.getQueriesMetadata(),
++ ...type_metadata_storage_1.TypeMetadataStorage.getMutationsMetadata(),
++ ...type_metadata_storage_1.TypeMetadataStorage.getSubscriptionsMetadata(),
++ ].filter((handler) => resolverClasses.includes(handler.target));
++ for (const handler of resolverHandlers) {
++ markTypeForVisit(resolveTypeFn(handler.typeFn));
++ for (const argument of handler.methodArgs || []) {
++ markTypeForVisit(resolveTypeFn(argument.typeFn));
++ }
++ }
++ for (const orphanedType of orphanedTypes || []) {
++ markTypeForVisit(orphanedType);
++ }
++ // Walk all fields, arguments, and interfaces from each pending type
++ const visitAllPendingTypes = () => {
++ while (pendingTypes.length > 0) {
++ const currentType = pendingTypes.shift();
++ if (reachableTypes.has(currentType)) {
++ continue;
++ }
++ reachableTypes.add(currentType);
++ // Walk prototype chain to catch inherited metadata
++ // (e.g. PartialType / OmitType dynamic parents)
++ let ancestor = currentType;
++ while (ancestor && ancestor !== Function.prototype && ancestor !== Object) {
++ for (const typeMetadata of getTypeMetadataByTarget(ancestor)) {
++ for (const property of typeMetadata.properties || []) {
++ markTypeForVisit(resolveTypeFn(property.typeFn));
++ for (const argument of property.methodArgs || []) {
++ markTypeForVisit(resolveTypeFn(argument.typeFn));
++ }
++ }
++ for (const interfaceType of (0, get_interfaces_array_util_1.getInterfacesArray)(typeMetadata.interfaces)) {
++ markTypeForVisit(interfaceType);
++ }
++ }
++ ancestor = Object.getPrototypeOf(ancestor);
++ // Ancestors with registered metadata must also be in the
++ // reachable set for field resolution to work
++ if (ancestor && ancestor !== Function.prototype && ancestor !== Object
++ && typeof ancestor === 'function' && !SCALAR_TYPES.includes(ancestor)
++ && !reachableTypes.has(ancestor) && getTypeMetadataByTarget(ancestor).length > 0) {
++ reachableTypes.add(ancestor);
++ }
++ }
++ }
++ };
++ // Pass 1: follow field references from resolver return types and arguments
++ visitAllPendingTypes();
++ // Pass 2: include types that implement a reachable interface
++ // (interfaces don't have back-pointers to their implementors)
++ for (const objectTypeMetadata of type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata()) {
++ if ((0, get_interfaces_array_util_1.getInterfacesArray)(objectTypeMetadata.interfaces)
++ .some((interfaceType) => reachableTypes.has(interfaceType))) {
++ markTypeForVisit(objectTypeMetadata.target);
++ }
++ }
++ visitAllPendingTypes();
++ // Pass 3: include entire unions when any member is reachable
++ // (union membership is stored on the union, not on the member types)
++ for (const unionMetadata of type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata()) {
++ if (reachableTypes.has(unionMetadata.id)) {
++ continue;
++ }
++ const memberTypes = resolveTypeFn(unionMetadata.typesFn) || [];
++ if (memberTypes.some((memberType) => reachableTypes.has(memberType))) {
++ reachableTypes.add(unionMetadata.id);
++ for (const memberType of memberTypes) {
++ markTypeForVisit(memberType);
++ }
++ }
++ }
++ visitAllPendingTypes();
++ return reachableTypes;
++ }
+ addScalarTypeByClassRef(classRef, scalarsMap) {
+ try {
+ const scalarNameMetadata = Reflect.getMetadata(graphql_constants_1.SCALAR_NAME_METADATA, classRef);
+diff --git a/dist/schema-builder/services/orphaned-reference.registry.js b/dist/schema-builder/services/orphaned-reference.registry.js
+index f63bf917164e05b6a363d40e871303863800c4f3..101c67ee876a8c9758a3ed35fdb8b656a7a873ba 100644
+--- a/dist/schema-builder/services/orphaned-reference.registry.js
++++ b/dist/schema-builder/services/orphaned-reference.registry.js
+@@ -21,6 +21,9 @@ let OrphanedReferenceRegistry = class OrphanedReferenceRegistry {
+ getAll() {
+ return [...this.registry.values()];
+ }
++ clear() {
++ this.registry.clear();
++ }
+ };
+ exports.OrphanedReferenceRegistry = OrphanedReferenceRegistry;
+ exports.OrphanedReferenceRegistry = OrphanedReferenceRegistry = tslib_1.__decorate([
diff --git a/dist/schema-builder/storages/type-definitions.storage.js b/dist/schema-builder/storages/type-definitions.storage.js
-index a19dee7..466ee86 100644
+index a19dee7a15b355a83124479f7e5e6cb91795070d..d28bdc8f03b4e77db93396ff28fb47d8176f0c21 100644
--- a/dist/schema-builder/storages/type-definitions.storage.js
+++ b/dist/schema-builder/storages/type-definitions.storage.js
-@@ -81,6 +81,10 @@ let TypeDefinitionsStorage = class TypeDefinitionsStorage {
+@@ -81,6 +81,15 @@ let TypeDefinitionsStorage = class TypeDefinitionsStorage {
}
return;
}
+ clear() {
++ // Only invalidate the lazy link caches, NOT the type Maps.
++ // The Maps accumulate types from all schema builds. This is
++ // needed because resolveType closures from earlier schemas
++ // look up types in objectTypeDefinitions at query time.
++ // The add* methods use Map.set() so duplicates are overwritten.
+ this.inputTypeDefinitionsLinks = null;
+ this.outputTypeDefinitionsLinks = null;
+ }
@@ -41,26 +193,96 @@ index a19dee7..466ee86 100644
exports.TypeDefinitionsStorage = TypeDefinitionsStorage;
exports.TypeDefinitionsStorage = TypeDefinitionsStorage = tslib_1.__decorate([
diff --git a/dist/schema-builder/type-definitions.generator.js b/dist/schema-builder/type-definitions.generator.js
-index d5423f1..701a3b2 100644
+index d5423f1603ea2dbe32f70778cb715de648960cf3..47c80de38dc9045b1ee043dd6f74bb22a66d3b4a 100644
--- a/dist/schema-builder/type-definitions.generator.js
+++ b/dist/schema-builder/type-definitions.generator.js
-@@ -26,6 +26,9 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator {
- this.generateObjectTypeDefs(options);
- this.generateInputTypeDefs(options);
+@@ -19,25 +19,37 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator {
+ this.interfaceDefinitionFactory = interfaceDefinitionFactory;
+ this.unionDefinitionFactory = unionDefinitionFactory;
+ }
+- generate(options) {
+- this.generateUnionDefs();
++ generate(options, reachableTypes) {
++ this.generateUnionDefs(reachableTypes);
+ this.generateEnumDefs();
+- this.generateInterfaceDefs(options);
+- this.generateObjectTypeDefs(options);
+- this.generateInputTypeDefs(options);
++ this.generateInterfaceDefs(options, reachableTypes);
++ this.generateObjectTypeDefs(options, reachableTypes);
++ this.generateInputTypeDefs(options, reachableTypes);
}
+- generateInputTypeDefs(options) {
+- const metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata();
+ clearTypeDefinitionStorage() {
+ this.typeDefinitionsStorage.clear();
+ }
- generateInputTypeDefs(options) {
- const metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata();
++ generateInputTypeDefs(options, reachableTypes) {
++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getInputTypesMetadata();
++ if (reachableTypes) {
++ metadata = metadata.filter((inputMetadata) => reachableTypes.has(inputMetadata.target));
++ }
const inputTypeDefs = metadata.map((metadata) => this.inputTypeDefinitionFactory.create(metadata, options));
+ this.typeDefinitionsStorage.addInputTypes(inputTypeDefs);
+ }
+- generateObjectTypeDefs(options) {
+- const metadata = type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata();
++ generateObjectTypeDefs(options, reachableTypes) {
++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getObjectTypesMetadata();
++ if (reachableTypes) {
++ metadata = metadata.filter((objectMetadata) => reachableTypes.has(objectMetadata.target));
++ }
+ const objectTypeDefs = metadata.map((metadata) => this.objectTypeDefinitionFactory.create(metadata, options));
+ this.typeDefinitionsStorage.addObjectTypes(objectTypeDefs);
+ }
+- generateInterfaceDefs(options) {
+- const metadata = type_metadata_storage_1.TypeMetadataStorage.getInterfacesMetadata();
++ generateInterfaceDefs(options, reachableTypes) {
++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getInterfacesMetadata();
++ if (reachableTypes) {
++ metadata = metadata.filter((interfaceMetadata) => reachableTypes.has(interfaceMetadata.target));
++ }
+ const interfaceDefs = metadata.map((metadata) => this.interfaceDefinitionFactory.create(metadata, options));
+ this.typeDefinitionsStorage.addInterfaces(interfaceDefs);
+ }
+@@ -46,8 +58,22 @@ let TypeDefinitionsGenerator = class TypeDefinitionsGenerator {
+ const enumDefs = metadata.map((metadata) => this.enumDefinitionFactory.create(metadata));
+ this.typeDefinitionsStorage.addEnums(enumDefs);
+ }
+- generateUnionDefs() {
+- const metadata = type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata();
++ generateUnionDefs(reachableTypes) {
++ let metadata = type_metadata_storage_1.TypeMetadataStorage.getUnionsMetadata();
++ if (reachableTypes) {
++ metadata = metadata.filter((unionMetadata) => {
++ if (reachableTypes.has(unionMetadata.id)) {
++ return true;
++ }
++ try {
++ const memberTypes = unionMetadata.typesFn();
++ return memberTypes.some((memberType) => reachableTypes.has(memberType));
++ }
++ catch (_) {
++ return true;
++ }
++ });
++ }
+ const unionDefs = metadata.map((metadata) => this.unionDefinitionFactory.create(metadata));
+ this.typeDefinitionsStorage.addUnions(unionDefs);
+ }
diff --git a/dist/services/resolvers-explorer.service.js b/dist/services/resolvers-explorer.service.js
-index 1234567..abcdefg 100644
+index 1cc43269cd0c4fbe446789b38970118f0c1856c7..3eeb77fcd3c78a134896faa3424209abc47b971a 100644
--- a/dist/services/resolvers-explorer.service.js
+++ b/dist/services/resolvers-explorer.service.js
-@@ -43,6 +43,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo
- filterResolvers(gqlAdapter, wrapper, moduleRef) {
- const { instance } = wrapper;
+@@ -21,6 +21,7 @@ const graphql_constants_1 = require("../graphql.constants");
+ const decorate_field_resolver_util_1 = require("../utils/decorate-field-resolver.util");
+ const extract_metadata_util_1 = require("../utils/extract-metadata.util");
+ const base_explorer_service_1 = require("./base-explorer.service");
++const RESOLVER_SCHEMA_SCOPE_KEY = 'RESOLVER_SCHEMA_SCOPE';
+ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplorerService extends base_explorer_service_1.BaseExplorerService {
+ constructor(modulesContainer, metadataScanner, externalContextCreator, gqlOptions, moduleRef, serializedGraph) {
+ super();
+@@ -45,6 +46,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo
if (!instance) {
return undefined;
}
@@ -68,25 +290,27 @@ index 1234567..abcdefg 100644
+ if (resolverSchemaScope && wrapper.metatype) {
+ // Default to 'metadata' for unscoped resolvers (e.g. nestjs-query auto-generated CRUD)
+ // TODO: remove this fallback once nestjs-query is deprecated
-+ const scope = Reflect.getMetadata('RESOLVER_SCHEMA_SCOPE', wrapper.metatype) || 'metadata';
-+ if (scope !== resolverSchemaScope) {
++ const resolverScope = Reflect.getMetadata(RESOLVER_SCHEMA_SCOPE_KEY, wrapper.metatype) || 'metadata';
++ if (resolverScope !== resolverSchemaScope) {
+ return undefined;
+ }
+ }
const prototype = Object.getPrototypeOf(instance);
-@@ -147,5 +154,14 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo
+ const predicate = (resolverType, isReferenceResolver, isPropertyResolver) => (0, shared_utils_1.isUndefined)(resolverType) ||
+ (!isReferenceResolver &&
+@@ -147,6 +157,15 @@ let ResolversExplorerService = ResolversExplorerService_1 = class ResolversExplo
getAllCtors() {
const modules = this.getModules(this.modulesContainer, this.gqlOptions.include || []);
const resolvers = this.flatMap(modules, this.mapToCtor).filter(Boolean);
-- return resolvers;
+ const resolverSchemaScope = this.gqlOptions.resolverSchemaScope;
+ if (resolverSchemaScope) {
-+ return resolvers.filter((ctor) => {
++ return resolvers.filter((resolverConstructor) => {
+ // Default to 'metadata' for unscoped resolvers (e.g. nestjs-query auto-generated CRUD)
+ // TODO: remove this fallback once nestjs-query is deprecated
-+ const scope = Reflect.getMetadata('RESOLVER_SCHEMA_SCOPE', ctor) || 'metadata';
-+ return scope === resolverSchemaScope;
++ const resolverScope = Reflect.getMetadata(RESOLVER_SCHEMA_SCOPE_KEY, resolverConstructor) || 'metadata';
++ return resolverScope === resolverSchemaScope;
+ });
+ }
-+ return resolvers;
+ return resolvers;
}
+ mapToCtor(wrapper) {
diff --git a/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts b/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts
index b5824bd6ab1..cab0e94c6f8 100644
--- a/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts
+++ b/packages/twenty-server/src/engine/api/graphql/metadata.module-factory.ts
@@ -5,6 +5,7 @@ import { NodeEnvironment } from 'src/engine/core-modules/twenty-config/interface
import { useCachedMetadata } from 'src/engine/api/graphql/graphql-config/hooks/use-cached-metadata';
import { MetadataGraphQLApiModule } from 'src/engine/api/graphql/metadata-graphql-api.module';
+import { ClientConfig } from 'src/engine/core-modules/client-config/client-config.entity';
import { type CacheStorageService } from 'src/engine/core-modules/cache-storage/services/cache-storage.service';
import { type ExceptionHandlerService } from 'src/engine/core-modules/exception-handler/exception-handler.service';
import { useDisableIntrospectionAndSuggestionsForUnauthenticatedUsers } from 'src/engine/core-modules/graphql/hooks/use-disable-introspection-and-suggestions-for-unauthenticated-users.hook';
@@ -28,6 +29,9 @@ export const metadataModuleFactory = async (
autoSchemaFile: true,
include: [MetadataGraphQLApiModule],
resolverSchemaScope: 'metadata',
+ buildSchemaOptions: {
+ orphanedTypes: [ClientConfig],
+ },
renderGraphiQL() {
return renderApolloPlayground({ path: 'metadata' });
},
diff --git a/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts b/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts
index a59dbc9e806..27a2bb1d64a 100644
--- a/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts
+++ b/packages/twenty-server/test/integration/graphql/suites/user.integration-spec.ts
@@ -104,7 +104,6 @@ describe('deleteUser', () => {
workspaceMember(filter: $workspaceMemberFilter) {
id
userId
- userWorkspaceId
}
}
`,
diff --git a/yarn.lock b/yarn.lock
index 73046067e90..7ba741196ac 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -11353,7 +11353,7 @@ __metadata:
"@nestjs/graphql@patch:@nestjs/[email protected]#./patches/@nestjs+graphql+12.1.1.patch::locator=twenty-server%40workspace%3Apackages%2Ftwenty-server":
version: 12.1.1
- resolution: "@nestjs/graphql@patch:@nestjs/graphql@npm%3A12.1.1#./patches/@nestjs+graphql+12.1.1.patch::version=12.1.1&hash=234fda&locator=twenty-server%40workspace%3Apackages%2Ftwenty-server"
+ resolution: "@nestjs/graphql@patch:@nestjs/graphql@npm%3A12.1.1#./patches/@nestjs+graphql+12.1.1.patch::version=12.1.1&hash=c6f13a&locator=twenty-server%40workspace%3Apackages%2Ftwenty-server"
dependencies:
"@graphql-tools/merge": "npm:9.0.1"
"@graphql-tools/schema": "npm:10.0.2"
@@ -11387,7 +11387,7 @@ __metadata:
optional: true
ts-morph:
optional: true
- checksum: 10c0/f17193b0e2a324a1de74813d66eb3473d359f7779b30cf92b9ed5a3f9fb557612306a3ebbbe8f48481a3e95930785207a1b51bf0fdb698c8b83a608112380af9
+ checksum: 10c0/807541d7f7d8a3261787c04bd9456ad1a3198645b967ad68371406f5038ec5e5f3dd26912a914cce25465b828e7d1b037558c79461adb93efbc78382424444c2
languageName: node
linkType: hard