diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql index e9eb790102..63cd099d1e 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.graphql +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.graphql @@ -2499,6 +2499,7 @@ type MessageChannel { id: UUID! visibility: MessageChannelVisibility! handle: String! + displayName: String type: MessageChannelType! isContactAutoCreationEnabled: Boolean! contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy! @@ -2597,6 +2598,31 @@ type SendMessageCampaignOutputDTO { skipped: CampaignSkippedRecipientsDTO! } +type MessageSuppression { + id: UUID! + createdAt: DateTime! + emailAddress: String! + reason: MessageSuppressionReason! + source: MessageSuppressionSource! + unsubscribeTopicId: UUID +} + +enum MessageSuppressionReason { + BOUNCE + COMPLAINT + UNSUBSCRIBE +} + +enum MessageSuppressionSource { + WEBHOOK + SYSTEM +} + +type MessageSuppressionList { + records: [MessageSuppression!]! + totalCount: Int! +} + type UnsubscribeTopic { id: UUID! createdAt: DateTime! @@ -3157,8 +3183,8 @@ type Query { getViewGroup(id: String!): ViewGroup getRoles: [Role!]! previewMessageCampaignAudience(input: PreviewMessageCampaignAudienceInput!): CampaignAudiencePreviewDTO! + messageSuppressions(input: FindMessageSuppressionsInput!): MessageSuppressionList! unsubscribeTopics: [UnsubscribeTopic!]! - unsubscribePagePreviewUrl: String! myMessageChannels(connectedAccountId: UUID): [MessageChannel!]! getEmailingDomains: [EmailingDomain!]! myConnectedAccounts: [ConnectedAccountPublicDTO!]! @@ -3232,6 +3258,14 @@ input PreviewMessageCampaignAudienceInput { unsubscribeTopicId: String } +input FindMessageSuppressionsInput { + reason: MessageSuppressionReason + searchTerm: String + unsubscribeTopicId: UUID + limit: Int! = 30 + offset: Int! = 0 +} + input ListAppConnectionsInput { providerName: String userWorkspaceId: String @@ -3448,6 +3482,7 @@ type Mutation { deleteUnsubscribeTopic(id: String!): Boolean! updateMessageChannel(input: UpdateMessageChannelInput!): MessageChannel! createEmailGroupChannel(input: CreateEmailGroupChannelInput!): CreateEmailGroupChannelOutput! + updateEmailGroupChannel(input: UpdateEmailGroupChannelInput!): MessageChannel! deleteEmailGroupChannel(id: UUID!): MessageChannel! createEmailingDomain(input: CreateEmailingDomainInput!): EmailingDomain! deleteEmailingDomain(id: String!): Boolean! @@ -4532,6 +4567,12 @@ input UpdateMessageChannelInputUpdates { input CreateEmailGroupChannelInput { handle: String! + displayName: String +} + +input UpdateEmailGroupChannelInput { + id: UUID! + displayName: String } input CreateEmailingDomainInput { diff --git a/packages/twenty-client-sdk/src/metadata/generated/schema.ts b/packages/twenty-client-sdk/src/metadata/generated/schema.ts index 09802f1971..11f21c72fc 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/schema.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/schema.ts @@ -2201,6 +2201,7 @@ export interface MessageChannel { id: Scalars['UUID'] visibility: MessageChannelVisibility handle: Scalars['String'] + displayName?: Scalars['String'] type: MessageChannelType isContactAutoCreationEnabled: Scalars['Boolean'] contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy @@ -2271,6 +2272,26 @@ export interface SendMessageCampaignOutputDTO { __typename: 'SendMessageCampaignOutputDTO' } +export interface MessageSuppression { + id: Scalars['UUID'] + createdAt: Scalars['DateTime'] + emailAddress: Scalars['String'] + reason: MessageSuppressionReason + source: MessageSuppressionSource + unsubscribeTopicId?: Scalars['UUID'] + __typename: 'MessageSuppression' +} + +export type MessageSuppressionReason = 'BOUNCE' | 'COMPLAINT' | 'UNSUBSCRIBE' + +export type MessageSuppressionSource = 'WEBHOOK' | 'SYSTEM' + +export interface MessageSuppressionList { + records: MessageSuppression[] + totalCount: Scalars['Int'] + __typename: 'MessageSuppressionList' +} + export interface UnsubscribeTopic { id: Scalars['UUID'] createdAt: Scalars['DateTime'] @@ -2793,8 +2814,8 @@ export interface Query { getViewGroup?: ViewGroup getRoles: Role[] previewMessageCampaignAudience: CampaignAudiencePreviewDTO + messageSuppressions: MessageSuppressionList unsubscribeTopics: UnsubscribeTopic[] - unsubscribePagePreviewUrl: Scalars['String'] myMessageChannels: MessageChannel[] getEmailingDomains: EmailingDomain[] myConnectedAccounts: ConnectedAccountPublicDTO[] @@ -2992,6 +3013,7 @@ export interface Mutation { deleteUnsubscribeTopic: Scalars['Boolean'] updateMessageChannel: MessageChannel createEmailGroupChannel: CreateEmailGroupChannelOutput + updateEmailGroupChannel: MessageChannel deleteEmailGroupChannel: MessageChannel createEmailingDomain: EmailingDomain deleteEmailingDomain: Scalars['Boolean'] @@ -5396,6 +5418,7 @@ export interface MessageChannelGenqlSelection{ id?: boolean | number visibility?: boolean | number handle?: boolean | number + displayName?: boolean | number type?: boolean | number isContactAutoCreationEnabled?: boolean | number contactAutoCreationPolicy?: boolean | number @@ -5458,6 +5481,24 @@ export interface SendMessageCampaignOutputDTOGenqlSelection{ __scalar?: boolean | number } +export interface MessageSuppressionGenqlSelection{ + id?: boolean | number + createdAt?: boolean | number + emailAddress?: boolean | number + reason?: boolean | number + source?: boolean | number + unsubscribeTopicId?: boolean | number + __typename?: boolean | number + __scalar?: boolean | number +} + +export interface MessageSuppressionListGenqlSelection{ + records?: MessageSuppressionGenqlSelection + totalCount?: boolean | number + __typename?: boolean | number + __scalar?: boolean | number +} + export interface UnsubscribeTopicGenqlSelection{ id?: boolean | number createdAt?: boolean | number @@ -6020,8 +6061,8 @@ export interface QueryGenqlSelection{ getViewGroup?: (ViewGroupGenqlSelection & { __args: {id: Scalars['String']} }) getRoles?: RoleGenqlSelection previewMessageCampaignAudience?: (CampaignAudiencePreviewDTOGenqlSelection & { __args: {input: PreviewMessageCampaignAudienceInput} }) + messageSuppressions?: (MessageSuppressionListGenqlSelection & { __args: {input: FindMessageSuppressionsInput} }) unsubscribeTopics?: UnsubscribeTopicGenqlSelection - unsubscribePagePreviewUrl?: boolean | number myMessageChannels?: (MessageChannelGenqlSelection & { __args?: {connectedAccountId?: (Scalars['UUID'] | null)} }) getEmailingDomains?: EmailingDomainGenqlSelection myConnectedAccounts?: ConnectedAccountPublicDTOGenqlSelection @@ -6079,6 +6120,8 @@ id: Scalars['ID']} export interface PreviewMessageCampaignAudienceInput {listId: Scalars['String'],unsubscribeTopicId?: (Scalars['String'] | null)} +export interface FindMessageSuppressionsInput {reason?: (MessageSuppressionReason | null),searchTerm?: (Scalars['String'] | null),unsubscribeTopicId?: (Scalars['UUID'] | null),limit: Scalars['Int'],offset: Scalars['Int']} + export interface ListAppConnectionsInput {providerName?: (Scalars['String'] | null),userWorkspaceId?: (Scalars['String'] | null),visibility?: (Scalars['String'] | null)} export interface EventLogQueryInput {table: EventLogTable,filters?: (EventLogFiltersInput | null),first?: (Scalars['Int'] | null),after?: (Scalars['String'] | null)} @@ -6246,6 +6289,7 @@ export interface MutationGenqlSelection{ deleteUnsubscribeTopic?: { __args: {id: Scalars['String']} } updateMessageChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateMessageChannelInput} }) createEmailGroupChannel?: (CreateEmailGroupChannelOutputGenqlSelection & { __args: {input: CreateEmailGroupChannelInput} }) + updateEmailGroupChannel?: (MessageChannelGenqlSelection & { __args: {input: UpdateEmailGroupChannelInput} }) deleteEmailGroupChannel?: (MessageChannelGenqlSelection & { __args: {id: Scalars['UUID']} }) createEmailingDomain?: (EmailingDomainGenqlSelection & { __args: {input: CreateEmailingDomainInput} }) deleteEmailingDomain?: { __args: {id: Scalars['String']} } @@ -6655,7 +6699,9 @@ export interface UpdateMessageChannelInput {id: Scalars['UUID'],update: UpdateMe export interface UpdateMessageChannelInputUpdates {visibility?: (MessageChannelVisibility | null),isContactAutoCreationEnabled?: (Scalars['Boolean'] | null),contactAutoCreationPolicy?: (MessageChannelContactAutoCreationPolicy | null),messageFolderImportPolicy?: (MessageFolderImportPolicy | null),isSyncEnabled?: (Scalars['Boolean'] | null),excludeNonProfessionalEmails?: (Scalars['Boolean'] | null),excludeGroupEmails?: (Scalars['Boolean'] | null)} -export interface CreateEmailGroupChannelInput {handle: Scalars['String']} +export interface CreateEmailGroupChannelInput {handle: Scalars['String'],displayName?: (Scalars['String'] | null)} + +export interface UpdateEmailGroupChannelInput {id: Scalars['UUID'],displayName?: (Scalars['String'] | null)} export interface CreateEmailingDomainInput {domain: Scalars['String']} @@ -8409,6 +8455,22 @@ export interface LogicFunctionLogsInput {applicationId?: (Scalars['UUID'] | null + const MessageSuppression_possibleTypes: string[] = ['MessageSuppression'] + export const isMessageSuppression = (obj?: { __typename?: any } | null): obj is MessageSuppression => { + if (!obj?.__typename) throw new Error('__typename is missing in "isMessageSuppression"') + return MessageSuppression_possibleTypes.includes(obj.__typename) + } + + + + const MessageSuppressionList_possibleTypes: string[] = ['MessageSuppressionList'] + export const isMessageSuppressionList = (obj?: { __typename?: any } | null): obj is MessageSuppressionList => { + if (!obj?.__typename) throw new Error('__typename is missing in "isMessageSuppressionList"') + return MessageSuppressionList_possibleTypes.includes(obj.__typename) + } + + + const UnsubscribeTopic_possibleTypes: string[] = ['UnsubscribeTopic'] export const isUnsubscribeTopic = (obj?: { __typename?: any } | null): obj is UnsubscribeTopic => { if (!obj?.__typename) throw new Error('__typename is missing in "isUnsubscribeTopic"') @@ -9386,6 +9448,17 @@ export const enumMessageChannelSyncStage = { FAILED: 'FAILED' as const } +export const enumMessageSuppressionReason = { + BOUNCE: 'BOUNCE' as const, + COMPLAINT: 'COMPLAINT' as const, + UNSUBSCRIBE: 'UNSUBSCRIBE' as const +} + +export const enumMessageSuppressionSource = { + WEBHOOK: 'WEBHOOK' as const, + SYSTEM: 'SYSTEM' as const +} + export const enumUnsubscribeTopicVisibility = { PUBLIC: 'PUBLIC' as const, PRIVATE: 'PRIVATE' as const diff --git a/packages/twenty-client-sdk/src/metadata/generated/types.ts b/packages/twenty-client-sdk/src/metadata/generated/types.ts index 87e318286e..fd6266af13 100644 --- a/packages/twenty-client-sdk/src/metadata/generated/types.ts +++ b/packages/twenty-client-sdk/src/metadata/generated/types.ts @@ -72,18 +72,20 @@ export default { 279, 280, 287, - 327, - 329, - 330, + 288, + 291, 331, - 332, + 333, 334, + 335, 336, - 348, - 355, - 362, - 363, - 492 + 338, + 340, + 353, + 360, + 367, + 368, + 498 ], "types": { "BillingProductDTO": { @@ -4975,6 +4977,9 @@ export default { "handle": [ 1 ], + "displayName": [ + 1 + ], "type": [ 275 ], @@ -5110,6 +5115,42 @@ export default { 1 ] }, + "MessageSuppression": { + "id": [ + 4 + ], + "createdAt": [ + 6 + ], + "emailAddress": [ + 1 + ], + "reason": [ + 287 + ], + "source": [ + 288 + ], + "unsubscribeTopicId": [ + 4 + ], + "__typename": [ + 1 + ] + }, + "MessageSuppressionReason": {}, + "MessageSuppressionSource": {}, + "MessageSuppressionList": { + "records": [ + 286 + ], + "totalCount": [ + 30 + ], + "__typename": [ + 1 + ] + }, "UnsubscribeTopic": { "id": [ 4 @@ -5127,7 +5168,7 @@ export default { 1 ], "visibility": [ - 287 + 291 ], "__typename": [ 1 @@ -5173,7 +5214,7 @@ export default { 1 ], "location": [ - 289 + 293 ], "__typename": [ 1 @@ -5201,13 +5242,13 @@ export default { 1 ], "IMAP": [ - 291 + 295 ], "SMTP": [ - 291 + 295 ], "CALDAV": [ - 291 + 295 ], "__typename": [ 1 @@ -5227,7 +5268,7 @@ export default { 4 ], "connectionParameters": [ - 292 + 296 ], "__typename": [ 1 @@ -5449,7 +5490,7 @@ export default { 1 ], "series": [ - 301 + 305 ], "xAxisLabel": [ 1 @@ -5498,7 +5539,7 @@ export default { 1 ], "data": [ - 303 + 307 ], "__typename": [ 1 @@ -5506,7 +5547,7 @@ export default { }, "LineChartData": { "series": [ - 304 + 308 ], "xAxisLabel": [ 1 @@ -5543,7 +5584,7 @@ export default { }, "PieChartData": { "data": [ - 306 + 310 ], "showLegend": [ 3 @@ -5648,13 +5689,13 @@ export default { }, "EventLogQueryResult": { "records": [ - 311 + 315 ], "totalCount": [ 30 ], "pageInfo": [ - 312 + 316 ], "__typename": [ 1 @@ -5718,7 +5759,7 @@ export default { 1 ], "parts": [ - 297 + 301 ], "processedAt": [ 6 @@ -5787,7 +5828,7 @@ export default { }, "AiSystemPromptPreview": { "sections": [ - 317 + 321 ], "estimatedTokenCount": [ 30 @@ -5815,7 +5856,7 @@ export default { 30 ], "error": [ - 319 + 323 ], "__typename": [ 1 @@ -5877,10 +5918,10 @@ export default { 4 ], "evaluations": [ - 323 + 327 ], "messages": [ - 315 + 319 ], "createdAt": [ 6 @@ -5911,7 +5952,7 @@ export default { 5 ], "scope": [ - 327 + 331 ], "__typename": [ 1 @@ -5926,19 +5967,19 @@ export default { 1 ], "syncStatus": [ - 329 + 333 ], "syncStage": [ - 330 + 334 ], "visibility": [ - 331 + 335 ], "isContactAutoCreationEnabled": [ 3 ], "contactAutoCreationPolicy": [ - 332 + 336 ], "isSyncEnabled": [ 3 @@ -5989,7 +6030,7 @@ export default { 1 ], "pendingSyncAction": [ - 334 + 338 ], "messageChannelId": [ 4 @@ -6007,7 +6048,7 @@ export default { "MessageFolderPendingSyncAction": {}, "CollectionHash": { "collectionName": [ - 336 + 340 ], "hash": [ 1 @@ -6071,13 +6112,13 @@ export default { }, "MinimalMetadata": { "objectMetadataItems": [ - 337 + 341 ], "views": [ - 338 + 342 ], "collectionHashes": [ - 335 + 339 ], "__typename": [ 1 @@ -6251,7 +6292,7 @@ export default { 7, { "input": [ - 341, + 345, "GetApiKeyInput!" ] } @@ -6354,7 +6395,7 @@ export default { 11, { "input": [ - 342, + 346, "AgentIdInput!" ] } @@ -6388,7 +6429,7 @@ export default { "CursorPaging!" ], "filter": [ - 343, + 347, "ObjectFilter!" ] } @@ -6397,7 +6438,7 @@ export default { 22, { "input": [ - 344, + 348, "LogicFunctionIdInput!" ] } @@ -6409,7 +6450,7 @@ export default { 5, { "input": [ - 344, + 348, "LogicFunctionIdInput!" ] } @@ -6418,7 +6459,7 @@ export default { 1, { "input": [ - 344, + 348, "LogicFunctionIdInput!" ] } @@ -6640,16 +6681,22 @@ export default { 282, { "input": [ - 345, + 349, "PreviewMessageCampaignAudienceInput!" ] } ], - "unsubscribeTopics": [ - 286 + "messageSuppressions": [ + 289, + { + "input": [ + 350, + "FindMessageSuppressionsInput!" + ] + } ], - "unsubscribePagePreviewUrl": [ - 1 + "unsubscribeTopics": [ + 290 ], "myMessageChannels": [ 273, @@ -6666,7 +6713,7 @@ export default { 240 ], "getToolIndex": [ - 296 + 300 ], "getToolInputSchema": [ 5, @@ -6678,10 +6725,10 @@ export default { } ], "webhooks": [ - 295 + 299 ], "webhook": [ - 295, + 299, { "id": [ 4, @@ -6690,7 +6737,7 @@ export default { } ], "myMessageFolders": [ - 333, + 337, { "messageChannelId": [ 4 @@ -6698,7 +6745,7 @@ export default { } ], "myCalendarChannels": [ - 328, + 332, { "connectedAccountId": [ 4 @@ -6706,17 +6753,17 @@ export default { } ], "minimalMetadata": [ - 339 + 343 ], "appKeyValue": [ - 326, + 330, { "key": [ 1, "String!" ], "scope": [ - 327 + 331 ] } ], @@ -6724,7 +6771,7 @@ export default { 201, { "filter": [ - 346 + 351 ] } ], @@ -6738,13 +6785,13 @@ export default { } ], "findWorkspaceAiStats": [ - 325 + 329 ], "chatThreads": [ - 316 + 320 ], "chatThread": [ - 316, + 320, { "id": [ 4, @@ -6753,7 +6800,7 @@ export default { } ], "chatMessages": [ - 315, + 319, { "threadId": [ 4, @@ -6762,7 +6809,7 @@ export default { } ], "chatStreamCatchupChunks": [ - 320, + 324, { "threadId": [ 4, @@ -6771,13 +6818,13 @@ export default { } ], "getAiSystemPromptPreview": [ - 318 + 322 ], "skills": [ - 314 + 318 ], "skill": [ - 314, + 318, { "id": [ 4, @@ -6786,7 +6833,7 @@ export default { } ], "agentTurns": [ - 324, + 328, { "agentId": [ 4, @@ -6852,43 +6899,43 @@ export default { 207 ], "eventLogs": [ - 313, + 317, { "input": [ - 347, + 352, "EventLogQueryInput!" ] } ], "pieChartData": [ - 307, + 311, { "input": [ - 351, + 356, "PieChartDataInput!" ] } ], "lineChartData": [ - 305, + 309, { "input": [ - 352, + 357, "LineChartDataInput!" ] } ], "barChartData": [ - 302, + 306, { "input": [ - 353, + 358, "BarChartDataInput!" ] } ], "getConnectedImapSmtpCaldavAccount": [ - 293, + 297, { "id": [ 4, @@ -6897,7 +6944,7 @@ export default { } ], "getAutoCompleteAddress": [ - 288, + 292, { "address": [ 1, @@ -6916,7 +6963,7 @@ export default { } ], "getAddressDetails": [ - 290, + 294, { "placeId": [ 1, @@ -6932,7 +6979,7 @@ export default { 265, { "input": [ - 354 + 359 ] } ], @@ -6961,10 +7008,10 @@ export default { }, "ObjectFilter": { "and": [ - 343 + 347 ], "or": [ - 343 + 347 ], "id": [ 33 @@ -7013,6 +7060,26 @@ export default { 1 ] }, + "FindMessageSuppressionsInput": { + "reason": [ + 287 + ], + "searchTerm": [ + 1 + ], + "unsubscribeTopicId": [ + 4 + ], + "limit": [ + 30 + ], + "offset": [ + 30 + ], + "__typename": [ + 1 + ] + }, "ListAppConnectionsInput": { "providerName": [ 1 @@ -7029,10 +7096,10 @@ export default { }, "EventLogQueryInput": { "table": [ - 348 + 353 ], "filters": [ - 349 + 354 ], "first": [ 30 @@ -7053,7 +7120,7 @@ export default { 1 ], "dateRange": [ - 350 + 355 ], "recordId": [ 1 @@ -7120,7 +7187,7 @@ export default { 1 ], "operationTypes": [ - 355 + 360 ], "__typename": [ 1 @@ -7132,7 +7199,7 @@ export default { 3, { "input": [ - 357, + 362, "AddQuerySubscriptionInput!" ] } @@ -7141,7 +7208,7 @@ export default { 3, { "input": [ - 358, + 363, "RemoveQueryFromEventStreamInput!" ] } @@ -7150,7 +7217,7 @@ export default { 159, { "inputs": [ - 359, + 364, "[CreateNavigationMenuItemInput!]!" ] } @@ -7159,7 +7226,7 @@ export default { 159, { "input": [ - 359, + 364, "CreateNavigationMenuItemInput!" ] } @@ -7168,7 +7235,7 @@ export default { 159, { "inputs": [ - 360, + 365, "[UpdateOneNavigationMenuItemInput!]!" ] } @@ -7177,7 +7244,7 @@ export default { 159, { "input": [ - 360, + 365, "UpdateOneNavigationMenuItemInput!" ] } @@ -7212,7 +7279,7 @@ export default { "Float!" ], "fileFolder": [ - 362, + 367, "FileFolder!" ], "fieldMetadataId": [ @@ -7251,7 +7318,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ] } @@ -7260,7 +7327,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ] } @@ -7269,7 +7336,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ] } @@ -7278,7 +7345,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ] } @@ -7287,7 +7354,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ] } @@ -7296,7 +7363,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ], "fieldMetadataId": [ @@ -7309,7 +7376,7 @@ export default { 146, { "file": [ - 363, + 368, "Upload!" ], "fieldMetadataUniversalIdentifier": [ @@ -7322,7 +7389,7 @@ export default { 56, { "input": [ - 364, + 369, "CreateViewFilterGroupInput!" ] } @@ -7335,7 +7402,7 @@ export default { "String!" ], "input": [ - 365, + 370, "UpdateViewFilterGroupInput!" ] } @@ -7362,7 +7429,7 @@ export default { 58, { "input": [ - 366, + 371, "CreateViewFilterInput!" ] } @@ -7371,7 +7438,7 @@ export default { 58, { "input": [ - 367, + 372, "UpdateViewFilterInput!" ] } @@ -7380,7 +7447,7 @@ export default { 58, { "input": [ - 369, + 374, "DeleteViewFilterInput!" ] } @@ -7389,7 +7456,7 @@ export default { 58, { "input": [ - 370, + 375, "DestroyViewFilterInput!" ] } @@ -7398,7 +7465,7 @@ export default { 64, { "input": [ - 371, + 376, "CreateViewInput!" ] } @@ -7411,7 +7478,7 @@ export default { "String!" ], "input": [ - 372, + 377, "UpdateViewInput!" ] } @@ -7438,7 +7505,7 @@ export default { 64, { "input": [ - 373, + 378, "UpsertViewWidgetInput!" ] } @@ -7447,7 +7514,7 @@ export default { 61, { "input": [ - 379, + 384, "CreateViewSortInput!" ] } @@ -7456,7 +7523,7 @@ export default { 61, { "input": [ - 380, + 385, "UpdateViewSortInput!" ] } @@ -7465,7 +7532,7 @@ export default { 3, { "input": [ - 382, + 387, "DeleteViewSortInput!" ] } @@ -7474,7 +7541,7 @@ export default { 3, { "input": [ - 383, + 388, "DestroyViewSortInput!" ] } @@ -7483,7 +7550,7 @@ export default { 54, { "input": [ - 384, + 389, "UpdateViewFieldInput!" ] } @@ -7492,7 +7559,7 @@ export default { 54, { "input": [ - 386, + 391, "CreateViewFieldInput!" ] } @@ -7501,7 +7568,7 @@ export default { 54, { "inputs": [ - 386, + 391, "[CreateViewFieldInput!]!" ] } @@ -7510,7 +7577,7 @@ export default { 54, { "input": [ - 387, + 392, "DeleteViewFieldInput!" ] } @@ -7519,7 +7586,7 @@ export default { 54, { "input": [ - 388, + 393, "DestroyViewFieldInput!" ] } @@ -7528,7 +7595,7 @@ export default { 63, { "input": [ - 389, + 394, "UpdateViewFieldGroupInput!" ] } @@ -7537,7 +7604,7 @@ export default { 63, { "input": [ - 391, + 396, "CreateViewFieldGroupInput!" ] } @@ -7546,7 +7613,7 @@ export default { 63, { "inputs": [ - 391, + 396, "[CreateViewFieldGroupInput!]!" ] } @@ -7555,7 +7622,7 @@ export default { 63, { "input": [ - 392, + 397, "DeleteViewFieldGroupInput!" ] } @@ -7564,7 +7631,7 @@ export default { 63, { "input": [ - 393, + 398, "DestroyViewFieldGroupInput!" ] } @@ -7573,7 +7640,7 @@ export default { 64, { "input": [ - 394, + 399, "UpsertFieldsWidgetInput!" ] } @@ -7582,7 +7649,7 @@ export default { 7, { "input": [ - 397, + 402, "CreateApiKeyInput!" ] } @@ -7591,7 +7658,7 @@ export default { 7, { "input": [ - 398, + 403, "UpdateApiKeyInput!" ] } @@ -7600,7 +7667,7 @@ export default { 7, { "input": [ - 399, + 404, "RevokeApiKeyInput!" ] } @@ -7755,7 +7822,7 @@ export default { 145, { "input": [ - 400, + 405, "CreateApprovedAccessDomainInput!" ] } @@ -7764,7 +7831,7 @@ export default { 3, { "input": [ - 401, + 406, "DeleteApprovedAccessDomainInput!" ] } @@ -7773,7 +7840,7 @@ export default { 145, { "input": [ - 402, + 407, "ValidateApprovedAccessDomainInput!" ] } @@ -7782,7 +7849,7 @@ export default { 119, { "input": [ - 403, + 408, "CreatePageLayoutTabInput!" ] } @@ -7795,7 +7862,7 @@ export default { "String!" ], "input": [ - 404, + 409, "UpdatePageLayoutTabInput!" ] } @@ -7813,7 +7880,7 @@ export default { 120, { "input": [ - 405, + 410, "CreatePageLayoutInput!" ] } @@ -7826,7 +7893,7 @@ export default { "String!" ], "input": [ - 406, + 411, "UpdatePageLayoutInput!" ] } @@ -7848,7 +7915,7 @@ export default { "String!" ], "input": [ - 407, + 412, "UpdatePageLayoutWithTabsInput!" ] } @@ -7884,7 +7951,7 @@ export default { 81, { "input": [ - 411, + 416, "CreatePageLayoutWidgetInput!" ] } @@ -7897,7 +7964,7 @@ export default { "String!" ], "input": [ - 412, + 417, "UpdatePageLayoutWidgetInput!" ] } @@ -7915,7 +7982,7 @@ export default { 11, { "input": [ - 413, + 418, "CreateAgentInput!" ] } @@ -7924,7 +7991,7 @@ export default { 11, { "input": [ - 414, + 419, "UpdateAgentInput!" ] } @@ -7933,7 +8000,7 @@ export default { 11, { "input": [ - 342, + 346, "AgentIdInput!" ] } @@ -7942,7 +8009,7 @@ export default { 28, { "input": [ - 415, + 420, "CreateOneObjectInput!" ] } @@ -7951,7 +8018,7 @@ export default { 28, { "input": [ - 417, + 422, "DeleteOneObjectInput!" ] } @@ -7960,7 +8027,7 @@ export default { 28, { "input": [ - 418, + 423, "UpdateOneObjectInput!" ] } @@ -7969,7 +8036,7 @@ export default { 26, { "input": [ - 420, + 425, "CreateOneIndexInput!" ] } @@ -7978,7 +8045,7 @@ export default { 26, { "input": [ - 423, + 428, "DeleteOneIndexInput!" ] } @@ -7987,7 +8054,7 @@ export default { 22, { "input": [ - 344, + 348, "LogicFunctionIdInput!" ] } @@ -7996,7 +8063,7 @@ export default { 22, { "input": [ - 424, + 429, "CreateLogicFunctionFromSourceInput!" ] } @@ -8005,7 +8072,7 @@ export default { 141, { "input": [ - 425, + 430, "ExecuteOneLogicFunctionInput!" ] } @@ -8014,7 +8081,7 @@ export default { 3, { "input": [ - 426, + 431, "UpdateLogicFunctionFromSourceInput!" ] } @@ -8023,7 +8090,7 @@ export default { 15, { "input": [ - 428, + 433, "CreateCommandMenuItemInput!" ] } @@ -8032,7 +8099,7 @@ export default { 15, { "input": [ - 429, + 434, "UpdateCommandMenuItemInput!" ] } @@ -8059,7 +8126,7 @@ export default { 14, { "input": [ - 430, + 435, "CreateFrontComponentInput!" ] } @@ -8068,7 +8135,7 @@ export default { 14, { "input": [ - 431, + 436, "UpdateFrontComponentInput!" ] } @@ -8086,7 +8153,7 @@ export default { 70, { "data": [ - 433, + 438, "ActivateWorkspaceInput!" ] } @@ -8095,7 +8162,7 @@ export default { 70, { "data": [ - 434, + 439, "UpdateWorkspaceInput!" ] } @@ -8123,7 +8190,7 @@ export default { 198, { "input": [ - 435, + 440, "CreateApplicationRegistrationInput!" ] } @@ -8132,7 +8199,7 @@ export default { 76, { "input": [ - 436, + 441, "UpdateApplicationRegistrationInput!" ] } @@ -8159,7 +8226,7 @@ export default { 2, { "input": [ - 438, + 443, "CreateApplicationRegistrationVariableInput!" ] } @@ -8168,7 +8235,7 @@ export default { 2, { "input": [ - 439, + 444, "UpdateApplicationRegistrationVariableInput!" ] } @@ -8186,7 +8253,7 @@ export default { 76, { "file": [ - 363, + 368, "Upload!" ], "universalIdentifier": [ @@ -8248,7 +8315,7 @@ export default { "UUID!" ], "input": [ - 441, + 446, "UpdateApplicationInput!" ] } @@ -8269,7 +8336,7 @@ export default { 24, { "input": [ - 442, + 447, "CreateOneFieldMetadataInput!" ] } @@ -8278,7 +8345,7 @@ export default { 24, { "input": [ - 444, + 449, "UpdateOneFieldMetadataInput!" ] } @@ -8287,7 +8354,7 @@ export default { 24, { "input": [ - 446, + 451, "DeleteOneFieldInput!" ] } @@ -8296,7 +8363,7 @@ export default { 60, { "input": [ - 447, + 452, "CreateViewGroupInput!" ] } @@ -8305,7 +8372,7 @@ export default { 60, { "inputs": [ - 447, + 452, "[CreateViewGroupInput!]!" ] } @@ -8314,7 +8381,7 @@ export default { 60, { "input": [ - 448, + 453, "UpdateViewGroupInput!" ] } @@ -8323,7 +8390,7 @@ export default { 60, { "inputs": [ - 448, + 453, "[UpdateViewGroupInput!]!" ] } @@ -8332,7 +8399,7 @@ export default { 60, { "input": [ - 450, + 455, "DeleteViewGroupInput!" ] } @@ -8341,7 +8408,7 @@ export default { 60, { "input": [ - 451, + 456, "DestroyViewGroupInput!" ] } @@ -8363,7 +8430,7 @@ export default { 49, { "createRoleInput": [ - 452, + 457, "CreateRoleInput!" ] } @@ -8372,7 +8439,7 @@ export default { 49, { "updateRoleInput": [ - 453, + 458, "UpdateRoleInput!" ] } @@ -8390,7 +8457,7 @@ export default { 46, { "upsertObjectPermissionsInput": [ - 455, + 460, "UpsertObjectPermissionsInput!" ] } @@ -8399,7 +8466,7 @@ export default { 47, { "upsertPermissionFlagsInput": [ - 457, + 462, "UpsertPermissionFlagsInput!" ] } @@ -8408,7 +8475,7 @@ export default { 41, { "upsertFieldPermissionsInput": [ - 458, + 463, "UpsertFieldPermissionsInput!" ] } @@ -8417,7 +8484,7 @@ export default { 235, { "input": [ - 460, + 465, "UpsertRowLevelPermissionPredicatesInput!" ] } @@ -8448,7 +8515,7 @@ export default { 283, { "input": [ - 463, + 468, "SendEmailViaDomainInput!" ] } @@ -8457,25 +8524,25 @@ export default { 285, { "input": [ - 464, + 469, "SendMessageCampaignInput!" ] } ], "createUnsubscribeTopic": [ - 286, + 290, { "input": [ - 465, + 470, "CreateUnsubscribeTopicInput!" ] } ], "updateUnsubscribeTopic": [ - 286, + 290, { "input": [ - 466, + 471, "UpdateUnsubscribeTopicInput!" ] } @@ -8493,7 +8560,7 @@ export default { 273, { "input": [ - 467, + 472, "UpdateMessageChannelInput!" ] } @@ -8502,11 +8569,20 @@ export default { 281, { "input": [ - 469, + 474, "CreateEmailGroupChannelInput!" ] } ], + "updateEmailGroupChannel": [ + 273, + { + "input": [ + 475, + "UpdateEmailGroupChannelInput!" + ] + } + ], "deleteEmailGroupChannel": [ 273, { @@ -8520,7 +8596,7 @@ export default { 271, { "input": [ - 470, + 476, "CreateEmailingDomainInput!" ] } @@ -8553,34 +8629,34 @@ export default { } ], "runAgent": [ - 298, + 302, { "input": [ - 471, + 477, "RunAgentInput!" ] } ], "createWebhook": [ - 295, + 299, { "input": [ - 472, + 478, "CreateWebhookInput!" ] } ], "updateWebhook": [ - 295, + 299, { "input": [ - 473, + 479, "UpdateWebhookInput!" ] } ], "deleteWebhook": [ - 295, + 299, { "id": [ 4, @@ -8589,37 +8665,37 @@ export default { } ], "updateMessageFolder": [ - 333, + 337, { "input": [ - 475, + 481, "UpdateMessageFolderInput!" ] } ], "updateMessageFolders": [ - 333, + 337, { "input": [ - 477, + 483, "UpdateMessageFoldersInput!" ] } ], "updateCalendarChannel": [ - 328, + 332, { "input": [ - 478, + 484, "UpdateCalendarChannelInput!" ] } ], "setAppKeyValue": [ - 326, + 330, { "input": [ - 480, + 486, "SetAppKeyValueInput!" ] } @@ -8632,15 +8708,15 @@ export default { "String!" ], "scope": [ - 327 + 331 ] } ], "createChatThread": [ - 316 + 320 ], "sendChatMessage": [ - 321, + 325, { "threadId": [ 4, @@ -8661,13 +8737,13 @@ export default { 1 ], "fileAttachments": [ - 481, + 487, "[FileAttachmentInput!]" ] } ], "retryChatMessage": [ - 321, + 325, { "threadId": [ 4, @@ -8679,7 +8755,7 @@ export default { } ], "answerAgentChatQuestion": [ - 321, + 325, { "threadId": [ 4, @@ -8690,7 +8766,7 @@ export default { "UUID!" ], "answers": [ - 482, + 488, "[AgentChatQuestionAnswerInput!]!" ], "modelId": [ @@ -8708,7 +8784,7 @@ export default { } ], "renameChatThread": [ - 316, + 320, { "id": [ 4, @@ -8721,7 +8797,7 @@ export default { } ], "archiveChatThread": [ - 316, + 320, { "id": [ 4, @@ -8730,7 +8806,7 @@ export default { } ], "unarchiveChatThread": [ - 316, + 320, { "id": [ 4, @@ -8757,25 +8833,25 @@ export default { } ], "createSkill": [ - 314, + 318, { "input": [ - 483, + 489, "CreateSkillInput!" ] } ], "updateSkill": [ - 314, + 318, { "input": [ - 484, + 490, "UpdateSkillInput!" ] } ], "deleteSkill": [ - 314, + 318, { "id": [ 4, @@ -8784,7 +8860,7 @@ export default { } ], "activateSkill": [ - 314, + 318, { "id": [ 4, @@ -8793,7 +8869,7 @@ export default { } ], "deactivateSkill": [ - 314, + 318, { "id": [ 4, @@ -8802,7 +8878,7 @@ export default { } ], "evaluateAgentTurn": [ - 323, + 327, { "turnId": [ 4, @@ -8811,7 +8887,7 @@ export default { } ], "runEvaluationInput": [ - 324, + 328, { "agentId": [ 4, @@ -8827,7 +8903,7 @@ export default { 248, { "input": [ - 485, + 491, "GetAuthorizationUrlForSSOInput!" ] } @@ -8993,7 +9069,7 @@ export default { 251, { "input": [ - 486 + 492 ] } ], @@ -9005,7 +9081,7 @@ export default { "String!" ], "file": [ - 363, + 368, "Upload!" ] } @@ -9148,7 +9224,7 @@ export default { 3, { "input": [ - 487, + 493, "UpdateWorkspaceMemberSettingsInput!" ] } @@ -9182,7 +9258,7 @@ export default { 208, { "input": [ - 488, + 494, "SetupOIDCSsoInput!" ] } @@ -9191,7 +9267,7 @@ export default { 208, { "input": [ - 489, + 495, "SetupSAMLSsoInput!" ] } @@ -9200,7 +9276,7 @@ export default { 204, { "input": [ - 490, + 496, "DeleteSsoInput!" ] } @@ -9209,13 +9285,13 @@ export default { 205, { "input": [ - 491, + 497, "EditSsoInput!" ] } ], "createObjectEvent": [ - 310, + 314, { "event": [ 1, @@ -9235,10 +9311,10 @@ export default { } ], "trackAnalytics": [ - 310, + 314, { "type": [ - 492, + 498, "AnalyticsType!" ], "name": [ @@ -9253,7 +9329,7 @@ export default { } ], "duplicateDashboard": [ - 308, + 312, { "id": [ 4, @@ -9275,25 +9351,25 @@ export default { } ], "createCalendarEvent": [ - 300, + 304, { "input": [ - 493, + 499, "CreateCalendarEventInput!" ] } ], "sendEmail": [ - 309, + 313, { "input": [ - 494, + 500, "SendEmailInput!" ] } ], "startChannelSync": [ - 299, + 303, { "connectedAccountId": [ 4, @@ -9302,14 +9378,14 @@ export default { } ], "saveImapSmtpCaldavAccount": [ - 294, + 298, { "handle": [ 1, "String!" ], "connectionParameters": [ - 496, + 502, "EmailAccountConnectionParameters!" ], "id": [ @@ -9321,7 +9397,7 @@ export default { 168, { "input": [ - 498, + 504, "UpdateLabPublicFeatureFlagInput!" ] } @@ -9386,7 +9462,7 @@ export default { 268, { "file": [ - 363, + 368, "Upload!" ], "applicationUniversalIdentifier": [ @@ -9394,7 +9470,7 @@ export default { "String!" ], "fileFolder": [ - 362, + 367, "FileFolder!" ], "filePath": [ @@ -9499,7 +9575,7 @@ export default { 4 ], "update": [ - 361 + 366 ], "__typename": [ 1 @@ -9610,7 +9686,7 @@ export default { 4 ], "update": [ - 368 + 373 ], "__typename": [ 1 @@ -9781,19 +9857,19 @@ export default { 4 ], "view": [ - 374 + 379 ], "viewFields": [ - 375 + 380 ], "viewFilters": [ - 376 + 381 ], "viewFilterGroups": [ - 377 + 382 ], "viewSorts": [ - 378 + 383 ], "__typename": [ 1 @@ -9942,7 +10018,7 @@ export default { 4 ], "update": [ - 381 + 386 ], "__typename": [ 1 @@ -9980,7 +10056,7 @@ export default { 4 ], "update": [ - 385 + 390 ], "__typename": [ 1 @@ -10056,7 +10132,7 @@ export default { 4 ], "update": [ - 390 + 395 ], "__typename": [ 1 @@ -10120,10 +10196,10 @@ export default { 4 ], "groups": [ - 395 + 400 ], "fields": [ - 396 + 401 ], "__typename": [ 1 @@ -10143,7 +10219,7 @@ export default { 3 ], "fields": [ - 396 + 401 ], "__typename": [ 1 @@ -10311,7 +10387,7 @@ export default { 4 ], "tabs": [ - 408 + 413 ], "__typename": [ 1 @@ -10334,7 +10410,7 @@ export default { 85 ], "widgets": [ - 409 + 414 ], "__typename": [ 1 @@ -10357,7 +10433,7 @@ export default { 4 ], "gridPosition": [ - 410 + 415 ], "position": [ 5 @@ -10406,7 +10482,7 @@ export default { 4 ], "gridPosition": [ - 410 + 415 ], "position": [ 5 @@ -10432,7 +10508,7 @@ export default { 4 ], "gridPosition": [ - 410 + 415 ], "position": [ 5 @@ -10525,7 +10601,7 @@ export default { }, "CreateOneObjectInput": { "object": [ - 416 + 421 ], "__typename": [ 1 @@ -10585,7 +10661,7 @@ export default { }, "UpdateOneObjectInput": { "update": [ - 419 + 424 ], "id": [ 4 @@ -10640,7 +10716,7 @@ export default { }, "CreateOneIndexInput": { "index": [ - 421 + 426 ], "__typename": [ 1 @@ -10651,7 +10727,7 @@ export default { 4 ], "fields": [ - 422 + 427 ], "indexType": [ 27 @@ -10736,7 +10812,7 @@ export default { 4 ], "update": [ - 427 + 432 ], "__typename": [ 1 @@ -10896,7 +10972,7 @@ export default { 4 ], "update": [ - 432 + 437 ], "__typename": [ 1 @@ -11023,7 +11099,7 @@ export default { 1 ], "update": [ - 437 + 442 ], "__typename": [ 1 @@ -11077,7 +11153,7 @@ export default { 1 ], "update": [ - 440 + 445 ], "__typename": [ 1 @@ -11107,7 +11183,7 @@ export default { }, "CreateOneFieldMetadataInput": { "field": [ - 443 + 448 ], "__typename": [ 1 @@ -11180,7 +11256,7 @@ export default { 4 ], "update": [ - 445 + 450 ], "__typename": [ 1 @@ -11275,7 +11351,7 @@ export default { 4 ], "update": [ - 449 + 454 ], "__typename": [ 1 @@ -11360,7 +11436,7 @@ export default { }, "UpdateRoleInput": { "update": [ - 454 + 459 ], "id": [ 4 @@ -11415,7 +11491,7 @@ export default { 4 ], "objectPermissions": [ - 456 + 461 ], "__typename": [ 1 @@ -11457,7 +11533,7 @@ export default { 4 ], "fieldPermissions": [ - 459 + 464 ], "__typename": [ 1 @@ -11488,10 +11564,10 @@ export default { 4 ], "predicates": [ - 461 + 466 ], "predicateGroups": [ - 462 + 467 ], "__typename": [ 1 @@ -11609,7 +11685,7 @@ export default { 1 ], "visibility": [ - 287 + 291 ], "__typename": [ 1 @@ -11626,7 +11702,7 @@ export default { 1 ], "visibility": [ - 287 + 291 ], "__typename": [ 1 @@ -11637,7 +11713,7 @@ export default { 4 ], "update": [ - 468 + 473 ], "__typename": [ 1 @@ -11673,6 +11749,20 @@ export default { "handle": [ 1 ], + "displayName": [ + 1 + ], + "__typename": [ + 1 + ] + }, + "UpdateEmailGroupChannelInput": { + "id": [ + 4 + ], + "displayName": [ + 1 + ], "__typename": [ 1 ] @@ -11721,7 +11811,7 @@ export default { 4 ], "update": [ - 474 + 480 ], "__typename": [ 1 @@ -11749,7 +11839,7 @@ export default { 4 ], "update": [ - 476 + 482 ], "__typename": [ 1 @@ -11768,7 +11858,7 @@ export default { 4 ], "update": [ - 476 + 482 ], "__typename": [ 1 @@ -11779,7 +11869,7 @@ export default { 4 ], "update": [ - 479 + 485 ], "__typename": [ 1 @@ -11787,13 +11877,13 @@ export default { }, "UpdateCalendarChannelInputUpdates": { "visibility": [ - 331 + 335 ], "isContactAutoCreationEnabled": [ 3 ], "contactAutoCreationPolicy": [ - 332 + 336 ], "isSyncEnabled": [ 3 @@ -11810,7 +11900,7 @@ export default { 5 ], "scope": [ - 327 + 331 ], "__typename": [ 1 @@ -12047,7 +12137,7 @@ export default { 1 ], "files": [ - 495 + 501 ], "__typename": [ 1 @@ -12069,13 +12159,13 @@ export default { 1 ], "IMAP": [ - 497 + 503 ], "SMTP": [ - 497 + 503 ], "CALDAV": [ - 497 + 503 ], "__typename": [ 1 @@ -12126,13 +12216,13 @@ export default { 236, { "input": [ - 500, + 506, "LogicFunctionLogsInput!" ] } ], "onAgentChatEvent": [ - 322, + 326, { "threadId": [ 4, @@ -12141,10 +12231,10 @@ export default { } ], "eventLogsLive": [ - 311, + 315, { "table": [ - 348, + 353, "EventLogTable!" ] } diff --git a/packages/twenty-front/src/generated-metadata/graphql.ts b/packages/twenty-front/src/generated-metadata/graphql.ts index 4e2a8d6287..57a53965e3 100644 --- a/packages/twenty-front/src/generated-metadata/graphql.ts +++ b/packages/twenty-front/src/generated-metadata/graphql.ts @@ -1137,6 +1137,7 @@ export type CreateCommandMenuItemInput = { }; export type CreateEmailGroupChannelInput = { + displayName?: InputMaybe; handle: Scalars['String']['input']; }; @@ -1971,6 +1972,14 @@ export type FindAvailableSsoidp = { workspace: WorkspaceNameAndId; }; +export type FindMessageSuppressionsInput = { + limit?: Scalars['Int']['input']; + offset?: Scalars['Int']['input']; + reason?: InputMaybe; + searchTerm?: InputMaybe; + unsubscribeTopicId?: InputMaybe; +}; + export type FrontComponent = { __typename?: 'FrontComponent'; applicationId: Scalars['UUID']['output']; @@ -2369,6 +2378,7 @@ export type MessageChannel = { connectedAccountId: Scalars['UUID']['output']; contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy; createdAt: Scalars['DateTime']['output']; + displayName?: Maybe; excludeGroupEmails: Scalars['Boolean']['output']; excludeNonProfessionalEmails: Scalars['Boolean']['output']; handle: Scalars['String']['output']; @@ -2456,6 +2466,33 @@ export enum MessageFolderPendingSyncAction { NONE = 'NONE' } +export type MessageSuppression = { + __typename?: 'MessageSuppression'; + createdAt: Scalars['DateTime']['output']; + emailAddress: Scalars['String']['output']; + id: Scalars['UUID']['output']; + reason: MessageSuppressionReason; + source: MessageSuppressionSource; + unsubscribeTopicId?: Maybe; +}; + +export type MessageSuppressionList = { + __typename?: 'MessageSuppressionList'; + records: Array; + totalCount: Scalars['Int']['output']; +}; + +export enum MessageSuppressionReason { + BOUNCE = 'BOUNCE', + COMPLAINT = 'COMPLAINT', + UNSUBSCRIBE = 'UNSUBSCRIBE' +} + +export enum MessageSuppressionSource { + SYSTEM = 'SYSTEM', + WEBHOOK = 'WEBHOOK' +} + export type MetadataEvent = { __typename?: 'MetadataEvent'; metadataName: Scalars['String']['output']; @@ -2685,6 +2722,7 @@ export type Mutation = { updateApplicationRegistrationVariable: ApplicationRegistrationVariable; updateCalendarChannel: CalendarChannel; updateCommandMenuItem: CommandMenuItem; + updateEmailGroupChannel: MessageChannel; updateFrontComponent: FrontComponent; updateLabPublicFeatureFlag: FeatureFlag; updateManyNavigationMenuItems: Array; @@ -3592,6 +3630,11 @@ export type MutationUpdateCommandMenuItemArgs = { }; +export type MutationUpdateEmailGroupChannelArgs = { + input: UpdateEmailGroupChannelInput; +}; + + export type MutationUpdateFrontComponentArgs = { input: UpdateFrontComponentInput; }; @@ -4457,6 +4500,7 @@ export type Query = { isApplicationStopped: Scalars['Boolean']['output']; lineChartData: LineChartData; listPlans: Array; + messageSuppressions: MessageSuppressionList; minimalMetadata: MinimalMetadata; mostlyEmptyFieldMetadataIds: Array; myCalendarChannels: Array; @@ -4474,7 +4518,6 @@ export type Query = { publicMarketplaceApps: Array; skill?: Maybe; skills: Array; - unsubscribePagePreviewUrl: Scalars['String']['output']; unsubscribeTopics: Array; validatePasswordResetToken: ValidatePasswordResetToken; webhook?: Maybe; @@ -4829,6 +4872,11 @@ export type QueryLineChartDataArgs = { }; +export type QueryMessageSuppressionsArgs = { + input: FindMessageSuppressionsInput; +}; + + export type QueryMostlyEmptyFieldMetadataIdsArgs = { objectMetadataId: Scalars['UUID']['input']; }; @@ -5459,6 +5507,11 @@ export type UpdateCommandMenuItemInput = { shortLabel?: InputMaybe; }; +export type UpdateEmailGroupChannelInput = { + displayName?: InputMaybe; + id: Scalars['UUID']['input']; +}; + export type UpdateFieldInput = { defaultValue?: InputMaybe; description?: InputMaybe; @@ -7817,6 +7870,13 @@ export type UpdateCalendarChannelMutationVariables = Exact<{ export type UpdateCalendarChannelMutation = { __typename?: 'Mutation', updateCalendarChannel: { __typename?: 'CalendarChannel', id: string, visibility: CalendarChannelVisibility, isContactAutoCreationEnabled: boolean, contactAutoCreationPolicy: CalendarChannelContactAutoCreationPolicy } }; +export type UpdateEmailGroupChannelMutationVariables = Exact<{ + input: UpdateEmailGroupChannelInput; +}>; + + +export type UpdateEmailGroupChannelMutation = { __typename?: 'Mutation', updateEmailGroupChannel: { __typename?: 'MessageChannel', id: string, displayName?: string | null } }; + export type UpdateMessageChannelMutationVariables = Exact<{ input: UpdateMessageChannelInput; }>; @@ -7862,7 +7922,7 @@ export type MyMessageChannelsQueryVariables = Exact<{ }>; -export type MyMessageChannelsQuery = { __typename?: 'Query', myMessageChannels: Array<{ __typename?: 'MessageChannel', id: string, handle: string, visibility: MessageChannelVisibility, type: MessageChannelType, isContactAutoCreationEnabled: boolean, contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy, messageFolderImportPolicy: MessageFolderImportPolicy, excludeNonProfessionalEmails: boolean, excludeGroupEmails: boolean, isSyncEnabled: boolean, syncStatus: MessageChannelSyncStatus, syncStage: MessageChannelSyncStage, syncStageStartedAt?: string | null, connectedAccountId: string, createdAt: string, updatedAt: string, connectedAccount?: { __typename?: 'ConnectedAccountPublicDTO', id: string, handle: string } | null }> }; +export type MyMessageChannelsQuery = { __typename?: 'Query', myMessageChannels: Array<{ __typename?: 'MessageChannel', id: string, handle: string, displayName?: string | null, visibility: MessageChannelVisibility, type: MessageChannelType, isContactAutoCreationEnabled: boolean, contactAutoCreationPolicy: MessageChannelContactAutoCreationPolicy, messageFolderImportPolicy: MessageFolderImportPolicy, excludeNonProfessionalEmails: boolean, excludeGroupEmails: boolean, isSyncEnabled: boolean, syncStatus: MessageChannelSyncStatus, syncStage: MessageChannelSyncStage, syncStageStartedAt?: string | null, connectedAccountId: string, createdAt: string, updatedAt: string, connectedAccount?: { __typename?: 'ConnectedAccountPublicDTO', id: string, handle: string } | null }> }; export type MyMessageFoldersQueryVariables = Exact<{ messageChannelId?: InputMaybe; @@ -8473,10 +8533,12 @@ export type UpdateUnsubscribeTopicMutationVariables = Exact<{ export type UpdateUnsubscribeTopicMutation = { __typename?: 'Mutation', updateUnsubscribeTopic: { __typename?: 'UnsubscribeTopic', id: string, name?: string | null, description?: string | null, visibility: UnsubscribeTopicVisibility } }; -export type UnsubscribePagePreviewUrlQueryVariables = Exact<{ [key: string]: never; }>; +export type MessageSuppressionsQueryVariables = Exact<{ + input: FindMessageSuppressionsInput; +}>; -export type UnsubscribePagePreviewUrlQuery = { __typename?: 'Query', unsubscribePagePreviewUrl: string }; +export type MessageSuppressionsQuery = { __typename?: 'Query', messageSuppressions: { __typename?: 'MessageSuppressionList', totalCount: number, records: Array<{ __typename?: 'MessageSuppression', id: string, createdAt: string, emailAddress: string, reason: MessageSuppressionReason, unsubscribeTopicId?: string | null }> } }; export type GetUsageAnalyticsQueryVariables = Exact<{ input?: InputMaybe; @@ -9106,13 +9168,14 @@ export const DeleteEmailGroupChannelDocument = {"kind":"Document","definitions": export const SaveImapSmtpCaldavAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"SaveImapSmtpCaldavAccount"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"handle"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectionParameters"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"EmailAccountConnectionParameters"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"saveImapSmtpCaldavAccount"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"handle"},"value":{"kind":"Variable","name":{"kind":"Name","value":"handle"}}},{"kind":"Argument","name":{"kind":"Name","value":"connectionParameters"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectionParameters"}}},{"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":"success"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}}]}}]}}]} as unknown as DocumentNode; export const StartChannelSyncDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"StartChannelSync"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startChannelSync"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"success"}}]}}]}}]} as unknown as DocumentNode; export const UpdateCalendarChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateCalendarChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateCalendarChannelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateCalendarChannel"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}}]}}]}}]} as unknown as DocumentNode; +export const UpdateEmailGroupChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateEmailGroupChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateEmailGroupChannelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateEmailGroupChannel"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}}]}}]}}]} as unknown as DocumentNode; export const UpdateMessageChannelDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMessageChannel"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMessageChannelInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMessageChannel"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"excludeNonProfessionalEmails"}},{"kind":"Field","name":{"kind":"Name","value":"excludeGroupEmails"}},{"kind":"Field","name":{"kind":"Name","value":"messageFolderImportPolicy"}}]}}]}}]} as unknown as DocumentNode; export const UpdateMessageFolderDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMessageFolder"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMessageFolderInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMessageFolder"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isSynced"}}]}}]}}]} as unknown as DocumentNode; export const UpdateMessageFoldersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateMessageFolders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateMessageFoldersInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateMessageFolders"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"isSynced"}},{"kind":"Field","name":{"kind":"Name","value":"pendingSyncAction"}}]}}]}}]} as unknown as DocumentNode; export const GetConnectedImapSmtpCaldavAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetConnectedImapSmtpCaldavAccount"},"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":"getConnectedImapSmtpCaldavAccount"},"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":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const MyCalendarChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyCalendarChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myCalendarChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; export const MyConnectedAccountsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myConnectedAccounts"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"provider"}},{"kind":"Field","name":{"kind":"Name","value":"authFailedAt"}},{"kind":"Field","name":{"kind":"Name","value":"archivedAt"}},{"kind":"Field","name":{"kind":"Name","value":"scopes"}},{"kind":"Field","name":{"kind":"Name","value":"handleAliases"}},{"kind":"Field","name":{"kind":"Name","value":"lastSignedInAt"}},{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"connectionProviderId"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"lastCredentialsRefreshedAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectionParameters"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"IMAP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"SMTP"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"port"}},{"kind":"Field","name":{"kind":"Name","value":"connectionSecurity"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}},{"kind":"Field","name":{"kind":"Name","value":"CALDAV"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"host"}},{"kind":"Field","name":{"kind":"Name","value":"username"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; -export const MyMessageChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"messageFolderImportPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"excludeNonProfessionalEmails"}},{"kind":"Field","name":{"kind":"Name","value":"excludeGroupEmails"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; +export const MyMessageChannelsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageChannels"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageChannels"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"connectedAccountId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"connectedAccountId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}},{"kind":"Field","name":{"kind":"Name","value":"displayName"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}},{"kind":"Field","name":{"kind":"Name","value":"type"}},{"kind":"Field","name":{"kind":"Name","value":"isContactAutoCreationEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"contactAutoCreationPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"messageFolderImportPolicy"}},{"kind":"Field","name":{"kind":"Name","value":"excludeNonProfessionalEmails"}},{"kind":"Field","name":{"kind":"Name","value":"excludeGroupEmails"}},{"kind":"Field","name":{"kind":"Name","value":"isSyncEnabled"}},{"kind":"Field","name":{"kind":"Name","value":"syncStatus"}},{"kind":"Field","name":{"kind":"Name","value":"syncStage"}},{"kind":"Field","name":{"kind":"Name","value":"syncStageStartedAt"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccountId"}},{"kind":"Field","name":{"kind":"Name","value":"connectedAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"handle"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; export const MyMessageFoldersDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MyMessageFolders"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UUID"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"myMessageFolders"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"messageChannelId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"messageChannelId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"isSynced"}},{"kind":"Field","name":{"kind":"Name","value":"isSentFolder"}},{"kind":"Field","name":{"kind":"Name","value":"parentFolderId"}},{"kind":"Field","name":{"kind":"Name","value":"externalId"}},{"kind":"Field","name":{"kind":"Name","value":"pendingSyncAction"}},{"kind":"Field","name":{"kind":"Name","value":"messageChannelId"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode; export const ClaimApplicationRegistrationOwnershipDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"ClaimApplicationRegistrationOwnership"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"claimApplicationRegistrationOwnership"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"applicationRegistrationId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"applicationRegistrationId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]} as unknown as DocumentNode; export const DeleteApplicationRegistrationDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteApplicationRegistration"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteApplicationRegistration"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode; @@ -9197,7 +9260,7 @@ export const VerifyTwoFactorAuthenticationMethodForAuthenticatedUserDocument = { export const CreateUnsubscribeTopicDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateUnsubscribeTopic"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateUnsubscribeTopicInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createUnsubscribeTopic"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}}]}}]}}]} as unknown as DocumentNode; export const DeleteUnsubscribeTopicDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUnsubscribeTopic"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUnsubscribeTopic"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}]}]}}]} as unknown as DocumentNode; export const UpdateUnsubscribeTopicDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UpdateUnsubscribeTopic"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"UpdateUnsubscribeTopicInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"updateUnsubscribeTopic"},"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":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"visibility"}}]}}]}}]} as unknown as DocumentNode; -export const UnsubscribePagePreviewUrlDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"UnsubscribePagePreviewUrl"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"unsubscribePagePreviewUrl"}}]}}]} as unknown as DocumentNode; +export const MessageSuppressionsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"MessageSuppressions"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"FindMessageSuppressionsInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"messageSuppressions"},"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":"records"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"emailAddress"}},{"kind":"Field","name":{"kind":"Name","value":"reason"}},{"kind":"Field","name":{"kind":"Name","value":"unsubscribeTopicId"}}]}},{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}}]}}]} as unknown as DocumentNode; export const GetUsageAnalyticsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"GetUsageAnalytics"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"UsageAnalyticsInput"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"getUsageAnalytics"},"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":"usageByUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"label"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usageByOperationType"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"usageByModel"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"key"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"timeSeries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}},{"kind":"Field","name":{"kind":"Name","value":"periodStart"}},{"kind":"Field","name":{"kind":"Name","value":"periodEnd"}},{"kind":"Field","name":{"kind":"Name","value":"userDailyUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"userWorkspaceId"}},{"kind":"Field","name":{"kind":"Name","value":"dailyUsage"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"date"}},{"kind":"Field","name":{"kind":"Name","value":"creditsUsed"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const DeleteUserAccountDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserAccount"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUser"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; export const DeleteUserWorkspaceDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"DeleteUserWorkspace"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"deleteUserFromWorkspace"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"workspaceMemberIdToDelete"},"value":{"kind":"Variable","name":{"kind":"Name","value":"workspaceMemberIdToDelete"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}}]}}]}}]} as unknown as DocumentNode; diff --git a/packages/twenty-front/src/modules/accounts/types/MessageChannel.ts b/packages/twenty-front/src/modules/accounts/types/MessageChannel.ts index fa99cacb86..32227dfe17 100644 --- a/packages/twenty-front/src/modules/accounts/types/MessageChannel.ts +++ b/packages/twenty-front/src/modules/accounts/types/MessageChannel.ts @@ -10,6 +10,7 @@ import { type MessageChannelVisibility } from '~/generated/graphql'; export type MessageChannel = { id: string; handle: string; + displayName: string | null; visibility: MessageChannelVisibility; type: MessageChannelType; isContactAutoCreationEnabled: boolean; diff --git a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx index 9fa0d10da8..4b9140c4b6 100644 --- a/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx +++ b/packages/twenty-front/src/modules/app/components/SettingsRoutes.tsx @@ -214,6 +214,14 @@ const SettingsWorkspaceUnsubscribeTopicDetail = lazy(() => ), ); +const SettingsWorkspaceUnsubscribe = lazy(() => + import('~/pages/settings/communications/SettingsWorkspaceUnsubscribe').then( + (module) => ({ + default: module.SettingsWorkspaceUnsubscribe, + }), + ), +); + const SettingsSubdomainPage = lazy(() => import('~/pages/settings/domains/SettingsSubdomainPage').then((module) => ({ default: module.SettingsSubdomainPage, @@ -724,6 +732,10 @@ export const SettingsRoutes = ({ isAdminPageEnabled }: SettingsRoutesProps) => ( path={SettingsPath.UnsubscribeTopicDetail} element={} /> + } + /> } /> { const { createEmailGroupChannel, loading } = useCreateEmailGroupChannel(); const [handle, setHandle] = useState(''); + const [displayName, setDisplayName] = useState(''); const isHandleValidEmail = z.email().safeParse(handle).success; const canSave = isHandleValidEmail && !loading; const handleSave = useCallback(async () => { - const result = await createEmailGroupChannel(handle); + const trimmedDisplayName = displayName.trim(); + const result = await createEmailGroupChannel( + handle, + trimmedDisplayName.length > 0 ? trimmedDisplayName : undefined, + ); const messageChannelId = result.data?.createEmailGroupChannel.messageChannel.id; @@ -34,7 +39,7 @@ export const SettingsAccountsNewEmailGroupChannel = () => { messageChannelId, }); } - }, [createEmailGroupChannel, handle, navigate]); + }, [createEmailGroupChannel, displayName, handle, navigate]); return ( { disabled={loading} /> +
+ + { + if (canSave) { + handleSave(); + } + }} + disabled={loading} + /> +
); diff --git a/packages/twenty-front/src/modules/settings/accounts/graphql/mutations/updateEmailGroupChannel.ts b/packages/twenty-front/src/modules/settings/accounts/graphql/mutations/updateEmailGroupChannel.ts new file mode 100644 index 0000000000..e73a71bca0 --- /dev/null +++ b/packages/twenty-front/src/modules/settings/accounts/graphql/mutations/updateEmailGroupChannel.ts @@ -0,0 +1,10 @@ +import { gql } from '@apollo/client'; + +export const UPDATE_EMAIL_GROUP_CHANNEL = gql` + mutation UpdateEmailGroupChannel($input: UpdateEmailGroupChannelInput!) { + updateEmailGroupChannel(input: $input) { + id + displayName + } + } +`; diff --git a/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyMessageChannels.ts b/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyMessageChannels.ts index bb1a377cb4..bb9de2bfbd 100644 --- a/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyMessageChannels.ts +++ b/packages/twenty-front/src/modules/settings/accounts/graphql/queries/getMyMessageChannels.ts @@ -5,6 +5,7 @@ export const GET_MY_MESSAGE_CHANNELS = gql` myMessageChannels(connectedAccountId: $connectedAccountId) { id handle + displayName visibility type isContactAutoCreationEnabled diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useCreateEmailGroupChannel.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useCreateEmailGroupChannel.ts index 12fb62f4aa..a8d97ec4f4 100644 --- a/packages/twenty-front/src/modules/settings/accounts/hooks/useCreateEmailGroupChannel.ts +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useCreateEmailGroupChannel.ts @@ -30,6 +30,7 @@ type CreateEmailGroupChannelResult = { type CreateEmailGroupChannelVariables = { input: { handle: string; + displayName?: string; }; }; @@ -47,9 +48,9 @@ export const useCreateEmailGroupChannel = () => { ], }); - const createEmailGroupChannel = (handle: string) => + const createEmailGroupChannel = (handle: string, displayName?: string) => mutate({ - variables: { input: { handle } }, + variables: { input: { handle, displayName } }, onError: (mutationError) => { enqueueErrorSnackBar({ apolloError: mutationError }); }, diff --git a/packages/twenty-front/src/modules/settings/accounts/hooks/useUpdateEmailGroupChannel.ts b/packages/twenty-front/src/modules/settings/accounts/hooks/useUpdateEmailGroupChannel.ts new file mode 100644 index 0000000000..ba7272b318 --- /dev/null +++ b/packages/twenty-front/src/modules/settings/accounts/hooks/useUpdateEmailGroupChannel.ts @@ -0,0 +1,32 @@ +import { useMutation } from '@apollo/client/react'; + +import { UPDATE_EMAIL_GROUP_CHANNEL } from '@/settings/accounts/graphql/mutations/updateEmailGroupChannel'; +import { GET_MY_MESSAGE_CHANNELS } from '@/settings/accounts/graphql/queries/getMyMessageChannels'; + +type UpdateEmailGroupChannelResult = { + updateEmailGroupChannel: { + id: string; + displayName: string | null; + }; +}; + +type UpdateEmailGroupChannelVariables = { + input: { + id: string; + displayName?: string | null; + }; +}; + +export const useUpdateEmailGroupChannel = () => { + const [mutate, { loading, error }] = useMutation< + UpdateEmailGroupChannelResult, + UpdateEmailGroupChannelVariables + >(UPDATE_EMAIL_GROUP_CHANNEL, { + refetchQueries: [{ query: GET_MY_MESSAGE_CHANNELS }], + }); + + const updateEmailGroupChannel = (id: string, displayName: string | null) => + mutate({ variables: { input: { id, displayName } } }); + + return { updateEmailGroupChannel, loading, error }; +}; diff --git a/packages/twenty-front/src/modules/settings/components/SettingsPaginationControls.tsx b/packages/twenty-front/src/modules/settings/components/SettingsPaginationControls.tsx new file mode 100644 index 0000000000..04adb3f61c --- /dev/null +++ b/packages/twenty-front/src/modules/settings/components/SettingsPaginationControls.tsx @@ -0,0 +1,55 @@ +import { styled } from '@linaria/react'; +import { useLingui } from '@lingui/react/macro'; +import { isDefined } from 'twenty-shared/utils'; +import { Button } from 'twenty-ui/input'; +import { themeCssVariables } from 'twenty-ui/theme-constants'; + +type SettingsPaginationControlsProps = { + page: number; + pageCount: number; + onPageChange: (page: number) => void; + isLoading?: boolean; + hasNextPage?: boolean; +}; + +const StyledContainer = styled.div` + align-items: center; + display: flex; + gap: ${themeCssVariables.spacing[2]}; + justify-content: flex-end; + padding-top: ${themeCssVariables.spacing[2]}; +`; + +export const SettingsPaginationControls = ({ + page, + pageCount, + onPageChange, + isLoading = false, + hasNextPage, +}: SettingsPaginationControlsProps) => { + const { t } = useLingui(); + + const isNextDisabled = isDefined(hasNextPage) + ? !hasNextPage + : page + 1 >= pageCount; + + return ( + +