@bcrumbs.net/inbox 0.0.40 → 0.0.41

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 (29) hide show
  1. package/assets/ar/inbox.json +9 -2
  2. package/assets/en/inbox.json +9 -2
  3. package/index.cjs.js +1851 -1667
  4. package/index.esm.js +1853 -1669
  5. package/package.json +3 -3
  6. package/src/app/auth/components/UserAvatar/index.d.ts +2 -10
  7. package/src/app/auth/pages/PartnerLogin.d.ts +11 -0
  8. package/src/app/auth/pages/Profile.d.ts +0 -7
  9. package/src/app/broadcast/components/BroadcastSampleContacts.d.ts +4 -1
  10. package/src/app/contact/components/ContactFormFields.d.ts +3 -1
  11. package/src/app/contact/config/contactForm.d.ts +1 -0
  12. package/src/app/contact/hooks/useAgentOptions.d.ts +4 -10
  13. package/src/app/contact/hooks/useLifecycleSelectOptions.d.ts +9 -0
  14. package/src/app/inbox/components/NewDetails/ClientSection.d.ts +10 -0
  15. package/src/app/inbox/components/NewDetails/index.d.ts +3 -1
  16. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +1 -1
  17. package/src/app/inbox/hooks/useTags.d.ts +1 -1
  18. package/src/app/inbox/utils/convs.d.ts +1 -1
  19. package/src/app/resources/config/broadcast.d.ts +1 -3
  20. package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +2 -2
  21. package/src/app/subscriptions/pages/Subscriptions.d.ts +2 -8
  22. package/src/assets/locales/translations.d.ts +6 -0
  23. package/src/config/constants.d.ts +2 -2
  24. package/src/environments/environment.d.ts +2 -4
  25. package/src/environments/environment.prod.d.ts +2 -4
  26. package/src/environments/environment.wakeed.d.ts +2 -0
  27. package/src/environments/types.d.ts +15 -0
  28. package/src/graphql.autogenerated.d.ts +479 -0
  29. package/src/lib/inbox.d.ts +1 -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) */
