Skip to content

The open alternative to Salesforce, designed for AI.

Show installed apps' user settings on App preferences (#27753)

nitin44096adbaaff
diff --git a/packages/twenty-agent-skills/references/develop-app/layout.md b/packages/twenty-agent-skills/references/develop-app/layout.md
index 1ede76338b5..b247a1c35b9 100644
--- a/packages/twenty-agent-skills/references/develop-app/layout.md
+++ b/packages/twenty-agent-skills/references/develop-app/layout.md
@@ -60,7 +60,7 @@ To add an entry to an app's settings menu, declare it with `defineSettingsMenuIt
The menu item points at the component, not the reverse, so one component can back several items. Declare as many as the app needs. Each renders as a tab on the app's page under Settings > Apps, after the built-in General tab, in `position` order.
-`scope` is `WORKSPACE` (configured once for the whole workspace, the default) or `USER` (configured by each member for themselves). Only `WORKSPACE` items render today — a `USER` item is persisted and synced but nothing displays it until its placement under the member's own settings lands, so say so rather than declaring one for a settings entry an app needs visible now. To store something per person, a `USER` item should use an application variable declared with `scope: 'USER'`, which `getApplicationVariable` returns with the viewing member's value unless it is secret; a component cannot save it, since `updateMyUserApplicationVariable` refuses application tokens and takes the member's own session only; a variable without that scope holds one value shared by the whole workspace.
+`scope` is `WORKSPACE` (configured once for the whole workspace, the default) or `USER` (configured by each member for themselves). A `USER` item renders as a tab on the app's page under the member's Settings > App preferences, but that page is not enabled in every workspace yet — where it is not, the item is persisted and synced but nothing displays it, so say so rather than relying on a `USER` item for a settings entry every workspace needs visible now. To store something per person, a `USER` item should use an application variable declared with `scope: 'USER'`, which `getApplicationVariable` returns with the viewing member's value unless it is secret; the component saves it with `updateMyUserApplicationVariable`, which writes the viewing member's value only and refuses a token with nobody behind it, and since a `USER` item replaces the generated Variables form like a `WORKSPACE` item does, it should let the member set every user variable the app needs; a variable without that scope holds one value shared by the whole workspace.
Items sort by ascending `position`, which is a decimal so an item can be slotted between two existing ones. Two items of one app cannot share a position in the same scope, and `General` is reserved for the built-in item.
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 3e8ab5c7a40..c267880a53b 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -511,6 +511,12 @@ enum ApplicationHealthStatus {
WARNING
}
+type ApplicationPreferences {
+ applicationId: UUID!
+ settingsMenuItems: [SettingsMenuItem!]!
+ variables: [UserApplicationVariableValue!]!
+}
+
type ApplicationRegistration {
createdAt: DateTime!
galleryImagesUrls: [String!]!
@@ -3912,6 +3918,7 @@ type Query {
metadataTranslations(input: MetadataTranslationsInput!): [MetadataTranslation!]!
minimalMetadata: MinimalMetadata!
mostlyEmptyFieldMetadataIds(objectMetadataId: UUID!): [UUID!]!
+ myApplicationPreferences: [ApplicationPreferences!]!
myCalendarChannels(connectedAccountId: UUID): [CalendarChannel!]!
myConnectedAccounts: [ConnectedAccountPublicDTO!]!
myMessageChannels(connectedAccountId: UUID): [MessageChannel!]!
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index f0407a49d34..6820561819c 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -433,6 +433,13 @@ export interface ApplicationHealthCheckResult {
export type ApplicationHealthStatus = 'ERROR' | 'INFO' | 'NEUTRAL' | 'OK' | 'SUCCESS' | 'UNKNOWN' | 'WARNING'
+export interface ApplicationPreferences {
+ applicationId: Scalars['UUID']
+ settingsMenuItems: SettingsMenuItem[]
+ variables: UserApplicationVariableValue[]
+ __typename: 'ApplicationPreferences'
+}
+
export interface ApplicationRegistration {
createdAt: Scalars['DateTime']
galleryImagesUrls: Scalars['String'][]
@@ -2870,6 +2877,7 @@ export interface Query {
metadataTranslations: MetadataTranslation[]
minimalMetadata: MinimalMetadata
mostlyEmptyFieldMetadataIds: Scalars['UUID'][]
+ myApplicationPreferences: ApplicationPreferences[]
myCalendarChannels: CalendarChannel[]
myConnectedAccounts: ConnectedAccountPublicDTO[]
myMessageChannels: MessageChannel[]
@@ -4449,6 +4457,14 @@ export interface ApplicationHealthCheckResultGenqlSelection{
__scalar?: boolean | number
}
+export interface ApplicationPreferencesGenqlSelection{
+ applicationId?: boolean | number
+ settingsMenuItems?: SettingsMenuItemGenqlSelection
+ variables?: UserApplicationVariableValueGenqlSelection
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface ApplicationRegistrationGenqlSelection{
createdAt?: boolean | number
galleryImagesUrls?: boolean | number
@@ -7171,6 +7187,7 @@ export interface QueryGenqlSelection{
metadataTranslations?: (MetadataTranslationGenqlSelection & { __args: {input: MetadataTranslationsInput} })
minimalMetadata?: MinimalMetadataGenqlSelection
mostlyEmptyFieldMetadataIds?: { __args: {objectMetadataId: Scalars['UUID']} }
+ myApplicationPreferences?: ApplicationPreferencesGenqlSelection
myCalendarChannels?: (CalendarChannelGenqlSelection & { __args?: {connectedAccountId?: (Scalars['UUID'] | null)} })
myConnectedAccounts?: ConnectedAccountPublicDTOGenqlSelection
myMessageChannels?: (MessageChannelGenqlSelection & { __args?: {connectedAccountId?: (Scalars['UUID'] | null)} })
@@ -8918,6 +8935,14 @@ export interface WorkspaceUrlsAndIdGenqlSelection{
+ const ApplicationPreferences_possibleTypes: string[] = ['ApplicationPreferences']
+ export const isApplicationPreferences = (obj?: { __typename?: any } | null): obj is ApplicationPreferences => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationPreferences"')
+ return ApplicationPreferences_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const ApplicationRegistration_possibleTypes: string[] = ['ApplicationRegistration']
export const isApplicationRegistration = (obj?: { __typename?: any } | null): obj is ApplicationRegistration => {
if (!obj?.__typename) throw new Error('__typename is missing in "isApplicationRegistration"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 3776d36de45..bf95bd0d1c0 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -14,112 +14,112 @@ export default {
34,
46,
54,
- 56,
- 62,
- 74,
- 78,
+ 57,
+ 63,
+ 75,
79,
- 81,
- 86,
- 91,
- 97,
- 102,
- 108,
- 111,
+ 80,
+ 82,
+ 87,
+ 92,
+ 98,
+ 103,
+ 109,
112,
113,
114,
- 122,
- 124,
- 138,
- 142,
- 144,
- 146,
- 190,
+ 115,
+ 123,
+ 125,
+ 139,
+ 143,
+ 145,
+ 147,
191,
- 218,
- 222,
+ 192,
+ 219,
223,
- 225,
- 235,
- 241,
- 245,
- 249,
- 252,
- 259,
- 274,
- 276,
- 286,
- 293,
+ 224,
+ 226,
+ 236,
+ 242,
+ 246,
+ 250,
+ 253,
+ 260,
+ 275,
+ 277,
+ 287,
294,
295,
- 306,
- 308,
- 322,
+ 296,
+ 307,
+ 309,
323,
324,
325,
326,
327,
- 329,
+ 328,
330,
331,
- 334,
+ 332,
335,
- 337,
+ 336,
338,
- 341,
- 343,
- 347,
- 351,
- 360,
- 367,
+ 339,
+ 342,
+ 344,
+ 348,
+ 352,
+ 361,
368,
369,
- 372,
- 376,
+ 370,
+ 373,
377,
- 382,
- 386,
- 407,
- 409,
+ 378,
+ 383,
+ 387,
+ 408,
410,
- 413,
- 418,
- 430,
- 432,
- 436,
- 441,
- 458,
- 470,
+ 411,
+ 414,
+ 419,
+ 431,
+ 433,
+ 437,
+ 442,
+ 459,
471,
- 473,
- 497,
- 499,
- 501,
- 561,
- 581,
- 588,
- 590,
- 594,
- 605,
- 611,
+ 472,
+ 474,
+ 498,
+ 500,
+ 502,
+ 562,
+ 582,
+ 589,
+ 591,
+ 595,
+ 606,
612,
- 614,
+ 613,
615,
- 617,
+ 616,
618,
619,
- 622,
+ 620,
623,
- 628,
- 630,
- 633,
- 638,
+ 624,
+ 629,
+ 631,
+ 634,
639,
640,
- 643,
- 644
+ 641,
+ 644,
+ 645
],
"types": {
"ActivateWorkspaceInput": {
@@ -136,7 +136,7 @@ export default {
1
],
"operationSignature": [
- 293
+ 294
],
"queryId": [
1
@@ -147,10 +147,10 @@ export default {
},
"Agent": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"description": [
1
@@ -159,7 +159,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isCustom": [
4
@@ -171,7 +171,7 @@ export default {
1
],
"modelConfiguration": [
- 293
+ 294
],
"modelId": [
1
@@ -183,16 +183,16 @@ export default {
1
],
"responseFormat": [
- 293
+ 294
],
"roleId": [
- 497
+ 498
],
"triggers": [
- 293
+ 294
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -201,7 +201,7 @@ export default {
"Boolean": {},
"AgentChatEvent": {
"event": [
- 293
+ 294
],
"threadId": [
1
@@ -240,10 +240,10 @@ export default {
8
],
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"id": [
10
@@ -267,7 +267,7 @@ export default {
8
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -277,28 +277,28 @@ export default {
"Float": {},
"AgentChatThreadParticipant": {
"archivedAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"isSubscribed": [
4
],
"lastMentionedAt": [
- 191
+ 192
],
"lastReadAt": [
- 191
+ 192
],
"snoozedUntil": [
- 191
+ 192
],
"threadId": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -306,7 +306,7 @@ export default {
},
"AgentIdInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -314,19 +314,19 @@ export default {
},
"AgentMessage": {
"agentId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"parts": [
15
],
"processedAt": [
- 191
+ 192
],
"reactions": [
16
@@ -335,19 +335,19 @@ export default {
1
],
"senderUserWorkspaceId": [
- 497
+ 498
],
"senderWorkspaceMemberId": [
- 497
+ 498
],
"status": [
1
],
"threadId": [
- 497
+ 498
],
"turnId": [
- 497
+ 498
],
"__typename": [
1
@@ -355,7 +355,7 @@ export default {
},
"AgentMessagePart": {
"createdAt": [
- 191
+ 192
],
"errorMessage": [
1
@@ -364,7 +364,7 @@ export default {
1
],
"fileId": [
- 497
+ 498
],
"fileMediaType": [
1
@@ -373,10 +373,10 @@ export default {
1
],
"id": [
- 497
+ 498
],
"messageId": [
- 497
+ 498
],
"orderIndex": [
8
@@ -385,7 +385,7 @@ export default {
4
],
"providerMetadata": [
- 293
+ 294
],
"reasoningContent": [
1
@@ -421,13 +421,13 @@ export default {
1
],
"toolInput": [
- 293
+ 294
],
"toolName": [
1
],
"toolOutput": [
- 293
+ 294
],
"type": [
1
@@ -438,7 +438,7 @@ export default {
},
"AgentMessageReactionSummary": {
"agentIds": [
- 497
+ 498
],
"emoji": [
1
@@ -447,7 +447,7 @@ export default {
4
],
"workspaceMemberIds": [
- 497
+ 498
],
"__typename": [
1
@@ -455,7 +455,7 @@ export default {
},
"AgentRun": {
"createdAt": [
- 191
+ 192
],
"creatorName": [
1
@@ -467,13 +467,13 @@ export default {
11
],
"endedAt": [
- 191
+ 192
],
"errorMessage": [
1
],
"id": [
- 497
+ 498
],
"input": [
1
@@ -491,13 +491,13 @@ export default {
1
],
"startedAt": [
- 191
+ 192
],
"status": [
18
],
"threadId": [
- 497
+ 498
],
"threadTitle": [
1
@@ -512,13 +512,13 @@ export default {
"AgentTurnStatus": {},
"AggregateChartConfiguration": {
"aggregateFieldMetadataId": [
- 497
+ 498
],
"aggregateOperation": [
20
],
"configurationType": [
- 622
+ 623
],
"description": [
1
@@ -527,7 +527,7 @@ export default {
4
],
"filter": [
- 293
+ 294
],
"firstDayOfTheWeek": [
8
@@ -536,13 +536,13 @@ export default {
1
],
"numberFormat": [
- 124
+ 125
],
"prefix": [
1
],
"ratioAggregateConfig": [
- 402
+ 403
],
"suffix": [
1
@@ -557,16 +557,16 @@ export default {
"AggregateOperations": {},
"AiChatUsage": {
"consumedValue": [
- 81
+ 82
],
"kind": [
1
],
"limitValue": [
- 81
+ 82
],
"periodEnd": [
- 191
+ 192
],
"__typename": [
1
@@ -618,25 +618,25 @@ export default {
},
"ApiKey": {
"createdAt": [
- 191
+ 192
],
"expiresAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"name": [
1
],
"revokedAt": [
- 191
+ 192
],
"role": [
- 424
+ 425
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -644,16 +644,16 @@ export default {
},
"ApiKeyForRole": {
"expiresAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"name": [
1
],
"revokedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -693,7 +693,7 @@ export default {
1
],
"scope": [
- 142
+ 143
],
"scopes": [
1
@@ -719,7 +719,7 @@ export default {
34
],
"value": [
- 293
+ 294
],
"__typename": [
1
@@ -734,7 +734,7 @@ export default {
36
],
"receivedAt": [
- 191
+ 192
],
"subject": [
1
@@ -757,13 +757,13 @@ export default {
1
],
"personId": [
- 497
+ 498
],
"role": [
- 331
+ 332
],
"workspaceMemberId": [
- 497
+ 498
],
"__typename": [
1
@@ -774,31 +774,31 @@ export default {
3
],
"applicationRegistration": [
- 58
+ 59
],
"applicationRegistrationId": [
- 497
+ 498
],
"applicationVariables": [
- 61
+ 62
],
"autoUpgrade": [
4
],
"availablePackages": [
- 293
+ 294
],
"canBeUninstalled": [
4
],
"commandMenuItems": [
- 137
+ 138
],
"createdAt": [
- 191
+ 192
],
"defaultLogicFunctionRole": [
- 424
+ 425
],
"defaultRoleId": [
1
@@ -807,22 +807,22 @@ export default {
1
],
"frontComponents": [
- 266
+ 267
],
"healthCheckLogicFunctionId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"isUninstallBlockedByOtherWorkspaceInstallations": [
4
],
"logicFunctions": [
- 305
+ 306
],
"logoFileId": [
- 497
+ 498
],
"logoUrl": [
1
@@ -831,19 +831,19 @@ export default {
1
],
"objects": [
- 353
+ 354
],
"packageJsonChecksum": [
1
],
"packageJsonFileId": [
- 497
+ 498
],
"settingsCustomTabFrontComponentId": [
- 497
+ 498
],
"settingsMenuItems": [
- 457
+ 458
],
"universalIdentifier": [
1
@@ -855,7 +855,7 @@ export default {
1
],
"yarnLockFileId": [
- 497
+ 498
],
"__typename": [
1
@@ -863,7 +863,7 @@ export default {
},
"ApplicationAuthorization": {
"applicationId": [
- 497
+ 498
],
"applicationName": [
1
@@ -872,22 +872,22 @@ export default {
1
],
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"lastAuthorizedAt": [
- 191
+ 192
],
"lastUsedAt": [
- 191
+ 192
],
"scopes": [
1
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -898,7 +898,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -906,25 +906,25 @@ export default {
},
"ApplicationConnectedAccountDTO": {
"applicationId": [
- 497
+ 498
],
"archivedAt": [
- 191
+ 192
],
"authFailedAt": [
- 191
+ 192
],
"authFailedReason": [
1
],
"connectionParameters": [
- 398
+ 399
],
"connectionProviderId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"handle": [
1
@@ -933,16 +933,16 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isOwnedByCurrentUser": [
4
],
"lastCredentialsRefreshedAt": [
- 191
+ 192
],
"lastSignedInAt": [
- 191
+ 192
],
"name": [
1
@@ -951,16 +951,16 @@ export default {
1
],
"scope": [
- 142
+ 143
],
"scopes": [
1
],
"updatedAt": [
- 191
+ 192
],
"userWorkspaceId": [
- 497
+ 498
],
"visibility": [
1
@@ -977,7 +977,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"logoUrl": [
1
@@ -989,7 +989,7 @@ export default {
42
],
"scope": [
- 146
+ 147
],
"type": [
1
@@ -1020,7 +1020,7 @@ export default {
47
],
"manifest": [
- 293
+ 294
],
"__typename": [
1
@@ -1031,7 +1031,7 @@ export default {
1
],
"sourceType": [
- 56
+ 57
],
"universalIdentifier": [
1
@@ -1074,7 +1074,7 @@ export default {
},
"ApplicationFileCompletionError": {
"fileId": [
- 497
+ 498
],
"message": [
1
@@ -1085,7 +1085,7 @@ export default {
},
"ApplicationFileUploadError": {
"fileFolder": [
- 259
+ 260
],
"filePath": [
1
@@ -1099,7 +1099,7 @@ export default {
},
"ApplicationFileUploadRequestInput": {
"fileFolder": [
- 259
+ 260
],
"filePath": [
1
@@ -1116,13 +1116,13 @@ export default {
1
],
"expiresAt": [
- 191
+ 192
],
"fileFolder": [
- 259
+ 260
],
"fileId": [
- 497
+ 498
],
"filePath": [
1
@@ -1163,15 +1163,29 @@ export default {
]
},
"ApplicationHealthStatus": {},
+ "ApplicationPreferences": {
+ "applicationId": [
+ 498
+ ],
+ "settingsMenuItems": [
+ 458
+ ],
+ "variables": [
+ 594
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"ApplicationRegistration": {
"createdAt": [
- 191
+ 192
],
"galleryImagesUrls": [
1
],
"id": [
- 497
+ 498
],
"isConfigured": [
4
@@ -1204,19 +1218,19 @@ export default {
1
],
"ownerWorkspaceId": [
- 497
+ 498
],
"sourcePackage": [
1
],
"sourceType": [
- 56
+ 57
],
"universalIdentifier": [
1
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -1231,7 +1245,7 @@ export default {
8
],
"creditsUsedBreakdown": [
- 188
+ 189
],
"mostInstalledVersion": [
1
@@ -1243,7 +1257,7 @@ export default {
11
],
"versionDistribution": [
- 603
+ 604
],
"__typename": [
1
@@ -1251,7 +1265,7 @@ export default {
},
"ApplicationRegistrationSummary": {
"id": [
- 497
+ 498
],
"latestAvailableVersion": [
1
@@ -1260,7 +1274,7 @@ export default {
1
],
"sourceType": [
- 56
+ 57
],
"__typename": [
1
@@ -1268,13 +1282,13 @@ export default {
},
"ApplicationRegistrationVariable": {
"createdAt": [
- 191
+ 192
],
"description": [
1
],
"id": [
- 497
+ 498
],
"isDeprecated": [
4
@@ -1292,13 +1306,13 @@ export default {
1
],
"options": [
- 293
+ 294
],
"type": [
1
],
"updatedAt": [
- 191
+ 192
],
"value": [
1
@@ -1309,10 +1323,10 @@ export default {
},
"ApplicationTokenPair": {
"applicationAccessToken": [
- 66
+ 67
],
"applicationRefreshToken": [
- 66
+ 67
],
"__typename": [
1
@@ -1323,7 +1337,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isDeprecated": [
4
@@ -1341,10 +1355,10 @@ export default {
1
],
"options": [
- 293
+ 294
],
"scope": [
- 62
+ 63
],
"type": [
1
@@ -1359,13 +1373,13 @@ export default {
"ApplicationVariableScope": {},
"ApprovedAccessDomain": {
"createdAt": [
- 191
+ 192
],
"domain": [
1
],
"id": [
- 497
+ 498
],
"isValidated": [
4
@@ -1402,7 +1416,7 @@ export default {
4
],
"sso": [
- 440
+ 441
],
"__typename": [
1
@@ -1410,7 +1424,7 @@ export default {
},
"AuthToken": {
"expiresAt": [
- 191
+ 192
],
"token": [
1
@@ -1421,10 +1435,10 @@ export default {
},
"AuthTokenPair": {
"accessOrWorkspaceAgnosticToken": [
- 66
+ 67
],
"refreshToken": [
- 66
+ 67
],
"__typename": [
1
@@ -1432,7 +1446,7 @@ export default {
},
"AuthTokens": {
"tokens": [
- 67
+ 68
],
"__typename": [
1
@@ -1462,7 +1476,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"inviteHash": [
1
@@ -1477,10 +1491,10 @@ export default {
1
],
"sso": [
- 439
+ 440
],
"workspaceUrls": [
- 645
+ 646
],
"__typename": [
1
@@ -1488,10 +1502,10 @@ export default {
},
"AvailableWorkspaces": {
"availableWorkspacesForSignIn": [
- 71
+ 72
],
"availableWorkspacesForSignUp": [
- 71
+ 72
],
"__typename": [
1
@@ -1499,10 +1513,10 @@ export default {
},
"AvailableWorkspacesAndAccessTokens": {
"availableWorkspaces": [
- 72
+ 73
],
"tokens": [
- 67
+ 68
],
"__typename": [
1
@@ -1511,19 +1525,19 @@ export default {
"AxisNameDisplay": {},
"BarChartConfiguration": {
"aggregateFieldMetadataId": [
- 497
+ 498
],
"aggregateOperation": [
20
],
"axisNameDisplay": [
- 74
+ 75
],
"color": [
1
],
"configurationType": [
- 622
+ 623
],
"description": [
1
@@ -1535,31 +1549,31 @@ export default {
4
],
"filter": [
- 293
+ 294
],
"firstDayOfTheWeek": [
8
],
"groupMode": [
- 78
+ 79
],
"isCumulative": [
4
],
"layout": [
- 79
+ 80
],
"numberFormat": [
- 124
+ 125
],
"omitNullValues": [
4
],
"primaryAxisDateGranularity": [
- 367
+ 368
],
"primaryAxisGroupByFieldMetadataId": [
- 497
+ 498
],
"primaryAxisGroupBySubFieldName": [
1
@@ -1568,7 +1582,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 274
+ 275
],
"rangeMax": [
11
@@ -1577,10 +1591,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 367
+ 368
],
"secondaryAxisGroupByFieldMetadataId": [
- 497
+ 498
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -1589,7 +1603,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 274
+ 275
],
"splitMultiValueFields": [
4
@@ -1603,13 +1617,13 @@ export default {
},
"BarChartData": {
"data": [
- 293
+ 294
],
"formattedToRawLookup": [
- 293
+ 294
],
"groupMode": [
- 78
+ 79
],
"hasTooManyGroups": [
4
@@ -1621,10 +1635,10 @@ export default {
1
],
"layout": [
- 79
+ 80
],
"series": [
- 80
+ 81
],
"showDataLabels": [
4
@@ -1644,10 +1658,10 @@ export default {
},
"BarChartDataInput": {
"configuration": [
- 293
+ 294
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -1678,7 +1692,7 @@ export default {
1
],
"trialPeriods": [
- 106
+ 107
],
"__typename": [
1
@@ -1689,10 +1703,10 @@ export default {
4
],
"id": [
- 497
+ 498
],
"userCreditsFallback": [
- 594
+ 595
],
"__typename": [
1
@@ -1703,16 +1717,16 @@ export default {
1
],
"billingSubscriptions": [
- 101
+ 102
],
"currentBillingSubscription": [
- 101
+ 102
],
"hasPaymentMethod": [
4
],
"status": [
- 471
+ 472
],
"__typename": [
1
@@ -1720,7 +1734,7 @@ export default {
},
"BillingEntitlement": {
"key": [
- 86
+ 87
],
"value": [
4
@@ -1738,13 +1752,13 @@ export default {
1
],
"metadata": [
- 98
+ 99
],
"name": [
1
],
"prices": [
- 92
+ 93
],
"__typename": [
1
@@ -1758,13 +1772,13 @@ export default {
1
],
"metadata": [
- 98
+ 99
],
"name": [
1
],
"prices": [
- 93
+ 94
],
"__typename": [
1
@@ -1783,25 +1797,25 @@ export default {
},
"BillingPlan": {
"baseProducts": [
- 87
+ 88
],
"downgradePlanKeys": [
- 91
+ 92
],
"isSellable": [
4
],
"meteredProducts": [
- 88
+ 89
],
"planKey": [
- 91
+ 92
],
"resourceCreditProducts": [
- 87
+ 88
],
"upgradePlanKeys": [
- 91
+ 92
],
"__typename": [
1
@@ -1816,10 +1830,10 @@ export default {
4
],
"priceUsageType": [
- 108
+ 109
],
"recurringInterval": [
- 470
+ 471
],
"stripePriceId": [
1
@@ -1833,16 +1847,16 @@ export default {
},
"BillingPriceMetered": {
"priceUsageType": [
- 108
+ 109
],
"recurringInterval": [
- 470
+ 471
],
"stripePriceId": [
1
],
"tiers": [
- 94
+ 95
],
"__typename": [
1
@@ -1870,7 +1884,7 @@ export default {
1
],
"metadata": [
- 98
+ 99
],
"name": [
1
@@ -1887,16 +1901,16 @@ export default {
1
],
"metadata": [
- 98
+ 99
],
"name": [
1
],
"on_BillingLicensedProduct": [
- 87
+ 88
],
"on_BillingMeteredProduct": [
- 88
+ 89
],
"__typename": [
1
@@ -1908,13 +1922,13 @@ export default {
1
],
"planKey": [
- 91
+ 92
],
"priceUsageBased": [
- 108
+ 109
],
"productKey": [
- 97
+ 98
],
"__typename": [
1
@@ -1922,13 +1936,13 @@ export default {
},
"BillingResourceCreditUsage": {
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
],
"productKey": [
- 97
+ 98
],
"unitPriceCents": [
11
@@ -1968,31 +1982,31 @@ export default {
},
"BillingSubscription": {
"billingSubscriptionItems": [
- 103
+ 104
],
"cancelAt": [
- 191
+ 192
],
"collectionMethod": [
- 102
+ 103
],
"currentPeriodEnd": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"interval": [
- 470
+ 471
],
"metadata": [
- 293
+ 294
],
"phases": [
- 104
+ 105
],
"status": [
- 471
+ 472
],
"__typename": [
1
@@ -2001,7 +2015,7 @@ export default {
"BillingSubscriptionCollectionMethod": {},
"BillingSubscriptionItem": {
"billingProduct": [
- 96
+ 97
],
"creditAmount": [
11
@@ -2010,7 +2024,7 @@ export default {
4
],
"id": [
- 497
+ 498
],
"quantity": [
11
@@ -2030,7 +2044,7 @@ export default {
11
],
"items": [
- 105
+ 106
],
"start_date": [
11
@@ -2063,10 +2077,10 @@ export default {
},
"BillingUpdate": {
"billingSubscriptions": [
- 101
+ 102
],
"currentBillingSubscription": [
- 101
+ 102
],
"__typename": [
1
@@ -2086,13 +2100,13 @@ export default {
},
"CalendarChannel": {
"connectedAccountId": [
- 497
+ 498
],
"contactAutoCreationPolicy": [
- 111
+ 112
],
"createdAt": [
- 191
+ 192
],
"excludePrivateEvents": [
4
@@ -2101,7 +2115,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isContactAutoCreationEnabled": [
4
@@ -2110,25 +2124,25 @@ export default {
4
],
"syncStage": [
- 112
+ 113
],
"syncStageStartedAt": [
- 191
+ 192
],
"syncStatus": [
- 113
+ 114
],
"syncedAt": [
- 191
+ 192
],
"throttleFailureCount": [
11
],
"updatedAt": [
- 191
+ 192
],
"visibility": [
- 114
+ 115
],
"__typename": [
1
@@ -2140,7 +2154,7 @@ export default {
"CalendarChannelVisibility": {},
"CalendarConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -2148,7 +2162,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -2156,7 +2170,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -2212,7 +2226,7 @@ export default {
},
"Captcha": {
"provider": [
- 122
+ 123
],
"siteKey": [
1
@@ -2233,7 +2247,7 @@ export default {
"ChartNumberFormat": {},
"ChatConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -2241,10 +2255,10 @@ export default {
},
"ChatStreamCatchupChunks": {
"chunks": [
- 293
+ 294
],
"error": [
- 127
+ 128
],
"maxSeq": [
8
@@ -2266,7 +2280,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -2391,7 +2405,7 @@ export default {
11
],
"modelFamily": [
- 347
+ 348
],
"modelFamilyLabel": [
1
@@ -2400,7 +2414,7 @@ export default {
1
],
"nativeCapabilities": [
- 349
+ 350
],
"outputCostPerMillionTokens": [
11
@@ -2434,13 +2448,13 @@ export default {
},
"ClientConfig": {
"aiEvaluationModels": [
- 131
+ 132
],
"aiModelTiers": [
- 133
+ 134
],
"aiModels": [
- 132
+ 133
],
"allowRequestsToTwentyIcons": [
4
@@ -2455,10 +2469,10 @@ export default {
1
],
"authProviders": [
- 65
+ 66
],
"billing": [
- 82
+ 83
],
"calendarBookingPageId": [
1
@@ -2467,7 +2481,7 @@ export default {
4
],
"captcha": [
- 121
+ 122
],
"defaultSubdomain": [
1
@@ -2530,16 +2544,16 @@ export default {
4
],
"maintenance": [
- 135
+ 136
],
"publicFeatureFlags": [
- 396
+ 397
],
"publicFunctionDomain": [
1
],
"sentry": [
- 455
+ 456
],
"serverUrl": [
1
@@ -2548,7 +2562,7 @@ export default {
4
],
"support": [
- 472
+ 473
],
"__typename": [
1
@@ -2556,13 +2570,13 @@ export default {
},
"ClientConfigMaintenanceMode": {
"endAt": [
- 191
+ 192
],
"link": [
1
],
"startAt": [
- 191
+ 192
],
"__typename": [
1
@@ -2581,13 +2595,13 @@ export default {
},
"CommandMenuItem": {
"applicationId": [
- 497
+ 498
],
"availabilityObjectMetadataId": [
- 497
+ 498
],
"availabilityType": [
- 138
+ 139
],
"conditionalAvailabilityExpression": [
1
@@ -2596,19 +2610,19 @@ export default {
1
],
"coreWorkflowVersionId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"engineComponentKey": [
- 225
+ 226
],
"frontComponent": [
- 266
+ 267
],
"frontComponentId": [
- 497
+ 498
],
"hotKeys": [
1
@@ -2617,7 +2631,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -2629,13 +2643,13 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 497
+ 498
],
"pageLayoutId": [
- 497
+ 498
],
"payload": [
- 139
+ 140
],
"position": [
11
@@ -2644,13 +2658,13 @@ export default {
1
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"workflowVersionId": [
- 497
+ 498
],
"__typename": [
1
@@ -2659,10 +2673,10 @@ export default {
"CommandMenuItemAvailabilityType": {},
"CommandMenuItemPayload": {
"on_ObjectMetadataCommandMenuItemPayload": [
- 359
+ 360
],
"on_PathCommandMenuItemPayload": [
- 384
+ 385
],
"__typename": [
1
@@ -2673,7 +2687,7 @@ export default {
48
],
"files": [
- 257
+ 258
],
"__typename": [
1
@@ -2681,25 +2695,25 @@ export default {
},
"ConnectedAccountPublicDTO": {
"applicationId": [
- 497
+ 498
],
"archivedAt": [
- 191
+ 192
],
"authFailedAt": [
- 191
+ 192
],
"authFailedReason": [
1
],
"connectionParameters": [
- 398
+ 399
],
"connectionProviderId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"handle": [
1
@@ -2708,13 +2722,13 @@ export default {
1
],
"id": [
- 497
+ 498
],
"lastCredentialsRefreshedAt": [
- 191
+ 192
],
"lastSignedInAt": [
- 191
+ 192
],
"name": [
1
@@ -2723,16 +2737,16 @@ export default {
1
],
"scope": [
- 142
+ 143
],
"scopes": [
1
],
"updatedAt": [
- 191
+ 192
],
"userWorkspaceId": [
- 497
+ 498
],
"visibility": [
1
@@ -2744,19 +2758,19 @@ export default {
"ConnectedAccountScope": {},
"ConnectedImapSmtpCaldavAccount": {
"connectionParameters": [
- 279
+ 280
],
"handle": [
1
],
"id": [
- 497
+ 498
],
"provider": [
1
],
"userWorkspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -2765,7 +2779,7 @@ export default {
"ConnectionCursor": {},
"ConnectionParametersInput": {
"connectionSecurity": [
- 218
+ 219
],
"host": [
1
@@ -2795,7 +2809,7 @@ export default {
1
],
"modelConfiguration": [
- 293
+ 294
],
"modelId": [
1
@@ -2807,13 +2821,13 @@ export default {
1
],
"responseFormat": [
- 293
+ 294
],
"roleId": [
- 497
+ 498
],
"triggers": [
- 293
+ 294
],
"__typename": [
1
@@ -2830,7 +2844,7 @@ export default {
1
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -2838,7 +2852,7 @@ export default {
},
"CreateAppMessageChannelInput": {
"connectedAccountId": [
- 497
+ 498
],
"displayName": [
1
@@ -2847,7 +2861,7 @@ export default {
1
],
"visibility": [
- 327
+ 328
],
"__typename": [
1
@@ -2866,7 +2880,7 @@ export default {
},
"CreateApplicationRegistration": {
"applicationRegistration": [
- 55
+ 56
],
"clientSecret": [
1
@@ -2963,10 +2977,10 @@ export default {
},
"CreateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 497
+ 498
],
"availabilityType": [
- 138
+ 139
],
"conditionalAvailabilityExpression": [
1
@@ -2975,13 +2989,13 @@ export default {
1
],
"coreWorkflowVersionId": [
- 497
+ 498
],
"engineComponentKey": [
- 225
+ 226
],
"frontComponentId": [
- 497
+ 498
],
"hotKeys": [
1
@@ -2996,13 +3010,13 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 497
+ 498
],
"pageLayoutId": [
- 497
+ 498
],
"payload": [
- 293
+ 294
],
"position": [
11
@@ -3011,7 +3025,7 @@ export default {
1
],
"workflowVersionId": [
- 497
+ 498
],
"__typename": [
1
@@ -3033,7 +3047,7 @@ export default {
1
],
"messageChannel": [
- 321
+ 322
],
"__typename": [
1
@@ -3049,7 +3063,7 @@ export default {
},
"CreateFieldInput": {
"defaultValue": [
- 293
+ 294
],
"description": [
1
@@ -3091,25 +3105,25 @@ export default {
1
],
"morphRelationsCreationPayload": [
- 293
+ 294
],
"name": [
1
],
"objectMetadataId": [
- 497
+ 498
],
"options": [
- 293
+ 294
],
"relationCreationPayload": [
- 293
+ 294
],
"settings": [
- 293
+ 294
],
"type": [
- 252
+ 253
],
"__typename": [
1
@@ -3129,7 +3143,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"name": [
1
@@ -3143,7 +3157,7 @@ export default {
},
"CreateIndexFieldInput": {
"fieldMetadataId": [
- 497
+ 498
],
"subFieldName": [
1
@@ -3154,13 +3168,13 @@ export default {
},
"CreateIndexInput": {
"fields": [
- 162
+ 163
],
"indexType": [
- 286
+ 287
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -3168,40 +3182,40 @@ export default {
},
"CreateLogicFunctionFromSourceInput": {
"cronTriggerSettings": [
- 293
+ 294
],
"databaseEventTriggerSettings": [
- 293
+ 294
],
"description": [
1
],
"httpRouteTriggerSettings": [
- 293
+ 294
],
"id": [
- 497
+ 498
],
"name": [
1
],
"serverRouteTriggerSettings": [
- 293
+ 294
],
"source": [
- 293
+ 294
],
"timeoutSeconds": [
11
],
"toolTriggerSettings": [
- 293
+ 294
],
"universalIdentifier": [
- 497
+ 498
],
"workflowActionTriggerSettings": [
- 293
+ 294
],
"__typename": [
1
@@ -3212,7 +3226,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 497
+ 498
],
"__typename": [
1
@@ -3223,13 +3237,13 @@ export default {
1
],
"folderId": [
- 497
+ 498
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"link": [
1
@@ -3238,25 +3252,25 @@ export default {
1
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
],
"targetObjectMetadataId": [
- 497
+ 498
],
"targetRecordId": [
- 497
+ 498
],
"type": [
- 351
+ 352
],
"userWorkspaceId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3294,7 +3308,7 @@ export default {
1
],
"primaryKeyFieldMetadataSettings": [
- 293
+ 294
],
"shortcut": [
1
@@ -3308,7 +3322,7 @@ export default {
},
"CreateOneFieldMetadataInput": {
"field": [
- 160
+ 161
],
"__typename": [
1
@@ -3316,7 +3330,7 @@ export default {
},
"CreateOneIndexInput": {
"index": [
- 163
+ 164
],
"__typename": [
1
@@ -3324,7 +3338,7 @@ export default {
},
"CreateOneObjectInput": {
"object": [
- 167
+ 168
],
"__typename": [
1
@@ -3335,10 +3349,10 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"type": [
- 377
+ 378
],
"__typename": [
1
@@ -3346,10 +3360,10 @@ export default {
},
"CreatePageLayoutTabInput": {
"layoutMode": [
- 376
+ 377
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
@@ -3363,22 +3377,22 @@ export default {
},
"CreatePageLayoutWidgetInput": {
"configuration": [
- 293
+ 294
],
"objectMetadataId": [
- 497
+ 498
],
"pageLayoutTabId": [
- 497
+ 498
],
"position": [
- 293
+ 294
],
"title": [
1
],
"type": [
- 623
+ 624
],
"__typename": [
1
@@ -3386,16 +3400,16 @@ export default {
},
"CreateRecordExportInput": {
"fieldMetadataIds": [
- 497
+ 498
],
"filter": [
- 293
+ 294
],
"objectMetadataId": [
- 497
+ 498
],
"orderBy": [
- 293
+ 294
],
"__typename": [
1
@@ -3456,7 +3470,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"label": [
1
@@ -3476,7 +3490,7 @@ export default {
1
],
"visibility": [
- 501
+ 502
],
"__typename": [
1
@@ -3484,16 +3498,16 @@ export default {
},
"CreateUsageLimitInput": {
"burstValue": [
- 81
+ 82
],
"limitKind": [
1
],
"limitValue": [
- 81
+ 82
],
"operationType": [
- 581
+ 582
],
"periodCount": [
8
@@ -3502,7 +3516,7 @@ export default {
1
],
"resourceType": [
- 588
+ 589
],
"spenderId": [
1
@@ -3511,7 +3525,7 @@ export default {
1
],
"unit": [
- 590
+ 591
],
"__typename": [
1
@@ -3522,7 +3536,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 497
+ 498
],
"expression": [
1
@@ -3540,7 +3554,7 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -3548,7 +3562,7 @@ export default {
},
"CreateViewFieldGroupInput": {
"id": [
- 497
+ 498
],
"isVisible": [
4
@@ -3560,7 +3574,7 @@ export default {
11
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3571,10 +3585,10 @@ export default {
20
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"isVisible": [
4
@@ -3586,10 +3600,10 @@ export default {
11
],
"viewFieldGroupId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3597,19 +3611,19 @@ export default {
},
"CreateViewFilterGroupInput": {
"id": [
- 497
+ 498
],
"logicalOperator": [
- 611
+ 612
],
"parentViewFilterGroupId": [
- 497
+ 498
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3617,31 +3631,31 @@ export default {
},
"CreateViewFilterInput": {
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"operand": [
- 612
+ 613
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 497
+ 498
],
"subFieldName": [
1
],
"value": [
- 293
+ 294
],
"viewFilterGroupId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3652,7 +3666,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isVisible": [
4
@@ -3661,7 +3675,7 @@ export default {
11
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3672,13 +3686,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 497
+ 498
],
"calendarFieldMetadataId": [
- 497
+ 498
],
"calendarLayout": [
- 605
+ 606
],
"groupLoadLimit": [
8
@@ -3687,7 +3701,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isCompact": [
4
@@ -3696,25 +3710,25 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 497
+ 498
],
"kanbanColumnWidth": [
8
],
"key": [
- 614
+ 615
],
"mainGroupByFieldMetadataId": [
- 497
+ 498
],
"name": [
1
],
"objectMetadataId": [
- 497
+ 498
],
"openRecordIn": [
- 615
+ 616
],
"position": [
11
@@ -3723,10 +3737,10 @@ export default {
4
],
"type": [
- 618
+ 619
],
"visibility": [
- 619
+ 620
],
"__typename": [
1
@@ -3734,19 +3748,19 @@ export default {
},
"CreateViewSortInput": {
"direction": [
- 617
+ 618
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"subFieldName": [
1
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -3757,7 +3771,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"operations": [
1
@@ -3780,10 +3794,10 @@ export default {
1
],
"operation": [
- 581
+ 582
],
"resource": [
- 588
+ 589
],
"__typename": [
1
@@ -3791,10 +3805,10 @@ export default {
},
"CursorPaging": {
"after": [
- 144
+ 145
],
"before": [
- 144
+ 145
],
"first": [
8
@@ -3810,7 +3824,7 @@ export default {
"DateTime": {},
"DeleteApprovedAccessDomainInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3818,7 +3832,7 @@ export default {
},
"DeleteOneFieldInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3826,7 +3840,7 @@ export default {
},
"DeleteOneIndexInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3834,7 +3848,7 @@ export default {
},
"DeleteOneObjectInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3842,7 +3856,7 @@ export default {
},
"DeleteSso": {
"identityProviderId": [
- 497
+ 498
],
"__typename": [
1
@@ -3850,7 +3864,7 @@ export default {
},
"DeleteSsoInput": {
"identityProviderId": [
- 497
+ 498
],
"__typename": [
1
@@ -3866,7 +3880,7 @@ export default {
},
"DeleteViewFieldGroupInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3874,7 +3888,7 @@ export default {
},
"DeleteViewFieldInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3882,7 +3896,7 @@ export default {
},
"DeleteViewFilterInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3890,7 +3904,7 @@ export default {
},
"DeleteViewGroupInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3898,7 +3912,7 @@ export default {
},
"DeleteViewSortInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3909,16 +3923,16 @@ export default {
1
],
"id": [
- 497
+ 498
],
"name": [
- 269
+ 270
],
"userEmail": [
1
],
"userWorkspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -3926,7 +3940,7 @@ export default {
},
"DestroyViewFieldGroupInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3934,7 +3948,7 @@ export default {
},
"DestroyViewFieldInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3942,7 +3956,7 @@ export default {
},
"DestroyViewFilterInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3950,7 +3964,7 @@ export default {
},
"DestroyViewGroupInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -3958,7 +3972,7 @@ export default {
},
"DestroyViewSortInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -4000,13 +4014,13 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isCustomDomainEnabled": [
4
],
"records": [
- 211
+ 212
],
"__typename": [
1
@@ -4017,10 +4031,10 @@ export default {
1
],
"id": [
- 497
+ 498
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
@@ -4043,7 +4057,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"memberCount": [
11
@@ -4063,7 +4077,7 @@ export default {
},
"EditSso": {
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -4072,10 +4086,10 @@ export default {
1
],
"status": [
- 441
+ 442
],
"type": [
- 276
+ 277
],
"__typename": [
1
@@ -4083,10 +4097,10 @@ export default {
},
"EditSsoInput": {
"id": [
- 497
+ 498
],
"status": [
- 441
+ 442
],
"__typename": [
1
@@ -4094,13 +4108,13 @@ export default {
},
"EmailAccountConnectionParameters": {
"CALDAV": [
- 145
+ 146
],
"IMAP": [
- 145
+ 146
],
"SMTP": [
- 145
+ 146
],
"name": [
1
@@ -4120,7 +4134,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -4128,31 +4142,31 @@ export default {
},
"EmailingDomain": {
"createdAt": [
- 191
+ 192
],
"domain": [
1
],
"id": [
- 497
+ 498
],
"status": [
- 222
+ 223
],
"tenantStatus": [
- 223
+ 224
],
"unsubscribeHostnameStatus": [
- 499
+ 500
],
"updatedAt": [
- 191
+ 192
],
"verificationRecords": [
- 600
+ 601
],
"verifiedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -4162,7 +4176,7 @@ export default {
"EmailingDomainTenantStatus": {},
"EmailsConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -4180,7 +4194,7 @@ export default {
1
],
"payload": [
- 293
+ 294
],
"retryLimit": [
8
@@ -4194,7 +4208,7 @@ export default {
1
],
"payload": [
- 293
+ 294
],
"__typename": [
1
@@ -4219,13 +4233,13 @@ export default {
8
],
"jobs": [
- 227
+ 228
],
"logicFunctionUniversalIdentifier": [
1
],
"payloads": [
- 293
+ 294
],
"retryLimit": [
8
@@ -4253,7 +4267,7 @@ export default {
},
"EnterpriseLicenseInfoDTO": {
"expiresAt": [
- 191
+ 192
],
"isValid": [
4
@@ -4270,13 +4284,13 @@ export default {
},
"EnterpriseSubscriptionStatusDTO": {
"cancelAt": [
- 191
+ 192
],
"currentPeriodEnd": [
- 191
+ 192
],
"expiresAt": [
- 191
+ 192
],
"isCancellationScheduled": [
4
@@ -4293,10 +4307,10 @@ export default {
},
"EventLogDateRangeInput": {
"end": [
- 191
+ 192
],
"start": [
- 191
+ 192
],
"__typename": [
1
@@ -4307,7 +4321,7 @@ export default {
1
],
"operand": [
- 235
+ 236
],
"values": [
1
@@ -4319,13 +4333,13 @@ export default {
"EventLogFilterOperand": {},
"EventLogFiltersInput": {
"dateRange": [
- 233
+ 234
],
"eventType": [
1
],
"fieldFilters": [
- 234
+ 235
],
"objectMetadataId": [
1
@@ -4356,13 +4370,13 @@ export default {
1
],
"filters": [
- 236
+ 237
],
"first": [
8
],
"table": [
- 241
+ 242
],
"__typename": [
1
@@ -4370,10 +4384,10 @@ export default {
},
"EventLogQueryResult": {
"pageInfo": [
- 237
+ 238
],
"records": [
- 240
+ 241
],
"totalCount": [
8
@@ -4393,13 +4407,13 @@ export default {
1
],
"properties": [
- 293
+ 294
],
"recordId": [
1
],
"timestamp": [
- 191
+ 192
],
"userId": [
1
@@ -4414,13 +4428,13 @@ export default {
1
],
"metadataEvents": [
- 336
+ 337
],
"objectRecordEventsWithQueryIds": [
- 366
+ 367
],
"queueJobEvents": [
- 296
+ 297
],
"__typename": [
1
@@ -4428,10 +4442,10 @@ export default {
},
"ExecuteOneLogicFunctionInput": {
"id": [
- 497
+ 498
],
"payload": [
- 293
+ 294
],
"__typename": [
1
@@ -4439,7 +4453,7 @@ export default {
},
"FeatureFlag": {
"key": [
- 245
+ 246
],
"value": [
4
@@ -4451,13 +4465,13 @@ export default {
"FeatureFlagKey": {},
"Field": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"defaultValue": [
- 293
+ 294
],
"description": [
1
@@ -4466,7 +4480,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -4499,40 +4513,40 @@ export default {
1
],
"morphId": [
- 497
+ 498
],
"morphRelations": [
- 417
+ 418
],
"name": [
1
],
"object": [
- 353
+ 354
],
"objectMetadataId": [
- 497
+ 498
],
"options": [
- 293
+ 294
],
"relation": [
- 417
+ 418
],
"settings": [
- 293
+ 294
],
"type": [
- 252
+ 253
],
"universalIdentifier": [
1
],
"updatedAt": [
- 191
+ 192
],
"writability": [
- 343
+ 344
],
"__typename": [
1
@@ -4540,10 +4554,10 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 622
+ 623
],
"fieldDisplayMode": [
- 249
+ 250
],
"fieldMetadataId": [
1
@@ -4563,10 +4577,10 @@ export default {
},
"FieldConnection": {
"edges": [
- 250
+ 251
],
"pageInfo": [
- 373
+ 374
],
"__typename": [
1
@@ -4575,10 +4589,10 @@ export default {
"FieldDisplayMode": {},
"FieldEdge": {
"cursor": [
- 144
+ 145
],
"node": [
- 246
+ 247
],
"__typename": [
1
@@ -4586,28 +4600,28 @@ export default {
},
"FieldFilter": {
"and": [
- 251
+ 252
],
"id": [
- 498
+ 499
],
"isActive": [
- 109
+ 110
],
"isSystem": [
- 109
+ 110
],
"isUIEditable": [
- 109
+ 110
],
"isUIReadOnly": [
- 109
+ 110
],
"objectMetadataId": [
- 498
+ 499
],
"or": [
- 251
+ 252
],
"__typename": [
1
@@ -4622,16 +4636,16 @@ export default {
4
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"objectMetadataId": [
- 497
+ 498
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -4645,10 +4659,10 @@ export default {
4
],
"fieldMetadataId": [
- 497
+ 498
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -4656,7 +4670,7 @@ export default {
},
"FieldRichTextConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -4664,7 +4678,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 622
+ 623
],
"newFieldDefaultVisibility": [
4
@@ -4681,10 +4695,10 @@ export default {
},
"File": {
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"path": [
1
@@ -4701,7 +4715,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -4713,10 +4727,10 @@ export default {
1
],
"expiresAt": [
- 191
+ 192
],
"fileId": [
- 497
+ 498
],
"uploadUrl": [
1
@@ -4727,10 +4741,10 @@ export default {
},
"FileWithSignedUrl": {
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"path": [
1
@@ -4747,7 +4761,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -4755,7 +4769,7 @@ export default {
},
"FindAvailableSSOIDP": {
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -4764,13 +4778,13 @@ export default {
1
],
"status": [
- 441
+ 442
],
"type": [
- 276
+ 277
],
"workspace": [
- 642
+ 643
],
"__typename": [
1
@@ -4784,13 +4798,13 @@ export default {
8
],
"reason": [
- 334
+ 335
],
"searchTerm": [
1
],
"unsubscribeTopicId": [
- 497
+ 498
],
"__typename": [
1
@@ -4798,7 +4812,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 622
+ 623
],
"fieldMetadataId": [
1
@@ -4812,16 +4826,16 @@ export default {
1
],
"applicationId": [
- 497
+ 498
],
"applicationName": [
1
],
"applicationTokenPair": [
- 60
+ 61
],
"applicationVariables": [
- 293
+ 294
],
"builtComponentChecksum": [
1
@@ -4833,7 +4847,7 @@ export default {
1
],
"createdAt": [
- 191
+ 192
],
"description": [
1
@@ -4842,7 +4856,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isHeadless": [
4
@@ -4854,16 +4868,16 @@ export default {
1
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"usesSdkClient": [
4
],
"widgetAvailability": [
- 268
+ 269
],
"__typename": [
1
@@ -4871,13 +4885,13 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 622
+ 623
],
"frontComponentId": [
- 497
+ 498
],
"headerCommandMenuItemUniversalIdentifiers": [
- 497
+ 498
],
"__typename": [
1
@@ -4885,10 +4899,10 @@ export default {
},
"FrontComponentWidgetAvailability": {
"objectMetadataId": [
- 497
+ 498
],
"pageLayoutType": [
- 377
+ 378
],
"__typename": [
1
@@ -4907,7 +4921,7 @@ export default {
},
"GetApiKeyInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -4918,7 +4932,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"type": [
1
@@ -4929,7 +4943,7 @@ export default {
},
"GetAuthorizationUrlForSSOInput": {
"identityProviderId": [
- 497
+ 498
],
"workspaceInviteHash": [
1
@@ -4940,7 +4954,7 @@ export default {
},
"GrantApplicationCapabilitiesInput": {
"applicationId": [
- 497
+ 498
],
"capabilities": [
1
@@ -4970,7 +4984,7 @@ export default {
"IdentityProviderType": {},
"IframeConfiguration": {
"configurationType": [
- 622
+ 623
],
"url": [
1
@@ -4992,13 +5006,13 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParameters": {
"CALDAV": [
- 280
+ 281
],
"IMAP": [
- 280
+ 281
],
"SMTP": [
- 280
+ 281
],
"name": [
1
@@ -5009,7 +5023,7 @@ export default {
},
"ImapSmtpCaldavPublicConnectionParams": {
"connectionSecurity": [
- 218
+ 219
],
"host": [
1
@@ -5026,10 +5040,10 @@ export default {
},
"Impersonate": {
"loginToken": [
- 66
+ 67
],
"workspace": [
- 646
+ 647
],
"__typename": [
1
@@ -5037,16 +5051,16 @@ export default {
},
"Index": {
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"indexFieldMetadataList": [
- 284
+ 285
],
"indexType": [
- 286
+ 287
],
"indexWhereClause": [
1
@@ -5061,7 +5075,7 @@ export default {
1
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -5069,10 +5083,10 @@ export default {
},
"IndexEdge": {
"cursor": [
- 144
+ 145
],
"node": [
- 282
+ 283
],
"__typename": [
1
@@ -5080,13 +5094,13 @@ export default {
},
"IndexField": {
"createdAt": [
- 191
+ 192
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"order": [
11
@@ -5095,7 +5109,7 @@ export default {
1
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -5103,16 +5117,16 @@ export default {
},
"IndexFilter": {
"and": [
- 285
+ 286
],
"id": [
- 498
+ 499
],
"isCustom": [
- 109
+ 110
],
"or": [
- 285
+ 286
],
"__typename": [
1
@@ -5121,7 +5135,7 @@ export default {
"IndexType": {},
"IngestAppMessagesInput": {
"messageChannelId": [
- 497
+ 498
],
"messages": [
35
@@ -5132,7 +5146,7 @@ export default {
},
"IngestAppMessagesOutput": {
"messages": [
- 289
+ 290
],
"__typename": [
1
@@ -5143,10 +5157,10 @@ export default {
1
],
"messageId": [
- 497
+ 498
],
"messageThreadId": [
- 497
+ 498
],
"__typename": [
1
@@ -5205,7 +5219,7 @@ export default {
11
],
"state": [
- 295
+ 296
],
"__typename": [
1
@@ -5213,19 +5227,19 @@ export default {
},
"LineChartConfiguration": {
"aggregateFieldMetadataId": [
- 497
+ 498
],
"aggregateOperation": [
20
],
"axisNameDisplay": [
- 74
+ 75
],
"color": [
1
],
"configurationType": [
- 622
+ 623
],
"description": [
1
@@ -5237,7 +5251,7 @@ export default {
4
],
"filter": [
- 293
+ 294
],
"firstDayOfTheWeek": [
8
@@ -5249,16 +5263,16 @@ export default {
4
],
"numberFormat": [
- 124
+ 125
],
"omitNullValues": [
4
],
"primaryAxisDateGranularity": [
- 367
+ 368
],
"primaryAxisGroupByFieldMetadataId": [
- 497
+ 498
],
"primaryAxisGroupBySubFieldName": [
1
@@ -5267,7 +5281,7 @@ export default {
1
],
"primaryAxisOrderBy": [
- 274
+ 275
],
"rangeMax": [
11
@@ -5276,10 +5290,10 @@ export default {
11
],
"secondaryAxisGroupByDateGranularity": [
- 367
+ 368
],
"secondaryAxisGroupByFieldMetadataId": [
- 497
+ 498
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -5288,7 +5302,7 @@ export default {
1
],
"secondaryAxisOrderBy": [
- 274
+ 275
],
"splitMultiValueFields": [
4
@@ -5302,13 +5316,13 @@ export default {
},
"LineChartData": {
"formattedToRawLookup": [
- 293
+ 294
],
"hasTooManyGroups": [
4
],
"series": [
- 301
+ 302
],
"showDataLabels": [
4
@@ -5328,10 +5342,10 @@ export default {
},
"LineChartDataInput": {
"configuration": [
- 293
+ 294
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -5350,7 +5364,7 @@ export default {
},
"LineChartSeries": {
"data": [
- 300
+ 301
],
"key": [
1
@@ -5367,7 +5381,7 @@ export default {
1
],
"scope": [
- 142
+ 143
],
"userWorkspaceId": [
1
@@ -5381,7 +5395,7 @@ export default {
},
"ListAppMessageChannelsInput": {
"connectedAccountId": [
- 497
+ 498
],
"__typename": [
1
@@ -5400,34 +5414,34 @@ export default {
},
"LogicFunction": {
"applicationId": [
- 497
+ 498
],
"canRunOnDemand": [
4
],
"createdAt": [
- 191
+ 192
],
"cronTriggerSettings": [
- 293
+ 294
],
"databaseEventTriggerSettings": [
- 293
+ 294
],
"description": [
1
],
"executionMode": [
- 306
+ 307
],
"handlerName": [
1
],
"httpRouteTriggerSettings": [
- 293
+ 294
],
"id": [
- 497
+ 498
],
"name": [
1
@@ -5442,16 +5456,16 @@ export default {
11
],
"toolTriggerSettings": [
- 293
+ 294
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"workflowActionTriggerSettings": [
- 293
+ 294
],
"__typename": [
1
@@ -5460,19 +5474,19 @@ export default {
"LogicFunctionExecutionMode": {},
"LogicFunctionExecutionResult": {
"data": [
- 293
+ 294
],
"duration": [
11
],
"error": [
- 293
+ 294
],
"logs": [
1
],
"status": [
- 308
+ 309
],
"__typename": [
1
@@ -5495,7 +5509,7 @@ export default {
1
],
"universalIdentifier": [
- 497
+ 498
],
"__typename": [
1
@@ -5503,19 +5517,19 @@ export default {
},
"LogicFunctionLogsInput": {
"applicationId": [
- 497
+ 498
],
"applicationUniversalIdentifier": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"name": [
1
],
"universalIdentifier": [
- 497
+ 498
],
"__typename": [
1
@@ -5523,7 +5537,7 @@ export default {
},
"LoginToken": {
"loginToken": [
- 66
+ 67
],
"__typename": [
1
@@ -5605,13 +5619,13 @@ export default {
1
],
"manifest": [
- 293
+ 294
],
"name": [
1
],
"objects": [
- 315
+ 316
],
"pricingDescription": [
1
@@ -5620,7 +5634,7 @@ export default {
1
],
"roles": [
- 316
+ 317
],
"screenshots": [
1
@@ -5629,7 +5643,7 @@ export default {
1
],
"sourceType": [
- 56
+ 57
],
"termsUrl": [
1
@@ -5681,7 +5695,7 @@ export default {
1
],
"fieldPermissions": [
- 317
+ 318
],
"icon": [
1
@@ -5690,7 +5704,7 @@ export default {
1
],
"objectPermissions": [
- 318
+ 319
],
"permissionFlagUniversalIdentifiers": [
1
@@ -5747,7 +5761,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -5755,7 +5769,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -5763,16 +5777,16 @@ export default {
},
"MessageChannel": {
"connectedAccount": [
- 141
+ 142
],
"connectedAccountId": [
- 497
+ 498
],
"contactAutoCreationPolicy": [
- 322
+ 323
],
"createdAt": [
- 191
+ 192
],
"displayName": [
1
@@ -5787,7 +5801,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"importProgress": [
8
@@ -5799,37 +5813,37 @@ export default {
4
],
"messageFolderImportPolicy": [
- 329
+ 330
],
"pendingGroupEmailsAction": [
- 323
+ 324
],
"syncStage": [
- 324
+ 325
],
"syncStageStartedAt": [
- 191
+ 192
],
"syncStatus": [
- 325
+ 326
],
"syncedAt": [
- 191
+ 192
],
"throttleFailureCount": [
11
],
"throttleRetryAfter": [
- 191
+ 192
],
"type": [
- 326
+ 327
],
"updatedAt": [
- 191
+ 192
],
"visibility": [
- 327
+ 328
],
"__typename": [
1
@@ -5843,13 +5857,13 @@ export default {
"MessageChannelVisibility": {},
"MessageFolder": {
"createdAt": [
- 191
+ 192
],
"externalId": [
1
],
"id": [
- 497
+ 498
],
"isSentFolder": [
4
@@ -5858,7 +5872,7 @@ export default {
4
],
"messageChannelId": [
- 497
+ 498
],
"name": [
1
@@ -5867,10 +5881,10 @@ export default {
1
],
"pendingSyncAction": [
- 330
+ 331
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -5881,22 +5895,22 @@ export default {
"MessageParticipantRole": {},
"MessageSuppression": {
"createdAt": [
- 191
+ 192
],
"emailAddress": [
1
],
"id": [
- 497
+ 498
],
"reason": [
- 334
+ 335
],
"source": [
- 335
+ 336
],
"unsubscribeTopicId": [
- 497
+ 498
],
"__typename": [
1
@@ -5904,7 +5918,7 @@ export default {
},
"MessageSuppressionList": {
"records": [
- 332
+ 333
],
"totalCount": [
8
@@ -5920,13 +5934,13 @@ export default {
1
],
"properties": [
- 365
+ 366
],
"recordId": [
1
],
"type": [
- 337
+ 338
],
"updatedCollectionHash": [
1
@@ -5948,16 +5962,16 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"property": [
1
],
"provenance": [
- 341
+ 342
],
"recordId": [
- 497
+ 498
],
"sourceValue": [
1
@@ -5986,13 +6000,13 @@ export default {
"MetadataTranslationProvenance": {},
"MetadataTranslationsInput": {
"fieldMetadataId": [
- 497
+ 498
],
"locale": [
1
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -6001,13 +6015,13 @@ export default {
"MetadataWritability": {},
"MinimalMetadata": {
"collectionHashes": [
- 136
+ 137
],
"objectMetadataItems": [
- 345
+ 346
],
"views": [
- 346
+ 347
],
"__typename": [
1
@@ -6021,7 +6035,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -6050,16 +6064,16 @@ export default {
},
"MinimalView": {
"id": [
- 497
+ 498
],
"key": [
- 614
+ 615
],
"objectMetadataId": [
- 497
+ 498
],
"type": [
- 618
+ 619
],
"__typename": [
1
@@ -6068,16 +6082,16 @@ export default {
"ModelFamily": {},
"Mutation": {
"activateSkill": [
- 464,
+ 465,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"activateWorkspace": [
- 627,
+ 628,
{
"data": [
0,
@@ -6093,7 +6107,7 @@ export default {
"String!"
],
"messageId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6111,10 +6125,10 @@ export default {
4,
{
"assigneeWorkspaceMemberId": [
- 497
+ 498
],
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6123,11 +6137,11 @@ export default {
4,
{
"agentId": [
- 497,
+ 498,
"UUID!"
],
"roleId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6136,17 +6150,17 @@ export default {
4,
{
"apiKeyId": [
- 497,
+ 498,
"UUID!"
],
"roleId": [
- 497,
+ 498,
"UUID!"
]
}
],
"authorizeApp": [
- 69,
+ 70,
{
"clientId": [
1,
@@ -6171,28 +6185,28 @@ export default {
}
],
"cancelMessageCampaign": [
- 120,
+ 121,
{
"input": [
- 119,
+ 120,
"CancelMessageCampaignInput!"
]
}
],
"cancelSwitchBillingInterval": [
- 107
+ 108
],
"cancelSwitchBillingPlan": [
- 107
+ 108
],
"cancelSwitchResourceCreditPrice": [
- 107
+ 108
],
"checkCustomDomainValidRecords": [
- 212
+ 213
],
"checkPublicDomainValidRecords": [
- 212,
+ 213,
{
"domain": [
1,
@@ -6201,14 +6215,14 @@ export default {
}
],
"checkoutSession": [
- 100,
+ 101,
{
"plan": [
- 91,
+ 92,
"BillingPlanKey!"
],
"recurringInterval": [
- 470,
+ 471,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6221,7 +6235,7 @@ export default {
}
],
"claimApplicationRegistrationOwnership": [
- 55,
+ 56,
{
"applicationRegistrationId": [
1,
@@ -6230,29 +6244,29 @@ export default {
}
],
"completeAppTarballUpload": [
- 55,
+ 56,
{
"fileId": [
- 497,
+ 498,
"UUID!"
]
}
],
"completeApplicationFileUploads": [
- 140,
+ 141,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"fileIds": [
- 497,
+ 498,
"[UUID!]!"
]
}
],
"completeBookCallOnboardingStep": [
- 371,
+ 372,
{
"hasBookedCall": [
4,
@@ -6265,7 +6279,7 @@ export default {
}
],
"completeFileUpload": [
- 261,
+ 262,
{
"fileId": [
1,
@@ -6274,7 +6288,7 @@ export default {
}
],
"completeNewWorkspaceLogoUpload": [
- 261,
+ 262,
{
"fileId": [
1,
@@ -6287,7 +6301,7 @@ export default {
}
],
"completeWorkspaceLogoUpload": [
- 261,
+ 262,
{
"fileId": [
1,
@@ -6296,7 +6310,7 @@ export default {
}
],
"completeWorkspaceMemberProfilePictureUpload": [
- 261,
+ 262,
{
"fileId": [
1,
@@ -6308,22 +6322,22 @@ export default {
29,
{
"input": [
- 148,
+ 149,
"CreateApiKeyInput!"
]
}
],
"createAppMessageChannel": [
- 321,
+ 322,
{
"input": [
- 149,
+ 150,
"CreateAppMessageChannelInput!"
]
}
],
"createApplicationFileUploads": [
- 150,
+ 151,
{
"applicationUniversalIdentifier": [
1,
@@ -6336,31 +6350,31 @@ export default {
}
],
"createApplicationRegistration": [
- 151,
+ 152,
{
"input": [
- 152,
+ 153,
"CreateApplicationRegistrationInput!"
]
}
],
"createApprovedAccessDomain": [
- 63,
+ 64,
{
"input": [
- 153,
+ 154,
"CreateApprovedAccessDomainInput!"
]
}
],
"createBillingPaymentMethodSetupIntent": [
- 89
+ 90
],
"createCalendarEvent": [
- 155,
+ 156,
{
"input": [
- 154,
+ 155,
"CreateCalendarEventInput!"
]
}
@@ -6369,16 +6383,16 @@ export default {
9
],
"createCommandMenuItem": [
- 137,
+ 138,
{
"input": [
- 156,
+ 157,
"CreateCommandMenuItemInput!"
]
}
],
"createDevelopmentApplication": [
- 210,
+ 211,
{
"name": [
1,
@@ -6391,25 +6405,25 @@ export default {
}
],
"createEmailGroupChannel": [
- 158,
+ 159,
{
"input": [
- 157,
+ 158,
"CreateEmailGroupChannelInput!"
]
}
],
"createEmailingDomain": [
- 221,
+ 222,
{
"input": [
- 159,
+ 160,
"CreateEmailingDomainInput!"
]
}
],
"createFileUpload": [
- 260,
+ 261,
{
"fieldMetadataId": [
1
@@ -6418,7 +6432,7 @@ export default {
1
],
"fileFolder": [
- 259,
+ 260,
"FileFolder!"
],
"filename": [
@@ -6432,70 +6446,70 @@ export default {
}
],
"createFrontComponent": [
- 266,
+ 267,
{
"input": [
- 161,
+ 162,
"CreateFrontComponentInput!"
]
}
],
"createManyNavigationMenuItems": [
- 350,
+ 351,
{
"inputs": [
- 166,
+ 167,
"[CreateNavigationMenuItemInput!]!"
]
}
],
"createManyViewFieldGroups": [
- 608,
+ 609,
{
"inputs": [
- 180,
+ 181,
"[CreateViewFieldGroupInput!]!"
]
}
],
"createManyViewFields": [
- 607,
+ 608,
{
"inputs": [
- 181,
+ 182,
"[CreateViewFieldInput!]!"
]
}
],
"createManyViewGroups": [
- 613,
+ 614,
{
"inputs": [
- 184,
+ 185,
"[CreateViewGroupInput!]!"
]
}
],
"createMessageSuppression": [
- 332,
+ 333,
{
"input": [
- 165,
+ 166,
"CreateMessageSuppressionInput!"
]
}
],
"createNavigationMenuItem": [
- 350,
+ 351,
{
"input": [
- 166,
+ 167,
"CreateNavigationMenuItemInput!"
]
}
],
"createNewWorkspaceLogoUpload": [
- 260,
+ 261,
{
"filename": [
1,
@@ -6512,10 +6526,10 @@ export default {
}
],
"createOIDCIdentityProvider": [
- 461,
+ 462,
{
"input": [
- 459,
+ 460,
"SetupOIDCSsoInput!"
]
}
@@ -6528,14 +6542,14 @@ export default {
"String!"
],
"objectMetadataId": [
- 497,
+ 498,
"UUID!"
],
"properties": [
- 293
+ 294
],
"recordId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6544,85 +6558,85 @@ export default {
3,
{
"input": [
- 147,
+ 148,
"CreateAgentInput!"
]
}
],
"createOneField": [
- 246,
+ 247,
{
"input": [
- 168,
+ 169,
"CreateOneFieldMetadataInput!"
]
}
],
"createOneIndex": [
- 282,
+ 283,
{
"input": [
- 169,
+ 170,
"CreateOneIndexInput!"
]
}
],
"createOneLogicFunction": [
- 305,
+ 306,
{
"input": [
- 164,
+ 165,
"CreateLogicFunctionFromSourceInput!"
]
}
],
"createOneObject": [
- 353,
+ 354,
{
"input": [
- 170,
+ 171,
"CreateOneObjectInput!"
]
}
],
"createOneRole": [
- 424,
+ 425,
{
"createRoleInput": [
- 175,
+ 176,
"CreateRoleInput!"
]
}
],
"createPageLayout": [
- 374,
+ 375,
{
"input": [
- 171,
+ 172,
"CreatePageLayoutInput!"
]
}
],
"createPageLayoutTab": [
- 375,
+ 376,
{
"input": [
- 172,
+ 173,
"CreatePageLayoutTabInput!"
]
}
],
"createPageLayoutWidget": [
- 378,
+ 379,
{
"input": [
- 173,
+ 174,
"CreatePageLayoutWidgetInput!"
]
}
],
"createPublicDomain": [
- 395,
+ 396,
{
"applicationId": [
1,
@@ -6635,36 +6649,36 @@ export default {
}
],
"createSAMLIdentityProvider": [
- 461,
+ 462,
{
"input": [
- 460,
+ 461,
"SetupSAMLSsoInput!"
]
}
],
"createSkill": [
- 464,
+ 465,
{
"input": [
- 176,
+ 177,
"CreateSkillInput!"
]
}
],
"createSubscriptionPaymentIntent": [
- 89,
+ 90,
{
"idempotencyKey": [
1,
"String!"
],
"plan": [
- 91,
+ 92,
"BillingPlanKey!"
],
"recurringInterval": [
- 470,
+ 471,
"SubscriptionInterval!"
],
"requirePaymentMethod": [
@@ -6677,109 +6691,109 @@ export default {
}
],
"createUnsubscribeTopic": [
- 500,
+ 501,
{
"input": [
- 177,
+ 178,
"CreateUnsubscribeTopicInput!"
]
}
],
"createUsageLimit": [
- 579,
+ 580,
{
"input": [
- 178,
+ 179,
"CreateUsageLimitInput!"
]
}
],
"createValidationRule": [
- 599,
+ 600,
{
"input": [
- 179,
+ 180,
"CreateValidationRuleInput!"
]
}
],
"createView": [
- 604,
+ 605,
{
"input": [
- 185,
+ 186,
"CreateViewInput!"
]
}
],
"createViewField": [
- 607,
+ 608,
{
"input": [
- 181,
+ 182,
"CreateViewFieldInput!"
]
}
],
"createViewFieldGroup": [
- 608,
+ 609,
{
"input": [
- 180,
+ 181,
"CreateViewFieldGroupInput!"
]
}
],
"createViewFilter": [
- 609,
+ 610,
{
"input": [
- 183,
+ 184,
"CreateViewFilterInput!"
]
}
],
"createViewFilterGroup": [
- 610,
+ 611,
{
"input": [
- 182,
+ 183,
"CreateViewFilterGroupInput!"
]
}
],
"createViewGroup": [
- 613,
+ 614,
{
"input": [
- 184,
+ 185,
"CreateViewGroupInput!"
]
}
],
"createViewSort": [
- 616,
+ 617,
{
"input": [
- 186,
+ 187,
"CreateViewSortInput!"
]
}
],
"createWebhook": [
- 620,
+ 621,
{
"input": [
- 187,
+ 188,
"CreateWebhookInput!"
]
}
],
"deactivateSkill": [
- 464,
+ 465,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6797,10 +6811,10 @@ export default {
}
],
"deleteAppMessageChannel": [
- 321,
+ 322,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6818,37 +6832,37 @@ export default {
4,
{
"input": [
- 192,
+ 193,
"DeleteApprovedAccessDomainInput!"
]
}
],
"deleteCommandMenuItem": [
- 137,
+ 138,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteConnectedAccount": [
- 141,
+ 142,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteCurrentWorkspace": [
- 627
+ 628
],
"deleteEmailGroupChannel": [
- 321,
+ 322,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6863,19 +6877,19 @@ export default {
}
],
"deleteFrontComponent": [
- 266,
+ 267,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteManyNavigationMenuItems": [
- 350,
+ 351,
{
"ids": [
- 497,
+ 498,
"[UUID!]!"
]
}
@@ -6884,16 +6898,16 @@ export default {
4,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteNavigationMenuItem": [
- 350,
+ 351,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6908,37 +6922,37 @@ export default {
}
],
"deleteOneField": [
- 246,
+ 247,
{
"input": [
- 193,
+ 194,
"DeleteOneFieldInput!"
]
}
],
"deleteOneIndex": [
- 282,
+ 283,
{
"input": [
- 194,
+ 195,
"DeleteOneIndexInput!"
]
}
],
"deleteOneLogicFunction": [
- 305,
+ 306,
{
"input": [
- 309,
+ 310,
"LogicFunctionIdInput!"
]
}
],
"deleteOneObject": [
- 353,
+ 354,
{
"input": [
- 195,
+ 196,
"DeleteOneObjectInput!"
]
}
@@ -6947,7 +6961,7 @@ export default {
1,
{
"roleId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -6965,34 +6979,34 @@ export default {
4,
{
"messageId": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteSSOIdentityProvider": [
- 196,
+ 197,
{
"input": [
- 197,
+ 198,
"DeleteSsoInput!"
]
}
],
"deleteSkill": [
- 464,
+ 465,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteTwoFactorAuthenticationMethod": [
- 198,
+ 199,
{
"twoFactorAuthenticationMethodId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7010,16 +7024,16 @@ export default {
4,
{
"usageLimitId": [
- 497,
+ 498,
"UUID!"
]
}
],
"deleteUser": [
- 592
+ 593
],
"deleteUserFromWorkspace": [
- 596,
+ 597,
{
"workspaceMemberIdToDelete": [
1,
@@ -7028,10 +7042,10 @@ export default {
}
],
"deleteValidationRule": [
- 599,
+ 600,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7046,28 +7060,28 @@ export default {
}
],
"deleteViewField": [
- 607,
+ 608,
{
"input": [
- 200,
+ 201,
"DeleteViewFieldInput!"
]
}
],
"deleteViewFieldGroup": [
- 608,
+ 609,
{
"input": [
- 199,
+ 200,
"DeleteViewFieldGroupInput!"
]
}
],
"deleteViewFilter": [
- 609,
+ 610,
{
"input": [
- 201,
+ 202,
"DeleteViewFilterInput!"
]
}
@@ -7082,10 +7096,10 @@ export default {
}
],
"deleteViewGroup": [
- 613,
+ 614,
{
"input": [
- 202,
+ 203,
"DeleteViewGroupInput!"
]
}
@@ -7094,16 +7108,16 @@ export default {
4,
{
"input": [
- 203,
+ 204,
"DeleteViewSortInput!"
]
}
],
"deleteWebhook": [
- 620,
+ 621,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7154,28 +7168,28 @@ export default {
}
],
"destroyViewField": [
- 607,
+ 608,
{
"input": [
- 206,
+ 207,
"DestroyViewFieldInput!"
]
}
],
"destroyViewFieldGroup": [
- 608,
+ 609,
{
"input": [
- 205,
+ 206,
"DestroyViewFieldGroupInput!"
]
}
],
"destroyViewFilter": [
- 609,
+ 610,
{
"input": [
- 207,
+ 208,
"DestroyViewFilterInput!"
]
}
@@ -7190,10 +7204,10 @@ export default {
}
],
"destroyViewGroup": [
- 613,
+ 614,
{
"input": [
- 208,
+ 209,
"DestroyViewGroupInput!"
]
}
@@ -7202,49 +7216,49 @@ export default {
4,
{
"input": [
- 209,
+ 210,
"DestroyViewSortInput!"
]
}
],
"disconnectConnectedAccount": [
- 141,
+ 142,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"duplicateDashboard": [
- 213,
+ 214,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"duplicateMessageList": [
- 214,
+ 215,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"editSSOIdentityProvider": [
- 215,
+ 216,
{
"input": [
- 216,
+ 217,
"EditSsoInput!"
]
}
],
"emailPasswordResetLink": [
- 219,
+ 220,
{
"captchaToken": [
1
@@ -7254,39 +7268,39 @@ export default {
"String!"
],
"workspaceId": [
- 497
+ 498
]
}
],
"endSubscriptionTrialPeriod": [
- 84
+ 85
],
"enqueueJob": [
- 228,
+ 229,
{
"input": [
- 226,
+ 227,
"EnqueueJobInput!"
]
}
],
"enqueueJobs": [
- 230,
+ 231,
{
"input": [
- 229,
+ 230,
"EnqueueJobsInput!"
]
}
],
"enrichWorkspaceCompany": [
- 631
+ 632
],
"executeOneLogicFunction": [
- 307,
+ 308,
{
"input": [
- 243,
+ 244,
"ExecuteOneLogicFunctionInput!"
]
}
@@ -7295,7 +7309,7 @@ export default {
31,
{
"apiKeyId": [
- 497,
+ 498,
"UUID!"
],
"expiresAt": [
@@ -7305,34 +7319,34 @@ export default {
}
],
"generateFrontComponentApplicationTokenPair": [
- 60,
+ 61,
{
"applicationId": [
- 497,
+ 498,
"UUID!"
]
}
],
"generatePlaygroundToken": [
- 66
+ 67
],
"generateTransientToken": [
- 480
+ 481
],
"generateTwoFactorAuthenticationRecoveryCode": [
- 494,
+ 495,
{
"otp": [
1
],
"userId": [
- 497,
+ 498,
"UUID!"
]
}
],
"getAuthTokensFromLoginToken": [
- 68,
+ 69,
{
"loginToken": [
1,
@@ -7345,7 +7359,7 @@ export default {
}
],
"getAuthTokensFromOTP": [
- 68,
+ 69,
{
"captchaToken": [
1
@@ -7365,7 +7379,7 @@ export default {
}
],
"getAuthTokensFromSSOExchangeToken": [
- 68,
+ 69,
{
"ssoExchangeToken": [
1,
@@ -7374,7 +7388,7 @@ export default {
}
],
"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [
- 495,
+ 496,
{
"captchaToken": [
1
@@ -7394,16 +7408,16 @@ export default {
}
],
"getAuthorizationUrlForSSO": [
- 271,
+ 272,
{
"input": [
- 272,
+ 273,
"GetAuthorizationUrlForSSOInput!"
]
}
],
"getLoginTokenFromCredentials": [
- 312,
+ 313,
{
"captchaToken": [
1
@@ -7429,41 +7443,41 @@ export default {
}
],
"goBackToPreviousOnboardingStep": [
- 370
+ 371
],
"grantApplicationCapabilities": [
39,
{
"input": [
- 273,
+ 274,
"GrantApplicationCapabilitiesInput!"
]
}
],
"impersonate": [
- 281,
+ 282,
{
"userId": [
- 497,
+ 498,
"UUID!"
],
"workspaceId": [
- 497,
+ 498,
"UUID!"
]
}
],
"ingestAppMessages": [
- 288,
+ 289,
{
"input": [
- 287,
+ 288,
"IngestAppMessagesInput!"
]
}
],
"initiateOTPProvisioning": [
- 290,
+ 291,
{
"loginToken": [
1,
@@ -7476,7 +7490,7 @@ export default {
}
],
"initiateOTPProvisioningForAuthenticatedUser": [
- 290
+ 291
],
"installApplication": [
37,
@@ -7506,7 +7520,7 @@ export default {
4
],
"releaseEnterpriseServerBinding": [
- 231
+ 232
],
"removeAgentChatMessageReaction": [
16,
@@ -7516,7 +7530,7 @@ export default {
"String!"
],
"messageId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7525,20 +7539,20 @@ export default {
4,
{
"input": [
- 419,
+ 420,
"RemoveQueryFromEventStreamInput!"
]
}
],
"removeRecordShare": [
- 411,
+ 412,
{
"principal": [
- 408,
+ 409,
"RecordSharePrincipalInput!"
],
"target": [
- 416,
+ 417,
"RecordTargetInput!"
]
}
@@ -7547,13 +7561,13 @@ export default {
4,
{
"agentId": [
- 497,
+ 498,
"UUID!"
]
}
],
"renewApplicationToken": [
- 60,
+ 61,
{
"applicationRefreshToken": [
1,
@@ -7562,7 +7576,7 @@ export default {
}
],
"renewToken": [
- 68,
+ 69,
{
"appToken": [
1,
@@ -7574,13 +7588,13 @@ export default {
4,
{
"input": [
- 420,
+ 421,
"ReportAppConnectionAuthFailureInput!"
]
}
],
"resendEmailVerificationToken": [
- 421,
+ 422,
{
"email": [
1,
@@ -7593,7 +7607,7 @@ export default {
}
],
"resendWorkspaceInvitation": [
- 451,
+ 452,
{
"appTokenId": [
1,
@@ -7602,16 +7616,16 @@ export default {
}
],
"resetCommandMenuItem": [
- 137,
+ 138,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"resetPageLayoutTabToDefault": [
- 375,
+ 376,
{
"id": [
1,
@@ -7620,7 +7634,7 @@ export default {
}
],
"resetPageLayoutToDefault": [
- 374,
+ 375,
{
"id": [
1,
@@ -7629,7 +7643,7 @@ export default {
}
],
"resetPageLayoutWidgetToDefault": [
- 378,
+ 379,
{
"id": [
1,
@@ -7638,22 +7652,22 @@ export default {
}
],
"resetTimelineActivityType": [
- 475,
+ 476,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"retryChatMessage": [
- 444,
+ 445,
{
"modelId": [
1
],
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7665,7 +7679,7 @@ export default {
29,
{
"input": [
- 422,
+ 423,
"RevokeApiKeyInput!"
]
}
@@ -7674,7 +7688,7 @@ export default {
4,
{
"applicationAuthorizationId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7683,7 +7697,7 @@ export default {
4,
{
"userId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -7692,13 +7706,13 @@ export default {
4,
{
"userSessionId": [
- 497,
+ 498,
"UUID!"
]
}
],
"rotateApplicationRegistrationClientSecret": [
- 426,
+ 427,
{
"id": [
1,
@@ -7707,10 +7721,10 @@ export default {
}
],
"runAgent": [
- 437,
+ 438,
{
"input": [
- 433,
+ 434,
"RunAgentInput!"
]
}
@@ -7719,16 +7733,16 @@ export default {
53,
{
"applicationId": [
- 497,
+ 498,
"UUID!"
]
}
],
"saveImapSmtpCaldavAccount": [
- 278,
+ 279,
{
"connectionParameters": [
- 217,
+ 218,
"EmailAccountConnectionParameters!"
],
"handle": [
@@ -7736,26 +7750,26 @@ export default {
"String!"
],
"id": [
- 497
+ 498
]
}
],
"sendChatMessage": [
- 444,
+ 445,
{
"browsingContext": [
- 293
+ 294
],
"fileAttachments": [
- 258,
+ 259,
"[FileAttachmentInput!]"
],
"mentionedWorkspaceMemberIds": [
- 497,
+ 498,
"[UUID!]"
],
"messageId": [
- 497,
+ 498,
"UUID!"
],
"modelId": [
@@ -7769,55 +7783,55 @@ export default {
"String!"
],
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
],
"sendEmail": [
- 447,
+ 448,
{
"input": [
- 446,
+ 447,
"SendEmailInput!"
]
}
],
"sendInboxMessage": [
- 450,
+ 451,
{
"input": [
- 449,
+ 450,
"SendInboxMessageInput!"
]
}
],
"sendInvitations": [
- 451,
+ 452,
{
"emails": [
1,
"[String!]!"
],
"roleId": [
- 497
+ 498
]
}
],
"sendMessageCampaign": [
- 453,
+ 454,
{
"input": [
- 452,
+ 453,
"SendMessageCampaignInput!"
]
}
],
"sendMessageCampaignTest": [
- 448,
+ 449,
{
"input": [
- 454,
+ 455,
"SendMessageCampaignTestInput!"
]
}
@@ -7826,13 +7840,13 @@ export default {
33,
{
"input": [
- 456,
+ 457,
"SetAppKeyValueInput!"
]
}
],
"setEnterpriseKey": [
- 231,
+ 232,
{
"enterpriseKey": [
1,
@@ -7841,37 +7855,37 @@ export default {
}
],
"setRecordGeneralAccess": [
- 411,
+ 412,
{
"accessLevel": [
- 407,
+ 408,
"RecordShareAccessLevel!"
],
"target": [
- 416,
+ 417,
"RecordTargetInput!"
]
}
],
"setRecordShare": [
- 411,
+ 412,
{
"accessLevel": [
- 407,
+ 408,
"RecordShareAccessLevel!"
],
"principal": [
- 408,
+ 409,
"RecordSharePrincipalInput!"
],
"target": [
- 416,
+ 417,
"RecordTargetInput!"
]
}
],
"setResourceCreditSubscriptionPrice": [
- 107,
+ 108,
{
"priceId": [
1,
@@ -7880,7 +7894,7 @@ export default {
}
],
"signIn": [
- 73,
+ 74,
{
"captchaToken": [
1
@@ -7910,7 +7924,7 @@ export default {
}
],
"signUp": [
- 73,
+ 74,
{
"captchaToken": [
1
@@ -7932,15 +7946,15 @@ export default {
}
],
"signUpInNewWorkspace": [
- 462,
+ 463,
{
"input": [
- 463
+ 464
]
}
],
"signUpInWorkspace": [
- 462,
+ 463,
{
"captchaToken": [
1
@@ -7960,7 +7974,7 @@ export default {
1
],
"workspaceId": [
- 497
+ 498
],
"workspaceInviteHash": [
1
@@ -7971,7 +7985,7 @@ export default {
}
],
"skipSyncEmailOnboardingStep": [
- 371,
+ 372,
{
"isAutoSkipped": [
4,
@@ -7980,22 +7994,22 @@ export default {
}
],
"startChannelSync": [
- 123,
+ 124,
{
"connectedAccountId": [
- 497,
+ 498,
"UUID!"
]
}
],
"startWorkspaceSetupChat": [
- 466,
+ 467,
{
"companyContext": [
- 293
+ 294
],
"personContext": [
- 293
+ 294
]
}
],
@@ -8003,27 +8017,27 @@ export default {
4,
{
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
],
"stopImpersonation": [
- 467
+ 468
],
"switchBillingPlan": [
- 107,
+ 108,
{
"plan": [
- 91
+ 92
]
}
],
"switchSubscriptionInterval": [
- 107
+ 108
],
"syncApplication": [
- 641,
+ 642,
{
"dryRun": [
4
@@ -8032,7 +8046,7 @@ export default {
4
],
"manifest": [
- 293,
+ 294,
"JSON!"
]
}
@@ -8050,7 +8064,7 @@ export default {
1
],
"properties": [
- 293
+ 294
],
"type": [
27,
@@ -8059,7 +8073,7 @@ export default {
}
],
"transferApplicationRegistrationOwnership": [
- 55,
+ 56,
{
"applicationRegistrationId": [
1,
@@ -8072,55 +8086,55 @@ export default {
}
],
"triggerAddPeopleToMessageListJob": [
- 482,
+ 483,
{
"input": [
- 481,
+ 482,
"TriggerAddPeopleToMessageListJobInput!"
]
}
],
"triggerInstallApplication": [
- 486,
+ 487,
{
"input": [
- 483,
+ 484,
"TriggerInstallApplicationInput!"
]
}
],
"triggerInstallApplicationJob": [
- 485,
+ 486,
{
"input": [
- 484,
+ 485,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplication": [
- 490,
+ 491,
{
"input": [
- 487,
+ 488,
"TriggerUninstallApplicationInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 489,
+ 490,
{
"input": [
- 488,
+ 489,
"TriggerUninstallApplicationJobInput!"
]
}
],
"triggerUpgradeApplication": [
- 492,
+ 493,
{
"input": [
- 491,
+ 492,
"TriggerUpgradeApplicationInput!"
]
}
@@ -8142,10 +8156,10 @@ export default {
"AgentChatInboxAction!"
],
"snoozedUntil": [
- 191
+ 192
],
"threadIds": [
- 497,
+ 498,
"[UUID!]!"
]
}
@@ -8154,16 +8168,16 @@ export default {
29,
{
"input": [
- 503,
+ 504,
"UpdateApiKeyInput!"
]
}
],
"updateAppMessageChannel": [
- 321,
+ 322,
{
"input": [
- 504,
+ 505,
"UpdateAppMessageChannelInput!"
]
}
@@ -8172,128 +8186,128 @@ export default {
37,
{
"id": [
- 497,
+ 498,
"UUID!"
],
"input": [
- 505,
+ 506,
"UpdateApplicationInput!"
]
}
],
"updateApplicationRegistration": [
- 55,
+ 56,
{
"input": [
- 506,
+ 507,
"UpdateApplicationRegistrationInput!"
]
}
],
"updateApplicationRegistrationVariable": [
- 59,
+ 60,
{
"input": [
- 508,
+ 509,
"UpdateApplicationRegistrationVariableInput!"
]
}
],
"updateCalendarChannel": [
- 110,
+ 111,
{
"input": [
- 510,
+ 511,
"UpdateCalendarChannelInput!"
]
}
],
"updateCommandMenuItem": [
- 137,
+ 138,
{
"input": [
- 512,
+ 513,
"UpdateCommandMenuItemInput!"
]
}
],
"updateEmailGroupChannel": [
- 321,
+ 322,
{
"input": [
- 513,
+ 514,
"UpdateEmailGroupChannelInput!"
]
}
],
"updateFrontComponent": [
- 266,
+ 267,
{
"input": [
- 515,
+ 516,
"UpdateFrontComponentInput!"
]
}
],
"updateLabPublicFeatureFlag": [
- 244,
+ 245,
{
"input": [
- 517,
+ 518,
"UpdateLabPublicFeatureFlagInput!"
]
}
],
"updateManyNavigationMenuItems": [
- 350,
+ 351,
{
"inputs": [
- 528,
+ 529,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
],
"updateManyObjects": [
- 353,
+ 354,
{
"inputs": [
- 529,
+ 530,
"[UpdateOneObjectInput!]!"
]
}
],
"updateManyViewGroups": [
- 613,
+ 614,
{
"inputs": [
- 551,
+ 552,
"[UpdateViewGroupInput!]!"
]
}
],
"updateMessageChannel": [
- 321,
+ 322,
{
"input": [
- 520,
+ 521,
"UpdateMessageChannelInput!"
]
}
],
"updateMessageFolder": [
- 328,
+ 329,
{
"input": [
- 522,
+ 523,
"UpdateMessageFolderInput!"
]
}
],
"updateMessageFolders": [
- 328,
+ 329,
{
"input": [
- 524,
+ 525,
"UpdateMessageFoldersInput!"
]
}
@@ -8316,10 +8330,10 @@ export default {
}
],
"updateNavigationMenuItem": [
- 350,
+ 351,
{
"input": [
- 528,
+ 529,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -8328,7 +8342,7 @@ export default {
3,
{
"input": [
- 502,
+ 503,
"UpdateAgentInput!"
]
}
@@ -8337,7 +8351,7 @@ export default {
4,
{
"applicationId": [
- 497
+ 498
],
"key": [
1,
@@ -8350,10 +8364,10 @@ export default {
}
],
"updateOneField": [
- 246,
+ 247,
{
"input": [
- 527,
+ 528,
"UpdateOneFieldMetadataInput!"
]
}
@@ -8362,83 +8376,83 @@ export default {
4,
{
"input": [
- 518,
+ 519,
"UpdateLogicFunctionFromSourceInput!"
]
}
],
"updateOneObject": [
- 353,
+ 354,
{
"input": [
- 529,
+ 530,
"UpdateOneObjectInput!"
]
}
],
"updateOneRole": [
- 424,
+ 425,
{
"updateRoleInput": [
- 536,
+ 537,
"UpdateRoleInput!"
]
}
],
"updatePageLayout": [
- 374,
+ 375,
{
"id": [
1,
"String!"
],
"input": [
- 530,
+ 531,
"UpdatePageLayoutInput!"
]
}
],
"updatePageLayoutTab": [
- 375,
+ 376,
{
"id": [
1,
"String!"
],
"input": [
- 531,
+ 532,
"UpdatePageLayoutTabInput!"
]
}
],
"updatePageLayoutWidget": [
- 378,
+ 379,
{
"id": [
1,
"String!"
],
"input": [
- 533,
+ 534,
"UpdatePageLayoutWidgetInput!"
]
}
],
"updatePageLayoutWithTabsAndWidgets": [
- 374,
+ 375,
{
"id": [
1,
"String!"
],
"input": [
- 535,
+ 536,
"UpdatePageLayoutWithTabsInput!"
]
}
],
"updatePasswordViaResetToken": [
- 291,
+ 292,
{
"newPassword": [
1,
@@ -8451,46 +8465,46 @@ export default {
}
],
"updateSkill": [
- 464,
+ 465,
{
"input": [
- 538,
+ 539,
"UpdateSkillInput!"
]
}
],
"updateTimelineActivityType": [
- 475,
+ 476,
{
"input": [
- 539,
+ 540,
"UpdateTimelineActivityTypeInput!"
]
}
],
"updateUnsubscribeTopic": [
- 500,
+ 501,
{
"input": [
- 540,
+ 541,
"UpdateUnsubscribeTopicInput!"
]
}
],
"updateUsageLimit": [
- 579,
+ 580,
{
"input": [
- 541,
+ 542,
"UpdateUsageLimitInput!"
]
}
],
"updateUserCreditsFallback": [
- 83,
+ 84,
{
"userCreditsFallback": [
- 594,
+ 595,
"UserCreditsFallback!"
]
}
@@ -8508,121 +8522,121 @@ export default {
}
],
"updateValidationRule": [
- 599,
+ 600,
{
"input": [
- 542,
+ 543,
"UpdateValidationRuleInput!"
]
}
],
"updateView": [
- 604,
+ 605,
{
"id": [
1,
"String!"
],
"input": [
- 553,
+ 554,
"UpdateViewInput!"
]
}
],
"updateViewField": [
- 607,
+ 608,
{
"input": [
- 546,
+ 547,
"UpdateViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 608,
+ 609,
{
"input": [
- 544,
+ 545,
"UpdateViewFieldGroupInput!"
]
}
],
"updateViewFilter": [
- 609,
+ 610,
{
"input": [
- 549,
+ 550,
"UpdateViewFilterInput!"
]
}
],
"updateViewFilterGroup": [
- 610,
+ 611,
{
"id": [
1,
"String!"
],
"input": [
- 548,
+ 549,
"UpdateViewFilterGroupInput!"
]
}
],
"updateViewGroup": [
- 613,
+ 614,
{
"input": [
- 551,
+ 552,
"UpdateViewGroupInput!"
]
}
],
"updateViewSort": [
- 616,
+ 617,
{
"input": [
- 554,
+ 555,
"UpdateViewSortInput!"
]
}
],
"updateWebhook": [
- 620,
+ 621,
{
"input": [
- 556,
+ 557,
"UpdateWebhookInput!"
]
}
],
"updateWorkspace": [
- 627,
+ 628,
{
"data": [
- 559,
+ 560,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedIframeOrigins": [
- 627,
+ 628,
{
"data": [
- 558,
+ 559,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 636,
+ 637,
{
"roleId": [
- 497,
+ 498,
"UUID!"
],
"workspaceMemberId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -8631,7 +8645,7 @@ export default {
4,
{
"input": [
- 560,
+ 561,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8650,10 +8664,10 @@ export default {
}
],
"uploadAppTarball": [
- 55,
+ 56,
{
"file": [
- 561,
+ 562,
"Upload!"
],
"universalIdentifier": [
@@ -8662,18 +8676,18 @@ export default {
}
],
"uploadApplicationFile": [
- 257,
+ 258,
{
"applicationUniversalIdentifier": [
1,
"String!"
],
"file": [
- 561,
+ 562,
"Upload!"
],
"fileFolder": [
- 259,
+ 260,
"FileFolder!"
],
"filePath": [
@@ -8683,23 +8697,23 @@ export default {
}
],
"uploadFilesFieldFileByUniversalIdentifier": [
- 261,
+ 262,
{
"fieldMetadataUniversalIdentifier": [
1,
"String!"
],
"file": [
- 561,
+ 562,
"Upload!"
]
}
],
"uploadNewWorkspaceLogo": [
- 261,
+ 262,
{
"file": [
- 561,
+ 562,
"Upload!"
],
"workspaceId": [
@@ -8709,88 +8723,88 @@ export default {
}
],
"uploadWorkspaceLogo": [
- 261,
+ 262,
{
"file": [
- 561,
+ 562,
"Upload!"
]
}
],
"uploadWorkspaceMemberProfilePicture": [
- 261,
+ 262,
{
"file": [
- 561,
+ 562,
"Upload!"
]
}
],
"upsertFieldPermissions": [
- 253,
+ 254,
{
"upsertFieldPermissionsInput": [
- 562,
+ 563,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertFieldsWidget": [
- 604,
+ 605,
{
"input": [
- 565,
+ 566,
"UpsertFieldsWidgetInput!"
]
}
],
"upsertObjectPermissions": [
- 361,
+ 362,
{
"upsertObjectPermissionsInput": [
- 566,
+ 567,
"UpsertObjectPermissionsInput!"
]
}
],
"upsertPermissionFlags": [
- 425,
+ 426,
{
"upsertPermissionFlagsInput": [
- 567,
+ 568,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 569,
+ 570,
{
"input": [
- 568,
+ 569,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
],
"upsertViewWidget": [
- 604,
+ 605,
{
"input": [
- 570,
+ 571,
"UpsertViewWidgetInput!"
]
}
],
"validateApprovedAccessDomain": [
- 63,
+ 64,
{
"input": [
- 597,
+ 598,
"ValidateApprovedAccessDomainInput!"
]
}
],
"verifyEmailAndGetLoginToken": [
- 601,
+ 602,
{
"captchaToken": [
1
@@ -8810,7 +8824,7 @@ export default {
}
],
"verifyEmailAndGetWorkspaceAgnosticToken": [
- 73,
+ 74,
{
"captchaToken": [
1
@@ -8826,7 +8840,7 @@ export default {
}
],
"verifyEmailingDomain": [
- 221,
+ 222,
{
"id": [
1,
@@ -8835,7 +8849,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 602,
+ 603,
{
"otp": [
1,
@@ -8860,22 +8874,22 @@ export default {
},
"NavigationMenuItem": {
"applicationId": [
- 497
+ 498
],
"color": [
1
],
"createdAt": [
- 191
+ 192
],
"folderId": [
- 497
+ 498
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"link": [
1
@@ -8884,31 +8898,31 @@ export default {
1
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
],
"targetObjectMetadataId": [
- 497
+ 498
],
"targetRecordId": [
- 497
+ 498
],
"targetRecordIdentifier": [
- 404
+ 405
],
"type": [
- 351
+ 352
],
"updatedAt": [
- 191
+ 192
],
"userWorkspaceId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -8917,7 +8931,7 @@ export default {
"NavigationMenuItemType": {},
"NotesConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -8925,13 +8939,13 @@ export default {
},
"Object": {
"applicationId": [
- 497
+ 498
],
"color": [
1
],
"createdAt": [
- 191
+ 192
],
"description": [
1
@@ -8940,42 +8954,42 @@ export default {
1
],
"fields": [
- 356,
+ 357,
{
"filter": [
- 251,
+ 252,
"FieldFilter!"
],
"paging": [
- 189,
+ 190,
"CursorPaging!"
]
}
],
"fieldsList": [
- 246
+ 247
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"imageIdentifierFieldMetadataId": [
- 497
+ 498
],
"indexMetadataList": [
- 282
+ 283
],
"indexMetadatas": [
- 358,
+ 359,
{
"filter": [
- 285,
+ 286,
"IndexFilter!"
],
"paging": [
- 189,
+ 190,
"CursorPaging!"
]
}
@@ -9005,7 +9019,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 497
+ 498
],
"labelPlural": [
1
@@ -9020,19 +9034,19 @@ export default {
1
],
"openRecordIn": [
- 360
+ 361
],
"readability": [
- 338
+ 339
],
"readabilityParentFieldUniversalIdentifiers": [
- 497
+ 498
],
"searchFieldMetadataList": [
- 443
+ 444
],
"sharingReach": [
- 368
+ 369
],
"shortcut": [
1
@@ -9041,10 +9055,10 @@ export default {
1
],
"updatedAt": [
- 191
+ 192
],
"writability": [
- 343
+ 344
],
"__typename": [
1
@@ -9052,10 +9066,10 @@ export default {
},
"ObjectConnection": {
"edges": [
- 355
+ 356
],
"pageInfo": [
- 373
+ 374
],
"__typename": [
1
@@ -9063,10 +9077,10 @@ export default {
},
"ObjectEdge": {
"cursor": [
- 144
+ 145
],
"node": [
- 353
+ 354
],
"__typename": [
1
@@ -9074,10 +9088,10 @@ export default {
},
"ObjectFieldsConnection": {
"edges": [
- 250
+ 251
],
"pageInfo": [
- 373
+ 374
],
"__typename": [
1
@@ -9085,37 +9099,37 @@ export default {
},
"ObjectFilter": {
"and": [
- 357
+ 358
],
"id": [
- 498
+ 499
],
"isActive": [
- 109
+ 110
],
"isRemote": [
- 109
+ 110
],
"isSearchable": [
- 109
+ 110
],
"isSystem": [
- 109
+ 110
],
"isUICreatable": [
- 109
+ 110
],
"isUIEditable": [
- 109
+ 110
],
"isUIReadOnly": [
- 109
+ 110
],
"or": [
- 357
+ 358
],
"universalIdentifier": [
- 498
+ 499
],
"__typename": [
1
@@ -9123,10 +9137,10 @@ export default {
},
"ObjectIndexMetadatasConnection": {
"edges": [
- 283
+ 284
],
"pageInfo": [
- 373
+ 374
],
"__typename": [
1
@@ -9134,7 +9148,7 @@ export default {
},
"ObjectMetadataCommandMenuItemPayload": {
"objectMetadataItemId": [
- 497
+ 498
],
"__typename": [
1
@@ -9155,16 +9169,16 @@ export default {
4
],
"objectMetadataId": [
- 497
+ 498
],
"restrictedFields": [
- 293
+ 294
],
"rowLevelPermissionPredicateGroups": [
- 428
+ 429
],
"rowLevelPermissionPredicates": [
- 427
+ 428
],
"__typename": [
1
@@ -9184,7 +9198,7 @@ export default {
4
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -9203,13 +9217,13 @@ export default {
},
"ObjectRecordEvent": {
"action": [
- 190
+ 191
],
"objectNameSingular": [
1
],
"properties": [
- 365
+ 366
],
"recordId": [
1
@@ -9226,13 +9240,13 @@ export default {
},
"ObjectRecordEventProperties": {
"after": [
- 293
+ 294
],
"before": [
- 293
+ 294
],
"diff": [
- 293
+ 294
],
"updatedFields": [
1
@@ -9243,7 +9257,7 @@ export default {
},
"ObjectRecordEventWithQueryIds": {
"objectRecordEvent": [
- 364
+ 365
],
"queryIds": [
1
@@ -9257,10 +9271,10 @@ export default {
"OnboardingStatus": {},
"OnboardingStepNavigation": {
"onboardingStatus": [
- 369
+ 370
],
"previousOnboardingStatus": [
- 369
+ 370
],
"__typename": [
1
@@ -9277,7 +9291,7 @@ export default {
"OpenRecordIn": {},
"PageInfo": {
"endCursor": [
- 144
+ 145
],
"hasNextPage": [
4
@@ -9286,7 +9300,7 @@ export default {
4
],
"startCursor": [
- 144
+ 145
],
"__typename": [
1
@@ -9294,19 +9308,19 @@ export default {
},
"PageLayout": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"defaultTabToFocusOnMobileAndSidePanelId": [
- 497
+ 498
],
"deletedAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"isFirstTabPinned": [
4
@@ -9318,19 +9332,19 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"tabs": [
- 375
+ 376
],
"type": [
- 377
+ 378
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -9338,19 +9352,19 @@ export default {
},
"PageLayoutTab": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -9362,10 +9376,10 @@ export default {
4
],
"layoutMode": [
- 376
+ 377
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
@@ -9374,13 +9388,13 @@ export default {
1
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"widgets": [
- 378
+ 379
],
"__typename": [
1
@@ -9390,28 +9404,28 @@ export default {
"PageLayoutType": {},
"PageLayoutWidget": {
"applicationId": [
- 497
+ 498
],
"conditionalAvailabilityExpression": [
1
],
"conditionalDisplay": [
- 293
+ 294
],
"configuration": [
- 621
+ 622
],
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"gridPosition": [
- 275
+ 276
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -9423,25 +9437,25 @@ export default {
4
],
"objectMetadataId": [
- 497
+ 498
],
"pageLayoutTabId": [
- 497
+ 498
],
"position": [
- 381
+ 382
],
"title": [
1
],
"type": [
- 623
+ 624
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -9449,7 +9463,7 @@ export default {
},
"PageLayoutWidgetCanvasPosition": {
"layoutMode": [
- 376
+ 377
],
"__typename": [
1
@@ -9463,7 +9477,7 @@ export default {
8
],
"layoutMode": [
- 376
+ 377
],
"row": [
8
@@ -9477,13 +9491,13 @@ export default {
},
"PageLayoutWidgetPosition": {
"on_PageLayoutWidgetCanvasPosition": [
- 379
+ 380
],
"on_PageLayoutWidgetGridPosition": [
- 380
+ 381
],
"on_PageLayoutWidgetVerticalListPosition": [
- 383
+ 384
],
"__typename": [
1
@@ -9492,13 +9506,13 @@ export default {
"PageLayoutWidgetVerticalListHeightBehavior": {},
"PageLayoutWidgetVerticalListPosition": {
"heightBehavior": [
- 382
+ 383
],
"index": [
8
],
"layoutMode": [
- 376
+ 377
],
"__typename": [
1
@@ -9514,10 +9528,10 @@ export default {
},
"PermissionFlag": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"description": [
1
@@ -9526,7 +9540,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"key": [
1
@@ -9538,10 +9552,10 @@ export default {
1
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -9550,7 +9564,7 @@ export default {
"PermissionFlagType": {},
"PieChartConfiguration": {
"aggregateFieldMetadataId": [
- 497
+ 498
],
"aggregateOperation": [
20
@@ -9559,10 +9573,10 @@ export default {
1
],
"configurationType": [
- 622
+ 623
],
"dateGranularity": [
- 367
+ 368
],
"description": [
1
@@ -9574,13 +9588,13 @@ export default {
4
],
"filter": [
- 293
+ 294
],
"firstDayOfTheWeek": [
8
],
"groupByFieldMetadataId": [
- 497
+ 498
],
"groupBySubFieldName": [
1
@@ -9592,10 +9606,10 @@ export default {
1
],
"numberFormat": [
- 124
+ 125
],
"orderBy": [
- 274
+ 275
],
"showCenterMetric": [
4
@@ -9612,10 +9626,10 @@ export default {
},
"PieChartData": {
"data": [
- 390
+ 391
],
"formattedToRawLookup": [
- 293
+ 294
],
"hasTooManyGroups": [
4
@@ -9635,10 +9649,10 @@ export default {
},
"PieChartDataInput": {
"configuration": [
- 293
+ 294
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -9663,7 +9677,7 @@ export default {
1
],
"location": [
- 304
+ 305
],
"postcode": [
1
@@ -9691,7 +9705,7 @@ export default {
},
"PublicApplicationRegistration": {
"id": [
- 497
+ 498
],
"logoUrl": [
1
@@ -9711,7 +9725,7 @@ export default {
},
"PublicConnectionParametersOutput": {
"connectionSecurity": [
- 218
+ 219
],
"host": [
1
@@ -9728,16 +9742,16 @@ export default {
},
"PublicDomain": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"domain": [
1
],
"id": [
- 497
+ 498
],
"isValidated": [
4
@@ -9748,10 +9762,10 @@ export default {
},
"PublicFeatureFlag": {
"key": [
- 245
+ 246
],
"metadata": [
- 397
+ 398
],
"__typename": [
1
@@ -9776,13 +9790,13 @@ export default {
},
"PublicImapSmtpCaldavConnectionParameters": {
"CALDAV": [
- 394
+ 395
],
"IMAP": [
- 394
+ 395
],
"SMTP": [
- 394
+ 395
],
"__typename": [
1
@@ -9790,22 +9804,22 @@ export default {
},
"PublicWorkspaceData": {
"authBypassProviders": [
- 64
+ 65
],
"authProviders": [
- 65
+ 66
],
"displayName": [
1
],
"id": [
- 497
+ 498
],
"logo": [
1
],
"workspaceUrls": [
- 645
+ 646
],
"__typename": [
1
@@ -9816,7 +9830,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"logo": [
1
@@ -9833,7 +9847,7 @@ export default {
17,
{
"agentId": [
- 497,
+ 498,
"UUID!"
],
"limit": [
@@ -9849,7 +9863,7 @@ export default {
29,
{
"input": [
- 270,
+ 271,
"GetApiKeyInput!"
]
}
@@ -9870,7 +9884,7 @@ export default {
32,
{
"filter": [
- 302
+ 303
]
}
],
@@ -9887,10 +9901,10 @@ export default {
}
],
"appMessageChannels": [
- 321,
+ 322,
{
"filter": [
- 303
+ 304
]
}
],
@@ -9898,7 +9912,7 @@ export default {
40,
{
"applicationId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -9907,7 +9921,7 @@ export default {
41,
{
"applicationId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -9931,25 +9945,25 @@ export default {
}
],
"applicationSdkClientChecksums": [
- 442,
+ 443,
{
"applicationId": [
- 497,
+ 498,
"UUID!"
]
}
],
"barChartData": [
- 76,
+ 77,
{
"input": [
- 77,
+ 78,
"BarChartDataInput!"
]
}
],
"billingPortalSession": [
- 100,
+ 101,
{
"forPaymentMethodUpdate": [
4
@@ -9960,10 +9974,10 @@ export default {
}
],
"callRecordingIdForCalendarEvent": [
- 497,
+ 498,
{
"calendarEventId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -9972,16 +9986,16 @@ export default {
14,
{
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
],
"chatStreamCatchupChunks": [
- 126,
+ 127,
{
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
@@ -9990,13 +10004,13 @@ export default {
9,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"checkUserExists": [
- 129,
+ 130,
{
"captchaToken": [
1
@@ -10008,7 +10022,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 635,
+ 636,
{
"inviteHash": [
1,
@@ -10017,7 +10031,7 @@ export default {
}
],
"checkWorkspaceSubdomainAvailability": [
- 468,
+ 469,
{
"subdomain": [
1,
@@ -10026,28 +10040,28 @@ export default {
}
],
"commandMenuItem": [
- 137,
+ 138,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"commandMenuItems": [
- 137
+ 138
],
"currentUser": [
- 592
+ 593
],
"currentUserApplicationAuthorizations": [
38
],
"currentUserSessions": [
- 595
+ 596
],
"currentWorkspace": [
- 627
+ 628
],
"enterpriseCheckoutSession": [
1,
@@ -10066,13 +10080,13 @@ export default {
}
],
"enterpriseSubscriptionStatus": [
- 232
+ 233
],
"eventLogs": [
- 239,
+ 240,
{
"input": [
- 238,
+ 239,
"EventLogQueryInput!"
]
}
@@ -10081,35 +10095,35 @@ export default {
43,
{
"universalIdentifier": [
- 497,
+ 498,
"UUID!"
]
}
],
"field": [
- 246,
+ 247,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"fields": [
- 248,
+ 249,
{
"filter": [
- 251,
+ 252,
"FieldFilter!"
],
"paging": [
- 189,
+ 190,
"CursorPaging!"
]
}
],
"findApplicationRegistrationByClientId": [
- 393,
+ 394,
{
"clientId": [
1,
@@ -10118,7 +10132,7 @@ export default {
}
],
"findApplicationRegistrationByUniversalIdentifier": [
- 55,
+ 56,
{
"universalIdentifier": [
1,
@@ -10127,22 +10141,22 @@ export default {
}
],
"findApplicationRegistrationStats": [
- 57,
+ 58,
{
"id": [
1,
"String!"
],
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
]
}
],
"findApplicationRegistrationVariables": [
- 59,
+ 60,
{
"applicationRegistrationId": [
1,
@@ -10151,7 +10165,7 @@ export default {
}
],
"findClaimableApplicationRegistration": [
- 130,
+ 131,
{
"sourcePackage": [
1
@@ -10162,7 +10176,7 @@ export default {
}
],
"findInstallApplicationJobStatus": [
- 296,
+ 297,
{
"jobId": [
1
@@ -10177,16 +10191,16 @@ export default {
3
],
"findManyApplicationRegistrations": [
- 55
+ 56
],
"findManyApplications": [
37
],
"findManyLogicFunctions": [
- 305
+ 306
],
"findManyMarketplaceApps": [
- 313,
+ 314,
{
"universalIdentifiers": [
1,
@@ -10195,10 +10209,10 @@ export default {
}
],
"findManyPublicDomains": [
- 395
+ 396
],
"findMarketplaceAppDetail": [
- 314,
+ 315,
{
"universalIdentifier": [
1,
@@ -10219,15 +10233,15 @@ export default {
37,
{
"id": [
- 497
+ 498
],
"universalIdentifier": [
- 497
+ 498
]
}
],
"findOneApplicationRegistration": [
- 55,
+ 56,
{
"id": [
1,
@@ -10236,16 +10250,16 @@ export default {
}
],
"findOneLogicFunction": [
- 305,
+ 306,
{
"input": [
- 309,
+ 310,
"LogicFunctionIdInput!"
]
}
],
"findUninstallApplicationJobStatus": [
- 296,
+ 297,
{
"jobId": [
1
@@ -10257,7 +10271,7 @@ export default {
}
],
"findUpgradeApplicationJobStatus": [
- 296,
+ 297,
{
"jobId": [
1
@@ -10269,10 +10283,10 @@ export default {
}
],
"findWorkspaceAiStats": [
- 629
+ 630
],
"findWorkspaceFromInviteHash": [
- 627,
+ 628,
{
"inviteHash": [
1,
@@ -10281,22 +10295,22 @@ export default {
}
],
"findWorkspaceInvitations": [
- 634
+ 635
],
"frontComponent": [
- 266,
+ 267,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"frontComponents": [
- 266
+ 267
],
"getAddressDetails": [
- 391,
+ 392,
{
"placeId": [
1,
@@ -10312,13 +10326,13 @@ export default {
23
],
"getApiKeyRoles": [
- 424
+ 425
],
"getApprovedAccessDomains": [
- 63
+ 64
],
"getAutoCompleteAddress": [
- 70,
+ 71,
{
"address": [
1,
@@ -10337,31 +10351,31 @@ export default {
}
],
"getAvailablePackages": [
- 293,
+ 294,
{
"input": [
- 309,
+ 310,
"LogicFunctionIdInput!"
]
}
],
"getConnectedImapSmtpCaldavAccount": [
- 143,
+ 144,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"getEmailingDomains": [
- 221
+ 222
],
"getInviteSuggestions": [
- 292
+ 293
],
"getJobs": [
- 296,
+ 297,
{
"jobIds": [
1,
@@ -10373,13 +10387,13 @@ export default {
1,
{
"input": [
- 309,
+ 310,
"LogicFunctionIdInput!"
]
}
],
"getPageLayout": [
- 374,
+ 375,
{
"id": [
1,
@@ -10388,7 +10402,7 @@ export default {
}
],
"getPageLayoutTab": [
- 375,
+ 376,
{
"id": [
1,
@@ -10397,7 +10411,7 @@ export default {
}
],
"getPageLayoutTabs": [
- 375,
+ 376,
{
"pageLayoutId": [
1,
@@ -10406,7 +10420,7 @@ export default {
}
],
"getPageLayoutWidget": [
- 378,
+ 379,
{
"id": [
1,
@@ -10415,7 +10429,7 @@ export default {
}
],
"getPageLayoutWidgets": [
- 378,
+ 379,
{
"pageLayoutTabId": [
1,
@@ -10424,21 +10438,21 @@ export default {
}
],
"getPageLayouts": [
- 374,
+ 375,
{
"objectMetadataId": [
1
],
"pageLayoutType": [
- 377
+ 378
]
}
],
"getPermissionFlags": [
- 385
+ 386
],
"getPublicWorkspaceDataByDomain": [
- 399,
+ 400,
{
"origin": [
1
@@ -10446,37 +10460,37 @@ export default {
}
],
"getPublicWorkspaceDataById": [
- 400,
+ 401,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"getResourceCreditUsage": [
- 99
+ 100
],
"getRole": [
- 424,
+ 425,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"getRoles": [
- 424
+ 425
],
"getSSOIdentityProviders": [
- 263
+ 264
],
"getToolIndex": [
- 479
+ 480
],
"getToolInputSchema": [
- 293,
+ 294,
{
"toolName": [
1,
@@ -10485,15 +10499,15 @@ export default {
}
],
"getUsageAnalytics": [
- 576,
+ 577,
{
"input": [
- 577
+ 578
]
}
],
"getView": [
- 604,
+ 605,
{
"id": [
1,
@@ -10502,7 +10516,7 @@ export default {
}
],
"getViewField": [
- 607,
+ 608,
{
"id": [
1,
@@ -10511,7 +10525,7 @@ export default {
}
],
"getViewFieldGroup": [
- 608,
+ 609,
{
"id": [
1,
@@ -10520,7 +10534,7 @@ export default {
}
],
"getViewFieldGroups": [
- 608,
+ 609,
{
"viewId": [
1,
@@ -10529,7 +10543,7 @@ export default {
}
],
"getViewFields": [
- 607,
+ 608,
{
"viewId": [
1,
@@ -10538,7 +10552,7 @@ export default {
}
],
"getViewFilter": [
- 609,
+ 610,
{
"id": [
1,
@@ -10547,7 +10561,7 @@ export default {
}
],
"getViewFilterGroup": [
- 610,
+ 611,
{
"id": [
1,
@@ -10556,7 +10570,7 @@ export default {
}
],
"getViewFilterGroups": [
- 610,
+ 611,
{
"viewId": [
1
@@ -10564,7 +10578,7 @@ export default {
}
],
"getViewFilters": [
- 609,
+ 610,
{
"viewId": [
1
@@ -10572,7 +10586,7 @@ export default {
}
],
"getViewGroup": [
- 613,
+ 614,
{
"id": [
1,
@@ -10581,7 +10595,7 @@ export default {
}
],
"getViewGroups": [
- 613,
+ 614,
{
"viewId": [
1
@@ -10589,7 +10603,7 @@ export default {
}
],
"getViewSort": [
- 616,
+ 617,
{
"id": [
1,
@@ -10598,7 +10612,7 @@ export default {
}
],
"getViewSorts": [
- 616,
+ 617,
{
"viewId": [
1
@@ -10606,19 +10620,19 @@ export default {
}
],
"getViews": [
- 604,
+ 605,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 618,
+ 619,
"[ViewType!]"
]
}
],
"getWorkspaceCreationDefaults": [
- 632
+ 633
],
"githubClaimAuthorizationUrl": [
1,
@@ -10639,134 +10653,137 @@ export default {
}
],
"lineChartData": [
- 298,
+ 299,
{
"input": [
- 299,
+ 300,
"LineChartDataInput!"
]
}
],
"listPlans": [
- 90
+ 91
],
"messageSuppressions": [
- 333,
+ 334,
{
"input": [
- 264,
+ 265,
"FindMessageSuppressionsInput!"
]
}
],
"metadataTranslations": [
- 339,
+ 340,
{
"input": [
- 342,
+ 343,
"MetadataTranslationsInput!"
]
}
],
"minimalMetadata": [
- 344
+ 345
],
"mostlyEmptyFieldMetadataIds": [
- 497,
+ 498,
{
"objectMetadataId": [
- 497,
+ 498,
"UUID!"
]
}
],
+ "myApplicationPreferences": [
+ 55
+ ],
"myCalendarChannels": [
- 110,
+ 111,
{
"connectedAccountId": [
- 497
+ 498
]
}
],
"myConnectedAccounts": [
- 141
+ 142
],
"myMessageChannels": [
- 321,
+ 322,
{
"connectedAccountId": [
- 497
+ 498
]
}
],
"myMessageFolders": [
- 328,
+ 329,
{
"messageChannelId": [
- 497
+ 498
]
}
],
"myUserApplicationVariables": [
- 637
+ 638
],
"navigationMenuItem": [
- 350,
+ 351,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"navigationMenuItems": [
- 350
+ 351
],
"object": [
- 353,
+ 354,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"objectRecordCounts": [
- 363
+ 364
],
"objects": [
- 354,
+ 355,
{
"filter": [
- 357,
+ 358,
"ObjectFilter!"
],
"paging": [
- 189,
+ 190,
"CursorPaging!"
]
}
],
"pieChartData": [
- 388,
+ 389,
{
"input": [
- 389,
+ 390,
"PieChartDataInput!"
]
}
],
"previewMessageCampaignAudience": [
- 118,
+ 119,
{
"input": [
- 392,
+ 393,
"PreviewMessageCampaignAudienceInput!"
]
}
],
"publicMarketplaceAppDetail": [
- 314,
+ 315,
{
"universalIdentifier": [
1,
@@ -10775,7 +10792,7 @@ export default {
}
],
"publicMarketplaceApps": [
- 313,
+ 314,
{
"isVetted": [
4,
@@ -10784,70 +10801,70 @@ export default {
}
],
"recordPermissions": [
- 406,
+ 407,
{
"targets": [
- 416,
+ 417,
"[RecordTargetInput!]!"
]
}
],
"recordSharing": [
- 411,
+ 412,
{
"target": [
- 416,
+ 417,
"RecordTargetInput!"
]
}
],
"skill": [
- 464,
+ 465,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"skills": [
- 464
+ 465
],
"timelineActivityTypes": [
- 475
+ 476
],
"twoFactorAuthenticationRecoveryStatus": [
- 496,
+ 497,
{
"userId": [
- 497,
+ 498,
"UUID!"
]
}
],
"unsubscribeTopics": [
- 500
+ 501
],
"usageLimits": [
- 579
+ 580
],
"usageQuotaDefinitions": [
- 583
+ 584
],
"usageQuotaScopeConsumption": [
- 585,
+ 586,
{
"input": [
- 586,
+ 587,
"UsageQuotaScopeInput!"
]
}
],
"usageQuotasWithConsumption": [
- 587
+ 588
],
"validatePasswordResetToken": [
- 598,
+ 599,
{
"passwordResetToken": [
1,
@@ -10856,25 +10873,25 @@ export default {
}
],
"validationRules": [
- 599,
+ 600,
{
"objectMetadataId": [
- 497,
+ 498,
"UUID!"
]
}
],
"webhook": [
- 620,
+ 621,
{
"id": [
- 497,
+ 498,
"UUID!"
]
}
],
"webhooks": [
- 620
+ 621
],
"__typename": [
1
@@ -10882,7 +10899,7 @@ export default {
},
"RatioAggregateConfig": {
"fieldMetadataId": [
- 497
+ 498
],
"optionValue": [
1
@@ -10902,7 +10919,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"progress": [
8
@@ -10913,7 +10930,7 @@ export default {
},
"RecordIdentifier": {
"id": [
- 497
+ 498
],
"imageIdentifier": [
1
@@ -10944,13 +10961,13 @@ export default {
},
"RecordPermissionsResult": {
"objectMetadataId": [
- 497
+ 498
],
"permissions": [
- 405
+ 406
],
"recordId": [
- 497
+ 498
],
"__typename": [
1
@@ -10959,10 +10976,10 @@ export default {
"RecordShareAccessLevel": {},
"RecordSharePrincipalInput": {
"roleId": [
- 497
+ 498
],
"workspaceMemberId": [
- 497
+ 498
],
"__typename": [
1
@@ -10975,25 +10992,25 @@ export default {
4
],
"defaultGeneralAccessLevel": [
- 407
+ 408
],
"generalAccessLevel": [
- 407
+ 408
],
"hasManagedGeneralAccess": [
4
],
"permissions": [
- 405
+ 406
],
"roles": [
- 414
+ 415
],
"shares": [
- 412
+ 413
],
"sharingMode": [
- 413
+ 414
],
"__typename": [
1
@@ -11001,22 +11018,22 @@ export default {
},
"RecordSharingGrantDTO": {
"accessLevel": [
- 407
+ 408
],
"id": [
10
],
"principalId": [
- 497
+ 498
],
"principalRoleId": [
- 497
+ 498
],
"principalType": [
- 409
+ 410
],
"rowCause": [
- 410
+ 411
],
"__typename": [
1
@@ -11031,7 +11048,7 @@ export default {
4
],
"id": [
- 497
+ 498
],
"label": [
1
@@ -11042,7 +11059,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 622
+ 623
],
"isUIEditable": [
4
@@ -11059,10 +11076,10 @@ export default {
},
"RecordTargetInput": {
"objectMetadataId": [
- 497
+ 498
],
"recordId": [
- 497
+ 498
],
"__typename": [
1
@@ -11070,19 +11087,19 @@ export default {
},
"Relation": {
"sourceFieldMetadata": [
- 246
+ 247
],
"sourceObjectMetadata": [
- 353
+ 354
],
"targetFieldMetadata": [
- 246
+ 247
],
"targetObjectMetadata": [
- 353
+ 354
],
"type": [
- 418
+ 419
],
"__typename": [
1
@@ -11121,7 +11138,7 @@ export default {
},
"RevokeApiKeyInput": {
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -11146,7 +11163,7 @@ export default {
30
],
"applicationId": [
- 497
+ 498
],
"canAccessAllTools": [
4
@@ -11179,13 +11196,13 @@ export default {
1
],
"fieldPermissions": [
- 253
+ 254
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"isEditable": [
4
@@ -11194,22 +11211,22 @@ export default {
1
],
"objectPermissions": [
- 361
+ 362
],
"permissionFlags": [
- 425
+ 426
],
"rowLevelPermissionPredicateGroups": [
- 428
+ 429
],
"rowLevelPermissionPredicates": [
- 427
+ 428
],
"universalIdentifier": [
- 497
+ 498
],
"workspaceMembers": [
- 636
+ 637
],
"__typename": [
1
@@ -11220,10 +11237,10 @@ export default {
1
],
"id": [
- 497
+ 498
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -11248,7 +11265,7 @@ export default {
1
],
"operand": [
- 432
+ 433
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11263,7 +11280,7 @@ export default {
1
],
"value": [
- 293
+ 294
],
"workspaceMemberFieldMetadataId": [
1
@@ -11280,7 +11297,7 @@ export default {
1
],
"logicalOperator": [
- 430
+ 431
],
"objectMetadataId": [
1
@@ -11300,16 +11317,16 @@ export default {
},
"RowLevelPermissionPredicateGroupInput": {
"id": [
- 497
+ 498
],
"logicalOperator": [
- 430
+ 431
],
"objectMetadataId": [
- 497
+ 498
],
"parentRowLevelPermissionPredicateGroupId": [
- 497
+ 498
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11321,25 +11338,25 @@ export default {
"RowLevelPermissionPredicateGroupLogicalOperator": {},
"RowLevelPermissionPredicateInput": {
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"operand": [
- 432
+ 433
],
"positionInRowLevelPermissionPredicateGroup": [
11
],
"rowLevelPermissionPredicateGroupId": [
- 497
+ 498
],
"subFieldName": [
1
],
"value": [
- 293
+ 294
],
"workspaceMemberFieldMetadataId": [
1
@@ -11360,22 +11377,22 @@ export default {
1
],
"input": [
- 435
+ 436
],
"messages": [
- 435
+ 436
],
"prompt": [
1
],
"responseFormat": [
- 293
+ 294
],
"runAsWorkspaceMemberId": [
- 497
+ 498
],
"thread": [
- 438
+ 439
],
"waitForCompletion": [
4
@@ -11386,7 +11403,7 @@ export default {
},
"RunAgentMessageAttachmentInput": {
"fileId": [
- 497
+ 498
],
"filename": [
1
@@ -11397,13 +11414,13 @@ export default {
},
"RunAgentMessageInput": {
"attachments": [
- 434
+ 435
],
"content": [
1
],
"role": [
- 436
+ 437
],
"__typename": [
1
@@ -11415,7 +11432,7 @@ export default {
1
],
"result": [
- 293
+ 294
],
"status": [
1
@@ -11424,7 +11441,7 @@ export default {
4
],
"threadId": [
- 497
+ 498
],
"__typename": [
1
@@ -11443,7 +11460,7 @@ export default {
},
"SSOConnection": {
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -11452,10 +11469,10 @@ export default {
1
],
"status": [
- 441
+ 442
],
"type": [
- 276
+ 277
],
"__typename": [
1
@@ -11463,7 +11480,7 @@ export default {
},
"SSOIdentityProvider": {
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -11472,10 +11489,10 @@ export default {
1
],
"status": [
- 441
+ 442
],
"type": [
- 276
+ 277
],
"__typename": [
1
@@ -11495,22 +11512,22 @@ export default {
},
"SearchField": {
"createdAt": [
- 191
+ 192
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"position": [
11
],
"tsVectorFieldMetadataId": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -11518,7 +11535,7 @@ export default {
},
"SendChatMessageResult": {
"mentionedParticipantWorkspaceMemberIds": [
- 497
+ 498
],
"messageId": [
1
@@ -11561,7 +11578,7 @@ export default {
1
],
"files": [
- 445
+ 446
],
"fromHandle": [
1
@@ -11615,10 +11632,10 @@ export default {
1
],
"toolCall": [
- 293
+ 294
],
"workspaceMemberIds": [
- 497
+ 498
],
"__typename": [
1
@@ -11626,7 +11643,7 @@ export default {
},
"SendInboxMessageResult": {
"threadId": [
- 497
+ 498
],
"__typename": [
1
@@ -11637,7 +11654,7 @@ export default {
1
],
"result": [
- 634
+ 635
],
"success": [
4
@@ -11651,7 +11668,7 @@ export default {
1
],
"scheduledAt": [
- 191
+ 192
],
"__typename": [
1
@@ -11659,7 +11676,7 @@ export default {
},
"SendMessageCampaignOutputDTO": {
"audience": [
- 118
+ 119
],
"campaignId": [
1
@@ -11716,7 +11733,7 @@ export default {
34
],
"value": [
- 293
+ 294
],
"__typename": [
1
@@ -11724,34 +11741,34 @@ export default {
},
"SettingsMenuItem": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"frontComponentId": [
- 497
+ 498
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"position": [
11
],
"scope": [
- 458
+ 459
],
"title": [
1
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -11783,7 +11800,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -11800,7 +11817,7 @@ export default {
},
"SetupSso": {
"id": [
- 497
+ 498
],
"issuer": [
1
@@ -11809,10 +11826,10 @@ export default {
1
],
"status": [
- 441
+ 442
],
"type": [
- 276
+ 277
],
"__typename": [
1
@@ -11820,10 +11837,10 @@ export default {
},
"SignUp": {
"loginToken": [
- 66
+ 67
],
"workspace": [
- 646
+ 647
],
"__typename": [
1
@@ -11845,13 +11862,13 @@ export default {
},
"Skill": {
"applicationId": [
- 497
+ 498
],
"content": [
1
],
"createdAt": [
- 191
+ 192
],
"description": [
1
@@ -11860,7 +11877,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -11878,7 +11895,7 @@ export default {
1
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -11886,10 +11903,10 @@ export default {
},
"StandaloneRichTextConfiguration": {
"body": [
- 423
+ 424
],
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -11897,7 +11914,7 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 644
+ 645
],
"thread": [
9
@@ -11933,32 +11950,32 @@ export default {
},
"Subscription": {
"eventLogsLive": [
- 240,
+ 241,
{
"fieldFilters": [
- 234,
+ 235,
"[EventLogFieldFilterInput!]"
],
"table": [
- 241,
+ 242,
"EventLogTable!"
]
}
],
"exportRecords": [
- 403,
+ 404,
{
"input": [
- 174,
+ 175,
"CreateRecordExportInput!"
]
}
],
"logicFunctionLogs": [
- 310,
+ 311,
{
"input": [
- 311,
+ 312,
"LogicFunctionLogsInput!"
]
}
@@ -11967,13 +11984,13 @@ export default {
5,
{
"threadId": [
- 497,
+ 498,
"UUID!"
]
}
],
"onEventSubscription": [
- 242,
+ 243,
{
"eventStreamId": [
1,
@@ -11989,7 +12006,7 @@ export default {
"SubscriptionStatus": {},
"Support": {
"supportDriver": [
- 473
+ 474
],
"supportFrontChatId": [
1
@@ -12001,7 +12018,7 @@ export default {
"SupportDriver": {},
"TasksConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -12012,22 +12029,22 @@ export default {
1
],
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"emit": [
- 476
+ 477
],
"frontComponentUniversalIdentifier": [
- 497
+ 498
],
"icon": [
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -12039,16 +12056,16 @@ export default {
1
],
"objectUniversalIdentifier": [
- 497
+ 498
],
"replacesTimelineActivityTypeUniversalIdentifier": [
- 497
+ 498
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -12056,13 +12073,13 @@ export default {
},
"TimelineActivityTypeEmit": {
"objectUniversalIdentifier": [
- 497
+ 498
],
"on": [
1
],
"through": [
- 477
+ 478
],
"__typename": [
1
@@ -12070,13 +12087,13 @@ export default {
},
"TimelineActivityTypeEmitThrough": {
"happensAtFieldUniversalIdentifier": [
- 497
+ 498
],
"relationFieldUniversalIdentifier": [
- 497
+ 498
],
"triggerFieldUniversalIdentifiers": [
- 497
+ 498
],
"__typename": [
1
@@ -12084,7 +12101,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -12104,7 +12121,7 @@ export default {
1
],
"inputSchema": [
- 293
+ 294
],
"label": [
1
@@ -12124,7 +12141,7 @@ export default {
},
"TransientToken": {
"transientToken": [
- 66
+ 67
],
"__typename": [
1
@@ -12132,10 +12149,10 @@ export default {
},
"TriggerAddPeopleToMessageListJobInput": {
"messageListId": [
- 497
+ 498
],
"personFilter": [
- 293
+ 294
],
"__typename": [
1
@@ -12240,7 +12257,7 @@ export default {
1
],
"twoFactorAuthenticationMethodId": [
- 497
+ 498
],
"__typename": [
1
@@ -12248,7 +12265,7 @@ export default {
},
"TwoFactorAuthenticationRecoveryCode": {
"expiresAt": [
- 191
+ 192
],
"recoveryCode": [
1
@@ -12262,7 +12279,7 @@ export default {
1
],
"tokens": [
- 67
+ 68
],
"__typename": [
1
@@ -12276,7 +12293,7 @@ export default {
4
],
"pendingRecoveryCodeExpiresAt": [
- 191
+ 192
],
"__typename": [
1
@@ -12285,19 +12302,19 @@ export default {
"UUID": {},
"UUIDFilterComparison": {
"eq": [
- 497
+ 498
],
"gt": [
- 497
+ 498
],
"gte": [
- 497
+ 498
],
"iLike": [
- 497
+ 498
],
"in": [
- 497
+ 498
],
"is": [
4
@@ -12306,25 +12323,25 @@ export default {
4
],
"like": [
- 497
+ 498
],
"lt": [
- 497
+ 498
],
"lte": [
- 497
+ 498
],
"neq": [
- 497
+ 498
],
"notILike": [
- 497
+ 498
],
"notIn": [
- 497
+ 498
],
"notLike": [
- 497
+ 498
],
"__typename": [
1
@@ -12333,22 +12350,22 @@ export default {
"UnsubscribeHostnameStatus": {},
"UnsubscribeTopic": {
"createdAt": [
- 191
+ 192
],
"description": [
1
],
"id": [
- 497
+ 498
],
"name": [
1
],
"updatedAt": [
- 191
+ 192
],
"visibility": [
- 501
+ 502
],
"__typename": [
1
@@ -12363,13 +12380,13 @@ export default {
1
],
"id": [
- 497
+ 498
],
"label": [
1
],
"modelConfiguration": [
- 293
+ 294
],
"modelId": [
1
@@ -12381,13 +12398,13 @@ export default {
1
],
"responseFormat": [
- 293
+ 294
],
"roleId": [
- 497
+ 498
],
"triggers": [
- 293
+ 294
],
"__typename": [
1
@@ -12398,7 +12415,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"name": [
1
@@ -12415,13 +12432,13 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isSyncEnabled": [
4
],
"visibility": [
- 327
+ 328
],
"__typename": [
1
@@ -12440,7 +12457,7 @@ export default {
1
],
"update": [
- 507
+ 508
],
"__typename": [
1
@@ -12465,7 +12482,7 @@ export default {
1
],
"update": [
- 509
+ 510
],
"__typename": [
1
@@ -12487,10 +12504,10 @@ export default {
},
"UpdateCalendarChannelInput": {
"id": [
- 497
+ 498
],
"update": [
- 511
+ 512
],
"__typename": [
1
@@ -12498,7 +12515,7 @@ export default {
},
"UpdateCalendarChannelInputUpdates": {
"contactAutoCreationPolicy": [
- 111
+ 112
],
"excludePrivateEvents": [
4
@@ -12510,7 +12527,7 @@ export default {
4
],
"visibility": [
- 114
+ 115
],
"__typename": [
1
@@ -12518,13 +12535,13 @@ export default {
},
"UpdateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 497
+ 498
],
"availabilityType": [
- 138
+ 139
],
"engineComponentKey": [
- 225
+ 226
],
"hotKeys": [
1
@@ -12533,7 +12550,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isPinned": [
4
@@ -12542,7 +12559,7 @@ export default {
1
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
@@ -12559,7 +12576,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -12567,7 +12584,7 @@ export default {
},
"UpdateFieldInput": {
"defaultValue": [
- 293
+ 294
],
"description": [
1
@@ -12606,22 +12623,22 @@ export default {
1
],
"morphRelationsUpdatePayload": [
- 293
+ 294
],
"name": [
1
],
"objectMetadataId": [
- 497
+ 498
],
"options": [
- 293
+ 294
],
"settings": [
- 293
+ 294
],
"translations": [
- 340
+ 341
],
"universalIdentifier": [
1
@@ -12632,10 +12649,10 @@ export default {
},
"UpdateFrontComponentInput": {
"id": [
- 497
+ 498
],
"update": [
- 516
+ 517
],
"__typename": [
1
@@ -12665,10 +12682,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInput": {
"id": [
- 497
+ 498
],
"update": [
- 519
+ 520
],
"__typename": [
1
@@ -12676,10 +12693,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInputUpdates": {
"cronTriggerSettings": [
- 293
+ 294
],
"databaseEventTriggerSettings": [
- 293
+ 294
],
"description": [
1
@@ -12688,7 +12705,7 @@ export default {
1
],
"httpRouteTriggerSettings": [
- 293
+ 294
],
"name": [
1
@@ -12703,10 +12720,10 @@ export default {
11
],
"toolTriggerSettings": [
- 293
+ 294
],
"workflowActionTriggerSettings": [
- 293
+ 294
],
"__typename": [
1
@@ -12714,10 +12731,10 @@ export default {
},
"UpdateMessageChannelInput": {
"id": [
- 497
+ 498
],
"update": [
- 521
+ 522
],
"__typename": [
1
@@ -12725,7 +12742,7 @@ export default {
},
"UpdateMessageChannelInputUpdates": {
"contactAutoCreationPolicy": [
- 322
+ 323
],
"excludeGroupEmails": [
4
@@ -12740,10 +12757,10 @@ export default {
4
],
"messageFolderImportPolicy": [
- 329
+ 330
],
"visibility": [
- 327
+ 328
],
"__typename": [
1
@@ -12751,10 +12768,10 @@ export default {
},
"UpdateMessageFolderInput": {
"id": [
- 497
+ 498
],
"update": [
- 523
+ 524
],
"__typename": [
1
@@ -12770,10 +12787,10 @@ export default {
},
"UpdateMessageFoldersInput": {
"ids": [
- 497
+ 498
],
"update": [
- 523
+ 524
],
"__typename": [
1
@@ -12784,7 +12801,7 @@ export default {
1
],
"folderId": [
- 497
+ 498
],
"icon": [
1
@@ -12796,7 +12813,7 @@ export default {
1
],
"pageLayoutId": [
- 497
+ 498
],
"position": [
11
@@ -12816,7 +12833,7 @@ export default {
1
],
"imageIdentifierFieldMetadataId": [
- 497
+ 498
],
"isActive": [
4
@@ -12828,7 +12845,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 497
+ 498
],
"labelPlural": [
1
@@ -12843,19 +12860,19 @@ export default {
1
],
"openRecordIn": [
- 360
+ 361
],
"readability": [
- 338
+ 339
],
"sharingReach": [
- 368
+ 369
],
"shortcut": [
1
],
"translations": [
- 340
+ 341
],
"__typename": [
1
@@ -12863,10 +12880,10 @@ export default {
},
"UpdateOneFieldMetadataInput": {
"id": [
- 497
+ 498
],
"update": [
- 514
+ 515
],
"__typename": [
1
@@ -12874,10 +12891,10 @@ export default {
},
"UpdateOneNavigationMenuItemInput": {
"id": [
- 497
+ 498
],
"update": [
- 525
+ 526
],
"__typename": [
1
@@ -12885,10 +12902,10 @@ export default {
},
"UpdateOneObjectInput": {
"id": [
- 497
+ 498
],
"update": [
- 526
+ 527
],
"__typename": [
1
@@ -12899,10 +12916,10 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"type": [
- 377
+ 378
],
"__typename": [
1
@@ -12913,7 +12930,7 @@ export default {
1
],
"layoutMode": [
- 376
+ 377
],
"position": [
11
@@ -12930,10 +12947,10 @@ export default {
1
],
"id": [
- 497
+ 498
],
"layoutMode": [
- 376
+ 377
],
"position": [
11
@@ -12942,7 +12959,7 @@ export default {
1
],
"widgets": [
- 534
+ 535
],
"__typename": [
1
@@ -12953,28 +12970,28 @@ export default {
1
],
"conditionalDisplay": [
- 293
+ 294
],
"configuration": [
- 293
+ 294
],
"isActive": [
4
],
"objectMetadataId": [
- 497
+ 498
],
"pageLayoutTabId": [
- 497
+ 498
],
"position": [
- 293
+ 294
],
"title": [
1
],
"type": [
- 623
+ 624
],
"__typename": [
1
@@ -12985,28 +13002,28 @@ export default {
1
],
"conditionalDisplay": [
- 293
+ 294
],
"configuration": [
- 293
+ 294
],
"id": [
- 497
+ 498
],
"objectMetadataId": [
- 497
+ 498
],
"pageLayoutTabId": [
- 497
+ 498
],
"position": [
- 293
+ 294
],
"title": [
1
],
"type": [
- 623
+ 624
],
"__typename": [
1
@@ -13020,13 +13037,13 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"tabs": [
- 532
+ 533
],
"type": [
- 377
+ 378
],
"__typename": [
1
@@ -13034,10 +13051,10 @@ export default {
},
"UpdateRoleInput": {
"id": [
- 497
+ 498
],
"update": [
- 537
+ 538
],
"__typename": [
1
@@ -13095,7 +13112,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -13115,7 +13132,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -13124,7 +13141,7 @@ export default {
1
],
"translations": [
- 340
+ 341
],
"__typename": [
1
@@ -13141,7 +13158,7 @@ export default {
1
],
"visibility": [
- 501
+ 502
],
"__typename": [
1
@@ -13149,10 +13166,10 @@ export default {
},
"UpdateUsageLimitInput": {
"id": [
- 497
+ 498
],
"payload": [
- 178
+ 179
],
"__typename": [
1
@@ -13160,10 +13177,10 @@ export default {
},
"UpdateValidationRuleInput": {
"id": [
- 497
+ 498
],
"update": [
- 543
+ 544
],
"__typename": [
1
@@ -13174,7 +13191,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 497
+ 498
],
"expression": [
1
@@ -13197,10 +13214,10 @@ export default {
},
"UpdateViewFieldGroupInput": {
"id": [
- 497
+ 498
],
"update": [
- 545
+ 546
],
"__typename": [
1
@@ -13225,10 +13242,10 @@ export default {
},
"UpdateViewFieldInput": {
"id": [
- 497
+ 498
],
"update": [
- 547
+ 548
],
"__typename": [
1
@@ -13248,7 +13265,7 @@ export default {
11
],
"viewFieldGroupId": [
- 497
+ 498
],
"__typename": [
1
@@ -13256,19 +13273,19 @@ export default {
},
"UpdateViewFilterGroupInput": {
"id": [
- 497
+ 498
],
"logicalOperator": [
- 611
+ 612
],
"parentViewFilterGroupId": [
- 497
+ 498
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 497
+ 498
],
"__typename": [
1
@@ -13276,10 +13293,10 @@ export default {
},
"UpdateViewFilterInput": {
"id": [
- 497
+ 498
],
"update": [
- 550
+ 551
],
"__typename": [
1
@@ -13287,25 +13304,25 @@ export default {
},
"UpdateViewFilterInputUpdates": {
"fieldMetadataId": [
- 497
+ 498
],
"operand": [
- 612
+ 613
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 497
+ 498
],
"subFieldName": [
1
],
"value": [
- 293
+ 294
],
"viewFilterGroupId": [
- 497
+ 498
],
"__typename": [
1
@@ -13313,10 +13330,10 @@ export default {
},
"UpdateViewGroupInput": {
"id": [
- 497
+ 498
],
"update": [
- 552
+ 553
],
"__typename": [
1
@@ -13324,7 +13341,7 @@ export default {
},
"UpdateViewGroupInputUpdates": {
"fieldMetadataId": [
- 497
+ 498
],
"fieldValue": [
1
@@ -13344,13 +13361,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 497
+ 498
],
"calendarFieldMetadataId": [
- 497
+ 498
],
"calendarLayout": [
- 605
+ 606
],
"groupLoadLimit": [
8
@@ -13359,7 +13376,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isCompact": [
4
@@ -13368,19 +13385,19 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 497
+ 498
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 497
+ 498
],
"name": [
1
],
"openRecordIn": [
- 615
+ 616
],
"position": [
11
@@ -13389,10 +13406,10 @@ export default {
4
],
"type": [
- 618
+ 619
],
"visibility": [
- 619
+ 620
],
"__typename": [
1
@@ -13400,10 +13417,10 @@ export default {
},
"UpdateViewSortInput": {
"id": [
- 497
+ 498
],
"update": [
- 555
+ 556
],
"__typename": [
1
@@ -13411,7 +13428,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 617
+ 618
],
"subFieldName": [
1
@@ -13422,10 +13439,10 @@ export default {
},
"UpdateWebhookInput": {
"id": [
- 497
+ 498
],
"update": [
- 557
+ 558
],
"__typename": [
1
@@ -13473,7 +13490,7 @@ export default {
1
],
"aiModelIdByTier": [
- 293
+ 294
],
"allowImpersonation": [
4
@@ -13482,7 +13499,7 @@ export default {
1
],
"defaultRoleId": [
- 497
+ 498
],
"displayName": [
1
@@ -13542,7 +13559,7 @@ export default {
11
],
"workspaceDiscoverability": [
- 633
+ 634
],
"__typename": [
1
@@ -13550,10 +13567,10 @@ export default {
},
"UpdateWorkspaceMemberSettingsInput": {
"update": [
- 293
+ 294
],
"workspaceMemberId": [
- 497
+ 498
],
"__typename": [
1
@@ -13562,10 +13579,10 @@ export default {
"Upload": {},
"UpsertFieldPermissionsInput": {
"fieldPermissions": [
- 254
+ 255
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -13573,7 +13590,7 @@ export default {
},
"UpsertFieldsWidgetFieldInput": {
"fieldMetadataId": [
- 497
+ 498
],
"isVisible": [
4
@@ -13582,7 +13599,7 @@ export default {
11
],
"viewFieldId": [
- 497
+ 498
],
"__typename": [
1
@@ -13590,10 +13607,10 @@ export default {
},
"UpsertFieldsWidgetGroupInput": {
"fields": [
- 563
+ 564
],
"id": [
- 497
+ 498
],
"isVisible": [
4
@@ -13610,13 +13627,13 @@ export default {
},
"UpsertFieldsWidgetInput": {
"fields": [
- 563
+ 564
],
"groups": [
- 564
+ 565
],
"widgetId": [
- 497
+ 498
],
"__typename": [
1
@@ -13624,10 +13641,10 @@ export default {
},
"UpsertObjectPermissionsInput": {
"objectPermissions": [
- 362
+ 363
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -13638,7 +13655,7 @@ export default {
1
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -13646,16 +13663,16 @@ export default {
},
"UpsertRowLevelPermissionPredicatesInput": {
"objectMetadataId": [
- 497
+ 498
],
"predicateGroups": [
- 429
+ 430
],
"predicates": [
- 431
+ 432
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -13663,10 +13680,10 @@ export default {
},
"UpsertRowLevelPermissionPredicatesResult": {
"predicateGroups": [
- 428
+ 429
],
"predicates": [
- 427
+ 428
],
"__typename": [
1
@@ -13674,22 +13691,22 @@ export default {
},
"UpsertViewWidgetInput": {
"view": [
- 574
+ 575
],
"viewFields": [
- 571
+ 572
],
"viewFilterGroups": [
- 572
+ 573
],
"viewFilters": [
- 573
+ 574
],
"viewSorts": [
- 575
+ 576
],
"widgetId": [
- 497
+ 498
],
"__typename": [
1
@@ -13700,7 +13717,7 @@ export default {
20
],
"fieldMetadataId": [
- 497
+ 498
],
"isVisible": [
4
@@ -13712,7 +13729,7 @@ export default {
11
],
"viewFieldId": [
- 497
+ 498
],
"__typename": [
1
@@ -13720,13 +13737,13 @@ export default {
},
"UpsertViewWidgetViewFilterGroupInput": {
"id": [
- 497
+ 498
],
"logicalOperator": [
- 611
+ 612
],
"parentViewFilterGroupId": [
- 497
+ 498
],
"positionInViewFilterGroup": [
11
@@ -13737,28 +13754,28 @@ export default {
},
"UpsertViewWidgetViewFilterInput": {
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"operand": [
- 612
+ 613
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 497
+ 498
],
"subFieldName": [
1
],
"value": [
- 293
+ 294
],
"viewFilterGroupId": [
- 497
+ 498
],
"__typename": [
1
@@ -13766,34 +13783,34 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"calendarEndFieldMetadataId": [
- 497
+ 498
],
"calendarFieldMetadataId": [
- 497
+ 498
],
"calendarLayout": [
- 605
+ 606
],
"kanbanAggregateOperation": [
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 497
+ 498
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 497
+ 498
],
"openRecordIn": [
- 615
+ 616
],
"shouldHideEmptyGroups": [
4
],
"type": [
- 618
+ 619
],
"__typename": [
1
@@ -13801,13 +13818,13 @@ export default {
},
"UpsertViewWidgetViewSortInput": {
"direction": [
- 617
+ 618
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -13815,28 +13832,28 @@ export default {
},
"UsageAnalytics": {
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
],
"timeSeries": [
- 589
+ 590
],
"usageByApplication": [
- 578
+ 579
],
"usageByModel": [
- 578
+ 579
],
"usageByOperationType": [
- 578
+ 579
],
"usageByUser": [
- 578
+ 579
],
"userDailyUsage": [
- 591
+ 592
],
"__typename": [
1
@@ -13844,13 +13861,13 @@ export default {
},
"UsageAnalyticsInput": {
"operationTypes": [
- 581
+ 582
],
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
],
"userWorkspaceId": [
1
@@ -13881,22 +13898,22 @@ export default {
},
"UsageLimit": {
"burstValue": [
- 81
+ 82
],
"createdAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"limitKind": [
1
],
"limitValue": [
- 81
+ 82
],
"operationType": [
- 581
+ 582
],
"periodCount": [
8
@@ -13905,7 +13922,7 @@ export default {
1
],
"resourceType": [
- 588
+ 589
],
"spenderId": [
1
@@ -13914,10 +13931,10 @@ export default {
1
],
"unit": [
- 590
+ 591
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -13925,10 +13942,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"allowedUnits": [
- 590
+ 591
],
"operationType": [
- 581
+ 582
],
"__typename": [
1
@@ -13937,7 +13954,7 @@ export default {
"UsageOperationType": {},
"UsageQuotaDefinition": {
"allowedOperations": [
- 580
+ 581
],
"allowedSpenderTypes": [
1
@@ -13946,10 +13963,10 @@ export default {
1
],
"operatorOnlyScopes": [
- 584
+ 585
],
"resourceType": [
- 588
+ 589
],
"__typename": [
1
@@ -13957,7 +13974,7 @@ export default {
},
"UsageQuotaDefinitions": {
"definitions": [
- 582
+ 583
],
"hasAllowancePeriod": [
4
@@ -13971,7 +13988,7 @@ export default {
},
"UsageQuotaOperatorOnlyScope": {
"operationType": [
- 581
+ 582
],
"periodUnit": [
1
@@ -13980,7 +13997,7 @@ export default {
1
],
"unit": [
- 590
+ 591
],
"__typename": [
1
@@ -13988,13 +14005,13 @@ export default {
},
"UsageQuotaScopeConsumption": {
"consumedValue": [
- 81
+ 82
],
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
],
"__typename": [
1
@@ -14002,13 +14019,13 @@ export default {
},
"UsageQuotaScopeInput": {
"operationType": [
- 581
+ 582
],
"periodUnit": [
1
],
"resourceType": [
- 588
+ 589
],
"spenderId": [
1
@@ -14017,7 +14034,7 @@ export default {
1
],
"unit": [
- 590
+ 591
],
"__typename": [
1
@@ -14025,34 +14042,34 @@ export default {
},
"UsageQuotaWithConsumption": {
"consumedValue": [
- 81
+ 82
],
"id": [
- 497
+ 498
],
"isEnforced": [
4
],
"limitValue": [
- 81
+ 82
],
"operationType": [
- 581
+ 582
],
"periodEnd": [
- 191
+ 192
],
"periodStart": [
- 191
+ 192
],
"periodUnit": [
1
],
"remainingValue": [
- 81
+ 82
],
"resourceType": [
- 588
+ 589
],
"spenderId": [
1
@@ -14064,7 +14081,7 @@ export default {
1
],
"unit": [
- 590
+ 591
],
"__typename": [
1
@@ -14088,7 +14105,7 @@ export default {
"UsageUnit": {},
"UsageUserDaily": {
"dailyUsage": [
- 589
+ 590
],
"userWorkspaceId": [
1
@@ -14099,7 +14116,7 @@ export default {
},
"User": {
"availableWorkspaces": [
- 72
+ 73
],
"canAccessFullAdminPanel": [
4
@@ -14108,19 +14125,19 @@ export default {
4
],
"createdAt": [
- 191
+ 192
],
"currentUserWorkspace": [
- 596
+ 597
],
"currentWorkspace": [
- 627
+ 628
],
"deletedAt": [
- 191
+ 192
],
"deletedWorkspaceMembers": [
- 204
+ 205
],
"disabled": [
4
@@ -14135,7 +14152,7 @@ export default {
4
],
"id": [
- 497
+ 498
],
"isEmailVerified": [
4
@@ -14150,31 +14167,31 @@ export default {
1
],
"onboardingStatus": [
- 369
+ 370
],
"previousOnboardingStatus": [
- 369
+ 370
],
"supportUserHash": [
1
],
"updatedAt": [
- 191
+ 192
],
"userVars": [
- 294
+ 295
],
"userWorkspaces": [
- 596
+ 597
],
"workspaceMember": [
- 636
+ 637
],
"workspaceMembers": [
- 636
+ 637
],
"workspaces": [
- 596
+ 597
],
"__typename": [
1
@@ -14200,7 +14217,7 @@ export default {
1
],
"options": [
- 293
+ 294
],
"type": [
1
@@ -14218,13 +14235,13 @@ export default {
1
],
"createdAt": [
- 191
+ 192
],
"expiresAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"ipAddress": [
1
@@ -14236,13 +14253,13 @@ export default {
4
],
"lastActiveAt": [
- 191
+ 192
],
"userAgent": [
1
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14250,13 +14267,13 @@ export default {
},
"UserWorkspace": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"isImpersonating": [
4
@@ -14265,25 +14282,25 @@ export default {
1
],
"objectPermissions": [
- 361
+ 362
],
"objectsPermissions": [
- 361
+ 362
],
"permissionFlags": [
- 386
+ 387
],
"twoFactorAuthenticationMethodSummary": [
- 493
+ 494
],
"updatedAt": [
- 191
+ 192
],
"user": [
- 592
+ 593
],
"userId": [
- 497
+ 498
],
"__typename": [
1
@@ -14291,7 +14308,7 @@ export default {
},
"ValidateApprovedAccessDomainInput": {
"approvedAccessDomainId": [
- 497
+ 498
],
"validationToken": [
1
@@ -14308,7 +14325,7 @@ export default {
4
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -14319,7 +14336,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 497
+ 498
],
"expression": [
1
@@ -14328,7 +14345,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -14340,7 +14357,7 @@ export default {
1
],
"objectMetadataId": [
- 497
+ 498
],
"__typename": [
1
@@ -14368,10 +14385,10 @@ export default {
},
"VerifyEmailAndGetLoginToken": {
"loginToken": [
- 66
+ 67
],
"workspaceUrls": [
- 645
+ 646
],
"__typename": [
1
@@ -14401,25 +14418,25 @@ export default {
1
],
"applicationId": [
- 497
+ 498
],
"calendarEndFieldMetadataId": [
- 497
+ 498
],
"calendarFieldMetadataId": [
- 497
+ 498
],
"calendarLayout": [
- 605
+ 606
],
"createdAt": [
- 191
+ 192
],
"createdByUserWorkspaceId": [
- 497
+ 498
],
"deletedAt": [
- 191
+ 192
],
"groupLoadLimit": [
8
@@ -14428,7 +14445,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -14446,25 +14463,25 @@ export default {
20
],
"kanbanAggregateOperationFieldMetadataId": [
- 497
+ 498
],
"kanbanColumnWidth": [
8
],
"key": [
- 614
+ 615
],
"mainGroupByFieldMetadataId": [
- 497
+ 498
],
"name": [
1
],
"objectMetadataId": [
- 497
+ 498
],
"openRecordIn": [
- 615
+ 616
],
"position": [
11
@@ -14473,37 +14490,37 @@ export default {
4
],
"type": [
- 618
+ 619
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"viewFieldGroups": [
- 608
+ 609
],
"viewFields": [
- 607
+ 608
],
"viewFilterGroups": [
- 610
+ 611
],
"viewFilters": [
- 609
+ 610
],
"viewGroups": [
- 613
+ 614
],
"viewSorts": [
- 616
+ 617
],
"visibility": [
- 619
+ 620
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14512,7 +14529,7 @@ export default {
"ViewCalendarLayout": {},
"ViewConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -14523,19 +14540,19 @@ export default {
20
],
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -14556,19 +14573,19 @@ export default {
11
],
"universalIdentifier": [
- 497
+ 498
],
"updatedAt": [
- 191
+ 192
],
"viewFieldGroupId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14576,13 +14593,13 @@ export default {
},
"ViewFieldGroup": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"isActive": [
4
@@ -14600,16 +14617,16 @@ export default {
11
],
"updatedAt": [
- 191
+ 192
],
"viewFields": [
- 607
+ 608
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14617,43 +14634,43 @@ export default {
},
"ViewFilter": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"operand": [
- 612
+ 613
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 497
+ 498
],
"subFieldName": [
1
],
"updatedAt": [
- 191
+ 192
],
"value": [
- 293
+ 294
],
"viewFilterGroupId": [
- 497
+ 498
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14661,31 +14678,31 @@ export default {
},
"ViewFilterGroup": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"logicalOperator": [
- 611
+ 612
],
"parentViewFilterGroupId": [
- 497
+ 498
],
"positionInViewFilterGroup": [
11
],
"updatedAt": [
- 191
+ 192
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14695,16 +14712,16 @@ export default {
"ViewFilterOperand": {},
"ViewGroup": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"fieldValue": [
1
],
"id": [
- 497
+ 498
],
"isVisible": [
4
@@ -14713,13 +14730,13 @@ export default {
11
],
"updatedAt": [
- 191
+ 192
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14729,31 +14746,31 @@ export default {
"ViewOpenRecordIn": {},
"ViewSort": {
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"direction": [
- 617
+ 618
],
"fieldMetadataId": [
- 497
+ 498
],
"id": [
- 497
+ 498
],
"subFieldName": [
1
],
"updatedAt": [
- 191
+ 192
],
"viewId": [
- 497
+ 498
],
"workspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -14764,19 +14781,19 @@ export default {
"ViewVisibility": {},
"Webhook": {
"applicationId": [
- 497
+ 498
],
"createdAt": [
- 191
+ 192
],
"deletedAt": [
- 191
+ 192
],
"description": [
1
],
"id": [
- 497
+ 498
],
"operations": [
1
@@ -14788,7 +14805,7 @@ export default {
1
],
"updatedAt": [
- 191
+ 192
],
"__typename": [
1
@@ -14799,88 +14816,88 @@ export default {
19
],
"on_BarChartConfiguration": [
- 75
+ 76
],
"on_CalendarConfiguration": [
- 115
+ 116
],
"on_CallRecordingSummaryConfiguration": [
- 116
+ 117
],
"on_CallRecordingTranscriptConfiguration": [
- 117
+ 118
],
"on_ChatConfiguration": [
- 125
+ 126
],
"on_ChatThreadsConfiguration": [
- 128
+ 129
],
"on_EmailThreadConfiguration": [
- 220
+ 221
],
"on_EmailsConfiguration": [
- 224
+ 225
],
"on_FieldConfiguration": [
- 247
+ 248
],
"on_FieldRichTextConfiguration": [
- 255
+ 256
],
"on_FieldsConfiguration": [
- 256
+ 257
],
"on_FilesConfiguration": [
- 262
+ 263
],
"on_FormFieldConfiguration": [
- 265
+ 266
],
"on_FrontComponentConfiguration": [
- 267
+ 268
],
"on_IframeConfiguration": [
- 277
+ 278
],
"on_LineChartConfiguration": [
- 297
+ 298
],
"on_MessageCampaignBodyConfiguration": [
- 319
+ 320
],
"on_MessageCampaignDetailsConfiguration": [
- 320
+ 321
],
"on_NotesConfiguration": [
- 352
+ 353
],
"on_PieChartConfiguration": [
- 387
+ 388
],
"on_RecordTableConfiguration": [
- 415
+ 416
],
"on_StandaloneRichTextConfiguration": [
- 465
+ 466
],
"on_TasksConfiguration": [
- 474
+ 475
],
"on_TimelineConfiguration": [
- 478
+ 479
],
"on_ViewConfiguration": [
- 606
+ 607
],
"on_WorkflowConfiguration": [
- 624
+ 625
],
"on_WorkflowRunConfiguration": [
- 625
+ 626
],
"on_WorkflowVersionConfiguration": [
- 626
+ 627
],
"__typename": [
1
@@ -14890,7 +14907,7 @@ export default {
"WidgetType": {},
"WorkflowConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -14898,7 +14915,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -14906,7 +14923,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 622
+ 623
],
"__typename": [
1
@@ -14914,7 +14931,7 @@ export default {
},
"Workspace": {
"activationStatus": [
- 628
+ 629
],
"aiAdditionalInstructions": [
1
@@ -14929,7 +14946,7 @@ export default {
1
],
"aiModelIdByTier": [
- 293
+ 294
],
"allowImpersonation": [
4
@@ -14938,19 +14955,19 @@ export default {
1
],
"billingCustomer": [
- 83
+ 84
],
"billingEntitlements": [
- 85
+ 86
],
"billingSubscriptions": [
- 101
+ 102
],
"createdAt": [
- 191
+ 192
],
"currentBillingSubscription": [
- 101
+ 102
],
"customDomain": [
1
@@ -14959,10 +14976,10 @@ export default {
1
],
"defaultRole": [
- 424
+ 425
],
"deletedAt": [
- 191
+ 192
],
"displayName": [
1
@@ -14974,7 +14991,7 @@ export default {
11
],
"featureFlags": [
- 244
+ 245
],
"hasValidEnterpriseValidityToken": [
4
@@ -14983,7 +15000,7 @@ export default {
4
],
"id": [
- 497
+ 498
],
"installedApplications": [
37
@@ -15034,7 +15051,7 @@ export default {
1
],
"logoFileId": [
- 497
+ 498
],
"metadataVersion": [
11
@@ -15046,25 +15063,25 @@ export default {
11
],
"updatedAt": [
- 191
+ 192
],
"viewFields": [
- 607
+ 608
],
"viewFilterGroups": [
- 610
+ 611
],
"viewFilters": [
- 609
+ 610
],
"viewGroups": [
- 613
+ 614
],
"viewSorts": [
- 616
+ 617
],
"views": [
- 604
+ 605
],
"workspaceCustomApplication": [
37
@@ -15073,13 +15090,13 @@ export default {
1
],
"workspaceDiscoverability": [
- 633
+ 634
],
"workspaceMembersCount": [
11
],
"workspaceUrls": [
- 645
+ 646
],
"__typename": [
1
@@ -15103,19 +15120,19 @@ export default {
"WorkspaceCompanyEnrichmentOutcome": {},
"WorkspaceCompanyEnrichmentResult": {
"enrichment": [
- 293
+ 294
],
"isBookCallOnboardingStepPending": [
4
],
"outcome": [
- 630
+ 631
],
"personEnrichment": [
- 293
+ 294
],
"personOutcome": [
- 643
+ 644
],
"__typename": [
1
@@ -15138,13 +15155,13 @@ export default {
1
],
"expiresAt": [
- 191
+ 192
],
"id": [
- 497
+ 498
],
"roleId": [
- 497
+ 498
],
"__typename": [
1
@@ -15169,28 +15186,28 @@ export default {
1
],
"dateFormat": [
- 638
+ 639
],
"id": [
- 497
+ 498
],
"locale": [
1
],
"name": [
- 269
+ 270
],
"numberFormat": [
- 639
+ 640
],
"openRecordIn": [
- 372
+ 373
],
"roles": [
- 424
+ 425
],
"timeFormat": [
- 640
+ 641
],
"timeZone": [
1
@@ -15202,10 +15219,10 @@ export default {
1
],
"userId": [
- 497
+ 498
],
"userWorkspaceId": [
- 497
+ 498
],
"__typename": [
1
@@ -15213,13 +15230,13 @@ export default {
},
"WorkspaceMemberApplicationVariables": {
"userWorkspaceId": [
- 497
+ 498
],
"variables": [
- 593
+ 594
],
"workspaceMemberId": [
- 497
+ 498
],
"__typename": [
1
@@ -15230,7 +15247,7 @@ export default {
"WorkspaceMemberTimeFormatEnum": {},
"WorkspaceMigration": {
"actions": [
- 293
+ 294
],
"applicationUniversalIdentifier": [
1
@@ -15244,7 +15261,7 @@ export default {
1
],
"id": [
- 497
+ 498
],
"__typename": [
1
@@ -15265,10 +15282,10 @@ export default {
},
"WorkspaceUrlsAndId": {
"id": [
- 497
+ 498
],
"workspaceUrls": [
- 645
+ 646
],
"__typename": [
1
diff --git a/packages/twenty-docs/developers/extend/apps/config/application.mdx b/packages/twenty-docs/developers/extend/apps/config/application.mdx
index 5dee61795d8..0b5845f587e 100644
--- a/packages/twenty-docs/developers/extend/apps/config/application.mdx
+++ b/packages/twenty-docs/developers/extend/apps/config/application.mdx
@@ -185,7 +185,7 @@ const { myUserApplicationVariables } = await client.query({
Values are strings, in the same format as `process.env` (see [Variable types](#variable-types)).
-A member saves their own value with `updateMyUserApplicationVariable`, which takes your app's `applicationUniversalIdentifier` and needs no `APPLICATIONS` permission. It takes the member's own session only: an application token is refused, your app's included, so only the member changes their settings.
+`updateMyUserApplicationVariable` saves a member's own value. It takes your app's `applicationUniversalIdentifier` and needs no `APPLICATIONS` permission, and it writes the value of the person behind the token: the member's own session, or your app's token when a member is behind it, such as in a front component or a logic function run for a member. Your app's token can only name your own app, and a token with nobody behind it, such as in a cron job or an install hook, is refused.
## Default function role
diff --git a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
index 32c3d7ae6fe..d780c5fef99 100644
--- a/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
+++ b/packages/twenty-docs/developers/extend/apps/layout/front-components.mdx
@@ -165,12 +165,13 @@ Declare as many as you need. Twenty's own **General** item — auto-upgrade, App
- **`USER`** — configured by each member for themselves, under their own user settings.
<Note>
- `USER` items are not displayed yet. Until their placement under the member's
- own settings lands, a `USER` item is persisted and synced but nothing renders
- it.
+ A `USER` item renders as a tab on the app's page under **Settings > App
+ preferences**, where only the signed-in member sees it. That page is not
+ enabled in every workspace yet: where it is not, a `USER` item is persisted
+ and synced but nothing renders it.
</Note>
-A `USER` item runs as the member viewing it. To store something per person, declare the variable with `scope: 'USER'`: `getApplicationVariable` returns the viewing member's value. Your component cannot save it: `updateMyUserApplicationVariable` refuses application tokens, so each member sets their own value through their session, as described in [Workspace and user variables](/developers/extend/apps/config/application#workspace-and-user-variables). A workspace variable holds one value shared by everyone, so one member's save would overwrite another's.
+A `USER` item runs as the member viewing it. To store something per person, declare the variable with `scope: 'USER'`: `getApplicationVariable` returns the viewing member's value, and your component saves it with `updateMyUserApplicationVariable`, which writes that member's value only (see [Reading and updating variables at runtime](#reading-and-updating-variables-at-runtime)). Like a `WORKSPACE` item, a `USER` item replaces the generated **Variables** form, so it should let the member set every user variable your app needs. A workspace variable holds one value shared by everyone, so one member's save would overwrite another's.
<Note>
`defineSettingsFrontComponent()` is deprecated in favor of
@@ -591,6 +592,18 @@ const saveRecipientName = async (recipientName: string) => {
},
});
};
+
+const saveMyLanguage = async (language: string) => {
+ await new MetadataApiClient().mutation({
+ updateMyUserApplicationVariable: {
+ __args: {
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ key: 'LANGUAGE',
+ value: language,
+ },
+ },
+ });
+};
```
Notes:
@@ -599,7 +612,7 @@ Notes:
- The key must be one your app declares in [`defineApplication()`](/developers/extend/apps/config/application). Writing a key that is not declared is a not found.
- Secret variables read back masked, never as the stored value. Writing them works normally.
- Reading a variable's `value`, and writing it, need the `APPLICATIONS` settings permission on both your app's role and the signed-in person's role, since the component's token is the intersection of the two. Add `SystemPermissionFlag.APPLICATIONS` to `permissionFlagUniversalIdentifiers` in your [application role](/developers/extend/apps/config/roles).
-- A user variable (`scope: 'USER'`) is injected with the viewing member's value, unless it is secret, and is not set this way. Your component cannot write it: `updateMyUserApplicationVariable` refuses application tokens and takes the member's own session only. See [Workspace and user variables](/developers/extend/apps/config/application#workspace-and-user-variables).
+- A user variable (`scope: 'USER'`) is injected with the viewing member's value, unless it is secret. `updateOneApplicationVariable` refuses it: save it with `updateMyUserApplicationVariable`, as `saveMyLanguage` does above. It writes the viewing member's value only, needs no permission on either role, and refuses naming another application. See [Workspace and user variables](/developers/extend/apps/config/application#workspace-and-user-variables).
### System variables
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 78941177a5a..49171cf74b5 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -569,6 +569,13 @@ export enum ApplicationHealthStatus {
WARNING = 'WARNING'
}
+export type ApplicationPreferences = {
+ __typename?: 'ApplicationPreferences';
+ applicationId: Scalars['UUID']['output'];
+ settingsMenuItems: Array<SettingsMenuItem>;
+ variables: Array<UserApplicationVariableValue>;
+};
+
export type ApplicationRegistration = {
__typename?: 'ApplicationRegistration';
createdAt: Scalars['DateTime']['output'];
@@ -5507,6 +5514,7 @@ export type Query = {
metadataTranslations: Array<MetadataTranslation>;
minimalMetadata: MinimalMetadata;
mostlyEmptyFieldMetadataIds: Array<Scalars['UUID']['output']>;
+ myApplicationPreferences: Array<ApplicationPreferences>;
myCalendarChannels: Array<CalendarChannel>;
myConnectedAccounts: Array<ConnectedAccountPublicDto>;
myMessageChannels: Array<MessageChannel>;
@@ -9875,6 +9883,20 @@ export type MyMessageFoldersQueryVariables = Exact<{
export type MyMessageFoldersQuery = { __typename?: 'Query', myMessageFolders: Array<{ __typename?: 'MessageFolder', id: string, name?: string | null, isSynced: boolean, isSentFolder: boolean, parentFolderId?: string | null, externalId?: string | null, pendingSyncAction: MessageFolderPendingSyncAction, messageChannelId: string, createdAt: string, updatedAt: string }> };
+export type UpdateMyUserApplicationVariableMutationVariables = Exact<{
+ applicationUniversalIdentifier: Scalars['String']['input'];
+ key: Scalars['String']['input'];
+ value: Scalars['String']['input'];
+}>;
+
+
+export type UpdateMyUserApplicationVariableMutation = { __typename?: 'Mutation', updateMyUserApplicationVariable: boolean };
+
+export type MyApplicationPreferencesQueryVariables = Exact<{ [key: string]: never; }>;
+
+
+export type MyApplicationPreferencesQuery = { __typename?: 'Query', myApplicationPreferences: Array<{ __typename?: 'ApplicationPreferences', applicationId: string, settingsMenuItems: Array<{ __typename?: 'SettingsMenuItem', id: string, universalIdentifier: string, applicationId: string, frontComponentId: string, title: string, icon?: string | null, position: number, scope: SettingsMenuItemScope }>, variables: Array<{ __typename?: 'UserApplicationVariableValue', key: string, value: string, description: string, label: string, isSecret: boolean, isDeprecated: boolean, isRequired: boolean, type: string, options?: any | null }> }> };
+
export type ApplicationRegistrationFragmentFragment = { __typename?: 'ApplicationRegistration', id: string, universalIdentifier: string, name: string, logoUrl?: string | null, galleryImagesUrls: Array<string>, oAuthClientId: string, oAuthRedirectUris: Array<string>, oAuthScopes: Array<string>, sourceType: ApplicationRegistrationSourceType, sourcePackage?: string | null, latestAvailableVersion?: string | null, isListed: boolean, isVetted: boolean, isPreInstalled: boolean, isConfigured: boolean, ownerWorkspaceId?: string | null, createdAt: string, updatedAt: string };
export type ClaimApplicationRegistrationOwnershipMutationVariables = Exact<{
@@ -11190,6 +11212,8 @@ export const MyCalendarChannelsDocument = {"kind":"Document","definitions":[{"ki
export const MyConnectedAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedAt"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedReason"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"handleAliases"}},{"kind":"Field","name":{"kind":"Name","value":"lastSignedInAt"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"scope"}},{"kind":"Field","name":{"kind":"Name","value":"lastCredentialsRefreshedAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyConnectedAccountsQuery, MyConnectedAccountsQueryVariables>;
export const MyMessageChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"messageFolderImportPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"excludeNonProfessionalEmails"}},{"kind":"Field","name":{"kind":"Name","value":"excludeGroupEmails"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"importProgress"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyMessageChannelsQuery, MyMessageChannelsQueryVariables>;
export const MyMessageFoldersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageFolders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageFolders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageChannelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isSynced"}},{"kind":"Field","name":{"kind":"Name","value":"isSentFolder"}},{"kind":"Field","name":{"kind":"Name","value":"parentFolderId"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"pendingSyncAction"}},{"kind":"Field","name":{"kind":"Name","value":"messageChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<MyMessageFoldersQuery, MyMessageFoldersQueryVariables>;
+export const UpdateMyUserApplicationVariableDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMyUserApplicationVariable"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationUniversalIdentifier"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"key"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"value"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMyUserApplicationVariable"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationUniversalIdentifier"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationUniversalIdentifier"}}},{"kind":"Argument","name":{"kind":"Name","value":"key"},"value":{"kind":"Variable","name":{"kind":"Name","value":"key"}}},{"kind":"Argument","name":{"kind":"Name","value":"value"},"value":{"kind":"Variable","name":{"kind":"Name","value":"value"}}}]}]}}]} as unknown as DocumentNode<UpdateMyUserApplicationVariableMutation, UpdateMyUserApplicationVariableMutationVariables>;
+export const MyApplicationPreferencesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyApplicationPreferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myApplicationPreferences"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"settingsMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"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":"scope"}}]}},{"kind":"Field","name":{"kind":"Name","value":"variables"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"value"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"isSecret"}},{"kind":"Field","name":{"kind":"Name","value":"isDeprecated"}},{"kind":"Field","name":{"kind":"Name","value":"isRequired"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"options"}}]}}]}}]}}]} as unknown as DocumentNode<MyApplicationPreferencesQuery, MyApplicationPreferencesQueryVariables>;
export const ClaimApplicationRegistrationOwnershipDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ClaimApplicationRegistrationOwnership"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"claimApplicationRegistrationOwnership"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode<ClaimApplicationRegistrationOwnershipMutation, ClaimApplicationRegistrationOwnershipMutationVariables>;
export const DeleteApplicationRegistrationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteApplicationRegistration"},"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":"deleteApplicationRegistration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode<DeleteApplicationRegistrationMutation, DeleteApplicationRegistrationMutationVariables>;
export const RotateApplicationRegistrationClientSecretDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"RotateApplicationRegistrationClientSecret"},"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":"rotateApplicationRegistrationClientSecret"},"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":"clientSecret"}}]}}]}}]} as unknown as DocumentNode<RotateApplicationRegistrationClientSecretMutation, RotateApplicationRegistrationClientSecretMutationVariables>;
diff --git a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
index a3f4d41ae81..19efe67e102 100644
--- a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
+++ b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx
@@ -442,6 +442,14 @@ const SettingsNativeAccountApp = lazy(() =>
),
);
+const SettingsApplicationPreferences = lazy(() =>
+ import('~/pages/settings/accounts/SettingsApplicationPreferences').then(
+ (module) => ({
+ default: module.SettingsApplicationPreferences,
+ }),
+ ),
+);
+
const SettingsAccountsEmails = lazy(() =>
import('~/pages/settings/accounts/SettingsAccountsEmails').then((module) => ({
default: module.SettingsAccountsEmails,
@@ -791,6 +799,10 @@ const createSettingsRouteElements = ({
path={SettingsPath.NativeAccountApp}
element={<SettingsNativeAccountApp />}
/>
+ <Route
+ path={SettingsPath.ApplicationPreferences}
+ element={<SettingsApplicationPreferences />}
+ />
<Route
path={SettingsPath.AccountsEmails}
element={<SettingsAccountsEmails />}
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppNameCell.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppNameCell.tsx
new file mode 100644
index 00000000000..524ecdf8f8f
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppNameCell.tsx
@@ -0,0 +1,65 @@
+import { AppChip } from '@/applications/components/AppChip';
+import { getApplicationDisplayName } from '@/applications/utils/getApplicationDisplayName';
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { type AppPreferencesRow } from '@/settings/app-preferences/types/AppPreferencesRow';
+import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink/UndecoratedLink';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { styled } from '@linaria/react';
+import { useLingui } from '@lingui/react/macro';
+import { SettingsPath } from 'twenty-shared/types';
+import { getSettingsPath } from 'twenty-shared/utils';
+import { themeCssVariables, useTheme } from 'twenty-ui/theme';
+
+const StyledNameCell = styled.div`
+ align-items: center;
+ color: ${themeCssVariables.font.color.primary};
+ display: flex;
+ gap: ${themeCssVariables.spacing[2]};
+`;
+
+type SettingsAppPreferencesAppNameCellProps = {
+ item: AppPreferencesRow;
+};
+
+export const SettingsAppPreferencesAppNameCell = ({
+ item,
+}: SettingsAppPreferencesAppNameCellProps) => {
+ const { t } = useLingui();
+ const theme = useTheme();
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
+
+ const { to, icon, name } =
+ item.type === 'native'
+ ? {
+ to: getSettingsPath(SettingsPath.NativeAccountApp, {
+ nativeAccountAppId: item.nativeAccountApp.id,
+ }),
+ icon: <item.nativeAccountApp.Icon size={theme.icon.size.md} />,
+ name: t(item.nativeAccountApp.name),
+ }
+ : {
+ to: getSettingsPath(SettingsPath.ApplicationPreferences, {
+ applicationId: item.applicationWithPreferences.application.id,
+ }),
+ icon: (
+ <AppChip
+ applicationId={item.applicationWithPreferences.application.id}
+ size="md"
+ chipOnly
+ />
+ ),
+ name: getApplicationDisplayName({
+ application: item.applicationWithPreferences.application,
+ currentWorkspace,
+ }),
+ };
+
+ return (
+ <UndecoratedLink to={to} onClick={(event) => event.stopPropagation()}>
+ <StyledNameCell>
+ {icon}
+ {name}
+ </StyledNameCell>
+ </UndecoratedLink>
+ );
+};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppStatusCell.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppStatusCell.tsx
similarity index 63%
rename from packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppStatusCell.tsx
rename to packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppStatusCell.tsx
index 23f89fe1c8b..1f0337a3b6a 100644
--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppStatusCell.tsx
+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppStatusCell.tsx
@@ -1,22 +1,26 @@
import { useMyAccountGroups } from '@/settings/app-preferences/hooks/useMyAccountGroups';
-import { type NativeAccountApp } from '@/settings/app-preferences/types/NativeAccountApp';
+import { type AppPreferencesRow } from '@/settings/app-preferences/types/AppPreferencesRow';
import { getNativeAccountAppsUsingAccount } from '@/settings/app-preferences/utils/getNativeAccountAppsUsingAccount';
import { useLingui } from '@lingui/react/macro';
import { Status } from 'twenty-ui/primitives/data-display';
-type SettingsNativeAccountAppStatusCellProps = {
- item: NativeAccountApp;
+type SettingsAppPreferencesAppStatusCellProps = {
+ item: AppPreferencesRow;
};
-export const SettingsNativeAccountAppStatusCell = ({
+export const SettingsAppPreferencesAppStatusCell = ({
item,
-}: SettingsNativeAccountAppStatusCellProps) => {
+}: SettingsAppPreferencesAppStatusCellProps) => {
const { t } = useLingui();
const { groups, loading } = useMyAccountGroups();
+ if (item.type !== 'native') {
+ return null;
+ }
+
const hasAccount = groups.some((group) =>
getNativeAccountAppsUsingAccount(group.nativeAccount).some(
- (app) => app.id === item.id,
+ (app) => app.id === item.nativeAccountApp.id,
),
);
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppsSection.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppsSection.tsx
new file mode 100644
index 00000000000..12c985baf7c
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesAppsSection.tsx
@@ -0,0 +1,58 @@
+import { SettingsAppPreferencesAppNameCell } from '@/settings/app-preferences/components/SettingsAppPreferencesAppNameCell';
+import { SettingsAppPreferencesAppStatusCell } from '@/settings/app-preferences/components/SettingsAppPreferencesAppStatusCell';
+import { useApplicationsWithPreferences } from '@/settings/app-preferences/hooks/useApplicationsWithPreferences';
+import { useEnabledNativeAccountApps } from '@/settings/app-preferences/hooks/useEnabledNativeAccountApps';
+import { type AppPreferencesRow } from '@/settings/app-preferences/types/AppPreferencesRow';
+import { SettingsTableListSection } from '@/settings/components/SettingsTableListSection';
+import { useLingui } from '@lingui/react/macro';
+import { SettingsPath } from 'twenty-shared/types';
+import { useNavigateSettings } from '~/hooks/useNavigateSettings';
+
+export const SettingsAppPreferencesAppsSection = () => {
+ const { t } = useLingui();
+ const navigateSettings = useNavigateSettings();
+ const { enabledNativeAccountApps } = useEnabledNativeAccountApps();
+ const { applicationsWithPreferences } = useApplicationsWithPreferences();
+
+ const rows: AppPreferencesRow[] = [
+ ...enabledNativeAccountApps.map((nativeAccountApp): AppPreferencesRow => ({
+ type: 'native',
+ id: nativeAccountApp.id,
+ nativeAccountApp,
+ })),
+ ...applicationsWithPreferences.map(
+ (applicationWithPreferences): AppPreferencesRow => ({
+ type: 'installed',
+ id: applicationWithPreferences.application.id,
+ applicationWithPreferences,
+ }),
+ ),
+ ];
+
+ return (
+ <SettingsTableListSection<AppPreferencesRow>
+ title={t`App preferences`}
+ description={t`Choose your preferences for the apps installed on your workspace by the admin`}
+ items={rows}
+ columns={[
+ { label: t`App`, Cell: SettingsAppPreferencesAppNameCell },
+ {
+ label: t`Status`,
+ align: 'right',
+ Cell: SettingsAppPreferencesAppStatusCell,
+ },
+ ]}
+ gridAutoColumns="1fr 1fr"
+ showRowChevron
+ onRowClick={(row) =>
+ row.type === 'native'
+ ? navigateSettings(SettingsPath.NativeAccountApp, {
+ nativeAccountAppId: row.nativeAccountApp.id,
+ })
+ : navigateSettings(SettingsPath.ApplicationPreferences, {
+ applicationId: row.applicationWithPreferences.application.id,
+ })
+ }
+ />
+ );
+};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesSections.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesSections.tsx
index cf05f4dd528..4a5b6ea01a0 100644
--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesSections.tsx
+++ b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsAppPreferencesSections.tsx
@@ -1,19 +1,24 @@
import { SettingsAccountsBlocklistSection } from '@/settings/accounts/components/SettingsAccountsBlocklistSection';
import { SettingsAccountGroupsSection } from '@/settings/app-preferences/components/SettingsAccountGroupsSection';
-import { SettingsNativeAccountAppsSection } from '@/settings/app-preferences/components/SettingsNativeAccountAppsSection';
+import { SettingsAppPreferencesAppsSection } from '@/settings/app-preferences/components/SettingsAppPreferencesAppsSection';
+import { useApplicationsWithPreferences } from '@/settings/app-preferences/hooks/useApplicationsWithPreferences';
import { useEnabledNativeAccountApps } from '@/settings/app-preferences/hooks/useEnabledNativeAccountApps';
+import { isNonEmptyArray } from 'twenty-shared/utils';
export const SettingsAppPreferencesSections = () => {
const { enabledNativeAccountApps } = useEnabledNativeAccountApps();
+ const { applicationsWithPreferences } = useApplicationsWithPreferences();
+
+ const hasNativeAccountApps = isNonEmptyArray(enabledNativeAccountApps);
return (
<>
<SettingsAccountGroupsSection />
- {enabledNativeAccountApps.length > 0 ? (
- <SettingsNativeAccountAppsSection />
- ) : (
- <SettingsAccountsBlocklistSection />
+ {(hasNativeAccountApps ||
+ isNonEmptyArray(applicationsWithPreferences)) && (
+ <SettingsAppPreferencesAppsSection />
)}
+ {!hasNativeAccountApps && <SettingsAccountsBlocklistSection />}
</>
);
};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppNameCell.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppNameCell.tsx
deleted file mode 100644
index 1990398fca2..00000000000
--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppNameCell.tsx
+++ /dev/null
@@ -1,39 +0,0 @@
-import { type NativeAccountApp } from '@/settings/app-preferences/types/NativeAccountApp';
-import { UndecoratedLink } from '@/ui/navigation/link/components/UndecoratedLink/UndecoratedLink';
-import { styled } from '@linaria/react';
-import { useLingui } from '@lingui/react/macro';
-import { SettingsPath } from 'twenty-shared/types';
-import { getSettingsPath } from 'twenty-shared/utils';
-import { themeCssVariables, useTheme } from 'twenty-ui/theme';
-
-const StyledNameCell = styled.div`
- align-items: center;
- color: ${themeCssVariables.font.color.primary};
- display: flex;
- gap: ${themeCssVariables.spacing[2]};
-`;
-
-type SettingsNativeAccountAppNameCellProps = {
- item: NativeAccountApp;
-};
-
-export const SettingsNativeAccountAppNameCell = ({
- item,
-}: SettingsNativeAccountAppNameCellProps) => {
- const { t } = useLingui();
- const theme = useTheme();
-
- return (
- <UndecoratedLink
- to={getSettingsPath(SettingsPath.NativeAccountApp, {
- nativeAccountAppId: item.id,
- })}
- onClick={(event) => event.stopPropagation()}
- >
- <StyledNameCell>
- <item.Icon size={theme.icon.size.md} />
- {t(item.name)}
- </StyledNameCell>
- </UndecoratedLink>
- );
-};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppsSection.tsx b/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppsSection.tsx
deleted file mode 100644
index 94cfa5d952a..00000000000
--- a/packages/twenty-front/src/modules/settings/app-preferences/components/SettingsNativeAccountAppsSection.tsx
+++ /dev/null
@@ -1,37 +0,0 @@
-import { SettingsNativeAccountAppNameCell } from '@/settings/app-preferences/components/SettingsNativeAccountAppNameCell';
-import { SettingsNativeAccountAppStatusCell } from '@/settings/app-preferences/components/SettingsNativeAccountAppStatusCell';
-import { useEnabledNativeAccountApps } from '@/settings/app-preferences/hooks/useEnabledNativeAccountApps';
-import { type NativeAccountApp } from '@/settings/app-preferences/types/NativeAccountApp';
-import { SettingsTableListSection } from '@/settings/components/SettingsTableListSection';
-import { useLingui } from '@lingui/react/macro';
-import { SettingsPath } from 'twenty-shared/types';
-import { useNavigateSettings } from '~/hooks/useNavigateSettings';
-
-export const SettingsNativeAccountAppsSection = () => {
- const { t } = useLingui();
- const navigateSettings = useNavigateSettings();
- const { enabledNativeAccountApps } = useEnabledNativeAccountApps();
-
- return (
- <SettingsTableListSection<NativeAccountApp>
- title={t`App preferences`}
- description={t`Choose your preferences for the apps installed on your workspace by the admin`}
- items={enabledNativeAccountApps}
- columns={[
- { label: t`App`, Cell: SettingsNativeAccountAppNameCell },
- {
- label: t`Status`,
- align: 'right',
- Cell: SettingsNativeAccountAppStatusCell,
- },
- ]}
- gridAutoColumns="1fr 1fr"
- showRowChevron
- onRowClick={(app) =>
- navigateSettings(SettingsPath.NativeAccountApp, {
- nativeAccountAppId: app.id,
- })
- }
- />
- );
-};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsApplicationPreferencesTabListComponentId.ts b/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsApplicationPreferencesTabListComponentId.ts
new file mode 100644
index 00000000000..ef32313ddbb
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/constants/SettingsApplicationPreferencesTabListComponentId.ts
@@ -0,0 +1,2 @@
+export const SETTINGS_APPLICATION_PREFERENCES_TAB_LIST_COMPONENT_ID =
+ 'settings-application-preferences-tab-list';
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/graphql/mutations/updateMyUserApplicationVariable.ts b/packages/twenty-front/src/modules/settings/app-preferences/graphql/mutations/updateMyUserApplicationVariable.ts
new file mode 100644
index 00000000000..005c1532e38
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/graphql/mutations/updateMyUserApplicationVariable.ts
@@ -0,0 +1,15 @@
+import { gql } from '@apollo/client';
+
+export const UPDATE_MY_USER_APPLICATION_VARIABLE = gql`
+ mutation UpdateMyUserApplicationVariable(
+ $applicationUniversalIdentifier: String!
+ $key: String!
+ $value: String!
+ ) {
+ updateMyUserApplicationVariable(
+ applicationUniversalIdentifier: $applicationUniversalIdentifier
+ key: $key
+ value: $value
+ )
+ }
+`;
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/graphql/queries/myApplicationPreferences.ts b/packages/twenty-front/src/modules/settings/app-preferences/graphql/queries/myApplicationPreferences.ts
new file mode 100644
index 00000000000..7cea3722bef
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/graphql/queries/myApplicationPreferences.ts
@@ -0,0 +1,30 @@
+import { gql } from '@apollo/client';
+
+export const MY_APPLICATION_PREFERENCES = gql`
+ query MyApplicationPreferences {
+ myApplicationPreferences {
+ applicationId
+ settingsMenuItems {
+ id
+ universalIdentifier
+ applicationId
+ frontComponentId
+ title
+ icon
+ position
+ scope
+ }
+ variables {
+ key
+ value
+ description
+ label
+ isSecret
+ isDeprecated
+ isRequired
+ type
+ options
+ }
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/hooks/useApplicationsWithPreferences.ts b/packages/twenty-front/src/modules/settings/app-preferences/hooks/useApplicationsWithPreferences.ts
new file mode 100644
index 00000000000..cfcfeb31dfe
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/hooks/useApplicationsWithPreferences.ts
@@ -0,0 +1,24 @@
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { getApplicationsWithPreferences } from '@/settings/app-preferences/utils/getApplicationsWithPreferences';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useQuery } from '@apollo/client/react';
+import { MyApplicationPreferencesDocument } from '~/generated-metadata/graphql';
+
+export const useApplicationsWithPreferences = () => {
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
+ const { data, loading, refetch } = useQuery(
+ MyApplicationPreferencesDocument,
+ {
+ fetchPolicy: 'cache-and-network',
+ },
+ );
+
+ return {
+ applicationsWithPreferences: getApplicationsWithPreferences({
+ applicationPreferences: data?.myApplicationPreferences ?? [],
+ currentWorkspace,
+ }),
+ loading,
+ refetch,
+ };
+};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/types/AppPreferencesRow.ts b/packages/twenty-front/src/modules/settings/app-preferences/types/AppPreferencesRow.ts
new file mode 100644
index 00000000000..9f8996c508f
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/types/AppPreferencesRow.ts
@@ -0,0 +1,10 @@
+import { type ApplicationWithPreferences } from '@/settings/app-preferences/types/ApplicationWithPreferences';
+import { type NativeAccountApp } from '@/settings/app-preferences/types/NativeAccountApp';
+
+export type AppPreferencesRow =
+ | { type: 'native'; id: string; nativeAccountApp: NativeAccountApp }
+ | {
+ type: 'installed';
+ id: string;
+ applicationWithPreferences: ApplicationWithPreferences;
+ };
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/types/ApplicationWithPreferences.ts b/packages/twenty-front/src/modules/settings/app-preferences/types/ApplicationWithPreferences.ts
new file mode 100644
index 00000000000..612ab60c31e
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/types/ApplicationWithPreferences.ts
@@ -0,0 +1,11 @@
+import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState';
+import { type MyApplicationPreferencesQuery } from '~/generated-metadata/graphql';
+
+type MyApplicationPreferences =
+ MyApplicationPreferencesQuery['myApplicationPreferences'][number];
+
+export type ApplicationWithPreferences = {
+ application: CurrentWorkspace['installedApplications'][number];
+ settingsMenuItems: MyApplicationPreferences['settingsMenuItems'];
+ variables: MyApplicationPreferences['variables'];
+};
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/utils/__tests__/getApplicationsWithPreferences.test.ts b/packages/twenty-front/src/modules/settings/app-preferences/utils/__tests__/getApplicationsWithPreferences.test.ts
new file mode 100644
index 00000000000..dc2dcfe89c4
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/utils/__tests__/getApplicationsWithPreferences.test.ts
@@ -0,0 +1,188 @@
+import { getApplicationsWithPreferences } from '@/settings/app-preferences/utils/getApplicationsWithPreferences';
+import { SettingsMenuItemScope } from '~/generated-metadata/graphql';
+
+const RECORDER_APPLICATION_ID = 'recorder-application-id';
+const NOTETAKER_APPLICATION_ID = 'notetaker-application-id';
+const UNINSTALLED_APPLICATION_ID = 'uninstalled-application-id';
+
+const buildInstalledApplication = ({
+ id,
+ name,
+}: {
+ id: string;
+ name: string;
+}) => ({
+ id,
+ name,
+ universalIdentifier: `${id}-universal-identifier`,
+ logoUrl: null,
+ createdAt: '2024-01-01T00:00:00.000Z',
+});
+
+const buildSettingsMenuItem = ({
+ universalIdentifier,
+ applicationId,
+ position = 0,
+ scope = SettingsMenuItemScope.USER,
+}: {
+ universalIdentifier: string;
+ applicationId: string;
+ position?: number;
+ scope?: SettingsMenuItemScope;
+}) => ({
+ id: `${universalIdentifier}-id`,
+ universalIdentifier,
+ applicationId,
+ frontComponentId: `${universalIdentifier}-front-component-id`,
+ title: universalIdentifier,
+ icon: null,
+ position,
+ scope,
+});
+
+const buildVariable = ({
+ key,
+ value = '',
+ isDeprecated = false,
+}: {
+ key: string;
+ value?: string;
+ isDeprecated?: boolean;
+}) => ({
+ key,
+ value,
+ isDeprecated,
+ label: '',
+ description: '',
+ isSecret: false,
+ isRequired: false,
+ type: 'TEXT',
+ options: null,
+});
+
+const CURRENT_WORKSPACE = {
+ installedApplications: [
+ buildInstalledApplication({
+ id: RECORDER_APPLICATION_ID,
+ name: 'Recorder',
+ }),
+ buildInstalledApplication({
+ id: NOTETAKER_APPLICATION_ID,
+ name: 'Notetaker',
+ }),
+ ],
+ workspaceCustomApplication: null,
+};
+
+describe('getApplicationsWithPreferences', () => {
+ it('should join each application to its installed application and sort by display name', () => {
+ const result = getApplicationsWithPreferences({
+ applicationPreferences: [
+ {
+ applicationId: RECORDER_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [buildVariable({ key: 'RECORD_MY_MEETINGS' })],
+ },
+ {
+ applicationId: NOTETAKER_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [buildVariable({ key: 'LANGUAGE', value: 'en' })],
+ },
+ ],
+ currentWorkspace: CURRENT_WORKSPACE,
+ });
+
+ expect(
+ result.map(({ application }) => [application.id, application.name]),
+ ).toEqual([
+ [NOTETAKER_APPLICATION_ID, 'Notetaker'],
+ [RECORDER_APPLICATION_ID, 'Recorder'],
+ ]);
+ });
+
+ it('should order the settings items by position', () => {
+ const [result] = getApplicationsWithPreferences({
+ applicationPreferences: [
+ {
+ applicationId: RECORDER_APPLICATION_ID,
+ settingsMenuItems: [
+ buildSettingsMenuItem({
+ universalIdentifier: 'second-user-settings',
+ applicationId: RECORDER_APPLICATION_ID,
+ position: 2,
+ }),
+ buildSettingsMenuItem({
+ universalIdentifier: 'first-user-settings',
+ applicationId: RECORDER_APPLICATION_ID,
+ position: 1,
+ }),
+ ],
+ variables: [],
+ },
+ ],
+ currentWorkspace: CURRENT_WORKSPACE,
+ });
+
+ expect(
+ result.settingsMenuItems.map(
+ ({ universalIdentifier }) => universalIdentifier,
+ ),
+ ).toEqual(['first-user-settings', 'second-user-settings']);
+ });
+
+ it('should hide deprecated variables without a value and sort the rest by key', () => {
+ const [result] = getApplicationsWithPreferences({
+ applicationPreferences: [
+ {
+ applicationId: RECORDER_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [
+ buildVariable({ key: 'ZONE' }),
+ buildVariable({ key: 'OLD_FLAG', isDeprecated: true }),
+ buildVariable({
+ key: 'LEGACY_KEY',
+ value: 'mine',
+ isDeprecated: true,
+ }),
+ ],
+ },
+ ],
+ currentWorkspace: CURRENT_WORKSPACE,
+ });
+
+ expect(result.variables.map(({ key }) => key)).toEqual([
+ 'LEGACY_KEY',
+ 'ZONE',
+ ]);
+ });
+
+ it('should leave out an application with nothing left to show', () => {
+ const result = getApplicationsWithPreferences({
+ applicationPreferences: [
+ {
+ applicationId: RECORDER_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [buildVariable({ key: 'OLD_FLAG', isDeprecated: true })],
+ },
+ ],
+ currentWorkspace: CURRENT_WORKSPACE,
+ });
+
+ expect(result).toEqual([]);
+ });
+
+ it('should leave out an application that is not installed', () => {
+ const result = getApplicationsWithPreferences({
+ applicationPreferences: [
+ {
+ applicationId: UNINSTALLED_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [buildVariable({ key: 'LANGUAGE', value: 'en' })],
+ },
+ ],
+ currentWorkspace: CURRENT_WORKSPACE,
+ });
+
+ expect(result).toEqual([]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/settings/app-preferences/utils/getApplicationsWithPreferences.ts b/packages/twenty-front/src/modules/settings/app-preferences/utils/getApplicationsWithPreferences.ts
new file mode 100644
index 00000000000..2ffa4a41e2e
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/app-preferences/utils/getApplicationsWithPreferences.ts
@@ -0,0 +1,58 @@
+import { getApplicationDisplayName } from '@/applications/utils/getApplicationDisplayName';
+import { type CurrentWorkspace } from '@/auth/states/currentWorkspaceState';
+import { getDisplayedApplicationVariables } from '@/settings/applications/utils/getDisplayedApplicationVariables';
+import { sortSettingsMenuItemsByPosition } from '@/settings/applications/utils/sortSettingsMenuItemsByPosition';
+import { type ApplicationWithPreferences } from '@/settings/app-preferences/types/ApplicationWithPreferences';
+import { isDefined, isNonEmptyArray } from 'twenty-shared/utils';
+import { type MyApplicationPreferencesQuery } from '~/generated-metadata/graphql';
+
+type ApplicationsWithPreferencesWorkspace = Pick<
+ CurrentWorkspace,
+ 'installedApplications' | 'workspaceCustomApplication'
+>;
+
+export const getApplicationsWithPreferences = ({
+ applicationPreferences,
+ currentWorkspace,
+}: {
+ applicationPreferences: MyApplicationPreferencesQuery['myApplicationPreferences'];
+ currentWorkspace: ApplicationsWithPreferencesWorkspace | null | undefined;
+}): ApplicationWithPreferences[] => {
+ const installedApplications = currentWorkspace?.installedApplications ?? [];
+
+ const getDisplayName = ({ application }: ApplicationWithPreferences) =>
+ getApplicationDisplayName({ application, currentWorkspace });
+
+ return applicationPreferences
+ .flatMap(({ applicationId, settingsMenuItems, variables }) => {
+ const application = installedApplications.find(
+ (installedApplication) => installedApplication.id === applicationId,
+ );
+ const displayedVariables = getDisplayedApplicationVariables(variables);
+
+ if (
+ !isDefined(application) ||
+ (!isNonEmptyArray(settingsMenuItems) &&
+ !isNonEmptyArray(displayedVariables))
+ ) {
+ return [];
+ }
+
+ return [
+ {
+ application,
+ settingsMenuItems: sortSettingsMenuItemsByPosition(settingsMenuItems),
+ variables: displayedVariables,
+ },
+ ];
+ })
+ .sort(
+ (applicationWithPreferencesA, applicationWithPreferencesB) =>
+ getDisplayName(applicationWithPreferencesA).localeCompare(
+ getDisplayName(applicationWithPreferencesB),
+ ) ||
+ applicationWithPreferencesA.application.id.localeCompare(
+ applicationWithPreferencesB.application.id,
+ ),
+ );
+};
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationCustomSettingsSection.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationCustomSettingsSection.tsx
similarity index 100%
rename from packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationCustomSettingsSection.tsx
rename to packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationCustomSettingsSection.tsx
diff --git a/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationDetailVariablesTab.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationDetailVariablesTab.tsx
new file mode 100644
index 00000000000..c3f2c2931cc
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationDetailVariablesTab.tsx
@@ -0,0 +1,99 @@
+import { styled } from '@linaria/react';
+import { t } from '@lingui/core/macro';
+import { isNonEmptyString } from '@sniptt/guards';
+import { type ApplicationVariableOption } from 'twenty-shared/application';
+import { LightButton } from 'twenty-ui/components/input';
+import { Section } from 'twenty-ui/components/layout';
+import { themeCssVariables } from 'twenty-ui/theme';
+import { type ApplicationVariable } from '~/generated-metadata/graphql';
+import { SettingsApplicationVariableInput } from '@/settings/applications/components/SettingsApplicationVariableInput';
+import { SettingsApplicationVariableLabelRow } from '@/settings/applications/components/SettingsApplicationVariableLabelRow';
+
+const StyledContainer = styled.div`
+ display: flex;
+ flex-direction: column;
+ gap: ${themeCssVariables.spacing[4]};
+`;
+
+const StyledClearRow = styled.div`
+ display: flex;
+ margin-top: ${themeCssVariables.spacing[1]};
+`;
+
+type SettingsApplicationDetailVariablesTabProps = {
+ applicationVariables: (Pick<
+ ApplicationVariable,
+ | 'key'
+ | 'label'
+ | 'description'
+ | 'isDeprecated'
+ | 'isSecret'
+ | 'type'
+ | 'value'
+ | 'options'
+ > & { savedValue: string; isCleared: boolean })[];
+ onVariableChange: (key: string, value: string) => void;
+ onVariableClear: (key: string) => void;
+};
+
+export const SettingsApplicationDetailVariablesTab = ({
+ applicationVariables,
+ onVariableChange,
+ onVariableClear,
+}: SettingsApplicationDetailVariablesTabProps) => {
+ const sectionDescription =
+ applicationVariables.length > 0
+ ? t`Set your application configuration variables`
+ : t`No variables to set for this application`;
+
+ return (
+ <Section.Root>
+ <Section.Header title={t`Variables`} description={sectionDescription} />
+ <StyledContainer>
+ {applicationVariables.map((applicationVariable) => {
+ const hasStoredSecret =
+ applicationVariable.isSecret &&
+ isNonEmptyString(applicationVariable.savedValue) &&
+ !applicationVariable.isCleared;
+
+ return (
+ <div key={applicationVariable.key}>
+ <SettingsApplicationVariableLabelRow
+ variableKey={applicationVariable.key}
+ label={applicationVariable.label}
+ isDeprecated={applicationVariable.isDeprecated}
+ description={applicationVariable.description}
+ tooltipId={`env-var-desc-${applicationVariable.key}`}
+ />
+ <SettingsApplicationVariableInput
+ type={applicationVariable.type}
+ value={applicationVariable.value}
+ options={
+ applicationVariable.options as
+ | ApplicationVariableOption[]
+ | null
+ | undefined
+ }
+ onChange={(newValue) =>
+ onVariableChange(applicationVariable.key, newValue)
+ }
+ isSecret={applicationVariable.isSecret}
+ placeholder={
+ hasStoredSecret ? applicationVariable.savedValue : t`Value`
+ }
+ />
+ {hasStoredSecret && (
+ <StyledClearRow>
+ <LightButton
+ emphasis="subtle"
+ onClick={() => onVariableClear(applicationVariable.key)}
+ >{t`Clear stored value`}</LightButton>
+ </StyledClearRow>
+ )}
+ </div>
+ );
+ })}
+ </StyledContainer>
+ </Section.Root>
+ );
+};
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVariableInput.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
similarity index 97%
rename from packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVariableInput.tsx
rename to packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
index 3c7cb70be53..b357aeaa272 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVariableInput.tsx
+++ b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableInput.tsx
@@ -25,6 +25,7 @@ type SettingsApplicationVariableInputProps = {
onChange: (serializedValue: string) => void;
placeholder?: string;
disabled?: boolean;
+ isSecret?: boolean;
};
const toSelectOptions = (
@@ -70,6 +71,7 @@ export const SettingsApplicationVariableInput = ({
onChange,
placeholder,
disabled,
+ isSecret,
}: SettingsApplicationVariableInputProps) => {
const fieldType = (type as FieldMetadataType) ?? FieldMetadataType.TEXT;
@@ -183,6 +185,8 @@ export const SettingsApplicationVariableInput = ({
onChange={onChange}
placeholder={placeholder ?? t`Value`}
readOnly={disabled}
+ type={isSecret ? 'password' : undefined}
+ ignorePasswordManagers={isSecret}
fullWidth
/>
);
diff --git a/packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVariableLabelRow.tsx b/packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableLabelRow.tsx
similarity index 100%
rename from packages/twenty-front/src/pages/settings/applications/components/SettingsApplicationVariableLabelRow.tsx
rename to packages/twenty-front/src/modules/settings/applications/components/SettingsApplicationVariableLabelRow.tsx
diff --git a/packages/twenty-front/src/pages/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx
similarity index 83%
rename from packages/twenty-front/src/pages/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx
rename to packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx
index 85b9b3163e2..7faa0df50a1 100644
--- a/packages/twenty-front/src/pages/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx
+++ b/packages/twenty-front/src/modules/settings/applications/components/__stories__/SettingsApplicationVariableLabelRow.stories.tsx
@@ -1,11 +1,11 @@
import { type Meta, type StoryObj } from '@storybook/react-vite';
import { expect, within } from 'storybook/test';
-import { SettingsApplicationVariableLabelRow } from '~/pages/settings/applications/components/SettingsApplicationVariableLabelRow';
+import { SettingsApplicationVariableLabelRow } from '@/settings/applications/components/SettingsApplicationVariableLabelRow';
import { ComponentDecorator } from 'twenty-ui/testing';
const meta: Meta<typeof SettingsApplicationVariableLabelRow> = {
- title: 'Pages/Settings/Applications/SettingsApplicationVariableLabelRow',
+ title: 'Modules/Settings/Applications/SettingsApplicationVariableLabelRow',
component: SettingsApplicationVariableLabelRow,
args: {
variableKey: 'MY_VARIABLE_KEY',
diff --git a/packages/twenty-front/src/modules/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx b/packages/twenty-front/src/modules/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
new file mode 100644
index 00000000000..05d22a92e9a
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
@@ -0,0 +1,312 @@
+import { act, renderHook } from '@testing-library/react';
+import { type ReactNode } from 'react';
+import { ToastProvider } from 'twenty-ui/components/feedback';
+
+import { ApplicationVariableScope } from '~/generated-metadata/graphql';
+import { useApplicationVariablesDraft } from '@/settings/applications/hooks/useApplicationVariablesDraft';
+
+const KEY = 'API_KEY';
+const OTHER_KEY = 'REGION';
+const OLD_VALUE = 'old';
+const NEW_VALUE = 'new';
+const LATER_VALUE = 'later';
+const MASKED_SECRET = 'sk-1********';
+
+const buildApplicationVariable = ({
+ key,
+ value,
+ isSecret = false,
+}: {
+ key: string;
+ value: string;
+ isSecret?: boolean;
+}) => ({
+ key,
+ value,
+ isSecret,
+});
+
+const wrapper = ({ children }: { children: ReactNode }) => (
+ <ToastProvider>{children}</ToastProvider>
+);
+
+const renderVariablesDraft = ({
+ applicationId,
+ scope = ApplicationVariableScope.WORKSPACE,
+ applicationVariables = [
+ buildApplicationVariable({ key: KEY, value: OLD_VALUE }),
+ ],
+ updateApplicationVariable = jest.fn().mockResolvedValue(true),
+}: {
+ applicationId: string;
+ scope?: ApplicationVariableScope;
+ applicationVariables?: { key: string; value: string; isSecret: boolean }[];
+ updateApplicationVariable?: jest.Mock;
+}) => {
+ const refetchApplicationVariables = jest.fn().mockResolvedValue(undefined);
+
+ const { result, rerender } = renderHook(
+ ({ currentApplicationVariables }) =>
+ useApplicationVariablesDraft({
+ applicationId,
+ scope,
+ applicationVariables: currentApplicationVariables,
+ updateApplicationVariable,
+ refetchApplicationVariables,
+ }),
+ {
+ wrapper,
+ initialProps: { currentApplicationVariables: applicationVariables },
+ },
+ );
+
+ return {
+ result,
+ rerender,
+ updateApplicationVariable,
+ refetchApplicationVariables,
+ };
+};
+
+describe('useApplicationVariablesDraft', () => {
+ it('has nothing to save before an edit', () => {
+ const { result } = renderVariablesDraft({
+ applicationId: 'app-untouched',
+ });
+
+ expect(result.current.hasUnsavedApplicationVariables).toBe(false);
+ expect(result.current.draftApplicationVariables[0].value).toBe(OLD_VALUE);
+ });
+
+ it('keeps the edited value unsaved until it is saved', () => {
+ const { result } = renderVariablesDraft({ applicationId: 'app-edited' });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ expect(result.current.draftApplicationVariables[0].value).toBe(NEW_VALUE);
+ expect(result.current.hasUnsavedApplicationVariables).toBe(true);
+ });
+
+ it('sends only the edited variables, then refetches once and drops the saved draft', async () => {
+ const {
+ result,
+ rerender,
+ updateApplicationVariable,
+ refetchApplicationVariables,
+ } = renderVariablesDraft({
+ applicationId: 'app-saved',
+ applicationVariables: [
+ buildApplicationVariable({ key: KEY, value: OLD_VALUE }),
+ buildApplicationVariable({ key: OTHER_KEY, value: OLD_VALUE }),
+ ],
+ });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ await act(async () => {
+ await result.current.saveApplicationVariables();
+ });
+
+ expect(updateApplicationVariable.mock.calls).toEqual([
+ [{ key: KEY, value: NEW_VALUE }],
+ ]);
+ expect(refetchApplicationVariables).toHaveBeenCalledTimes(1);
+ expect(
+ refetchApplicationVariables.mock.invocationCallOrder[0],
+ ).toBeGreaterThan(updateApplicationVariable.mock.invocationCallOrder[0]);
+
+ rerender({
+ currentApplicationVariables: [
+ buildApplicationVariable({ key: KEY, value: NEW_VALUE }),
+ buildApplicationVariable({ key: OTHER_KEY, value: OLD_VALUE }),
+ ],
+ });
+
+ expect(result.current.hasUnsavedApplicationVariables).toBe(false);
+ expect(result.current.draftApplicationVariables[0].value).toBe(NEW_VALUE);
+ });
+
+ it('keeps a value edited while the save is in flight', async () => {
+ const { result } = renderVariablesDraft({
+ applicationId: 'app-edited-during-save',
+ });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ await act(async () => {
+ const savePromise = result.current.saveApplicationVariables();
+
+ result.current.setApplicationVariableValue(KEY, LATER_VALUE);
+
+ await savePromise;
+ });
+
+ expect(result.current.draftApplicationVariables[0].value).toBe(LATER_VALUE);
+ expect(result.current.hasUnsavedApplicationVariables).toBe(true);
+ });
+
+ it('keeps the draft when the save fails', async () => {
+ const { result, refetchApplicationVariables } = renderVariablesDraft({
+ applicationId: 'app-save-failed',
+ updateApplicationVariable: jest.fn().mockRejectedValue(new Error()),
+ });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ await act(async () => {
+ await result.current.saveApplicationVariables();
+ });
+
+ expect(refetchApplicationVariables).not.toHaveBeenCalled();
+ expect(result.current.draftApplicationVariables[0].value).toBe(NEW_VALUE);
+ expect(result.current.isSavingApplicationVariables).toBe(false);
+ });
+
+ it('starts a saved secret empty and keeps it when the input is emptied', () => {
+ const { result } = renderVariablesDraft({
+ applicationId: 'app-secret-kept',
+ applicationVariables: [
+ buildApplicationVariable({
+ key: KEY,
+ value: MASKED_SECRET,
+ isSecret: true,
+ }),
+ ],
+ });
+
+ expect(result.current.draftApplicationVariables[0]).toMatchObject({
+ value: '',
+ savedValue: MASKED_SECRET,
+ });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, '');
+ });
+
+ expect(result.current.hasUnsavedApplicationVariables).toBe(false);
+ });
+
+ it('replaces a saved secret with only the newly typed value', async () => {
+ const { result, updateApplicationVariable } = renderVariablesDraft({
+ applicationId: 'app-secret-replaced',
+ applicationVariables: [
+ buildApplicationVariable({
+ key: KEY,
+ value: MASKED_SECRET,
+ isSecret: true,
+ }),
+ ],
+ });
+
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ await act(async () => {
+ await result.current.saveApplicationVariables();
+ });
+
+ expect(updateApplicationVariable.mock.calls).toEqual([
+ [{ key: KEY, value: NEW_VALUE }],
+ ]);
+ });
+
+ it('clears a saved secret and sends an empty value for it', async () => {
+ const { result, rerender, updateApplicationVariable } =
+ renderVariablesDraft({
+ applicationId: 'app-secret-cleared',
+ applicationVariables: [
+ buildApplicationVariable({
+ key: KEY,
+ value: MASKED_SECRET,
+ isSecret: true,
+ }),
+ ],
+ });
+
+ act(() => {
+ result.current.clearApplicationVariableValue(KEY);
+ });
+
+ expect(result.current.draftApplicationVariables[0]).toMatchObject({
+ value: '',
+ isCleared: true,
+ });
+ expect(result.current.hasUnsavedApplicationVariables).toBe(true);
+
+ await act(async () => {
+ await result.current.saveApplicationVariables();
+ });
+
+ expect(updateApplicationVariable.mock.calls).toEqual([
+ [{ key: KEY, value: '' }],
+ ]);
+
+ rerender({
+ currentApplicationVariables: [
+ buildApplicationVariable({ key: KEY, value: '', isSecret: true }),
+ ],
+ });
+
+ expect(result.current.hasUnsavedApplicationVariables).toBe(false);
+ expect(result.current.draftApplicationVariables[0].isCleared).toBe(false);
+ });
+
+ it('replaces a cleared secret with the value typed afterwards', () => {
+ const { result } = renderVariablesDraft({
+ applicationId: 'app-secret-cleared-then-typed',
+ applicationVariables: [
+ buildApplicationVariable({
+ key: KEY,
+ value: MASKED_SECRET,
+ isSecret: true,
+ }),
+ ],
+ });
+
+ act(() => {
+ result.current.clearApplicationVariableValue(KEY);
+ });
+ act(() => {
+ result.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ expect(result.current.draftApplicationVariables[0]).toMatchObject({
+ value: NEW_VALUE,
+ isCleared: false,
+ });
+ expect(result.current.hasUnsavedApplicationVariables).toBe(true);
+ });
+
+ it('keeps the workspace and user drafts of an application apart', () => {
+ const { result: workspaceDraft } = renderVariablesDraft({
+ applicationId: 'app-both-scopes',
+ scope: ApplicationVariableScope.WORKSPACE,
+ });
+ const { result: userDraft } = renderVariablesDraft({
+ applicationId: 'app-both-scopes',
+ scope: ApplicationVariableScope.USER,
+ });
+
+ act(() => {
+ workspaceDraft.current.setApplicationVariableValue(KEY, NEW_VALUE);
+ });
+
+ expect(workspaceDraft.current.hasUnsavedApplicationVariables).toBe(true);
+ expect(userDraft.current.hasUnsavedApplicationVariables).toBe(false);
+ expect(userDraft.current.draftApplicationVariables[0].value).toBe(
+ OLD_VALUE,
+ );
+ });
+});
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/useApplicationVariablesDraft.ts b/packages/twenty-front/src/modules/settings/applications/hooks/useApplicationVariablesDraft.ts
similarity index 58%
rename from packages/twenty-front/src/pages/settings/applications/hooks/useApplicationVariablesDraft.ts
rename to packages/twenty-front/src/modules/settings/applications/hooks/useApplicationVariablesDraft.ts
index 82d43336367..d45fd3d584f 100644
--- a/packages/twenty-front/src/pages/settings/applications/hooks/useApplicationVariablesDraft.ts
+++ b/packages/twenty-front/src/modules/settings/applications/hooks/useApplicationVariablesDraft.ts
@@ -1,34 +1,38 @@
import { useAtomFamilyState } from '@/ui/utilities/state/jotai/hooks/useAtomFamilyState';
-import { useMutation, useQuery } from '@apollo/client/react';
+import { isNonEmptyString } from '@sniptt/guards';
import { t } from '@lingui/core/macro';
import { useState } from 'react';
-import { isDefined } from 'twenty-shared/utils';
import { useToast } from 'twenty-ui/components/feedback';
import {
type ApplicationVariable,
- FindOneApplicationDocument,
- UpdateOneApplicationVariableDocument,
+ type ApplicationVariableScope,
} from '~/generated-metadata/graphql';
-import { applicationVariablesDraftFamilyState } from '~/pages/settings/applications/states/applicationVariablesDraftFamilyState';
+import { applicationVariablesDraftFamilyState } from '@/settings/applications/states/applicationVariablesDraftFamilyState';
-export const useApplicationVariablesDraft = ({
+export const useApplicationVariablesDraft = <
+ DraftableApplicationVariable extends Pick<
+ ApplicationVariable,
+ 'key' | 'value' | 'isSecret'
+ >,
+>({
applicationId,
+ scope,
applicationVariables,
+ updateApplicationVariable,
+ refetchApplicationVariables,
}: {
applicationId: string;
- applicationVariables: ApplicationVariable[];
+ scope: ApplicationVariableScope;
+ applicationVariables: DraftableApplicationVariable[];
+ updateApplicationVariable: (
+ applicationVariable: Pick<ApplicationVariable, 'key' | 'value'>,
+ ) => Promise<unknown>;
+ refetchApplicationVariables: () => Promise<unknown>;
}) => {
const [draftValueByKey, setDraftValueByKey] = useAtomFamilyState(
applicationVariablesDraftFamilyState,
- applicationId,
+ { applicationId, scope },
);
- const [updateOneApplicationVariable] = useMutation(
- UpdateOneApplicationVariableDocument,
- );
- const { refetch: refetchApplication } = useQuery(FindOneApplicationDocument, {
- variables: { id: applicationId },
- skip: !applicationId,
- });
const { enqueueToast } = useToast();
const [isSavingApplicationVariables, setIsSavingApplicationVariables] =
useState(false);
@@ -36,16 +40,25 @@ export const useApplicationVariablesDraft = ({
const draftApplicationVariables = applicationVariables.map(
(applicationVariable) => {
const draftValue = draftValueByKey[applicationVariable.key];
+ const isCleared = draftValue === null;
+
+ // A saved secret arrives masked, so editing it in place would corrupt it.
+ const savedValueToEdit = applicationVariable.isSecret
+ ? ''
+ : applicationVariable.value;
- return isDefined(draftValue)
- ? { ...applicationVariable, value: draftValue }
- : applicationVariable;
+ return {
+ ...applicationVariable,
+ value: isCleared ? '' : (draftValue ?? savedValueToEdit),
+ savedValue: applicationVariable.value,
+ isCleared,
+ };
},
);
const editedApplicationVariables = draftApplicationVariables.filter(
- (draftApplicationVariable, index) =>
- draftApplicationVariable.value !== applicationVariables[index].value,
+ ({ value, savedValue, isSecret, isCleared }) =>
+ isCleared || (isSecret ? isNonEmptyString(value) : value !== savedValue),
);
const setApplicationVariableValue = (key: string, value: string) => {
@@ -55,6 +68,13 @@ export const useApplicationVariablesDraft = ({
}));
};
+ const clearApplicationVariableValue = (key: string) => {
+ setDraftValueByKey((previousDraftValueByKey) => ({
+ ...previousDraftValueByKey,
+ [key]: null,
+ }));
+ };
+
const saveApplicationVariables = async () => {
const submittedValueByKey = Object.fromEntries(
editedApplicationVariables.map(({ key, value }) => [key, value]),
@@ -65,23 +85,21 @@ export const useApplicationVariablesDraft = ({
try {
await Promise.all(
Object.entries(submittedValueByKey).map(([key, value]) =>
- updateOneApplicationVariable({
- variables: { key, value, applicationId },
- }),
+ updateApplicationVariable({ key, value }),
),
);
// A single refetch after every mutation settled, awaited before dropping
// the draft: per-mutation refetches can land out of order and write back
// a snapshot taken before the last write.
- await refetchApplication();
+ await refetchApplicationVariables();
// Only the entries that still hold what was submitted are dropped, so a
// variable edited again while the save was in flight keeps that edit.
setDraftValueByKey((previousDraftValueByKey) =>
Object.fromEntries(
Object.entries(previousDraftValueByKey).filter(
- ([key, value]) => submittedValueByKey[key] !== value,
+ ([key, value]) => submittedValueByKey[key] !== (value ?? ''),
),
),
);
@@ -98,6 +116,7 @@ export const useApplicationVariablesDraft = ({
return {
draftApplicationVariables,
setApplicationVariableValue,
+ clearApplicationVariableValue,
hasUnsavedApplicationVariables: editedApplicationVariables.length > 0,
saveApplicationVariables,
isSavingApplicationVariables,
diff --git a/packages/twenty-front/src/pages/settings/applications/states/applicationVariablesDraftFamilyState.ts b/packages/twenty-front/src/modules/settings/applications/states/applicationVariablesDraftFamilyState.ts
similarity index 58%
rename from packages/twenty-front/src/pages/settings/applications/states/applicationVariablesDraftFamilyState.ts
rename to packages/twenty-front/src/modules/settings/applications/states/applicationVariablesDraftFamilyState.ts
index 18aa2f27123..27f7fb2ef4c 100644
--- a/packages/twenty-front/src/pages/settings/applications/states/applicationVariablesDraftFamilyState.ts
+++ b/packages/twenty-front/src/modules/settings/applications/states/applicationVariablesDraftFamilyState.ts
@@ -1,8 +1,9 @@
import { createAtomFamilyState } from '@/ui/utilities/state/jotai/utils/createAtomFamilyState';
+import { type ApplicationVariableScope } from '~/generated-metadata/graphql';
export const applicationVariablesDraftFamilyState = createAtomFamilyState<
- Record<string, string>,
- string
+ Record<string, string | null>,
+ { applicationId: string; scope: ApplicationVariableScope }
>({
key: 'applicationVariablesDraftFamilyState',
defaultValue: {},
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
new file mode 100644
index 00000000000..393327a854a
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
@@ -0,0 +1,41 @@
+import { getDisplayedApplicationVariables } from '@/settings/applications/utils/getDisplayedApplicationVariables';
+
+const buildApplicationVariable = ({
+ key,
+ value = '',
+ isDeprecated = false,
+}: {
+ key: string;
+ value?: string;
+ isDeprecated?: boolean;
+}) => ({ key, value, isDeprecated });
+
+describe('getDisplayedApplicationVariables', () => {
+ it('should hide deprecated variables with no value and sort the rest by key', () => {
+ const result = getDisplayedApplicationVariables([
+ buildApplicationVariable({ key: 'ZONE' }),
+ buildApplicationVariable({ key: 'API_KEY', isDeprecated: true }),
+ buildApplicationVariable({
+ key: 'LEGACY_KEY',
+ value: 'legacy-value',
+ isDeprecated: true,
+ }),
+ ]);
+
+ expect(result.map(({ key }) => key)).toEqual(['LEGACY_KEY', 'ZONE']);
+ });
+
+ it('should not mutate the variables it was given', () => {
+ const applicationVariables = [
+ buildApplicationVariable({ key: 'ZONE' }),
+ buildApplicationVariable({ key: 'API_KEY' }),
+ ];
+
+ getDisplayedApplicationVariables(applicationVariables);
+
+ expect(applicationVariables.map(({ key }) => key)).toEqual([
+ 'ZONE',
+ 'API_KEY',
+ ]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getSettingsMenuItemsForScope.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getSettingsMenuItemsForScope.test.ts
new file mode 100644
index 00000000000..39c3a32ae7a
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/getSettingsMenuItemsForScope.test.ts
@@ -0,0 +1,108 @@
+import { getSettingsMenuItemsForScope } from '@/settings/applications/utils/getSettingsMenuItemsForScope';
+import { SettingsMenuItemScope } from '~/generated-metadata/graphql';
+
+const buildSettingsMenuItem = ({
+ universalIdentifier,
+ position,
+ scope = SettingsMenuItemScope.WORKSPACE,
+}: {
+ universalIdentifier: string;
+ position: number;
+ scope?: SettingsMenuItemScope;
+}) => ({ universalIdentifier, position, scope });
+
+describe('getSettingsMenuItemsForScope', () => {
+ it('should order items by ascending position', () => {
+ const result = getSettingsMenuItemsForScope({
+ settingsMenuItems: [
+ buildSettingsMenuItem({ universalIdentifier: 'c', position: 3 }),
+ buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
+ buildSettingsMenuItem({ universalIdentifier: 'b', position: 1.5 }),
+ ],
+ scope: SettingsMenuItemScope.WORKSPACE,
+ });
+
+ expect(result.map((item) => item.universalIdentifier)).toEqual([
+ 'a',
+ 'b',
+ 'c',
+ ]);
+ });
+
+ it('should break a shared position on universalIdentifier', () => {
+ const result = getSettingsMenuItemsForScope({
+ settingsMenuItems: [
+ buildSettingsMenuItem({ universalIdentifier: 'b', position: 1 }),
+ buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
+ ],
+ scope: SettingsMenuItemScope.WORKSPACE,
+ });
+
+ expect(result.map((item) => item.universalIdentifier)).toEqual(['a', 'b']);
+ });
+
+ it('should leave out user-scoped items for the workspace scope', () => {
+ const result = getSettingsMenuItemsForScope({
+ settingsMenuItems: [
+ buildSettingsMenuItem({
+ universalIdentifier: 'user-item',
+ position: 1,
+ scope: SettingsMenuItemScope.USER,
+ }),
+ buildSettingsMenuItem({
+ universalIdentifier: 'workspace-item',
+ position: 2,
+ }),
+ ],
+ scope: SettingsMenuItemScope.WORKSPACE,
+ });
+
+ expect(result.map((item) => item.universalIdentifier)).toEqual([
+ 'workspace-item',
+ ]);
+ });
+
+ it('should keep only user-scoped items, in order, for the user scope', () => {
+ const result = getSettingsMenuItemsForScope({
+ settingsMenuItems: [
+ buildSettingsMenuItem({
+ universalIdentifier: 'workspace-item',
+ position: 0,
+ }),
+ buildSettingsMenuItem({
+ universalIdentifier: 'second-user-item',
+ position: 2,
+ scope: SettingsMenuItemScope.USER,
+ }),
+ buildSettingsMenuItem({
+ universalIdentifier: 'first-user-item',
+ position: 1,
+ scope: SettingsMenuItemScope.USER,
+ }),
+ ],
+ scope: SettingsMenuItemScope.USER,
+ });
+
+ expect(result.map((item) => item.universalIdentifier)).toEqual([
+ 'first-user-item',
+ 'second-user-item',
+ ]);
+ });
+
+ it('should not mutate the items it was given', () => {
+ const settingsMenuItems = [
+ buildSettingsMenuItem({ universalIdentifier: 'b', position: 2 }),
+ buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
+ ];
+
+ getSettingsMenuItemsForScope({
+ settingsMenuItems,
+ scope: SettingsMenuItemScope.WORKSPACE,
+ });
+
+ expect(settingsMenuItems.map((item) => item.universalIdentifier)).toEqual([
+ 'b',
+ 'a',
+ ]);
+ });
+});
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/__tests__/hasApplicationVariablesTab.test.ts b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/hasApplicationVariablesTab.test.ts
new file mode 100644
index 00000000000..c3ca1a21996
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/__tests__/hasApplicationVariablesTab.test.ts
@@ -0,0 +1,30 @@
+import { hasApplicationVariablesTab } from '@/settings/applications/utils/hasApplicationVariablesTab';
+
+describe('hasApplicationVariablesTab', () => {
+ it('should show the variables tab when there is no settings item', () => {
+ expect(
+ hasApplicationVariablesTab({
+ settingsMenuItems: [],
+ displayedApplicationVariables: [{ key: 'API_KEY' }],
+ }),
+ ).toBe(true);
+ });
+
+ it('should leave the variables to the settings items when there are some', () => {
+ expect(
+ hasApplicationVariablesTab({
+ settingsMenuItems: [{ universalIdentifier: 'settings' }],
+ displayedApplicationVariables: [{ key: 'API_KEY' }],
+ }),
+ ).toBe(false);
+ });
+
+ it('should not show an empty variables tab', () => {
+ expect(
+ hasApplicationVariablesTab({
+ settingsMenuItems: [],
+ displayedApplicationVariables: [],
+ }),
+ ).toBe(false);
+ });
+});
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/getDisplayedApplicationVariables.ts b/packages/twenty-front/src/modules/settings/applications/utils/getDisplayedApplicationVariables.ts
new file mode 100644
index 00000000000..aa1eefdeda7
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/getDisplayedApplicationVariables.ts
@@ -0,0 +1,21 @@
+import { isNonEmptyString } from '@sniptt/guards';
+
+import { shouldDisplayVariable } from '@/settings/applications/utils/shouldDisplayVariable';
+import { type ApplicationVariable } from '~/generated-metadata/graphql';
+
+export const getDisplayedApplicationVariables = <
+ DisplayableApplicationVariable extends Pick<
+ ApplicationVariable,
+ 'key' | 'value' | 'isDeprecated'
+ >,
+>(
+ applicationVariables: DisplayableApplicationVariable[],
+): DisplayableApplicationVariable[] =>
+ applicationVariables
+ .filter((applicationVariable) =>
+ shouldDisplayVariable({
+ isDeprecated: applicationVariable.isDeprecated,
+ hasValue: isNonEmptyString(applicationVariable.value),
+ }),
+ )
+ .sort((a, b) => a.key.localeCompare(b.key));
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/getSettingsMenuItemsForScope.ts b/packages/twenty-front/src/modules/settings/applications/utils/getSettingsMenuItemsForScope.ts
new file mode 100644
index 00000000000..241b53c1265
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/getSettingsMenuItemsForScope.ts
@@ -0,0 +1,23 @@
+import { sortSettingsMenuItemsByPosition } from '@/settings/applications/utils/sortSettingsMenuItemsByPosition';
+import {
+ type SettingsMenuItem,
+ type SettingsMenuItemScope,
+} from '~/generated-metadata/graphql';
+
+export const getSettingsMenuItemsForScope = <
+ OrderableSettingsMenuItem extends Pick<
+ SettingsMenuItem,
+ 'universalIdentifier' | 'position' | 'scope'
+ >,
+>({
+ settingsMenuItems,
+ scope,
+}: {
+ settingsMenuItems: OrderableSettingsMenuItem[];
+ scope: SettingsMenuItemScope;
+}): OrderableSettingsMenuItem[] =>
+ sortSettingsMenuItemsByPosition(
+ settingsMenuItems.filter(
+ (settingsMenuItem) => settingsMenuItem.scope === scope,
+ ),
+ );
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/hasApplicationVariablesTab.ts b/packages/twenty-front/src/modules/settings/applications/utils/hasApplicationVariablesTab.ts
new file mode 100644
index 00000000000..b58ca678750
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/hasApplicationVariablesTab.ts
@@ -0,0 +1,17 @@
+import { isNonEmptyArray } from 'twenty-shared/utils';
+
+import {
+ type ApplicationVariable,
+ type SettingsMenuItem,
+} from '~/generated-metadata/graphql';
+
+// A custom settings tab already lays out the variables
+export const hasApplicationVariablesTab = ({
+ settingsMenuItems,
+ displayedApplicationVariables,
+}: {
+ settingsMenuItems: Pick<SettingsMenuItem, 'universalIdentifier'>[];
+ displayedApplicationVariables: Pick<ApplicationVariable, 'key'>[];
+}): boolean =>
+ !isNonEmptyArray(settingsMenuItems) &&
+ isNonEmptyArray(displayedApplicationVariables);
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/shouldDisplayVariable.ts b/packages/twenty-front/src/modules/settings/applications/utils/shouldDisplayVariable.ts
similarity index 100%
rename from packages/twenty-front/src/pages/settings/applications/utils/shouldDisplayVariable.ts
rename to packages/twenty-front/src/modules/settings/applications/utils/shouldDisplayVariable.ts
diff --git a/packages/twenty-front/src/modules/settings/applications/utils/sortSettingsMenuItemsByPosition.ts b/packages/twenty-front/src/modules/settings/applications/utils/sortSettingsMenuItemsByPosition.ts
new file mode 100644
index 00000000000..079c7b20a78
--- /dev/null
+++ b/packages/twenty-front/src/modules/settings/applications/utils/sortSettingsMenuItemsByPosition.ts
@@ -0,0 +1,17 @@
+import { type SettingsMenuItem } from '~/generated-metadata/graphql';
+
+export const sortSettingsMenuItemsByPosition = <
+ OrderableSettingsMenuItem extends Pick<
+ SettingsMenuItem,
+ 'universalIdentifier' | 'position'
+ >,
+>(
+ settingsMenuItems: OrderableSettingsMenuItem[],
+): OrderableSettingsMenuItem[] =>
+ [...settingsMenuItems].sort(
+ (settingsMenuItemA, settingsMenuItemB) =>
+ settingsMenuItemA.position - settingsMenuItemB.position ||
+ settingsMenuItemA.universalIdentifier.localeCompare(
+ settingsMenuItemB.universalIdentifier,
+ ),
+ );
diff --git a/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferences.tsx b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferences.tsx
new file mode 100644
index 00000000000..a9fc199054a
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferences.tsx
@@ -0,0 +1,36 @@
+import { useApplicationsWithPreferences } from '@/settings/app-preferences/hooks/useApplicationsWithPreferences';
+import { SettingsSkeletonLoader } from '@/settings/components/SettingsSkeletonLoader';
+import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
+import { Navigate, useParams } from 'react-router-dom';
+import { SettingsPath } from 'twenty-shared/types';
+import { getSettingsPath, isDefined } from 'twenty-shared/utils';
+import { FeatureFlagKey } from '~/generated-metadata/graphql';
+import { SettingsApplicationPreferencesDetail } from '~/pages/settings/accounts/SettingsApplicationPreferencesDetail';
+
+export const SettingsApplicationPreferences = () => {
+ const isAppPreferencesEnabled = useIsFeatureEnabled(
+ FeatureFlagKey.IS_APP_PREFERENCES_ENABLED,
+ );
+ const { applicationId } = useParams<{ applicationId: string }>();
+ const { applicationsWithPreferences, loading, refetch } =
+ useApplicationsWithPreferences();
+
+ const applicationWithPreferences = applicationsWithPreferences.find(
+ ({ application }) => application.id === applicationId,
+ );
+
+ if (isAppPreferencesEnabled && isDefined(applicationWithPreferences)) {
+ return (
+ <SettingsApplicationPreferencesDetail
+ applicationWithPreferences={applicationWithPreferences}
+ refetchApplicationsWithPreferences={refetch}
+ />
+ );
+ }
+
+ if (isAppPreferencesEnabled && loading) {
+ return <SettingsSkeletonLoader />;
+ }
+
+ return <Navigate to={getSettingsPath(SettingsPath.Accounts)} replace />;
+};
diff --git a/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx
new file mode 100644
index 00000000000..f80c6b927f1
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/accounts/SettingsApplicationPreferencesDetail.tsx
@@ -0,0 +1,156 @@
+import { AppChip } from '@/applications/components/AppChip';
+import { CurrentApplicationContext } from '@/applications/contexts/CurrentApplicationContext';
+import { getApplicationDisplayName } from '@/applications/utils/getApplicationDisplayName';
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { SETTINGS_APPLICATION_PREFERENCES_TAB_LIST_COMPONENT_ID } from '@/settings/app-preferences/constants/SettingsApplicationPreferencesTabListComponentId';
+import { type ApplicationWithPreferences } from '@/settings/app-preferences/types/ApplicationWithPreferences';
+import { hasApplicationVariablesTab } from '@/settings/applications/utils/hasApplicationVariablesTab';
+import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
+import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLayout';
+import { SettingsTabBar } from '@/settings/components/layout/SettingsTabBar';
+import { useSettingsActiveTabId } from '@/settings/components/layout/useSettingsActiveTabId';
+import type { SingleTabProps } from '@/ui/layout/tab-list/types/SingleTabProps';
+import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
+import { useMutation } from '@apollo/client/react';
+import { useLingui } from '@lingui/react/macro';
+import { SettingsPath } from 'twenty-shared/types';
+import { getSettingsPath, isDefined } from 'twenty-shared/utils';
+import { IconDeviceFloppy, IconVariable, useIcons } from 'twenty-ui/icon';
+import { Button } from 'twenty-ui/primitives/input';
+import {
+ ApplicationVariableScope,
+ UpdateMyUserApplicationVariableDocument,
+} from '~/generated-metadata/graphql';
+import { useApplicationVariablesDraft } from '@/settings/applications/hooks/useApplicationVariablesDraft';
+import { SettingsApplicationCustomSettingsSection } from '@/settings/applications/components/SettingsApplicationCustomSettingsSection';
+import { SettingsApplicationDetailVariablesTab } from '@/settings/applications/components/SettingsApplicationDetailVariablesTab';
+
+const VARIABLES_TAB_ID = 'variables';
+
+type SettingsApplicationPreferencesDetailProps = {
+ applicationWithPreferences: ApplicationWithPreferences;
+ refetchApplicationsWithPreferences: () => Promise<unknown>;
+};
+
+export const SettingsApplicationPreferencesDetail = ({
+ applicationWithPreferences: { application, settingsMenuItems, variables },
+ refetchApplicationsWithPreferences,
+}: SettingsApplicationPreferencesDetailProps) => {
+ const { t } = useLingui();
+ const { getIcon } = useIcons();
+ const currentWorkspace = useAtomStateValue(currentWorkspaceState);
+
+ const [updateMyUserApplicationVariable] = useMutation(
+ UpdateMyUserApplicationVariableDocument,
+ );
+
+ const {
+ draftApplicationVariables,
+ setApplicationVariableValue,
+ clearApplicationVariableValue,
+ hasUnsavedApplicationVariables,
+ saveApplicationVariables,
+ isSavingApplicationVariables,
+ } = useApplicationVariablesDraft({
+ applicationId: application.id,
+ scope: ApplicationVariableScope.USER,
+ applicationVariables: variables,
+ updateApplicationVariable: ({ key, value }) =>
+ updateMyUserApplicationVariable({
+ variables: {
+ applicationUniversalIdentifier: application.universalIdentifier,
+ key,
+ value,
+ },
+ }),
+ refetchApplicationVariables: refetchApplicationsWithPreferences,
+ });
+
+ const hasVariablesTab = hasApplicationVariablesTab({
+ settingsMenuItems,
+ displayedApplicationVariables: variables,
+ });
+
+ const tabs: SingleTabProps[] = [
+ ...(hasVariablesTab
+ ? [{ id: VARIABLES_TAB_ID, title: t`Variables`, Icon: IconVariable }]
+ : []),
+ ...settingsMenuItems.map((settingsMenuItem) => ({
+ id: settingsMenuItem.universalIdentifier,
+ title: settingsMenuItem.title,
+ Icon: getIcon(settingsMenuItem.icon, 'IconAdjustments'),
+ })),
+ ];
+
+ const tabListComponentInstanceId = `${SETTINGS_APPLICATION_PREFERENCES_TAB_LIST_COMPONENT_ID}-${application.id}`;
+
+ const activeTabId = useSettingsActiveTabId(
+ tabListComponentInstanceId,
+ tabs.map((tab) => tab.id),
+ );
+
+ const appName = getApplicationDisplayName({
+ application,
+ currentWorkspace,
+ });
+
+ const activeSettingsMenuItem = settingsMenuItems.find(
+ (settingsMenuItem) => settingsMenuItem.universalIdentifier === activeTabId,
+ );
+
+ return (
+ <CurrentApplicationContext.Provider value={application.id}>
+ <SettingsPageLayout
+ title={appName}
+ icon={<AppChip applicationId={application.id} size="md" chipOnly />}
+ links={[
+ {
+ children: t`User`,
+ href: getSettingsPath(SettingsPath.ProfilePage),
+ },
+ {
+ children: t`App preferences`,
+ href: getSettingsPath(SettingsPath.Accounts),
+ },
+ { children: appName },
+ ]}
+ actionButton={
+ activeTabId === VARIABLES_TAB_ID ? (
+ <Button
+ startIcon={<IconDeviceFloppy />}
+ variant="solid"
+ color="accent"
+ size="sm"
+ onClick={saveApplicationVariables}
+ disabled={
+ !hasUnsavedApplicationVariables || isSavingApplicationVariables
+ }
+ >{t`Save settings`}</Button>
+ ) : undefined
+ }
+ secondaryBar={
+ <SettingsTabBar
+ aria-label={t`${appName} preferences`}
+ tabs={tabs}
+ componentInstanceId={tabListComponentInstanceId}
+ />
+ }
+ >
+ <SettingsPageContainer overflow="visible">
+ {activeTabId === VARIABLES_TAB_ID && (
+ <SettingsApplicationDetailVariablesTab
+ applicationVariables={draftApplicationVariables}
+ onVariableChange={setApplicationVariableValue}
+ onVariableClear={clearApplicationVariableValue}
+ />
+ )}
+ {isDefined(activeSettingsMenuItem) && (
+ <SettingsApplicationCustomSettingsSection
+ frontComponentId={activeSettingsMenuItem.frontComponentId}
+ />
+ )}
+ </SettingsPageContainer>
+ </SettingsPageLayout>
+ </CurrentApplicationContext.Provider>
+ );
+};
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx
index f5623ea18a2..62d01031f84 100644
--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsAccounts.stories.tsx
@@ -1,5 +1,5 @@
import { type Meta, type StoryObj } from '@storybook/react-vite';
-import { HttpResponse, delay, graphql } from 'msw';
+import { HttpResponse, delay, graphql, http } from 'msw';
import { expect, userEvent, waitFor, within } from 'storybook/test';
import { isDefined } from 'twenty-shared/utils';
@@ -7,7 +7,9 @@ import {
PageDecorator,
type PageDecoratorArgs,
} from '~/testing/decorators/PageDecorator';
+import { REACT_APP_SERVER_BASE_URL } from '~/config';
import { graphqlMocks } from '~/testing/graphqlMocks';
+import { mockedClientConfig } from '~/testing/mock-data/config';
import { isGoogleCalendarEnabledState } from '@/client-config/states/isGoogleCalendarEnabledState';
import { isGoogleMessagingEnabledState } from '@/client-config/states/isGoogleMessagingEnabledState';
@@ -18,11 +20,16 @@ import { SettingsAccounts } from '~/pages/settings/accounts/SettingsAccounts';
import {
ACCOUNT_GROUPS_GRAPHQL_HANDLERS,
CONNECTED_ACCOUNTS,
+ FATHOM_APPLICATION_ID,
GOOGLE_ACCOUNT_ID,
MICROSOFT_ACCOUNT_ID,
deleteConnectedAccount,
seedAccountGroupsStory,
} from '~/pages/settings/accounts/__stories__/mockedAccountGroups';
+import {
+ APPLICATION_PREFERENCES_GRAPHQL_HANDLERS,
+ seedApplicationPreferencesStory,
+} from '~/pages/settings/accounts/__stories__/mockedApplicationPreferences';
const meta: Meta<PageDecoratorArgs> = {
title: 'Pages/Settings/Accounts/SettingsAccounts',
@@ -310,3 +317,108 @@ export const BlocklistStaysWhenNoAppIsEnabled: Story = {
).not.toBeInTheDocument();
},
};
+
+export const AppPreferencesListInstalledApps: Story = {
+ ...accountGroupsStory,
+ args: {
+ additionalRoutes: ['/settings/accounts/applications/:applicationId'],
+ },
+ beforeEach: seedApplicationPreferencesStory,
+ parameters: {
+ msw: { handlers: APPLICATION_PREFERENCES_GRAPHQL_HANDLERS },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const fathomName = await canvas.findByText('Fathom', undefined, {
+ timeout: 3000,
+ });
+
+ expect(fathomName.closest('a')).toHaveAttribute(
+ 'href',
+ `/settings/accounts/applications/${FATHOM_APPLICATION_ID}`,
+ );
+ expect(canvas.getByText('Granola')).toBeVisible();
+ expect(canvas.queryByText('Blocklist')).not.toBeInTheDocument();
+
+ const outlookRow = canvas
+ .getByText('Outlook')
+ .closest<HTMLElement>('[data-table-row]');
+ const fathomRow = fathomName.closest<HTMLElement>('[data-table-row]');
+ const granolaRow = canvas
+ .getByText('Granola')
+ .closest<HTMLElement>('[data-table-row]');
+
+ if (
+ !isDefined(outlookRow) ||
+ !isDefined(fathomRow) ||
+ !isDefined(granolaRow)
+ ) {
+ throw new Error('Missing app preferences rows');
+ }
+
+ expect(
+ outlookRow.compareDocumentPosition(fathomRow) &
+ Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ expect(
+ fathomRow.compareDocumentPosition(granolaRow) &
+ Node.DOCUMENT_POSITION_FOLLOWING,
+ ).toBeTruthy();
+ expect(
+ within(fathomRow).queryByText('Missing account'),
+ ).not.toBeInTheDocument();
+
+ await userEvent.click(fathomRow);
+
+ expect(
+ await canvas.findByText(
+ 'Navigated to /settings/accounts/applications/:applicationId',
+ ),
+ ).toBeVisible();
+ },
+};
+
+export const InstalledAppsKeepBlocklistWhenNoNativeAppIsEnabled: Story = {
+ ...accountGroupsStory,
+ beforeEach: async () => {
+ await seedApplicationPreferencesStory();
+ jotaiStore.set(isGoogleMessagingEnabledState.atom, false);
+ jotaiStore.set(isGoogleCalendarEnabledState.atom, false);
+ jotaiStore.set(isMicrosoftMessagingEnabledState.atom, false);
+ jotaiStore.set(isMicrosoftCalendarEnabledState.atom, false);
+ },
+ parameters: {
+ msw: {
+ handlers: [
+ // The client config can load after beforeEach and would re-enable them
+ http.get(`${REACT_APP_SERVER_BASE_URL}/client-config`, () =>
+ HttpResponse.json({
+ ...mockedClientConfig,
+ isGoogleMessagingEnabled: false,
+ isGoogleCalendarEnabled: false,
+ isMicrosoftMessagingEnabled: false,
+ isMicrosoftCalendarEnabled: false,
+ }),
+ ),
+ ...APPLICATION_PREFERENCES_GRAPHQL_HANDLERS,
+ ],
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByText('Fathom', undefined, { timeout: 3000 }),
+ ).toBeVisible();
+ expect(
+ canvas.getByText(
+ 'Choose your preferences for the apps installed on your workspace by the admin',
+ ),
+ ).toBeVisible();
+ expect(await canvas.findByText('Blocklist')).toBeVisible();
+ expect(
+ canvas.queryByRole('link', { name: 'Gmail and Calendar' }),
+ ).not.toBeInTheDocument();
+ },
+};
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferences.stories.tsx b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferences.stories.tsx
new file mode 100644
index 00000000000..bb81fa2940d
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/SettingsApplicationPreferences.stories.tsx
@@ -0,0 +1,239 @@
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { expect, userEvent, waitFor, within } from 'storybook/test';
+
+import {
+ PageDecorator,
+ type PageDecoratorArgs,
+} from '~/testing/decorators/PageDecorator';
+
+import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
+import { jotaiStore } from '@/ui/utilities/state/jotai/jotaiStore';
+import { isDefined } from 'twenty-shared/utils';
+import { SettingsApplicationPreferences } from '~/pages/settings/accounts/SettingsApplicationPreferences';
+import {
+ FATHOM_APPLICATION_ID,
+ GRANOLA_APPLICATION_ID,
+} from '~/pages/settings/accounts/__stories__/mockedAccountGroups';
+import {
+ APPLICATION_PREFERENCES_GRAPHQL_HANDLERS,
+ GRANOLA_USER_SETTINGS_FRONT_COMPONENT_ID,
+ findApplicationsGatedQuery,
+ findOneFrontComponent,
+ seedApplicationPreferencesStory,
+ updateMyUserApplicationVariable,
+} from '~/pages/settings/accounts/__stories__/mockedApplicationPreferences';
+
+const meta: Meta<PageDecoratorArgs> = {
+ title: 'Pages/Settings/Accounts/SettingsApplicationPreferences',
+ component: SettingsApplicationPreferences,
+ decorators: [PageDecorator],
+ args: {
+ routePath: '/settings/accounts/applications/:applicationId',
+ routeParams: { ':applicationId': FATHOM_APPLICATION_ID },
+ additionalRoutes: ['/settings/accounts'],
+ },
+ beforeEach: seedApplicationPreferencesStory,
+ parameters: {
+ layout: 'fullscreen',
+ msw: { handlers: APPLICATION_PREFERENCES_GRAPHQL_HANDLERS },
+ },
+};
+
+export default meta;
+
+export type Story = StoryObj<typeof SettingsApplicationPreferences>;
+
+export const VariablesTabSavesOnlyEditedValues: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByRole('link', { name: 'Variables' }, { timeout: 3000 }),
+ ).toBeVisible();
+ expect(canvas.getAllByText('Fathom').length).toBeGreaterThan(0);
+ expect(canvas.getByText('App preferences')).toBeVisible();
+ expect(canvas.getByText('Record my meetings')).toBeVisible();
+ expect(canvas.getByDisplayValue('always')).toBeVisible();
+ expect(canvas.getByPlaceholderText('sk-1********')).toHaveValue('');
+ expect(canvas.queryByText('Old flag')).not.toBeInTheDocument();
+
+ const saveButton = canvas.getByRole('button', { name: 'Save settings' });
+
+ expect(saveButton).toBeDisabled();
+
+ const recordMyMeetingsInput = canvas.getByDisplayValue('always');
+
+ await userEvent.clear(recordMyMeetingsInput);
+ await userEvent.type(recordMyMeetingsInput, 'never');
+
+ await waitFor(() => expect(saveButton).toBeEnabled());
+ await userEvent.click(saveButton);
+
+ await waitFor(() =>
+ expect(updateMyUserApplicationVariable.mock.calls).toEqual([
+ [
+ {
+ applicationUniversalIdentifier: FATHOM_APPLICATION_ID,
+ key: 'RECORD_MY_MEETINGS',
+ value: 'never',
+ },
+ ],
+ ]),
+ );
+ await waitFor(() => expect(saveButton).toBeDisabled());
+ expect(canvas.getByDisplayValue('never')).toBeVisible();
+ expect(canvas.getByPlaceholderText('sk-1********')).toHaveValue('');
+ expect(findApplicationsGatedQuery).not.toHaveBeenCalled();
+ },
+};
+
+export const SavedSecretIsReplacedNotAppended: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const personalApiKeyInput = await canvas.findByPlaceholderText(
+ 'sk-1********',
+ undefined,
+ { timeout: 3000 },
+ );
+
+ expect(personalApiKeyInput).toHaveValue('');
+ expect(personalApiKeyInput).toHaveAttribute('type', 'password');
+
+ const saveButton = canvas.getByRole('button', { name: 'Save settings' });
+
+ await userEvent.type(personalApiKeyInput, 'x');
+ await userEvent.clear(personalApiKeyInput);
+
+ expect(saveButton).toBeDisabled();
+
+ await userEvent.type(personalApiKeyInput, 'sk-new-key');
+
+ await waitFor(() => expect(saveButton).toBeEnabled());
+ await userEvent.click(saveButton);
+
+ await waitFor(() =>
+ expect(updateMyUserApplicationVariable.mock.calls).toEqual([
+ [
+ {
+ applicationUniversalIdentifier: FATHOM_APPLICATION_ID,
+ key: 'PERSONAL_API_KEY',
+ value: 'sk-new-key',
+ },
+ ],
+ ]),
+ );
+ await waitFor(() =>
+ expect(canvas.getByPlaceholderText('sk-1********')).toHaveValue(''),
+ );
+ },
+};
+
+export const SavedSecretCanBeCleared: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ const personalApiKeyInput = await canvas.findByPlaceholderText(
+ 'sk-1********',
+ undefined,
+ { timeout: 3000 },
+ );
+ const saveButton = canvas.getByRole('button', { name: 'Save settings' });
+
+ expect(saveButton).toBeDisabled();
+
+ await userEvent.click(
+ canvas.getByRole('button', { name: 'Clear stored value' }),
+ );
+
+ expect(personalApiKeyInput).toHaveValue('');
+ expect(personalApiKeyInput).toHaveAttribute('placeholder', 'Value');
+ expect(
+ canvas.queryByRole('button', { name: 'Clear stored value' }),
+ ).not.toBeInTheDocument();
+ await waitFor(() => expect(saveButton).toBeEnabled());
+
+ await userEvent.click(saveButton);
+
+ await waitFor(() =>
+ expect(updateMyUserApplicationVariable.mock.calls).toEqual([
+ [
+ {
+ applicationUniversalIdentifier: FATHOM_APPLICATION_ID,
+ key: 'PERSONAL_API_KEY',
+ value: '',
+ },
+ ],
+ ]),
+ );
+ await waitFor(() => expect(saveButton).toBeDisabled());
+ expect(
+ canvas.queryByPlaceholderText('sk-1********'),
+ ).not.toBeInTheDocument();
+ },
+};
+
+export const SettingsTabReplacesVariablesTab: Story = {
+ args: {
+ routeParams: { ':applicationId': GRANOLA_APPLICATION_ID },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByRole('link', { name: 'My notes' }, { timeout: 3000 }),
+ ).toBeVisible();
+ expect(
+ canvas.queryByRole('link', { name: 'Variables' }),
+ ).not.toBeInTheDocument();
+ expect(
+ canvas.queryByRole('button', { name: 'Save settings' }),
+ ).not.toBeInTheDocument();
+
+ await waitFor(() =>
+ expect(findOneFrontComponent).toHaveBeenCalledWith(
+ GRANOLA_USER_SETTINGS_FRONT_COMPONENT_ID,
+ ),
+ );
+ expect(findApplicationsGatedQuery).not.toHaveBeenCalled();
+ },
+};
+
+export const UnknownAppGoesBackToAccounts: Story = {
+ args: {
+ routeParams: { ':applicationId': '20202020-1a2b-4c3d-8e4f-000000000099' },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByText('Navigated to /settings/accounts', undefined, {
+ timeout: 3000,
+ }),
+ ).toBeVisible();
+ },
+};
+
+export const FlagOffGoesBackToAccounts: Story = {
+ beforeEach: async () => {
+ await seedApplicationPreferencesStory();
+
+ const currentWorkspace = jotaiStore.get(currentWorkspaceState.atom);
+
+ if (isDefined(currentWorkspace)) {
+ jotaiStore.set(currentWorkspaceState.atom, {
+ ...currentWorkspace,
+ featureFlags: [],
+ });
+ }
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByText('Navigated to /settings/accounts', undefined, {
+ timeout: 3000,
+ }),
+ ).toBeVisible();
+ },
+};
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
index 62d6b7de66b..e7e9cd07290 100644
--- a/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedAccountGroups.ts
@@ -20,8 +20,8 @@ import {
const MY_USER_WORKSPACE_ID = '20202020-1a2b-4c3d-8e4f-000000000001';
const TEAMMATE_USER_WORKSPACE_ID = '20202020-1a2b-4c3d-8e4f-000000000002';
-const FATHOM_APPLICATION_ID = '20202020-1a2b-4c3d-8e4f-000000000021';
-const GRANOLA_APPLICATION_ID = '20202020-1a2b-4c3d-8e4f-000000000022';
+export const FATHOM_APPLICATION_ID = '20202020-1a2b-4c3d-8e4f-000000000021';
+export const GRANOLA_APPLICATION_ID = '20202020-1a2b-4c3d-8e4f-000000000022';
const CREATED_AT = '2026-09-01T00:00:00.000Z';
export const GOOGLE_ACCOUNT_ID = '20202020-1a2b-4c3d-8e4f-000000000011';
@@ -258,6 +258,9 @@ export const ACCOUNT_GROUPS_GRAPHQL_HANDLERS = [
},
});
}),
+ graphql.query('MyApplicationPreferences', () =>
+ HttpResponse.json({ data: { myApplicationPreferences: [] } }),
+ ),
graphql.query('FindManyBlocklists', () =>
HttpResponse.json({
data: {
diff --git a/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedApplicationPreferences.ts b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedApplicationPreferences.ts
new file mode 100644
index 00000000000..f0b9a73ae5c
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/accounts/__stories__/mockedApplicationPreferences.ts
@@ -0,0 +1,172 @@
+import { HttpResponse, graphql } from 'msw';
+import { fn } from 'storybook/test';
+
+import {
+ ACCOUNT_GROUPS_GRAPHQL_HANDLERS,
+ FATHOM_APPLICATION_ID,
+ GRANOLA_APPLICATION_ID,
+ seedAccountGroupsStory,
+} from '~/pages/settings/accounts/__stories__/mockedAccountGroups';
+
+export const GRANOLA_USER_SETTINGS_FRONT_COMPONENT_ID =
+ '20202020-1a2b-4c3d-8e4f-000000000051';
+const NOT_INSTALLED_APPLICATION_ID = '20202020-1a2b-4c3d-8e4f-000000000023';
+const GRANOLA_USER_SETTINGS_MENU_ITEM_ID =
+ '20202020-1a2b-4c3d-8e4f-000000000062';
+
+const buildUserApplicationVariable = ({
+ key,
+ label,
+ value = '',
+ isSecret = false,
+ isDeprecated = false,
+}: {
+ key: string;
+ label: string;
+ value?: string;
+ isSecret?: boolean;
+ isDeprecated?: boolean;
+}) => ({
+ __typename: 'UserApplicationVariableValue',
+ key,
+ label,
+ value,
+ description: '',
+ isSecret,
+ isDeprecated,
+ isRequired: false,
+ type: 'TEXT',
+ options: null,
+});
+
+const buildSettingsMenuItem = ({
+ universalIdentifier,
+ applicationId,
+ frontComponentId,
+ title,
+ position,
+ scope,
+}: {
+ universalIdentifier: string;
+ applicationId: string;
+ frontComponentId: string;
+ title: string;
+ position: number;
+ scope: 'USER' | 'WORKSPACE';
+}) => ({
+ __typename: 'SettingsMenuItem',
+ id: `${universalIdentifier}-id`,
+ universalIdentifier,
+ applicationId,
+ frontComponentId,
+ title,
+ icon: null,
+ position,
+ scope,
+});
+
+const savedValueByKey = new Map<string, string>();
+
+export const updateMyUserApplicationVariable = fn();
+export const findOneFrontComponent = fn();
+export const findApplicationsGatedQuery = fn();
+
+const buildApplicationPreferences = () => [
+ {
+ __typename: 'ApplicationPreferences',
+ applicationId: FATHOM_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [
+ buildUserApplicationVariable({
+ key: 'RECORD_MY_MEETINGS',
+ label: 'Record my meetings',
+ value: savedValueByKey.get('RECORD_MY_MEETINGS') ?? 'always',
+ }),
+ buildUserApplicationVariable({
+ key: 'PERSONAL_API_KEY',
+ label: 'Personal API key',
+ value:
+ savedValueByKey.get('PERSONAL_API_KEY') === '' ? '' : 'sk-1********',
+ isSecret: true,
+ }),
+ buildUserApplicationVariable({
+ key: 'OLD_FLAG',
+ label: 'Old flag',
+ isDeprecated: true,
+ }),
+ ],
+ },
+ {
+ __typename: 'ApplicationPreferences',
+ applicationId: GRANOLA_APPLICATION_ID,
+ settingsMenuItems: [
+ buildSettingsMenuItem({
+ universalIdentifier: GRANOLA_USER_SETTINGS_MENU_ITEM_ID,
+ applicationId: GRANOLA_APPLICATION_ID,
+ frontComponentId: GRANOLA_USER_SETTINGS_FRONT_COMPONENT_ID,
+ title: 'My notes',
+ position: 1,
+ scope: 'USER',
+ }),
+ ],
+ variables: [
+ buildUserApplicationVariable({
+ key: 'LANGUAGE',
+ label: 'Language',
+ value: 'en',
+ }),
+ ],
+ },
+ {
+ __typename: 'ApplicationPreferences',
+ applicationId: NOT_INSTALLED_APPLICATION_ID,
+ settingsMenuItems: [],
+ variables: [
+ buildUserApplicationVariable({
+ key: 'LANGUAGE',
+ label: 'Language',
+ value: 'en',
+ }),
+ ],
+ },
+];
+
+export const APPLICATION_PREFERENCES_GRAPHQL_HANDLERS = [
+ graphql.query('MyApplicationPreferences', () =>
+ HttpResponse.json({
+ data: { myApplicationPreferences: buildApplicationPreferences() },
+ }),
+ ),
+ graphql.mutation('UpdateMyUserApplicationVariable', ({ variables }) => {
+ updateMyUserApplicationVariable(variables);
+ savedValueByKey.set(variables.key, variables.value);
+
+ return HttpResponse.json({
+ data: { updateMyUserApplicationVariable: true },
+ });
+ }),
+ graphql.query('FindOneFrontComponent', ({ variables }) => {
+ findOneFrontComponent(variables.id);
+
+ return HttpResponse.json({ data: { frontComponent: null } });
+ }),
+ ...['FindOneApplication', 'FindManyApplications'].map((operationName) =>
+ graphql.query(operationName, () => {
+ findApplicationsGatedQuery(operationName);
+
+ return HttpResponse.json({
+ errors: [{ message: 'Forbidden', extensions: { code: 'FORBIDDEN' } }],
+ });
+ }),
+ ),
+ ...ACCOUNT_GROUPS_GRAPHQL_HANDLERS,
+];
+
+export const seedApplicationPreferencesStory = async () => {
+ savedValueByKey.clear();
+ updateMyUserApplicationVariable.mockClear();
+ findOneFrontComponent.mockClear();
+ findApplicationsGatedQuery.mockClear();
+
+ await seedAccountGroupsStory();
+};
diff --git a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
index ac02c85ec85..c63fda2f719 100644
--- a/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/SettingsApplicationDetails.tsx
@@ -7,6 +7,9 @@ import { isWorkspaceCustomApplication } from '@/applications/utils/isWorkspaceCu
import { currentWorkspaceState } from '@/auth/states/currentWorkspaceState';
import { useUpgradeApplication } from '@/marketplace/hooks/useUpgradeApplication';
import { useUninstallApplication } from '@/settings/applications/hooks/useUninstallApplication';
+import { getDisplayedApplicationVariables } from '@/settings/applications/utils/getDisplayedApplicationVariables';
+import { getSettingsMenuItemsForScope } from '@/settings/applications/utils/getSettingsMenuItemsForScope';
+import { hasApplicationVariablesTab } from '@/settings/applications/utils/hasApplicationVariablesTab';
import { SettingsPageContainer } from '@/settings/components/SettingsPageContainer';
import { SettingsSectionSkeletonLoader } from '@/settings/components/SettingsSectionSkeletonLoader';
import { SettingsPageLayout } from '@/settings/components/layout/SettingsPageLayout';
@@ -14,7 +17,7 @@ import { SettingsTabBar } from '@/settings/components/layout/SettingsTabBar';
import { useSettingsActiveTabId } from '@/settings/components/layout/useSettingsActiveTabId';
import type { SingleTabProps } from '@/ui/layout/tab-list/types/SingleTabProps';
import { useAtomStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomStateValue';
-import { useQuery } from '@apollo/client/react';
+import { useMutation, useQuery } from '@apollo/client/react';
import { t } from '@lingui/core/macro';
import { useCallback } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
@@ -36,9 +39,12 @@ import {
import { Button } from 'twenty-ui/primitives/input';
import {
ApplicationRegistrationSourceType,
+ ApplicationVariableScope,
FindMarketplaceAppDetailDocument,
FindOneApplicationDocument,
IsApplicationStoppedDocument,
+ SettingsMenuItemScope,
+ UpdateOneApplicationVariableDocument,
} from '~/generated-metadata/graphql';
import { useNavigateSettings } from '~/hooks/useNavigateSettings';
import { SettingsApplicationHealthBanner } from '~/pages/settings/applications/components/SettingsApplicationHealthBanner';
@@ -48,19 +54,17 @@ import { SettingsApplicationNotFound } from '~/pages/settings/applications/compo
import { CUSTOM_APPLICATION_ILLUSTRATIONS } from '~/pages/settings/applications/constants/CustomApplicationIllustrations';
import { STANDARD_APPLICATION_ILLUSTRATIONS } from '~/pages/settings/applications/constants/StandardApplicationIllustrations';
import { useApplicationHealthCheck } from '~/pages/settings/applications/hooks/useApplicationHealthCheck';
-import { useApplicationVariablesDraft } from '~/pages/settings/applications/hooks/useApplicationVariablesDraft';
-import { SettingsApplicationCustomSettingsSection } from '~/pages/settings/applications/tabs/SettingsApplicationCustomSettingsSection';
+import { useApplicationVariablesDraft } from '@/settings/applications/hooks/useApplicationVariablesDraft';
+import { SettingsApplicationCustomSettingsSection } from '@/settings/applications/components/SettingsApplicationCustomSettingsSection';
import { SettingsApplicationDetailGeneralTab } from '~/pages/settings/applications/tabs/SettingsApplicationDetailGeneralTab';
-import { SettingsApplicationDetailVariablesTab } from '~/pages/settings/applications/tabs/SettingsApplicationDetailVariablesTab';
+import { SettingsApplicationDetailVariablesTab } from '@/settings/applications/components/SettingsApplicationDetailVariablesTab';
import { getApplicationDescriptionSummary } from '~/pages/settings/applications/utils/getApplicationDescriptionSummary';
import { getApplicationHealthBanner } from '~/pages/settings/applications/utils/getApplicationHealthBanner';
import { getApplicationLookupStatus } from '~/pages/settings/applications/utils/getApplicationLookupStatus';
import { hasApplicationUpdate } from '~/pages/settings/applications/utils/hasApplicationUpdate';
import { isUuidFormat } from '~/pages/settings/applications/utils/isUuidFormat';
-import { getDisplayedApplicationVariables } from '~/pages/settings/applications/utils/getDisplayedApplicationVariables';
import { getMissingRequiredApplicationVariables } from '~/pages/settings/applications/utils/getMissingRequiredApplicationVariables';
import { getSettingsMenuItemDisplayTitle } from '~/pages/settings/applications/utils/getSettingsMenuItemDisplayTitle';
-import { getWorkspaceSettingsMenuItems } from '~/pages/settings/applications/utils/getWorkspaceSettingsMenuItems';
const APPLICATION_DETAIL_ID = 'application-detail-id';
@@ -179,30 +183,46 @@ export const SettingsApplicationDetails = () => {
});
const displayedApplicationVariables = getDisplayedApplicationVariables(
- application?.applicationVariables ?? [],
+ (application?.applicationVariables ?? []).filter(
+ (applicationVariable) =>
+ applicationVariable.scope === ApplicationVariableScope.WORKSPACE,
+ ),
+ );
+
+ const [updateOneApplicationVariable] = useMutation(
+ UpdateOneApplicationVariableDocument,
);
const {
draftApplicationVariables,
setApplicationVariableValue,
+ clearApplicationVariableValue,
hasUnsavedApplicationVariables,
saveApplicationVariables,
isSavingApplicationVariables,
} = useApplicationVariablesDraft({
applicationId,
+ scope: ApplicationVariableScope.WORKSPACE,
applicationVariables: displayedApplicationVariables,
+ updateApplicationVariable: ({ key, value }) =>
+ updateOneApplicationVariable({
+ variables: { key, value, applicationId },
+ }),
+ refetchApplicationVariables: refetch,
});
- const workspaceSettingsMenuItems = getWorkspaceSettingsMenuItems(
- application?.settingsMenuItems ?? [],
- );
+ const workspaceSettingsMenuItems = getSettingsMenuItemsForScope({
+ settingsMenuItems: application?.settingsMenuItems ?? [],
+ scope: SettingsMenuItemScope.WORKSPACE,
+ });
const missingRequiredApplicationVariables =
getMissingRequiredApplicationVariables(displayedApplicationVariables);
- const hasVariablesTab =
- !isNonEmptyArray(workspaceSettingsMenuItems) &&
- displayedApplicationVariables.length > 0;
+ const hasVariablesTab = hasApplicationVariablesTab({
+ settingsMenuItems: workspaceSettingsMenuItems,
+ displayedApplicationVariables,
+ });
const { healthCheckResult, runHealthCheck } = useApplicationHealthCheck({
applicationId,
@@ -216,7 +236,6 @@ export const SettingsApplicationDetails = () => {
const tabs: SingleTabProps[] = [
{ id: GENERAL_TAB_ID, title: t`General`, Icon: IconSettings },
- // A custom settings tab lays out the application variables itself, so this tab would duplicate them
...(hasVariablesTab
? [{ id: VARIABLES_TAB_ID, title: t`Variables`, Icon: IconVariable }]
: []),
@@ -322,6 +341,7 @@ export const SettingsApplicationDetails = () => {
<SettingsApplicationDetailVariablesTab
applicationVariables={draftApplicationVariables}
onVariableChange={setApplicationVariableValue}
+ onVariableClear={clearApplicationVariableValue}
/>
);
default: {
diff --git a/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx b/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx
new file mode 100644
index 00000000000..97fe4bef31c
--- /dev/null
+++ b/packages/twenty-front/src/pages/settings/applications/__stories__/SettingsApplicationDetails.stories.tsx
@@ -0,0 +1,259 @@
+import { type Meta, type StoryObj } from '@storybook/react-vite';
+import { HttpResponse, graphql } from 'msw';
+import { expect, fn, userEvent, waitFor, within } from 'storybook/test';
+
+import {
+ PageDecorator,
+ type PageDecoratorArgs,
+} from '~/testing/decorators/PageDecorator';
+import { graphqlMocks } from '~/testing/graphqlMocks';
+import { mockedApolloClient } from '~/testing/mockedApolloClient';
+
+import { SettingsApplicationDetails } from '~/pages/settings/applications/SettingsApplicationDetails';
+
+const APPLICATION_ID = '20202020-6a7b-4c3d-8e4f-000000000001';
+const WORKSPACE_SETTINGS_MENU_ITEM_ID = '20202020-6a7b-4c3d-8e4f-000000000011';
+const USER_SETTINGS_MENU_ITEM_ID = '20202020-6a7b-4c3d-8e4f-000000000012';
+
+const buildApplicationVariable = ({
+ key,
+ label,
+ value,
+ scope,
+}: {
+ key: string;
+ label: string;
+ value: string;
+ scope: 'USER' | 'WORKSPACE';
+}) => ({
+ __typename: 'ApplicationVariable',
+ id: `${key}-id`,
+ key,
+ value,
+ description: '',
+ label,
+ isSecret: false,
+ isDeprecated: false,
+ isRequired: false,
+ type: 'TEXT',
+ options: null,
+ scope,
+});
+
+const buildSettingsMenuItem = ({
+ id,
+ title,
+ scope,
+}: {
+ id: string;
+ title: string;
+ scope: 'USER' | 'WORKSPACE';
+}) => ({
+ __typename: 'SettingsMenuItem',
+ id,
+ universalIdentifier: id,
+ applicationId: APPLICATION_ID,
+ frontComponentId: `${id}-front-component`,
+ title,
+ icon: null,
+ position: 0,
+ scope,
+});
+
+const savedValueByKey = new Map<string, string>();
+
+const updateOneApplicationVariable = fn();
+
+const buildWorkspaceVariable = () =>
+ buildApplicationVariable({
+ key: 'WORKSPACE_URL',
+ label: 'Workspace URL',
+ value:
+ savedValueByKey.get('WORKSPACE_URL') ?? 'https://recorder.example.com',
+ scope: 'WORKSPACE',
+ });
+
+const USER_VARIABLE = buildApplicationVariable({
+ key: 'RECORD_MY_MEETINGS',
+ label: 'Record my meetings',
+ value: 'always',
+ scope: 'USER',
+});
+
+const WORKSPACE_SETTINGS_MENU_ITEM = buildSettingsMenuItem({
+ id: WORKSPACE_SETTINGS_MENU_ITEM_ID,
+ title: 'Recording rules',
+ scope: 'WORKSPACE',
+});
+
+const USER_SETTINGS_MENU_ITEM = buildSettingsMenuItem({
+ id: USER_SETTINGS_MENU_ITEM_ID,
+ title: 'My recordings',
+ scope: 'USER',
+});
+
+const buildApplicationHandlers = ({
+ settingsMenuItems,
+}: {
+ settingsMenuItems: ReturnType<typeof buildSettingsMenuItem>[];
+}) => [
+ graphql.query('FindOneApplication', () =>
+ HttpResponse.json({
+ data: {
+ findOneApplication: {
+ __typename: 'Application',
+ id: APPLICATION_ID,
+ name: 'Recorder',
+ description: 'Records meetings',
+ logoUrl: null,
+ version: '1.0.0',
+ universalIdentifier: APPLICATION_ID,
+ applicationRegistrationId: null,
+ applicationRegistration: null,
+ canBeUninstalled: true,
+ isUninstallBlockedByOtherWorkspaceInstallations: false,
+ autoUpgrade: false,
+ defaultRoleId: null,
+ settingsCustomTabFrontComponentId: null,
+ healthCheckLogicFunctionId: null,
+ availablePackages: {},
+ applicationVariables: [USER_VARIABLE, buildWorkspaceVariable()],
+ agents: [],
+ frontComponents: [],
+ commandMenuItems: [],
+ settingsMenuItems,
+ objects: [],
+ logicFunctions: [],
+ },
+ },
+ }),
+ ),
+ graphql.query('FindMarketplaceAppDetail', () =>
+ HttpResponse.json({
+ errors: [{ message: 'Not listed', extensions: { code: 'NOT_FOUND' } }],
+ }),
+ ),
+ graphql.query('IsApplicationStopped', () =>
+ HttpResponse.json({ data: { isApplicationStopped: false } }),
+ ),
+ graphql.mutation('UpdateOneApplicationVariable', ({ variables }) => {
+ updateOneApplicationVariable(variables);
+ savedValueByKey.set(variables.key, variables.value);
+
+ return HttpResponse.json({
+ data: { updateOneApplicationVariable: true },
+ });
+ }),
+ ...graphqlMocks.handlers,
+];
+
+const meta: Meta<PageDecoratorArgs> = {
+ title: 'Pages/Settings/Applications/SettingsApplicationDetails',
+ component: SettingsApplicationDetails,
+ decorators: [PageDecorator],
+ args: {
+ routePath: '/settings/applications/:applicationId',
+ routeParams: { ':applicationId': APPLICATION_ID },
+ },
+ beforeEach: async () => {
+ savedValueByKey.clear();
+ updateOneApplicationVariable.mockClear();
+ await mockedApolloClient.clearStore();
+ },
+ parameters: {
+ layout: 'fullscreen',
+ msw: {
+ handlers: buildApplicationHandlers({
+ settingsMenuItems: [USER_SETTINGS_MENU_ITEM],
+ }),
+ },
+ },
+};
+
+export default meta;
+
+export type Story = StoryObj<typeof SettingsApplicationDetails>;
+
+export const VariablesTabIgnoresUserScope: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('link', { name: 'Variables' }, { timeout: 3000 }),
+ );
+
+ expect(await canvas.findByText('Workspace URL')).toBeVisible();
+ expect(
+ canvas.getByDisplayValue('https://recorder.example.com'),
+ ).toBeVisible();
+ expect(canvas.queryByText('Record my meetings')).not.toBeInTheDocument();
+ expect(canvas.queryByText('My recordings')).not.toBeInTheDocument();
+ },
+};
+
+export const SettingsTabsIgnoreUserScope: Story = {
+ parameters: {
+ msw: {
+ handlers: buildApplicationHandlers({
+ settingsMenuItems: [
+ USER_SETTINGS_MENU_ITEM,
+ WORKSPACE_SETTINGS_MENU_ITEM,
+ ],
+ }),
+ },
+ },
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ expect(
+ await canvas.findByRole(
+ 'link',
+ { name: 'Recording rules' },
+ { timeout: 3000 },
+ ),
+ ).toBeVisible();
+ expect(canvas.queryByText('My recordings')).not.toBeInTheDocument();
+ expect(
+ canvas.queryByRole('link', { name: 'Variables' }),
+ ).not.toBeInTheDocument();
+ },
+};
+
+export const VariablesTabSavesWorkspaceVariable: Story = {
+ play: async ({ canvasElement }) => {
+ const canvas = within(canvasElement);
+
+ await userEvent.click(
+ await canvas.findByRole('link', { name: 'Variables' }, { timeout: 3000 }),
+ );
+
+ const saveButton = await canvas.findByRole('button', {
+ name: 'Save settings',
+ });
+ const workspaceUrlInput = await canvas.findByDisplayValue(
+ 'https://recorder.example.com',
+ );
+
+ expect(saveButton).toBeDisabled();
+
+ await userEvent.clear(workspaceUrlInput);
+ await userEvent.type(workspaceUrlInput, 'https://new.example.com');
+
+ await waitFor(() => expect(saveButton).toBeEnabled());
+ await userEvent.click(saveButton);
+
+ await waitFor(() =>
+ expect(updateOneApplicationVariable.mock.calls).toEqual([
+ [
+ {
+ applicationId: APPLICATION_ID,
+ key: 'WORKSPACE_URL',
+ value: 'https://new.example.com',
+ },
+ ],
+ ]),
+ );
+ await waitFor(() => expect(saveButton).toBeDisabled());
+ expect(canvas.getByDisplayValue('https://new.example.com')).toBeVisible();
+ },
+};
diff --git a/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx b/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
deleted file mode 100644
index ab03b1178d7..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/hooks/__tests__/useApplicationVariablesDraft.test.tsx
+++ /dev/null
@@ -1,189 +0,0 @@
-import { InMemoryCache, gql } from '@apollo/client';
-import { MockedProvider } from '@apollo/client/testing/react';
-import { act, renderHook, waitFor } from '@testing-library/react';
-import { type ReactNode } from 'react';
-import { ToastProvider } from 'twenty-ui/components/feedback';
-
-import {
- type Application,
- type ApplicationVariable,
- ApplicationVariableScope,
- FindOneApplicationDocument,
- UpdateOneApplicationVariableDocument,
-} from '~/generated-metadata/graphql';
-import { useApplicationVariablesDraft } from '~/pages/settings/applications/hooks/useApplicationVariablesDraft';
-
-const APPLICATION_VARIABLE_FRAGMENT = gql`
- fragment TestApplicationVariableFields on ApplicationVariable {
- id
- key
- value
- description
- isSecret
- }
-`;
-
-const VARIABLE_ID = 'var-1';
-const KEY = 'API_KEY';
-const OLD_VALUE = 'old';
-const NEW_VALUE = 'new';
-const LATER_VALUE = 'later';
-
-const buildApplicationVariable = (value: string): ApplicationVariable => ({
- __typename: 'ApplicationVariable',
- id: VARIABLE_ID,
- key: KEY,
- value,
- description: '',
- label: '',
- isSecret: false,
- isDeprecated: false,
- isRequired: false,
- type: 'TEXT',
- scope: ApplicationVariableScope.WORKSPACE,
-});
-
-const buildApplication = (
- applicationId: string,
- variableValue: string,
-): Application => ({
- __typename: 'Application',
- id: applicationId,
- name: 'Test App',
- description: null,
- version: '1.0.0',
- universalIdentifier: 'test-app',
- applicationRegistrationId: null,
- applicationRegistration: null,
- canBeUninstalled: true,
- isUninstallBlockedByOtherWorkspaceInstallations: false,
- autoUpgrade: false,
- createdAt: '2024-01-01T00:00:00.000Z',
- defaultRoleId: null,
- settingsCustomTabFrontComponentId: null,
- availablePackages: {},
- applicationVariables: [buildApplicationVariable(variableValue)],
- agents: [],
- frontComponents: [],
- commandMenuItems: [],
- settingsMenuItems: [],
- objects: [],
- logicFunctions: [],
-});
-
-const renderVariablesDraft = (applicationId: string) => {
- const cache = new InMemoryCache();
-
- cache.writeQuery({
- query: FindOneApplicationDocument,
- variables: { id: applicationId },
- data: { findOneApplication: buildApplication(applicationId, OLD_VALUE) },
- });
-
- const findOneApplicationMock = {
- request: {
- query: FindOneApplicationDocument,
- variables: { id: applicationId },
- },
- result: {
- data: {
- findOneApplication: buildApplication(applicationId, NEW_VALUE),
- },
- },
- // The hook watches the application and refetches it once the save
- // completes, so the same request is issued more than once.
- maxUsageCount: Number.POSITIVE_INFINITY,
- };
-
- const mocks = [
- {
- request: {
- query: UpdateOneApplicationVariableDocument,
- variables: { key: KEY, value: NEW_VALUE, applicationId },
- },
- result: { data: { updateOneApplicationVariable: true } },
- },
- findOneApplicationMock,
- ];
-
- const wrapper = ({ children }: { children: ReactNode }) => (
- <MockedProvider mocks={mocks} cache={cache}>
- <ToastProvider>{children}</ToastProvider>
- </MockedProvider>
- );
-
- const { result } = renderHook(
- () =>
- useApplicationVariablesDraft({
- applicationId,
- applicationVariables: [buildApplicationVariable(OLD_VALUE)],
- }),
- { wrapper },
- );
-
- return { result, cache };
-};
-
-describe('useApplicationVariablesDraft', () => {
- it('has nothing to save before an edit', () => {
- const { result } = renderVariablesDraft('app-untouched');
-
- expect(result.current.hasUnsavedApplicationVariables).toBe(false);
- expect(result.current.draftApplicationVariables[0].value).toBe(OLD_VALUE);
- });
-
- it('keeps the edited value unsaved until it is saved', () => {
- const { result } = renderVariablesDraft('app-edited');
-
- act(() => {
- result.current.setApplicationVariableValue(KEY, NEW_VALUE);
- });
-
- expect(result.current.draftApplicationVariables[0].value).toBe(NEW_VALUE);
- expect(result.current.hasUnsavedApplicationVariables).toBe(true);
- });
-
- it('persists the edited value once saved', async () => {
- const { result, cache } = renderVariablesDraft('app-saved');
-
- act(() => {
- result.current.setApplicationVariableValue(KEY, NEW_VALUE);
- });
-
- await act(async () => {
- await result.current.saveApplicationVariables();
- });
-
- await waitFor(() => {
- const cached = cache.readFragment<{ value: string }>({
- id: cache.identify({
- __typename: 'ApplicationVariable',
- id: VARIABLE_ID,
- }),
- fragment: APPLICATION_VARIABLE_FRAGMENT,
- });
- expect(cached?.value).toBe(NEW_VALUE);
- });
-
- expect(result.current.hasUnsavedApplicationVariables).toBe(false);
- });
-
- it('keeps a value edited while the save is in flight', async () => {
- const { result } = renderVariablesDraft('app-edited-during-save');
-
- act(() => {
- result.current.setApplicationVariableValue(KEY, NEW_VALUE);
- });
-
- await act(async () => {
- const savePromise = result.current.saveApplicationVariables();
-
- result.current.setApplicationVariableValue(KEY, LATER_VALUE);
-
- await savePromise;
- });
-
- expect(result.current.draftApplicationVariables[0].value).toBe(LATER_VALUE);
- expect(result.current.hasUnsavedApplicationVariables).toBe(true);
- });
-});
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailVariablesTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailVariablesTab.tsx
deleted file mode 100644
index d977c0f006d..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationDetailVariablesTab.tsx
+++ /dev/null
@@ -1,62 +0,0 @@
-import { styled } from '@linaria/react';
-import { t } from '@lingui/core/macro';
-import { type ApplicationVariableOption } from 'twenty-shared/application';
-import { Section } from 'twenty-ui/components/layout';
-import { themeCssVariables } from 'twenty-ui/theme';
-import { type ApplicationVariable } from '~/generated-metadata/graphql';
-import { SettingsApplicationVariableInput } from '~/pages/settings/applications/components/SettingsApplicationVariableInput';
-import { SettingsApplicationVariableLabelRow } from '~/pages/settings/applications/components/SettingsApplicationVariableLabelRow';
-
-const StyledContainer = styled.div`
- display: flex;
- flex-direction: column;
- gap: ${themeCssVariables.spacing[4]};
-`;
-
-type SettingsApplicationDetailVariablesTabProps = {
- applicationVariables: ApplicationVariable[];
- onVariableChange: (key: string, value: string) => void;
-};
-
-export const SettingsApplicationDetailVariablesTab = ({
- applicationVariables,
- onVariableChange,
-}: SettingsApplicationDetailVariablesTabProps) => {
- const sectionDescription =
- applicationVariables.length > 0
- ? t`Set your application configuration variables`
- : t`No variables to set for this application`;
-
- return (
- <Section.Root>
- <Section.Header title={t`Variables`} description={sectionDescription} />
- <StyledContainer>
- {applicationVariables.map((applicationVariable) => (
- <div key={applicationVariable.key}>
- <SettingsApplicationVariableLabelRow
- variableKey={applicationVariable.key}
- label={applicationVariable.label}
- isDeprecated={applicationVariable.isDeprecated}
- description={applicationVariable.description}
- tooltipId={`env-var-desc-${applicationVariable.key}`}
- />
- <SettingsApplicationVariableInput
- type={applicationVariable.type}
- value={applicationVariable.value}
- options={
- applicationVariable.options as
- | ApplicationVariableOption[]
- | null
- | undefined
- }
- onChange={(newValue) =>
- onVariableChange(applicationVariable.key, newValue)
- }
- placeholder={t`Value`}
- />
- </div>
- ))}
- </StyledContainer>
- </Section.Root>
- );
-};
diff --git a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
index 9f349efd476..29dac0e9cfc 100644
--- a/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
+++ b/packages/twenty-front/src/pages/settings/applications/tabs/SettingsApplicationRegistrationConfigTab.tsx
@@ -16,9 +16,9 @@ import { useLingui } from '@lingui/react/macro';
import { useState } from 'react';
import { type ApplicationVariableOption } from 'twenty-shared/application';
import { useDebouncedCallback } from 'use-debounce';
-import { SettingsApplicationVariableInput } from '~/pages/settings/applications/components/SettingsApplicationVariableInput';
-import { SettingsApplicationVariableLabelRow } from '~/pages/settings/applications/components/SettingsApplicationVariableLabelRow';
-import { shouldDisplayVariable } from '~/pages/settings/applications/utils/shouldDisplayVariable';
+import { SettingsApplicationVariableInput } from '@/settings/applications/components/SettingsApplicationVariableInput';
+import { SettingsApplicationVariableLabelRow } from '@/settings/applications/components/SettingsApplicationVariableLabelRow';
+import { shouldDisplayVariable } from '@/settings/applications/utils/shouldDisplayVariable';
import { useApolloAdminClient } from '@/settings/admin-panel/apollo/hooks/useApolloAdminClient';
type ConfigVariable = {
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts b/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
deleted file mode 100644
index 807ad2160fc..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getDisplayedApplicationVariables.test.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-import { ApplicationVariableScope } from '~/generated-metadata/graphql';
-import { getDisplayedApplicationVariables } from '~/pages/settings/applications/utils/getDisplayedApplicationVariables';
-
-const buildApplicationVariable = ({
- key,
- value = '',
- isDeprecated = false,
- scope = ApplicationVariableScope.WORKSPACE,
-}: {
- key: string;
- value?: string;
- isDeprecated?: boolean;
- scope?: ApplicationVariableScope;
-}) => ({ key, value, isDeprecated, scope });
-
-describe('getDisplayedApplicationVariables', () => {
- it('should hide deprecated variables with no value and sort the rest by key', () => {
- const result = getDisplayedApplicationVariables([
- buildApplicationVariable({ key: 'ZONE' }),
- buildApplicationVariable({ key: 'API_KEY', isDeprecated: true }),
- buildApplicationVariable({
- key: 'LEGACY_KEY',
- value: 'legacy-value',
- isDeprecated: true,
- }),
- ]);
-
- expect(result.map(({ key }) => key)).toEqual(['LEGACY_KEY', 'ZONE']);
- });
-
- it('should leave out user-scoped variables', () => {
- const result = getDisplayedApplicationVariables([
- buildApplicationVariable({
- key: 'PERSONAL_API_KEY',
- value: 'workspace-default',
- scope: ApplicationVariableScope.USER,
- }),
- buildApplicationVariable({ key: 'WORKSPACE_API_KEY' }),
- ]);
-
- expect(result.map(({ key }) => key)).toEqual(['WORKSPACE_API_KEY']);
- });
-});
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getWorkspaceSettingsMenuItems.test.ts b/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getWorkspaceSettingsMenuItems.test.ts
deleted file mode 100644
index de4db737899..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/utils/__tests__/getWorkspaceSettingsMenuItems.test.ts
+++ /dev/null
@@ -1,69 +0,0 @@
-import { SettingsMenuItemScope } from '~/generated-metadata/graphql';
-import { getWorkspaceSettingsMenuItems } from '~/pages/settings/applications/utils/getWorkspaceSettingsMenuItems';
-
-const buildSettingsMenuItem = ({
- universalIdentifier,
- position,
- scope = SettingsMenuItemScope.WORKSPACE,
-}: {
- universalIdentifier: string;
- position: number;
- scope?: SettingsMenuItemScope;
-}) => ({ universalIdentifier, position, scope });
-
-describe('getWorkspaceSettingsMenuItems', () => {
- it('should order items by ascending position', () => {
- const result = getWorkspaceSettingsMenuItems([
- buildSettingsMenuItem({ universalIdentifier: 'c', position: 3 }),
- buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
- buildSettingsMenuItem({ universalIdentifier: 'b', position: 1.5 }),
- ]);
-
- expect(result.map((item) => item.universalIdentifier)).toEqual([
- 'a',
- 'b',
- 'c',
- ]);
- });
-
- it('should break a shared position on universalIdentifier', () => {
- const result = getWorkspaceSettingsMenuItems([
- buildSettingsMenuItem({ universalIdentifier: 'b', position: 1 }),
- buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
- ]);
-
- expect(result.map((item) => item.universalIdentifier)).toEqual(['a', 'b']);
- });
-
- it('should leave out user-scoped items', () => {
- const result = getWorkspaceSettingsMenuItems([
- buildSettingsMenuItem({
- universalIdentifier: 'user-item',
- position: 1,
- scope: SettingsMenuItemScope.USER,
- }),
- buildSettingsMenuItem({
- universalIdentifier: 'workspace-item',
- position: 2,
- }),
- ]);
-
- expect(result.map((item) => item.universalIdentifier)).toEqual([
- 'workspace-item',
- ]);
- });
-
- it('should not mutate the items it was given', () => {
- const settingsMenuItems = [
- buildSettingsMenuItem({ universalIdentifier: 'b', position: 2 }),
- buildSettingsMenuItem({ universalIdentifier: 'a', position: 1 }),
- ];
-
- getWorkspaceSettingsMenuItems(settingsMenuItems);
-
- expect(settingsMenuItems.map((item) => item.universalIdentifier)).toEqual([
- 'b',
- 'a',
- ]);
- });
-});
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts b/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts
deleted file mode 100644
index 338388e8559..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/utils/getDisplayedApplicationVariables.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-import { isNonEmptyString } from '@sniptt/guards';
-
-import {
- type ApplicationVariable,
- ApplicationVariableScope,
-} from '~/generated-metadata/graphql';
-import { shouldDisplayVariable } from '~/pages/settings/applications/utils/shouldDisplayVariable';
-
-export const getDisplayedApplicationVariables = <
- DisplayableApplicationVariable extends Pick<
- ApplicationVariable,
- 'key' | 'value' | 'isDeprecated' | 'scope'
- >,
->(
- applicationVariables: DisplayableApplicationVariable[],
-): DisplayableApplicationVariable[] =>
- applicationVariables
- .filter(
- (applicationVariable) =>
- applicationVariable.scope === ApplicationVariableScope.WORKSPACE &&
- shouldDisplayVariable({
- isDeprecated: applicationVariable.isDeprecated,
- hasValue: isNonEmptyString(applicationVariable.value),
- }),
- )
- .sort((a, b) => a.key.localeCompare(b.key));
diff --git a/packages/twenty-front/src/pages/settings/applications/utils/getWorkspaceSettingsMenuItems.ts b/packages/twenty-front/src/pages/settings/applications/utils/getWorkspaceSettingsMenuItems.ts
deleted file mode 100644
index 403aee06e7a..00000000000
--- a/packages/twenty-front/src/pages/settings/applications/utils/getWorkspaceSettingsMenuItems.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import {
- type SettingsMenuItem,
- SettingsMenuItemScope,
-} from '~/generated-metadata/graphql';
-
-export const getWorkspaceSettingsMenuItems = <
- OrderableSettingsMenuItem extends Pick<
- SettingsMenuItem,
- 'universalIdentifier' | 'position' | 'scope'
- >,
->(
- settingsMenuItems: OrderableSettingsMenuItem[],
-): OrderableSettingsMenuItem[] =>
- settingsMenuItems
- .filter(
- (settingsMenuItem) =>
- settingsMenuItem.scope === SettingsMenuItemScope.WORKSPACE,
- )
- .sort(
- (settingsMenuItemA, settingsMenuItemB) =>
- settingsMenuItemA.position - settingsMenuItemB.position ||
- settingsMenuItemA.universalIdentifier.localeCompare(
- settingsMenuItemB.universalIdentifier,
- ),
- );
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.module.ts b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.module.ts
new file mode 100644
index 00000000000..69af43d7f10
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.module.ts
@@ -0,0 +1,17 @@
+import { Module } from '@nestjs/common';
+
+import { ApplicationPreferencesResolver } from 'src/engine/core-modules/application/application-preferences/application-preferences.resolver';
+import { ApplicationPreferencesService } from 'src/engine/core-modules/application/application-preferences/application-preferences.service';
+import { ApplicationVariableEntityModule } from 'src/engine/core-modules/application/application-variable/application-variable.module';
+import { ApplicationModule } from 'src/engine/core-modules/application/application.module';
+import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache.module';
+
+@Module({
+ imports: [
+ ApplicationModule,
+ ApplicationVariableEntityModule,
+ WorkspaceCacheModule,
+ ],
+ providers: [ApplicationPreferencesService, ApplicationPreferencesResolver],
+})
+export class ApplicationPreferencesModule {}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.resolver.ts
new file mode 100644
index 00000000000..428208b4845
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.resolver.ts
@@ -0,0 +1,45 @@
+import { UseFilters, UseGuards } from '@nestjs/common';
+import { Query } from '@nestjs/graphql';
+
+import { MetadataResolver } from 'src/engine/api/graphql/graphql-config/decorators/metadata-resolver.decorator';
+import { ApplicationPreferencesService } from 'src/engine/core-modules/application/application-preferences/application-preferences.service';
+import { ApplicationPreferencesDTO } from 'src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto';
+import { AuthGraphqlApiExceptionFilter } from 'src/engine/core-modules/auth/filters/auth-graphql-api-exception.filter';
+import { WorkspaceEntity } from 'src/engine/core-modules/workspace/workspace.entity';
+import { AuthUserWorkspaceId } from 'src/engine/decorators/auth/auth-user-workspace-id.decorator';
+import { AuthWorkspace } from 'src/engine/decorators/auth/auth-workspace.decorator';
+import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';
+import { NoPermissionGuard } from 'src/engine/guards/no-permission.guard';
+
+@UseGuards(
+ AuthPrincipalGuard({
+ userSession: {
+ standard: true,
+ impersonated: true,
+ playground: true,
+ workspaceAgnostic: false,
+ },
+ apiKey: false,
+ oauthClient: false,
+ application: false,
+ }),
+ NoPermissionGuard,
+)
+@MetadataResolver()
+@UseFilters(AuthGraphqlApiExceptionFilter)
+export class ApplicationPreferencesResolver {
+ constructor(
+ private readonly applicationPreferencesService: ApplicationPreferencesService,
+ ) {}
+
+ @Query(() => [ApplicationPreferencesDTO])
+ async myApplicationPreferences(
+ @AuthWorkspace() { id: workspaceId }: WorkspaceEntity,
+ @AuthUserWorkspaceId() userWorkspaceId: string,
+ ): Promise<ApplicationPreferencesDTO[]> {
+ return this.applicationPreferencesService.findMyApplicationPreferences({
+ workspaceId,
+ userWorkspaceId,
+ });
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.service.ts
new file mode 100644
index 00000000000..6cfab349323
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/application-preferences/application-preferences.service.ts
@@ -0,0 +1,61 @@
+import { Injectable } from '@nestjs/common';
+
+import { isNonEmptyArray } from 'twenty-shared/utils';
+
+import { type ApplicationPreferencesDTO } from 'src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto';
+import { UserApplicationVariableValueService } from 'src/engine/core-modules/application/application-variable/user-application-variable-value.service';
+import { ApplicationService } from 'src/engine/core-modules/application/application.service';
+import { findFlatEntitiesByApplicationId } from 'src/engine/metadata-modules/flat-entity/utils/find-flat-entities-by-application-id.util';
+import { fromFlatSettingsMenuItemToSettingsMenuItemDto } from 'src/engine/metadata-modules/flat-settings-menu-item/utils/from-flat-settings-menu-item-to-settings-menu-item-dto.util';
+import { WorkspaceCacheService } from 'src/engine/workspace-cache/services/workspace-cache.service';
+
+@Injectable()
+export class ApplicationPreferencesService {
+ constructor(
+ private readonly applicationService: ApplicationService,
+ private readonly userApplicationVariableValueService: UserApplicationVariableValueService,
+ private readonly workspaceCacheService: WorkspaceCacheService,
+ ) {}
+
+ async findMyApplicationPreferences({
+ workspaceId,
+ userWorkspaceId,
+ }: {
+ workspaceId: string;
+ userWorkspaceId: string;
+ }): Promise<ApplicationPreferencesDTO[]> {
+ const [installedFlatApplications, { flatSettingsMenuItemMaps }] =
+ await Promise.all([
+ this.applicationService.findManyInstalledFlatApplications(workspaceId),
+ this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatSettingsMenuItemMaps',
+ ]),
+ ]);
+
+ const myUserApplicationVariableValuesByApplicationId =
+ await this.userApplicationVariableValueService.findMyUserApplicationVariableValuesByApplicationId(
+ {
+ workspaceId,
+ applicationIds: installedFlatApplications.map(({ id }) => id),
+ userWorkspaceId,
+ },
+ );
+
+ return installedFlatApplications
+ .map(({ id: applicationId }): ApplicationPreferencesDTO => ({
+ applicationId,
+ settingsMenuItems: findFlatEntitiesByApplicationId({
+ flatEntityMaps: flatSettingsMenuItemMaps,
+ applicationId,
+ })
+ .filter(({ scope }) => scope === 'USER')
+ .map(fromFlatSettingsMenuItemToSettingsMenuItemDto),
+ variables:
+ myUserApplicationVariableValuesByApplicationId[applicationId],
+ }))
+ .filter(
+ ({ settingsMenuItems, variables }) =>
+ isNonEmptyArray(settingsMenuItems) || isNonEmptyArray(variables),
+ );
+ }
+}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto.ts b/packages/twenty-server/src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto.ts
new file mode 100644
index 00000000000..dc9f9f42b45
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto.ts
@@ -0,0 +1,20 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+import { IsUUID } from 'class-validator';
+
+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+import { UserApplicationVariableValueDTO } from 'src/engine/core-modules/application/application-variable/dtos/user-application-variable-value.dto';
+import { SettingsMenuItemDTO } from 'src/engine/metadata-modules/settings-menu-item/dtos/settings-menu-item.dto';
+
+@ObjectType('ApplicationPreferences')
+export class ApplicationPreferencesDTO {
+ @IsUUID()
+ @Field(() => UUIDScalarType)
+ applicationId: string;
+
+ @Field(() => [SettingsMenuItemDTO])
+ settingsMenuItems: SettingsMenuItemDTO[];
+
+ @Field(() => [UserApplicationVariableValueDTO])
+ variables: UserApplicationVariableValueDTO[];
+}
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.resolver.ts b/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.resolver.ts
index 406fac197a6..c61d64b4d9e 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.resolver.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.resolver.ts
@@ -54,7 +54,7 @@ export class UserApplicationVariableValueResolver {
},
apiKey: false,
oauthClient: false,
- application: false,
+ application: { withUser: true, withoutUser: false },
}),
ApplicationTargetGuard,
)
diff --git a/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.service.ts b/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.service.ts
index fd3617094dd..6dd12be95cd 100644
--- a/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.service.ts
+++ b/packages/twenty-server/src/engine/core-modules/application/application-variable/user-application-variable-value.service.ts
@@ -11,6 +11,7 @@ import {
ApplicationVariableEntityExceptionCode,
} from 'src/engine/core-modules/application/application-variable/application-variable.exception';
import { ApplicationVariableEntityService } from 'src/engine/core-modules/application/application-variable/application-variable.service';
+import { type UserApplicationVariableValueDTO } from 'src/engine/core-modules/application/application-variable/dtos/user-application-variable-value.dto';
import { type WorkspaceMemberApplicationVariablesDTO } from 'src/engine/core-modules/application/application-variable/dtos/workspace-member-application-variables.dto';
import { UserApplicationVariableValueEntity } from 'src/engine/core-modules/application/application-variable/user-application-variable-value.entity';
import { toUserApplicationVariableValues } from 'src/engine/core-modules/application/application-variable/utils/to-user-application-variable-values.util';
@@ -152,6 +153,47 @@ export class UserApplicationVariableValueService {
});
}
+ async findMyUserApplicationVariableValuesByApplicationId({
+ workspaceId,
+ applicationIds,
+ userWorkspaceId,
+ }: {
+ workspaceId: string;
+ applicationIds: string[];
+ userWorkspaceId: string;
+ }): Promise<Record<string, UserApplicationVariableValueDTO[]>> {
+ const { flatApplicationVariableMaps, userApplicationVariableValueMaps } =
+ await this.workspaceCacheService.getOrRecompute(workspaceId, [
+ 'flatApplicationVariableMaps',
+ 'userApplicationVariableValueMaps',
+ ]);
+
+ return Object.fromEntries(
+ await Promise.all(
+ applicationIds.map(async (applicationId) => [
+ applicationId,
+ toUserApplicationVariableValues({
+ flatUserApplicationVariables:
+ await this.findFlatUserApplicationVariables({
+ workspaceId,
+ applicationId,
+ flatApplicationVariableMaps,
+ }),
+ userApplicationVariableValueMaps,
+ userWorkspaceId,
+ shouldMaskSecret: true,
+ getDisplayValue: ({ value, isSecret }) =>
+ this.applicationVariableService.getDisplayValue({
+ value,
+ workspaceId,
+ isSecret,
+ }),
+ }),
+ ]),
+ ),
+ );
+ }
+
async updateMyUserApplicationVariable({
workspaceId,
applicationUniversalIdentifier,
diff --git a/packages/twenty-server/src/engine/metadata-modules/flat-settings-menu-item/utils/from-flat-settings-menu-item-to-settings-menu-item-dto.util.ts b/packages/twenty-server/src/engine/metadata-modules/flat-settings-menu-item/utils/from-flat-settings-menu-item-to-settings-menu-item-dto.util.ts
new file mode 100644
index 00000000000..2ed7ea2c867
--- /dev/null
+++ b/packages/twenty-server/src/engine/metadata-modules/flat-settings-menu-item/utils/from-flat-settings-menu-item-to-settings-menu-item-dto.util.ts
@@ -0,0 +1,18 @@
+import { type FlatSettingsMenuItem } from 'src/engine/metadata-modules/flat-settings-menu-item/types/flat-settings-menu-item.type';
+import { type SettingsMenuItemDTO } from 'src/engine/metadata-modules/settings-menu-item/dtos/settings-menu-item.dto';
+
+export const fromFlatSettingsMenuItemToSettingsMenuItemDto = (
+ flatSettingsMenuItem: FlatSettingsMenuItem,
+): SettingsMenuItemDTO => ({
+ id: flatSettingsMenuItem.id,
+ frontComponentId: flatSettingsMenuItem.frontComponentId,
+ title: flatSettingsMenuItem.title,
+ icon: flatSettingsMenuItem.icon,
+ position: flatSettingsMenuItem.position,
+ scope: flatSettingsMenuItem.scope,
+ universalIdentifier: flatSettingsMenuItem.universalIdentifier,
+ applicationId: flatSettingsMenuItem.applicationId,
+ workspaceId: flatSettingsMenuItem.workspaceId,
+ createdAt: new Date(flatSettingsMenuItem.createdAt),
+ updatedAt: new Date(flatSettingsMenuItem.updatedAt),
+});
diff --git a/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts b/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
index 425b32b4a54..fe3368ad67b 100644
--- a/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
+++ b/packages/twenty-server/src/engine/metadata-modules/metadata-engine.module.ts
@@ -10,6 +10,7 @@ import { AiWorkspaceStatsModule } from 'src/engine/metadata-modules/ai/ai-worksp
import { ApplicationConnectionsModule } from 'src/engine/core-modules/application/connection-provider/connections/application-connections.module';
import { ApplicationJobModule } from 'src/engine/core-modules/application/application-job/application-job.module';
import { ApplicationKeyValueModule } from 'src/engine/core-modules/application/application-key-value/application-key-value.module';
+import { ApplicationPreferencesModule } from 'src/engine/core-modules/application/application-preferences/application-preferences.module';
import { CalendarChannelMetadataModule } from 'src/engine/metadata-modules/calendar-channel/calendar-channel-metadata.module';
import { ConnectedAccountMetadataModule } from 'src/engine/metadata-modules/connected-account/connected-account-metadata.module';
import { CommandMenuItemModule } from 'src/engine/metadata-modules/command-menu-item/command-menu-item.module';
@@ -63,6 +64,7 @@ import { WorkspaceMetadataVersionModule } from 'src/engine/metadata-modules/work
ApplicationConnectionsModule,
ApplicationJobModule,
ApplicationKeyValueModule,
+ ApplicationPreferencesModule,
MinimalMetadataModule,
ViewModule,
WorkspaceMetadataVersionModule,
diff --git a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
index 0b2ea1ef277..99ab4e03fbc 100644
--- a/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/endpoint-permissions/__snapshots__/endpoint-permission-declarations.integration-spec.ts.snap
@@ -141,6 +141,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"ApplicationMessageChannelsResolver.updateAppMessageChannel {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":false,"playground":false,"standard":false,"workspaceAgnostic":false}}]}",
"ApplicationMessageIngestionResolver.ingestAppMessages {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":false,"playground":false,"standard":false,"workspaceAgnostic":false}}]}",
"ApplicationOAuthResolver.renewApplicationToken {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":false,"standard":true,"workspaceAgnostic":false}}]}",
+ "ApplicationPreferencesResolver.myApplicationPreferences {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"ApplicationRegistrationClaimController.githubCallback {"applicationTarget":null,"authPrincipalGuards":[]}",
"ApplicationRegistrationResolver.applicationRegistrationTarballUrl {"applicationTarget":{"argName":"id","kind":"applicationRegistrationId","requireApplicationRegistrationOwnership":true,"source":"graphqlArg"},"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"ApplicationRegistrationResolver.claimApplicationRegistrationOwnership {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
@@ -552,7 +553,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"UsageLimitResolver.usageQuotasWithConsumption {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"UsageResolver.getUsageAnalytics {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"UserApplicationVariableValueResolver.myUserApplicationVariables {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
- "UserApplicationVariableValueResolver.updateMyUserApplicationVariable {"applicationTarget":{"idKey":"applicationUniversalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":false,"source":"graphqlArgs"},"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
+ "UserApplicationVariableValueResolver.updateMyUserApplicationVariable {"applicationTarget":{"idKey":"applicationUniversalIdentifier","kind":"applicationUniversalIdentifier","requireApplicationRegistrationOwnership":false,"source":"graphqlArgs"},"authPrincipalGuards":[{"apiKey":true,"application":{"withAgent":false,"withUser":true,"withoutUser":true},"oauthClient":{"withUser":true,"withoutUser":true},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"UserResolver.currentUser {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":true}}]}",
"UserResolver.deleteUser {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":false,"withoutUser":false},"oauthClient":{"withUser":false,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":true}}]}",
"UserResolver.deleteUserFromWorkspace {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":false,"application":{"withAgent":false,"withUser":true,"withoutUser":false},"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":true}}]}",
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-application-preferences.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-application-preferences.integration-spec.ts.snap
new file mode 100644
index 00000000000..cd06cf2f689
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-application-preferences.integration-spec.ts.snap
@@ -0,0 +1,21 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`My application preferences should fail should refuse an API key 1`] = `
+{
+ "extensions": {
+ "code": "FORBIDDEN",
+ "userFriendlyMessage": "You do not have permission to perform this action.",
+ },
+ "message": "This endpoint is not available to this caller",
+}
+`;
+
+exports[`My application preferences should fail should refuse an application token, even one a member is behind 1`] = `
+{
+ "extensions": {
+ "code": "FORBIDDEN",
+ "userFriendlyMessage": "You do not have permission to perform this action.",
+ },
+ "message": "This endpoint is not available to this caller",
+}
+`;
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-user-application-variable-values.integration-spec.ts.snap b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-user-application-variable-values.integration-spec.ts.snap
index bfd1f37c491..5a803bc295c 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-user-application-variable-values.integration-spec.ts.snap
+++ b/packages/twenty-server/test/integration/metadata/suites/application/__snapshots__/failing-user-application-variable-values.integration-spec.ts.snap
@@ -24,7 +24,7 @@ exports[`User application variable values should fail should refuse an applicati
}
`;
-exports[`User application variable values should fail should refuse an application token writing a member value of its own application 1`] = `
+exports[`User application variable values should fail should refuse an application token no member is behind 1`] = `
{
"extensions": {
"code": "FORBIDDEN",
@@ -34,6 +34,18 @@ exports[`User application variable values should fail should refuse an applicati
}
`;
+exports[`User application variable values should fail should refuse an application token writing a member value of another application 1`] = `
+{
+ "extensions": {
+ "code": "FORBIDDEN",
+ "subCode": "FORBIDDEN",
+ "userFriendlyMessage": "You do not have permission to perform this action.",
+ },
+ "message": "An application token can only target its own application",
+ "name": "ForbiddenError",
+}
+`;
+
exports[`User application variable values should fail should refuse to list every member value from a session 1`] = `
{
"extensions": {
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/failing-application-preferences.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/failing-application-preferences.integration-spec.ts
new file mode 100644
index 00000000000..c98210e19d0
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/failing-application-preferences.integration-spec.ts
@@ -0,0 +1,55 @@
+import { expectOneNotInternalServerErrorSnapshot } from 'test/integration/graphql/utils/expect-one-not-internal-server-error-snapshot.util';
+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
+import { myApplicationPreferences } from 'test/integration/metadata/suites/application/utils/my-application-preferences.util';
+import {
+ type ApplicationWithVariable,
+ setupApplicationWithVariable,
+} from 'test/integration/metadata/suites/application/utils/setup-application-with-variable.util';
+import { generateAppleAdminApplicationTokenPair } from 'test/integration/utils/generate-apple-admin-application-token-pair.util';
+
+describe('My application preferences should fail', () => {
+ let application: ApplicationWithVariable;
+ let janeApplicationToken: string;
+
+ beforeAll(async () => {
+ application = await setupApplicationWithVariable({
+ name: 'Application Preferences Caller Application',
+ variableKey: 'RECORD_MY_MEETINGS',
+ variableScope: 'USER',
+ });
+
+ const janeApplicationTokenPair =
+ await generateAppleAdminApplicationTokenPair({
+ applicationId: application.id,
+ });
+
+ janeApplicationToken =
+ janeApplicationTokenPair.applicationAccessToken.token;
+ }, 120000);
+
+ afterAll(async () => {
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: application.universalIdentifier,
+ });
+ });
+
+ it('should refuse an API key', async () => {
+ const { errors } = await myApplicationPreferences({
+ input: {},
+ token: API_KEY_ACCESS_TOKEN,
+ expectToFail: true,
+ });
+
+ expectOneNotInternalServerErrorSnapshot({ errors });
+ });
+
+ it('should refuse an application token, even one a member is behind', async () => {
+ const { errors } = await myApplicationPreferences({
+ input: {},
+ token: janeApplicationToken,
+ expectToFail: true,
+ });
+
+ expectOneNotInternalServerErrorSnapshot({ errors });
+ });
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/failing-user-application-variable-values.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/failing-user-application-variable-values.integration-spec.ts
index 8a86d3267f0..0fbba0ddf2f 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/failing-user-application-variable-values.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/failing-user-application-variable-values.integration-spec.ts
@@ -7,7 +7,9 @@ import {
} from 'test/integration/metadata/suites/application/utils/setup-application-with-variable.util';
import { updateMyUserApplicationVariable } from 'test/integration/metadata/suites/application/utils/update-my-user-application-variable.util';
import { generateAppleAdminApplicationTokenPair } from 'test/integration/utils/generate-apple-admin-application-token-pair.util';
+import { generateApplicationTokenPair } from 'test/integration/utils/generate-application-token-pair.util';
+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
import { USER_WORKSPACE_DATA_SEED_IDS } from 'src/engine/workspace-manager/dev-seeder/core/utils/seed-user-workspaces.util';
const NOT_INSTALLED_APPLICATION_UNIVERSAL_IDENTIFIER =
@@ -15,8 +17,10 @@ const NOT_INSTALLED_APPLICATION_UNIVERSAL_IDENTIFIER =
describe('User application variable values should fail', () => {
let userVariableApplication: ApplicationWithVariable;
+ let otherUserVariableApplication: ApplicationWithVariable;
let workspaceVariableApplication: ApplicationWithVariable;
let janeApplicationToken: string;
+ let applicationToken: string;
beforeAll(async () => {
userVariableApplication = await setupApplicationWithVariable({
@@ -24,18 +28,29 @@ describe('User application variable values should fail', () => {
variableKey: 'RECORD_MY_MEETINGS',
variableScope: 'USER',
});
+ otherUserVariableApplication = await setupApplicationWithVariable({
+ name: 'Other User Variable Application',
+ variableKey: 'SHARE_MY_RECORDINGS',
+ variableScope: 'USER',
+ });
workspaceVariableApplication = await setupApplicationWithVariable({
name: 'Workspace Variable Application',
variableKey: 'RECORD_ALL_MEETINGS',
});
- const janeApplicationTokenPair =
- await generateAppleAdminApplicationTokenPair({
+ const [janeApplicationTokenPair, applicationTokenPair] = await Promise.all([
+ generateAppleAdminApplicationTokenPair({
+ applicationId: userVariableApplication.id,
+ }),
+ generateApplicationTokenPair({
+ workspaceId: SEED_APPLE_WORKSPACE_ID,
applicationId: userVariableApplication.id,
- });
+ }),
+ ]);
janeApplicationToken =
janeApplicationTokenPair.applicationAccessToken.token;
+ applicationToken = applicationTokenPair.applicationAccessToken.token;
}, 120000);
afterAll(async () => {
@@ -43,6 +58,10 @@ describe('User application variable values should fail', () => {
applicationUniversalIdentifier:
userVariableApplication.universalIdentifier,
});
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier:
+ otherUserVariableApplication.universalIdentifier,
+ });
await cleanupApplicationAndAppRegistration({
applicationUniversalIdentifier:
workspaceVariableApplication.universalIdentifier,
@@ -91,7 +110,7 @@ describe('User application variable values should fail', () => {
expectOneNotInternalServerErrorSnapshot({ errors });
});
- it('should refuse an application token writing a member value of its own application', async () => {
+ it('should refuse an application token no member is behind', async () => {
const { errors } = await updateMyUserApplicationVariable({
input: {
applicationUniversalIdentifier:
@@ -99,6 +118,21 @@ describe('User application variable values should fail', () => {
key: userVariableApplication.variableKey,
value: 'mine',
},
+ token: applicationToken,
+ expectToFail: true,
+ });
+
+ expectOneNotInternalServerErrorSnapshot({ errors });
+ });
+
+ it('should refuse an application token writing a member value of another application', async () => {
+ const { errors } = await updateMyUserApplicationVariable({
+ input: {
+ applicationUniversalIdentifier:
+ otherUserVariableApplication.universalIdentifier,
+ key: otherUserVariableApplication.variableKey,
+ value: 'mine',
+ },
token: janeApplicationToken,
expectToFail: true,
});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/successful-application-preferences.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/successful-application-preferences.integration-spec.ts
new file mode 100644
index 00000000000..35232584f32
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/successful-application-preferences.integration-spec.ts
@@ -0,0 +1,286 @@
+import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';
+import { buildFrontComponentManifest } from 'test/integration/metadata/suites/application/utils/build-front-component-manifest.util';
+import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
+import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';
+import { myApplicationPreferences } from 'test/integration/metadata/suites/application/utils/my-application-preferences.util';
+import {
+ type ApplicationWithVariable,
+ setupApplicationWithVariable,
+} from 'test/integration/metadata/suites/application/utils/setup-application-with-variable.util';
+import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';
+import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';
+import { updateMyUserApplicationVariable } from 'test/integration/metadata/suites/application/utils/update-my-user-application-variable.util';
+import { uploadBuiltFrontComponentFile } from 'test/integration/metadata/suites/application/utils/upload-built-front-component-file.util';
+import { v4 as uuidv4 } from 'uuid';
+
+import { type ApplicationPreferencesDTO } from 'src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto';
+import { SECRET_APPLICATION_VARIABLE_MASK } from 'src/engine/core-modules/application/application-variable/constants/secret-application-variable-mask.constant';
+
+const APPLICATION_UNIVERSAL_IDENTIFIER = uuidv4();
+const ROLE_UNIVERSAL_IDENTIFIER = uuidv4();
+const USER_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER = uuidv4();
+const WORKSPACE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER = uuidv4();
+const USER_SETTINGS_MENU_ITEM_UNIVERSAL_IDENTIFIER = uuidv4();
+const WORKSPACE_SETTINGS_MENU_ITEM_UNIVERSAL_IDENTIFIER = uuidv4();
+
+const APPLICATION_NAME = 'Application preferences A';
+
+const findPreferencesOf = (
+ applicationPreferences: ApplicationPreferencesDTO[],
+ applicationId: string,
+) =>
+ applicationPreferences.find(
+ (preferences) => preferences.applicationId === applicationId,
+ );
+
+const sortByApplicationId = <PreferencesLike extends { applicationId: string }>(
+ preferences: PreferencesLike[],
+): PreferencesLike[] =>
+ [...preferences].sort((preferencesA, preferencesB) =>
+ preferencesA.applicationId.localeCompare(preferencesB.applicationId),
+ );
+
+describe('My application preferences should succeed', () => {
+ let applicationId: string;
+ let otherUserApplication: ApplicationWithVariable;
+ let workspaceOnlyApplication: ApplicationWithVariable;
+
+ beforeAll(async () => {
+ await setupApplicationForSync({
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ name: APPLICATION_NAME,
+ description: 'App for testing application preferences',
+ sourcePath: 'application-preferences',
+ });
+
+ // setupApplicationForSync leaves fake timers installed, under which the
+ // multipart upload never resolves.
+ jest.useRealTimers();
+
+ await uploadBuiltFrontComponentFile({
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ componentName: 'UserSettings',
+ });
+ await uploadBuiltFrontComponentFile({
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ componentName: 'WorkspaceSettings',
+ });
+
+ await syncApplication({
+ manifest: buildBaseManifest({
+ appId: APPLICATION_UNIVERSAL_IDENTIFIER,
+ roleId: ROLE_UNIVERSAL_IDENTIFIER,
+ overrides: {
+ application: {
+ universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ defaultRoleUniversalIdentifier: ROLE_UNIVERSAL_IDENTIFIER,
+ displayName: APPLICATION_NAME,
+ description: 'App for testing application preferences',
+ applicationVariables: {
+ PERSONAL_API_KEY: {
+ universalIdentifier: uuidv4(),
+ scope: 'USER',
+ isSecret: true,
+ },
+ LANGUAGE: {
+ universalIdentifier: uuidv4(),
+ scope: 'USER',
+ value: 'en',
+ },
+ WORKSPACE_URL: {
+ universalIdentifier: uuidv4(),
+ value: 'https://example.com',
+ },
+ },
+ packageJsonChecksum: null,
+ yarnLockChecksum: null,
+ },
+ frontComponents: [
+ buildFrontComponentManifest({
+ universalIdentifier: USER_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ componentName: 'UserSettings',
+ }),
+ buildFrontComponentManifest({
+ universalIdentifier:
+ WORKSPACE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ componentName: 'WorkspaceSettings',
+ }),
+ ],
+ settingsMenuItems: [
+ {
+ universalIdentifier: USER_SETTINGS_MENU_ITEM_UNIVERSAL_IDENTIFIER,
+ frontComponentUniversalIdentifier:
+ USER_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ title: 'My settings',
+ icon: 'IconUser',
+ position: 1,
+ scope: 'USER',
+ },
+ {
+ universalIdentifier:
+ WORKSPACE_SETTINGS_MENU_ITEM_UNIVERSAL_IDENTIFIER,
+ frontComponentUniversalIdentifier:
+ WORKSPACE_FRONT_COMPONENT_UNIVERSAL_IDENTIFIER,
+ title: 'Workspace settings',
+ position: 2,
+ },
+ ],
+ },
+ }),
+ expectToFail: false,
+ });
+
+ const { data } = await findOneApplication({
+ input: { universalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER },
+ gqlFields: 'id',
+ expectToFail: false,
+ });
+
+ applicationId = data.findOneApplication.id;
+
+ otherUserApplication = await setupApplicationWithVariable({
+ name: 'Application preferences B',
+ variableKey: 'RECORD_MY_MEETINGS',
+ variableScope: 'USER',
+ });
+ workspaceOnlyApplication = await setupApplicationWithVariable({
+ name: 'Application preferences C',
+ variableKey: 'RECORD_ALL_MEETINGS',
+ });
+ }, 180000);
+
+ afterAll(async () => {
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ });
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier: otherUserApplication.universalIdentifier,
+ });
+ await cleanupApplicationAndAppRegistration({
+ applicationUniversalIdentifier:
+ workspaceOnlyApplication.universalIdentifier,
+ });
+ });
+
+ it('should give a member without the applications permission the user settings and defaults of every application that has some', async () => {
+ const { data } = await myApplicationPreferences({
+ input: {},
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+
+ const testedApplicationIds = [
+ applicationId,
+ otherUserApplication.id,
+ workspaceOnlyApplication.id,
+ ];
+
+ expect(
+ sortByApplicationId(
+ data.myApplicationPreferences.filter((preferences) =>
+ testedApplicationIds.includes(preferences.applicationId),
+ ),
+ ),
+ ).toEqual(
+ sortByApplicationId([
+ {
+ applicationId,
+ settingsMenuItems: [
+ {
+ id: expect.any(String),
+ universalIdentifier: USER_SETTINGS_MENU_ITEM_UNIVERSAL_IDENTIFIER,
+ applicationId,
+ frontComponentId: expect.any(String),
+ title: 'My settings',
+ icon: 'IconUser',
+ position: 1,
+ scope: 'USER',
+ },
+ ],
+ variables: expect.arrayContaining([
+ { key: 'PERSONAL_API_KEY', value: '', isSecret: true },
+ { key: 'LANGUAGE', value: 'en', isSecret: false },
+ ]),
+ },
+ {
+ applicationId: otherUserApplication.id,
+ settingsMenuItems: [],
+ variables: [
+ { key: 'RECORD_MY_MEETINGS', value: '', isSecret: false },
+ ],
+ },
+ ]),
+ );
+
+ expect(
+ findPreferencesOf(data.myApplicationPreferences, applicationId)
+ ?.variables,
+ ).toHaveLength(2);
+ });
+
+ it('should return only the own values, with secrets masked, as soon as they are saved', async () => {
+ await updateMyUserApplicationVariable({
+ input: {
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ key: 'PERSONAL_API_KEY',
+ value: 'jony-key',
+ },
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+ await updateMyUserApplicationVariable({
+ input: {
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ key: 'LANGUAGE',
+ value: 'fr',
+ },
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+ await updateMyUserApplicationVariable({
+ input: {
+ applicationUniversalIdentifier: APPLICATION_UNIVERSAL_IDENTIFIER,
+ key: 'LANGUAGE',
+ value: 'de',
+ },
+ token: APPLE_JANE_ADMIN_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+
+ const { data: jonyData } = await myApplicationPreferences({
+ input: {},
+ token: APPLE_JONY_MEMBER_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+
+ expect(
+ findPreferencesOf(jonyData.myApplicationPreferences, applicationId)
+ ?.variables,
+ ).toEqual(
+ expect.arrayContaining([
+ {
+ key: 'PERSONAL_API_KEY',
+ value: SECRET_APPLICATION_VARIABLE_MASK,
+ isSecret: true,
+ },
+ { key: 'LANGUAGE', value: 'fr', isSecret: false },
+ ]),
+ );
+
+ const { data: janeData } = await myApplicationPreferences({
+ input: {},
+ token: APPLE_JANE_ADMIN_ACCESS_TOKEN,
+ expectToFail: false,
+ });
+
+ expect(
+ findPreferencesOf(janeData.myApplicationPreferences, applicationId)
+ ?.variables,
+ ).toEqual(
+ expect.arrayContaining([
+ { key: 'PERSONAL_API_KEY', value: '', isSecret: true },
+ { key: 'LANGUAGE', value: 'de', isSecret: false },
+ ]),
+ );
+ });
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/successful-manifest-sync-settings-menu-item.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/successful-manifest-sync-settings-menu-item.integration-spec.ts
index 65b9ebf3a48..5b67f3f29c6 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/successful-manifest-sync-settings-menu-item.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/successful-manifest-sync-settings-menu-item.integration-spec.ts
@@ -1,11 +1,11 @@
import { buildBaseManifest } from 'test/integration/metadata/suites/application/utils/build-base-manifest.util';
+import { buildFrontComponentManifest } from 'test/integration/metadata/suites/application/utils/build-front-component-manifest.util';
import { cleanupApplicationAndAppRegistration } from 'test/integration/metadata/suites/application/utils/cleanup-application-and-app-registration.util';
import { findOneApplication } from 'test/integration/metadata/suites/application/utils/find-one-application.util';
import { setupApplicationForSync } from 'test/integration/metadata/suites/application/utils/setup-application-for-sync.util';
import { syncApplication } from 'test/integration/metadata/suites/application/utils/sync-application.util';
-import { uploadApplicationFile } from 'test/integration/metadata/suites/application/utils/upload-application-file.util';
+import { uploadBuiltFrontComponentFile } from 'test/integration/metadata/suites/application/utils/upload-built-front-component-file.util';
import {
- type FrontComponentManifest,
getLegacySettingsMenuItemUniversalIdentifier,
type Manifest,
type SettingsMenuItemManifest,
@@ -28,20 +28,6 @@ type PersistedSettingsMenuItem = {
frontComponentUniversalIdentifier: string;
};
-const buildFrontComponent = (
- universalIdentifier: string,
- componentName: string,
-): FrontComponentManifest => ({
- universalIdentifier,
- name: componentName,
- description: `The ${componentName} page of the application`,
- sourceComponentPath: `src/front-components/${componentName}.tsx`,
- builtComponentPath: `src/front-components/${componentName}.mjs`,
- builtComponentChecksum: `${componentName}-checksum`,
- componentName,
- isHeadless: false,
-});
-
const SYNC_SETTINGS_MENU_ITEM: SettingsMenuItemManifest = {
universalIdentifier: SYNC_SETTINGS_MENU_ITEM_ID,
frontComponentUniversalIdentifier: SYNC_FRONT_COMPONENT_ID,
@@ -68,8 +54,14 @@ const buildManifest = (
roleId: TEST_ROLE_ID,
overrides: {
frontComponents: [
- buildFrontComponent(SYNC_FRONT_COMPONENT_ID, 'SyncSettings'),
- buildFrontComponent(BILLING_FRONT_COMPONENT_ID, 'BillingSettings'),
+ buildFrontComponentManifest({
+ universalIdentifier: SYNC_FRONT_COMPONENT_ID,
+ componentName: 'SyncSettings',
+ }),
+ buildFrontComponentManifest({
+ universalIdentifier: BILLING_FRONT_COMPONENT_ID,
+ componentName: 'BillingSettings',
+ }),
],
settingsMenuItems,
...overrides,
@@ -96,20 +88,6 @@ const findAppSettingsMenuItems = async (): Promise<
[TEST_APP_ID],
);
-// The migration runner refuses to create a front component whose built file is
-// not in storage, so every component an item points at needs one uploaded first.
-const uploadBuiltComponentFile = async (componentName: string) => {
- await uploadApplicationFile({
- applicationUniversalIdentifier: TEST_APP_ID,
- fileFolder: 'BuiltFrontComponent',
- filePath: `src/front-components/${componentName}.mjs`,
- fileBuffer: Buffer.from('dummy built component content'),
- filename: `${componentName}.mjs`,
- contentType: 'application/javascript',
- expectToFail: false,
- });
-};
-
describe('Manifest sync - settings menu items', () => {
// The application, its role and its front components are identical for every
// test, and installing them costs far more than the syncs under test, so they
@@ -126,8 +104,14 @@ describe('Manifest sync - settings menu items', () => {
// multipart upload never resolves.
jest.useRealTimers();
- await uploadBuiltComponentFile('SyncSettings');
- await uploadBuiltComponentFile('BillingSettings');
+ await uploadBuiltFrontComponentFile({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ componentName: 'SyncSettings',
+ });
+ await uploadBuiltFrontComponentFile({
+ applicationUniversalIdentifier: TEST_APP_ID,
+ componentName: 'BillingSettings',
+ });
}, 120000);
beforeEach(async () => {
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/successful-user-application-variable-values.integration-spec.ts b/packages/twenty-server/test/integration/metadata/suites/application/successful-user-application-variable-values.integration-spec.ts
index 252ce230953..5ff1829ce2b 100644
--- a/packages/twenty-server/test/integration/metadata/suites/application/successful-user-application-variable-values.integration-spec.ts
+++ b/packages/twenty-server/test/integration/metadata/suites/application/successful-user-application-variable-values.integration-spec.ts
@@ -213,6 +213,46 @@ describe('User application variable values should succeed', () => {
);
});
+ it('should let an application token set the value of the member it acts for only', async () => {
+ const { data: updateData } = await updateMyUserApplicationVariable({
+ input: {
+ applicationUniversalIdentifier: application.universalIdentifier,
+ key: application.variableKey,
+ value: 'jane-from-app',
+ },
+ token: janeApplicationToken,
+ expectToFail: false,
+ });
+
+ expect(updateData.updateMyUserApplicationVariable).toBe(true);
+
+ const { data } = await myUserApplicationVariables({
+ input: {},
+ token: applicationToken,
+ expectToFail: false,
+ });
+
+ expect(data.myUserApplicationVariables).toEqual(
+ expect.arrayContaining([
+ {
+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JANE,
+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JANE,
+ variables: [{ key: application.variableKey, value: 'jane-from-app' }],
+ },
+ {
+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.JONY,
+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.JONY,
+ variables: [{ key: application.variableKey, value: 'jony' }],
+ },
+ {
+ userWorkspaceId: USER_WORKSPACE_DATA_SEED_IDS.PHIL,
+ workspaceMemberId: WORKSPACE_MEMBER_DATA_SEED_IDS.PHIL,
+ variables: [{ key: application.variableKey, value: '' }],
+ },
+ ]),
+ );
+ });
+
it('should leave the values of another application out of the list', async () => {
await updateMyUserApplicationVariable({
input: {
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/utils/build-front-component-manifest.util.ts b/packages/twenty-server/test/integration/metadata/suites/application/utils/build-front-component-manifest.util.ts
new file mode 100644
index 00000000000..0109358f716
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/utils/build-front-component-manifest.util.ts
@@ -0,0 +1,18 @@
+import { type FrontComponentManifest } from 'twenty-shared/application';
+
+export const buildFrontComponentManifest = ({
+ universalIdentifier,
+ componentName,
+}: {
+ universalIdentifier: string;
+ componentName: string;
+}): FrontComponentManifest => ({
+ universalIdentifier,
+ name: componentName,
+ description: `The ${componentName} page of the application`,
+ sourceComponentPath: `src/front-components/${componentName}.tsx`,
+ builtComponentPath: `src/front-components/${componentName}.mjs`,
+ builtComponentChecksum: `${componentName}-checksum`,
+ componentName,
+ isHeadless: false,
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences-query-factory.util.ts b/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences-query-factory.util.ts
new file mode 100644
index 00000000000..c0b30124f49
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences-query-factory.util.ts
@@ -0,0 +1,34 @@
+import gql from 'graphql-tag';
+import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
+
+const DEFAULT_MY_APPLICATION_PREFERENCES_GQL_FIELDS = `
+ applicationId
+ settingsMenuItems {
+ id
+ universalIdentifier
+ applicationId
+ frontComponentId
+ title
+ icon
+ position
+ scope
+ }
+ variables {
+ key
+ value
+ isSecret
+ }
+`;
+
+export const myApplicationPreferencesQueryFactory = ({
+ gqlFields = DEFAULT_MY_APPLICATION_PREFERENCES_GQL_FIELDS,
+}: PerformMetadataQueryParams<Record<string, never>>) => ({
+ query: gql`
+ query MyApplicationPreferences {
+ myApplicationPreferences {
+ ${gqlFields}
+ }
+ }
+ `,
+ variables: {},
+});
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences.util.ts b/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences.util.ts
new file mode 100644
index 00000000000..744fbcf9c13
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/utils/my-application-preferences.util.ts
@@ -0,0 +1,42 @@
+import { myApplicationPreferencesQueryFactory } from 'test/integration/metadata/suites/application/utils/my-application-preferences-query-factory.util';
+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
+import { type CommonResponseBody } from 'test/integration/metadata/types/common-response-body.type';
+import { type PerformMetadataQueryParams } from 'test/integration/metadata/types/perform-metadata-query.type';
+import { warnIfErrorButNotExpectedToFail } from 'test/integration/metadata/utils/warn-if-error-but-not-expected-to-fail.util';
+import { warnIfNoErrorButExpectedToFail } from 'test/integration/metadata/utils/warn-if-no-error-but-expected-to-fail.util';
+
+import { type ApplicationPreferencesDTO } from 'src/engine/core-modules/application/application-preferences/dtos/application-preferences.dto';
+
+export const myApplicationPreferences = async ({
+ input,
+ gqlFields,
+ expectToFail = false,
+ token,
+}: PerformMetadataQueryParams<Record<string, never>>): CommonResponseBody<{
+ myApplicationPreferences: ApplicationPreferencesDTO[];
+}> => {
+ const graphqlOperation = myApplicationPreferencesQueryFactory({
+ input,
+ gqlFields,
+ });
+
+ const response = await makeMetadataApiRequest(graphqlOperation, token);
+
+ if (expectToFail === true) {
+ warnIfNoErrorButExpectedToFail({
+ response,
+ errorMessage:
+ 'Listing my application preferences should have failed but did not',
+ });
+ }
+
+ if (expectToFail === false) {
+ warnIfErrorButNotExpectedToFail({
+ response,
+ errorMessage:
+ 'Listing my application preferences has failed but should not',
+ });
+ }
+
+ return { data: response.body.data, errors: response.body.errors };
+};
diff --git a/packages/twenty-server/test/integration/metadata/suites/application/utils/upload-built-front-component-file.util.ts b/packages/twenty-server/test/integration/metadata/suites/application/utils/upload-built-front-component-file.util.ts
new file mode 100644
index 00000000000..85968777342
--- /dev/null
+++ b/packages/twenty-server/test/integration/metadata/suites/application/utils/upload-built-front-component-file.util.ts
@@ -0,0 +1,21 @@
+import { uploadApplicationFile } from 'test/integration/metadata/suites/application/utils/upload-application-file.util';
+
+// The migration runner refuses to create a front component whose built file is
+// not in storage, so every component an item points at needs one uploaded first.
+export const uploadBuiltFrontComponentFile = async ({
+ applicationUniversalIdentifier,
+ componentName,
+}: {
+ applicationUniversalIdentifier: string;
+ componentName: string;
+}) => {
+ await uploadApplicationFile({
+ applicationUniversalIdentifier,
+ fileFolder: 'BuiltFrontComponent',
+ filePath: `src/front-components/${componentName}.mjs`,
+ fileBuffer: Buffer.from('dummy built component content'),
+ filename: `${componentName}.mjs`,
+ contentType: 'application/javascript',
+ expectToFail: false,
+ });
+};
diff --git a/packages/twenty-shared/src/types/SettingsPath.ts b/packages/twenty-shared/src/types/SettingsPath.ts
index 838ba4c1fa0..f1711e3861c 100644
--- a/packages/twenty-shared/src/types/SettingsPath.ts
+++ b/packages/twenty-shared/src/types/SettingsPath.ts
@@ -5,6 +5,7 @@ export enum SettingsPath {
Accounts = 'accounts',
AccountDetail = 'accounts/detail/:connectedAccountId',
NativeAccountApp = 'accounts/apps/:nativeAccountAppId',
+ ApplicationPreferences = 'accounts/applications/:applicationId',
NewAccount = 'accounts/new',
AccountsConfiguration = 'accounts/configuration/:connectedAccountId',
AccountsCalendars = 'accounts/calendars',