@bcrumbs.net/inbox 0.0.40 → 0.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/assets/ar/inbox.json +238 -229
  2. package/assets/en/inbox.json +240 -231
  3. package/index.cjs.d.ts +1 -1
  4. package/index.cjs.js +46600 -45924
  5. package/index.esm.d.ts +1 -1
  6. package/index.esm.js +44629 -43953
  7. package/package.json +4 -4
  8. package/src/app/auth/components/UserAvatar/index.d.ts +2 -10
  9. package/src/app/auth/hooks/useCurrentUser.d.ts +13 -0
  10. package/src/app/auth/hooks/useRoles.d.ts +6 -0
  11. package/src/app/auth/pages/PartnerLogin.d.ts +11 -0
  12. package/src/app/auth/pages/Profile.d.ts +0 -7
  13. package/src/app/auth/pages/Welcome.d.ts +1 -2
  14. package/src/app/auth/redux/actions/loginAction.d.ts +2 -14
  15. package/src/app/auth/redux/actions/registerAction.d.ts +0 -16
  16. package/src/app/auth/redux/auth.slice.d.ts +8 -25
  17. package/src/app/auth/redux/auth.types.d.ts +2 -2
  18. package/src/app/broadcast/components/BroadcastAnalysisCards.d.ts +11 -0
  19. package/src/app/broadcast/components/BroadcastAnalysisCharts.d.ts +10 -0
  20. package/src/app/broadcast/components/BroadcastAnalysisContent.d.ts +7 -0
  21. package/src/app/broadcast/components/BroadcastAnalysisEngagementFunnel.d.ts +8 -0
  22. package/src/app/broadcast/components/BroadcastAnalysisHeader.d.ts +6 -0
  23. package/src/app/broadcast/components/BroadcastAnalysisMessageStatusChart.d.ts +10 -0
  24. package/src/app/broadcast/components/BroadcastAnalysisReciepients.d.ts +3 -0
  25. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +15 -0
  26. package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +12 -0
  27. package/src/app/broadcast/components/BroadcastListTable.d.ts +8 -0
  28. package/src/app/broadcast/components/BroadcastSampleContacts.d.ts +5 -2
  29. package/src/app/broadcast/components/BroadcastSectionCard.d.ts +6 -1
  30. package/src/app/broadcast/components/StatisticsCard.d.ts +7 -3
  31. package/src/app/broadcast/pages/BroadcastAnalysis.d.ts +2 -0
  32. package/src/app/broadcast/utils/helper.d.ts +1 -0
  33. package/src/app/contact/components/ContactFormFields.d.ts +3 -1
  34. package/src/app/contact/config/contactForm.d.ts +1 -0
  35. package/src/app/contact/hooks/useAgentOptions.d.ts +4 -10
  36. package/src/app/contact/hooks/useLifecycleSelectOptions.d.ts +9 -0
  37. package/src/app/contact/types.d.ts +1 -0
  38. package/src/app/generic/hooks/usePaginatedQuery.d.ts +1 -1
  39. package/src/app/inbox/components/Chat/ChatContent.d.ts +30 -0
  40. package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +3 -2
  41. package/src/app/inbox/components/NewDetails/ClientSection.d.ts +10 -0
  42. package/src/app/inbox/components/NewDetails/index.d.ts +3 -1
  43. package/src/app/inbox/components/Popups/SummaryPopup.d.ts +7 -0
  44. package/src/app/inbox/hooks/useCanContribute.d.ts +2 -2
  45. package/src/app/inbox/hooks/useConvFilters.d.ts +4 -5
  46. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +1 -1
  47. package/src/app/inbox/hooks/useTags.d.ts +1 -1
  48. package/src/app/inbox/utils/convs.d.ts +6 -4
  49. package/src/app/resources/config/broadcast.d.ts +1 -3
  50. package/src/app/resources/config/types.d.ts +1 -0
  51. package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +2 -2
  52. package/src/app/subscriptions/pages/Subscriptions.d.ts +2 -8
  53. package/src/assets/locales/translations.d.ts +62 -0
  54. package/src/config/constants.d.ts +2 -2
  55. package/src/environments/environment.d.ts +2 -4
  56. package/src/environments/environment.prod.d.ts +2 -4
  57. package/src/environments/environment.wakeed.d.ts +2 -0
  58. package/src/environments/types.d.ts +16 -0
  59. package/src/graphql.autogenerated.d.ts +610 -0
  60. package/src/lib/inbox.d.ts +1 -0
  61. package/src/store/index.d.ts +72 -225
  62. package/src/store/reducers.d.ts +8 -25
  63. package/src/utils/globalHelper.d.ts +6 -0
@@ -428,6 +428,48 @@ export type BroadcastLaunchInput = {
428
428
  id: Scalars['ID']['input'];
429
429
  workspaceId: Scalars['Int']['input'];
430
430
  };
431
+ /** BroadcastMessageStatus represents a broadcast message with its status and client information. */
432
+ export type BroadcastMessageStatus = {
433
+ __typename?: 'BroadcastMessageStatus';
434
+ /** The client country. */
435
+ clientCountry?: Maybe<Scalars['String']['output']>;
436
+ /** The client email. */
437
+ clientEmail?: Maybe<Scalars['String']['output']>;
438
+ /** The client lifecycle/stage id. */
439
+ clientLifecycle?: Maybe<Scalars['String']['output']>;
440
+ /** The client name. */
441
+ clientName?: Maybe<Scalars['String']['output']>;
442
+ /** The client phone number. */
443
+ clientPhone?: Maybe<Scalars['String']['output']>;
444
+ /** The client tags. */
445
+ clientTags?: Maybe<Array<Scalars['String']['output']>>;
446
+ /** The date and time when the message was created. */
447
+ createdAt: Scalars['DateTime']['output'];
448
+ /** The failure reason if the message failed. */
449
+ failureReason?: Maybe<Scalars['String']['output']>;
450
+ /** The message id. */
451
+ messageId: Scalars['ID']['output'];
452
+ /** The message status. */
453
+ status?: Maybe<MessageStatus>;
454
+ };
455
+ /** BroadcastMessageStatusesInput is an input of the broadcast message statuses query. */
456
+ export type BroadcastMessageStatusesInput = {
457
+ /** The broadcast id to fetch message statuses for. */
458
+ broadcastId: Scalars['ID']['input'];
459
+ /** Filter by client country. */
460
+ country?: InputMaybe<Scalars['String']['input']>;
461
+ /** Filter by client lifecycle/stage id. */
462
+ lifecycle?: InputMaybe<Scalars['String']['input']>;
463
+ /** Filter by message status. */
464
+ status?: InputMaybe<MessageStatus>;
465
+ workspaceId: Scalars['Int']['input'];
466
+ };
467
+ /** BroadcastMessageStatusesPayload is a payload of the broadcast message statuses query. */
468
+ export type BroadcastMessageStatusesPayload = {
469
+ __typename?: 'BroadcastMessageStatusesPayload';
470
+ nodes?: Maybe<Array<BroadcastMessageStatus>>;
471
+ pageInfo?: Maybe<PageInfo>;
472
+ };
431
473
  /** BroadcastPatchInput is an input of the broadcast patch mutation. */
