Skip to content

The open alternative to Salesforce, designed for AI.

[COMMAND MENU ITEMS] Create union type for command menu item payload (#19432)

Raphaël Bosid07c27a907bf
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 8c45bad397b..5f3263c1088 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -2575,7 +2575,7 @@ type CommandMenuItem {
position: Float!
isPinned: Boolean!
availabilityType: CommandMenuItemAvailabilityType!
- payload: JSON
+ payload: CommandMenuItemPayload
hotKeys: [String!]
conditionalAvailabilityExpression: String
availabilityObjectMetadataId: UUID
@@ -2659,6 +2659,16 @@ enum CommandMenuItemAvailabilityType {
FALLBACK
}
+union CommandMenuItemPayload = PathCommandMenuItemPayload | ObjectMetadataCommandMenuItemPayload
+
+type PathCommandMenuItemPayload {
+ path: String!
+}
+
+type ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId: UUID!
+}
+
type ToolIndexEntry {
name: String!
description: String!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 848eb61e81f..c69b6cf55be 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -2286,7 +2286,7 @@ export interface CommandMenuItem {
position: Scalars['Float']
isPinned: Scalars['Boolean']
availabilityType: CommandMenuItemAvailabilityType
- payload?: Scalars['JSON']
+ payload?: CommandMenuItemPayload
hotKeys?: Scalars['String'][]
conditionalAvailabilityExpression?: Scalars['String']
availabilityObjectMetadataId?: Scalars['UUID']
@@ -2300,6 +2300,18 @@ export type EngineComponentKey = 'NAVIGATE_TO_NEXT_RECORD' | 'NAVIGATE_TO_PREVIO
export type CommandMenuItemAvailabilityType = 'GLOBAL' | 'RECORD_SELECTION' | 'FALLBACK'
+export type CommandMenuItemPayload = (PathCommandMenuItemPayload | ObjectMetadataCommandMenuItemPayload) & { __isUnion?: true }
+
+export interface PathCommandMenuItemPayload {
+ path: Scalars['String']
+ __typename: 'PathCommandMenuItemPayload'
+}
+
+export interface ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId: Scalars['UUID']
+ __typename: 'ObjectMetadataCommandMenuItemPayload'
+}
+
export interface ToolIndexEntry {
name: Scalars['String']
description: Scalars['String']
@@ -5486,7 +5498,7 @@ export interface CommandMenuItemGenqlSelection{
position?: boolean | number
isPinned?: boolean | number
availabilityType?: boolean | number
- payload?: boolean | number
+ payload?: CommandMenuItemPayloadGenqlSelection
hotKeys?: boolean | number
conditionalAvailabilityExpression?: boolean | number
availabilityObjectMetadataId?: boolean | number
@@ -5497,6 +5509,24 @@ export interface CommandMenuItemGenqlSelection{
__scalar?: boolean | number
}
+export interface CommandMenuItemPayloadGenqlSelection{
+ on_PathCommandMenuItemPayload?:PathCommandMenuItemPayloadGenqlSelection,
+ on_ObjectMetadataCommandMenuItemPayload?:ObjectMetadataCommandMenuItemPayloadGenqlSelection,
+ __typename?: boolean | number
+}
+
+export interface PathCommandMenuItemPayloadGenqlSelection{
+ path?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
+export interface ObjectMetadataCommandMenuItemPayloadGenqlSelection{
+ objectMetadataItemId?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface ToolIndexEntryGenqlSelection{
name?: boolean | number
description?: boolean | number
@@ -8429,6 +8459,30 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null
+ const CommandMenuItemPayload_possibleTypes: string[] = ['PathCommandMenuItemPayload','ObjectMetadataCommandMenuItemPayload']
+ export const isCommandMenuItemPayload = (obj?: { __typename?: any } | null): obj is CommandMenuItemPayload => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isCommandMenuItemPayload"')
+ return CommandMenuItemPayload_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const PathCommandMenuItemPayload_possibleTypes: string[] = ['PathCommandMenuItemPayload']
+ export const isPathCommandMenuItemPayload = (obj?: { __typename?: any } | null): obj is PathCommandMenuItemPayload => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isPathCommandMenuItemPayload"')
+ return PathCommandMenuItemPayload_possibleTypes.includes(obj.__typename)
+ }
+
+
+
+ const ObjectMetadataCommandMenuItemPayload_possibleTypes: string[] = ['ObjectMetadataCommandMenuItemPayload']
+ export const isObjectMetadataCommandMenuItemPayload = (obj?: { __typename?: any } | null): obj is ObjectMetadataCommandMenuItemPayload => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isObjectMetadataCommandMenuItemPayload"')
+ return ObjectMetadataCommandMenuItemPayload_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const ToolIndexEntry_possibleTypes: string[] = ['ToolIndexEntry']
export const isToolIndexEntry = (obj?: { __typename?: any } | null): obj is ToolIndexEntry => {
if (!obj?.__typename) throw new Error('__typename is missing in "isToolIndexEntry"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 485a4eddc42..93b4f2b1d23 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -67,30 +67,30 @@ export default {
286,
296,
297,
- 327,
- 328,
- 329,
330,
+ 331,
332,
333,
- 334,
335,
336,
337,
338,
+ 339,
340,
- 342,
- 350,
- 356,
- 357,
- 358,
+ 341,
+ 343,
+ 345,
+ 353,
+ 359,
360,
- 367,
- 374,
- 405,
- 485,
- 490,
- 491
+ 361,
+ 363,
+ 370,
+ 377,
+ 408,
+ 488,
+ 493,
+ 494
],
"types": {
"BillingProductDTO": {
@@ -5160,7 +5160,7 @@ export default {
297
],
"payload": [
- 15
+ 298
],
"hotKeys": [
1
@@ -5186,6 +5186,33 @@ export default {
},
"EngineComponentKey": {},
"CommandMenuItemAvailabilityType": {},
+ "CommandMenuItemPayload": {
+ "on_PathCommandMenuItemPayload": [
+ 299
+ ],
+ "on_ObjectMetadataCommandMenuItemPayload": [
+ 300
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "PathCommandMenuItemPayload": {
+ "path": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "ObjectMetadataCommandMenuItemPayload": {
+ "objectMetadataItemId": [
+ 3
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"ToolIndexEntry": {
"name": [
1
@@ -5322,7 +5349,7 @@ export default {
1
],
"series": [
- 301
+ 304
],
"xAxisLabel": [
1
@@ -5371,7 +5398,7 @@ export default {
1
],
"data": [
- 303
+ 306
],
"__typename": [
1
@@ -5379,7 +5406,7 @@ export default {
},
"LineChartData": {
"series": [
- 304
+ 307
],
"xAxisLabel": [
1
@@ -5416,7 +5443,7 @@ export default {
},
"PieChartData": {
"data": [
- 306
+ 309
],
"showLegend": [
6
@@ -5551,13 +5578,13 @@ export default {
},
"EventLogQueryResult": {
"records": [
- 311
+ 314
],
"totalCount": [
21
],
"pageInfo": [
- 312
+ 315
],
"__typename": [
1
@@ -5656,7 +5683,7 @@ export default {
1
],
"parts": [
- 299
+ 302
],
"processedAt": [
4
@@ -5684,7 +5711,7 @@ export default {
},
"AISystemPromptPreview": {
"sections": [
- 317
+ 320
],
"estimatedTokenCount": [
21
@@ -5731,7 +5758,7 @@ export default {
},
"AgentChatThreadEdge": {
"node": [
- 315
+ 318
],
"cursor": [
40
@@ -5745,7 +5772,7 @@ export default {
235
],
"edges": [
- 322
+ 325
],
"__typename": [
1
@@ -5782,10 +5809,10 @@ export default {
3
],
"evaluations": [
- 324
+ 327
],
"messages": [
- 316
+ 319
],
"createdAt": [
4
@@ -5802,19 +5829,19 @@ export default {
1
],
"syncStatus": [
- 327
+ 330
],
"syncStage": [
- 328
+ 331
],
"visibility": [
- 329
+ 332
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 330
+ 333
],
"isSyncEnabled": [
6
@@ -5850,22 +5877,22 @@ export default {
3
],
"visibility": [
- 332
+ 335
],
"handle": [
1
],
"type": [
- 333
+ 336
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 334
+ 337
],
"messageFolderImportPolicy": [
- 335
+ 338
],
"excludeNonProfessionalEmails": [
6
@@ -5874,7 +5901,7 @@ export default {
6
],
"pendingGroupEmailsAction": [
- 336
+ 339
],
"isSyncEnabled": [
6
@@ -5883,10 +5910,10 @@ export default {
4
],
"syncStatus": [
- 337
+ 340
],
"syncStage": [
- 338
+ 341
],
"syncStageStartedAt": [
4
@@ -5937,7 +5964,7 @@ export default {
1
],
"pendingSyncAction": [
- 340
+ 343
],
"messageChannelId": [
3
@@ -5955,7 +5982,7 @@ export default {
"MessageFolderPendingSyncAction": {},
"CollectionHash": {
"collectionName": [
- 342
+ 345
],
"hash": [
1
@@ -6022,13 +6049,13 @@ export default {
},
"MinimalMetadata": {
"objectMetadataItems": [
- 343
+ 346
],
"views": [
- 344
+ 347
],
"collectionHashes": [
- 341
+ 344
],
"__typename": [
1
@@ -6194,7 +6221,7 @@ export default {
2,
{
"input": [
- 348,
+ 351,
"GetApiKeyInput!"
]
}
@@ -6298,7 +6325,7 @@ export default {
32,
{
"input": [
- 349,
+ 352,
"LogicFunctionIdInput!"
]
}
@@ -6310,7 +6337,7 @@ export default {
15,
{
"input": [
- 349,
+ 352,
"LogicFunctionIdInput!"
]
}
@@ -6319,7 +6346,7 @@ export default {
1,
{
"input": [
- 349,
+ 352,
"LogicFunctionIdInput!"
]
}
@@ -6402,7 +6429,7 @@ export default {
25,
{
"input": [
- 351,
+ 354,
"AgentIdInput!"
]
}
@@ -6411,7 +6438,7 @@ export default {
29
],
"getToolIndex": [
- 298
+ 301
],
"getToolInputSchema": [
15,
@@ -6462,7 +6489,7 @@ export default {
}
],
"myMessageFolders": [
- 339,
+ 342,
{
"messageChannelId": [
3
@@ -6470,7 +6497,7 @@ export default {
}
],
"myMessageChannels": [
- 331,
+ 334,
{
"connectedAccountId": [
3
@@ -6478,13 +6505,13 @@ export default {
}
],
"myConnectedAccounts": [
- 309
+ 312
],
"connectedAccounts": [
- 309
+ 312
],
"myCalendarChannels": [
- 326,
+ 329,
{
"connectedAccountId": [
3
@@ -6492,10 +6519,10 @@ export default {
}
],
"webhooks": [
- 346
+ 349
],
"webhook": [
- 346,
+ 349,
{
"id": [
3,
@@ -6504,10 +6531,10 @@ export default {
}
],
"minimalMetadata": [
- 345
+ 348
],
"chatThread": [
- 315,
+ 318,
{
"id": [
3,
@@ -6516,7 +6543,7 @@ export default {
}
],
"chatMessages": [
- 316,
+ 319,
{
"threadId": [
3,
@@ -6525,7 +6552,7 @@ export default {
}
],
"chatStreamCatchupChunks": [
- 319,
+ 322,
{
"threadId": [
3,
@@ -6534,13 +6561,13 @@ export default {
}
],
"getAISystemPromptPreview": [
- 318
+ 321
],
"skills": [
- 314
+ 317
],
"skill": [
- 314,
+ 317,
{
"id": [
3,
@@ -6549,24 +6576,24 @@ export default {
}
],
"chatThreads": [
- 323,
+ 326,
{
"paging": [
39,
"CursorPaging!"
],
"filter": [
- 352,
+ 355,
"AgentChatThreadFilter!"
],
"sorting": [
- 355,
+ 358,
"[AgentChatThreadSort!]!"
]
}
],
"agentTurns": [
- 325,
+ 328,
{
"agentId": [
3,
@@ -6575,37 +6602,37 @@ export default {
}
],
"eventLogs": [
- 313,
+ 316,
{
"input": [
- 359,
+ 362,
"EventLogQueryInput!"
]
}
],
"pieChartData": [
- 307,
+ 310,
{
"input": [
- 363,
+ 366,
"PieChartDataInput!"
]
}
],
"lineChartData": [
- 305,
+ 308,
{
"input": [
- 364,
+ 367,
"LineChartDataInput!"
]
}
],
"barChartData": [
- 302,
+ 305,
{
"input": [
- 365,
+ 368,
"BarChartDataInput!"
]
}
@@ -6861,7 +6888,7 @@ export default {
276,
{
"input": [
- 366
+ 369
]
}
],
@@ -6914,7 +6941,7 @@ export default {
},
"LogicFunctionIdInput": {
"id": [
- 350
+ 353
],
"__typename": [
1
@@ -6931,16 +6958,16 @@ export default {
},
"AgentChatThreadFilter": {
"and": [
- 352
+ 355
],
"or": [
- 352
+ 355
],
"id": [
42
],
"updatedAt": [
- 353
+ 356
],
"__typename": [
1
@@ -6978,10 +7005,10 @@ export default {
4
],
"between": [
- 354
+ 357
],
"notBetween": [
- 354
+ 357
],
"__typename": [
1
@@ -7000,13 +7027,13 @@ export default {
},
"AgentChatThreadSort": {
"field": [
- 356
+ 359
],
"direction": [
- 357
+ 360
],
"nulls": [
- 358
+ 361
],
"__typename": [
1
@@ -7017,10 +7044,10 @@ export default {
"SortNulls": {},
"EventLogQueryInput": {
"table": [
- 360
+ 363
],
"filters": [
- 361
+ 364
],
"first": [
21
@@ -7041,7 +7068,7 @@ export default {
1
],
"dateRange": [
- 362
+ 365
],
"recordId": [
1
@@ -7108,7 +7135,7 @@ export default {
1
],
"operationTypes": [
- 367
+ 370
],
"__typename": [
1
@@ -7120,7 +7147,7 @@ export default {
6,
{
"input": [
- 369,
+ 372,
"AddQuerySubscriptionInput!"
]
}
@@ -7129,7 +7156,7 @@ export default {
6,
{
"input": [
- 370,
+ 373,
"RemoveQueryFromEventStreamInput!"
]
}
@@ -7138,7 +7165,7 @@ export default {
146,
{
"inputs": [
- 371,
+ 374,
"[CreateNavigationMenuItemInput!]!"
]
}
@@ -7147,7 +7174,7 @@ export default {
146,
{
"input": [
- 371,
+ 374,
"CreateNavigationMenuItemInput!"
]
}
@@ -7156,7 +7183,7 @@ export default {
146,
{
"inputs": [
- 372,
+ 375,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -7165,7 +7192,7 @@ export default {
146,
{
"input": [
- 372,
+ 375,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -7192,7 +7219,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
]
}
@@ -7201,7 +7228,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
]
}
@@ -7210,7 +7237,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
]
}
@@ -7219,7 +7246,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
]
}
@@ -7228,7 +7255,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
],
"fieldMetadataId": [
@@ -7241,7 +7268,7 @@ export default {
142,
{
"file": [
- 374,
+ 377,
"Upload!"
],
"fieldMetadataUniversalIdentifier": [
@@ -7254,7 +7281,7 @@ export default {
52,
{
"input": [
- 375,
+ 378,
"CreateViewFilterGroupInput!"
]
}
@@ -7267,7 +7294,7 @@ export default {
"String!"
],
"input": [
- 376,
+ 379,
"UpdateViewFilterGroupInput!"
]
}
@@ -7294,7 +7321,7 @@ export default {
54,
{
"input": [
- 377,
+ 380,
"CreateViewFilterInput!"
]
}
@@ -7303,7 +7330,7 @@ export default {
54,
{
"input": [
- 378,
+ 381,
"UpdateViewFilterInput!"
]
}
@@ -7312,7 +7339,7 @@ export default {
54,
{
"input": [
- 380,
+ 383,
"DeleteViewFilterInput!"
]
}
@@ -7321,7 +7348,7 @@ export default {
54,
{
"input": [
- 381,
+ 384,
"DestroyViewFilterInput!"
]
}
@@ -7330,7 +7357,7 @@ export default {
60,
{
"input": [
- 382,
+ 385,
"CreateViewInput!"
]
}
@@ -7343,7 +7370,7 @@ export default {
"String!"
],
"input": [
- 383,
+ 386,
"UpdateViewInput!"
]
}
@@ -7370,7 +7397,7 @@ export default {
57,
{
"input": [
- 384,
+ 387,
"CreateViewSortInput!"
]
}
@@ -7379,7 +7406,7 @@ export default {
57,
{
"input": [
- 385,
+ 388,
"UpdateViewSortInput!"
]
}
@@ -7388,7 +7415,7 @@ export default {
6,
{
"input": [
- 387,
+ 390,
"DeleteViewSortInput!"
]
}
@@ -7397,7 +7424,7 @@ export default {
6,
{
"input": [
- 388,
+ 391,
"DestroyViewSortInput!"
]
}
@@ -7406,7 +7433,7 @@ export default {
50,
{
"input": [
- 389,
+ 392,
"UpdateViewFieldInput!"
]
}
@@ -7415,7 +7442,7 @@ export default {
50,
{
"input": [
- 391,
+ 394,
"CreateViewFieldInput!"
]
}
@@ -7424,7 +7451,7 @@ export default {
50,
{
"inputs": [
- 391,
+ 394,
"[CreateViewFieldInput!]!"
]
}
@@ -7433,7 +7460,7 @@ export default {
50,
{
"input": [
- 392,
+ 395,
"DeleteViewFieldInput!"
]
}
@@ -7442,7 +7469,7 @@ export default {
50,
{
"input": [
- 393,
+ 396,
"DestroyViewFieldInput!"
]
}
@@ -7451,7 +7478,7 @@ export default {
59,
{
"input": [
- 394,
+ 397,
"UpdateViewFieldGroupInput!"
]
}
@@ -7460,7 +7487,7 @@ export default {
59,
{
"input": [
- 396,
+ 399,
"CreateViewFieldGroupInput!"
]
}
@@ -7469,7 +7496,7 @@ export default {
59,
{
"inputs": [
- 396,
+ 399,
"[CreateViewFieldGroupInput!]!"
]
}
@@ -7478,7 +7505,7 @@ export default {
59,
{
"input": [
- 397,
+ 400,
"DeleteViewFieldGroupInput!"
]
}
@@ -7487,7 +7514,7 @@ export default {
59,
{
"input": [
- 398,
+ 401,
"DestroyViewFieldGroupInput!"
]
}
@@ -7496,7 +7523,7 @@ export default {
60,
{
"input": [
- 399,
+ 402,
"UpsertFieldsWidgetInput!"
]
}
@@ -7505,7 +7532,7 @@ export default {
2,
{
"input": [
- 402,
+ 405,
"CreateApiKeyInput!"
]
}
@@ -7514,7 +7541,7 @@ export default {
2,
{
"input": [
- 403,
+ 406,
"UpdateApiKeyInput!"
]
}
@@ -7523,7 +7550,7 @@ export default {
2,
{
"input": [
- 404,
+ 407,
"RevokeApiKeyInput!"
]
}
@@ -7565,7 +7592,7 @@ export default {
116,
{
"type": [
- 405,
+ 408,
"AnalyticsType!"
],
"name": [
@@ -7678,7 +7705,7 @@ export default {
141,
{
"input": [
- 406,
+ 409,
"CreateApprovedAccessDomainInput!"
]
}
@@ -7687,7 +7714,7 @@ export default {
6,
{
"input": [
- 407,
+ 410,
"DeleteApprovedAccessDomainInput!"
]
}
@@ -7696,7 +7723,7 @@ export default {
141,
{
"input": [
- 408,
+ 411,
"ValidateApprovedAccessDomainInput!"
]
}
@@ -7705,7 +7732,7 @@ export default {
113,
{
"input": [
- 409,
+ 412,
"CreatePageLayoutTabInput!"
]
}
@@ -7718,7 +7745,7 @@ export default {
"String!"
],
"input": [
- 410,
+ 413,
"UpdatePageLayoutTabInput!"
]
}
@@ -7736,7 +7763,7 @@ export default {
114,
{
"input": [
- 411,
+ 414,
"CreatePageLayoutInput!"
]
}
@@ -7749,7 +7776,7 @@ export default {
"String!"
],
"input": [
- 412,
+ 415,
"UpdatePageLayoutInput!"
]
}
@@ -7771,7 +7798,7 @@ export default {
"String!"
],
"input": [
- 413,
+ 416,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -7789,7 +7816,7 @@ export default {
75,
{
"input": [
- 417,
+ 420,
"CreatePageLayoutWidgetInput!"
]
}
@@ -7802,7 +7829,7 @@ export default {
"String!"
],
"input": [
- 418,
+ 421,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -7820,7 +7847,7 @@ export default {
32,
{
"input": [
- 349,
+ 352,
"LogicFunctionIdInput!"
]
}
@@ -7829,7 +7856,7 @@ export default {
32,
{
"input": [
- 419,
+ 422,
"CreateLogicFunctionFromSourceInput!"
]
}
@@ -7838,7 +7865,7 @@ export default {
155,
{
"input": [
- 420,
+ 423,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7847,7 +7874,7 @@ export default {
6,
{
"input": [
- 421,
+ 424,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -7856,7 +7883,7 @@ export default {
295,
{
"input": [
- 423,
+ 426,
"CreateCommandMenuItemInput!"
]
}
@@ -7865,7 +7892,7 @@ export default {
295,
{
"input": [
- 424,
+ 427,
"UpdateCommandMenuItemInput!"
]
}
@@ -7883,7 +7910,7 @@ export default {
252,
{
"input": [
- 425,
+ 428,
"CreateFrontComponentInput!"
]
}
@@ -7892,7 +7919,7 @@ export default {
252,
{
"input": [
- 426,
+ 429,
"UpdateFrontComponentInput!"
]
}
@@ -7910,7 +7937,7 @@ export default {
46,
{
"input": [
- 428,
+ 431,
"CreateOneObjectInput!"
]
}
@@ -7919,7 +7946,7 @@ export default {
46,
{
"input": [
- 430,
+ 433,
"DeleteOneObjectInput!"
]
}
@@ -7928,7 +7955,7 @@ export default {
46,
{
"input": [
- 431,
+ 434,
"UpdateOneObjectInput!"
]
}
@@ -7937,7 +7964,7 @@ export default {
25,
{
"input": [
- 433,
+ 436,
"CreateAgentInput!"
]
}
@@ -7946,7 +7973,7 @@ export default {
25,
{
"input": [
- 434,
+ 437,
"UpdateAgentInput!"
]
}
@@ -7955,7 +7982,7 @@ export default {
25,
{
"input": [
- 351,
+ 354,
"AgentIdInput!"
]
}
@@ -7977,7 +8004,7 @@ export default {
29,
{
"createRoleInput": [
- 435,
+ 438,
"CreateRoleInput!"
]
}
@@ -7986,7 +8013,7 @@ export default {
29,
{
"updateRoleInput": [
- 436,
+ 439,
"UpdateRoleInput!"
]
}
@@ -8004,7 +8031,7 @@ export default {
16,
{
"upsertObjectPermissionsInput": [
- 438,
+ 441,
"UpsertObjectPermissionsInput!"
]
}
@@ -8013,7 +8040,7 @@ export default {
27,
{
"upsertPermissionFlagsInput": [
- 440,
+ 443,
"UpsertPermissionFlagsInput!"
]
}
@@ -8022,7 +8049,7 @@ export default {
26,
{
"upsertFieldPermissionsInput": [
- 441,
+ 444,
"UpsertFieldPermissionsInput!"
]
}
@@ -8031,7 +8058,7 @@ export default {
246,
{
"input": [
- 443,
+ 446,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
@@ -8062,7 +8089,7 @@ export default {
34,
{
"input": [
- 446,
+ 449,
"CreateOneFieldMetadataInput!"
]
}
@@ -8071,7 +8098,7 @@ export default {
34,
{
"input": [
- 448,
+ 451,
"UpdateOneFieldMetadataInput!"
]
}
@@ -8080,7 +8107,7 @@ export default {
34,
{
"input": [
- 450,
+ 453,
"DeleteOneFieldInput!"
]
}
@@ -8089,7 +8116,7 @@ export default {
56,
{
"input": [
- 451,
+ 454,
"CreateViewGroupInput!"
]
}
@@ -8098,7 +8125,7 @@ export default {
56,
{
"inputs": [
- 451,
+ 454,
"[CreateViewGroupInput!]!"
]
}
@@ -8107,7 +8134,7 @@ export default {
56,
{
"input": [
- 452,
+ 455,
"UpdateViewGroupInput!"
]
}
@@ -8116,7 +8143,7 @@ export default {
56,
{
"inputs": [
- 452,
+ 455,
"[UpdateViewGroupInput!]!"
]
}
@@ -8125,7 +8152,7 @@ export default {
56,
{
"input": [
- 454,
+ 457,
"DeleteViewGroupInput!"
]
}
@@ -8134,40 +8161,40 @@ export default {
56,
{
"input": [
- 455,
+ 458,
"DestroyViewGroupInput!"
]
}
],
"updateMessageFolder": [
- 339,
+ 342,
{
"input": [
- 456,
+ 459,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 339,
+ 342,
{
"input": [
- 458,
+ 461,
"UpdateMessageFoldersInput!"
]
}
],
"updateMessageChannel": [
- 331,
+ 334,
{
"input": [
- 459,
+ 462,
"UpdateMessageChannelInput!"
]
}
],
"deleteConnectedAccount": [
- 309,
+ 312,
{
"id": [
3,
@@ -8176,34 +8203,34 @@ export default {
}
],
"updateCalendarChannel": [
- 326,
+ 329,
{
"input": [
- 461,
+ 464,
"UpdateCalendarChannelInput!"
]
}
],
"createWebhook": [
- 346,
+ 349,
{
"input": [
- 463,
+ 466,
"CreateWebhookInput!"
]
}
],
"updateWebhook": [
- 346,
+ 349,
{
"input": [
- 464,
+ 467,
"UpdateWebhookInput!"
]
}
],
"deleteWebhook": [
- 346,
+ 349,
{
"id": [
3,
@@ -8212,10 +8239,10 @@ export default {
}
],
"createChatThread": [
- 315
+ 318
],
"sendChatMessage": [
- 320,
+ 323,
{
"threadId": [
3,
@@ -8256,25 +8283,25 @@ export default {
}
],
"createSkill": [
- 314,
+ 317,
{
"input": [
- 466,
+ 469,
"CreateSkillInput!"
]
}
],
"updateSkill": [
- 314,
+ 317,
{
"input": [
- 467,
+ 470,
"UpdateSkillInput!"
]
}
],
"deleteSkill": [
- 314,
+ 317,
{
"id": [
3,
@@ -8283,7 +8310,7 @@ export default {
}
],
"activateSkill": [
- 314,
+ 317,
{
"id": [
3,
@@ -8292,7 +8319,7 @@ export default {
}
],
"deactivateSkill": [
- 314,
+ 317,
{
"id": [
3,
@@ -8301,7 +8328,7 @@ export default {
}
],
"evaluateAgentTurn": [
- 324,
+ 327,
{
"turnId": [
3,
@@ -8310,7 +8337,7 @@ export default {
}
],
"runEvaluationInput": [
- 325,
+ 328,
{
"agentId": [
3,
@@ -8323,7 +8350,7 @@ export default {
}
],
"duplicateDashboard": [
- 308,
+ 311,
{
"id": [
3,
@@ -8335,7 +8362,7 @@ export default {
261,
{
"input": [
- 468,
+ 471,
"GetAuthorizationUrlForSSOInput!"
]
}
@@ -8589,7 +8616,7 @@ export default {
217,
{
"input": [
- 469,
+ 472,
"CreateApplicationRegistrationInput!"
]
}
@@ -8598,7 +8625,7 @@ export default {
7,
{
"input": [
- 470,
+ 473,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8625,7 +8652,7 @@ export default {
5,
{
"input": [
- 472,
+ 475,
"CreateApplicationRegistrationVariableInput!"
]
}
@@ -8634,7 +8661,7 @@ export default {
5,
{
"input": [
- 473,
+ 476,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8652,7 +8679,7 @@ export default {
7,
{
"file": [
- 374,
+ 377,
"Upload!"
],
"universalIdentifier": [
@@ -8748,7 +8775,7 @@ export default {
66,
{
"data": [
- 475,
+ 478,
"ActivateWorkspaceInput!"
]
}
@@ -8757,7 +8784,7 @@ export default {
66,
{
"data": [
- 476,
+ 479,
"UpdateWorkspaceInput!"
]
}
@@ -8772,7 +8799,7 @@ export default {
225,
{
"input": [
- 477,
+ 480,
"SetupOIDCSsoInput!"
]
}
@@ -8781,7 +8808,7 @@ export default {
225,
{
"input": [
- 478,
+ 481,
"SetupSAMLSsoInput!"
]
}
@@ -8790,7 +8817,7 @@ export default {
221,
{
"input": [
- 479,
+ 482,
"DeleteSsoInput!"
]
}
@@ -8799,7 +8826,7 @@ export default {
222,
{
"input": [
- 480,
+ 483,
"EditSsoInput!"
]
}
@@ -8818,16 +8845,16 @@ export default {
}
],
"sendEmail": [
- 310,
+ 313,
{
"input": [
- 481,
+ 484,
"SendEmailInput!"
]
}
],
"startChannelSync": [
- 300,
+ 303,
{
"connectedAccountId": [
3,
@@ -8847,7 +8874,7 @@ export default {
"String!"
],
"connectionParameters": [
- 482,
+ 485,
"EmailAccountConnectionParameters!"
],
"id": [
@@ -8859,7 +8886,7 @@ export default {
200,
{
"input": [
- 484,
+ 487,
"UpdateLabPublicFeatureFlagInput!"
]
}
@@ -8920,7 +8947,7 @@ export default {
6,
{
"role": [
- 485,
+ 488,
"AiModelRole!"
],
"modelId": [
@@ -9125,7 +9152,7 @@ export default {
68,
{
"input": [
- 486,
+ 489,
"CreateOneAppTokenInput!"
]
}
@@ -9161,7 +9188,7 @@ export default {
6,
{
"workspaceMigration": [
- 488,
+ 491,
"WorkspaceMigrationInput!"
]
}
@@ -9227,7 +9254,7 @@ export default {
279,
{
"file": [
- 374,
+ 377,
"Upload!"
],
"applicationUniversalIdentifier": [
@@ -9235,7 +9262,7 @@ export default {
"String!"
],
"fileFolder": [
- 491,
+ 494,
"FileFolder!"
],
"filePath": [
@@ -9341,7 +9368,7 @@ export default {
3
],
"update": [
- 373
+ 376
],
"__typename": [
1
@@ -9445,7 +9472,7 @@ export default {
3
],
"update": [
- 379
+ 382
],
"__typename": [
1
@@ -9618,7 +9645,7 @@ export default {
3
],
"update": [
- 386
+ 389
],
"__typename": [
1
@@ -9653,7 +9680,7 @@ export default {
3
],
"update": [
- 390
+ 393
],
"__typename": [
1
@@ -9729,7 +9756,7 @@ export default {
3
],
"update": [
- 395
+ 398
],
"__typename": [
1
@@ -9793,10 +9820,10 @@ export default {
3
],
"groups": [
- 400
+ 403
],
"fields": [
- 401
+ 404
],
"__typename": [
1
@@ -9816,7 +9843,7 @@ export default {
6
],
"fields": [
- 401
+ 404
],
"__typename": [
1
@@ -9985,7 +10012,7 @@ export default {
3
],
"tabs": [
- 414
+ 417
],
"__typename": [
1
@@ -10008,7 +10035,7 @@ export default {
79
],
"widgets": [
- 415
+ 418
],
"__typename": [
1
@@ -10031,7 +10058,7 @@ export default {
3
],
"gridPosition": [
- 416
+ 419
],
"position": [
15
@@ -10077,7 +10104,7 @@ export default {
3
],
"gridPosition": [
- 416
+ 419
],
"position": [
15
@@ -10100,7 +10127,7 @@ export default {
3
],
"gridPosition": [
- 416
+ 419
],
"position": [
15
@@ -10169,7 +10196,7 @@ export default {
3
],
"update": [
- 422
+ 425
],
"__typename": [
1
@@ -10323,7 +10350,7 @@ export default {
3
],
"update": [
- 427
+ 430
],
"__typename": [
1
@@ -10342,7 +10369,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 429
+ 432
],
"__typename": [
1
@@ -10402,7 +10429,7 @@ export default {
},
"UpdateOneObjectInput": {
"update": [
- 432
+ 435
],
"id": [
3
@@ -10574,7 +10601,7 @@ export default {
},
"UpdateRoleInput": {
"update": [
- 437
+ 440
],
"id": [
3
@@ -10629,7 +10656,7 @@ export default {
3
],
"objectPermissions": [
- 439
+ 442
],
"__typename": [
1
@@ -10671,7 +10698,7 @@ export default {
3
],
"fieldPermissions": [
- 442
+ 445
],
"__typename": [
1
@@ -10702,10 +10729,10 @@ export default {
3
],
"predicates": [
- 444
+ 447
],
"predicateGroups": [
- 445
+ 448
],
"__typename": [
1
@@ -10765,7 +10792,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 447
+ 450
],
"__typename": [
1
@@ -10838,7 +10865,7 @@ export default {
3
],
"update": [
- 449
+ 452
],
"__typename": [
1
@@ -10930,7 +10957,7 @@ export default {
3
],
"update": [
- 453
+ 456
],
"__typename": [
1
@@ -10974,7 +11001,7 @@ export default {
3
],
"update": [
- 457
+ 460
],
"__typename": [
1
@@ -10993,7 +11020,7 @@ export default {
3
],
"update": [
- 457
+ 460
],
"__typename": [
1
@@ -11004,7 +11031,7 @@ export default {
3
],
"update": [
- 460
+ 463
],
"__typename": [
1
@@ -11012,16 +11039,16 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"visibility": [
- 332
+ 335
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 334
+ 337
],
"messageFolderImportPolicy": [
- 335
+ 338
],
"isSyncEnabled": [
6
@@ -11041,7 +11068,7 @@ export default {
3
],
"update": [
- 462
+ 465
],
"__typename": [
1
@@ -11049,13 +11076,13 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"visibility": [
- 329
+ 332
],
"isContactAutoCreationEnabled": [
6
],
"contactAutoCreationPolicy": [
- 330
+ 333
],
"isSyncEnabled": [
6
@@ -11089,7 +11116,7 @@ export default {
3
],
"update": [
- 465
+ 468
],
"__typename": [
1
@@ -11194,7 +11221,7 @@ export default {
1
],
"update": [
- 471
+ 474
],
"__typename": [
1
@@ -11242,7 +11269,7 @@ export default {
1
],
"update": [
- 474
+ 477
],
"__typename": [
1
@@ -11428,13 +11455,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"IMAP": [
- 483
+ 486
],
"SMTP": [
- 483
+ 486
],
"CALDAV": [
- 483
+ 486
],
"__typename": [
1
@@ -11474,7 +11501,7 @@ export default {
"AiModelRole": {},
"CreateOneAppTokenInput": {
"appToken": [
- 487
+ 490
],
"__typename": [
1
@@ -11490,7 +11517,7 @@ export default {
},
"WorkspaceMigrationInput": {
"actions": [
- 489
+ 492
],
"__typename": [
1
@@ -11498,10 +11525,10 @@ export default {
},
"WorkspaceMigrationDeleteActionInput": {
"type": [
- 490
+ 493
],
"metadataName": [
- 342
+ 345
],
"universalIdentifier": [
1
@@ -11526,13 +11553,13 @@ export default {
253,
{
"input": [
- 493,
+ 496,
"LogicFunctionLogsInput!"
]
}
],
"onAgentChatEvent": [
- 321,
+ 324,
{
"threadId": [
3,
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 77a5f8df80a..509b14b3703 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -942,7 +942,7 @@ export type CommandMenuItem = {
id: Scalars['UUID'];
isPinned: Scalars['Boolean'];
label: Scalars['String'];
- payload?: Maybe<Scalars['JSON']>;
+ payload?: Maybe<CommandMenuItemPayload>;
position: Scalars['Float'];
shortLabel?: Maybe<Scalars['String']>;
updatedAt: Scalars['DateTime'];
@@ -955,6 +955,8 @@ export enum CommandMenuItemAvailabilityType {
RECORD_SELECTION = 'RECORD_SELECTION'
}
+export type CommandMenuItemPayload = ObjectMetadataCommandMenuItemPayload | PathCommandMenuItemPayload;
+
export enum ConfigSource {
DATABASE = 'DATABASE',
DEFAULT = 'DEFAULT',
@@ -3917,6 +3919,11 @@ export type ObjectIndexMetadatasConnection = {
pageInfo: PageInfo;
};
+export type ObjectMetadataCommandMenuItemPayload = {
+ __typename?: 'ObjectMetadataCommandMenuItemPayload';
+ objectMetadataItemId: Scalars['UUID'];
+};
+
export type ObjectPermission = {
__typename?: 'ObjectPermission';
canDestroyObjectRecords?: Maybe<Scalars['Boolean']>;
@@ -4099,6 +4106,11 @@ export type PageLayoutWidgetVerticalListPosition = {
layoutMode: PageLayoutTabLayoutMode;
};
+export type PathCommandMenuItemPayload = {
+ __typename?: 'PathCommandMenuItemPayload';
+ path: Scalars['String'];
+};
+
export type PermissionFlag = {
__typename?: 'PermissionFlag';
flag: PermissionFlagType;
@@ -6710,12 +6722,12 @@ export type ValidatePasswordResetTokenQueryVariables = Exact<{
export type ValidatePasswordResetTokenQuery = { __typename?: 'Query', validatePasswordResetToken: { __typename?: 'ValidatePasswordResetToken', id: string, email: string, hasPassword: boolean } };
-export type CommandMenuItemFieldsFragment = { __typename?: 'CommandMenuItem', id: string, workflowVersionId?: string | null, frontComponentId?: string | null, engineComponentKey: EngineComponentKey, label: string, icon?: string | null, shortLabel?: string | null, position: number, isPinned: boolean, payload?: any | null, hotKeys?: Array<string> | null, conditionalAvailabilityExpression?: string | null, availabilityType: CommandMenuItemAvailabilityType, availabilityObjectMetadataId?: string | null, frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, isHeadless: boolean } | null };
+export type CommandMenuItemFieldsFragment = { __typename?: 'CommandMenuItem', id: string, workflowVersionId?: string | null, frontComponentId?: string | null, engineComponentKey: EngineComponentKey, label: string, icon?: string | null, shortLabel?: string | null, position: number, isPinned: boolean, hotKeys?: Array<string> | null, conditionalAvailabilityExpression?: string | null, availabilityType: CommandMenuItemAvailabilityType, availabilityObjectMetadataId?: string | null, frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, isHeadless: boolean } | null, payload?: { __typename?: 'ObjectMetadataCommandMenuItemPayload', objectMetadataItemId: string } | { __typename?: 'PathCommandMenuItemPayload', path: string } | null };
export type FindManyCommandMenuItemsQueryVariables = Exact<{ [key: string]: never; }>;
-export type FindManyCommandMenuItemsQuery = { __typename?: 'Query', commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, workflowVersionId?: string | null, frontComponentId?: string | null, engineComponentKey: EngineComponentKey, label: string, icon?: string | null, shortLabel?: string | null, position: number, isPinned: boolean, payload?: any | null, hotKeys?: Array<string> | null, conditionalAvailabilityExpression?: string | null, availabilityType: CommandMenuItemAvailabilityType, availabilityObjectMetadataId?: string | null, frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, isHeadless: boolean } | null }> };
+export type FindManyCommandMenuItemsQuery = { __typename?: 'Query', commandMenuItems: Array<{ __typename?: 'CommandMenuItem', id: string, workflowVersionId?: string | null, frontComponentId?: string | null, engineComponentKey: EngineComponentKey, label: string, icon?: string | null, shortLabel?: string | null, position: number, isPinned: boolean, hotKeys?: Array<string> | null, conditionalAvailabilityExpression?: string | null, availabilityType: CommandMenuItemAvailabilityType, availabilityObjectMetadataId?: string | null, frontComponent?: { __typename?: 'FrontComponent', id: string, name: string, isHeadless: boolean } | null, payload?: { __typename?: 'ObjectMetadataCommandMenuItemPayload', objectMetadataItemId: string } | { __typename?: 'PathCommandMenuItemPayload', path: string } | null }> };
export type PageLayoutFragmentFragment = { __typename?: 'PageLayout', id: string, name: string, objectMetadataId?: string | null, type: PageLayoutType, defaultTabToFocusOnMobileAndSidePanelId?: string | null, createdAt: string, updatedAt: string, tabs?: Array<{ __typename?: 'PageLayoutTab', id: string, applicationId: string, title: string, icon?: string | null, position: number, layoutMode?: PageLayoutTabLayoutMode | null, isOverridden: boolean, pageLayoutId: string, createdAt: string, updatedAt: string, widgets?: Array<{ __typename?: 'PageLayoutWidget', id: string, title: string, type: WidgetType, objectMetadataId?: string | null, isOverridden: boolean, createdAt: string, updatedAt: string, deletedAt?: string | null, conditionalDisplay?: any | null, pageLayoutTabId: string, gridPosition: { __typename?: 'GridPosition', column: number, columnSpan: number, row: number, rowSpan: number }, position?: { __typename?: 'PageLayoutWidgetCanvasPosition', layoutMode: PageLayoutTabLayoutMode } | { __typename?: 'PageLayoutWidgetGridPosition', layoutMode: PageLayoutTabLayoutMode, row: number, column: number, rowSpan: number, columnSpan: number } | { __typename?: 'PageLayoutWidgetVerticalListPosition', layoutMode: PageLayoutTabLayoutMode, index: number } | null, configuration: { __typename?: 'AggregateChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, label?: string | null, displayDataLabel?: boolean | null, format?: string | null, description?: string | null, filter?: any | null, prefix?: string | null, suffix?: string | null, timezone?: string | null, firstDayOfTheWeek?: number | null, ratioAggregateConfig?: { __typename?: 'RatioAggregateConfig', fieldMetadataId: string, optionValue: string } | null } | { __typename?: 'BarChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, groupMode?: BarChartGroupMode | null, layout: BarChartLayout, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'CalendarConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailThreadConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'EmailsConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldConfiguration', configurationType: WidgetConfigurationType, fieldDisplayMode: FieldDisplayMode, fieldMetadataId: string } | { __typename?: 'FieldRichTextConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FieldsConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null, newFieldDefaultVisibility?: boolean | null, shouldAllowUserToSeeHiddenFields?: boolean | null } | { __typename?: 'FilesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'FrontComponentConfiguration', configurationType: WidgetConfigurationType, frontComponentId: string } | { __typename?: 'GaugeChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, displayDataLabel?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'IframeConfiguration', configurationType: WidgetConfigurationType, url?: string | null } | { __typename?: 'LineChartConfiguration', configurationType: WidgetConfigurationType, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, primaryAxisGroupByFieldMetadataId: string, primaryAxisGroupBySubFieldName?: string | null, primaryAxisDateGranularity?: ObjectRecordGroupByDateGranularity | null, primaryAxisOrderBy?: GraphOrderBy | null, primaryAxisManualSortOrder?: Array<string> | null, secondaryAxisGroupByFieldMetadataId?: string | null, secondaryAxisGroupBySubFieldName?: string | null, secondaryAxisGroupByDateGranularity?: ObjectRecordGroupByDateGranularity | null, secondaryAxisOrderBy?: GraphOrderBy | null, secondaryAxisManualSortOrder?: Array<string> | null, omitNullValues?: boolean | null, axisNameDisplay?: AxisNameDisplay | null, displayDataLabel?: boolean | null, displayLegend?: boolean | null, rangeMin?: number | null, rangeMax?: number | null, color?: string | null, description?: string | null, filter?: any | null, isStacked?: boolean | null, isCumulative?: boolean | null, splitMultiValueFields?: boolean | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'NotesConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'PieChartConfiguration', configurationType: WidgetConfigurationType, groupByFieldMetadataId: string, aggregateFieldMetadataId: string, aggregateOperation: AggregateOperations, groupBySubFieldName?: string | null, dateGranularity?: ObjectRecordGroupByDateGranularity | null, orderBy?: GraphOrderBy | null, manualSortOrder?: Array<string> | null, displayDataLabel?: boolean | null, showCenterMetric?: boolean | null, displayLegend?: boolean | null, hideEmptyCategory?: boolean | null, splitMultiValueFields?: boolean | null, color?: string | null, description?: string | null, filter?: any | null, timezone?: string | null, firstDayOfTheWeek?: number | null } | { __typename?: 'RecordTableConfiguration', configurationType: WidgetConfigurationType, viewId?: string | null } | { __typename?: 'StandaloneRichTextConfiguration', configurationType: WidgetConfigurationType, body: { __typename?: 'RichTextBody', blocknote?: string | null, markdown?: string | null } } | { __typename?: 'TasksConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'TimelineConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'ViewConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowRunConfiguration', configurationType: WidgetConfigurationType } | { __typename?: 'WorkflowVersionConfiguration', configurationType: WidgetConfigurationType } }> | null }> | null };
@@ -8244,7 +8256,7 @@ export const ApplicationFieldsFragmentDoc = {"kind":"Document","definitions":[{"
export const AuthTokenFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenFragmentFragment, unknown>;
export const AuthTokenPairFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenPairFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthTokenPair"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"accessOrWorkspaceAgnosticToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"refreshToken"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"AuthTokenFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AuthTokenFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AuthToken"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"token"}},{"kind":"Field","name":{"kind":"Name","value":"expiresAt"}}]}}]} as unknown as DocumentNode<AuthTokenPairFragmentFragment, unknown>;
export const AvailableSsoIdentityProvidersFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"AvailableSSOIdentityProvidersFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FindAvailableSSOIDP"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"workspace"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode<AvailableSsoIdentityProvidersFragmentFragment, unknown>;
-export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<CommandMenuItemFieldsFragment, unknown>;
+export const CommandMenuItemFieldsFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectMetadataCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataItemId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<CommandMenuItemFieldsFragment, unknown>;
export const PageLayoutWidgetFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutWidgetFragmentFragment, unknown>;
export const PageLayoutTabFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}}]} as unknown as DocumentNode<PageLayoutTabFragmentFragment, unknown>;
export const PageLayoutFragmentFragmentDoc = {"kind":"Document","definitions":[{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]} as unknown as DocumentNode<PageLayoutFragmentFragment, unknown>;
@@ -8339,7 +8351,7 @@ export const CheckUserExistsDocument = {"kind":"Document","definitions":[{"kind"
export const FindApplicationRegistrationByClientIdDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindApplicationRegistrationByClientId"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"findApplicationRegistrationByClientId"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"clientId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"clientId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"logoUrl"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"oAuthScopes"}},{"kind":"Field","name":{"kind":"Name","value":"websiteUrl"}}]}}]}}]} as unknown as DocumentNode<FindApplicationRegistrationByClientIdQuery, FindApplicationRegistrationByClientIdQueryVariables>;
export const GetPublicWorkspaceDataByDomainDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetPublicWorkspaceDataByDomain"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"origin"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPublicWorkspaceDataByDomain"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"origin"},"value":{"kind":"Variable","name":{"kind":"Name","value":"origin"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"logo"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"workspaceUrls"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"WorkspaceUrlsFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"authProviders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"sso"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"status"}},{"kind":"Field","name":{"kind":"Name","value":"issuer"}}]}},{"kind":"Field","name":{"kind":"Name","value":"google"}},{"kind":"Field","name":{"kind":"Name","value":"magicLink"}},{"kind":"Field","name":{"kind":"Name","value":"password"}},{"kind":"Field","name":{"kind":"Name","value":"microsoft"}}]}},{"kind":"Field","name":{"kind":"Name","value":"authBypassProviders"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"google"}},{"kind":"Field","name":{"kind":"Name","value":"password"}},{"kind":"Field","name":{"kind":"Name","value":"microsoft"}}]}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"WorkspaceUrlsFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkspaceUrls"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"subdomainUrl"}},{"kind":"Field","name":{"kind":"Name","value":"customUrl"}}]}}]} as unknown as DocumentNode<GetPublicWorkspaceDataByDomainQuery, GetPublicWorkspaceDataByDomainQueryVariables>;
export const ValidatePasswordResetTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidatePasswordResetToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validatePasswordResetToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"passwordResetToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}}]}}]}}]} as unknown as DocumentNode<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>;
-export const FindManyCommandMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCommandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<FindManyCommandMenuItemsQuery, FindManyCommandMenuItemsQueryVariables>;
+export const FindManyCommandMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCommandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ObjectMetadataCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"objectMetadataItemId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}}]}}]} as unknown as DocumentNode<FindManyCommandMenuItemsQuery, FindManyCommandMenuItemsQueryVariables>;
export const DuplicateDashboardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DuplicateDashboard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"duplicateDashboard"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<DuplicateDashboardMutation, DuplicateDashboardMutationVariables>;
export const FindOnePageLayoutDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindOnePageLayout"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getPageLayout"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutFragment"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutWidgetFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidget"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"deletedAt"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"gridPosition"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}}]}},{"kind":"Field","name":{"kind":"Name","value":"position"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetGridPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"row"}},{"kind":"Field","name":{"kind":"Name","value":"column"}},{"kind":"Field","name":{"kind":"Name","value":"rowSpan"}},{"kind":"Field","name":{"kind":"Name","value":"columnSpan"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetVerticalListPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"index"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutWidgetCanvasPosition"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"configuration"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"BarChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"groupMode"}},{"kind":"Field","name":{"kind":"Name","value":"layout"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"LineChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"primaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisGroupByDateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisOrderBy"}},{"kind":"Field","name":{"kind":"Name","value":"secondaryAxisManualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"omitNullValues"}},{"kind":"Field","name":{"kind":"Name","value":"axisNameDisplay"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMin"}},{"kind":"Field","name":{"kind":"Name","value":"rangeMax"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"isStacked"}},{"kind":"Field","name":{"kind":"Name","value":"isCumulative"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PieChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"groupByFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"groupBySubFieldName"}},{"kind":"Field","name":{"kind":"Name","value":"dateGranularity"}},{"kind":"Field","name":{"kind":"Name","value":"orderBy"}},{"kind":"Field","name":{"kind":"Name","value":"manualSortOrder"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"showCenterMetric"}},{"kind":"Field","name":{"kind":"Name","value":"displayLegend"}},{"kind":"Field","name":{"kind":"Name","value":"hideEmptyCategory"}},{"kind":"Field","name":{"kind":"Name","value":"splitMultiValueFields"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"AggregateChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"format"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"prefix"}},{"kind":"Field","name":{"kind":"Name","value":"suffix"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}},{"kind":"Field","name":{"kind":"Name","value":"ratioAggregateConfig"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"optionValue"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"GaugeChartConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateFieldMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"aggregateOperation"}},{"kind":"Field","name":{"kind":"Name","value":"displayDataLabel"}},{"kind":"Field","name":{"kind":"Name","value":"color"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"filter"}},{"kind":"Field","name":{"kind":"Name","value":"timezone"}},{"kind":"Field","name":{"kind":"Name","value":"firstDayOfTheWeek"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"IframeConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"StandaloneRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"body"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"blocknote"}},{"kind":"Field","name":{"kind":"Name","value":"markdown"}}]}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CalendarConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"EmailThreadConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"fieldDisplayMode"}},{"kind":"Field","name":{"kind":"Name","value":"fieldMetadataId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldRichTextConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FieldsConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}},{"kind":"Field","name":{"kind":"Name","value":"newFieldDefaultVisibility"}},{"kind":"Field","name":{"kind":"Name","value":"shouldAllowUserToSeeHiddenFields"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FilesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"NotesConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TasksConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"TimelineConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"ViewConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"RecordTableConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"viewId"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowRunConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"WorkflowVersionConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}}]}},{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"FrontComponentConfiguration"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"configurationType"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutTabId"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutTabFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayoutTab"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"layoutMode"}},{"kind":"Field","name":{"kind":"Name","value":"isOverridden"}},{"kind":"Field","name":{"kind":"Name","value":"widgets"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutWidgetFragment"}}]}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"PageLayoutFragment"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PageLayout"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"objectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"defaultTabToFocusOnMobileAndSidePanelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}},{"kind":"Field","name":{"kind":"Name","value":"tabs"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"PageLayoutTabFragment"}}]}}]}}]} as unknown as DocumentNode<FindOnePageLayoutQuery, FindOnePageLayoutQueryVariables>;
export const UploadFilesFieldFileDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UploadFilesFieldFile"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"file"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Upload"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"uploadFilesFieldFile"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"file"},"value":{"kind":"Variable","name":{"kind":"Name","value":"file"}}},{"kind":"Argument","name":{"kind":"Name","value":"fieldMetadataId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"fieldMetadataId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"path"}},{"kind":"Field","name":{"kind":"Name","value":"size"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"url"}}]}}]}}]} as unknown as DocumentNode<UploadFilesFieldFileMutation, UploadFilesFieldFileMutationVariables>;
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/components/NavigationEngineCommand.tsx b/packages/twenty-front/src/modules/command-menu-item/engine-command/components/NavigationEngineCommand.tsx
index d0174714662..a4ef05b2901 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/components/NavigationEngineCommand.tsx
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/components/NavigationEngineCommand.tsx
@@ -1,7 +1,7 @@
import { HeadlessEngineCommandWrapperEffect } from '@/command-menu-item/engine-command/components/HeadlessEngineCommandWrapperEffect';
import { useHeadlessCommandContextApi } from '@/command-menu-item/engine-command/hooks/useHeadlessCommandContextApi';
-import { isObjectMetadataNavigationPayload } from '@/command-menu-item/engine-command/utils/isObjectMetadataNavigationPayload';
-import { isPathNavigationPayload } from '@/command-menu-item/engine-command/utils/isPathNavigationPayload';
+import { isObjectMetadataCommandMenuItemPayload } from '@/command-menu-item/engine-command/utils/isObjectMetadataCommandMenuItemPayload';
+import { isPathCommandMenuItemPayload } from '@/command-menu-item/engine-command/utils/isPathCommandMenuItemPayload';
import { useObjectMetadataItems } from '@/object-metadata/hooks/useObjectMetadataItems';
import { useNavigate } from 'react-router-dom';
import { AppPath } from 'twenty-shared/types';
@@ -17,11 +17,9 @@ export const NavigationEngineCommand = () => {
return;
}
- const navigationPayload = payload;
-
- if (isObjectMetadataNavigationPayload(navigationPayload)) {
+ if (isObjectMetadataCommandMenuItemPayload(payload)) {
const objectMetadataItem = objectMetadataItems.find(
- (item) => item.id === navigationPayload.objectMetadataItemId,
+ (item) => item.id === payload.objectMetadataItemId,
);
if (!isDefined(objectMetadataItem)) {
@@ -38,9 +36,9 @@ export const NavigationEngineCommand = () => {
return;
}
- if (isPathNavigationPayload(navigationPayload)) {
+ if (isPathCommandMenuItemPayload(payload)) {
// eslint-disable-next-line twenty/no-navigate-prefer-link
- navigate(navigationPayload.path);
+ navigate(payload.path);
}
};
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/hooks/useMountCommand.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/hooks/useMountCommand.ts
index e8f52588ced..08ff584e874 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/hooks/useMountCommand.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/hooks/useMountCommand.ts
@@ -8,6 +8,7 @@ import { isDefined } from 'twenty-shared/utils';
import {
type CommandMenuItemAvailabilityType,
type EngineComponentKey,
+ type CommandMenuItemPayload,
} from '~/generated-metadata/graphql';
type MountCommandParams = {
@@ -18,7 +19,7 @@ type MountCommandParams = {
workflowVersionId?: string;
availabilityType?: CommandMenuItemAvailabilityType;
availabilityObjectMetadataId?: string | null;
- payload?: Record<string, unknown> | null;
+ payload?: CommandMenuItemPayload | null;
};
export const useMountCommand = () => {
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/types/HeadlessCommandContextApi.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/types/HeadlessCommandContextApi.ts
index 674fa0493e6..a06a6eb95ab 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/types/HeadlessCommandContextApi.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/types/HeadlessCommandContextApi.ts
@@ -5,7 +5,10 @@ import {
type Nullable,
type RecordGqlOperationFilter,
} from 'twenty-shared/types';
-import { type EngineComponentKey } from '~/generated-metadata/graphql';
+import {
+ type EngineComponentKey,
+ type CommandMenuItemPayload,
+} from '~/generated-metadata/graphql';
export type HeadlessEngineCommandContextApi = {
engineComponentKey: EngineComponentKey;
@@ -16,7 +19,7 @@ export type HeadlessEngineCommandContextApi = {
targetedRecordsRule: ContextStoreTargetedRecordsRule;
selectedRecords: ObjectRecord[];
graphqlFilter: Nullable<RecordGqlOperationFilter>;
- payload: Nullable<Record<string, unknown>>;
+ payload: Nullable<CommandMenuItemPayload>;
};
export type HeadlessFrontComponentCommandContextApi =
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isObjectMetadataCommandMenuItemPayload.test.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isObjectMetadataCommandMenuItemPayload.test.ts
new file mode 100644
index 00000000000..0d8caf17e6c
--- /dev/null
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isObjectMetadataCommandMenuItemPayload.test.ts
@@ -0,0 +1,22 @@
+import { isObjectMetadataCommandMenuItemPayload } from '@/command-menu-item/engine-command/utils/isObjectMetadataCommandMenuItemPayload';
+import { type CommandMenuItemPayload } from '~/generated-metadata/graphql';
+
+describe('isObjectMetadataCommandMenuItemPayload', () => {
+ it('should return true for an ObjectMetadataCommandMenuItemPayload', () => {
+ const payload: CommandMenuItemPayload = {
+ __typename: 'ObjectMetadataCommandMenuItemPayload',
+ objectMetadataItemId: 'some-uuid',
+ };
+
+ expect(isObjectMetadataCommandMenuItemPayload(payload)).toBe(true);
+ });
+
+ it('should return false for a PathCommandMenuItemPayload', () => {
+ const payload: CommandMenuItemPayload = {
+ __typename: 'PathCommandMenuItemPayload',
+ path: '/settings',
+ };
+
+ expect(isObjectMetadataCommandMenuItemPayload(payload)).toBe(false);
+ });
+});
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isPathCommandMenuItemPayload.test.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isPathCommandMenuItemPayload.test.ts
new file mode 100644
index 00000000000..88893814dc0
--- /dev/null
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/__tests__/isPathCommandMenuItemPayload.test.ts
@@ -0,0 +1,22 @@
+import { isPathCommandMenuItemPayload } from '@/command-menu-item/engine-command/utils/isPathCommandMenuItemPayload';
+import { type CommandMenuItemPayload } from '~/generated-metadata/graphql';
+
+describe('isPathCommandMenuItemPayload', () => {
+ it('should return true for a PathCommandMenuItemPayload', () => {
+ const payload: CommandMenuItemPayload = {
+ __typename: 'PathCommandMenuItemPayload',
+ path: '/settings',
+ };
+
+ expect(isPathCommandMenuItemPayload(payload)).toBe(true);
+ });
+
+ it('should return false for an ObjectMetadataCommandMenuItemPayload', () => {
+ const payload: CommandMenuItemPayload = {
+ __typename: 'ObjectMetadataCommandMenuItemPayload',
+ objectMetadataItemId: 'some-uuid',
+ };
+
+ expect(isPathCommandMenuItemPayload(payload)).toBe(false);
+ });
+});
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/buildHeadlessCommandContextApi.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/buildHeadlessCommandContextApi.ts
index b6767eeafde..256434b5ab0 100644
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/buildHeadlessCommandContextApi.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/buildHeadlessCommandContextApi.ts
@@ -14,7 +14,10 @@ import { type EnrichedObjectMetadataItem } from '@/object-metadata/types/Enriche
import { recordStoreFamilyState } from '@/object-record/record-store/states/recordStoreFamilyState';
import { getRecordIndexIdFromObjectNamePluralAndViewId } from '@/object-record/utils/getRecordIndexIdFromObjectNamePluralAndViewId';
import { isDefined } from 'twenty-shared/utils';
-import { type EngineComponentKey } from '~/generated-metadata/graphql';
+import {
+ type EngineComponentKey,
+ type CommandMenuItemPayload,
+} from '~/generated-metadata/graphql';
export const buildHeadlessCommandContextApi = ({
store,
@@ -25,7 +28,7 @@ export const buildHeadlessCommandContextApi = ({
store: Store;
contextStoreInstanceId: string;
engineComponentKey: EngineComponentKey;
- payload?: Record<string, unknown> | null;
+ payload?: CommandMenuItemPayload | null;
}): HeadlessEngineCommandContextApi => {
const objectMetadataItemId = store.get(
contextStoreCurrentObjectMetadataItemIdComponentState.atomFamily({
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataCommandMenuItemPayload.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataCommandMenuItemPayload.ts
new file mode 100644
index 00000000000..4e8cbb08650
--- /dev/null
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataCommandMenuItemPayload.ts
@@ -0,0 +1,9 @@
+import {
+ type CommandMenuItemPayload,
+ type ObjectMetadataCommandMenuItemPayload,
+} from '~/generated-metadata/graphql';
+
+export const isObjectMetadataCommandMenuItemPayload = (
+ payload: CommandMenuItemPayload,
+): payload is ObjectMetadataCommandMenuItemPayload =>
+ payload.__typename === 'ObjectMetadataCommandMenuItemPayload';
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataNavigationPayload.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataNavigationPayload.ts
deleted file mode 100644
index fb2add0912a..00000000000
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isObjectMetadataNavigationPayload.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-export const isObjectMetadataNavigationPayload = (
- payload: Record<string, unknown>,
-): payload is { objectMetadataItemId: string } =>
- 'objectMetadataItemId' in payload &&
- typeof payload.objectMetadataItemId === 'string';
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathCommandMenuItemPayload.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathCommandMenuItemPayload.ts
new file mode 100644
index 00000000000..75491496322
--- /dev/null
+++ b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathCommandMenuItemPayload.ts
@@ -0,0 +1,9 @@
+import {
+ type CommandMenuItemPayload,
+ type PathCommandMenuItemPayload,
+} from '~/generated-metadata/graphql';
+
+export const isPathCommandMenuItemPayload = (
+ payload: CommandMenuItemPayload,
+): payload is PathCommandMenuItemPayload =>
+ payload.__typename === 'PathCommandMenuItemPayload';
diff --git a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathNavigationPayload.ts b/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathNavigationPayload.ts
deleted file mode 100644
index aac8404fb61..00000000000
--- a/packages/twenty-front/src/modules/command-menu-item/engine-command/utils/isPathNavigationPayload.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-export const isPathNavigationPayload = (
- payload: Record<string, unknown>,
-): payload is { path: string } =>
- 'path' in payload && typeof payload.path === 'string';
diff --git a/packages/twenty-front/src/modules/command-menu-item/graphql/fragments/commandMenuItemFragment.ts b/packages/twenty-front/src/modules/command-menu-item/graphql/fragments/commandMenuItemFragment.ts
index 843affdf626..c4f601a86c5 100644
--- a/packages/twenty-front/src/modules/command-menu-item/graphql/fragments/commandMenuItemFragment.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/graphql/fragments/commandMenuItemFragment.ts
@@ -16,7 +16,14 @@ export const COMMAND_MENU_ITEM_FRAGMENT = gql`
shortLabel
position
isPinned
- payload
+ payload {
+ ... on PathCommandMenuItemPayload {
+ path
+ }
+ ... on ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId
+ }
+ }
hotKeys
conditionalAvailabilityExpression
availabilityType
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union.ts
new file mode 100644
index 00000000000..08b180e7d3c
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union.ts
@@ -0,0 +1,29 @@
+import { createUnionType } from '@nestjs/graphql';
+
+import { ObjectMetadataCommandMenuItemPayloadDTO } from 'src/engine/metadata-modules/command-menu-item/dtos/object-metadata-command-menu-item-payload.dto';
+import { PathCommandMenuItemPayloadDTO } from 'src/engine/metadata-modules/command-menu-item/dtos/path-command-menu-item-payload.dto';
+import { type ObjectMetadataCommandMenuItemPayload } from 'src/engine/metadata-modules/command-menu-item/dtos/types/object-metadata-command-menu-item-payload.type';
+import { type PathCommandMenuItemPayload } from 'src/engine/metadata-modules/command-menu-item/dtos/types/path-command-menu-item-payload.type';
+
+export type CommandMenuItemPayload =
+ | PathCommandMenuItemPayload
+ | ObjectMetadataCommandMenuItemPayload;
+
+export const CommandMenuItemPayloadUnion = createUnionType({
+ name: 'CommandMenuItemPayload',
+ types: () => [
+ PathCommandMenuItemPayloadDTO,
+ ObjectMetadataCommandMenuItemPayloadDTO,
+ ],
+ resolveType(payload: CommandMenuItemPayload) {
+ if ('path' in payload) {
+ return PathCommandMenuItemPayloadDTO;
+ }
+
+ if ('objectMetadataItemId' in payload) {
+ return ObjectMetadataCommandMenuItemPayloadDTO;
+ }
+
+ return undefined;
+ },
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item.dto.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item.dto.ts
index 4d42411b4dc..dcbf8041a9c 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item.dto.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/command-menu-item.dto.ts
@@ -10,10 +10,13 @@ import {
IsString,
IsUUID,
} from 'class-validator';
-import { GraphQLJSON } from 'graphql-type-json';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
import { CommandMenuItemAvailabilityType } from 'src/engine/metadata-modules/command-menu-item/enums/command-menu-item-availability-type.enum';
+import {
+ type CommandMenuItemPayload,
+ CommandMenuItemPayloadUnion,
+} from 'src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union';
import { EngineComponentKey } from 'src/engine/metadata-modules/command-menu-item/enums/engine-component-key.enum';
import { FrontComponentDTO } from 'src/engine/metadata-modules/front-component/dtos/front-component.dto';
@@ -70,8 +73,8 @@ export class CommandMenuItemDTO {
availabilityType: CommandMenuItemAvailabilityType;
@IsOptional()
- @Field(() => GraphQLJSON, { nullable: true })
- payload?: Record<string, unknown>;
+ @Field(() => CommandMenuItemPayloadUnion, { nullable: true })
+ payload?: CommandMenuItemPayload;
@IsString({ each: true })
@IsOptional()
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/create-command-menu-item.input.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/create-command-menu-item.input.ts
index b790907108e..184210b4c87 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/create-command-menu-item.input.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/create-command-menu-item.input.ts
@@ -13,6 +13,7 @@ import {
import GraphQLJSON from 'graphql-type-json';
import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+import { type CommandMenuItemPayload } from 'src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union';
import { CommandMenuItemAvailabilityType } from 'src/engine/metadata-modules/command-menu-item/enums/command-menu-item-availability-type.enum';
import { EngineComponentKey } from 'src/engine/metadata-modules/command-menu-item/enums/engine-component-key.enum';
@@ -81,5 +82,5 @@ export class CreateCommandMenuItemInput {
@IsObject()
@IsOptional()
@Field(() => GraphQLJSON, { nullable: true })
- payload?: Record<string, unknown>;
+ payload?: CommandMenuItemPayload;
}
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/object-metadata-command-menu-item-payload.dto.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/object-metadata-command-menu-item-payload.dto.ts
new file mode 100644
index 00000000000..33e565c1f44
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/object-metadata-command-menu-item-payload.dto.ts
@@ -0,0 +1,13 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+import { IsNotEmpty, IsUUID } from 'class-validator';
+
+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+
+@ObjectType('ObjectMetadataCommandMenuItemPayload')
+export class ObjectMetadataCommandMenuItemPayloadDTO {
+ @IsUUID()
+ @IsNotEmpty()
+ @Field(() => UUIDScalarType)
+ objectMetadataItemId: string;
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/path-command-menu-item-payload.dto.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/path-command-menu-item-payload.dto.ts
new file mode 100644
index 00000000000..dbe39caeee7
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/path-command-menu-item-payload.dto.ts
@@ -0,0 +1,11 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+import { IsNotEmpty, IsString } from 'class-validator';
+
+@ObjectType('PathCommandMenuItemPayload')
+export class PathCommandMenuItemPayloadDTO {
+ @IsString()
+ @IsNotEmpty()
+ @Field()
+ path: string;
+}
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/object-metadata-command-menu-item-payload.type.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/object-metadata-command-menu-item-payload.type.ts
new file mode 100644
index 00000000000..b6aed391dac
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/object-metadata-command-menu-item-payload.type.ts
@@ -0,0 +1,3 @@
+export type ObjectMetadataCommandMenuItemPayload = {
+ objectMetadataItemId: string;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/path-command-menu-item-payload.type.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/path-command-menu-item-payload.type.ts
new file mode 100644
index 00000000000..fe8e22db08e
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/dtos/types/path-command-menu-item-payload.type.ts
@@ -0,0 +1,3 @@
+export type PathCommandMenuItemPayload = {
+ path: string;
+};
diff --git a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/entities/command-menu-item.entity.ts b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/entities/command-menu-item.entity.ts
index 482a91b3135..b5bcb7652c5 100644
--- a/packages/twenty-server/src/engine/metadata-modules/command-menu-item/entities/command-menu-item.entity.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/command-menu-item/entities/command-menu-item.entity.ts
@@ -11,6 +11,7 @@ import {
UpdateDateColumn,
} from 'typeorm';
+import { type CommandMenuItemPayload } from 'src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union';
import { CommandMenuItemAvailabilityType } from 'src/engine/metadata-modules/command-menu-item/enums/command-menu-item-availability-type.enum';
import { EngineComponentKey } from 'src/engine/metadata-modules/command-menu-item/enums/engine-component-key.enum';
import { FrontComponentEntity } from 'src/engine/metadata-modules/front-component/entities/front-component.entity';
@@ -80,7 +81,7 @@ export class CommandMenuItemEntity
availabilityType: CommandMenuItemAvailabilityType;
@Column({ type: 'jsonb', nullable: true })
- payload: Record<string, unknown> | null;
+ payload: CommandMenuItemPayload | null;
@Column({ type: 'text', array: true, nullable: true })
hotKeys: string[] | null;
diff --git a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-command-menu-item-validator.service.ts b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-command-menu-item-validator.service.ts
index f28e50e9350..2be0bb5303e 100644
--- a/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-command-menu-item-validator.service.ts
+++ b/packages/twenty-server/src/engine/workspace-manager/workspace-migration/workspace-migration-builder/validators/services/flat-command-menu-item-validator.service.ts
@@ -6,6 +6,7 @@ import { ALL_METADATA_NAME } from 'twenty-shared/metadata';
import { isDefined } from 'twenty-shared/utils';
import { CommandMenuItemExceptionCode } from 'src/engine/metadata-modules/command-menu-item/command-menu-item.exception';
+import { type CommandMenuItemPayload } from 'src/engine/metadata-modules/command-menu-item/dtos/command-menu-item-payload.union';
import { EngineComponentKey } from 'src/engine/metadata-modules/command-menu-item/enums/engine-component-key.enum';
import { findFlatEntityByUniversalIdentifier } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entity-by-universal-identifier.util';
import { type FailedFlatEntityValidation } from 'src/engine/workspace-manager/workspace-migration/workspace-migration-builder/builders/types/failed-flat-entity-validation.type';
@@ -49,6 +50,7 @@ export class FlatCommandMenuItemValidatorService {
workflowVersionId: flatCommandMenuItem.workflowVersionId,
frontComponentUniversalIdentifier:
flatCommandMenuItem.frontComponentUniversalIdentifier,
+ payload: flatCommandMenuItem.payload,
validationResult,
});
@@ -133,11 +135,17 @@ export class FlatCommandMenuItemValidatorService {
flatEntityUpdate.engineComponentKey ??
fromFlatCommandMenuItem.engineComponentKey;
+ const payload =
+ flatEntityUpdate.payload !== undefined
+ ? flatEntityUpdate.payload
+ : fromFlatCommandMenuItem.payload;
+
this.validateEngineComponentKeyCoherence({
engineComponentKey,
workflowVersionId: fromFlatCommandMenuItem.workflowVersionId,
frontComponentUniversalIdentifier:
fromFlatCommandMenuItem.frontComponentUniversalIdentifier,
+ payload,
validationResult,
});
@@ -148,11 +156,13 @@ export class FlatCommandMenuItemValidatorService {
engineComponentKey,
workflowVersionId,
frontComponentUniversalIdentifier,
+ payload,
validationResult,
}: {
engineComponentKey: EngineComponentKey | null;
workflowVersionId: string | null;
frontComponentUniversalIdentifier: string | null;
+ payload: CommandMenuItemPayload | null;
validationResult: FailedFlatEntityValidation<
'commandMenuItem',
'create' | 'update'
@@ -201,6 +211,27 @@ export class FlatCommandMenuItemValidatorService {
break;
}
+ case EngineComponentKey.NAVIGATION: {
+ this.validateNavigationPayload({ payload, validationResult });
+
+ if (isNonEmptyString(workflowVersionId)) {
+ validationResult.errors.push({
+ code: CommandMenuItemExceptionCode.INVALID_COMMAND_MENU_ITEM_INPUT,
+ message: t`workflowVersionId must not be set for engine component key ${engineComponentKey}`,
+ userFriendlyMessage: msg`Workflow version must not be set for this item type`,
+ });
+ }
+
+ if (isNonEmptyString(frontComponentUniversalIdentifier)) {
+ validationResult.errors.push({
+ code: CommandMenuItemExceptionCode.INVALID_COMMAND_MENU_ITEM_INPUT,
+ message: t`frontComponentId must not be set for engine component key ${engineComponentKey}`,
+ userFriendlyMessage: msg`Front component must not be set for this item type`,
+ });
+ }
+
+ break;
+ }
default: {
if (isNonEmptyString(workflowVersionId)) {
validationResult.errors.push({
@@ -222,4 +253,38 @@ export class FlatCommandMenuItemValidatorService {
}
}
}
+
+ private validateNavigationPayload({
+ payload,
+ validationResult,
+ }: {
+ payload: CommandMenuItemPayload | null;
+ validationResult: FailedFlatEntityValidation<
+ 'commandMenuItem',
+ 'create' | 'update'
+ >;
+ }): void {
+ if (!isDefined(payload)) {
+ validationResult.errors.push({
+ code: CommandMenuItemExceptionCode.INVALID_COMMAND_MENU_ITEM_INPUT,
+ message: t`payload is required when engineComponentKey is NAVIGATION`,
+ userFriendlyMessage: msg`Payload is required for navigation items`,
+ });
+
+ return;
+ }
+
+ const hasPath = 'path' in payload && isNonEmptyString(payload.path);
+ const hasObjectMetadataItemId =
+ 'objectMetadataItemId' in payload &&
+ isNonEmptyString(payload.objectMetadataItemId);
+
+ if (!hasPath && !hasObjectMetadataItemId) {
+ validationResult.errors.push({
+ code: CommandMenuItemExceptionCode.INVALID_COMMAND_MENU_ITEM_INPUT,
+ message: t`payload must contain either a "path" or "objectMetadataItemId" property`,
+ userFriendlyMessage: msg`Payload must contain either a path or an object metadata item identifier`,
+ });
+ }
+ }
}
diff --git a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/successful-command-menu-item-creation.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/successful-command-menu-item-creation.integration-spec.ts
index 7817679cbfd..98b1a64d563 100644
--- a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/successful-command-menu-item-creation.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/successful-command-menu-item-creation.integration-spec.ts
@@ -174,6 +174,50 @@ describe('CommandMenuItem creation should succeed', () => {
});
});
+ it('should create NAVIGATION command menu item with path payload', async () => {
+ const { data } = await createCommandMenuItem({
+ expectToFail: false,
+ input: {
+ engineComponentKey: EngineComponentKey.NAVIGATION,
+ label: 'Go to Settings',
+ payload: { path: '/settings/accounts' },
+ },
+ });
+
+ createdCommandMenuItemId = data?.createCommandMenuItem?.id;
+
+ expect(data.createCommandMenuItem).toMatchObject({
+ id: expect.any(String),
+ engineComponentKey: EngineComponentKey.NAVIGATION,
+ label: 'Go to Settings',
+ payload: {
+ path: '/settings/accounts',
+ },
+ });
+ });
+
+ it('should create NAVIGATION command menu item with objectMetadataItemId payload', async () => {
+ const { data } = await createCommandMenuItem({
+ expectToFail: false,
+ input: {
+ engineComponentKey: EngineComponentKey.NAVIGATION,
+ label: 'Go to Companies',
+ payload: { objectMetadataItemId: companyObjectMetadataId },
+ },
+ });
+
+ createdCommandMenuItemId = data?.createCommandMenuItem?.id;
+
+ expect(data.createCommandMenuItem).toMatchObject({
+ id: expect.any(String),
+ engineComponentKey: EngineComponentKey.NAVIGATION,
+ label: 'Go to Companies',
+ payload: {
+ objectMetadataItemId: companyObjectMetadataId,
+ },
+ });
+ });
+
it('should create command menu item with frontComponentId', async () => {
const { data: frontComponentData } = await createFrontComponent({
expectToFail: false,
diff --git a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/create-command-menu-item-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/create-command-menu-item-query-factory.util.ts
index 77034f36387..21fe2826855 100644
--- a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/create-command-menu-item-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/create-command-menu-item-query-factory.util.ts
@@ -13,11 +13,20 @@ const DEFAULT_COMMAND_MENU_ITEM_GQL_FIELDS = `
id
name
}
+ engineComponentKey
label
icon
isPinned
availabilityType
availabilityObjectMetadataId
+ payload {
+ ... on PathCommandMenuItemPayload {
+ path
+ }
+ ... on ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId
+ }
+ }
applicationId
createdAt
updatedAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/find-command-menu-items-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/find-command-menu-items-query-factory.util.ts
index 62db82738f9..81391e0e60e 100644
--- a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/find-command-menu-items-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/find-command-menu-items-query-factory.util.ts
@@ -4,11 +4,20 @@ import { type PerformMetadataQueryParams } from 'test/integration/metadata/types
const DEFAULT_COMMAND_MENU_ITEM_GQL_FIELDS = `
id
workflowVersionId
+ engineComponentKey
label
icon
isPinned
availabilityType
availabilityObjectMetadataId
+ payload {
+ ... on PathCommandMenuItemPayload {
+ path
+ }
+ ... on ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId
+ }
+ }
applicationId
createdAt
updatedAt
diff --git a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/update-command-menu-item-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/update-command-menu-item-query-factory.util.ts
index d31391c2529..c9f25007626 100644
--- a/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/update-command-menu-item-query-factory.util.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/command-menu-item/utils/update-command-menu-item-query-factory.util.ts
@@ -8,11 +8,20 @@ export type UpdateCommandMenuItemFactoryInput = UpdateCommandMenuItemInput;
const DEFAULT_COMMAND_MENU_ITEM_GQL_FIELDS = `
id
workflowVersionId
+ engineComponentKey
label
icon
isPinned
availabilityType
availabilityObjectMetadataId
+ payload {
+ ... on PathCommandMenuItemPayload {
+ path
+ }
+ ... on ObjectMetadataCommandMenuItemPayload {
+ objectMetadataItemId
+ }
+ }
applicationId
createdAt
updatedAt