@@ -580,6 +622,8 @@ export type Client = {
580
622
  createdAt: Scalars['DateTime']['output'];
581
623
  /** The default agent id to auto-assign new conversations started by this client (when integration auto assignment is enabled). */
582
624
  defaultAgentId?: Maybe<Scalars['ID']['output']>;
625
+ /** The date and time when the client was deleted (archive date). */
626
+ deletedAt?: Maybe<Scalars['DateTime']['output']>;
583
627
  /** The email of the client. It can be modified by the user. */
584
628
  email?: Maybe<Scalars['String']['output']>;
585
629
  /** 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). */
@@ -1683,6 +1727,14 @@ export declare const NoteType: {
1683
1727
  readonly UNTAG: "UNTAG";
1684
1728
  };
1685
1729
  export type NoteType = typeof NoteType[keyof typeof NoteType];
1730
+ /** OpenConversationsNeedResponseInput is an input for counting open conversations that need a response. */
1731
+ export type OpenConversationsNeedResponseInput = {
1732
+ /** The assignee id of the conversation. Used to filter the conversations by the assignee id. */
1733
+ assigneeId?: InputMaybe<Scalars['ID']['input']>;
1734
+ /** The integration/channel id of the conversation. Used to filter the conversations by the integration/channel id. */
1735
+ integrationId?: InputMaybe<Scalars['ID']['input']>;
1736
+ workspaceId: Scalars['Int']['input'];
1737
+ };
1686
1738
  /** PageInfo is a type for the page info. It is used to paginate the results. */
1687
1739
  export type PageInfo = {
1688
1740
  __typename?: 'PageInfo';
@@ -1714,6 +1766,28 @@ export declare const Permission: {
1714
1766
  readonly MANAGE_WORKSPACE: "MANAGE_WORKSPACE";
1715
1767
  };
1716
1768
  export type Permission = typeof Permission[keyof typeof Permission];
1769
+ /** Plan represents a subscription plan. */
1770
+ export type Plan = {
1771
+ __typename?: 'Plan';
1772
+ broadcastMessageCount: Scalars['Int']['output'];
1773
+ convCount: Scalars['Int']['output'];
1774
+ createdAt: Scalars['DateTime']['output'];
1775
+ deletedAt?: Maybe<Scalars['DateTime']['output']>;
1776
+ id: Scalars['Int']['output'];
1777
+ isBroadcast80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
1778
+ isBroadcast100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
1779
+ isBroadcastUsed?: Maybe<Scalars['Boolean']['output']>;
1780
+ isConv80PercentUsed?: Maybe<Scalars['Boolean']['output']>;
1781
+ isConv100PercentUsed?: Maybe<Scalars['Boolean']['output']>;
1782
+ isConvUsed?: Maybe<Scalars['Boolean']['output']>;
1783
+ lastUseDate?: Maybe<Scalars['DateTime']['output']>;
1784
+ monthlyPrice: Scalars['Float']['output'];
1785
+ planType: Scalars['String']['output'];
1786
+ updatedAt: Scalars['DateTime']['output'];
1787
+ userCount: Scalars['Int']['output'];
1788
+ userId: Scalars['Int']['output'];
1789
+ yearlyPrice: Scalars['Float']['output'];
1790
+ };
1717
1791
  export type Query = {
1718
1792
  __typename?: 'Query';
1719
1793
  /** Get an agent. */
@@ -1730,6 +1804,8 @@ export type Query = {
1730
1804
  broadcast: Broadcast;
1731
1805
  /** Get delivery report of a broadcast. You should have the MANAGE_CONVS permission to get broadcast delivery report. */
1732
1806
  broadcastDeliveryReport: BroadcastDeliveryReport;
1807
+ /** Get broadcast message statuses with client information. You should have the MANAGE_CONVS permission to get broadcast message statuses. */
1808
+ broadcastMessageStatuses: BroadcastMessageStatusesPayload;
1733
1809
  /** Get the count of broadcasts grouped by state. You should have the MANAGE_CONVS permission to get the counts. */
1734
1810
  broadcastStateCounts: Array<BroadcastStateCount>;
1735
1811
  /** Get the broadcasts. You should have the MANAGE_CONVS permission to get the broadcasts. */
@@ -1746,6 +1822,8 @@ export type Query = {
1746
1822
  convs: ConvsPayload;
1747
1823
  /** Get the conversations report. You should have the MANAGE_CONVS permission to get the conversations report. */
1748
1824
  convsReport: ConvsReportPayload;
1825
+ /** Get the current authenticated user's details. */
1826
+ currentUser: User;
1749
1827
  hello: HelloMessage;
1750
1828
  /** Get an integration. */
1751
1829
  integration: Integration;
@@ -1754,7 +1832,11 @@ export type Query = {
1754
1832
  me: UserRole;
1755
1833
  /** Get the messages of a conversation. */
1756
1834
  messages: MessagesPayload;
1835
+ /** Get the count of open conversations that have recent client messages (conversations that need a response). */
1836
+ openConversationsNeedResponseCount: Scalars['Int']['output'];
1757
1837
  sources: SourcesPayload;
1838
+ /** Get the current subscription for a workspace. */
1839
+ subscription: SubscriptionPlan;
1758
1840
  /** Get tags. */
1759
1841
  tags: TagsPayload;
1760
1842
  /** Get token usage logs with pagination. */
@@ -1773,6 +1855,8 @@ export type Query = {
1773
1855
  webhooks: WebhooksPayload;
1774
1856
  /** Get workspace settings. */
1775
1857
  workspaceSettings?: Maybe<WorkspaceSettings>;
1858
+ /** Get workspaces with pagination and filters. */
1859
+ workspaces: WorkspacesPayload;
1776
1860
  };
1777
1861
  export type QueryAgentArgs = {
1778
1862
  input: AgentInput;
@@ -1800,6 +1884,10 @@ export type QueryBroadcastArgs = {
1800
1884
  export type QueryBroadcastDeliveryReportArgs = {
1801
1885
  input: BroadcastDeliveryReportInput;
1802
1886
  };
1887
+ export type QueryBroadcastMessageStatusesArgs = {
1888
+ input: BroadcastMessageStatusesInput;
1889
+ pageInfo?: InputMaybe<PageInfoInput>;
1890
+ };
1803
1891
  export type QueryBroadcastStateCountsArgs = {
1804
1892
  input: BroadcastsInput;
1805
1893
  };
@@ -1840,9 +1928,15 @@ export type QueryMessagesArgs = {
1840
1928
  input: MessagesInput;
1841
1929
  pageInfo?: InputMaybe<PageInfoInput>;
1842
1930
  };
1931
+ export type QueryOpenConversationsNeedResponseCountArgs = {
1932
+ input: OpenConversationsNeedResponseInput;
1933
+ };
1843
1934
  export type QuerySourcesArgs = {
1844
1935
  input: SourcesInput;
1845
1936
  };
1937
+ export type QuerySubscriptionArgs = {
1938
+ input: SubscriptionInput;
1939
+ };
1846
1940
  export type QueryTagsArgs = {
1847
1941
  input: TagsInput;
1848
1942
  };
@@ -1875,6 +1969,10 @@ export type QueryWebhooksArgs = {
1875
1969
  export type QueryWorkspaceSettingsArgs = {
1876
1970
  input: WorkspaceSettingsInput;
1877
1971
  };
1972
+ export type QueryWorkspacesArgs = {
1973
+ input: WorkspacesInput;
1974
+ pageInfo?: InputMaybe<PageInfoInput>;
1975
+ };
1878
1976
  export declare const Role: {
1879
1977
  readonly ADMIN: "ADMIN";
1880
1978
  readonly AGENT: "AGENT";
@@ -2002,6 +2100,39 @@ export type StatusUpdateDto = {
2002
2100
  traceId?: Maybe<Scalars['String']['output']>;
2003
2101
  workspaceId: Scalars['Int']['output'];
2004
2102
  };
2103
+ /** SubscriptionInput is an input for the subscription query. */
2104
+ export type SubscriptionInput = {
2105
+ workspaceId: Scalars['Int']['input'];
2106
+ };
2107
+ /** SubscriptionPlan represents a user's subscription to a plan. */
2108
+ export type SubscriptionPlan = {
2109
+ __typename?: 'SubscriptionPlan';
2110
+ accountDiscountPercentage: Scalars['Int']['output'];
2111
+ accountManagerId?: Maybe<Scalars['Int']['output']>;
2112
+ createdAt: Scalars['DateTime']['output'];
2113
+ customizable: Scalars['Boolean']['output'];
2114
+ endDate: Scalars['DateTime']['output'];
2115
+ failedPaymentTimes: Scalars['Int']['output'];
2116
+ freeCredits: Scalars['Float']['output'];
2117
+ id: Scalars['Int']['output'];
2118
+ isUsed?: Maybe<Scalars['Boolean']['output']>;
2119
+ lastPausedDate?: Maybe<Scalars['DateTime']['output']>;
2120
+ paused: Scalars['Boolean']['output'];
2121
+ paymentMethodId?: Maybe<Scalars['Int']['output']>;
2122
+ plan?: Maybe<Plan>;
2123
+ planId: Scalars['Int']['output'];
2124
+ promoType?: Maybe<Scalars['String']['output']>;
2125
+ promoValue?: Maybe<Scalars['Float']['output']>;
2126
+ reactivationDate?: Maybe<Scalars['DateTime']['output']>;
2127
+ reactivationPeriodLeft?: Maybe<Scalars['BigInt']['output']>;
2128
+ renewalInProgress: Scalars['Boolean']['output'];
2129
+ renewalsPaid: Scalars['Int']['output'];
2130
+ startDate: Scalars['DateTime']['output'];
2131
+ term: Scalars['String']['output'];
2132
+ updatedAt: Scalars['DateTime']['output'];
2133
+ updatingPaymentTries: Scalars['Int']['output'];
2134
+ workspaceId: Scalars['Int']['output'];
2135
+ };
2005
2136
  export type Tag = {
2006
2137
  __typename?: 'Tag';
2007
2138
  createdAt: Scalars['DateTime']['output'];
@@ -2106,6 +2237,17 @@ export type UploadSignatureResult = {
2106
2237
  __typename?: 'UploadSignatureResult';
2107
2238
  sas: Scalars['String']['output'];
2108
2239
  };
2240
+ /** User represents the current authenticated user in the system. */
2241
+ export type User = {
2242
+ __typename?: 'User';
2243
+ accessFailedCount?: Maybe<Scalars['Int']['output']>;
2244
+ email?: Maybe<Scalars['String']['output']>;
2245
+ id: Scalars['String']['output'];
2246
+ name: Scalars['String']['output'];
2247
+ phoneNumber?: Maybe<Scalars['String']['output']>;
2248
+ type: Scalars['String']['output'];
2249
+ userName?: Maybe<Scalars['String']['output']>;
2250
+ };
2109
2251
  export type UserInput = {
2110
2252
  message: Scalars['String']['input'];
2111
2253
  };
@@ -2201,6 +2343,26 @@ export type WebhooksPayload = {
2201
2343
  nodes?: Maybe<Array<Webhook>>;
2202
2344
  pageInfo?: Maybe<PageInfo>;
2203
2345
  };
2346
+ /** Workspace represents a workspace in the system. */
2347
+ export type Workspace = {
2348
+ __typename?: 'Workspace';
2349
+ accountId?: Maybe<Scalars['String']['output']>;
2350
+ address?: Maybe<Scalars['String']['output']>;
2351
+ city?: Maybe<Scalars['String']['output']>;
2352
+ companyUserId?: Maybe<Scalars['Int']['output']>;
2353
+ contactPersonEmail?: Maybe<Scalars['String']['output']>;
2354
+ contactPersonName?: Maybe<Scalars['String']['output']>;
2355
+ contactPersonPhoneNumber?: Maybe<Scalars['String']['output']>;
2356
+ country?: Maybe<Scalars['String']['output']>;
2357
+ createDate: Scalars['DateTime']['output'];
2358
+ id: Scalars['Int']['output'];
2359
+ name: Scalars['String']['output'];
2360
+ phoneNumber?: Maybe<Scalars['String']['output']>;
2361
+ subscriptionType?: Maybe<Scalars['String']['output']>;
2362
+ taxNumber?: Maybe<Scalars['String']['output']>;
2363
+ taxOffice?: Maybe<Scalars['String']['output']>;
2364
+ website?: Maybe<Scalars['String']['output']>;
2365
+ };
2204
2366
  /** WorkspaceSettings represents configuration options for a workspace. */
2205
2367
  export type WorkspaceSettings = {
2206
2368
  __typename?: 'WorkspaceSettings';
@@ -2242,6 +2404,25 @@ export type WorkspaceTestNumberInput = {
2242
2404
  /** Phone number to use for testing. */
2243
2405
  phone: Scalars['String']['input'];
2244
2406
  };
2407
+ /** WorkspacesInput is an input of the workspaces query. */
2408
+ export type WorkspacesInput = {
2409
+ /** The account ID of the workspace. Used to filter workspaces by account ID (exact match). */
2410
+ accountId?: InputMaybe<Scalars['String']['input']>;
2411
+ /** The city of the workspace. Used to filter workspaces by city (case-insensitive partial match). */
2412
+ city?: InputMaybe<Scalars['String']['input']>;
2413
+ /** The country of the workspace. Used to filter workspaces by country (case-insensitive partial match). */
2414
+ country?: InputMaybe<Scalars['String']['input']>;
2415
+ /** The name of the workspace. Used to filter workspaces by name (case-insensitive partial match). */
2416
+ name?: InputMaybe<Scalars['String']['input']>;
2417
+ /** The subscription type of the workspace. Used to filter workspaces by subscription type. */
2418
+ subscriptionType?: InputMaybe<Scalars['String']['input']>;
2419
+ };
2420
+ /** WorkspacesPayload is a payload of the workspaces query. */
2421
+ export type WorkspacesPayload = {
2422
+ __typename?: 'WorkspacesPayload';
2423
+ nodes: Array<Workspace>;
2424
+ pageInfo: PageInfo;
2425
+ };
2245
2426
  export type CreateSourceMutationVariables = Exact<{
2246
2427
  input: SourceCreateInput;
2247
2428
  }>;
@@ -2336,6 +2517,16 @@ export type TokenUsageTotalQuery = {
2336
2517
  totalCachedInputTokens: number;
2337
2518
  };
2338
2519
  };
2520
+ export type UserFragment = {
2521
+ __typename?: 'User';
2522
+ id: string;
2523
+ name: string;
2524
+ email?: string | null;
2525
+ type: string;
2526
+ userName?: string | null;
2527
+ phoneNumber?: string | null;
2528
+ accessFailedCount?: number | null;
2529
+ };
2339
2530
  export type UserRoleFragment = {
2340
2531
  __typename?: 'UserRole';
2341
2532
  workspaceId: number;
@@ -2375,6 +2566,22 @@ export type AssignUserRoleMutation = {
2375
2566
  createdAt: any;
2376
2567
  };
2377
2568
  };
2569
+ export type CurrentUserQueryVariables = Exact<{
2570
+ [key: string]: never;
2571
+ }>;
2572
+ export type CurrentUserQuery = {
2573
+ __typename?: 'Query';
2574
+ currentUser: {
2575
+ __typename?: 'User';
2576
+ id: string;
2577
+ name: string;
2578
+ email?: string | null;
2579
+ type: string;
2580
+ userName?: string | null;
2581
+ phoneNumber?: string | null;
2582
+ accessFailedCount?: number | null;
2583
+ };
2584
+ };
2378
2585
  export type InitWorkspaceMutationVariables = Exact<{
2379
2586
  input: InputInitWorkspace;
2380
2587
  }>;
@@ -2556,6 +2763,7 @@ export type ClientFragment = {
2556
2763
  createdAt: any;
2557
2764
  stageId?: string | null;
2558
2765
  defaultAgentId?: string | null;
2766
+ deletedAt?: any | null;
2559
2767
  };
2560
2768
  export type ConversationFragment = {
2561
2769
  __typename?: 'Conversation';
@@ -2843,6 +3051,35 @@ export type BroadcastDeliveryReportQuery = {
2843
3051
  }> | null;
2844
3052
  };
2845
3053
  };
3054
+ export type BroadcastMessageStatusesQueryVariables = Exact<{
3055
+ input: BroadcastMessageStatusesInput;
3056
+ pageInfo?: InputMaybe<PageInfoInput>;
3057
+ }>;
3058
+ export type BroadcastMessageStatusesQuery = {
3059
+ __typename?: 'Query';
3060
+ broadcastMessageStatuses: {
3061
+ __typename?: 'BroadcastMessageStatusesPayload';
3062
+ nodes?: Array<{
3063
+ __typename?: 'BroadcastMessageStatus';
3064
+ messageId: string;
3065
+ clientName?: string | null;
3066
+ clientPhone?: string | null;
3067
+ clientEmail?: string | null;
3068
+ clientCountry?: string | null;
3069
+ clientTags?: Array<string> | null;
3070
+ clientLifecycle?: string | null;
3071
+ status?: MessageStatus | null;
3072
+ failureReason?: string | null;
3073
+ createdAt: any;
3074
+ }> | null;
3075
+ pageInfo?: {
3076
+ __typename?: 'PageInfo';
3077
+ hasNextPage: boolean;
3078
+ endCursor?: any | null;
3079
+ count?: number | null;
3080
+ } | null;
3081
+ };
3082
+ };
2846
3083
  export type BroadcastStateCountsQueryVariables = Exact<{
2847
3084
  input: BroadcastsInput;
2848
3085
  }>;
@@ -2969,6 +3206,7 @@ export type ClientQuery = {
2969
3206
  createdAt: any;
2970
3207
  stageId?: string | null;
2971
3208
  defaultAgentId?: string | null;
3209
+ deletedAt?: any | null;
2972
3210
  };
2973
3211
  };
2974
3212
  export type ClientByPhoneQueryVariables = Exact<{
@@ -2993,6 +3231,7 @@ export type ClientByPhoneQuery = {
2993
3231
  createdAt: any;
2994
3232
  stageId?: string | null;
2995
3233
  defaultAgentId?: string | null;
3234
+ deletedAt?: any | null;
2996
3235
  };
2997
3236
  };
2998
3237
  export type ClientsQueryVariables = Exact<{
@@ -3020,6 +3259,7 @@ export type ClientsQuery = {
3020
3259
  createdAt: any;
3021
3260
  stageId?: string | null;
3022
3261
  defaultAgentId?: string | null;
3262
+ deletedAt?: any | null;
3023
3263
  }> | null;
3024
3264
  pageInfo?: {
3025
3265
  __typename?: 'PageInfo';
@@ -3162,6 +3402,7 @@ export type CreateClientMutation = {
3162
3402
  createdAt: any;
3163
3403
  stageId?: string | null;
3164
3404
  defaultAgentId?: string | null;
3405
+ deletedAt?: any | null;
3165
3406
  };
3166
3407
  };
3167
3408
  export type DeleteAgentMutationVariables = Exact<{
@@ -3230,6 +3471,7 @@ export type DeleteClientMutation = {
3230
3471
  createdAt: any;
3231
3472
  stageId?: string | null;
3232
3473
  defaultAgentId?: string | null;
3474
+ deletedAt?: any | null;
3233
3475
  };
3234
3476
  };
3235
3477
  export type DeleteClientByExternalIdMutationVariables = Exact<{
@@ -3254,6 +3496,7 @@ export type DeleteClientByExternalIdMutation = {
3254
3496
  createdAt: any;
3255
3497
  stageId?: string | null;
3256
3498
  defaultAgentId?: string | null;
3499
+ deletedAt?: any | null;
3257
3500
  };
3258
3501
  };
3259
3502
  export type EndConvMutationVariables = Exact<{
@@ -3375,6 +3618,13 @@ export type MessagesQuery = {
3375
3618
  } | null;
3376
3619
  };
3377
3620
  };
3621
+ export type OpenConversationsNeedResponseCountQueryVariables = Exact<{
3622
+ input: OpenConversationsNeedResponseInput;
3623
+ }>;
3624
+ export type OpenConversationsNeedResponseCountQuery = {
3625
+ __typename?: 'Query';
3626
+ openConversationsNeedResponseCount: number;
3627
+ };
3378
3628
  export type PatchAgentMutationVariables = Exact<{
3379
3629
  input: AgentPatchInput;
3380
3630
  }>;
@@ -3441,6 +3691,7 @@ export type PatchClientMutation = {
3441
3691
  createdAt: any;
3442
3692
  stageId?: string | null;
3443
3693
  defaultAgentId?: string | null;
3694
+ deletedAt?: any | null;
3444
3695
  };
3445
3696
  };
3446
3697
  export type PatchConvMutationVariables = Exact<{
@@ -3579,6 +3830,7 @@ export type TagClientMutation = {
3579
3830
  createdAt: any;
3580
3831
  stageId?: string | null;
3581
3832
  defaultAgentId?: string | null;
3833
+ deletedAt?: any | null;
3582
3834
  };
3583
3835
  };
3584
3836
  export type TagConvMutationVariables = Exact<{
@@ -3676,6 +3928,7 @@ export type UndeleteClientMutation = {
3676
3928
  createdAt: any;
3677
3929
  stageId?: string | null;
3678
3930
  defaultAgentId?: string | null;
3931
+ deletedAt?: any | null;
3679
3932
  };
3680
3933
  };
3681
3934
  export type UndeleteClientByExternalIdMutationVariables = Exact<{
@@ -3700,6 +3953,7 @@ export type UndeleteClientByExternalIdMutation = {
3700
3953
  createdAt: any;
3701
3954
  stageId?: string | null;
3702
3955
  defaultAgentId?: string | null;
3956
+ deletedAt?: any | null;
3703
3957
  };
3704
3958
  };
3705
3959
  export type UntagClientMutationVariables = Exact<{
@@ -3724,6 +3978,7 @@ export type UntagClientMutation = {
3724
3978
  createdAt: any;
3725
3979
  stageId?: string | null;
3726
3980
  defaultAgentId?: string | null;
3981
+ deletedAt?: any | null;
3727
3982
  };
3728
3983
  };
3729
3984
  export type UntagConvMutationVariables = Exact<{
@@ -4171,6 +4426,25 @@ export type WebhooksQuery = {
4171
4426
  }> | null;
4172
4427
  };
4173
4428
  };
4429
+ export type WorkspaceFragment = {
4430
+ __typename?: 'Workspace';
4431
+ id: number;
4432
+ name: string;
4433
+ address?: string | null;
4434
+ city?: string | null;
4435
+ country?: string | null;
4436
+ website?: string | null;
4437
+ companyUserId?: number | null;
4438
+ phoneNumber?: string | null;
4439
+ taxOffice?: string | null;
4440
+ taxNumber?: string | null;
4441
+ contactPersonName?: string | null;
4442
+ contactPersonEmail?: string | null;
4443
+ contactPersonPhoneNumber?: string | null;
4444
+ accountId?: string | null;
4445
+ subscriptionType?: string | null;
4446
+ createDate: any;
4447
+ };
4174
4448
  export type WorkspaceSettingsFragment = {
4175
4449
  __typename?: 'WorkspaceSettings';
4176
4450
  id: string;
@@ -4216,6 +4490,42 @@ export type WorkspaceSettingsQuery = {
4216
4490
  }> | null;
4217
4491
  } | null;
4218
4492
  };
4493
+ export type WorkspacesQueryVariables = Exact<{
4494
+ input: WorkspacesInput;
4495
+ pageInfo?: InputMaybe<PageInfoInput>;
4496
+ }>;
4497
+ export type WorkspacesQuery = {
4498
+ __typename?: 'Query';
4499
+ workspaces: {
4500
+ __typename?: 'WorkspacesPayload';
4501
+ nodes: Array<{
4502
+ __typename?: 'Workspace';
4503
+ id: number;
4504
+ name: string;
4505
+ address?: string | null;
4506
+ city?: string | null;
4507
+ country?: string | null;
4508
+ website?: string | null;
4509
+ companyUserId?: number | null;
4510
+ phoneNumber?: string | null;
4511
+ taxOffice?: string | null;
4512
+ taxNumber?: string | null;
4513
+ contactPersonName?: string | null;
4514
+ contactPersonEmail?: string | null;
4515
+ contactPersonPhoneNumber?: string | null;
4516
+ accountId?: string | null;
4517
+ subscriptionType?: string | null;
4518
+ createDate: any;
4519
+ }>;
4520
+ pageInfo: {
4521
+ __typename?: 'PageInfo';
4522
+ hasNextPage: boolean;
4523
+ endCursor?: any | null;
4524
+ count?: number | null;
4525
+ };
4526
+ };
4527
+ };
4528
+ export declare const UserFragmentDoc: Apollo.DocumentNode;
4219
4529
  export declare const UserRoleFragmentDoc: Apollo.DocumentNode;
4220
4530
  export declare const AgentReportFragmentDoc: Apollo.DocumentNode;
4221
4531
  export declare const ConversationReportFragmentDoc: Apollo.DocumentNode;
@@ -4232,6 +4542,7 @@ export declare const AiFragmentDoc: Apollo.DocumentNode;
4232
4542
  export declare const ApiKeyFragmentDoc: Apollo.DocumentNode;
4233
4543
  export declare const IntegrationFragmentDoc: Apollo.DocumentNode;
4234
4544
  export declare const WebhookFragmentDoc: Apollo.DocumentNode;
4545
+ export declare const WorkspaceFragmentDoc: Apollo.DocumentNode;
4235
4546
  export declare const WorkspaceSettingsFragmentDoc: Apollo.DocumentNode;
4236
4547
  export declare const CreateSourceDocument: Apollo.DocumentNode;
4237
4548
  export type CreateSourceMutationFn = Apollo.MutationFunction<CreateSourceMutation, CreateSourceMutationVariables>;
@@ -4461,6 +4772,41 @@ export declare function useAssignUserRoleMutation(baseOptions?: Apollo.MutationH
4461
4772
  export type AssignUserRoleMutationHookResult = ReturnType<typeof useAssignUserRoleMutation>;
4462
4773
  export type AssignUserRoleMutationResult = Apollo.MutationResult<AssignUserRoleMutation>;
4463
4774
  export type AssignUserRoleMutationOptions = Apollo.BaseMutationOptions<AssignUserRoleMutation, AssignUserRoleMutationVariables>;
4775
+ export declare const CurrentUserDocument: Apollo.DocumentNode;
4776
+ /**
4777
+ * __useCurrentUserQuery__
4778
+ *
4779
+ * To run a query within a React component, call `useCurrentUserQuery` and pass it any options that fit your needs.
4780
+ * When your component renders, `useCurrentUserQuery` returns an object from Apollo Client that contains loading, error, and data properties
4781
+ * you can use to render your UI.
4782
+ *
4783
+ * @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;
4784
+ *
4785
+ * @example
4786
+ * const { data, loading, error } = useCurrentUserQuery({
4787
+ * variables: {
4788
+ * },
4789
+ * });
4790
+ */
4791
+ export declare function useCurrentUserQuery(baseOptions?: Apollo.QueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.QueryResult<CurrentUserQuery, Exact<{
4792
+ [key: string]: never;
4793
+ }>>;
4794
+ export declare function useCurrentUserLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.LazyQueryResultTuple<CurrentUserQuery, Exact<{
4795
+ [key: string]: never;
4796
+ }>>;
4797
+ export declare function useCurrentUserSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CurrentUserQuery, CurrentUserQueryVariables>): Apollo.UseSuspenseQueryResult<CurrentUserQuery | undefined, Exact<{
4798
+ [key: string]: never;
4799
+ }>>;
4800
+ export type CurrentUserQueryHookResult = ReturnType<typeof useCurrentUserQuery>;
4801
+ export type CurrentUserLazyQueryHookResult = ReturnType<typeof useCurrentUserLazyQuery>;
4802
+ export type CurrentUserSuspenseQueryHookResult = ReturnType<typeof useCurrentUserSuspenseQuery>;
4803
+ export type CurrentUserQueryResult = Apollo.QueryResult<CurrentUserQuery, CurrentUserQueryVariables>;
4804
+ export declare function refetchCurrentUserQuery(variables?: CurrentUserQueryVariables): {
4805
+ query: Apollo.DocumentNode;
4806
+ variables: Exact<{
4807
+ [key: string]: never;
4808
+ }> | undefined;
4809
+ };
4464
4810
  export declare const InitWorkspaceDocument: Apollo.DocumentNode;
4465
4811
  export type InitWorkspaceMutationFn = Apollo.MutationFunction<InitWorkspaceMutation, InitWorkspaceMutationVariables>;
4466
4812
  /**
@@ -4910,6 +5256,52 @@ export declare function refetchBroadcastDeliveryReportQuery(variables: Broadcast
4910
5256
  input: BroadcastDeliveryReportInput;
4911
5257
  }>;
4912
5258
  };
5259
+ export declare const BroadcastMessageStatusesDocument: Apollo.DocumentNode;
5260
+ /**
5261
+ * __useBroadcastMessageStatusesQuery__
5262
+ *
5263
+ * To run a query within a React component, call `useBroadcastMessageStatusesQuery` and pass it any options that fit your needs.
5264
+ * When your component renders, `useBroadcastMessageStatusesQuery` returns an object from Apollo Client that contains loading, error, and data properties
5265
+ * you can use to render your UI.
5266
+ *
5267
+ * @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;
5268
+ *
5269
+ * @example
5270
+ * const { data, loading, error } = useBroadcastMessageStatusesQuery({
5271
+ * variables: {
5272
+ * input: // value for 'input'
5273
+ * pageInfo: // value for 'pageInfo'
5274
+ * },
5275
+ * });
5276
+ */
5277
+ export declare function useBroadcastMessageStatusesQuery(baseOptions: Apollo.QueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables> & ({
5278
+ variables: BroadcastMessageStatusesQueryVariables;
5279
+ skip?: boolean;
5280
+ } | {
5281
+ skip: boolean;
5282
+ })): Apollo.QueryResult<BroadcastMessageStatusesQuery, Exact<{
5283
+ input: BroadcastMessageStatusesInput;
5284
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5285
+ }>>;
5286
+ export declare function useBroadcastMessageStatusesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>): Apollo.LazyQueryResultTuple<BroadcastMessageStatusesQuery, Exact<{
5287
+ input: BroadcastMessageStatusesInput;
5288
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5289
+ }>>;
5290
+ export declare function useBroadcastMessageStatusesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>): Apollo.UseSuspenseQueryResult<BroadcastMessageStatusesQuery | undefined, Exact<{
5291
+ input: BroadcastMessageStatusesInput;
5292
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5293
+ }>>;
5294
+ export type BroadcastMessageStatusesQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesQuery>;
5295
+ export type BroadcastMessageStatusesLazyQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesLazyQuery>;
5296
+ export type BroadcastMessageStatusesSuspenseQueryHookResult = ReturnType<typeof useBroadcastMessageStatusesSuspenseQuery>;
5297
+ export type BroadcastMessageStatusesQueryResult = Apollo.QueryResult<BroadcastMessageStatusesQuery, BroadcastMessageStatusesQueryVariables>;
5298
+ export declare function refetchBroadcastMessageStatusesQuery(variables: BroadcastMessageStatusesQueryVariables): {
5299
+ query: Apollo.DocumentNode;
5300
+ variables: Exact<{
5301
+ input: BroadcastMessageStatusesInput;
5302
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
5303
+ }>;
5304
+ };
4913
5305
  export declare const BroadcastStateCountsDocument: Apollo.DocumentNode;
4914
5306
  /**
4915
5307
  * __useBroadcastStateCountsQuery__
@@ -5533,6 +5925,47 @@ export declare function refetchMessagesQuery(variables: MessagesQueryVariables):
5533
5925
  pageInfo?: InputMaybe<PageInfoInput> | undefined;
5534
5926
  }>;
5535
5927
  };
5928
+ export declare const OpenConversationsNeedResponseCountDocument: Apollo.DocumentNode;
5929
+ /**
5930
+ * __useOpenConversationsNeedResponseCountQuery__
5931
+ *
5932
+ * To run a query within a React component, call `useOpenConversationsNeedResponseCountQuery` and pass it any options that fit your needs.
5933
+ * When your component renders, `useOpenConversationsNeedResponseCountQuery` returns an object from Apollo Client that contains loading, error, and data properties
5934
+ * you can use to render your UI.
5935
+ *
5936
+ * @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;
5937
+ *
5938
+ * @example
5939
+ * const { data, loading, error } = useOpenConversationsNeedResponseCountQuery({
5940
+ * variables: {
5941
+ * input: // value for 'input'
5942
+ * },
5943
+ * });
5944
+ */
5945
+ export declare function useOpenConversationsNeedResponseCountQuery(baseOptions: Apollo.QueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables> & ({
5946
+ variables: OpenConversationsNeedResponseCountQueryVariables;
5947
+ skip?: boolean;
5948
+ } | {
5949
+ skip: boolean;
5950
+ })): Apollo.QueryResult<OpenConversationsNeedResponseCountQuery, Exact<{
5951
+ input: OpenConversationsNeedResponseInput;
5952
+ }>>;
5953
+ export declare function useOpenConversationsNeedResponseCountLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>): Apollo.LazyQueryResultTuple<OpenConversationsNeedResponseCountQuery, Exact<{
5954
+ input: OpenConversationsNeedResponseInput;
5955
+ }>>;
5956
+ export declare function useOpenConversationsNeedResponseCountSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>): Apollo.UseSuspenseQueryResult<OpenConversationsNeedResponseCountQuery | undefined, Exact<{
5957
+ input: OpenConversationsNeedResponseInput;
5958
+ }>>;
5959
+ export type OpenConversationsNeedResponseCountQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountQuery>;
5960
+ export type OpenConversationsNeedResponseCountLazyQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountLazyQuery>;
5961
+ export type OpenConversationsNeedResponseCountSuspenseQueryHookResult = ReturnType<typeof useOpenConversationsNeedResponseCountSuspenseQuery>;
5962
+ export type OpenConversationsNeedResponseCountQueryResult = Apollo.QueryResult<OpenConversationsNeedResponseCountQuery, OpenConversationsNeedResponseCountQueryVariables>;
5963
+ export declare function refetchOpenConversationsNeedResponseCountQuery(variables: OpenConversationsNeedResponseCountQueryVariables): {
5964
+ query: Apollo.DocumentNode;
5965
+ variables: Exact<{
5966
+ input: OpenConversationsNeedResponseInput;
5967
+ }>;
5968
+ };
5536
5969
  export declare const PatchAgentDocument: Apollo.DocumentNode;
5537
5970
  export type PatchAgentMutationFn = Apollo.MutationFunction<PatchAgentMutation, PatchAgentMutationVariables>;
5538
5971
  /**
@@ -6609,3 +7042,49 @@ export declare function refetchWorkspaceSettingsQuery(variables: WorkspaceSettin
6609
7042
  input: WorkspaceSettingsInput;
6610
7043
  }>;
6611
7044
  };
7045
+ export declare const WorkspacesDocument: Apollo.DocumentNode;
7046
+ /**
7047
+ * __useWorkspacesQuery__
7048
+ *
7049
+ * To run a query within a React component, call `useWorkspacesQuery` and pass it any options that fit your needs.
7050
+ * When your component renders, `useWorkspacesQuery` returns an object from Apollo Client that contains loading, error, and data properties
7051
+ * you can use to render your UI.
7052
+ *
7053
+ * @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;
7054
+ *
7055
+ * @example
7056
+ * const { data, loading, error } = useWorkspacesQuery({
7057
+ * variables: {
7058
+ * input: // value for 'input'
7059
+ * pageInfo: // value for 'pageInfo'
7060
+ * },
7061
+ * });
7062
+ */
7063
+ export declare function useWorkspacesQuery(baseOptions: Apollo.QueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables> & ({
7064
+ variables: WorkspacesQueryVariables;
7065
+ skip?: boolean;
7066
+ } | {
7067
+ skip: boolean;
7068
+ })): Apollo.QueryResult<WorkspacesQuery, Exact<{
7069
+ input: WorkspacesInput;
7070
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7071
+ }>>;
7072
+ export declare function useWorkspacesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables>): Apollo.LazyQueryResultTuple<WorkspacesQuery, Exact<{
7073
+ input: WorkspacesInput;
7074
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7075
+ }>>;
7076
+ export declare function useWorkspacesSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<WorkspacesQuery, WorkspacesQueryVariables>): Apollo.UseSuspenseQueryResult<WorkspacesQuery | undefined, Exact<{
7077
+ input: WorkspacesInput;
7078
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7079
+ }>>;
7080
+ export type WorkspacesQueryHookResult = ReturnType<typeof useWorkspacesQuery>;
7081
+ export type WorkspacesLazyQueryHookResult = ReturnType<typeof useWorkspacesLazyQuery>;
7082
+ export type WorkspacesSuspenseQueryHookResult = ReturnType<typeof useWorkspacesSuspenseQuery>;
7083
+ export type WorkspacesQueryResult = Apollo.QueryResult<WorkspacesQuery, WorkspacesQueryVariables>;
7084
+ export declare function refetchWorkspacesQuery(variables: WorkspacesQueryVariables): {
7085
+ query: Apollo.DocumentNode;
7086
+ variables: Exact<{
7087
+ input: WorkspacesInput;
7088
+ pageInfo?: InputMaybe<PageInfoInput> | undefined;
7089
+ }>;
7090
+ };