Skip to content

The open alternative to Salesforce, designed for AI.

Add people to a campaign list with a background job (#27276)

neo773e76221ca603e
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
index 718e5a6f572..ff341b67bb1 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql
@@ -3154,6 +3154,7 @@ type Mutation {
syncMarketplaceCatalog: Boolean!
trackAnalytics(event: String, name: String, properties: JSON, type: AnalyticsType!): Analytics!
transferApplicationRegistrationOwnership(applicationRegistrationId: String!, targetWorkspaceSubdomain: String!): ApplicationRegistration!
+ triggerAddPeopleToMessageListJob(input: TriggerAddPeopleToMessageListJobInput!): TriggerAddPeopleToMessageListJobResult!
triggerInstallApplication(input: TriggerInstallApplicationInput!): TriggerInstallApplicationResult!
triggerInstallApplicationJob(input: TriggerInstallApplicationJobInput!): TriggerInstallApplicationJobResult! @deprecated(reason: "Use triggerInstallApplication instead")
triggerUninstallApplication(input: TriggerUninstallApplicationInput!): TriggerUninstallApplicationResult!
@@ -4474,6 +4475,15 @@ type TransientToken {
transientToken: AuthToken!
}
+input TriggerAddPeopleToMessageListJobInput {
+ messageListId: UUID!
+ personFilter: JSON!
+}
+
+type TriggerAddPeopleToMessageListJobResult {
+ jobId: String!
+}
+
input TriggerInstallApplicationInput {
universalIdentifier: String!
}
diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
index 25484f1f4ed..7c0c067b5a2 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts
@@ -2194,6 +2194,7 @@ export interface Mutation {
syncMarketplaceCatalog: Scalars['Boolean']
trackAnalytics: Analytics
transferApplicationRegistrationOwnership: ApplicationRegistration
+ triggerAddPeopleToMessageListJob: TriggerAddPeopleToMessageListJobResult
triggerInstallApplication: TriggerInstallApplicationResult
/** @deprecated Use triggerInstallApplication instead */
triggerInstallApplicationJob: TriggerInstallApplicationJobResult
@@ -3264,6 +3265,11 @@ export interface TransientToken {
__typename: 'TransientToken'
}
+export interface TriggerAddPeopleToMessageListJobResult {
+ jobId: Scalars['String']
+ __typename: 'TriggerAddPeopleToMessageListJobResult'
+}
+
export interface TriggerInstallApplicationJobResult {
jobId: Scalars['String']
__typename: 'TriggerInstallApplicationJobResult'
@@ -6380,6 +6386,7 @@ export interface MutationGenqlSelection{
syncMarketplaceCatalog?: boolean | number
trackAnalytics?: (AnalyticsGenqlSelection & { __args: {event?: (Scalars['String'] | null), name?: (Scalars['String'] | null), properties?: (Scalars['JSON'] | null), type: AnalyticsType} })
transferApplicationRegistrationOwnership?: (ApplicationRegistrationGenqlSelection & { __args: {applicationRegistrationId: Scalars['String'], targetWorkspaceSubdomain: Scalars['String']} })
+ triggerAddPeopleToMessageListJob?: (TriggerAddPeopleToMessageListJobResultGenqlSelection & { __args: {input: TriggerAddPeopleToMessageListJobInput} })
triggerInstallApplication?: (TriggerInstallApplicationResultGenqlSelection & { __args: {input: TriggerInstallApplicationInput} })
/** @deprecated Use triggerInstallApplication instead */
triggerInstallApplicationJob?: (TriggerInstallApplicationJobResultGenqlSelection & { __args: {input: TriggerInstallApplicationJobInput} })
@@ -7554,6 +7561,14 @@ export interface TransientTokenGenqlSelection{
__scalar?: boolean | number
}
+export interface TriggerAddPeopleToMessageListJobInput {messageListId: Scalars['UUID'],personFilter: Scalars['JSON']}
+
+export interface TriggerAddPeopleToMessageListJobResultGenqlSelection{
+ jobId?: boolean | number
+ __typename?: boolean | number
+ __scalar?: boolean | number
+}
+
export interface TriggerInstallApplicationInput {universalIdentifier: Scalars['String']}
export interface TriggerInstallApplicationJobInput {universalIdentifier: Scalars['String']}
@@ -10647,6 +10662,14 @@ export interface WorkspaceUrlsAndIdGenqlSelection{
+ const TriggerAddPeopleToMessageListJobResult_possibleTypes: string[] = ['TriggerAddPeopleToMessageListJobResult']
+ export const isTriggerAddPeopleToMessageListJobResult = (obj?: { __typename?: any } | null): obj is TriggerAddPeopleToMessageListJobResult => {
+ if (!obj?.__typename) throw new Error('__typename is missing in "isTriggerAddPeopleToMessageListJobResult"')
+ return TriggerAddPeopleToMessageListJobResult_possibleTypes.includes(obj.__typename)
+ }
+
+
+
const TriggerInstallApplicationJobResult_possibleTypes: string[] = ['TriggerInstallApplicationJobResult']
export const isTriggerInstallApplicationJobResult = (obj?: { __typename?: any } | null): obj is TriggerInstallApplicationJobResult => {
if (!obj?.__typename) throw new Error('__typename is missing in "isTriggerInstallApplicationJobResult"')
diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts
index 2eb9ccf2a40..dc7646f3f2b 100644
--- a/packages/twenty-client-sdk/src/metadata/generated/types.ts
+++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts
@@ -91,31 +91,31 @@ export default {
463,
464,
466,
- 488,
490,
492,
- 552,
- 572,
- 579,
+ 494,
+ 554,
+ 574,
581,
- 595,
- 601,
- 602,
+ 583,
+ 597,
+ 603,
604,
- 605,
+ 606,
607,
- 608,
609,
- 612,
- 613,
- 618,
+ 610,
+ 611,
+ 614,
+ 615,
620,
- 623,
- 628,
- 629,
+ 622,
+ 625,
630,
- 633,
- 634
+ 631,
+ 632,
+ 635,
+ 636
],
"types": {
"ActivateWorkspaceInput": {
@@ -143,7 +143,7 @@ export default {
},
"Agent": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -155,7 +155,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isCustom": [
4
@@ -182,7 +182,7 @@ export default {
287
],
"roleId": [
- 488
+ 490
],
"triggers": [
287
@@ -276,7 +276,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"isSubscribed": [
4
@@ -291,7 +291,7 @@ export default {
186
],
"threadId": [
- 488
+ 490
],
"updatedAt": [
186
@@ -302,7 +302,7 @@ export default {
},
"AgentIdInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -310,13 +310,13 @@ export default {
},
"AgentMessage": {
"agentId": [
- 488
+ 490
],
"createdAt": [
186
],
"id": [
- 488
+ 490
],
"parts": [
15
@@ -328,19 +328,19 @@ export default {
1
],
"senderUserWorkspaceId": [
- 488
+ 490
],
"senderWorkspaceMemberId": [
- 488
+ 490
],
"status": [
1
],
"threadId": [
- 488
+ 490
],
"turnId": [
- 488
+ 490
],
"__typename": [
1
@@ -357,7 +357,7 @@ export default {
1
],
"fileId": [
- 488
+ 490
],
"fileMediaType": [
1
@@ -366,10 +366,10 @@ export default {
1
],
"id": [
- 488
+ 490
],
"messageId": [
- 488
+ 490
],
"orderIndex": [
8
@@ -449,7 +449,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"input": [
1
@@ -473,7 +473,7 @@ export default {
17
],
"threadId": [
- 488
+ 490
],
"threadTitle": [
1
@@ -488,13 +488,13 @@ export default {
"AgentTurnStatus": {},
"AggregateChartConfiguration": {
"aggregateFieldMetadataId": [
- 488
+ 490
],
"aggregateOperation": [
19
],
"configurationType": [
- 612
+ 614
],
"description": [
1
@@ -600,7 +600,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -623,7 +623,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -727,13 +727,13 @@ export default {
1
],
"personId": [
- 488
+ 490
],
"role": [
324
],
"workspaceMemberId": [
- 488
+ 490
],
"__typename": [
1
@@ -747,7 +747,7 @@ export default {
57
],
"applicationRegistrationId": [
- 488
+ 490
],
"applicationVariables": [
60
@@ -777,10 +777,10 @@ export default {
261
],
"healthCheckLogicFunctionId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"isUninstallBlockedByOtherWorkspaceInstallations": [
4
@@ -789,7 +789,7 @@ export default {
299
],
"logoFileId": [
- 488
+ 490
],
"logoUrl": [
1
@@ -804,10 +804,10 @@ export default {
1
],
"packageJsonFileId": [
- 488
+ 490
],
"settingsCustomTabFrontComponentId": [
- 488
+ 490
],
"settingsMenuItems": [
450
@@ -822,7 +822,7 @@ export default {
1
],
"yarnLockFileId": [
- 488
+ 490
],
"__typename": [
1
@@ -830,7 +830,7 @@ export default {
},
"ApplicationAuthorization": {
"applicationId": [
- 488
+ 490
],
"applicationName": [
1
@@ -842,7 +842,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"lastAuthorizedAt": [
186
@@ -854,7 +854,7 @@ export default {
1
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -865,7 +865,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -873,7 +873,7 @@ export default {
},
"ApplicationConnectedAccountDTO": {
"applicationId": [
- 488
+ 490
],
"archivedAt": [
186
@@ -888,7 +888,7 @@ export default {
391
],
"connectionProviderId": [
- 488
+ 490
],
"createdAt": [
186
@@ -900,7 +900,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isOwnedByCurrentUser": [
4
@@ -924,7 +924,7 @@ export default {
186
],
"userWorkspaceId": [
- 488
+ 490
],
"visibility": [
1
@@ -941,7 +941,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"logoUrl": [
1
@@ -1035,7 +1035,7 @@ export default {
},
"ApplicationFileCompletionError": {
"fileId": [
- 488
+ 490
],
"message": [
1
@@ -1083,7 +1083,7 @@ export default {
254
],
"fileId": [
- 488
+ 490
],
"filePath": [
1
@@ -1132,7 +1132,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isConfigured": [
4
@@ -1165,7 +1165,7 @@ export default {
1
],
"ownerWorkspaceId": [
- 488
+ 490
],
"sourcePackage": [
1
@@ -1195,7 +1195,7 @@ export default {
8
],
"versionDistribution": [
- 593
+ 595
],
"__typename": [
1
@@ -1203,7 +1203,7 @@ export default {
},
"ApplicationRegistrationSummary": {
"id": [
- 488
+ 490
],
"latestAvailableVersion": [
1
@@ -1226,7 +1226,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isDeprecated": [
4
@@ -1275,7 +1275,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isDeprecated": [
4
@@ -1317,7 +1317,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isValidated": [
4
@@ -1414,7 +1414,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"inviteHash": [
1
@@ -1432,7 +1432,7 @@ export default {
432
],
"workspaceUrls": [
- 635
+ 637
],
"__typename": [
1
@@ -1463,7 +1463,7 @@ export default {
"AxisNameDisplay": {},
"BarChartConfiguration": {
"aggregateFieldMetadataId": [
- 488
+ 490
],
"aggregateOperation": [
19
@@ -1475,7 +1475,7 @@ export default {
1
],
"configurationType": [
- 612
+ 614
],
"description": [
1
@@ -1511,7 +1511,7 @@ export default {
360
],
"primaryAxisGroupByFieldMetadataId": [
- 488
+ 490
],
"primaryAxisGroupBySubFieldName": [
1
@@ -1532,7 +1532,7 @@ export default {
360
],
"secondaryAxisGroupByFieldMetadataId": [
- 488
+ 490
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -1599,7 +1599,7 @@ export default {
287
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -1641,7 +1641,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -1908,7 +1908,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"interval": [
463
@@ -1937,7 +1937,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"quantity": [
11
@@ -2013,7 +2013,7 @@ export default {
},
"CalendarChannel": {
"connectedAccountId": [
- 488
+ 490
],
"contactAutoCreationPolicy": [
109
@@ -2025,7 +2025,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isContactAutoCreationEnabled": [
4
@@ -2064,7 +2064,7 @@ export default {
"CalendarChannelVisibility": {},
"CalendarConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -2072,7 +2072,7 @@ export default {
},
"CallRecordingSummaryConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -2080,7 +2080,7 @@ export default {
},
"CallRecordingTranscriptConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -2157,7 +2157,7 @@ export default {
"ChartNumberFormat": {},
"ChatConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -2190,7 +2190,7 @@ export default {
},
"ChatThreadsConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -2505,10 +2505,10 @@ export default {
},
"CommandMenuItem": {
"applicationId": [
- 488
+ 490
],
"availabilityObjectMetadataId": [
- 488
+ 490
],
"availabilityType": [
136
@@ -2520,7 +2520,7 @@ export default {
1
],
"coreWorkflowVersionId": [
- 488
+ 490
],
"createdAt": [
186
@@ -2532,7 +2532,7 @@ export default {
261
],
"frontComponentId": [
- 488
+ 490
],
"hotKeys": [
1
@@ -2541,7 +2541,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -2553,10 +2553,10 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 488
+ 490
],
"pageLayoutId": [
- 488
+ 490
],
"payload": [
137
@@ -2568,13 +2568,13 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
],
"workflowVersionId": [
- 488
+ 490
],
"__typename": [
1
@@ -2605,7 +2605,7 @@ export default {
},
"ConnectedAccountPublicDTO": {
"applicationId": [
- 488
+ 490
],
"archivedAt": [
186
@@ -2620,7 +2620,7 @@ export default {
391
],
"connectionProviderId": [
- 488
+ 490
],
"createdAt": [
186
@@ -2632,7 +2632,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"lastCredentialsRefreshedAt": [
186
@@ -2653,7 +2653,7 @@ export default {
186
],
"userWorkspaceId": [
- 488
+ 490
],
"visibility": [
1
@@ -2670,13 +2670,13 @@ export default {
1
],
"id": [
- 488
+ 490
],
"provider": [
1
],
"userWorkspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -2729,7 +2729,7 @@ export default {
287
],
"roleId": [
- 488
+ 490
],
"triggers": [
287
@@ -2749,7 +2749,7 @@ export default {
1
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -2757,7 +2757,7 @@ export default {
},
"CreateAppMessageChannelInput": {
"connectedAccountId": [
- 488
+ 490
],
"displayName": [
1
@@ -2882,7 +2882,7 @@ export default {
},
"CreateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 488
+ 490
],
"availabilityType": [
136
@@ -2894,13 +2894,13 @@ export default {
1
],
"coreWorkflowVersionId": [
- 488
+ 490
],
"engineComponentKey": [
220
],
"frontComponentId": [
- 488
+ 490
],
"hotKeys": [
1
@@ -2915,10 +2915,10 @@ export default {
1
],
"navigationTargetObjectMetadataId": [
- 488
+ 490
],
"pageLayoutId": [
- 488
+ 490
],
"payload": [
287
@@ -2930,7 +2930,7 @@ export default {
1
],
"workflowVersionId": [
- 488
+ 490
],
"__typename": [
1
@@ -3016,7 +3016,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"options": [
287
@@ -3048,7 +3048,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -3062,7 +3062,7 @@ export default {
},
"CreateIndexFieldInput": {
"fieldMetadataId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -3079,7 +3079,7 @@ export default {
280
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -3099,7 +3099,7 @@ export default {
287
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -3117,7 +3117,7 @@ export default {
287
],
"universalIdentifier": [
- 488
+ 490
],
"workflowActionTriggerSettings": [
287
@@ -3131,7 +3131,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 488
+ 490
],
"__typename": [
1
@@ -3142,13 +3142,13 @@ export default {
1
],
"folderId": [
- 488
+ 490
],
"icon": [
1
],
"id": [
- 488
+ 490
],
"link": [
1
@@ -3157,25 +3157,25 @@ export default {
1
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
],
"targetObjectMetadataId": [
- 488
+ 490
],
"targetRecordId": [
- 488
+ 490
],
"type": [
344
],
"userWorkspaceId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3254,7 +3254,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"type": [
370
@@ -3268,7 +3268,7 @@ export default {
369
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
@@ -3285,10 +3285,10 @@ export default {
287
],
"objectMetadataId": [
- 488
+ 490
],
"pageLayoutTabId": [
- 488
+ 490
],
"position": [
287
@@ -3297,7 +3297,7 @@ export default {
1
],
"type": [
- 613
+ 615
],
"__typename": [
1
@@ -3305,13 +3305,13 @@ export default {
},
"CreateRecordExportInput": {
"fieldMetadataIds": [
- 488
+ 490
],
"filter": [
287
],
"objectMetadataId": [
- 488
+ 490
],
"orderBy": [
287
@@ -3375,7 +3375,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"label": [
1
@@ -3395,7 +3395,7 @@ export default {
1
],
"visibility": [
- 492
+ 494
],
"__typename": [
1
@@ -3412,7 +3412,7 @@ export default {
80
],
"operationType": [
- 572
+ 574
],
"periodCount": [
8
@@ -3421,7 +3421,7 @@ export default {
1
],
"resourceType": [
- 579
+ 581
],
"spenderId": [
1
@@ -3430,7 +3430,7 @@ export default {
1
],
"unit": [
- 581
+ 583
],
"__typename": [
1
@@ -3441,7 +3441,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 488
+ 490
],
"expression": [
1
@@ -3459,7 +3459,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -3467,7 +3467,7 @@ export default {
},
"CreateViewFieldGroupInput": {
"id": [
- 488
+ 490
],
"isVisible": [
4
@@ -3479,7 +3479,7 @@ export default {
11
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3490,10 +3490,10 @@ export default {
19
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"isVisible": [
4
@@ -3505,10 +3505,10 @@ export default {
11
],
"viewFieldGroupId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3516,19 +3516,19 @@ export default {
},
"CreateViewFilterGroupInput": {
"id": [
- 488
+ 490
],
"logicalOperator": [
- 601
+ 603
],
"parentViewFilterGroupId": [
- 488
+ 490
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3536,19 +3536,19 @@ export default {
},
"CreateViewFilterInput": {
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"operand": [
- 602
+ 604
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -3557,10 +3557,10 @@ export default {
287
],
"viewFilterGroupId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3571,7 +3571,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isVisible": [
4
@@ -3580,7 +3580,7 @@ export default {
11
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3591,13 +3591,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 488
+ 490
],
"calendarFieldMetadataId": [
- 488
+ 490
],
"calendarLayout": [
- 595
+ 597
],
"groupLoadLimit": [
8
@@ -3606,7 +3606,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isCompact": [
4
@@ -3615,25 +3615,25 @@ export default {
19
],
"kanbanAggregateOperationFieldMetadataId": [
- 488
+ 490
],
"kanbanColumnWidth": [
8
],
"key": [
- 604
+ 606
],
"mainGroupByFieldMetadataId": [
- 488
+ 490
],
"name": [
1
],
"objectMetadataId": [
- 488
+ 490
],
"openRecordIn": [
- 605
+ 607
],
"position": [
11
@@ -3642,10 +3642,10 @@ export default {
4
],
"type": [
- 608
+ 610
],
"visibility": [
- 609
+ 611
],
"__typename": [
1
@@ -3653,19 +3653,19 @@ export default {
},
"CreateViewSortInput": {
"direction": [
- 607
+ 609
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"subFieldName": [
1
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -3676,7 +3676,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"operations": [
1
@@ -3712,7 +3712,7 @@ export default {
"DateTime": {},
"DeleteApprovedAccessDomainInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3720,7 +3720,7 @@ export default {
},
"DeleteOneFieldInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3728,7 +3728,7 @@ export default {
},
"DeleteOneIndexInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3736,7 +3736,7 @@ export default {
},
"DeleteOneObjectInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3744,7 +3744,7 @@ export default {
},
"DeleteSso": {
"identityProviderId": [
- 488
+ 490
],
"__typename": [
1
@@ -3752,7 +3752,7 @@ export default {
},
"DeleteSsoInput": {
"identityProviderId": [
- 488
+ 490
],
"__typename": [
1
@@ -3768,7 +3768,7 @@ export default {
},
"DeleteViewFieldGroupInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3776,7 +3776,7 @@ export default {
},
"DeleteViewFieldInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3784,7 +3784,7 @@ export default {
},
"DeleteViewFilterInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3792,7 +3792,7 @@ export default {
},
"DeleteViewGroupInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3800,7 +3800,7 @@ export default {
},
"DeleteViewSortInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3811,7 +3811,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"name": [
263
@@ -3820,7 +3820,7 @@ export default {
1
],
"userWorkspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -3828,7 +3828,7 @@ export default {
},
"DestroyViewFieldGroupInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3836,7 +3836,7 @@ export default {
},
"DestroyViewFieldInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3844,7 +3844,7 @@ export default {
},
"DestroyViewFilterInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3852,7 +3852,7 @@ export default {
},
"DestroyViewGroupInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3860,7 +3860,7 @@ export default {
},
"DestroyViewSortInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -3902,7 +3902,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isCustomDomainEnabled": [
4
@@ -3919,10 +3919,10 @@ export default {
1
],
"id": [
- 488
+ 490
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
@@ -3945,7 +3945,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"memberCount": [
11
@@ -3965,7 +3965,7 @@ export default {
},
"EditSso": {
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -3985,7 +3985,7 @@ export default {
},
"EditSsoInput": {
"id": [
- 488
+ 490
],
"status": [
434
@@ -4022,7 +4022,7 @@ export default {
},
"EmailThreadConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -4036,7 +4036,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"status": [
217
@@ -4045,13 +4045,13 @@ export default {
218
],
"unsubscribeHostnameStatus": [
- 490
+ 492
],
"updatedAt": [
186
],
"verificationRecords": [
- 590
+ 592
],
"verifiedAt": [
186
@@ -4064,7 +4064,7 @@ export default {
"EmailingDomainTenantStatus": {},
"EmailsConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -4330,7 +4330,7 @@ export default {
},
"ExecuteOneLogicFunctionInput": {
"id": [
- 488
+ 490
],
"payload": [
287
@@ -4353,7 +4353,7 @@ export default {
"FeatureFlagKey": {},
"Field": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -4368,7 +4368,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -4401,7 +4401,7 @@ export default {
1
],
"morphId": [
- 488
+ 490
],
"morphRelations": [
410
@@ -4413,7 +4413,7 @@ export default {
346
],
"objectMetadataId": [
- 488
+ 490
],
"options": [
287
@@ -4442,7 +4442,7 @@ export default {
},
"FieldConfiguration": {
"configurationType": [
- 612
+ 614
],
"fieldDisplayMode": [
244
@@ -4491,7 +4491,7 @@ export default {
246
],
"id": [
- 489
+ 491
],
"isActive": [
107
@@ -4506,7 +4506,7 @@ export default {
107
],
"objectMetadataId": [
- 489
+ 491
],
"or": [
246
@@ -4524,16 +4524,16 @@ export default {
4
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"objectMetadataId": [
- 488
+ 490
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -4547,10 +4547,10 @@ export default {
4
],
"fieldMetadataId": [
- 488
+ 490
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -4558,7 +4558,7 @@ export default {
},
"FieldRichTextConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -4566,7 +4566,7 @@ export default {
},
"FieldsConfiguration": {
"configurationType": [
- 612
+ 614
],
"newFieldDefaultVisibility": [
4
@@ -4586,7 +4586,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"path": [
1
@@ -4603,7 +4603,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -4618,7 +4618,7 @@ export default {
186
],
"fileId": [
- 488
+ 490
],
"uploadUrl": [
1
@@ -4632,7 +4632,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"path": [
1
@@ -4649,7 +4649,7 @@ export default {
},
"FilesConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -4657,7 +4657,7 @@ export default {
},
"FindAvailableSSOIDP": {
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -4672,7 +4672,7 @@ export default {
270
],
"workspace": [
- 632
+ 634
],
"__typename": [
1
@@ -4692,7 +4692,7 @@ export default {
1
],
"unsubscribeTopicId": [
- 488
+ 490
],
"__typename": [
1
@@ -4700,7 +4700,7 @@ export default {
},
"FormFieldConfiguration": {
"configurationType": [
- 612
+ 614
],
"fieldMetadataId": [
1
@@ -4714,7 +4714,7 @@ export default {
1
],
"applicationId": [
- 488
+ 490
],
"applicationName": [
1
@@ -4744,7 +4744,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isHeadless": [
4
@@ -4756,7 +4756,7 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -4770,13 +4770,13 @@ export default {
},
"FrontComponentConfiguration": {
"configurationType": [
- 612
+ 614
],
"frontComponentId": [
- 488
+ 490
],
"headerCommandMenuItemUniversalIdentifiers": [
- 488
+ 490
],
"__typename": [
1
@@ -4795,7 +4795,7 @@ export default {
},
"GetApiKeyInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -4806,7 +4806,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"type": [
1
@@ -4817,7 +4817,7 @@ export default {
},
"GetAuthorizationUrlForSSOInput": {
"identityProviderId": [
- 488
+ 490
],
"workspaceInviteHash": [
1
@@ -4828,7 +4828,7 @@ export default {
},
"GrantApplicationCapabilitiesInput": {
"applicationId": [
- 488
+ 490
],
"capabilities": [
1
@@ -4858,7 +4858,7 @@ export default {
"IdentityProviderType": {},
"IframeConfiguration": {
"configurationType": [
- 612
+ 614
],
"url": [
1
@@ -4917,7 +4917,7 @@ export default {
65
],
"workspace": [
- 636
+ 638
],
"__typename": [
1
@@ -4928,7 +4928,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"indexFieldMetadataList": [
278
@@ -4971,10 +4971,10 @@ export default {
186
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"order": [
11
@@ -4994,7 +4994,7 @@ export default {
279
],
"id": [
- 489
+ 491
],
"isCustom": [
107
@@ -5009,7 +5009,7 @@ export default {
"IndexType": {},
"IngestAppMessagesInput": {
"messageChannelId": [
- 488
+ 490
],
"messages": [
34
@@ -5031,10 +5031,10 @@ export default {
1
],
"messageId": [
- 488
+ 490
],
"messageThreadId": [
- 488
+ 490
],
"__typename": [
1
@@ -5101,7 +5101,7 @@ export default {
},
"LineChartConfiguration": {
"aggregateFieldMetadataId": [
- 488
+ 490
],
"aggregateOperation": [
19
@@ -5113,7 +5113,7 @@ export default {
1
],
"configurationType": [
- 612
+ 614
],
"description": [
1
@@ -5146,7 +5146,7 @@ export default {
360
],
"primaryAxisGroupByFieldMetadataId": [
- 488
+ 490
],
"primaryAxisGroupBySubFieldName": [
1
@@ -5167,7 +5167,7 @@ export default {
360
],
"secondaryAxisGroupByFieldMetadataId": [
- 488
+ 490
],
"secondaryAxisGroupBySubFieldName": [
1
@@ -5219,7 +5219,7 @@ export default {
287
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -5266,7 +5266,7 @@ export default {
},
"ListAppMessageChannelsInput": {
"connectedAccountId": [
- 488
+ 490
],
"__typename": [
1
@@ -5285,7 +5285,7 @@ export default {
},
"LogicFunction": {
"applicationId": [
- 488
+ 490
],
"canRunOnDemand": [
4
@@ -5312,7 +5312,7 @@ export default {
287
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -5330,7 +5330,7 @@ export default {
287
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -5380,7 +5380,7 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"__typename": [
1
@@ -5388,19 +5388,19 @@ export default {
},
"LogicFunctionLogsInput": {
"applicationId": [
- 488
+ 490
],
"applicationUniversalIdentifier": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"name": [
1
],
"universalIdentifier": [
- 488
+ 490
],
"__typename": [
1
@@ -5612,7 +5612,7 @@ export default {
},
"MessageCampaignBodyConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -5620,7 +5620,7 @@ export default {
},
"MessageCampaignDetailsConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -5631,7 +5631,7 @@ export default {
139
],
"connectedAccountId": [
- 488
+ 490
],
"contactAutoCreationPolicy": [
315
@@ -5652,7 +5652,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isContactAutoCreationEnabled": [
4
@@ -5711,7 +5711,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isSentFolder": [
4
@@ -5720,7 +5720,7 @@ export default {
4
],
"messageChannelId": [
- 488
+ 490
],
"name": [
1
@@ -5749,7 +5749,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"reason": [
327
@@ -5758,7 +5758,7 @@ export default {
328
],
"unsubscribeTopicId": [
- 488
+ 490
],
"__typename": [
1
@@ -5810,7 +5810,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"property": [
1
@@ -5819,7 +5819,7 @@ export default {
334
],
"recordId": [
- 488
+ 490
],
"sourceValue": [
1
@@ -5848,13 +5848,13 @@ export default {
"MetadataTranslationProvenance": {},
"MetadataTranslationsInput": {
"fieldMetadataId": [
- 488
+ 490
],
"locale": [
1
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -5883,7 +5883,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -5912,16 +5912,16 @@ export default {
},
"MinimalView": {
"id": [
- 488
+ 490
],
"key": [
- 604
+ 606
],
"objectMetadataId": [
- 488
+ 490
],
"type": [
- 608
+ 610
],
"__typename": [
1
@@ -5933,13 +5933,13 @@ export default {
457,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
],
"activateWorkspace": [
- 617,
+ 619,
{
"data": [
0,
@@ -5960,10 +5960,10 @@ export default {
4,
{
"assigneeWorkspaceMemberId": [
- 488
+ 490
],
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -5972,11 +5972,11 @@ export default {
4,
{
"agentId": [
- 488,
+ 490,
"UUID!"
],
"roleId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -5985,11 +5985,11 @@ export default {
4,
{
"apiKeyId": [
- 488,
+ 490,
"UUID!"
],
"roleId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6082,7 +6082,7 @@ export default {
54,
{
"fileId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6095,7 +6095,7 @@ export default {
"String!"
],
"fileIds": [
- 488,
+ 490,
"[UUID!]!"
]
}
@@ -6299,7 +6299,7 @@ export default {
}
],
"createManyViewFieldGroups": [
- 598,
+ 600,
{
"inputs": [
176,
@@ -6308,7 +6308,7 @@ export default {
}
],
"createManyViewFields": [
- 597,
+ 599,
{
"inputs": [
177,
@@ -6317,7 +6317,7 @@ export default {
}
],
"createManyViewGroups": [
- 603,
+ 605,
{
"inputs": [
180,
@@ -6377,14 +6377,14 @@ export default {
"String!"
],
"objectMetadataId": [
- 488,
+ 490,
"UUID!"
],
"properties": [
287
],
"recordId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6526,7 +6526,7 @@ export default {
}
],
"createUnsubscribeTopic": [
- 491,
+ 493,
{
"input": [
173,
@@ -6535,7 +6535,7 @@ export default {
}
],
"createUsageLimit": [
- 570,
+ 572,
{
"input": [
174,
@@ -6544,7 +6544,7 @@ export default {
}
],
"createValidationRule": [
- 589,
+ 591,
{
"input": [
175,
@@ -6553,7 +6553,7 @@ export default {
}
],
"createView": [
- 594,
+ 596,
{
"input": [
181,
@@ -6562,7 +6562,7 @@ export default {
}
],
"createViewField": [
- 597,
+ 599,
{
"input": [
177,
@@ -6571,7 +6571,7 @@ export default {
}
],
"createViewFieldGroup": [
- 598,
+ 600,
{
"input": [
176,
@@ -6580,7 +6580,7 @@ export default {
}
],
"createViewFilter": [
- 599,
+ 601,
{
"input": [
179,
@@ -6589,7 +6589,7 @@ export default {
}
],
"createViewFilterGroup": [
- 600,
+ 602,
{
"input": [
178,
@@ -6598,7 +6598,7 @@ export default {
}
],
"createViewGroup": [
- 603,
+ 605,
{
"input": [
180,
@@ -6607,7 +6607,7 @@ export default {
}
],
"createViewSort": [
- 606,
+ 608,
{
"input": [
182,
@@ -6616,7 +6616,7 @@ export default {
}
],
"createWebhook": [
- 610,
+ 612,
{
"input": [
183,
@@ -6628,7 +6628,7 @@ export default {
457,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6649,7 +6649,7 @@ export default {
314,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6676,7 +6676,7 @@ export default {
135,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6685,19 +6685,19 @@ export default {
139,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
],
"deleteCurrentWorkspace": [
- 617
+ 619
],
"deleteEmailGroupChannel": [
314,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6715,7 +6715,7 @@ export default {
261,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6724,7 +6724,7 @@ export default {
343,
{
"ids": [
- 488,
+ 490,
"[UUID!]!"
]
}
@@ -6733,7 +6733,7 @@ export default {
4,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6742,7 +6742,7 @@ export default {
343,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6796,7 +6796,7 @@ export default {
1,
{
"roleId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6814,7 +6814,7 @@ export default {
4,
{
"messageId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6832,7 +6832,7 @@ export default {
457,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6841,7 +6841,7 @@ export default {
193,
{
"twoFactorAuthenticationMethodId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6859,16 +6859,16 @@ export default {
4,
{
"usageLimitId": [
- 488,
+ 490,
"UUID!"
]
}
],
"deleteUser": [
- 583
+ 585
],
"deleteUserFromWorkspace": [
- 586,
+ 588,
{
"workspaceMemberIdToDelete": [
1,
@@ -6877,10 +6877,10 @@ export default {
}
],
"deleteValidationRule": [
- 589,
+ 591,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -6895,7 +6895,7 @@ export default {
}
],
"deleteViewField": [
- 597,
+ 599,
{
"input": [
195,
@@ -6904,7 +6904,7 @@ export default {
}
],
"deleteViewFieldGroup": [
- 598,
+ 600,
{
"input": [
194,
@@ -6913,7 +6913,7 @@ export default {
}
],
"deleteViewFilter": [
- 599,
+ 601,
{
"input": [
196,
@@ -6931,7 +6931,7 @@ export default {
}
],
"deleteViewGroup": [
- 603,
+ 605,
{
"input": [
197,
@@ -6949,10 +6949,10 @@ export default {
}
],
"deleteWebhook": [
- 610,
+ 612,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7003,7 +7003,7 @@ export default {
}
],
"destroyViewField": [
- 597,
+ 599,
{
"input": [
201,
@@ -7012,7 +7012,7 @@ export default {
}
],
"destroyViewFieldGroup": [
- 598,
+ 600,
{
"input": [
200,
@@ -7021,7 +7021,7 @@ export default {
}
],
"destroyViewFilter": [
- 599,
+ 601,
{
"input": [
202,
@@ -7039,7 +7039,7 @@ export default {
}
],
"destroyViewGroup": [
- 603,
+ 605,
{
"input": [
203,
@@ -7060,7 +7060,7 @@ export default {
139,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7069,7 +7069,7 @@ export default {
208,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7078,7 +7078,7 @@ export default {
209,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7103,7 +7103,7 @@ export default {
"String!"
],
"workspaceId": [
- 488
+ 490
]
}
],
@@ -7129,7 +7129,7 @@ export default {
}
],
"enrichWorkspaceCompany": [
- 621
+ 623
],
"executeOneLogicFunction": [
301,
@@ -7144,7 +7144,7 @@ export default {
30,
{
"apiKeyId": [
- 488,
+ 490,
"UUID!"
],
"expiresAt": [
@@ -7157,7 +7157,7 @@ export default {
59,
{
"applicationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7169,13 +7169,13 @@ export default {
473
],
"generateTwoFactorAuthenticationRecoveryCode": [
- 485,
+ 487,
{
"otp": [
1
],
"userId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7223,7 +7223,7 @@ export default {
}
],
"getAuthTokensFromTwoFactorAuthenticationRecoveryCode": [
- 486,
+ 488,
{
"captchaToken": [
1
@@ -7293,11 +7293,11 @@ export default {
275,
{
"userId": [
- 488,
+ 490,
"UUID!"
],
"workspaceId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7383,7 +7383,7 @@ export default {
4,
{
"agentId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7441,7 +7441,7 @@ export default {
135,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7477,7 +7477,7 @@ export default {
468,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7489,7 +7489,7 @@ export default {
1
],
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7510,7 +7510,7 @@ export default {
4,
{
"applicationAuthorizationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7519,7 +7519,7 @@ export default {
4,
{
"userId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7528,7 +7528,7 @@ export default {
4,
{
"userSessionId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7555,7 +7555,7 @@ export default {
52,
{
"applicationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7572,7 +7572,7 @@ export default {
"String!"
],
"id": [
- 488
+ 490
]
}
],
@@ -7587,11 +7587,11 @@ export default {
"[FileAttachmentInput!]"
],
"mentionedWorkspaceMemberIds": [
- 488,
+ 490,
"[UUID!]"
],
"messageId": [
- 488,
+ 490,
"UUID!"
],
"modelId": [
@@ -7602,7 +7602,7 @@ export default {
"String!"
],
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7633,7 +7633,7 @@ export default {
"[String!]!"
],
"roleId": [
- 488
+ 490
]
}
],
@@ -7793,7 +7793,7 @@ export default {
1
],
"workspaceId": [
- 488
+ 490
],
"workspaceInviteHash": [
1
@@ -7816,7 +7816,7 @@ export default {
121,
{
"connectedAccountId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7836,7 +7836,7 @@ export default {
4,
{
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -7851,7 +7851,7 @@ export default {
105
],
"syncApplication": [
- 631,
+ 633,
{
"dryRun": [
4
@@ -7899,47 +7899,56 @@ export default {
]
}
],
- "triggerInstallApplication": [
- 477,
+ "triggerAddPeopleToMessageListJob": [
+ 475,
{
"input": [
474,
+ "TriggerAddPeopleToMessageListJobInput!"
+ ]
+ }
+ ],
+ "triggerInstallApplication": [
+ 479,
+ {
+ "input": [
+ 476,
"TriggerInstallApplicationInput!"
]
}
],
"triggerInstallApplicationJob": [
- 476,
+ 478,
{
"input": [
- 475,
+ 477,
"TriggerInstallApplicationJobInput!"
]
}
],
"triggerUninstallApplication": [
- 481,
+ 483,
{
"input": [
- 478,
+ 480,
"TriggerUninstallApplicationInput!"
]
}
],
"triggerUninstallApplicationJob": [
- 480,
+ 482,
{
"input": [
- 479,
+ 481,
"TriggerUninstallApplicationJobInput!"
]
}
],
"triggerUpgradeApplication": [
- 483,
+ 485,
{
"input": [
- 482,
+ 484,
"TriggerUpgradeApplicationInput!"
]
}
@@ -7964,7 +7973,7 @@ export default {
186
],
"threadIds": [
- 488,
+ 490,
"[UUID!]!"
]
}
@@ -7973,7 +7982,7 @@ export default {
28,
{
"input": [
- 494,
+ 496,
"UpdateApiKeyInput!"
]
}
@@ -7982,7 +7991,7 @@ export default {
314,
{
"input": [
- 495,
+ 497,
"UpdateAppMessageChannelInput!"
]
}
@@ -7991,11 +8000,11 @@ export default {
36,
{
"id": [
- 488,
+ 490,
"UUID!"
],
"input": [
- 496,
+ 498,
"UpdateApplicationInput!"
]
}
@@ -8004,7 +8013,7 @@ export default {
54,
{
"input": [
- 497,
+ 499,
"UpdateApplicationRegistrationInput!"
]
}
@@ -8013,7 +8022,7 @@ export default {
58,
{
"input": [
- 499,
+ 501,
"UpdateApplicationRegistrationVariableInput!"
]
}
@@ -8022,7 +8031,7 @@ export default {
108,
{
"input": [
- 501,
+ 503,
"UpdateCalendarChannelInput!"
]
}
@@ -8031,7 +8040,7 @@ export default {
135,
{
"input": [
- 503,
+ 505,
"UpdateCommandMenuItemInput!"
]
}
@@ -8040,7 +8049,7 @@ export default {
314,
{
"input": [
- 504,
+ 506,
"UpdateEmailGroupChannelInput!"
]
}
@@ -8049,7 +8058,7 @@ export default {
261,
{
"input": [
- 506,
+ 508,
"UpdateFrontComponentInput!"
]
}
@@ -8058,7 +8067,7 @@ export default {
239,
{
"input": [
- 508,
+ 510,
"UpdateLabPublicFeatureFlagInput!"
]
}
@@ -8067,7 +8076,7 @@ export default {
343,
{
"inputs": [
- 519,
+ 521,
"[UpdateOneNavigationMenuItemInput!]!"
]
}
@@ -8076,16 +8085,16 @@ export default {
346,
{
"inputs": [
- 520,
+ 522,
"[UpdateOneObjectInput!]!"
]
}
],
"updateManyViewGroups": [
- 603,
+ 605,
{
"inputs": [
- 542,
+ 544,
"[UpdateViewGroupInput!]!"
]
}
@@ -8094,7 +8103,7 @@ export default {
314,
{
"input": [
- 511,
+ 513,
"UpdateMessageChannelInput!"
]
}
@@ -8103,7 +8112,7 @@ export default {
321,
{
"input": [
- 513,
+ 515,
"UpdateMessageFolderInput!"
]
}
@@ -8112,7 +8121,7 @@ export default {
321,
{
"input": [
- 515,
+ 517,
"UpdateMessageFoldersInput!"
]
}
@@ -8138,7 +8147,7 @@ export default {
343,
{
"input": [
- 519,
+ 521,
"UpdateOneNavigationMenuItemInput!"
]
}
@@ -8147,7 +8156,7 @@ export default {
3,
{
"input": [
- 493,
+ 495,
"UpdateAgentInput!"
]
}
@@ -8156,7 +8165,7 @@ export default {
4,
{
"applicationId": [
- 488
+ 490
],
"key": [
1,
@@ -8172,7 +8181,7 @@ export default {
241,
{
"input": [
- 518,
+ 520,
"UpdateOneFieldMetadataInput!"
]
}
@@ -8181,7 +8190,7 @@ export default {
4,
{
"input": [
- 509,
+ 511,
"UpdateLogicFunctionFromSourceInput!"
]
}
@@ -8190,7 +8199,7 @@ export default {
346,
{
"input": [
- 520,
+ 522,
"UpdateOneObjectInput!"
]
}
@@ -8199,7 +8208,7 @@ export default {
417,
{
"updateRoleInput": [
- 527,
+ 529,
"UpdateRoleInput!"
]
}
@@ -8212,7 +8221,7 @@ export default {
"String!"
],
"input": [
- 521,
+ 523,
"UpdatePageLayoutInput!"
]
}
@@ -8225,7 +8234,7 @@ export default {
"String!"
],
"input": [
- 522,
+ 524,
"UpdatePageLayoutTabInput!"
]
}
@@ -8238,7 +8247,7 @@ export default {
"String!"
],
"input": [
- 524,
+ 526,
"UpdatePageLayoutWidgetInput!"
]
}
@@ -8251,7 +8260,7 @@ export default {
"String!"
],
"input": [
- 526,
+ 528,
"UpdatePageLayoutWithTabsInput!"
]
}
@@ -8273,7 +8282,7 @@ export default {
457,
{
"input": [
- 529,
+ 531,
"UpdateSkillInput!"
]
}
@@ -8282,25 +8291,25 @@ export default {
468,
{
"input": [
- 530,
+ 532,
"UpdateTimelineActivityTypeInput!"
]
}
],
"updateUnsubscribeTopic": [
- 491,
+ 493,
{
"input": [
- 531,
+ 533,
"UpdateUnsubscribeTopicInput!"
]
}
],
"updateUsageLimit": [
- 570,
+ 572,
{
"input": [
- 532,
+ 534,
"UpdateUsageLimitInput!"
]
}
@@ -8318,121 +8327,121 @@ export default {
}
],
"updateValidationRule": [
- 589,
+ 591,
{
"input": [
- 533,
+ 535,
"UpdateValidationRuleInput!"
]
}
],
"updateView": [
- 594,
+ 596,
{
"id": [
1,
"String!"
],
"input": [
- 544,
+ 546,
"UpdateViewInput!"
]
}
],
"updateViewField": [
- 597,
+ 599,
{
"input": [
- 537,
+ 539,
"UpdateViewFieldInput!"
]
}
],
"updateViewFieldGroup": [
- 598,
+ 600,
{
"input": [
- 535,
+ 537,
"UpdateViewFieldGroupInput!"
]
}
],
"updateViewFilter": [
- 599,
+ 601,
{
"input": [
- 540,
+ 542,
"UpdateViewFilterInput!"
]
}
],
"updateViewFilterGroup": [
- 600,
+ 602,
{
"id": [
1,
"String!"
],
"input": [
- 539,
+ 541,
"UpdateViewFilterGroupInput!"
]
}
],
"updateViewGroup": [
- 603,
+ 605,
{
"input": [
- 542,
+ 544,
"UpdateViewGroupInput!"
]
}
],
"updateViewSort": [
- 606,
+ 608,
{
"input": [
- 545,
+ 547,
"UpdateViewSortInput!"
]
}
],
"updateWebhook": [
- 610,
+ 612,
{
"input": [
- 547,
+ 549,
"UpdateWebhookInput!"
]
}
],
"updateWorkspace": [
- 617,
+ 619,
{
"data": [
- 550,
+ 552,
"UpdateWorkspaceInput!"
]
}
],
"updateWorkspaceAllowedIframeOrigins": [
- 617,
+ 619,
{
"data": [
- 549,
+ 551,
"UpdateWorkspaceAllowedIframeOriginsInput!"
]
}
],
"updateWorkspaceMemberRole": [
- 626,
+ 628,
{
"roleId": [
- 488,
+ 490,
"UUID!"
],
"workspaceMemberId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -8441,7 +8450,7 @@ export default {
4,
{
"input": [
- 551,
+ 553,
"UpdateWorkspaceMemberSettingsInput!"
]
}
@@ -8463,7 +8472,7 @@ export default {
54,
{
"file": [
- 552,
+ 554,
"Upload!"
],
"universalIdentifier": [
@@ -8479,7 +8488,7 @@ export default {
"String!"
],
"file": [
- 552,
+ 554,
"Upload!"
],
"fileFolder": [
@@ -8500,7 +8509,7 @@ export default {
"String!"
],
"file": [
- 552,
+ 554,
"Upload!"
]
}
@@ -8509,7 +8518,7 @@ export default {
256,
{
"file": [
- 552,
+ 554,
"Upload!"
],
"workspaceId": [
@@ -8522,7 +8531,7 @@ export default {
256,
{
"file": [
- 552,
+ 554,
"Upload!"
]
}
@@ -8531,7 +8540,7 @@ export default {
256,
{
"file": [
- 552,
+ 554,
"Upload!"
]
}
@@ -8540,16 +8549,16 @@ export default {
248,
{
"upsertFieldPermissionsInput": [
- 553,
+ 555,
"UpsertFieldPermissionsInput!"
]
}
],
"upsertFieldsWidget": [
- 594,
+ 596,
{
"input": [
- 556,
+ 558,
"UpsertFieldsWidgetInput!"
]
}
@@ -8558,7 +8567,7 @@ export default {
354,
{
"upsertObjectPermissionsInput": [
- 557,
+ 559,
"UpsertObjectPermissionsInput!"
]
}
@@ -8567,25 +8576,25 @@ export default {
418,
{
"upsertPermissionFlagsInput": [
- 558,
+ 560,
"UpsertPermissionFlagsInput!"
]
}
],
"upsertRowLevelPermissionPredicates": [
- 560,
+ 562,
{
"input": [
- 559,
+ 561,
"UpsertRowLevelPermissionPredicatesInput!"
]
}
],
"upsertViewWidget": [
- 594,
+ 596,
{
"input": [
- 561,
+ 563,
"UpsertViewWidgetInput!"
]
}
@@ -8594,13 +8603,13 @@ export default {
62,
{
"input": [
- 587,
+ 589,
"ValidateApprovedAccessDomainInput!"
]
}
],
"verifyEmailAndGetLoginToken": [
- 591,
+ 593,
{
"captchaToken": [
1
@@ -8645,7 +8654,7 @@ export default {
}
],
"verifyTwoFactorAuthenticationMethodForAuthenticatedUser": [
- 592,
+ 594,
{
"otp": [
1,
@@ -8670,7 +8679,7 @@ export default {
},
"NavigationMenuItem": {
"applicationId": [
- 488
+ 490
],
"color": [
1
@@ -8679,13 +8688,13 @@ export default {
186
],
"folderId": [
- 488
+ 490
],
"icon": [
1
],
"id": [
- 488
+ 490
],
"link": [
1
@@ -8694,16 +8703,16 @@ export default {
1
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
],
"targetObjectMetadataId": [
- 488
+ 490
],
"targetRecordId": [
- 488
+ 490
],
"targetRecordIdentifier": [
397
@@ -8715,10 +8724,10 @@ export default {
186
],
"userWorkspaceId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -8727,7 +8736,7 @@ export default {
"NavigationMenuItemType": {},
"NotesConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -8735,7 +8744,7 @@ export default {
},
"Object": {
"applicationId": [
- 488
+ 490
],
"color": [
1
@@ -8769,10 +8778,10 @@ export default {
1
],
"id": [
- 488
+ 490
],
"imageIdentifierFieldMetadataId": [
- 488
+ 490
],
"indexMetadataList": [
276
@@ -8815,7 +8824,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 488
+ 490
],
"labelPlural": [
1
@@ -8836,7 +8845,7 @@ export default {
331
],
"readabilityParentFieldUniversalIdentifiers": [
- 488
+ 490
],
"searchFieldMetadataList": [
436
@@ -8898,7 +8907,7 @@ export default {
350
],
"id": [
- 489
+ 491
],
"isActive": [
107
@@ -8925,7 +8934,7 @@ export default {
350
],
"universalIdentifier": [
- 489
+ 491
],
"__typename": [
1
@@ -8944,7 +8953,7 @@ export default {
},
"ObjectMetadataCommandMenuItemPayload": {
"objectMetadataItemId": [
- 488
+ 490
],
"__typename": [
1
@@ -8965,7 +8974,7 @@ export default {
4
],
"objectMetadataId": [
- 488
+ 490
],
"restrictedFields": [
287
@@ -8994,7 +9003,7 @@ export default {
4
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -9104,19 +9113,19 @@ export default {
},
"PageLayout": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
],
"defaultTabToFocusOnMobileAndSidePanelId": [
- 488
+ 490
],
"deletedAt": [
186
],
"id": [
- 488
+ 490
],
"isFirstTabPinned": [
4
@@ -9128,7 +9137,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"tabs": [
368
@@ -9137,7 +9146,7 @@ export default {
370
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -9148,7 +9157,7 @@ export default {
},
"PageLayoutTab": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -9160,7 +9169,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -9175,7 +9184,7 @@ export default {
369
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
@@ -9184,7 +9193,7 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -9200,7 +9209,7 @@ export default {
"PageLayoutType": {},
"PageLayoutWidget": {
"applicationId": [
- 488
+ 490
],
"conditionalAvailabilityExpression": [
1
@@ -9209,7 +9218,7 @@ export default {
287
],
"configuration": [
- 611
+ 613
],
"createdAt": [
186
@@ -9221,7 +9230,7 @@ export default {
269
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -9233,10 +9242,10 @@ export default {
4
],
"objectMetadataId": [
- 488
+ 490
],
"pageLayoutTabId": [
- 488
+ 490
],
"position": [
374
@@ -9245,10 +9254,10 @@ export default {
1
],
"type": [
- 613
+ 615
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -9324,7 +9333,7 @@ export default {
},
"PermissionFlag": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -9336,7 +9345,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"key": [
1
@@ -9348,7 +9357,7 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -9360,7 +9369,7 @@ export default {
"PermissionFlagType": {},
"PieChartConfiguration": {
"aggregateFieldMetadataId": [
- 488
+ 490
],
"aggregateOperation": [
19
@@ -9369,7 +9378,7 @@ export default {
1
],
"configurationType": [
- 612
+ 614
],
"dateGranularity": [
360
@@ -9390,7 +9399,7 @@ export default {
8
],
"groupByFieldMetadataId": [
- 488
+ 490
],
"groupBySubFieldName": [
1
@@ -9448,7 +9457,7 @@ export default {
287
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -9501,7 +9510,7 @@ export default {
},
"PublicApplicationRegistration": {
"id": [
- 488
+ 490
],
"logoUrl": [
1
@@ -9538,7 +9547,7 @@ export default {
},
"PublicDomain": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -9547,7 +9556,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isValidated": [
4
@@ -9609,13 +9618,13 @@ export default {
1
],
"id": [
- 488
+ 490
],
"logo": [
1
],
"workspaceUrls": [
- 635
+ 637
],
"__typename": [
1
@@ -9626,7 +9635,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"logo": [
1
@@ -9643,7 +9652,7 @@ export default {
16,
{
"agentId": [
- 488,
+ 490,
"UUID!"
],
"limit": [
@@ -9708,7 +9717,7 @@ export default {
39,
{
"applicationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9717,7 +9726,7 @@ export default {
40,
{
"applicationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9744,7 +9753,7 @@ export default {
435,
{
"applicationId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9770,10 +9779,10 @@ export default {
}
],
"callRecordingIdForCalendarEvent": [
- 488,
+ 490,
{
"calendarEventId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9782,7 +9791,7 @@ export default {
14,
{
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9791,7 +9800,7 @@ export default {
124,
{
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9800,7 +9809,7 @@ export default {
9,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9818,7 +9827,7 @@ export default {
}
],
"checkWorkspaceInviteHashIsValid": [
- 625,
+ 627,
{
"inviteHash": [
1,
@@ -9839,7 +9848,7 @@ export default {
135,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9848,16 +9857,16 @@ export default {
135
],
"currentUser": [
- 583
+ 585
],
"currentUserApplicationAuthorizations": [
37
],
"currentUserSessions": [
- 585
+ 587
],
"currentWorkspace": [
- 617
+ 619
],
"enterpriseCheckoutSession": [
1,
@@ -9891,7 +9900,7 @@ export default {
42,
{
"universalIdentifier": [
- 488,
+ 490,
"UUID!"
]
}
@@ -9900,7 +9909,7 @@ export default {
241,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10020,10 +10029,10 @@ export default {
36,
{
"id": [
- 488
+ 490
],
"universalIdentifier": [
- 488
+ 490
]
}
],
@@ -10064,10 +10073,10 @@ export default {
}
],
"findWorkspaceAiStats": [
- 619
+ 621
],
"findWorkspaceFromInviteHash": [
- 617,
+ 619,
{
"inviteHash": [
1,
@@ -10076,13 +10085,13 @@ export default {
}
],
"findWorkspaceInvitations": [
- 624
+ 626
],
"frontComponent": [
261,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10144,7 +10153,7 @@ export default {
140,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10244,7 +10253,7 @@ export default {
393,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10256,7 +10265,7 @@ export default {
417,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10280,15 +10289,15 @@ export default {
}
],
"getUsageAnalytics": [
- 567,
+ 569,
{
"input": [
- 568
+ 570
]
}
],
"getView": [
- 594,
+ 596,
{
"id": [
1,
@@ -10297,7 +10306,7 @@ export default {
}
],
"getViewField": [
- 597,
+ 599,
{
"id": [
1,
@@ -10306,7 +10315,7 @@ export default {
}
],
"getViewFieldGroup": [
- 598,
+ 600,
{
"id": [
1,
@@ -10315,7 +10324,7 @@ export default {
}
],
"getViewFieldGroups": [
- 598,
+ 600,
{
"viewId": [
1,
@@ -10324,7 +10333,7 @@ export default {
}
],
"getViewFields": [
- 597,
+ 599,
{
"viewId": [
1,
@@ -10333,7 +10342,7 @@ export default {
}
],
"getViewFilter": [
- 599,
+ 601,
{
"id": [
1,
@@ -10342,7 +10351,7 @@ export default {
}
],
"getViewFilterGroup": [
- 600,
+ 602,
{
"id": [
1,
@@ -10351,7 +10360,7 @@ export default {
}
],
"getViewFilterGroups": [
- 600,
+ 602,
{
"viewId": [
1
@@ -10359,7 +10368,7 @@ export default {
}
],
"getViewFilters": [
- 599,
+ 601,
{
"viewId": [
1
@@ -10367,7 +10376,7 @@ export default {
}
],
"getViewGroup": [
- 603,
+ 605,
{
"id": [
1,
@@ -10376,7 +10385,7 @@ export default {
}
],
"getViewGroups": [
- 603,
+ 605,
{
"viewId": [
1
@@ -10384,7 +10393,7 @@ export default {
}
],
"getViewSort": [
- 606,
+ 608,
{
"id": [
1,
@@ -10393,7 +10402,7 @@ export default {
}
],
"getViewSorts": [
- 606,
+ 608,
{
"viewId": [
1
@@ -10401,19 +10410,19 @@ export default {
}
],
"getViews": [
- 594,
+ 596,
{
"objectMetadataId": [
1
],
"viewTypes": [
- 608,
+ 610,
"[ViewType!]"
]
}
],
"getWorkspaceCreationDefaults": [
- 622
+ 624
],
"githubClaimAuthorizationUrl": [
1,
@@ -10467,10 +10476,10 @@ export default {
337
],
"mostlyEmptyFieldMetadataIds": [
- 488,
+ 490,
{
"objectMetadataId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10479,7 +10488,7 @@ export default {
108,
{
"connectedAccountId": [
- 488
+ 490
]
}
],
@@ -10490,7 +10499,7 @@ export default {
314,
{
"connectedAccountId": [
- 488
+ 490
]
}
],
@@ -10498,18 +10507,18 @@ export default {
321,
{
"messageChannelId": [
- 488
+ 490
]
}
],
"myUserApplicationVariables": [
- 627
+ 629
],
"navigationMenuItem": [
343,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10521,7 +10530,7 @@ export default {
346,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10600,7 +10609,7 @@ export default {
457,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
@@ -10612,37 +10621,37 @@ export default {
468
],
"twoFactorAuthenticationRecoveryStatus": [
- 487,
+ 489,
{
"userId": [
- 488,
+ 490,
"UUID!"
]
}
],
"unsubscribeTopics": [
- 491
+ 493
],
"usageLimits": [
- 570
+ 572
],
"usageQuotaDefinitions": [
- 574
+ 576
],
"usageQuotaScopeConsumption": [
- 576,
+ 578,
{
"input": [
- 577,
+ 579,
"UsageQuotaScopeInput!"
]
}
],
"usageQuotasWithConsumption": [
- 578
+ 580
],
"validatePasswordResetToken": [
- 588,
+ 590,
{
"passwordResetToken": [
1,
@@ -10651,25 +10660,25 @@ export default {
}
],
"validationRules": [
- 589,
+ 591,
{
"objectMetadataId": [
- 488,
+ 490,
"UUID!"
]
}
],
"webhook": [
- 610,
+ 612,
{
"id": [
- 488,
+ 490,
"UUID!"
]
}
],
"webhooks": [
- 610
+ 612
],
"__typename": [
1
@@ -10677,7 +10686,7 @@ export default {
},
"RatioAggregateConfig": {
"fieldMetadataId": [
- 488
+ 490
],
"optionValue": [
1
@@ -10697,7 +10706,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"progress": [
8
@@ -10708,7 +10717,7 @@ export default {
},
"RecordIdentifier": {
"id": [
- 488
+ 490
],
"imageIdentifier": [
1
@@ -10739,13 +10748,13 @@ export default {
},
"RecordPermissionsResult": {
"objectMetadataId": [
- 488
+ 490
],
"permissions": [
398
],
"recordId": [
- 488
+ 490
],
"__typename": [
1
@@ -10754,10 +10763,10 @@ export default {
"RecordShareAccessLevel": {},
"RecordSharePrincipalInput": {
"roleId": [
- 488
+ 490
],
"workspaceMemberId": [
- 488
+ 490
],
"__typename": [
1
@@ -10802,10 +10811,10 @@ export default {
10
],
"principalId": [
- 488
+ 490
],
"principalRoleId": [
- 488
+ 490
],
"principalType": [
402
@@ -10826,7 +10835,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"label": [
1
@@ -10837,7 +10846,7 @@ export default {
},
"RecordTableConfiguration": {
"configurationType": [
- 612
+ 614
],
"isUIEditable": [
4
@@ -10854,10 +10863,10 @@ export default {
},
"RecordTargetInput": {
"objectMetadataId": [
- 488
+ 490
],
"recordId": [
- 488
+ 490
],
"__typename": [
1
@@ -10916,7 +10925,7 @@ export default {
},
"RevokeApiKeyInput": {
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -10977,7 +10986,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isEditable": [
4
@@ -10998,10 +11007,10 @@ export default {
420
],
"universalIdentifier": [
- 488
+ 490
],
"workspaceMembers": [
- 626
+ 628
],
"__typename": [
1
@@ -11012,10 +11021,10 @@ export default {
1
],
"id": [
- 488
+ 490
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -11092,16 +11101,16 @@ export default {
},
"RowLevelPermissionPredicateGroupInput": {
"id": [
- 488
+ 490
],
"logicalOperator": [
423
],
"objectMetadataId": [
- 488
+ 490
],
"parentRowLevelPermissionPredicateGroupId": [
- 488
+ 490
],
"positionInRowLevelPermissionPredicateGroup": [
11
@@ -11113,10 +11122,10 @@ export default {
"RowLevelPermissionPredicateGroupLogicalOperator": {},
"RowLevelPermissionPredicateInput": {
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"operand": [
425
@@ -11125,7 +11134,7 @@ export default {
11
],
"rowLevelPermissionPredicateGroupId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -11161,7 +11170,7 @@ export default {
1
],
"runAsWorkspaceMemberId": [
- 488
+ 490
],
"thread": [
431
@@ -11172,7 +11181,7 @@ export default {
},
"RunAgentMessageAttachmentInput": {
"fileId": [
- 488
+ 490
],
"filename": [
1
@@ -11210,7 +11219,7 @@ export default {
4
],
"threadId": [
- 488
+ 490
],
"__typename": [
1
@@ -11229,7 +11238,7 @@ export default {
},
"SSOConnection": {
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -11249,7 +11258,7 @@ export default {
},
"SSOIdentityProvider": {
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -11284,16 +11293,16 @@ export default {
186
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"position": [
11
],
"tsVectorFieldMetadataId": [
- 488
+ 490
],
"updatedAt": [
186
@@ -11304,7 +11313,7 @@ export default {
},
"SendChatMessageResult": {
"mentionedParticipantWorkspaceMemberIds": [
- 488
+ 490
],
"messageId": [
1
@@ -11404,7 +11413,7 @@ export default {
287
],
"workspaceMemberIds": [
- 488
+ 490
],
"__typename": [
1
@@ -11412,7 +11421,7 @@ export default {
},
"SendInboxMessageResult": {
"threadId": [
- 488
+ 490
],
"__typename": [
1
@@ -11423,7 +11432,7 @@ export default {
1
],
"result": [
- 624
+ 626
],
"success": [
4
@@ -11510,19 +11519,19 @@ export default {
},
"SettingsMenuItem": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
],
"frontComponentId": [
- 488
+ 490
],
"icon": [
1
],
"id": [
- 488
+ 490
],
"position": [
11
@@ -11534,7 +11543,7 @@ export default {
1
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -11569,7 +11578,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -11586,7 +11595,7 @@ export default {
},
"SetupSso": {
"id": [
- 488
+ 490
],
"issuer": [
1
@@ -11609,7 +11618,7 @@ export default {
65
],
"workspace": [
- 636
+ 638
],
"__typename": [
1
@@ -11628,7 +11637,7 @@ export default {
},
"Skill": {
"applicationId": [
- 488
+ 490
],
"content": [
1
@@ -11643,7 +11652,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -11672,7 +11681,7 @@ export default {
416
],
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -11680,7 +11689,7 @@ export default {
},
"StartWorkspaceSetupChatResult": {
"outcome": [
- 634
+ 636
],
"thread": [
9
@@ -11750,7 +11759,7 @@ export default {
5,
{
"threadId": [
- 488,
+ 490,
"UUID!"
]
}
@@ -11784,7 +11793,7 @@ export default {
"SupportDriver": {},
"TasksConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -11795,7 +11804,7 @@ export default {
1
],
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -11804,13 +11813,13 @@ export default {
469
],
"frontComponentUniversalIdentifier": [
- 488
+ 490
],
"icon": [
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -11822,13 +11831,13 @@ export default {
1
],
"objectUniversalIdentifier": [
- 488
+ 490
],
"replacesTimelineActivityTypeUniversalIdentifier": [
- 488
+ 490
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
@@ -11839,7 +11848,7 @@ export default {
},
"TimelineActivityTypeEmit": {
"objectUniversalIdentifier": [
- 488
+ 490
],
"on": [
1
@@ -11853,13 +11862,13 @@ export default {
},
"TimelineActivityTypeEmitThrough": {
"happensAtFieldUniversalIdentifier": [
- 488
+ 490
],
"relationFieldUniversalIdentifier": [
- 488
+ 490
],
"triggerFieldUniversalIdentifiers": [
- 488
+ 490
],
"__typename": [
1
@@ -11867,7 +11876,7 @@ export default {
},
"TimelineConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -11913,6 +11922,25 @@ export default {
1
]
},
+ "TriggerAddPeopleToMessageListJobInput": {
+ "messageListId": [
+ 490
+ ],
+ "personFilter": [
+ 287
+ ],
+ "__typename": [
+ 1
+ ]
+ },
+ "TriggerAddPeopleToMessageListJobResult": {
+ "jobId": [
+ 1
+ ],
+ "__typename": [
+ 1
+ ]
+ },
"TriggerInstallApplicationInput": {
"universalIdentifier": [
1
@@ -12004,7 +12032,7 @@ export default {
1
],
"twoFactorAuthenticationMethodId": [
- 488
+ 490
],
"__typename": [
1
@@ -12049,19 +12077,19 @@ export default {
"UUID": {},
"UUIDFilterComparison": {
"eq": [
- 488
+ 490
],
"gt": [
- 488
+ 490
],
"gte": [
- 488
+ 490
],
"iLike": [
- 488
+ 490
],
"in": [
- 488
+ 490
],
"is": [
4
@@ -12070,25 +12098,25 @@ export default {
4
],
"like": [
- 488
+ 490
],
"lt": [
- 488
+ 490
],
"lte": [
- 488
+ 490
],
"neq": [
- 488
+ 490
],
"notILike": [
- 488
+ 490
],
"notIn": [
- 488
+ 490
],
"notLike": [
- 488
+ 490
],
"__typename": [
1
@@ -12103,7 +12131,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -12112,7 +12140,7 @@ export default {
186
],
"visibility": [
- 492
+ 494
],
"__typename": [
1
@@ -12127,7 +12155,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"label": [
1
@@ -12148,7 +12176,7 @@ export default {
287
],
"roleId": [
- 488
+ 490
],
"triggers": [
287
@@ -12162,7 +12190,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"name": [
1
@@ -12179,7 +12207,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isSyncEnabled": [
4
@@ -12204,7 +12232,7 @@ export default {
1
],
"update": [
- 498
+ 500
],
"__typename": [
1
@@ -12229,7 +12257,7 @@ export default {
1
],
"update": [
- 500
+ 502
],
"__typename": [
1
@@ -12251,10 +12279,10 @@ export default {
},
"UpdateCalendarChannelInput": {
"id": [
- 488
+ 490
],
"update": [
- 502
+ 504
],
"__typename": [
1
@@ -12279,7 +12307,7 @@ export default {
},
"UpdateCommandMenuItemInput": {
"availabilityObjectMetadataId": [
- 488
+ 490
],
"availabilityType": [
136
@@ -12294,7 +12322,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isPinned": [
4
@@ -12303,7 +12331,7 @@ export default {
1
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
@@ -12320,7 +12348,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -12373,7 +12401,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"options": [
287
@@ -12393,10 +12421,10 @@ export default {
},
"UpdateFrontComponentInput": {
"id": [
- 488
+ 490
],
"update": [
- 507
+ 509
],
"__typename": [
1
@@ -12426,10 +12454,10 @@ export default {
},
"UpdateLogicFunctionFromSourceInput": {
"id": [
- 488
+ 490
],
"update": [
- 510
+ 512
],
"__typename": [
1
@@ -12475,10 +12503,10 @@ export default {
},
"UpdateMessageChannelInput": {
"id": [
- 488
+ 490
],
"update": [
- 512
+ 514
],
"__typename": [
1
@@ -12512,10 +12540,10 @@ export default {
},
"UpdateMessageFolderInput": {
"id": [
- 488
+ 490
],
"update": [
- 514
+ 516
],
"__typename": [
1
@@ -12531,10 +12559,10 @@ export default {
},
"UpdateMessageFoldersInput": {
"ids": [
- 488
+ 490
],
"update": [
- 514
+ 516
],
"__typename": [
1
@@ -12545,7 +12573,7 @@ export default {
1
],
"folderId": [
- 488
+ 490
],
"icon": [
1
@@ -12557,7 +12585,7 @@ export default {
1
],
"pageLayoutId": [
- 488
+ 490
],
"position": [
11
@@ -12577,7 +12605,7 @@ export default {
1
],
"imageIdentifierFieldMetadataId": [
- 488
+ 490
],
"isActive": [
4
@@ -12589,7 +12617,7 @@ export default {
4
],
"labelIdentifierFieldMetadataId": [
- 488
+ 490
],
"labelPlural": [
1
@@ -12624,10 +12652,10 @@ export default {
},
"UpdateOneFieldMetadataInput": {
"id": [
- 488
+ 490
],
"update": [
- 505
+ 507
],
"__typename": [
1
@@ -12635,10 +12663,10 @@ export default {
},
"UpdateOneNavigationMenuItemInput": {
"id": [
- 488
+ 490
],
"update": [
- 516
+ 518
],
"__typename": [
1
@@ -12646,10 +12674,10 @@ export default {
},
"UpdateOneObjectInput": {
"id": [
- 488
+ 490
],
"update": [
- 517
+ 519
],
"__typename": [
1
@@ -12660,7 +12688,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"type": [
370
@@ -12691,7 +12719,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"layoutMode": [
369
@@ -12703,7 +12731,7 @@ export default {
1
],
"widgets": [
- 525
+ 527
],
"__typename": [
1
@@ -12723,10 +12751,10 @@ export default {
4
],
"objectMetadataId": [
- 488
+ 490
],
"pageLayoutTabId": [
- 488
+ 490
],
"position": [
287
@@ -12735,7 +12763,7 @@ export default {
1
],
"type": [
- 613
+ 615
],
"__typename": [
1
@@ -12752,13 +12780,13 @@ export default {
287
],
"id": [
- 488
+ 490
],
"objectMetadataId": [
- 488
+ 490
],
"pageLayoutTabId": [
- 488
+ 490
],
"position": [
287
@@ -12767,7 +12795,7 @@ export default {
1
],
"type": [
- 613
+ 615
],
"__typename": [
1
@@ -12781,10 +12809,10 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"tabs": [
- 523
+ 525
],
"type": [
370
@@ -12795,10 +12823,10 @@ export default {
},
"UpdateRoleInput": {
"id": [
- 488
+ 490
],
"update": [
- 528
+ 530
],
"__typename": [
1
@@ -12856,7 +12884,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -12876,7 +12904,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -12902,7 +12930,7 @@ export default {
1
],
"visibility": [
- 492
+ 494
],
"__typename": [
1
@@ -12910,7 +12938,7 @@ export default {
},
"UpdateUsageLimitInput": {
"id": [
- 488
+ 490
],
"payload": [
174
@@ -12921,10 +12949,10 @@ export default {
},
"UpdateValidationRuleInput": {
"id": [
- 488
+ 490
],
"update": [
- 534
+ 536
],
"__typename": [
1
@@ -12935,7 +12963,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 488
+ 490
],
"expression": [
1
@@ -12958,10 +12986,10 @@ export default {
},
"UpdateViewFieldGroupInput": {
"id": [
- 488
+ 490
],
"update": [
- 536
+ 538
],
"__typename": [
1
@@ -12986,10 +13014,10 @@ export default {
},
"UpdateViewFieldInput": {
"id": [
- 488
+ 490
],
"update": [
- 538
+ 540
],
"__typename": [
1
@@ -13009,7 +13037,7 @@ export default {
11
],
"viewFieldGroupId": [
- 488
+ 490
],
"__typename": [
1
@@ -13017,19 +13045,19 @@ export default {
},
"UpdateViewFilterGroupInput": {
"id": [
- 488
+ 490
],
"logicalOperator": [
- 601
+ 603
],
"parentViewFilterGroupId": [
- 488
+ 490
],
"positionInViewFilterGroup": [
11
],
"viewId": [
- 488
+ 490
],
"__typename": [
1
@@ -13037,10 +13065,10 @@ export default {
},
"UpdateViewFilterInput": {
"id": [
- 488
+ 490
],
"update": [
- 541
+ 543
],
"__typename": [
1
@@ -13048,16 +13076,16 @@ export default {
},
"UpdateViewFilterInputUpdates": {
"fieldMetadataId": [
- 488
+ 490
],
"operand": [
- 602
+ 604
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -13066,7 +13094,7 @@ export default {
287
],
"viewFilterGroupId": [
- 488
+ 490
],
"__typename": [
1
@@ -13074,10 +13102,10 @@ export default {
},
"UpdateViewGroupInput": {
"id": [
- 488
+ 490
],
"update": [
- 543
+ 545
],
"__typename": [
1
@@ -13085,7 +13113,7 @@ export default {
},
"UpdateViewGroupInputUpdates": {
"fieldMetadataId": [
- 488
+ 490
],
"fieldValue": [
1
@@ -13105,13 +13133,13 @@ export default {
1
],
"calendarEndFieldMetadataId": [
- 488
+ 490
],
"calendarFieldMetadataId": [
- 488
+ 490
],
"calendarLayout": [
- 595
+ 597
],
"groupLoadLimit": [
8
@@ -13120,7 +13148,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isCompact": [
4
@@ -13129,19 +13157,19 @@ export default {
19
],
"kanbanAggregateOperationFieldMetadataId": [
- 488
+ 490
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 488
+ 490
],
"name": [
1
],
"openRecordIn": [
- 605
+ 607
],
"position": [
11
@@ -13150,10 +13178,10 @@ export default {
4
],
"type": [
- 608
+ 610
],
"visibility": [
- 609
+ 611
],
"__typename": [
1
@@ -13161,10 +13189,10 @@ export default {
},
"UpdateViewSortInput": {
"id": [
- 488
+ 490
],
"update": [
- 546
+ 548
],
"__typename": [
1
@@ -13172,7 +13200,7 @@ export default {
},
"UpdateViewSortInputUpdates": {
"direction": [
- 607
+ 609
],
"subFieldName": [
1
@@ -13183,10 +13211,10 @@ export default {
},
"UpdateWebhookInput": {
"id": [
- 488
+ 490
],
"update": [
- 548
+ 550
],
"__typename": [
1
@@ -13243,7 +13271,7 @@ export default {
1
],
"defaultRoleId": [
- 488
+ 490
],
"displayName": [
1
@@ -13300,7 +13328,7 @@ export default {
11
],
"workspaceDiscoverability": [
- 623
+ 625
],
"__typename": [
1
@@ -13311,7 +13339,7 @@ export default {
287
],
"workspaceMemberId": [
- 488
+ 490
],
"__typename": [
1
@@ -13323,7 +13351,7 @@ export default {
249
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -13331,7 +13359,7 @@ export default {
},
"UpsertFieldsWidgetFieldInput": {
"fieldMetadataId": [
- 488
+ 490
],
"isVisible": [
4
@@ -13340,7 +13368,7 @@ export default {
11
],
"viewFieldId": [
- 488
+ 490
],
"__typename": [
1
@@ -13348,10 +13376,10 @@ export default {
},
"UpsertFieldsWidgetGroupInput": {
"fields": [
- 554
+ 556
],
"id": [
- 488
+ 490
],
"isVisible": [
4
@@ -13368,13 +13396,13 @@ export default {
},
"UpsertFieldsWidgetInput": {
"fields": [
- 554
+ 556
],
"groups": [
- 555
+ 557
],
"widgetId": [
- 488
+ 490
],
"__typename": [
1
@@ -13385,7 +13413,7 @@ export default {
355
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -13396,7 +13424,7 @@ export default {
1
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -13404,7 +13432,7 @@ export default {
},
"UpsertRowLevelPermissionPredicatesInput": {
"objectMetadataId": [
- 488
+ 490
],
"predicateGroups": [
422
@@ -13413,7 +13441,7 @@ export default {
424
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -13432,22 +13460,22 @@ export default {
},
"UpsertViewWidgetInput": {
"view": [
- 565
+ 567
],
"viewFields": [
- 562
+ 564
],
"viewFilterGroups": [
- 563
+ 565
],
"viewFilters": [
- 564
+ 566
],
"viewSorts": [
- 566
+ 568
],
"widgetId": [
- 488
+ 490
],
"__typename": [
1
@@ -13458,7 +13486,7 @@ export default {
19
],
"fieldMetadataId": [
- 488
+ 490
],
"isVisible": [
4
@@ -13470,7 +13498,7 @@ export default {
11
],
"viewFieldId": [
- 488
+ 490
],
"__typename": [
1
@@ -13478,13 +13506,13 @@ export default {
},
"UpsertViewWidgetViewFilterGroupInput": {
"id": [
- 488
+ 490
],
"logicalOperator": [
- 601
+ 603
],
"parentViewFilterGroupId": [
- 488
+ 490
],
"positionInViewFilterGroup": [
11
@@ -13495,19 +13523,19 @@ export default {
},
"UpsertViewWidgetViewFilterInput": {
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"operand": [
- 602
+ 604
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -13516,7 +13544,7 @@ export default {
287
],
"viewFilterGroupId": [
- 488
+ 490
],
"__typename": [
1
@@ -13524,34 +13552,34 @@ export default {
},
"UpsertViewWidgetViewSettingsInput": {
"calendarEndFieldMetadataId": [
- 488
+ 490
],
"calendarFieldMetadataId": [
- 488
+ 490
],
"calendarLayout": [
- 595
+ 597
],
"kanbanAggregateOperation": [
19
],
"kanbanAggregateOperationFieldMetadataId": [
- 488
+ 490
],
"kanbanColumnWidth": [
8
],
"mainGroupByFieldMetadataId": [
- 488
+ 490
],
"openRecordIn": [
- 605
+ 607
],
"shouldHideEmptyGroups": [
4
],
"type": [
- 608
+ 610
],
"__typename": [
1
@@ -13559,13 +13587,13 @@ export default {
},
"UpsertViewWidgetViewSortInput": {
"direction": [
- 607
+ 609
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -13579,22 +13607,22 @@ export default {
186
],
"timeSeries": [
- 580
+ 582
],
"usageByApplication": [
- 569
+ 571
],
"usageByModel": [
- 569
+ 571
],
"usageByOperationType": [
- 569
+ 571
],
"usageByUser": [
- 569
+ 571
],
"userDailyUsage": [
- 582
+ 584
],
"__typename": [
1
@@ -13602,7 +13630,7 @@ export default {
},
"UsageAnalyticsInput": {
"operationTypes": [
- 572
+ 574
],
"periodEnd": [
186
@@ -13639,7 +13667,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"limitKind": [
1
@@ -13648,7 +13676,7 @@ export default {
80
],
"operationType": [
- 572
+ 574
],
"periodCount": [
8
@@ -13657,7 +13685,7 @@ export default {
1
],
"resourceType": [
- 579
+ 581
],
"spenderId": [
1
@@ -13666,7 +13694,7 @@ export default {
1
],
"unit": [
- 581
+ 583
],
"updatedAt": [
186
@@ -13677,10 +13705,10 @@ export default {
},
"UsageLimitOperationDefinition": {
"allowedUnits": [
- 581
+ 583
],
"operationType": [
- 572
+ 574
],
"__typename": [
1
@@ -13689,7 +13717,7 @@ export default {
"UsageOperationType": {},
"UsageQuotaDefinition": {
"allowedOperations": [
- 571
+ 573
],
"allowedSpenderTypes": [
1
@@ -13698,10 +13726,10 @@ export default {
1
],
"operatorOnlyScopes": [
- 575
+ 577
],
"resourceType": [
- 579
+ 581
],
"__typename": [
1
@@ -13709,7 +13737,7 @@ export default {
},
"UsageQuotaDefinitions": {
"definitions": [
- 573
+ 575
],
"hasAllowancePeriod": [
4
@@ -13723,7 +13751,7 @@ export default {
},
"UsageQuotaOperatorOnlyScope": {
"operationType": [
- 572
+ 574
],
"periodUnit": [
1
@@ -13732,7 +13760,7 @@ export default {
1
],
"unit": [
- 581
+ 583
],
"__typename": [
1
@@ -13754,13 +13782,13 @@ export default {
},
"UsageQuotaScopeInput": {
"operationType": [
- 572
+ 574
],
"periodUnit": [
1
],
"resourceType": [
- 579
+ 581
],
"spenderId": [
1
@@ -13769,7 +13797,7 @@ export default {
1
],
"unit": [
- 581
+ 583
],
"__typename": [
1
@@ -13780,7 +13808,7 @@ export default {
80
],
"id": [
- 488
+ 490
],
"isEnforced": [
4
@@ -13789,7 +13817,7 @@ export default {
80
],
"operationType": [
- 572
+ 574
],
"periodEnd": [
186
@@ -13804,7 +13832,7 @@ export default {
80
],
"resourceType": [
- 579
+ 581
],
"spenderId": [
1
@@ -13816,7 +13844,7 @@ export default {
1
],
"unit": [
- 581
+ 583
],
"__typename": [
1
@@ -13837,7 +13865,7 @@ export default {
"UsageUnit": {},
"UsageUserDaily": {
"dailyUsage": [
- 580
+ 582
],
"userWorkspaceId": [
1
@@ -13860,10 +13888,10 @@ export default {
186
],
"currentUserWorkspace": [
- 586
+ 588
],
"currentWorkspace": [
- 617
+ 619
],
"deletedAt": [
186
@@ -13884,7 +13912,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"isEmailVerified": [
4
@@ -13914,16 +13942,16 @@ export default {
288
],
"userWorkspaces": [
- 586
+ 588
],
"workspaceMember": [
- 626
+ 628
],
"workspaceMembers": [
- 626
+ 628
],
"workspaces": [
- 586
+ 588
],
"__typename": [
1
@@ -13972,7 +14000,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"ipAddress": [
1
@@ -13990,7 +14018,7 @@ export default {
1
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14004,7 +14032,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"isImpersonating": [
4
@@ -14022,16 +14050,16 @@ export default {
379
],
"twoFactorAuthenticationMethodSummary": [
- 484
+ 486
],
"updatedAt": [
186
],
"user": [
- 583
+ 585
],
"userId": [
- 488
+ 490
],
"__typename": [
1
@@ -14039,7 +14067,7 @@ export default {
},
"ValidateApprovedAccessDomainInput": {
"approvedAccessDomainId": [
- 488
+ 490
],
"validationToken": [
1
@@ -14056,7 +14084,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -14067,7 +14095,7 @@ export default {
1
],
"errorFieldMetadataId": [
- 488
+ 490
],
"expression": [
1
@@ -14076,7 +14104,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -14088,7 +14116,7 @@ export default {
1
],
"objectMetadataId": [
- 488
+ 490
],
"__typename": [
1
@@ -14119,7 +14147,7 @@ export default {
65
],
"workspaceUrls": [
- 635
+ 637
],
"__typename": [
1
@@ -14149,22 +14177,22 @@ export default {
1
],
"applicationId": [
- 488
+ 490
],
"calendarEndFieldMetadataId": [
- 488
+ 490
],
"calendarFieldMetadataId": [
- 488
+ 490
],
"calendarLayout": [
- 595
+ 597
],
"createdAt": [
186
],
"createdByUserWorkspaceId": [
- 488
+ 490
],
"deletedAt": [
186
@@ -14176,7 +14204,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -14194,25 +14222,25 @@ export default {
19
],
"kanbanAggregateOperationFieldMetadataId": [
- 488
+ 490
],
"kanbanColumnWidth": [
8
],
"key": [
- 604
+ 606
],
"mainGroupByFieldMetadataId": [
- 488
+ 490
],
"name": [
1
],
"objectMetadataId": [
- 488
+ 490
],
"openRecordIn": [
- 605
+ 607
],
"position": [
11
@@ -14221,37 +14249,37 @@ export default {
4
],
"type": [
- 608
+ 610
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
],
"viewFieldGroups": [
- 598
+ 600
],
"viewFields": [
- 597
+ 599
],
"viewFilterGroups": [
- 600
+ 602
],
"viewFilters": [
- 599
+ 601
],
"viewGroups": [
- 603
+ 605
],
"viewSorts": [
- 606
+ 608
],
"visibility": [
- 609
+ 611
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14260,7 +14288,7 @@ export default {
"ViewCalendarLayout": {},
"ViewConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -14271,7 +14299,7 @@ export default {
19
],
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -14280,10 +14308,10 @@ export default {
186
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -14304,19 +14332,19 @@ export default {
11
],
"universalIdentifier": [
- 488
+ 490
],
"updatedAt": [
186
],
"viewFieldGroupId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14330,7 +14358,7 @@ export default {
186
],
"id": [
- 488
+ 490
],
"isActive": [
4
@@ -14351,13 +14379,13 @@ export default {
186
],
"viewFields": [
- 597
+ 599
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14371,19 +14399,19 @@ export default {
186
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"operand": [
- 602
+ 604
],
"positionInViewFilterGroup": [
11
],
"relationTargetFieldMetadataId": [
- 488
+ 490
],
"subFieldName": [
1
@@ -14395,13 +14423,13 @@ export default {
287
],
"viewFilterGroupId": [
- 488
+ 490
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14415,13 +14443,13 @@ export default {
186
],
"id": [
- 488
+ 490
],
"logicalOperator": [
- 601
+ 603
],
"parentViewFilterGroupId": [
- 488
+ 490
],
"positionInViewFilterGroup": [
11
@@ -14430,10 +14458,10 @@ export default {
186
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14452,7 +14480,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"isVisible": [
4
@@ -14464,10 +14492,10 @@ export default {
186
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14483,13 +14511,13 @@ export default {
186
],
"direction": [
- 607
+ 609
],
"fieldMetadataId": [
- 488
+ 490
],
"id": [
- 488
+ 490
],
"subFieldName": [
1
@@ -14498,10 +14526,10 @@ export default {
186
],
"viewId": [
- 488
+ 490
],
"workspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14512,7 +14540,7 @@ export default {
"ViewVisibility": {},
"Webhook": {
"applicationId": [
- 488
+ 490
],
"createdAt": [
186
@@ -14524,7 +14552,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"operations": [
1
@@ -14619,16 +14647,16 @@ export default {
471
],
"on_ViewConfiguration": [
- 596
+ 598
],
"on_WorkflowConfiguration": [
- 614
+ 616
],
"on_WorkflowRunConfiguration": [
- 615
+ 617
],
"on_WorkflowVersionConfiguration": [
- 616
+ 618
],
"__typename": [
1
@@ -14638,7 +14666,7 @@ export default {
"WidgetType": {},
"WorkflowConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -14646,7 +14674,7 @@ export default {
},
"WorkflowRunConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -14654,7 +14682,7 @@ export default {
},
"WorkflowVersionConfiguration": {
"configurationType": [
- 612
+ 614
],
"__typename": [
1
@@ -14662,7 +14690,7 @@ export default {
},
"Workspace": {
"activationStatus": [
- 618
+ 620
],
"aiAdditionalInstructions": [
1
@@ -14731,7 +14759,7 @@ export default {
4
],
"id": [
- 488
+ 490
],
"installedApplications": [
36
@@ -14782,7 +14810,7 @@ export default {
1
],
"logoFileId": [
- 488
+ 490
],
"metadataVersion": [
11
@@ -14797,22 +14825,22 @@ export default {
186
],
"viewFields": [
- 597
+ 599
],
"viewFilterGroups": [
- 600
+ 602
],
"viewFilters": [
- 599
+ 601
],
"viewGroups": [
- 603
+ 605
],
"viewSorts": [
- 606
+ 608
],
"views": [
- 594
+ 596
],
"workspaceCustomApplication": [
36
@@ -14821,13 +14849,13 @@ export default {
1
],
"workspaceDiscoverability": [
- 623
+ 625
],
"workspaceMembersCount": [
11
],
"workspaceUrls": [
- 635
+ 637
],
"__typename": [
1
@@ -14857,13 +14885,13 @@ export default {
4
],
"outcome": [
- 620
+ 622
],
"personEnrichment": [
287
],
"personOutcome": [
- 633
+ 635
],
"__typename": [
1
@@ -14889,10 +14917,10 @@ export default {
186
],
"id": [
- 488
+ 490
],
"roleId": [
- 488
+ 490
],
"__typename": [
1
@@ -14917,10 +14945,10 @@ export default {
1
],
"dateFormat": [
- 628
+ 630
],
"id": [
- 488
+ 490
],
"locale": [
1
@@ -14929,7 +14957,7 @@ export default {
263
],
"numberFormat": [
- 629
+ 631
],
"openRecordIn": [
365
@@ -14938,7 +14966,7 @@ export default {
417
],
"timeFormat": [
- 630
+ 632
],
"timeZone": [
1
@@ -14950,10 +14978,10 @@ export default {
1
],
"userId": [
- 488
+ 490
],
"userWorkspaceId": [
- 488
+ 490
],
"__typename": [
1
@@ -14961,13 +14989,13 @@ export default {
},
"WorkspaceMemberApplicationVariables": {
"userWorkspaceId": [
- 488
+ 490
],
"variables": [
- 584
+ 586
],
"workspaceMemberId": [
- 488
+ 490
],
"__typename": [
1
@@ -14992,7 +15020,7 @@ export default {
1
],
"id": [
- 488
+ 490
],
"__typename": [
1
@@ -15013,10 +15041,10 @@ export default {
},
"WorkspaceUrlsAndId": {
"id": [
- 488
+ 490
],
"workspaceUrls": [
- 635
+ 637
],
"__typename": [
1
diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts
index 07bcbda991f..939829675a8 100644
--- a/packages/twenty-front/src/generated-metadata/graphql.ts
+++ b/packages/twenty-front/src/generated-metadata/graphql.ts
@@ -3317,6 +3317,7 @@ export type Mutation = {
syncMarketplaceCatalog: Scalars['Boolean']['output'];
trackAnalytics: Analytics;
transferApplicationRegistrationOwnership: ApplicationRegistration;
+ triggerAddPeopleToMessageListJob: TriggerAddPeopleToMessageListJobResult;
triggerInstallApplication: TriggerInstallApplicationResult;
/** @deprecated Use triggerInstallApplication instead */
triggerInstallApplicationJob: TriggerInstallApplicationJobResult;
@@ -4378,6 +4379,11 @@ export type MutationTransferApplicationRegistrationOwnershipArgs = {
};
+export type MutationTriggerAddPeopleToMessageListJobArgs = {
+ input: TriggerAddPeopleToMessageListJobInput;
+};
+
+
export type MutationTriggerInstallApplicationArgs = {
input: TriggerInstallApplicationInput;
};
@@ -6599,6 +6605,16 @@ export type TransientToken = {
transientToken: AuthToken;
};
+export type TriggerAddPeopleToMessageListJobInput = {
+ messageListId: Scalars['UUID']['input'];
+ personFilter: Scalars['JSON']['input'];
+};
+
+export type TriggerAddPeopleToMessageListJobResult = {
+ __typename?: 'TriggerAddPeopleToMessageListJobResult';
+ jobId: Scalars['String']['output'];
+};
+
export type TriggerInstallApplicationInput = {
universalIdentifier: Scalars['String']['input'];
};
@@ -8739,6 +8755,13 @@ export type ResetCommandMenuItemMutation = { __typename?: 'Mutation', resetComma
| { __typename?: 'PathCommandMenuItemPayload', path: string }
| null } };
+export type TriggerAddPeopleToMessageListJobMutationVariables = Exact<{
+ input: TriggerAddPeopleToMessageListJobInput;
+}>;
+
+
+export type TriggerAddPeopleToMessageListJobMutation = { __typename?: 'Mutation', triggerAddPeopleToMessageListJob: { __typename?: 'TriggerAddPeopleToMessageListJobResult', jobId: string } };
+
export type UpdateCommandMenuItemMutationVariables = Exact<{
input: UpdateCommandMenuItemInput;
}>;
@@ -10933,6 +10956,7 @@ export const GetWorkspaceCreationDefaultsDocument = {"kind":"Document","definiti
export const ValidatePasswordResetTokenDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"ValidatePasswordResetToken"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"token"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"validatePasswordResetToken"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"passwordResetToken"},"value":{"kind":"Variable","name":{"kind":"Name","value":"token"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"email"}},{"kind":"Field","name":{"kind":"Name","value":"hasPassword"}}]}}]}}]} as unknown as DocumentNode<ValidatePasswordResetTokenQuery, ValidatePasswordResetTokenQueryVariables>;
export const DuplicateMessageListDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DuplicateMessageList"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"duplicateMessageList"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"memberCount"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<DuplicateMessageListMutation, DuplicateMessageListMutationVariables>;
export const ResetCommandMenuItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ResetCommandMenuItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"resetCommandMenuItem"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<ResetCommandMenuItemMutation, ResetCommandMenuItemMutationVariables>;
+export const TriggerAddPeopleToMessageListJobDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"TriggerAddPeopleToMessageListJob"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"TriggerAddPeopleToMessageListJobInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"triggerAddPeopleToMessageListJob"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"jobId"}}]}}]}}]} as unknown as DocumentNode<TriggerAddPeopleToMessageListJobMutation, TriggerAddPeopleToMessageListJobMutationVariables>;
export const UpdateCommandMenuItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCommandMenuItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCommandMenuItemInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCommandMenuItem"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<UpdateCommandMenuItemMutation, UpdateCommandMenuItemMutationVariables>;
export const FindManyCommandMenuItemsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"FindManyCommandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commandMenuItems"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"FragmentSpread","name":{"kind":"Name","value":"CommandMenuItemFields"}}]}}]}},{"kind":"FragmentDefinition","name":{"kind":"Name","value":"CommandMenuItemFields"},"typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"CommandMenuItem"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"universalIdentifier"}},{"kind":"Field","name":{"kind":"Name","value":"applicationId"}},{"kind":"Field","name":{"kind":"Name","value":"coreWorkflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"workflowVersionId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponentId"}},{"kind":"Field","name":{"kind":"Name","value":"frontComponent"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isHeadless"}}]}},{"kind":"Field","name":{"kind":"Name","value":"engineComponentKey"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"shortLabel"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"isPinned"}},{"kind":"Field","name":{"kind":"Name","value":"payload"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"InlineFragment","typeCondition":{"kind":"NamedType","name":{"kind":"Name","value":"PathCommandMenuItemPayload"}},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"path"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"hotKeys"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalAvailabilityExpression"}},{"kind":"Field","name":{"kind":"Name","value":"conditionalPinnedExpression"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityType"}},{"kind":"Field","name":{"kind":"Name","value":"availabilityObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"navigationTargetObjectMetadataId"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}}]}}]} as unknown as DocumentNode<FindManyCommandMenuItemsQuery, FindManyCommandMenuItemsQueryVariables>;
export const DuplicateDashboardDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DuplicateDashboard"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"duplicateDashboard"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"title"}},{"kind":"Field","name":{"kind":"Name","value":"pageLayoutId"}},{"kind":"Field","name":{"kind":"Name","value":"position"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<DuplicateDashboardMutation, DuplicateDashboardMutationVariables>;
diff --git a/packages/twenty-front/src/modules/command-menu-item/graphql/mutations/triggerAddPeopleToMessageListJob.ts b/packages/twenty-front/src/modules/command-menu-item/graphql/mutations/triggerAddPeopleToMessageListJob.ts
new file mode 100644
index 00000000000..3e3a80f41d5
--- /dev/null
+++ b/packages/twenty-front/src/modules/command-menu-item/graphql/mutations/triggerAddPeopleToMessageListJob.ts
@@ -0,0 +1,11 @@
+import gql from 'graphql-tag';
+
+export const TRIGGER_ADD_PEOPLE_TO_MESSAGE_LIST_JOB = gql`
+ mutation TriggerAddPeopleToMessageListJob(
+ $input: TriggerAddPeopleToMessageListJobInput!
+ ) {
+ triggerAddPeopleToMessageListJob(input: $input) {
+ jobId
+ }
+ }
+`;
diff --git a/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/components/SidePanelAddToMessageListPage.tsx b/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/components/SidePanelAddToMessageListPage.tsx
index 9e1dc31f540..50d24612603 100644
--- a/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/components/SidePanelAddToMessageListPage.tsx
+++ b/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/components/SidePanelAddToMessageListPage.tsx
@@ -10,7 +10,10 @@ import { themeCssVariables } from 'twenty-ui/theme';
import { useCreateOneRecord } from '@/object-record/hooks/useCreateOneRecord';
import { FormSingleRecordPicker } from '@/object-record/record-field/ui/form-types/components/FormSingleRecordPicker';
import { useSidePanelMenu } from '@/side-panel/hooks/useSidePanelMenu';
+import { useAddPeopleToMessageList } from '@/side-panel/pages/add-to-message-list/hooks/useAddPeopleToMessageList';
+import { addToMessageListPersonFilterComponentState } from '@/side-panel/pages/add-to-message-list/states/addToMessageListPersonFilterComponentState';
import { SidePanelFooter } from '@/ui/layout/side-panel/components/SidePanelFooter';
+import { useAtomComponentStateValue } from '@/ui/utilities/state/jotai/hooks/useAtomComponentStateValue';
const StyledContainer = styled.div`
display: flex;
@@ -28,6 +31,10 @@ const StyledContent = styled.div`
`;
export const SidePanelAddToMessageListPage = () => {
+ const addToMessageListPersonFilter = useAtomComponentStateValue(
+ addToMessageListPersonFilterComponentState,
+ );
+
const [messageListId, setMessageListId] = useState<string | null>(null);
const { t } = useLingui();
@@ -37,6 +44,12 @@ export const SidePanelAddToMessageListPage = () => {
objectNameSingular: CoreObjectNameSingular.MessageList,
});
+ const { addPeopleToMessageList, isAdding } = useAddPeopleToMessageList({
+ messageListId,
+ personFilter: addToMessageListPersonFilter,
+ onCompleted: closeSidePanelMenu,
+ });
+
const handleCreateMessageList = async (searchInput?: string) => {
const createdMessageList = await createOneMessageList({
name: searchInput ?? '',
@@ -55,6 +68,7 @@ export const SidePanelAddToMessageListPage = () => {
onChange={setMessageListId}
onClear={() => setMessageListId(null)}
onCreate={handleCreateMessageList}
+ disabled={isAdding}
/>
</StyledContent>
<SidePanelFooter
@@ -69,7 +83,9 @@ export const SidePanelAddToMessageListPage = () => {
key="add-to-list"
size="sm"
startIcon={<IconUserPlus />}
- disabled={!isDefined(messageListId)}
+ loading={isAdding}
+ disabled={isAdding || !isDefined(messageListId)}
+ onClick={addPeopleToMessageList}
variant="solid"
color="accent"
>{t`Add to List`}</Button>,
diff --git a/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/hooks/useAddPeopleToMessageList.ts b/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/hooks/useAddPeopleToMessageList.ts
new file mode 100644
index 00000000000..d58d7c89e6a
--- /dev/null
+++ b/packages/twenty-front/src/modules/side-panel/pages/add-to-message-list/hooks/useAddPeopleToMessageList.ts
@@ -0,0 +1,83 @@
+import { useTrackedQueueJob } from '@/queue-job/hooks/useTrackedQueueJob';
+import { type TrackedJobStatus } from '@/queue-job/types/TrackedJobStatus';
+import { CombinedGraphQLErrors } from '@apollo/client/errors';
+import { useMutation } from '@apollo/client/react';
+import { t } from '@lingui/core/macro';
+import { useCallback } from 'react';
+import { type RecordGqlOperationFilter } from 'twenty-shared/types';
+import { isDefined } from 'twenty-shared/utils';
+import { useToast } from 'twenty-ui/components';
+import {
+ JobState,
+ TriggerAddPeopleToMessageListJobDocument,
+} from '~/generated-metadata/graphql';
+import { getErrorMessageFromApolloError } from '~/utils/get-error-message-from-apollo-error.util';
+
+type UseAddPeopleToMessageListArgs = {
+ messageListId: string | null;
+ personFilter: RecordGqlOperationFilter;
+ onCompleted: () => void;
+};
+
+export const useAddPeopleToMessageList = ({
+ messageListId,
+ personFilter,
+ onCompleted,
+}: UseAddPeopleToMessageListArgs) => {
+ const { enqueueToast } = useToast();
+ const [triggerAddPeopleToMessageListJob, { loading: isTriggeringAdd }] =
+ useMutation(TriggerAddPeopleToMessageListJobDocument);
+
+ const handleAddJobSettled = useCallback(
+ (jobStatus: TrackedJobStatus) => {
+ if (jobStatus.state === JobState.FAILED) {
+ enqueueToast({
+ variant: 'error',
+ children: t`Failed to add people to the list. Please try again.`,
+ });
+ return;
+ }
+
+ enqueueToast({
+ variant: 'success',
+ children: t`People added to the list.`,
+ });
+ onCompleted();
+ },
+ [enqueueToast, onCompleted],
+ );
+
+ const { activeJobId, trackJob } = useTrackedQueueJob({
+ onQueueJobSettled: handleAddJobSettled,
+ });
+
+ const addPeopleToMessageList = async (): Promise<void> => {
+ if (!isDefined(messageListId)) {
+ return;
+ }
+
+ try {
+ const { data } = await triggerAddPeopleToMessageListJob({
+ variables: { input: { messageListId, personFilter } },
+ });
+
+ const jobId = data?.triggerAddPeopleToMessageListJob.jobId;
+
+ if (isDefined(jobId)) {
+ trackJob({ jobId, context: messageListId });
+ }
+ } catch (error) {
+ enqueueToast({
+ variant: 'error',
+ children: CombinedGraphQLErrors.is(error)
+ ? getErrorMessageFromApolloError(error)
+ : t`Failed to add people to the list. Please try again.`,
+ });
+ }
+ };
+
+ return {
+ addPeopleToMessageList,
+ isAdding: isTriggeringAdd || isDefined(activeJobId),
+ };
+};
diff --git a/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts b/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
index 4266115c340..1005f4fdfc9 100644
--- a/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/message-queue/jobs.module.ts
@@ -28,6 +28,7 @@ import { EmailSenderJob } from 'src/engine/core-modules/email/email-sender.job';
import { EmailModule } from 'src/engine/core-modules/email/email.module';
import { RecordExportModule } from 'src/engine/core-modules/record-export/record-export.module';
import { EmailingModule } from 'src/modules/emailing/emailing.module';
+import { AddPeopleToMessageListJob } from 'src/modules/emailing/jobs/add-people-to-message-list.job';
import { MaterializeCampaignChunkJob } from 'src/modules/emailing/jobs/materialize-campaign-chunk.job';
import { MaterializeCampaignJob } from 'src/modules/emailing/jobs/materialize-campaign.job';
import { ReconcileWorkspaceCampaignStatsJob } from 'src/modules/emailing/jobs/reconcile-workspace-campaign-stats.job';
@@ -124,6 +125,7 @@ import { WorkflowModule } from 'src/modules/workflow/workflow.module';
CleanOnboardingWorkspacesJob,
EmailSenderJob,
SendCampaignEmailJob,
+ AddPeopleToMessageListJob,
SendCampaignEmailBatchJob,
MaterializeCampaignJob,
MaterializeCampaignChunkJob,
diff --git a/packages/twenty-server/src/engine/core-modules/message-queue/utils/__tests__/find-in-flight-queue-job-id-by-prefix.util.spec.ts b/packages/twenty-server/src/engine/core-modules/message-queue/utils/__tests__/find-in-flight-queue-job-id-by-prefix.util.spec.ts
new file mode 100644
index 00000000000..537f294c351
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/message-queue/utils/__tests__/find-in-flight-queue-job-id-by-prefix.util.spec.ts
@@ -0,0 +1,27 @@
+import { findInFlightQueueJobIdByPrefix } from 'src/engine/core-modules/message-queue/utils/find-in-flight-queue-job-id-by-prefix.util';
+
+const PREFIX = 'install-application.workspace-id.application-id';
+const JOB_ID = `${PREFIX}-5c98b035-5b09-4550-a4fb-b52056c494d1`;
+
+describe('findInFlightQueueJobIdByPrefix', () => {
+ const inFlightJobs = [
+ { id: undefined, data: {} },
+ { id: 'workspace-id.custom-job-id', data: {} },
+ { id: JOB_ID, data: {} },
+ ];
+
+ it('returns the in-flight job generated from the prefix', () => {
+ expect(
+ findInFlightQueueJobIdByPrefix({ inFlightJobs, jobIdPrefix: PREFIX }),
+ ).toBe(JOB_ID);
+ });
+
+ it('returns undefined when no in-flight job has the prefix', () => {
+ expect(
+ findInFlightQueueJobIdByPrefix({
+ inFlightJobs,
+ jobIdPrefix: 'install-application.workspace-id.other-application',
+ }),
+ ).toBeUndefined();
+ });
+});
diff --git a/packages/twenty-server/src/engine/core-modules/message-queue/utils/find-in-flight-queue-job-id-by-prefix.util.ts b/packages/twenty-server/src/engine/core-modules/message-queue/utils/find-in-flight-queue-job-id-by-prefix.util.ts
new file mode 100644
index 00000000000..748c9cbe37a
--- /dev/null
+++ b/packages/twenty-server/src/engine/core-modules/message-queue/utils/find-in-flight-queue-job-id-by-prefix.util.ts
@@ -0,0 +1,19 @@
+import { isDefined } from 'twenty-shared/utils';
+
+import { type InFlightQueueJob } from 'src/engine/core-modules/message-queue/drivers/interfaces/message-queue-driver.interface';
+import { type MessageQueueJobData } from 'src/engine/core-modules/message-queue/interfaces/message-queue-job.interface';
+import { getQueueJobIdPrefix } from 'src/engine/core-modules/message-queue/utils/get-queue-job-id-prefix.util';
+
+export const findInFlightQueueJobIdByPrefix = <
+ TData extends MessageQueueJobData,
+>({
+ inFlightJobs,
+ jobIdPrefix,
+}: {
+ inFlightJobs: InFlightQueueJob<TData>[];
+ jobIdPrefix: string;
+}): string | undefined =>
+ inFlightJobs
+ .map((job) => job.id)
+ .filter(isDefined)
+ .find((jobId) => getQueueJobIdPrefix(jobId) === jobIdPrefix);
diff --git a/packages/twenty-server/src/engine/core-modules/record-crud/record-crud.module.ts b/packages/twenty-server/src/engine/core-modules/record-crud/record-crud.module.ts
index 0205c4d0e88..225d576cf93 100644
--- a/packages/twenty-server/src/engine/core-modules/record-crud/record-crud.module.ts
+++ b/packages/twenty-server/src/engine/core-modules/record-crud/record-crud.module.ts
@@ -39,6 +39,7 @@ import { WorkspaceCacheModule } from 'src/engine/workspace-cache/workspace-cache
UpsertManyRecordsService,
],
exports: [
+ CommonApiContextBuilderService,
CreateRecordService,
CreateManyRecordsService,
UpdateRecordService,
diff --git a/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-job-start-delay-ms.constant.ts b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-job-start-delay-ms.constant.ts
new file mode 100644
index 00000000000..a8092e1e07a
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-job-start-delay-ms.constant.ts
@@ -0,0 +1 @@
+export const ADD_PEOPLE_TO_MESSAGE_LIST_JOB_START_DELAY_MS = 1_000;
diff --git a/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-max-person-count.constant.ts b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-max-person-count.constant.ts
new file mode 100644
index 00000000000..619d39fa37f
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-max-person-count.constant.ts
@@ -0,0 +1 @@
+export const ADD_PEOPLE_TO_MESSAGE_LIST_MAX_PERSON_COUNT = 50_000;
diff --git a/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-page-size.constant.ts b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-page-size.constant.ts
new file mode 100644
index 00000000000..6a979ba64fc
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/constants/add-people-to-message-list-page-size.constant.ts
@@ -0,0 +1 @@
+export const ADD_PEOPLE_TO_MESSAGE_LIST_PAGE_SIZE = 1_000;
diff --git a/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job-result.dto.ts b/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job-result.dto.ts
new file mode 100644
index 00000000000..50d52f21dce
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job-result.dto.ts
@@ -0,0 +1,7 @@
+import { Field, ObjectType } from '@nestjs/graphql';
+
+@ObjectType('TriggerAddPeopleToMessageListJobResult')
+export class TriggerAddPeopleToMessageListJobResultDTO {
+ @Field()
+ jobId: string;
+}
diff --git a/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job.input.ts b/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job.input.ts
new file mode 100644
index 00000000000..71aa069635b
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/dtos/trigger-add-people-to-message-list-job.input.ts
@@ -0,0 +1,18 @@
+import { Field, InputType } from '@nestjs/graphql';
+
+import { IsObject, IsUUID } from 'class-validator';
+import GraphQLJSON from 'graphql-type-json';
+
+import { type ObjectRecordFilter } from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
+import { UUIDScalarType } from 'src/engine/api/graphql/workspace-schema-builder/graphql-types/scalars';
+
+@InputType('TriggerAddPeopleToMessageListJobInput')
+export class TriggerAddPeopleToMessageListJobInput {
+ @Field(() => UUIDScalarType)
+ @IsUUID()
+ messageListId: string;
+
+ @Field(() => GraphQLJSON)
+ @IsObject()
+ personFilter: Partial<ObjectRecordFilter>;
+}
diff --git a/packages/twenty-server/src/modules/emailing/emailing.module.ts b/packages/twenty-server/src/modules/emailing/emailing.module.ts
index 8ffc901edbe..1496017dc47 100644
--- a/packages/twenty-server/src/modules/emailing/emailing.module.ts
+++ b/packages/twenty-server/src/modules/emailing/emailing.module.ts
@@ -1,7 +1,13 @@
import { Module } from '@nestjs/common';
import { TypeOrmModule } from '@nestjs/typeorm';
+import { CoreCommonApiModule } from 'src/engine/api/common/core-common-api.module';
import { ActorModule } from 'src/engine/core-modules/actor/actor.module';
+import { CacheLockModule } from 'src/engine/core-modules/cache-lock/cache-lock.module';
+import { RecordCrudModule } from 'src/engine/core-modules/record-crud/record-crud.module';
+import { UserWorkspaceModule } from 'src/engine/core-modules/user-workspace/user-workspace.module';
+import { AddPeopleToMessageListJobService } from 'src/modules/emailing/services/add-people-to-message-list-job.service';
+import { AddPeopleToMessageListService } from 'src/modules/emailing/services/add-people-to-message-list.service';
import { BillingModule } from 'src/engine/core-modules/billing/billing.module';
import { EmailingDomainModule } from 'src/engine/core-modules/emailing-domain/emailing-domain.module';
import { EmailingDomainEntity } from 'src/engine/core-modules/emailing-domain/emailing-domain.entity';
@@ -58,6 +64,10 @@ import { SaveCampaignTool } from 'src/modules/emailing/tools/save-campaign-tool'
@Module({
imports: [
ActorModule,
+ CacheLockModule,
+ CoreCommonApiModule,
+ RecordCrudModule,
+ UserWorkspaceModule,
EmailingDomainModule,
ThrottlerModule,
MessageChannelMetadataModule,
@@ -100,6 +110,8 @@ import { SaveCampaignTool } from 'src/modules/emailing/tools/save-campaign-tool'
SaveCampaignTool,
EmailingSendResolver,
MessageListDuplicationService,
+ AddPeopleToMessageListService,
+ AddPeopleToMessageListJobService,
MessageListResolver,
MessageSuppressionResolver,
UnsubscribeTopicResolver,
@@ -116,6 +128,7 @@ import { SaveCampaignTool } from 'src/modules/emailing/tools/save-campaign-tool'
ReconcileCampaignStatsCronJob,
],
exports: [
+ AddPeopleToMessageListService,
EmailingDomainSenderService,
MessageCampaignScheduleService,
MessageCampaignDeliveryService,
diff --git a/packages/twenty-server/src/modules/emailing/exceptions/message-list.exception.ts b/packages/twenty-server/src/modules/emailing/exceptions/message-list.exception.ts
index 7459ebe6b3f..54b17b51537 100644
--- a/packages/twenty-server/src/modules/emailing/exceptions/message-list.exception.ts
+++ b/packages/twenty-server/src/modules/emailing/exceptions/message-list.exception.ts
@@ -7,6 +7,9 @@ import { CustomException } from 'src/utils/custom-exception';
export enum MessageListExceptionCode {
MESSAGE_LIST_NOT_FOUND = 'MESSAGE_LIST_NOT_FOUND',
MESSAGE_LIST_DUPLICATION_FAILED = 'MESSAGE_LIST_DUPLICATION_FAILED',
+ MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD = 'MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD',
+ MESSAGE_LIST_ADD_PEOPLE_IN_PROGRESS = 'MESSAGE_LIST_ADD_PEOPLE_IN_PROGRESS',
+ MESSAGE_LIST_ADD_PEOPLE_FAILED = 'MESSAGE_LIST_ADD_PEOPLE_FAILED',
}
const getMessageListExceptionUserFriendlyMessage = (
@@ -17,6 +20,12 @@ const getMessageListExceptionUserFriendlyMessage = (
return msg`List not found.`;
case MessageListExceptionCode.MESSAGE_LIST_DUPLICATION_FAILED:
return msg`Failed to duplicate list.`;
+ case MessageListExceptionCode.MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD:
+ return msg`Too many people selected. Narrow your selection and try again.`;
+ case MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_IN_PROGRESS:
+ return msg`People are already being added to this list. Please wait for it to finish.`;
+ case MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_FAILED:
+ return msg`Failed to add people to the list.`;
default:
assertUnreachable(code);
}
diff --git a/packages/twenty-server/src/modules/emailing/jobs/add-people-to-message-list.job.ts b/packages/twenty-server/src/modules/emailing/jobs/add-people-to-message-list.job.ts
new file mode 100644
index 00000000000..17cd0192d2e
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/jobs/add-people-to-message-list.job.ts
@@ -0,0 +1,17 @@
+import { Process } from 'src/engine/core-modules/message-queue/decorators/process.decorator';
+import { Processor } from 'src/engine/core-modules/message-queue/decorators/processor.decorator';
+import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
+import { AddPeopleToMessageListService } from 'src/modules/emailing/services/add-people-to-message-list.service';
+import { type AddPeopleToMessageListJobData } from 'src/modules/emailing/types/add-people-to-message-list-job-data.type';
+
+@Processor(MessageQueue.campaignQueue)
+export class AddPeopleToMessageListJob {
+ constructor(
+ private readonly addPeopleToMessageListService: AddPeopleToMessageListService,
+ ) {}
+
+ @Process(AddPeopleToMessageListJob.name)
+ async handle(data: AddPeopleToMessageListJobData): Promise<void> {
+ await this.addPeopleToMessageListService.addPeopleToMessageList(data);
+ }
+}
diff --git a/packages/twenty-server/src/modules/emailing/resolvers/message-list.resolver.ts b/packages/twenty-server/src/modules/emailing/resolvers/message-list.resolver.ts
index 2e79d246946..e0858b29828 100644
--- a/packages/twenty-server/src/modules/emailing/resolvers/message-list.resolver.ts
+++ b/packages/twenty-server/src/modules/emailing/resolvers/message-list.resolver.ts
@@ -14,6 +14,9 @@ import { FeatureFlagGuard } from 'src/engine/guards/feature-flag.guard';
import { AuthPrincipalGuard } from 'src/engine/guards/auth-principal.guard';
import { PermissionsGraphqlApiExceptionFilter } from 'src/engine/metadata-modules/permissions/utils/permissions-graphql-api-exception.filter';
import { DuplicatedMessageListDTO } from 'src/modules/emailing/dtos/duplicated-message-list.dto';
+import { TriggerAddPeopleToMessageListJobResultDTO } from 'src/modules/emailing/dtos/trigger-add-people-to-message-list-job-result.dto';
+import { TriggerAddPeopleToMessageListJobInput } from 'src/modules/emailing/dtos/trigger-add-people-to-message-list-job.input';
+import { AddPeopleToMessageListJobService } from 'src/modules/emailing/services/add-people-to-message-list-job.service';
import { MessageListDuplicationService } from 'src/modules/emailing/services/message-list-duplication.service';
import { MessageListGraphqlApiExceptionFilter } from 'src/modules/emailing/utils/message-list-graphql-api-exception.filter';
@@ -42,6 +45,7 @@ import { MessageListGraphqlApiExceptionFilter } from 'src/modules/emailing/utils
export class MessageListResolver {
constructor(
private readonly messageListDuplicationService: MessageListDuplicationService,
+ private readonly addPeopleToMessageListJobService: AddPeopleToMessageListJobService,
) {}
@Mutation(() => DuplicatedMessageListDTO)
@@ -58,4 +62,27 @@ export class MessageListResolver {
authContext,
});
}
+
+ @Mutation(() => TriggerAddPeopleToMessageListJobResultDTO)
+ @UseGuards(
+ AuthPrincipalGuard({
+ userSession: {
+ standard: true,
+ impersonated: true,
+ playground: true,
+ workspaceAgnostic: false,
+ },
+ apiKey: false,
+ oauthClient: { withUser: true, withoutUser: false },
+ application: false,
+ }),
+ NoPermissionGuard,
+ )
+ async triggerAddPeopleToMessageListJob(
+ @Args('input') input: TriggerAddPeopleToMessageListJobInput,
+ ): Promise<TriggerAddPeopleToMessageListJobResultDTO> {
+ return this.addPeopleToMessageListJobService.triggerAddPeopleToMessageListJob(
+ { ...input, authContext: getWorkspaceAuthContext() },
+ );
+ }
}
diff --git a/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list-job.service.ts b/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list-job.service.ts
new file mode 100644
index 00000000000..d0cddf8df27
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list-job.service.ts
@@ -0,0 +1,140 @@
+import { Injectable } from '@nestjs/common';
+
+import { isDefined } from 'twenty-shared/utils';
+
+import { type ObjectRecordFilter } from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
+import { isUserAuthContext } from 'src/engine/core-modules/auth/guards/is-user-auth-context.guard';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import { CacheLockService } from 'src/engine/core-modules/cache-lock/cache-lock.service';
+import { InjectMessageQueue } from 'src/engine/core-modules/message-queue/decorators/message-queue.decorator';
+import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
+import { MessageQueueService } from 'src/engine/core-modules/message-queue/services/message-queue.service';
+import { findInFlightQueueJobIdByPrefix } from 'src/engine/core-modules/message-queue/utils/find-in-flight-queue-job-id-by-prefix.util';
+import {
+ PermissionsException,
+ PermissionsExceptionCode,
+ PermissionsExceptionMessage,
+} from 'src/engine/metadata-modules/permissions/permissions.exception';
+import { WorkspaceOrmManager } from 'src/engine/twenty-orm/workspace-orm.manager';
+import { ADD_PEOPLE_TO_MESSAGE_LIST_JOB_START_DELAY_MS } from 'src/modules/emailing/constants/add-people-to-message-list-job-start-delay-ms.constant';
+import {
+ MessageListException,
+ MessageListExceptionCode,
+} from 'src/modules/emailing/exceptions/message-list.exception';
+import { AddPeopleToMessageListJob } from 'src/modules/emailing/jobs/add-people-to-message-list.job';
+import { AddPeopleToMessageListService } from 'src/modules/emailing/services/add-people-to-message-list.service';
+import { type MessageListWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-list.workspace-entity';
+import { type AddPeopleToMessageListJobData } from 'src/modules/emailing/types/add-people-to-message-list-job-data.type';
+import { buildAddPeopleToMessageListJobId } from 'src/modules/emailing/utils/build-add-people-to-message-list-job-id.util';
+import { buildAddPeopleToMessageListLockKey } from 'src/modules/emailing/utils/build-add-people-to-message-list-lock-key.util';
+
+@Injectable()
+export class AddPeopleToMessageListJobService {
+ constructor(
+ private readonly addPeopleToMessageListService: AddPeopleToMessageListService,
+ private readonly workspaceOrmManager: WorkspaceOrmManager,
+ private readonly cacheLockService: CacheLockService,
+ @InjectMessageQueue(MessageQueue.campaignQueue)
+ private readonly campaignQueueService: MessageQueueService,
+ ) {}
+
+ async triggerAddPeopleToMessageListJob({
+ messageListId,
+ personFilter,
+ authContext,
+ }: {
+ messageListId: string;
+ personFilter: Partial<ObjectRecordFilter>;
+ authContext: WorkspaceAuthContext;
+ }): Promise<{ jobId: string }> {
+ if (!isUserAuthContext(authContext)) {
+ throw new PermissionsException(
+ PermissionsExceptionMessage.PERMISSION_DENIED,
+ PermissionsExceptionCode.PERMISSION_DENIED,
+ );
+ }
+
+ await this.assertMessageListExists({ messageListId, authContext });
+ await this.addPeopleToMessageListService.assertPersonCountWithinLimit({
+ authContext,
+ personFilter,
+ });
+
+ const workspaceId = authContext.workspace.id;
+
+ return this.cacheLockService.withLock(
+ () =>
+ this.enqueueAddPeopleToMessageListJob({
+ workspaceId,
+ userWorkspaceId: authContext.userWorkspaceId,
+ applicationId: authContext.application?.id,
+ messageListId,
+ personFilter,
+ }),
+ buildAddPeopleToMessageListLockKey({ workspaceId, messageListId }),
+ );
+ }
+
+ private async assertMessageListExists({
+ messageListId,
+ authContext,
+ }: {
+ messageListId: string;
+ authContext: WorkspaceAuthContext;
+ }): Promise<void> {
+ const messageList =
+ await this.workspaceOrmManager.executeInWorkspaceContext(
+ () =>
+ this.workspaceOrmManager
+ .getRepositoryWithContextPermissions<MessageListWorkspaceEntity>(
+ 'messageList',
+ )
+ .findOne({ where: { id: messageListId } }),
+ authContext,
+ );
+
+ if (!isDefined(messageList)) {
+ throw new MessageListException(
+ `Message list with ID "${messageListId}" not found`,
+ MessageListExceptionCode.MESSAGE_LIST_NOT_FOUND,
+ );
+ }
+ }
+
+ private async enqueueAddPeopleToMessageListJob(
+ data: AddPeopleToMessageListJobData,
+ ): Promise<{ jobId: string }> {
+ const jobIdPrefix = buildAddPeopleToMessageListJobId(data);
+ const inFlightJobId = findInFlightQueueJobIdByPrefix({
+ inFlightJobs: await this.campaignQueueService.getInFlightJobs(),
+ jobIdPrefix,
+ });
+
+ if (isDefined(inFlightJobId)) {
+ throw new MessageListException(
+ `People are already being added to message list ${data.messageListId}`,
+ MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_IN_PROGRESS,
+ );
+ }
+
+ const jobId =
+ await this.campaignQueueService.add<AddPeopleToMessageListJobData>(
+ AddPeopleToMessageListJob.name,
+ data,
+ {
+ id: jobIdPrefix,
+ delay: ADD_PEOPLE_TO_MESSAGE_LIST_JOB_START_DELAY_MS,
+ broadcastTo: { workspaceId: data.workspaceId },
+ },
+ );
+
+ if (!isDefined(jobId)) {
+ throw new MessageListException(
+ `Could not queue adding people to message list ${data.messageListId}`,
+ MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_FAILED,
+ );
+ }
+
+ return { jobId };
+ }
+}
diff --git a/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list.service.ts b/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list.service.ts
new file mode 100644
index 00000000000..04ef7e6dece
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/services/add-people-to-message-list.service.ts
@@ -0,0 +1,149 @@
+import { Injectable } from '@nestjs/common';
+
+import { isDefined } from 'twenty-shared/utils';
+
+import { CommonFindManyQueryRunnerService } from 'src/engine/api/common/common-query-runners/common-find-many-query-runner.service';
+import { type ObjectRecordFilter } from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
+import { ActorFromAuthContextService } from 'src/engine/core-modules/actor/services/actor-from-auth-context.service';
+import { type WorkspaceAuthContext } from 'src/engine/core-modules/auth/types/workspace-auth-context.type';
+import { CommonApiContextBuilderService } from 'src/engine/core-modules/record-crud/services/common-api-context-builder.service';
+import { UserWorkspaceAuthContextService } from 'src/engine/core-modules/user-workspace/services/user-workspace-auth-context.service';
+import { WorkspaceOrmManager } from 'src/engine/twenty-orm/workspace-orm.manager';
+import { ADD_PEOPLE_TO_MESSAGE_LIST_MAX_PERSON_COUNT } from 'src/modules/emailing/constants/add-people-to-message-list-max-person-count.constant';
+import { ADD_PEOPLE_TO_MESSAGE_LIST_PAGE_SIZE } from 'src/modules/emailing/constants/add-people-to-message-list-page-size.constant';
+import {
+ MessageListException,
+ MessageListExceptionCode,
+} from 'src/modules/emailing/exceptions/message-list.exception';
+import { type MessageListMemberWorkspaceEntity } from 'src/modules/emailing/standard-objects/message-list-member.workspace-entity';
+import { type AddPeopleToMessageListJobData } from 'src/modules/emailing/types/add-people-to-message-list-job-data.type';
+
+@Injectable()
+export class AddPeopleToMessageListService {
+ constructor(
+ private readonly commonApiContextBuilderService: CommonApiContextBuilderService,
+ private readonly commonFindManyQueryRunnerService: CommonFindManyQueryRunnerService,
+ private readonly userWorkspaceAuthContextService: UserWorkspaceAuthContextService,
+ private readonly actorFromAuthContextService: ActorFromAuthContextService,
+ private readonly workspaceOrmManager: WorkspaceOrmManager,
+ ) {}
+
+ async assertPersonCountWithinLimit({
+ authContext,
+ personFilter,
+ }: {
+ authContext: WorkspaceAuthContext;
+ personFilter: Partial<ObjectRecordFilter>;
+ }): Promise<void> {
+ const { queryRunnerContext } =
+ await this.commonApiContextBuilderService.build({
+ authContext,
+ objectName: 'person',
+ });
+ const {
+ results: { totalCount },
+ } = await this.commonFindManyQueryRunnerService.execute(
+ {
+ filter: personFilter,
+ selectedFields: { totalCount: true, edges: { node: { id: true } } },
+ first: 0,
+ },
+ queryRunnerContext,
+ );
+
+ if (!isDefined(totalCount)) {
+ throw new MessageListException(
+ 'People count is unavailable',
+ MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_FAILED,
+ );
+ }
+
+ if (Number(totalCount) > ADD_PEOPLE_TO_MESSAGE_LIST_MAX_PERSON_COUNT) {
+ throw new MessageListException(
+ `Cannot add ${totalCount} people to a list at once`,
+ MessageListExceptionCode.MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD,
+ );
+ }
+ }
+
+ async addPeopleToMessageList({
+ workspaceId,
+ userWorkspaceId,
+ applicationId,
+ messageListId,
+ personFilter,
+ }: AddPeopleToMessageListJobData): Promise<void> {
+ const authContext = await this.userWorkspaceAuthContextService.resolve({
+ workspaceId,
+ userWorkspaceId,
+ applicationId,
+ });
+
+ await this.assertPersonCountWithinLimit({ authContext, personFilter });
+
+ const { queryRunnerContext } =
+ await this.commonApiContextBuilderService.build({
+ authContext,
+ objectName: 'person',
+ });
+ const maxPageCount = Math.ceil(
+ ADD_PEOPLE_TO_MESSAGE_LIST_MAX_PERSON_COUNT /
+ ADD_PEOPLE_TO_MESSAGE_LIST_PAGE_SIZE,
+ );
+ let after: string | undefined;
+
+ for (let pageIndex = 0; pageIndex < maxPageCount; pageIndex++) {
+ const {
+ results: { records, pageInfo },
+ } = await this.commonFindManyQueryRunnerService.execute(
+ {
+ filter: personFilter,
+ selectedFields: { edges: { node: { id: true } } },
+ first: ADD_PEOPLE_TO_MESSAGE_LIST_PAGE_SIZE,
+ after,
+ },
+ queryRunnerContext,
+ );
+
+ if (records.length > 0) {
+ const members =
+ await this.actorFromAuthContextService.injectActorFieldsOnCreate({
+ records: records.map((person) => ({
+ listId: messageListId,
+ personId: person.id,
+ })),
+ objectMetadataNameSingular: 'messageListMember',
+ authContext,
+ });
+
+ await this.workspaceOrmManager.executeInWorkspaceContext(
+ () =>
+ this.workspaceOrmManager
+ .getRepositoryWithContextPermissions<MessageListMemberWorkspaceEntity>(
+ 'messageListMember',
+ )
+ .insert(members, { onConflictDoNothing: true }),
+ authContext,
+ );
+ }
+
+ if (!pageInfo.hasNextPage) {
+ return;
+ }
+
+ if (!isDefined(pageInfo.endCursor) || pageInfo.endCursor === after) {
+ throw new MessageListException(
+ 'People pagination did not advance',
+ MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_FAILED,
+ );
+ }
+
+ after = pageInfo.endCursor;
+ }
+
+ throw new MessageListException(
+ `More than ${ADD_PEOPLE_TO_MESSAGE_LIST_MAX_PERSON_COUNT} people match the selection`,
+ MessageListExceptionCode.MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD,
+ );
+ }
+}
diff --git a/packages/twenty-server/src/modules/emailing/types/add-people-to-message-list-job-data.type.ts b/packages/twenty-server/src/modules/emailing/types/add-people-to-message-list-job-data.type.ts
new file mode 100644
index 00000000000..b41c0edf4c9
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/types/add-people-to-message-list-job-data.type.ts
@@ -0,0 +1,9 @@
+import { type ObjectRecordFilter } from 'src/engine/api/graphql/workspace-query-builder/interfaces/object-record.interface';
+
+export type AddPeopleToMessageListJobData = {
+ workspaceId: string;
+ userWorkspaceId: string;
+ applicationId?: string;
+ messageListId: string;
+ personFilter: Partial<ObjectRecordFilter>;
+};
diff --git a/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-job-id.util.ts b/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-job-id.util.ts
new file mode 100644
index 00000000000..3294c941db5
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-job-id.util.ts
@@ -0,0 +1,7 @@
+export const buildAddPeopleToMessageListJobId = ({
+ workspaceId,
+ messageListId,
+}: {
+ workspaceId: string;
+ messageListId: string;
+}): string => `add-people-to-message-list.${workspaceId}.${messageListId}`;
diff --git a/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-lock-key.util.ts b/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-lock-key.util.ts
new file mode 100644
index 00000000000..8f3e1548b10
--- /dev/null
+++ b/packages/twenty-server/src/modules/emailing/utils/build-add-people-to-message-list-lock-key.util.ts
@@ -0,0 +1,7 @@
+export const buildAddPeopleToMessageListLockKey = ({
+ workspaceId,
+ messageListId,
+}: {
+ workspaceId: string;
+ messageListId: string;
+}): string => `add-people-to-message-list:${workspaceId}:${messageListId}`;
diff --git a/packages/twenty-server/src/modules/emailing/utils/message-list-graphql-api-exception-handler.util.ts b/packages/twenty-server/src/modules/emailing/utils/message-list-graphql-api-exception-handler.util.ts
index 098f95b4307..54c96ed489a 100644
--- a/packages/twenty-server/src/modules/emailing/utils/message-list-graphql-api-exception-handler.util.ts
+++ b/packages/twenty-server/src/modules/emailing/utils/message-list-graphql-api-exception-handler.util.ts
@@ -1,8 +1,10 @@
import { assertUnreachable } from 'twenty-shared/utils';
import {
+ ConflictError,
InternalServerError,
NotFoundError,
+ UserInputError,
} from 'src/engine/core-modules/graphql/utils/graphql-errors.util';
import {
MessageListException,
@@ -14,7 +16,12 @@ export const messageListGraphqlApiExceptionHandler = (error: Error) => {
switch (error.code) {
case MessageListExceptionCode.MESSAGE_LIST_NOT_FOUND:
throw new NotFoundError(error);
+ case MessageListExceptionCode.MESSAGE_LIST_TOO_MANY_PEOPLE_TO_ADD:
+ throw new UserInputError(error);
+ case MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_IN_PROGRESS:
+ throw new ConflictError(error);
case MessageListExceptionCode.MESSAGE_LIST_DUPLICATION_FAILED:
+ case MessageListExceptionCode.MESSAGE_LIST_ADD_PEOPLE_FAILED:
throw new InternalServerError(error);
default: {
return assertUnreachable(error.code);
diff --git a/packages/twenty-server/test/integration/emailing/add-people-to-message-list.integration-spec.ts b/packages/twenty-server/test/integration/emailing/add-people-to-message-list.integration-spec.ts
new file mode 100644
index 00000000000..6c1958f9580
--- /dev/null
+++ b/packages/twenty-server/test/integration/emailing/add-people-to-message-list.integration-spec.ts
@@ -0,0 +1,303 @@
+import gql from 'graphql-tag';
+import { createManyOperation } from 'test/integration/graphql/utils/create-many-operation.util';
+import { destroyManyOperationFactory } from 'test/integration/graphql/utils/destroy-many-operation-factory.util';
+import { makeGraphqlApiRequest } from 'test/integration/graphql/utils/make-graphql-api-request.util';
+import { makeMetadataApiRequest } from 'test/integration/metadata/suites/utils/make-metadata-api-request.util';
+import { updateFeatureFlag } from 'test/integration/metadata/suites/utils/update-feature-flag.util';
+import { expectEventually } from 'test/integration/utils/expect-eventually.util';
+import { getAppProviderByClassName } from 'test/integration/utils/get-app-provider-by-class-name.util';
+import { FeatureFlagKey } from 'twenty-shared/types';
+import { v4 } from 'uuid';
+
+import { type FeatureFlagService } from 'src/engine/core-modules/feature-flag/services/feature-flag.service';
+import { MessageQueue } from 'src/engine/core-modules/message-queue/message-queue.constants';
+import { type MessageQueueService } from 'src/engine/core-modules/message-queue/services/message-queue.service';
+import { getQueueToken } from 'src/engine/core-modules/message-queue/utils/get-queue-token.util';
+import { SEED_APPLE_WORKSPACE_ID } from 'src/engine/workspace-manager/dev-seeder/core/constants/seeder-workspaces.constant';
+import { type AddPeopleToMessageListService } from 'src/modules/emailing/services/add-people-to-message-list.service';
+
+const people = Array.from({ length: 1005 }, (_, index) => ({
+ id: v4(),
+ name: { firstName: `List ${index}`, lastName: v4() },
+}));
+const personIds = people.map(({ id }) => id);
+const messageListIds: string[] = [];
+
+const triggerAddPeopleToMessageListJob = (input: {
+ messageListId: string;
+ personFilter: object;
+}) =>
+ makeMetadataApiRequest({
+ query: gql`
+ mutation TriggerAddPeopleToMessageListJob(
+ $input: TriggerAddPeopleToMessageListJobInput!
+ ) {
+ triggerAddPeopleToMessageListJob(input: $input) {
+ jobId
+ }
+ }
+ `,
+ variables: { input },
+ });
+
+const getJobState = async (jobId: string) => {
+ const campaignQueue = global.app.get<MessageQueueService>(
+ getQueueToken(MessageQueue.campaignQueue),
+ { strict: false },
+ );
+
+ return (await campaignQueue.getJobs([jobId]))[jobId]?.state;
+};
+
+const waitForJobToSettle = async (jobId: string) => {
+ await expectEventually(
+ async () =>
+ expect(['completed', 'failed']).toContain(await getJobState(jobId)),
+ { timeoutMs: 90_000 },
+ );
+
+ return getJobState(jobId);
+};
+
+const addPeopleAndWait = async (input: {
+ messageListId: string;
+ personFilter: object;
+}) => {
+ const response = await triggerAddPeopleToMessageListJob(input);
+
+ expect(response.body.errors).toBeUndefined();
+
+ const jobId: string =
+ response.body.data.triggerAddPeopleToMessageListJob.jobId;
+
+ return waitForJobToSettle(jobId);
+};
+
+const createMessageList = async () => {
+ const result = await createManyOperation({
+ objectMetadataSingularName: 'messageList',
+ objectMetadataPluralName: 'messageLists',
+ data: [{ name: `Add people ${v4()}` }],
+ });
+
+ expect(result.errors).toBeUndefined();
+
+ const messageListId: string = result.data.createdRecords[0].id;
+
+ messageListIds.push(messageListId);
+
+ return messageListId;
+};
+
+const countMessageListMembers = async (messageListId: string) => {
+ const response = await makeGraphqlApiRequest({
+ query: gql`
+ query MessageListMembers($filter: MessageListMemberFilterInput) {
+ messageListMembers(filter: $filter, first: 1) {
+ totalCount
+ }
+ }
+ `,
+ variables: { filter: { listId: { eq: messageListId } } },
+ });
+
+ const totalCount: number = response.body.data.messageListMembers.totalCount;
+
+ return totalCount;
+};
+
+const findMessageListMemberPersonIds = async (messageListId: string) => {
+ const response = await makeGraphqlApiRequest({
+ query: gql`
+ query MessageListMembers($filter: MessageListMemberFilterInput) {
+ messageListMembers(filter: $filter) {
+ edges {
+ node {
+ personId
+ }
+ }
+ }
+ }
+ `,
+ variables: { filter: { listId: { eq: messageListId } } },
+ });
+ const edges: { node: { personId: string } }[] =
+ response.body.data.messageListMembers.edges;
+
+ return edges.map(({ node }) => node.personId).sort();
+};
+
+const destroyInBatches = async ({
+ objectMetadataSingularName,
+ objectMetadataPluralName,
+ field,
+ values,
+}: {
+ objectMetadataSingularName: string;
+ objectMetadataPluralName: string;
+ field: string;
+ values: string[];
+}) => {
+ for (let offset = 0; offset < values.length; offset += 100) {
+ await makeGraphqlApiRequest(
+ destroyManyOperationFactory({
+ objectMetadataSingularName,
+ objectMetadataPluralName,
+ gqlFields: 'id',
+ filter: { [field]: { in: values.slice(offset, offset + 100) } },
+ }),
+ );
+ }
+};
+
+describe('triggerAddPeopleToMessageListJob (integration)', () => {
+ let wasMessageCampaignEnabled: boolean;
+
+ beforeAll(async () => {
+ wasMessageCampaignEnabled =
+ await getAppProviderByClassName<FeatureFlagService>(
+ 'FeatureFlagService',
+ ).isFeatureEnabled(
+ FeatureFlagKey.IS_MESSAGE_CAMPAIGN_ENABLED,
+ SEED_APPLE_WORKSPACE_ID,
+ );
+
+ await updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_MESSAGE_CAMPAIGN_ENABLED,
+ value: true,
+ expectToFail: false,
+ });
+
+ for (let offset = 0; offset < people.length; offset += 100) {
+ const result = await createManyOperation({
+ objectMetadataSingularName: 'person',
+ objectMetadataPluralName: 'people',
+ data: people.slice(offset, offset + 100),
+ });
+
+ expect(result.errors).toBeUndefined();
+ }
+ }, 60_000);
+
+ afterEach(() => {
+ jest.restoreAllMocks();
+ });
+
+ afterAll(async () => {
+ await destroyInBatches({
+ objectMetadataSingularName: 'messageListMember',
+ objectMetadataPluralName: 'messageListMembers',
+ field: 'personId',
+ values: personIds,
+ });
+ await destroyInBatches({
+ objectMetadataSingularName: 'messageList',
+ objectMetadataPluralName: 'messageLists',
+ field: 'id',
+ values: messageListIds,
+ });
+ await destroyInBatches({
+ objectMetadataSingularName: 'person',
+ objectMetadataPluralName: 'people',
+ field: 'id',
+ values: personIds,
+ });
+ await updateFeatureFlag({
+ featureFlag: FeatureFlagKey.IS_MESSAGE_CAMPAIGN_ENABLED,
+ value: wasMessageCampaignEnabled,
+ expectToFail: false,
+ });
+ }, 60_000);
+
+ it('adds every person matching the filter across pages, then skips people already on the list', async () => {
+ const messageListId = await createMessageList();
+ const personFilter = { id: { in: personIds } };
+
+ expect(await addPeopleAndWait({ messageListId, personFilter })).toBe(
+ 'completed',
+ );
+ expect(await countMessageListMembers(messageListId)).toBe(people.length);
+
+ expect(await addPeopleAndWait({ messageListId, personFilter })).toBe(
+ 'completed',
+ );
+ expect(await countMessageListMembers(messageListId)).toBe(people.length);
+ }, 200_000);
+
+ it('adds only the people matching the filter', async () => {
+ const messageListId = await createMessageList();
+ const selectedPersonIds = personIds.slice(0, 3);
+
+ expect(
+ await addPeopleAndWait({
+ messageListId,
+ personFilter: { id: { in: selectedPersonIds } },
+ }),
+ ).toBe('completed');
+ expect(await findMessageListMemberPersonIds(messageListId)).toEqual(
+ [...selectedPersonIds].sort(),
+ );
+ });
+
+ it('rejects a list that does not exist', async () => {
+ const response = await triggerAddPeopleToMessageListJob({
+ messageListId: v4(),
+ personFilter: { id: { in: personIds.slice(0, 1) } },
+ });
+
+ expect(response.body.errors).toHaveLength(1);
+ expect(response.body.errors[0].extensions.code).toBe('NOT_FOUND');
+ });
+
+ it('rejects a second add to the same list until the running job finishes', async () => {
+ const messageListId = await createMessageList();
+ const personFilter = { id: { in: personIds.slice(0, 3) } };
+ const addPeopleToMessageListService =
+ getAppProviderByClassName<AddPeopleToMessageListService>(
+ 'AddPeopleToMessageListService',
+ );
+ const addPeopleToMessageList =
+ addPeopleToMessageListService.addPeopleToMessageList.bind(
+ addPeopleToMessageListService,
+ );
+ let releaseJob = () => {};
+ const jobGate = new Promise<void>((resolve) => {
+ releaseJob = resolve;
+ });
+
+ jest
+ .spyOn(addPeopleToMessageListService, 'addPeopleToMessageList')
+ .mockImplementation(async (data) => {
+ await jobGate;
+
+ return addPeopleToMessageList(data);
+ });
+
+ try {
+ const firstResponse = await triggerAddPeopleToMessageListJob({
+ messageListId,
+ personFilter,
+ });
+ const jobId: string =
+ firstResponse.body.data.triggerAddPeopleToMessageListJob.jobId;
+
+ await expectEventually(async () =>
+ expect(await getJobState(jobId)).toBe('active'),
+ );
+
+ const secondResponse = await triggerAddPeopleToMessageListJob({
+ messageListId,
+ personFilter,
+ });
+
+ expect(secondResponse.body.errors[0].extensions.code).toBe('CONFLICT');
+
+ releaseJob();
+
+ expect(await waitForJobToSettle(jobId)).toBe('completed');
+ expect(await countMessageListMembers(messageListId)).toBe(3);
+ } finally {
+ releaseJob();
+ }
+ }, 60_000);
+});
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 b80609cbb99..948dc16c0c1 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
@@ -364,6 +364,7 @@ exports[`endpoint permission declarations should match the AuthPrincipalGuard an
"MessageFolderResolver.updateMessageFolder {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"MessageFolderResolver.updateMessageFolders {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"MessageListResolver.duplicateMessageList {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
+ "MessageListResolver.triggerAddPeopleToMessageListJob {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}},{"apiKey":false,"application":false,"oauthClient":{"withUser":true,"withoutUser":false},"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"MessageSuppressionResolver.createMessageSuppression {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"MessageSuppressionResolver.deleteMessageSuppression {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",
"MessageSuppressionResolver.messageSuppressions {"applicationTarget":null,"authPrincipalGuards":[{"apiKey":true,"application":true,"oauthClient":true,"userSession":{"impersonated":true,"playground":true,"standard":true,"workspaceAgnostic":false}}]}",