@droz-js/sdk 0.9.74 → 0.9.76

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.9.74",
4
+ "version": "0.9.76",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
package/src/nucleus.d.ts CHANGED
@@ -140,12 +140,21 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
140
140
  listCustomers(variables?: import("./sdks/nucleus").Exact<{
141
141
  next?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").Scalars["Base64"]["input"]>;
142
142
  }>, options?: unknown): Promise<import("./sdks/nucleus").ListCustomersQuery>;
143
+ batchGetCustomersById(variables: import("./sdks/nucleus").Exact<{
144
+ ids: Array<import("./sdks/nucleus").Scalars["ID"]["input"]> | import("./sdks/nucleus").Scalars["ID"]["input"];
145
+ }>, options?: unknown): Promise<import("./sdks/nucleus").BatchGetCustomersByIdQuery>;
146
+ createCustomer(variables?: import("./sdks/nucleus").Exact<{
147
+ input?: import("./sdks/nucleus").InputMaybe<import("./sdks/nucleus").CreateCustomerInput>;
148
+ }>, options?: unknown): Promise<import("./sdks/nucleus").CreateCustomerMutation>;
143
149
  getOrCreateCustomer(variables: import("./sdks/nucleus").Exact<{
144
150
  input: import("./sdks/nucleus").GetOrCreateCustomerInput;
145
151
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetOrCreateCustomerMutation>;
146
152
  updateCustomer(variables: import("./sdks/nucleus").Exact<{
147
153
  input: import("./sdks/nucleus").UpdateCustomerInput;
148
154
  }>, options?: unknown): Promise<import("./sdks/nucleus").UpdateCustomerMutation>;
155
+ deleteCustomer(variables: import("./sdks/nucleus").Exact<{
156
+ id: import("./sdks/nucleus").Scalars["ID"]["input"];
157
+ }>, options?: unknown): Promise<import("./sdks/nucleus").DeleteCustomerMutation>;
149
158
  getCronJob(variables: import("./sdks/nucleus").Exact<{
150
159
  id: import("./sdks/nucleus").Scalars["ID"]["input"];
151
160
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetCronJobQuery>;
@@ -151,6 +151,7 @@ export type CreateDrozBotSessionAttributesInput = {
151
151
  };
152
152
  export type CreateDrozBotTicketCommentInput = {
153
153
  comment: Scalars['String']['input'];
154
+ isAttachment?: InputMaybe<Scalars['Boolean']['input']>;
154
155
  isHistory?: InputMaybe<Scalars['Boolean']['input']>;
155
156
  sender?: InputMaybe<DrozBotTicketMessageSender>;
156
157
  ticketId: Scalars['ID']['input'];
@@ -175,6 +176,7 @@ export type CreateDrozBotTicketProfileInput = {
175
176
  };
176
177
  export type CreateManyDrozBotTicketCommentsInput = {
177
178
  comment: Scalars['String']['input'];
179
+ isAttachment?: InputMaybe<Scalars['Boolean']['input']>;
178
180
  isHistory?: InputMaybe<Scalars['Boolean']['input']>;
179
181
  sender: DrozBotTicketMessageSender;
180
182
  };
@@ -273,6 +273,14 @@ export type CreateCronJobInput = {
273
273
  payload: Scalars['JSON']['input'];
274
274
  times?: InputMaybe<Scalars['Float']['input']>;
275
275
  };
276
+ export type CreateCustomerInput = {
277
+ alternateName?: InputMaybe<Scalars['String']['input']>;
278
+ documents?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
279
+ emails?: InputMaybe<Array<InputMaybe<Scalars['EmailAddress']['input']>>>;
280
+ externalIds?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
281
+ name?: InputMaybe<Scalars['String']['input']>;
282
+ phones?: InputMaybe<Array<InputMaybe<Scalars['PhoneNumber']['input']>>>;
283
+ };
276
284
  export type CreatePresignedUploadUrl = {
277
285
  cdnUrl: Scalars['String']['output'];
278
286
  fields?: Maybe<Scalars['JSON']['output']>;
@@ -341,6 +349,7 @@ export type Customer = {
341
349
  /** @deprecated Use phones instead */
342
350
  phone?: Maybe<Scalars['String']['output']>;
343
351
  phones?: Maybe<Array<Scalars['String']['output']>>;
352
+ status: CustomerStatus;
344
353
  updatedAt: Scalars['DateTime']['output'];
345
354
  };
346
355
  export declare enum CustomerIndex {
@@ -349,6 +358,11 @@ export declare enum CustomerIndex {
349
358
  ByExternalId = "byExternalId",
350
359
  ByPhone = "byPhone"
351
360
  }
361
+ export declare enum CustomerStatus {
362
+ Active = "Active",
363
+ Archived = "Archived",
364
+ Merged = "Merged"
365
+ }
352
366
  export type CustomersConnection = {
353
367
  nodes: Array<Customer>;
354
368
  pageInfo: PageInfo;
@@ -448,11 +462,13 @@ export type Mutation = {
448
462
  createApiKeyAgent?: Maybe<ApiKeyAgent>;
449
463
  createCredentials: SafeCredentials;
450
464
  createCronJob: CronJob;
465
+ createCustomer: Customer;
451
466
  createPresignedUploadUrl: CreatePresignedUploadUrl;
452
467
  createStateMachineConfig?: Maybe<StateMachineConfig>;
453
468
  createStateMachineConfigState?: Maybe<StateMachineConfig>;
454
469
  createSystemApiKeyAgent?: Maybe<ApiKeyAgent>;
455
470
  createSystemCredentials: SafeCredentials;
471
+ deleteCustomer?: Maybe<Scalars['Void']['output']>;
456
472
  editStateMachineConfig?: Maybe<StateMachineConfig>;
457
473
  getOrCreateCustomer: Customer;
458
474
  joinAsSuperAdmin?: Maybe<Scalars['String']['output']>;
@@ -501,6 +517,9 @@ export type MutationCreateCredentialsArgs = {
501
517
  export type MutationCreateCronJobArgs = {
502
518
  input: CreateCronJobInput;
503
519
  };
520
+ export type MutationCreateCustomerArgs = {
521
+ input?: InputMaybe<CreateCustomerInput>;
522
+ };
504
523
  export type MutationCreatePresignedUploadUrlArgs = {
505
524
  input: CreatePresignedUploadUrlInput;
506
525
  };
@@ -516,6 +535,9 @@ export type MutationCreateSystemApiKeyAgentArgs = {
516
535
  export type MutationCreateSystemCredentialsArgs = {
517
536
  input: CreateCredentialsInput;
518
537
  };
538
+ export type MutationDeleteCustomerArgs = {
539
+ id: Scalars['ID']['input'];
540
+ };
519
541
  export type MutationEditStateMachineConfigArgs = {
520
542
  input: EditStateMachineConfigInput;
521
543
  };
@@ -666,6 +688,7 @@ export type Query = {
666
688
  amplifyConfig?: Maybe<Scalars['JSON']['output']>;
667
689
  app?: Maybe<Scalars['DRN']['output']>;
668
690
  authInfo?: Maybe<AuthInfo>;
691
+ batchGetCustomersById?: Maybe<Array<Maybe<Customer>>>;
669
692
  checkPermissions: Scalars['Boolean']['output'];
670
693
  countAppInstances: Scalars['Int']['output'];
671
694
  countCredentials: Scalars['Int']['output'];
@@ -715,6 +738,9 @@ export type QueryAmplifyConfigArgs = {
715
738
  forDev?: InputMaybe<Scalars['Boolean']['input']>;
716
739
  forService?: InputMaybe<Scalars['String']['input']>;
717
740
  };
741
+ export type QueryBatchGetCustomersByIdArgs = {
742
+ ids: Array<Scalars['ID']['input']>;
743
+ };
718
744
  export type QueryCheckPermissionsArgs = {
719
745
  can: Can;
720
746
  resources: Array<Scalars['String']['input']>;
@@ -1390,7 +1416,7 @@ export type RemoveSystemCredentialsMutationVariables = Exact<{
1390
1416
  export type RemoveSystemCredentialsMutation = {
1391
1417
  removeSystemCredentials?: Maybe<SafeCredentialsFragment>;
1392
1418
  };
1393
- export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'createdAt' | 'updatedAt'> & {
1419
+ export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'status' | 'createdAt' | 'updatedAt'> & {
1394
1420
  apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
1395
1421
  });
1396
1422
  export type GetCustomerQueryVariables = Exact<{
@@ -1408,6 +1434,18 @@ export type ListCustomersQuery = {
1408
1434
  pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
1409
1435
  }>;
1410
1436
  };
1437
+ export type BatchGetCustomersByIdQueryVariables = Exact<{
1438
+ ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
1439
+ }>;
1440
+ export type BatchGetCustomersByIdQuery = {
1441
+ batchGetCustomersById?: Maybe<Array<Maybe<CustomerFragment>>>;
1442
+ };
1443
+ export type CreateCustomerMutationVariables = Exact<{
1444
+ input?: InputMaybe<CreateCustomerInput>;
1445
+ }>;
1446
+ export type CreateCustomerMutation = {
1447
+ createCustomer: CustomerFragment;
1448
+ };
1411
1449
  export type GetOrCreateCustomerMutationVariables = Exact<{
1412
1450
  input: GetOrCreateCustomerInput;
1413
1451
  }>;
@@ -1420,6 +1458,10 @@ export type UpdateCustomerMutationVariables = Exact<{
1420
1458
  export type UpdateCustomerMutation = {
1421
1459
  updateCustomer: CustomerFragment;
1422
1460
  };
1461
+ export type DeleteCustomerMutationVariables = Exact<{
1462
+ id: Scalars['ID']['input'];
1463
+ }>;
1464
+ export type DeleteCustomerMutation = Pick<Mutation, 'deleteCustomer'>;
1423
1465
  export type CronJobFragment = Pick<CronJob, 'appId' | 'id' | 'description' | 'expression' | 'event' | 'payload' | 'status' | 'timestamp' | 'times' | 'runs'>;
1424
1466
  export type GetCronJobQueryVariables = Exact<{
1425
1467
  id: Scalars['ID']['input'];
@@ -1678,7 +1720,7 @@ export declare const AppInstanceFragmentDoc = "\n fragment appInstance on App
1678
1720
  export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
1679
1721
  export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1680
1722
  export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n credentials {\n code\n }\n }\n}\n ";
1681
- export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1723
+ export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1682
1724
  export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1683
1725
  export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1684
1726
  export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
@@ -1730,10 +1772,13 @@ export declare const CreateSystemCredentialsDocument = "\n mutation createSys
1730
1772
  export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1731
1773
  export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1732
1774
  export declare const RemoveSystemCredentialsDocument = "\n mutation removeSystemCredentials($input: RemoveCredentialsInput!) {\n removeSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
1733
- export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1734
- export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1735
- export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1736
- export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1775
+ export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1776
+ export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1777
+ export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1778
+ export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1779
+ export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1780
+ export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1781
+ export declare const DeleteCustomerDocument = "\n mutation deleteCustomer($id: ID!) {\n deleteCustomer(id: $id)\n}\n ";
1737
1782
  export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1738
1783
  export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
1739
1784
  export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n times\n runs\n}\n ";
@@ -1742,9 +1787,9 @@ export declare const RemoveCronJobDocument = "\n mutation removeCronJob($inpu
1742
1787
  export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n listSystemRoles {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1743
1788
  export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
1744
1789
  export declare const CheckPermissionsDocument = "\n query checkPermissions($can: Can!, $resources: [String!]!) {\n checkPermissions(can: $can, resources: $resources)\n}\n ";
1745
- export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1790
+ export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1746
1791
  export declare const StartCustomSessionDocument = "\n mutation startCustomSession($input: StartSessionInput!) {\n startCustomSession(input: $input) {\n ...session\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n ";
1747
- export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
1792
+ export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n}\n \n\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
1748
1793
  export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
1749
1794
  export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
1750
1795
  export declare const SearchSessionsDocument = "\n query searchSessions($q: String) {\n searchSessions(q: $q) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n status\n customer\n attributes\n context\n messages\n }\n}\n ";
@@ -1816,8 +1861,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
1816
1861
  removeSystemCredentials(variables: RemoveSystemCredentialsMutationVariables, options?: C): Promise<RemoveSystemCredentialsMutation>;
1817
1862
  getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
1818
1863
  listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
1864
+ batchGetCustomersById(variables: BatchGetCustomersByIdQueryVariables, options?: C): Promise<BatchGetCustomersByIdQuery>;
1865
+ createCustomer(variables?: CreateCustomerMutationVariables, options?: C): Promise<CreateCustomerMutation>;
1819
1866
  getOrCreateCustomer(variables: GetOrCreateCustomerMutationVariables, options?: C): Promise<GetOrCreateCustomerMutation>;
1820
1867
  updateCustomer(variables: UpdateCustomerMutationVariables, options?: C): Promise<UpdateCustomerMutation>;
1868
+ deleteCustomer(variables: DeleteCustomerMutationVariables, options?: C): Promise<DeleteCustomerMutation>;
1821
1869
  getCronJob(variables: GetCronJobQueryVariables, options?: C): Promise<GetCronJobQuery>;
1822
1870
  listCronJobs(variables?: ListCronJobsQueryVariables, options?: C): Promise<ListCronJobsQuery>;
1823
1871
  createCronJob(variables: CreateCronJobMutationVariables, options?: C): Promise<CreateCronJobMutation>;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  /* istanbul ignore file */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
5
- exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.UpdateCustomerDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = void 0;
6
- exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = void 0;
4
+ exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.SearchAgentsDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SettingsFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerStatus = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
5
+ exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.DeleteCustomerDocument = exports.UpdateCustomerDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.BatchGetCustomersByIdDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetFederationMetadataDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = void 0;
6
+ exports.serviceName = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListStateMachineConfigsByStatusDocument = void 0;
7
7
  exports.getSdk = getSdk;
8
8
  var AppInstanceStatus;
9
9
  (function (AppInstanceStatus) {
@@ -39,6 +39,12 @@ var CustomerIndex;
39
39
  CustomerIndex["ByExternalId"] = "byExternalId";
40
40
  CustomerIndex["ByPhone"] = "byPhone";
41
41
  })(CustomerIndex || (exports.CustomerIndex = CustomerIndex = {}));
42
+ var CustomerStatus;
43
+ (function (CustomerStatus) {
44
+ CustomerStatus["Active"] = "Active";
45
+ CustomerStatus["Archived"] = "Archived";
46
+ CustomerStatus["Merged"] = "Merged";
47
+ })(CustomerStatus || (exports.CustomerStatus = CustomerStatus = {}));
42
48
  var PatchOperation;
43
49
  (function (PatchOperation) {
44
50
  PatchOperation["Add"] = "add";
@@ -215,6 +221,7 @@ exports.CustomerFragmentDoc = `
215
221
  id
216
222
  name
217
223
  }
224
+ status
218
225
  createdAt
219
226
  updatedAt
220
227
  }
@@ -672,6 +679,20 @@ exports.ListCustomersDocument = `
672
679
  }
673
680
  }
674
681
  ${exports.CustomerFragmentDoc}`;
682
+ exports.BatchGetCustomersByIdDocument = `
683
+ query batchGetCustomersById($ids: [ID!]!) {
684
+ batchGetCustomersById(ids: $ids) {
685
+ ...customer
686
+ }
687
+ }
688
+ ${exports.CustomerFragmentDoc}`;
689
+ exports.CreateCustomerDocument = `
690
+ mutation createCustomer($input: CreateCustomerInput) {
691
+ createCustomer(input: $input) {
692
+ ...customer
693
+ }
694
+ }
695
+ ${exports.CustomerFragmentDoc}`;
675
696
  exports.GetOrCreateCustomerDocument = `
676
697
  mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {
677
698
  getOrCreateCustomer(input: $input) {
@@ -686,6 +707,11 @@ exports.UpdateCustomerDocument = `
686
707
  }
687
708
  }
688
709
  ${exports.CustomerFragmentDoc}`;
710
+ exports.DeleteCustomerDocument = `
711
+ mutation deleteCustomer($id: ID!) {
712
+ deleteCustomer(id: $id)
713
+ }
714
+ `;
689
715
  exports.GetCronJobDocument = `
690
716
  query getCronJob($id: ID!) {
691
717
  getCronJob(id: $id) {
@@ -1119,12 +1145,21 @@ function getSdk(requester) {
1119
1145
  listCustomers(variables, options) {
1120
1146
  return requester(exports.ListCustomersDocument, variables, options);
1121
1147
  },
1148
+ batchGetCustomersById(variables, options) {
1149
+ return requester(exports.BatchGetCustomersByIdDocument, variables, options);
1150
+ },
1151
+ createCustomer(variables, options) {
1152
+ return requester(exports.CreateCustomerDocument, variables, options);
1153
+ },
1122
1154
  getOrCreateCustomer(variables, options) {
1123
1155
  return requester(exports.GetOrCreateCustomerDocument, variables, options);
1124
1156
  },
1125
1157
  updateCustomer(variables, options) {
1126
1158
  return requester(exports.UpdateCustomerDocument, variables, options);
1127
1159
  },
1160
+ deleteCustomer(variables, options) {
1161
+ return requester(exports.DeleteCustomerDocument, variables, options);
1162
+ },
1128
1163
  getCronJob(variables, options) {
1129
1164
  return requester(exports.GetCronJobDocument, variables, options);
1130
1165
  },