432
474
  export type BroadcastPatchInput = {
433
475
  /** The stage of the clients that will receive the broadcast. (Used to target a specific stage of clients) */
@@ -565,6 +607,32 @@ export type BulkImportContactsResult = {
565
607
  /** The job ID to track the import progress. */
566
608
  jobId: Scalars['String']['output'];
567
609
  };
610
+ /**
611
+ * BulkPermanentDeleteClientsByFilterInput is an input for the bulk permanent delete clients by filter mutation.
612
+ * This completely removes clients from the database (not just soft delete).
613
+ */
614
+ export type BulkPermanentDeleteClientsByFilterInput = {
615
+ /** The stage ID to filter clients. Clients with this stage will be permanently deleted. */
616
+ stageId?: InputMaybe<Scalars['String']['input']>;
617
+ /** Array of tags to filter clients. Clients with any of these tags will be permanently deleted. */
618
+ tags?: InputMaybe<Array<Scalars['String']['input']>>;
619
+ workspaceId: Scalars['Int']['input'];
620
+ };
621
+ /**
622
+ * BulkPermanentDeleteClientsInput is an input for the bulk permanent delete clients mutation.
623
+ * This completely removes clients from the database (not just soft delete).
624
+ */
625
+ export type BulkPermanentDeleteClientsInput = {
626
+ /** Array of client IDs to permanently delete. */
627
+ ids: Array<Scalars['ID']['input']>;
628
+ workspaceId: Scalars['Int']['input'];
629
+ };
630
+ /** BulkPermanentDeleteClientsResult is the result of a bulk permanent delete clients mutation. */
631
+ export type BulkPermanentDeleteClientsResult = {
632
+ __typename?: 'BulkPermanentDeleteClientsResult';
633
+ /** Number of clients successfully permanently deleted. */
634
+ deletedCount: Scalars['Int']['output'];
635
+ };
568
636
  /** Client is an entity that represents a client (The contact that is sending messages to a workspace channel). */
569
637
  export type Client = {
570
638
  __typename?: 'Client';
@@ -580,6 +648,8 @@ export type Client = {
580
648
  createdAt: Scalars['DateTime']['output'];
581
649
  /** The default agent id to auto-assign new conversations started by this client (when integration auto assignment is enabled). */
582
650
  defaultAgentId?: Maybe<Scalars['ID']['output']>;
651
+ /** The date and time when the client was deleted (archive date). */
652
+ deletedAt?: Maybe<Scalars['DateTime']['output']>;
583
653
  /** The email of the client. It can be modified by the user. */
584
654
  email?: Maybe<Scalars['String']['output']>;
585
655
  /** The external client id of the client (The id of the client in the external system, it will be the phone number in case of WhatsApp integration). */
@@ -1010,6 +1080,24 @@ export type ConvsReportPayload = {
1010
1080
  __typename?: 'ConvsReportPayload';
1011
1081
  nodes?: Maybe<Array<ConversationReport>>;
1012
1082
  };
1083
+ /** CreateWorkspaceInput is an input of the createWorkspace mutation. */
1084
+ export type CreateWorkspaceInput = {
1085
+ accountId?: InputMaybe<Scalars['String']['input']>;
1086
+ address?: InputMaybe<Scalars['String']['input']>;
1087
+ city?: InputMaybe<Scalars['String']['input']>;
1088
+ companyUserId?: InputMaybe<Scalars['Int']['input']>;
1089
+ contactPersonEmail?: InputMaybe<Scalars['String']['input']>;
1090
+ contactPersonName?: InputMaybe<Scalars['String']['input']>;
1091
+ contactPersonPhoneNumber?: InputMaybe<Scalars['String']['input']>;
1092
+ country?: InputMaybe<Scalars['String']['input']>;
1093
+ /** The name of the workspace. */
1094
+ name: Scalars['String']['input'];
1095
+ phoneNumber?: InputMaybe<Scalars['String']['input']>;
1096
+ subscriptionType?: InputMaybe<Scalars['String']['input']>;
1097
+ taxNumber?: InputMaybe<Scalars['String']['input']>;
1098
+ taxOffice?: InputMaybe<Scalars['String']['input']>;
1099
+ website?: InputMaybe<Scalars['String']['input']>;
1100
+ };
1013
1101
  /**
1014
1102
  * ErrorCode is an enum for the error codes.
1015
1103
  * - UNAUTHENTICATED: The user is not authenticated.
@@ -1429,6 +1517,16 @@ export type Mutation = {
1429
1517
  bulkImportContacts: BulkImportContactsResult;
1430
1518
  /** Bulk patch tags. You should have the MANAGE_WORKSPACE permission to bulk patch tags. */
1431
1519
  bulkPatchTags: Scalars['Boolean']['output'];
1520
+ /**
1521
+ * Bulk permanently delete clients by IDs. This completely removes clients from the database (not just soft delete).
1522
+ * You should have the MANAGE_CLIENTS permission to permanently delete clients.
1523
+ */
1524
+ bulkPermanentDeleteClients: BulkPermanentDeleteClientsResult;
1525
+ /**
1526
+ * Bulk permanently delete clients by tags and stageId. This completely removes clients from the database (not just soft delete).
1527
+ * You should have the MANAGE_WORKSPACE permission to permanently delete clients.
1528
+ */
1529
+ bulkPermanentDeleteClientsByFilter: BulkPermanentDeleteClientsResult;
1432
1530
  /**
1433
1531
  * Cancel a scheduled broadcast that hasn't started yet (scheduled -> draft).
1434
1532
  * You should have the MANAGE_CONVS permission to cancel a broadcast.
@@ -1447,6 +1545,8 @@ export type Mutation = {
1447
1545
  /** Create a tag. You should have the MANAGE_WORKSPACE permission to create a tag. */
1448
1546
  createTag: Tag;
1449
1547
  createWebhook: Webhook;
1548
+ /** Create a workspace and link it to the current authenticated user. */
1549
+ createWorkspace: Workspace;
1450
1550
  /** Delete an agent. You should have the MANAGE_WORKSPACE permission to delete an agent. */
1451
1551
  deleteAgent: Agent;
1452
1552
  deleteAi: Ai;
@@ -1533,6 +1633,12 @@ export type MutationBulkImportContactsArgs = {
1533
1633
  export type MutationBulkPatchTagsArgs = {
1534
1634
  input: TagBulkPatchInput;
1535
1635
  };
1636
+ export type MutationBulkPermanentDeleteClientsArgs = {
1637
+ input: BulkPermanentDeleteClientsInput;
1638
+ };
1639
+ export type MutationBulkPermanentDeleteClientsByFilterArgs = {
1640
+ input: BulkPermanentDeleteClientsByFilterInput;
1641
+ };
1536
1642
  export type MutationCancelBroadcastArgs = {
1537
1643
  input: BroadcastCancelInput;
1538
1644
  };
@@ -1560,6 +1666,9 @@ export type MutationCreateTagArgs = {
1560
1666
  export type MutationCreateWebhookArgs = {
1561
1667
  input: WebhookCreateInput;
1562
1668
  };
1669
+ export type MutationCreateWorkspaceArgs = {
1670
+ input: CreateWorkspaceInput;
1671
+ };
1563
1672
  export type MutationDeleteAgentArgs = {
1564
1673
  input: AgentInput;
1565
1674
  };
@@ -1683,6 +1792,14 @@ export declare const NoteType: {
1683
1792
  readonly UNTAG: "UNTAG";
1684
1793
  };
1685
1794
  export type NoteType = typeof NoteType[keyof typeof NoteType];
1795
+ /** OpenConversationsNeedResponseInput is an input for counting open conversations that need a response. */
1796
+ export type OpenConversationsNeedResponseInput = {
1797
+ /** The assignee id of the conversation. Used to filter the conversations by the assignee id. */
1798
+ assigneeId?: InputMaybe<Scalars['ID']['input']>;
1799
+ /** The integration/channel id of the conversation. Used to filter the conversations by the integration/channel id. */
1800
+ integrationId?: InputMaybe<Scalars['ID']['input']>;
1801
+ workspaceId: Scalars['Int']['input'];
1802
+ };
1686
1803
  /** PageInfo is a type for the page info. It is used to paginate the results. */
1687
1804
  export type PageInfo = {
1688
1805
  __typename?: 'PageInfo';
@@ -1730,6 +1847,8 @@ export type Query = {
1730
1847
  broadcast: Broadcast;
1731
1848
  /** Get delivery report of a broadcast. You should have the MANAGE_CONVS permission to get broadcast delivery report. */
1732
1849
  broadcastDeliveryReport: BroadcastDeliveryReport;
1850
+ /** Get broadcast message statuses with client information. You should have the MANAGE_CONVS permission to get broadcast message statuses. */
1851
+ broadcastMessageStatuses: BroadcastMessageStatusesPayload;
1733
1852
  /** Get the count of broadcasts grouped by state. You should have the MANAGE_CONVS permission to get the counts. */
1734
1853
  broadcastStateCounts: Array<BroadcastStateCount>;
1735
1854
  /** Get the broadcasts. You should have the MANAGE_CONVS permission to get the broadcasts. */
@@ -1746,14 +1865,23 @@ export type Query = {
1746
1865
  convs: ConvsPayload;
1747
1866
  /** Get the conversations report. You should have the MANAGE_CONVS permission to get the conversations report. */
1748
1867
  convsReport: ConvsReportPayload;
1868
+ /** Get the current authenticated user's details. */
1869
+ currentUser: User;
1749
1870
  hello: HelloMessage;
1750
1871
  /** Get an integration. */
1751
1872
  integration: Integration;
1752
1873
  /** Get the integrations. */
1753
1874
  integrations: IntegrationsPayload;
1875
+ /**
1876
+ * Validate that a workspace name is not already used.
1877
+ * Returns true if the name is available (not used), false otherwise.
1878
+ */
1879
+ isWorkspaceNameAvailable: Scalars['Boolean']['output'];
1754
1880
  me: UserRole;
1755
1881
  /** Get the messages of a conversation. */
1756
1882
  messages: MessagesPayload;
1883
+ /** Get the count of open conversations that have recent client messages (conversations that need a response). */
1884
+ openConversationsNeedResponseCount: Scalars['Int']['output'];
1757
1885
  sources: SourcesPayload;
1758
1886
  /** Get tags. */
1759
1887
  tags: TagsPayload;
@@ -1773,6 +1901,8 @@ export type Query = {
1773
1901
  webhooks: WebhooksPayload;
1774
1902
  /** Get workspace settings. */
1775
1903
  workspaceSettings?: Maybe<WorkspaceSettings>;
1904
+ /** Get workspaces with pagination and filters. */
1905
+ workspaces: WorkspacesPayload;
1776
1906
  };
1777
1907
  export type QueryAgentArgs = {
1778
1908
  input: AgentInput;
@@ -1800,6 +1930,10 @@ export type QueryBroadcastArgs = {
1800
1930
  export type QueryBroadcastDeliveryReportArgs = {
1801
1931
  input: BroadcastDeliveryReportInput;
1802
1932
  };
1933
+ export type QueryBroadcastMessageStatusesArgs = {
1934
+ input: BroadcastMessageStatusesInput;
1935
+ pageInfo?: InputMaybe<PageInfoInput>;
1936
+ };
1803
1937
  export type QueryBroadcastStateCountsArgs = {
1804
1938
  input: BroadcastsInput;
1805
1939
  };
@@ -1833,6 +1967,9 @@ export type QueryIntegrationArgs = {
1833
1967
  export type QueryIntegrationsArgs = {
1834
1968
  input: IntegrationsInput;
1835
1969
  };
1970
+ export type QueryIsWorkspaceNameAvailableArgs = {
1971
+ name: Scalars['String']['input'];
1972
+ };
1836
1973
  export type QueryMeArgs = {
1837
1974
  input: InputInitWorkspace;
1838
1975
  };
@@ -1840,6 +1977,9 @@ export type QueryMessagesArgs = {
1840
1977
  input: MessagesInput;
1841
1978
  pageInfo?: InputMaybe<PageInfoInput>;
1842
1979
  };
1980
+ export type QueryOpenConversationsNeedResponseCountArgs = {
1981
+ input: OpenConversationsNeedResponseInput;
1982
+ };
1843
1983
  export type QuerySourcesArgs = {
1844
1984
  input: SourcesInput;
1845
1985
  };
@@ -1875,6 +2015,10 @@ export type QueryWebhooksArgs = {
1875
2015
  export type QueryWorkspaceSettingsArgs = {
1876
2016
  input: WorkspaceSettingsInput;
1877
2017
  };
2018
+ export type QueryWorkspacesArgs = {
2019
+ input: WorkspacesInput;
2020
+ pageInfo?: InputMaybe<PageInfoInput>;
2021
+ };
1878
2022
  export declare const Role: {
1879
2023
  readonly ADMIN: "ADMIN";
1880
2024
  readonly AGENT: "AGENT";
@@ -2106,6 +2250,17 @@ export type UploadSignatureResult = {
2106
2250
  __typename?: 'UploadSignatureResult';
2107
2251
  sas: Scalars['String']['output'];
2108
2252
  };
2253
+ /** User represents the current authenticated user in the system. */
2254
+ export type User = {
2255
+ __typename?: 'User';
2256
+ accessFailedCount?: Maybe<Scalars['Int']['output']>;
2257
+ email?: Maybe<Scalars['String']['output']>;
2258
+ id: Scalars['String']['output'];
2259
+ name: Scalars['String']['output'];
2260
+ phoneNumber?: Maybe<Scalars['String']['output']>;
2261
+ type: Scalars['String']['output'];
2262
+ userName?: Maybe<Scalars['String']['output']>;
2263
+ };
2109
2264
  export type UserInput = {
2110
2265
  message: Scalars['String']['input'];
2111
2266
  };
@@ -2201,6 +2356,26 @@ export type WebhooksPayload = {
2201
2356
  nodes?: Maybe<Array<Webhook>>;
2202
2357
  pageInfo?: Maybe<PageInfo>;
2203
2358
  };
2359
+ /** Workspace represents a workspace in the system. */
2360
+ export type Workspace = {
2361
+ __typename?: 'Workspace';
2362
+ accountId?: Maybe<Scalars['String']['output']>;
2363
+ address?: Maybe<Scalars['String']['output']>;
2364
+ city?: Maybe<Scalars['String']['output']>;
2365
+ companyUserId?: Maybe<Scalars['Int']['output']>;
2366
+ contactPersonEmail?: Maybe<Scalars['String']['output']>;
2367
+ contactPersonName?: Maybe<Scalars['String']['output']>;
2368
+ contactPersonPhoneNumber?: Maybe<Scalars['String']['output']>;
2369
+ country?: Maybe<Scalars['String']['output']>;
2370
+ createDate: Scalars['DateTime']['output'];
2371
+ id: Scalars['Int']['output'];
2372
+ name: Scalars['String']['output'];
2373
+ phoneNumber?: Maybe<Scalars['String']['output']>;
2374
+ subscriptionType?: Maybe<Scalars['String']['output']>;
2375
+ taxNumber?: Maybe<Scalars['String']['output']>;
2376
+ taxOffice?: Maybe<Scalars['String']['output']>;
2377
+ website?: Maybe<Scalars['String']['output']>;
2378
+ };
2204
2379
  /** WorkspaceSettings represents configuration options for a workspace. */
2205
2380
  export type WorkspaceSettings = {
2206
2381
  __typename?: 'WorkspaceSettings';
@@ -2242,6 +2417,25 @@ export type WorkspaceTestNumberInput = {
2242
2417
  /** Phone number to use for testing. */
2243
2418
  phone: Scalars['String']['input'];
2244
2419
  };
2420
+ /** WorkspacesInput is an input of the workspaces query. */
2421
+ export type WorkspacesInput = {
2422
+ /** The account ID of the workspace. Used to filter workspaces by account ID (exact match). */
2423
+ accountId?: InputMaybe<Scalars['String']['input']>;
2424
+ /** The city of the workspace. Used to filter workspaces by city (case-insensitive partial match). */
2425
+ city?: InputMaybe<Scalars['String']['input']>;
2426
+ /** The country of the workspace. Used to filter workspaces by country (case-insensitive partial match). */
2427
+ country?: InputMaybe<Scalars['String']['input']>;
2428
+ /** The name of the workspace. Used to filter workspaces by name (case-insensitive partial match). */
2429
+ name?: InputMaybe<Scalars['String']['input']>;
2430
+ /** The subscription type of the workspace. Used to filter workspaces by subscription type. */
2431
+ subscriptionType?: InputMaybe<Scalars['String']['input']>;
2432
+ };
2433
+ /** WorkspacesPayload is a payload of the workspaces query. */
2434
+ export type WorkspacesPayload = {
2435
+ __typename?: 'WorkspacesPayload';
2436
+ nodes: Array<Workspace>;
2437
+ pageInfo: PageInfo;
2438
+ };
2245
2439
  export type CreateSourceMutationVariables = Exact<{
2246
2440
  input: SourceCreateInput;
2247
2441
  }>;
@@ -2336,6 +2530,16 @@ export type TokenUsageTotalQuery = {
2336
2530
  totalCachedInputTokens: number;
2337
2531
  };
2338
2532
  };
2533
+ export type UserFragment = {
2534
+ __typename?: 'User';
2535
+ id: string;
2536
+ name: string;
2537
+ email?: string | null;
2538
+ type: string;
2539
+ userName?: string | null;
2540
+ phoneNumber?: string | null;
2541
+ accessFailedCount?: number | null;
2542
+ };
2339
2543
  export type UserRoleFragment = {
2340
2544
  __typename?: 'UserRole';
2341
2545
  workspaceId: number;
@@ -2375,6 +2579,22 @@ export type AssignUserRoleMutation = {
2375
2579
  createdAt: any;
2376
2580
  };
2377
2581
  };
2582
+ export type CurrentUserQueryVariables = Exact<{
2583
+ [key: string]: never;
2584
+ }>;
2585
+ export type CurrentUserQuery = {
2586
+ __typename?: 'Query';
2587
+ currentUser: {
2588
+ __typename?: 'User';
2589
+ id: string;
2590
+ name: string;
2591
+ email?: string | null;
2592
+ type: string;
2593
+ userName?: string | null;
2594
+ phoneNumber?: string | null;
2595
+ accessFailedCount?: number | null;
2596
+ };
2597
+ };
2378
2598
  export type InitWorkspaceMutationVariables = Exact<{
2379
2599
  input: InputInitWorkspace;
2380
2600
  }>;
@@ -2556,6 +2776,7 @@ export type ClientFragment = {
2556
2776
  createdAt: any;
2557
2777
  stageId?: string | null;
2558
2778
  defaultAgentId?: string | null;
2779
+ deletedAt?: any | null;
2559
2780
  };
2560
2781
  export type ConversationFragment = {
2561
2782
  __typename?: 'Conversation';
@@ -2843,6 +3064,35 @@ export type BroadcastDeliveryReportQuery = {
2843
3064
  }> | null;
2844
3065
  };
2845
3066
  };
3067
+ export type BroadcastMessageStatusesQueryVariables = Exact<{
3068
+ input: BroadcastMessageStatusesInput;
3069
+ pageInfo?: InputMaybe<PageInfoInput>;
3070
+ }>;
3071
+ export type BroadcastMessageStatusesQuery = {
3072
+ __typename?: 'Query';
3073
+ broadcastMessageStatuses: {
3074
+ __typename?: 'BroadcastMessageStatusesPayload';
3075
+ nodes?: Array<{
3076
+ __typename?: 'BroadcastMessageStatus';
3077
+ messageId: string;
3078
+ clientName?: string | null;
3079
+ clientPhone?: string | null;
3080
+ clientEmail?: string | null;
3081
+ clientCountry?: string | null;
3082
+ clientTags?: Array<string> | null;
3083
+ clientLifecycle?: string | null;
3084
+ status?: MessageStatus | null;
3085
+ failureReason?: string | null;
3086
+ createdAt: any;
3087
+ }> | null;
3088
+ pageInfo?: {
3089
+ __typename?: 'PageInfo';
3090
+ hasNextPage: boolean;
3091
+ endCursor?: any | null;
3092
+ count?: number | null;
3093
+ } | null;
3094
+ };
3095
+ };
2846
3096
  export type BroadcastStateCountsQueryVariables = Exact<{
2847
3097
  input: BroadcastsInput;
2848
3098
  }>;
@@ -2920,6 +3170,26 @@ export type BulkImportContactsJobStatusQuery = {
2920
3170
  skipped?: number | null;
2921
3171
  } | null;
2922
3172
  };
3173
+ export type BulkPermanentDeleteClientsMutationVariables = Exact<{
3174
+ input: BulkPermanentDeleteClientsInput;
3175
+ }>;
3176
+ export type BulkPermanentDeleteClientsMutation = {
3177
+ __typename?: 'Mutation';
3178
+ bulkPermanentDeleteClients: {
3179
+ __typename?: 'BulkPermanentDeleteClientsResult';
3180
+ deletedCount: number;
3181
+ };
3182
+ };
3183
+ export type BulkPermanentDeleteClientsByFilterMutationVariables = Exact<{
3184
+ input: BulkPermanentDeleteClientsByFilterInput;
3185
+ }>;
3186
+ export type BulkPermanentDeleteClientsByFilterMutation = {
3187
+ __typename?: 'Mutation';
3188
+ bulkPermanentDeleteClientsByFilter: {
3189
+ __typename?: 'BulkPermanentDeleteClientsResult';
3190
+ deletedCount: number;
3191
+ };
3192
+ };
2923
3193
  export type CancelBroadcastMutationVariables = Exact<{
2924
3194
  input: BroadcastCancelInput;
2925
3195
  }>;
@@ -2969,6 +3239,7 @@ export type ClientQuery = {
2969
3239
  createdAt: any;
2970
3240
  stageId?: string | null;
2971
3241
  defaultAgentId?: string | null;
3242
+ deletedAt?: any | null;
2972
3243
  };
2973
3244
  };
2974
3245
  export type ClientByPhoneQueryVariables = Exact<{
@@ -2993,6 +3264,7 @@ export type ClientByPhoneQuery = {
2993
3264
  createdAt: any;
2994
3265
  stageId?: string | null;
2995
3266
  defaultAgentId?: string | null;
3267
+ deletedAt?: any | null;
2996
3268
  };
2997
3269
  };
2998
3270
  export type ClientsQueryVariables = Exact<{
@@ -3020,6 +3292,7 @@ export type ClientsQuery = {
3020
3292
  createdAt: any;
3021
3293
  stageId?: string | null;
3022
3294
  defaultAgentId?: string | null;
3295
+ deletedAt?: any | null;
3023
3296
  }> | null;
3024
3297
  pageInfo?: {
3025
3298
  __typename?: 'PageInfo';
@@ -3162,6 +3435,7 @@ export type CreateClientMutation = {
3162
3435
  createdAt: any;
3163
3436
  stageId?: string | null;
3164
3437
  defaultAgentId?: string | null;
3438
+ deletedAt?: any | null;
3165
3439
  };
3166
3440
  };
3167
3441
  export type DeleteAgentMutationVariables = Exact<{
@@ -3230,6 +3504,7 @@ export type DeleteClientMutation = {
3230
3504
  createdAt: any;
3231
3505
  stageId?: string | null;
3232
3506
  defaultAgentId?: string | null;
3507
+ deletedAt?: any | null;
3233
3508
  };
3234
3509
  };
3235
3510
  export type DeleteClientByExternalIdMutationVariables = Exact<{
@@ -3254,6 +3529,7 @@ export type DeleteClientByExternalIdMutation = {
3254
3529
  createdAt: any;
3255
3530
  stageId?: string | null;
3256
3531
  defaultAgentId?: string | null;
3532
+ deletedAt?: any | null;
3257
3533
  };
3258
3534
  };
3259
3535
  export type EndConvMutationVariables = Exact<{
@@ -3375,6 +3651,13 @@ export type MessagesQuery = {
3375
3651
  } | null;
3376
3652
  };
3377
3653
  };
3654
+ export type OpenConversationsNeedResponseCountQueryVariables = Exact<{
3655
+ input: OpenConversationsNeedResponseInput;
3656
+ }>;
3657
+ export type OpenConversationsNeedResponseCountQuery = {
3658
+ __typename?: 'Query';
3659
+ openConversationsNeedResponseCount: number;
3660
+ };
3378
3661
  export type PatchAgentMutationVariables = Exact<{
3379
3662
  input: AgentPatchInput;
3380
3663
  }>;
@@ -3441,6 +3724,7 @@ export type PatchClientMutation = {
3441
3724
  createdAt: any;
3442
3725
  stageId?: string | null;
3443
3726
  defaultAgentId?: string | null;
3727
+ deletedAt?: any | null;
3444
3728
  };
3445
3729
  };
3446
3730
  export type PatchConvMutationVariables = Exact<{
@@ -3579,6 +3863,7 @@ export type TagClientMutation = {
3579
3863
  createdAt: any;
3580
3864
  stageId?: string | null;
3581
3865
  defaultAgentId?: string | null;
3866
+ deletedAt?: any | null;
3582
3867
  };
3583
3868
  };
3584
3869
  export type TagConvMutationVariables = Exact<{
@@ -3676,6 +3961,7 @@ export type UndeleteClientMutation = {
3676
3961
  createdAt: any;
3677
3962
  stageId?: string | null;
3678
3963
  defaultAgentId?: string | null;
3964
+ deletedAt?: any | null;
3679
3965
  };
3680
3966
  };
3681
3967
  export type UndeleteClientByExternalIdMutationVariables = Exact<{
@@ -3700,6 +3986,7 @@ export type UndeleteClientByExternalIdMutation = {
3700
3986
  createdAt: any;
3701
3987
  stageId?: string | null;
3702
3988
  defaultAgentId?: string | null;
3989
+ deletedAt?: any | null;
3703
3990
  };
3704
3991
  };
3705
3992
  export type UntagClientMutationVariables = Exact<{
@@ -3724,6 +4011,7 @@ export type UntagClientMutation = {
3724
4011
  createdAt: any;
3725
4012
  stageId?: string | null;
3726
4013
  defaultAgentId?: string | null;
4014
+ deletedAt?: any | null;
3727
4015
  };
3728
4016
  };
3729
4017
  export type UntagConvMutationVariables = Exact<{
@@ -4171,6 +4459,25 @@ export type WebhooksQuery = {
4171
4459
  }> | null;
4172
4460
  };
4173
4461
  };
4462
+ export type WorkspaceFragment = {
4463
+ __typename?: 'Workspace';
4464
+ id: number;
4465
+ name: string;
4466
+ address?: string | null;
4467
+ city?: string | null;
4468
+ country?: string | null;
4469
+ website?: string | null;
4470
+ companyUserId?: number | null;
4471
+ phoneNumber?: string | null;
4472
+ taxOffice?: string | null;
4473
+ taxNumber?: string | null;
4474
+ contactPersonName?: string | null;
4475
+ contactPersonEmail?: string | null;
4476
+ contactPersonPhoneNumber?: string | null;
4477
+ accountId?: string | null;
4478
+ subscriptionType?: string | null;
4479
+ createDate: any;
4480
+ };
4174
4481
  export type WorkspaceSettingsFragment = {
4175
4482
  __typename?: 'WorkspaceSettings';
4176
4483
  id: string;
@@ -4182,6 +4489,13 @@ export type WorkspaceSettingsFragment = {
4182
4489
  active?: boolean | null;
4183
4490
  }> | null;
4184
4491
  };
4492
+ export type IsWorkspaceNameAvailableQueryVariables = Exact<{
4493
+ name: Scalars['String']['input'];
4494
+ }>;
4495
+ export type IsWorkspaceNameAvailableQuery = {
4496
+ __typename?: 'Query';
4497
+ isWorkspaceNameAvailable: boolean;
4498
+ };
4185
4499
  export type PatchWorkspaceSettingsMutationVariables = Exact<{
4186
4500
  input: WorkspaceSettingsPatchInput;
4187
4501
  }>;
@@ -4216,6 +4530,42 @@ export type WorkspaceSettingsQuery = {
4216
4530
  }> | null;
4217
4531
  } | null;
4218
4532
  };
4533
+ export type WorkspacesQueryVariables = Exact<{
4534
+ input: WorkspacesInput;
4535
+ pageInfo?: InputMaybe<PageInfoInput>;
4536
+ }>;
4537
+ export type WorkspacesQuery = {
4538
+ __typename?: 'Query';
4539
+ workspaces: {
4540
+ __typename?: 'WorkspacesPayload';
4541
+ nodes: Array<{
4542
+ __typename?: 'Workspace';
4543
+ id: number;
4544
+ name: string;
4545
+ address?: string | null;
4546
+ city?: string | null;
4547
+ country?: string | null;
4548
+ website?: string | null;
4549
+ companyUserId?: number | null;
4550
+ phoneNumber?: string | null;
4551
+ taxOffice?: string | null;
4552
+ taxNumber?: string | null;
4553
+ contactPersonName?: string | null;
4554
+ contactPersonEmail?: string | null;
4555
+ contactPersonPhoneNumber?: string | null;
4556
+ accountId?: string | null;
4557
+ subscriptionType?: string | null;
4558
+ createDate: any;
4559
+ }>;
4560
+ pageInfo: {
4561
+ __typename?: 'PageInfo';
4562
+ hasNextPage: boolean;
4563
+ endCursor?: any | null;
4564
+ count?: number | null;
4565
+ };
4566
+ };
4567
+ };
4568
+ export declare const UserFragmentDoc: Apollo.DocumentNode;
4219
4569
  export declare const UserRoleFragmentDoc: Apollo.DocumentNode;
4220
4570
  export declare const AgentReportFragmentDoc: Apollo.DocumentNode;
4221
4571
  export declare const ConversationReportFragmentDoc: Apollo.DocumentNode;
@@ -4232,6 +4582,7 @@ export declare const AiFragmentDoc: Apollo.DocumentNode;
4232
4582
  export declare const ApiKeyFragmentDoc: Apollo.DocumentNode;
4233
4583
  export declare const IntegrationFragmentDoc: Apollo.DocumentNode;
4234
4584
  export declare const WebhookFragmentDoc: Apollo.DocumentNode;
4585
+ export declare const WorkspaceFragmentDoc: Apollo.DocumentNode;
4235
4586
  export declare const WorkspaceSettingsFragmentDoc: Apollo.DocumentNode;
4236
4587
  export declare const CreateSourceDocument: Apollo.DocumentNode;
4237
4588
  export type CreateSourceMutationFn = Apollo.MutationFunction<CreateSourceMutation, CreateSourceMutationVariables>;
@@ -4461,6 +4812,41 @@ export declare function useAssignUserRoleMutation(baseOptions?: Apollo.MutationH
4461
4812
  export type AssignUserRoleMutationHookResult = ReturnType<typeof useAssignUserRoleMutation>;
4462
4813
  export type AssignUserRoleMutationResult = Apollo.MutationResult<AssignUserRoleMutation>;
4463
4814
  export type AssignUserRoleMutationOptions = Apollo.BaseMutationOptions<AssignUserRoleMutation, AssignUserRoleMutationVariables>;
4815
+ export declare const CurrentUserDocument: Apollo.DocumentNode;
4816
+ /**
4817
+ * __useCurrentUserQuery__
4818
+ *
4819
+ * To run a query within a React component, call `useCurrentUserQuery` and pass it any options that fit your needs.
4820
+ * When your component renders, `useCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
4821
+ * you can use to render your UI.
4822
+ *
4823
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
4824
+ *
4825
+ * @example
4826
+ * const { data, loading, error } = useCurrentUserQuery({
4827
+ * variables: {
4828
+ * },
4829
+ * });
4830
+ */
4831
+ export declare function useCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.QueryResult<CurrentUserQuery, Exact<{
4832
+ [key: string]: never;
4833
+ }>>;
4834
+ export declare function useCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.LazyQueryResultTuple<CurrentUserQuery, Exact<{
4835
+ [key: string]: never;
4836
+ }>>;
4837
+ export declare function useCurrentUserSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.UseSuspenseQueryResult<CurrentUserQuery | undefined, Exact<{
4838
+ [key: string]: never;
4839
+ }>>;
4840
+ export type CurrentUserQueryHookResult = ReturnType<typeof useCurrentUserQuery>;
4841
+ export type CurrentUserLazyQueryHookResult = ReturnType<typeof useCurrentUserLazyQuery>;
4842
+ export type CurrentUserSuspenseQueryHookResult = ReturnType<typeof useCurrentUserSuspenseQuery>;
4843
+ export type CurrentUserQueryResult = Apollo.QueryResult<CurrentUserQuery, CurrentUserQueryVariables>;
4844
+ export declare function refetchCurrentUserQuery(variables?: CurrentUserQueryVariables): {
4845
+ query: Apollo.DocumentNode;
4846
+ variables: Exact<{
4847
+ [key: string]: never;
4848
+ }> | undefined;
4849
+ };
4464
4850
  export declare const InitWorkspaceDocument: Apollo.DocumentNode;
4465
4851
  export type InitWorkspaceMutationFn = Apollo.MutationFunction<InitWorkspaceMutation, InitWorkspaceMutationVariables>;
4466
4852
  /**
@@ -4910,6 +5296,52 @@ export declare function refetchBroadcastDeliveryReportQuery(variables: Broadcast
4910
5296
  input: BroadcastDeliveryReportInput;
4911
5297
  }>;
4912
5298
  };
5299
+ export declare const BroadcastMessageStatusesDocument: Apollo.DocumentNode;
5300
+ /**
5301
+ * __useBroadcastMessageStatusesQuery__
5302
+ *
5303
+ * To run a query within a React component, call `useBroadcastMessageStatusesQuery` and pass it any options that fit your needs.
5304
+ * When your component renders, `useBroadcastMessageStatusesQuery` returns an object from Apollo Client that contains loading, error, and data properties
5305
+ * you can use to render your UI.
5306
+ *
5307
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
5308
+ *
5309
+ * @example
5310
+ * const { data, loading, error } = useBroadcastMessageStatusesQuery({
5311
+ * variables: {
5312
+ * input: // value for 'input'
5313
+ * pageInfo: // value for 'pageInfo'
5314
+ * },
5315
+ * });
5316
+ */
5317
+ export declare function useBroadcastMessageStatusesQuery(baseOptions: Apollo.QueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables> & ({
5318
+ variables: BroadcastMessageStatusesQueryVariables;
5319
+ skip?: boolean;
5320
+ } | {
5321
+ skip: boolean;
5322
+ })): Apollo.QueryResult<BroadcastMessageStatusesQuery, Exact<{
5323
+ input: BroadcastMessageStatusesInput;
5324
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5325
+ }>>;
5326
+ export declare function useBroadcastMessageStatusesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>): Apollo.LazyQueryResultTuple<BroadcastMessageStatusesQuery, Exact<{
5327
+ input: BroadcastMessageStatusesInput;
5328
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5329
+ }>>;
5330
+ export declare function useBroadcastMessageStatusesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>): Apollo.UseSuspenseQueryResult<BroadcastMessageStatusesQuery | undefined, Exact<{
5331
+ input: BroadcastMessageStatusesInput;
5332
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5333
+ }>>;
5334
+ export type BroadcastMessageStatusesQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesQuery>;
5335
+ export type BroadcastMessageStatusesLazyQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesLazyQuery>;
5336
+ export type BroadcastMessageStatusesSuspenseQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesSuspenseQuery>;
5337
+ export type BroadcastMessageStatusesQueryResult = Apollo.QueryResult<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>;
5338
+ export declare function refetchBroadcastMessageStatusesQuery(variables: BroadcastMessageStatusesQueryVariables): {
5339
+ query: Apollo.DocumentNode;
5340
+ variables: Exact<{
5341
+ input: BroadcastMessageStatusesInput;
5342
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5343
+ }>;
5344
+ };
4913
5345
  export declare const BroadcastStateCountsDocument: Apollo.DocumentNode;
4914
5346
  /**
4915
5347
  * __useBroadcastStateCountsQuery__
@@ -5063,6 +5495,56 @@ export declare function refetchBulkImportContactsJobStatusQuery(variables: BulkI
5063
5495
  input: BulkImportContactsJobStatusInput;
5064
5496
  }>;
5065
5497
  };
5498
+ export declare const BulkPermanentDeleteClientsDocument: Apollo.DocumentNode;
5499
+ export type BulkPermanentDeleteClientsMutationFn = Apollo.MutationFunction<BulkPermanentDeleteClientsMutation, BulkPermanentDeleteClientsMutationVariables>;
5500
+ /**
5501
+ * __useBulkPermanentDeleteClientsMutation__
5502
+ *
5503
+ * To run a mutation, you first call `useBulkPermanentDeleteClientsMutation` within a React component and pass it any options that fit your needs.
5504
+ * When your component renders, `useBulkPermanentDeleteClientsMutation` returns a tuple that includes:
5505
+ * - A mutate function that you can call at any time to execute the mutation
5506
+ * - An object with fields that represent the current status of the mutation's execution
5507
+ *
5508
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
5509
+ *
5510
+ * @example
5511
+ * const [bulkPermanentDeleteClientsMutation, { data, loading, error }] = useBulkPermanentDeleteClientsMutation({
5512
+ * variables: {
5513
+ * input: // value for 'input'
5514
+ * },
5515
+ * });
5516
+ */
5517
+ export declare function useBulkPermanentDeleteClientsMutation(baseOptions?: Apollo.MutationHookOptions<BulkPermanentDeleteClientsMutation, BulkPermanentDeleteClientsMutationVariables>): Apollo.MutationTuple<BulkPermanentDeleteClientsMutation, Exact<{
5518
+ input: BulkPermanentDeleteClientsInput;
5519
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
5520
+ export type BulkPermanentDeleteClientsMutationHookResult = ReturnType<typeof useBulkPermanentDeleteClientsMutation>;
5521
+ export type BulkPermanentDeleteClientsMutationResult = Apollo.MutationResult<BulkPermanentDeleteClientsMutation>;
5522
+ export type BulkPermanentDeleteClientsMutationOptions = Apollo.BaseMutationOptions<BulkPermanentDeleteClientsMutation, BulkPermanentDeleteClientsMutationVariables>;
5523
+ export declare const BulkPermanentDeleteClientsByFilterDocument: Apollo.DocumentNode;
5524
+ export type BulkPermanentDeleteClientsByFilterMutationFn = Apollo.MutationFunction<BulkPermanentDeleteClientsByFilterMutation, BulkPermanentDeleteClientsByFilterMutationVariables>;
5525
+ /**
5526
+ * __useBulkPermanentDeleteClientsByFilterMutation__
5527
+ *
5528
+ * To run a mutation, you first call `useBulkPermanentDeleteClientsByFilterMutation` within a React component and pass it any options that fit your needs.
5529
+ * When your component renders, `useBulkPermanentDeleteClientsByFilterMutation` returns a tuple that includes:
5530
+ * - A mutate function that you can call at any time to execute the mutation
5531
+ * - An object with fields that represent the current status of the mutation's execution
5532
+ *
5533
+ * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
5534
+ *
5535
+ * @example
5536
+ * const [bulkPermanentDeleteClientsByFilterMutation, { data, loading, error }] = useBulkPermanentDeleteClientsByFilterMutation({
5537
+ * variables: {
5538
+ * input: // value for 'input'
5539
+ * },
5540
+ * });
5541
+ */
5542
+ export declare function useBulkPermanentDeleteClientsByFilterMutation(baseOptions?: Apollo.MutationHookOptions<BulkPermanentDeleteClientsByFilterMutation, BulkPermanentDeleteClientsByFilterMutationVariables>): Apollo.MutationTuple<BulkPermanentDeleteClientsByFilterMutation, Exact<{
5543
+ input: BulkPermanentDeleteClientsByFilterInput;
5544
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
5545
+ export type BulkPermanentDeleteClientsByFilterMutationHookResult = ReturnType<typeof useBulkPermanentDeleteClientsByFilterMutation>;
5546
+ export type BulkPermanentDeleteClientsByFilterMutationResult = Apollo.MutationResult<BulkPermanentDeleteClientsByFilterMutation>;
5547
+ export type BulkPermanentDeleteClientsByFilterMutationOptions = Apollo.BaseMutationOptions<BulkPermanentDeleteClientsByFilterMutation, BulkPermanentDeleteClientsByFilterMutationVariables>;
5066
5548
  export declare const CancelBroadcastDocument: Apollo.DocumentNode;
5067
5549
  export type CancelBroadcastMutationFn = Apollo.MutationFunction<CancelBroadcastMutation, CancelBroadcastMutationVariables>;
5068
5550
  /**
@@ -5533,6 +6015,47 @@ export declare function refetchMessagesQuery(variables: MessagesQueryVariables):
5533
6015
  pageInfo?: InputMaybe<PageInfoInput> | undefined;
5534
6016
  }>;
5535
6017
  };
6018
+ export declare const OpenConversationsNeedResponseCountDocument: Apollo.DocumentNode;
6019
+ /**
6020
+ * __useOpenConversationsNeedResponseCountQuery__
6021
+ *
6022
+ * To run a query within a React component, call `useOpenConversationsNeedResponseCountQuery` and pass it any options that fit your needs.
6023
+ * When your component renders, `useOpenConversationsNeedResponseCountQuery` returns an object from Apollo Client that contains loading, error, and data properties
6024
+ * you can use to render your UI.
6025
+ *
6026
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
6027
+ *
6028
+ * @example
6029
+ * const { data, loading, error } = useOpenConversationsNeedResponseCountQuery({
6030
+ * variables: {
6031
+ * input: // value for 'input'
6032
+ * },
6033
+ * });
6034
+ */
6035
+ export declare function useOpenConversationsNeedResponseCountQuery(baseOptions: Apollo.QueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables> & ({
6036
+ variables: OpenConversationsNeedResponseCountQueryVariables;
6037
+ skip?: boolean;
6038
+ } | {
6039
+ skip: boolean;
6040
+ })): Apollo.QueryResult<OpenConversationsNeedResponseCountQuery, Exact<{
6041
+ input: OpenConversationsNeedResponseInput;
6042
+ }>>;
6043
+ export declare function useOpenConversationsNeedResponseCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>): Apollo.LazyQueryResultTuple<OpenConversationsNeedResponseCountQuery, Exact<{
6044
+ input: OpenConversationsNeedResponseInput;
6045
+ }>>;
6046
+ export declare function useOpenConversationsNeedResponseCountSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>): Apollo.UseSuspenseQueryResult<OpenConversationsNeedResponseCountQuery | undefined, Exact<{
6047
+ input: OpenConversationsNeedResponseInput;
6048
+ }>>;
6049
+ export type OpenConversationsNeedResponseCountQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountQuery>;
6050
+ export type OpenConversationsNeedResponseCountLazyQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountLazyQuery>;
6051
+ export type OpenConversationsNeedResponseCountSuspenseQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountSuspenseQuery>;
6052
+ export type OpenConversationsNeedResponseCountQueryResult = Apollo.QueryResult<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>;
6053
+ export declare function refetchOpenConversationsNeedResponseCountQuery(variables: OpenConversationsNeedResponseCountQueryVariables): {
6054
+ query: Apollo.DocumentNode;
6055
+ variables: Exact<{
6056
+ input: OpenConversationsNeedResponseInput;
6057
+ }>;
6058
+ };
5536
6059
  export declare const PatchAgentDocument: Apollo.DocumentNode;
5537
6060
  export type PatchAgentMutationFn = Apollo.MutationFunction<PatchAgentMutation, PatchAgentMutationVariables>;
5538
6061
  /**
@@ -6543,6 +7066,47 @@ export declare function refetchWebhooksQuery(variables: WebhooksQueryVariables):
6543
7066
  input: WebhooksInput;
6544
7067
  }>;
6545
7068
  };
7069
+ export declare const IsWorkspaceNameAvailableDocument: Apollo.DocumentNode;
7070
+ /**
7071
+ * __useIsWorkspaceNameAvailableQuery__
7072
+ *
7073
+ * To run a query within a React component, call `useIsWorkspaceNameAvailableQuery` and pass it any options that fit your needs.
7074
+ * When your component renders, `useIsWorkspaceNameAvailableQuery` returns an object from Apollo Client that contains loading, error, and data properties
7075
+ * you can use to render your UI.
7076
+ *
7077
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
7078
+ *
7079
+ * @example
7080
+ * const { data, loading, error } = useIsWorkspaceNameAvailableQuery({
7081
+ * variables: {
7082
+ * name: // value for 'name'
7083
+ * },
7084
+ * });
7085
+ */
7086
+ export declare function useIsWorkspaceNameAvailableQuery(baseOptions: Apollo.QueryHookOptions<IsWorkspaceNameAvailableQuery, IsWorkspaceNameAvailableQueryVariables> & ({
7087
+ variables: IsWorkspaceNameAvailableQueryVariables;
7088
+ skip?: boolean;
7089
+ } | {
7090
+ skip: boolean;
7091
+ })): Apollo.QueryResult<IsWorkspaceNameAvailableQuery, Exact<{
7092
+ name: string;
7093
+ }>>;
7094
+ export declare function useIsWorkspaceNameAvailableLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IsWorkspaceNameAvailableQuery, IsWorkspaceNameAvailableQueryVariables>): Apollo.LazyQueryResultTuple<IsWorkspaceNameAvailableQuery, Exact<{
7095
+ name: string;
7096
+ }>>;
7097
+ export declare function useIsWorkspaceNameAvailableSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<IsWorkspaceNameAvailableQuery, IsWorkspaceNameAvailableQueryVariables>): Apollo.UseSuspenseQueryResult<IsWorkspaceNameAvailableQuery | undefined, Exact<{
7098
+ name: string;
7099
+ }>>;
7100
+ export type IsWorkspaceNameAvailableQueryHookResult = ReturnType<typeof useIsWorkspaceNameAvailableQuery>;
7101
+ export type IsWorkspaceNameAvailableLazyQueryHookResult = ReturnType<typeof useIsWorkspaceNameAvailableLazyQuery>;
7102
+ export type IsWorkspaceNameAvailableSuspenseQueryHookResult = ReturnType<typeof useIsWorkspaceNameAvailableSuspenseQuery>;
7103
+ export type IsWorkspaceNameAvailableQueryResult = Apollo.QueryResult<IsWorkspaceNameAvailableQuery, IsWorkspaceNameAvailableQueryVariables>;
7104
+ export declare function refetchIsWorkspaceNameAvailableQuery(variables: IsWorkspaceNameAvailableQueryVariables): {
7105
+ query: Apollo.DocumentNode;
7106
+ variables: Exact<{
7107
+ name: string;
7108
+ }>;
7109
+ };
6546
7110
  export declare const PatchWorkspaceSettingsDocument: Apollo.DocumentNode;
6547
7111
  export type PatchWorkspaceSettingsMutationFn = Apollo.MutationFunction<PatchWorkspaceSettingsMutation, PatchWorkspaceSettingsMutationVariables>;
6548
7112
  /**
@@ -6609,3 +7173,49 @@ export declare function refetchWorkspaceSettingsQuery(variables: WorkspaceSettin
6609
7173
  input: WorkspaceSettingsInput;
6610
7174
  }>;
6611
7175
  };
7176
+ export declare const WorkspacesDocument: Apollo.DocumentNode;
7177
+ /**
7178
+ * __useWorkspacesQuery__
7179
+ *
7180
+ * To run a query within a React component, call `useWorkspacesQuery` and pass it any options that fit your needs.
7181
+ * When your component renders, `useWorkspacesQuery` returns an object from Apollo Client that contains loading, error, and data properties
7182
+ * you can use to render your UI.
7183
+ *
7184
+ * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
7185
+ *
7186
+ * @example
7187
+ * const { data, loading, error } = useWorkspacesQuery({
7188
+ * variables: {
7189
+ * input: // value for 'input'
7190
+ * pageInfo: // value for 'pageInfo'
7191
+ * },
7192
+ * });
7193
+ */
7194
+ export declare function useWorkspacesQuery(baseOptions: Apollo.QueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables> & ({
7195
+ variables: WorkspacesQueryVariables;
7196
+ skip?: boolean;
7197
+ } | {
7198
+ skip: boolean;
7199
+ })): Apollo.QueryResult<WorkspacesQuery, Exact<{
7200
+ input: WorkspacesInput;
7201
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7202
+ }>>;
7203
+ export declare function useWorkspacesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables>): Apollo.LazyQueryResultTuple<WorkspacesQuery, Exact<{
7204
+ input: WorkspacesInput;
7205
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7206
+ }>>;
7207
+ export declare function useWorkspacesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables>): Apollo.UseSuspenseQueryResult<WorkspacesQuery | undefined, Exact<{
7208
+ input: WorkspacesInput;
7209
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7210
+ }>>;
7211
+ export type WorkspacesQueryHookResult = ReturnType<typeof useWorkspacesQuery>;
7212
+ export type WorkspacesLazyQueryHookResult = ReturnType<typeof useWorkspacesLazyQuery>;
7213
+ export type WorkspacesSuspenseQueryHookResult = ReturnType<typeof useWorkspacesSuspenseQuery>;
7214
+ export type WorkspacesQueryResult = Apollo.QueryResult<WorkspacesQuery, WorkspacesQueryVariables>;
7215
+ export declare function refetchWorkspacesQuery(variables: WorkspacesQueryVariables): {
7216
+ query: Apollo.DocumentNode;
7217
+ variables: Exact<{
7218
+ input: WorkspacesInput;
7219
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7220
+ }>;
7221
+ };