@droz-js/sdk 0.26.10 → 0.26.12
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 +1 -1
- package/src/drozadmin.d.ts +9 -0
- package/src/nucleus.d.ts +6 -0
- package/src/sdks/drozcommons.d.ts +81 -8
- package/src/sdks/drozcommons.js +57 -2
- package/src/sdks/nucleus.d.ts +37 -0
- package/src/sdks/nucleus.js +32 -3
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -197,6 +197,15 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
197
197
|
revertZendeskInstanceMigration(variables: import("./sdks/drozcommons").Exact<{
|
|
198
198
|
input: import("./sdks/drozcommons").RevertZendeskInstanceMigrationInput;
|
|
199
199
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").RevertZendeskInstanceMigrationMutation>;
|
|
200
|
+
setTenantCustomDomain(variables: import("./sdks/drozcommons").Exact<{
|
|
201
|
+
input: import("./sdks/drozcommons").SetTenantCustomDomainInput;
|
|
202
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").SetTenantCustomDomainMutation>;
|
|
203
|
+
regenerateTenantCustomDomainCertificate(variables: import("./sdks/drozcommons").Exact<{
|
|
204
|
+
input: import("./sdks/drozcommons").RegenerateTenantCustomDomainCertificateInput;
|
|
205
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").RegenerateTenantCustomDomainCertificateMutation>;
|
|
206
|
+
removeTenantCustomDomain(variables: import("./sdks/drozcommons").Exact<{
|
|
207
|
+
input: import("./sdks/drozcommons").RemoveTenantCustomDomainInput;
|
|
208
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantCustomDomainMutation>;
|
|
200
209
|
};
|
|
201
210
|
export declare class DrozAdmin extends DrozAdmin_base {
|
|
202
211
|
constructor();
|
package/src/nucleus.d.ts
CHANGED
|
@@ -146,6 +146,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
146
146
|
getCustomer(variables: import("./sdks/nucleus").Exact<{
|
|
147
147
|
identifier: import("./sdks/nucleus").Scalars["ID"]["input"];
|
|
148
148
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetCustomerQuery>;
|
|
149
|
+
batchGetCustomersMessagingOptOut(variables: import("./sdks/nucleus").Exact<{
|
|
150
|
+
identifiers: Array<import("./sdks/nucleus").Scalars["ID"]["input"]> | import("./sdks/nucleus").Scalars["ID"]["input"];
|
|
151
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").BatchGetCustomersMessagingOptOutQuery>;
|
|
149
152
|
batchGetCustomersById(variables: import("./sdks/nucleus").Exact<{
|
|
150
153
|
ids: Array<import("./sdks/nucleus").Scalars["ID"]["input"]> | import("./sdks/nucleus").Scalars["ID"]["input"];
|
|
151
154
|
}>, options?: unknown): Promise<import("./sdks/nucleus").BatchGetCustomersByIdQuery>;
|
|
@@ -171,6 +174,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
171
174
|
refreshContactData(variables: import("./sdks/nucleus").Exact<{
|
|
172
175
|
input: import("./sdks/nucleus").RefreshContactDataInput;
|
|
173
176
|
}>, options?: unknown): Promise<import("./sdks/nucleus").RefreshContactDataMutation>;
|
|
177
|
+
recordMessagingOptOut(variables: import("./sdks/nucleus").Exact<{
|
|
178
|
+
input: import("./sdks/nucleus").RecordMessagingOptOutInput;
|
|
179
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RecordMessagingOptOutMutation>;
|
|
174
180
|
updateCustomer(variables: import("./sdks/nucleus").Exact<{
|
|
175
181
|
input: import("./sdks/nucleus").UpdateCustomerInput;
|
|
176
182
|
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateCustomerMutation>;
|
|
@@ -197,6 +197,24 @@ export type CreateTenantInput = {
|
|
|
197
197
|
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
198
198
|
tenantId: Scalars['TenantId']['input'];
|
|
199
199
|
};
|
|
200
|
+
export type CustomDomain = {
|
|
201
|
+
activatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
202
|
+
certificateArn?: Maybe<Scalars['String']['output']>;
|
|
203
|
+
certificateExpiresAt?: Maybe<Scalars['DateTime']['output']>;
|
|
204
|
+
host: Scalars['String']['output'];
|
|
205
|
+
issuedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
206
|
+
requestedAt: Scalars['DateTime']['output'];
|
|
207
|
+
status: CustomDomainStatus;
|
|
208
|
+
trafficRecord?: Maybe<DnsRecord>;
|
|
209
|
+
validationRecord?: Maybe<DnsRecord>;
|
|
210
|
+
};
|
|
211
|
+
export declare enum CustomDomainStatus {
|
|
212
|
+
Active = "ACTIVE",
|
|
213
|
+
Failed = "FAILED",
|
|
214
|
+
Issued = "ISSUED",
|
|
215
|
+
PendingValidation = "PENDING_VALIDATION",
|
|
216
|
+
TimedOut = "TIMED_OUT"
|
|
217
|
+
}
|
|
200
218
|
export type DeployInput = {
|
|
201
219
|
branch: Scalars['String']['input'];
|
|
202
220
|
gitRepository: Scalars['String']['input'];
|
|
@@ -247,6 +265,10 @@ export type DestroyInput = {
|
|
|
247
265
|
services: Array<InputMaybe<Scalars['String']['input']>>;
|
|
248
266
|
tenantId: Scalars['ID']['input'];
|
|
249
267
|
};
|
|
268
|
+
export type DnsRecord = {
|
|
269
|
+
name: Scalars['String']['output'];
|
|
270
|
+
value: Scalars['String']['output'];
|
|
271
|
+
};
|
|
250
272
|
export type DrozService = {
|
|
251
273
|
id: Scalars['String']['output'];
|
|
252
274
|
name: Scalars['String']['output'];
|
|
@@ -358,10 +380,12 @@ export type Mutation = {
|
|
|
358
380
|
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
359
381
|
leaveTenantOrganization?: Maybe<Scalars['Void']['output']>;
|
|
360
382
|
migrateZendeskInstanceToOAuth?: Maybe<MigrateZendeskInstanceToOAuthResult>;
|
|
383
|
+
regenerateTenantCustomDomainCertificate: Tenant;
|
|
361
384
|
removeAccountParameter?: Maybe<Parameter>;
|
|
362
385
|
removeEnvironmentParameter?: Maybe<Parameter>;
|
|
363
386
|
removeGlobalParameter?: Maybe<Parameter>;
|
|
364
387
|
removeTenant: Tenant;
|
|
388
|
+
removeTenantCustomDomain: Tenant;
|
|
365
389
|
removeTenantParameter?: Maybe<Parameter>;
|
|
366
390
|
removeTenantTags: Tenant;
|
|
367
391
|
retryQueueDlq: RetryQueueDlqResult;
|
|
@@ -369,6 +393,7 @@ export type Mutation = {
|
|
|
369
393
|
setAccountParameter: Parameter;
|
|
370
394
|
setEnvironmentParameter: Parameter;
|
|
371
395
|
setGlobalParameter: Parameter;
|
|
396
|
+
setTenantCustomDomain: Tenant;
|
|
372
397
|
setTenantParameter: Parameter;
|
|
373
398
|
updateAccount: AwsAccount;
|
|
374
399
|
updateLlmModel: LlmModel;
|
|
@@ -411,6 +436,9 @@ export type MutationLeaveTenantOrganizationArgs = {
|
|
|
411
436
|
export type MutationMigrateZendeskInstanceToOAuthArgs = {
|
|
412
437
|
input: MigrateZendeskInstanceToOAuthInput;
|
|
413
438
|
};
|
|
439
|
+
export type MutationRegenerateTenantCustomDomainCertificateArgs = {
|
|
440
|
+
input: RegenerateTenantCustomDomainCertificateInput;
|
|
441
|
+
};
|
|
414
442
|
export type MutationRemoveAccountParameterArgs = {
|
|
415
443
|
input: RemoveAccountParameterInput;
|
|
416
444
|
};
|
|
@@ -423,6 +451,9 @@ export type MutationRemoveGlobalParameterArgs = {
|
|
|
423
451
|
export type MutationRemoveTenantArgs = {
|
|
424
452
|
input: RemoveTenantInput;
|
|
425
453
|
};
|
|
454
|
+
export type MutationRemoveTenantCustomDomainArgs = {
|
|
455
|
+
input: RemoveTenantCustomDomainInput;
|
|
456
|
+
};
|
|
426
457
|
export type MutationRemoveTenantParameterArgs = {
|
|
427
458
|
input: RemoveTenantParameterInput;
|
|
428
459
|
};
|
|
@@ -444,6 +475,9 @@ export type MutationSetEnvironmentParameterArgs = {
|
|
|
444
475
|
export type MutationSetGlobalParameterArgs = {
|
|
445
476
|
input: SetGlobalParameterInput;
|
|
446
477
|
};
|
|
478
|
+
export type MutationSetTenantCustomDomainArgs = {
|
|
479
|
+
input: SetTenantCustomDomainInput;
|
|
480
|
+
};
|
|
447
481
|
export type MutationSetTenantParameterArgs = {
|
|
448
482
|
input: SetTenantParameterInput;
|
|
449
483
|
};
|
|
@@ -625,6 +659,9 @@ export type QueueHealth = {
|
|
|
625
659
|
tenantId: Scalars['TenantId']['output'];
|
|
626
660
|
updatedAt: Scalars['DateTime']['output'];
|
|
627
661
|
};
|
|
662
|
+
export type RegenerateTenantCustomDomainCertificateInput = {
|
|
663
|
+
tenantId: Scalars['TenantId']['input'];
|
|
664
|
+
};
|
|
628
665
|
export type Region = {
|
|
629
666
|
name: Scalars['String']['output'];
|
|
630
667
|
};
|
|
@@ -639,6 +676,9 @@ export type RemoveEnvironmentParameterInput = {
|
|
|
639
676
|
export type RemoveGlobalParameterInput = {
|
|
640
677
|
name: Scalars['String']['input'];
|
|
641
678
|
};
|
|
679
|
+
export type RemoveTenantCustomDomainInput = {
|
|
680
|
+
tenantId: Scalars['TenantId']['input'];
|
|
681
|
+
};
|
|
642
682
|
export type RemoveTenantInput = {
|
|
643
683
|
tenantId: Scalars['TenantId']['input'];
|
|
644
684
|
};
|
|
@@ -723,6 +763,10 @@ export type SetGlobalParameterInput = {
|
|
|
723
763
|
type?: InputMaybe<ParameterType>;
|
|
724
764
|
value: Scalars['String']['input'];
|
|
725
765
|
};
|
|
766
|
+
export type SetTenantCustomDomainInput = {
|
|
767
|
+
host: Scalars['String']['input'];
|
|
768
|
+
tenantId: Scalars['TenantId']['input'];
|
|
769
|
+
};
|
|
726
770
|
export type SetTenantParameterInput = {
|
|
727
771
|
name: Scalars['String']['input'];
|
|
728
772
|
tenantId: Scalars['String']['input'];
|
|
@@ -759,6 +803,7 @@ export type Tenant = {
|
|
|
759
803
|
account: AwsAccount;
|
|
760
804
|
accountId: Scalars['ID']['output'];
|
|
761
805
|
createdAt: Scalars['DateTime']['output'];
|
|
806
|
+
customDomain?: Maybe<CustomDomain>;
|
|
762
807
|
deployedVersions?: Maybe<Scalars['JSON']['output']>;
|
|
763
808
|
deployments: Array<Deployment>;
|
|
764
809
|
disabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1086,6 +1131,10 @@ export type ListServicesQuery = {
|
|
|
1086
1131
|
export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'disabled' | 'createdAt' | 'updatedAt' | 'tags'> & {
|
|
1087
1132
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
1088
1133
|
identityProviders: Array<Pick<IdentityProvider, 'type' | 'name' | 'metadataType' | 'metadataContent' | 'attributeMapping'>>;
|
|
1134
|
+
customDomain?: Maybe<(Pick<CustomDomain, 'host' | 'status' | 'certificateArn' | 'requestedAt' | 'issuedAt' | 'activatedAt' | 'certificateExpiresAt'> & {
|
|
1135
|
+
validationRecord?: Maybe<Pick<DnsRecord, 'name' | 'value'>>;
|
|
1136
|
+
trafficRecord?: Maybe<Pick<DnsRecord, 'name' | 'value'>>;
|
|
1137
|
+
})>;
|
|
1089
1138
|
});
|
|
1090
1139
|
export type GetTenantQueryVariables = Exact<{
|
|
1091
1140
|
tenantId: Scalars['TenantId']['input'];
|
|
@@ -1194,6 +1243,24 @@ export type RevertZendeskInstanceMigrationMutationVariables = Exact<{
|
|
|
1194
1243
|
export type RevertZendeskInstanceMigrationMutation = {
|
|
1195
1244
|
revertZendeskInstanceMigration?: Maybe<Pick<RevertZendeskInstanceMigrationResult, 'tenantId' | 'instanceId' | 'status' | 'currentCredentialId' | 'restoredCredentialId' | 'oauthCredentialId' | 'clientRevokedInZendesk'>>;
|
|
1196
1245
|
};
|
|
1246
|
+
export type SetTenantCustomDomainMutationVariables = Exact<{
|
|
1247
|
+
input: SetTenantCustomDomainInput;
|
|
1248
|
+
}>;
|
|
1249
|
+
export type SetTenantCustomDomainMutation = {
|
|
1250
|
+
setTenantCustomDomain: TenantFragment;
|
|
1251
|
+
};
|
|
1252
|
+
export type RegenerateTenantCustomDomainCertificateMutationVariables = Exact<{
|
|
1253
|
+
input: RegenerateTenantCustomDomainCertificateInput;
|
|
1254
|
+
}>;
|
|
1255
|
+
export type RegenerateTenantCustomDomainCertificateMutation = {
|
|
1256
|
+
regenerateTenantCustomDomainCertificate: TenantFragment;
|
|
1257
|
+
};
|
|
1258
|
+
export type RemoveTenantCustomDomainMutationVariables = Exact<{
|
|
1259
|
+
input: RemoveTenantCustomDomainInput;
|
|
1260
|
+
}>;
|
|
1261
|
+
export type RemoveTenantCustomDomainMutation = {
|
|
1262
|
+
removeTenantCustomDomain: TenantFragment;
|
|
1263
|
+
};
|
|
1197
1264
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
1198
1265
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
|
|
1199
1266
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n agent {\n id\n name\n }\n}\n ";
|
|
@@ -1206,7 +1273,7 @@ export declare const ParameterFragmentDoc = "\n fragment parameter on Paramet
|
|
|
1206
1273
|
export declare const TenantQueueSummaryFragmentDoc = "\n fragment tenantQueueSummary on TenantQueueSummary {\n tenantId\n totalVisible\n totalInDlq\n worstAlarmState\n}\n ";
|
|
1207
1274
|
export declare const QueueHealthFragmentDoc = "\n fragment queueHealth on QueueHealth {\n tenantId\n accountId\n queueName\n serviceId\n isDlq\n approximateNumberOfMessages\n approximateNumberOfMessagesNotVisible\n alarmState\n}\n ";
|
|
1208
1275
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
1209
|
-
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1276
|
+
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1210
1277
|
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
1211
1278
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
1212
1279
|
export declare const UpdateAccountDocument = "\n mutation updateAccount($input: UpdateAccountInput!) {\n updateAccount(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
@@ -1247,25 +1314,28 @@ export declare const ListQueueHealthSummaryDocument = "\n query listQueueHeal
|
|
|
1247
1314
|
export declare const ListQueueHealthDocument = "\n query listQueueHealth($tenantId: TenantId!) {\n listQueueHealth(tenantId: $tenantId) {\n ...queueHealth\n }\n}\n \n fragment queueHealth on QueueHealth {\n tenantId\n accountId\n queueName\n serviceId\n isDlq\n approximateNumberOfMessages\n approximateNumberOfMessagesNotVisible\n alarmState\n}\n ";
|
|
1248
1315
|
export declare const RetryQueueDlqDocument = "\n mutation retryQueueDlq($input: RetryQueueDlqInput!) {\n retryQueueDlq(input: $input) {\n status\n taskHandle\n }\n}\n ";
|
|
1249
1316
|
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
1250
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n agent {\n id\n name\n }\n}\n ";
|
|
1251
|
-
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n agent {\n id\n name\n }\n}\n ";
|
|
1317
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n agent {\n id\n name\n }\n}\n ";
|
|
1318
|
+
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n services\n deployedVersion\n createdAt\n updatedAt\n agent {\n id\n name\n }\n}\n ";
|
|
1252
1319
|
export declare const GetFederationMetadataDocument = "\n query getFederationMetadata($tenantId: TenantId!) {\n getFederationMetadata(tenantId: $tenantId)\n}\n ";
|
|
1253
1320
|
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
|
|
1254
1321
|
export declare const GetZendeskTicketDetailsDocument = "\n query getZendeskTicketDetails($tenantId: TenantId!, $ticketId: String!) {\n getZendeskTicketDetails(tenantId: $tenantId, ticketId: $ticketId)\n}\n ";
|
|
1255
1322
|
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances($tenantId: TenantId!) {\n listReclameAquiInstances(tenantId: $tenantId)\n}\n ";
|
|
1256
1323
|
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances($tenantId: TenantId!) {\n listZendeskInstances(tenantId: $tenantId)\n}\n ";
|
|
1257
1324
|
export declare const GetReclameAquiTicketDetailsDocument = "\n query getReclameAquiTicketDetails($tenantId: TenantId!, $instanceId: String!, $ticketId: String!) {\n getReclameAquiTicketDetails(\n tenantId: $tenantId\n instanceId: $instanceId\n ticketId: $ticketId\n )\n}\n ";
|
|
1258
|
-
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1259
|
-
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1260
|
-
export declare const AddTenantTagsDocument = "\n mutation addTenantTags($input: AddTenantTagsInput!) {\n addTenantTags(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1261
|
-
export declare const RemoveTenantTagsDocument = "\n mutation removeTenantTags($input: RemoveTenantTagsInput!) {\n removeTenantTags(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1262
|
-
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
1325
|
+
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1326
|
+
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1327
|
+
export declare const AddTenantTagsDocument = "\n mutation addTenantTags($input: AddTenantTagsInput!) {\n addTenantTags(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1328
|
+
export declare const RemoveTenantTagsDocument = "\n mutation removeTenantTags($input: RemoveTenantTagsInput!) {\n removeTenantTags(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1329
|
+
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1263
1330
|
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
|
|
1264
1331
|
export declare const LeaveTenantOrganizationDocument = "\n mutation leaveTenantOrganization($input: LeaveTenantOrganizationInput!) {\n leaveTenantOrganization(input: $input)\n}\n ";
|
|
1265
1332
|
export declare const FullReindexBaseDocument = "\n mutation fullReindexBase($input: FullReindexBaseInput) {\n fullReindexBase(input: $input)\n}\n ";
|
|
1266
1333
|
export declare const CreateReclameAquiTicketSessionOnTenantDocument = "\n mutation createReclameAquiTicketSessionOnTenant($input: CreateReclameAquiTicketSessionOnTenantInput!) {\n createReclameAquiTicketSessionOnTenant(input: $input)\n}\n ";
|
|
1267
1334
|
export declare const MigrateZendeskInstanceToOAuthDocument = "\n mutation migrateZendeskInstanceToOAuth($input: MigrateZendeskInstanceToOAuthInput!) {\n migrateZendeskInstanceToOAuth(input: $input) {\n tenantId\n instanceId\n status\n credentialType\n ownerGroupCount\n previousCredentialId\n newCredentialId\n oauthClientId\n }\n}\n ";
|
|
1268
1335
|
export declare const RevertZendeskInstanceMigrationDocument = "\n mutation revertZendeskInstanceMigration($input: RevertZendeskInstanceMigrationInput!) {\n revertZendeskInstanceMigration(input: $input) {\n tenantId\n instanceId\n status\n currentCredentialId\n restoredCredentialId\n oauthCredentialId\n clientRevokedInZendesk\n }\n}\n ";
|
|
1336
|
+
export declare const SetTenantCustomDomainDocument = "\n mutation setTenantCustomDomain($input: SetTenantCustomDomainInput!) {\n setTenantCustomDomain(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1337
|
+
export declare const RegenerateTenantCustomDomainCertificateDocument = "\n mutation regenerateTenantCustomDomainCertificate($input: RegenerateTenantCustomDomainCertificateInput!) {\n regenerateTenantCustomDomainCertificate(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1338
|
+
export declare const RemoveTenantCustomDomainDocument = "\n mutation removeTenantCustomDomain($input: RemoveTenantCustomDomainInput!) {\n removeTenantCustomDomain(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n customDomain {\n host\n status\n certificateArn\n validationRecord {\n name\n value\n }\n trafficRecord {\n name\n value\n }\n requestedAt\n issuedAt\n activatedAt\n certificateExpiresAt\n }\n}\n ";
|
|
1269
1339
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
1270
1340
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1271
1341
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
@@ -1327,6 +1397,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1327
1397
|
createReclameAquiTicketSessionOnTenant(variables: CreateReclameAquiTicketSessionOnTenantMutationVariables, options?: C): Promise<CreateReclameAquiTicketSessionOnTenantMutation>;
|
|
1328
1398
|
migrateZendeskInstanceToOAuth(variables: MigrateZendeskInstanceToOAuthMutationVariables, options?: C): Promise<MigrateZendeskInstanceToOAuthMutation>;
|
|
1329
1399
|
revertZendeskInstanceMigration(variables: RevertZendeskInstanceMigrationMutationVariables, options?: C): Promise<RevertZendeskInstanceMigrationMutation>;
|
|
1400
|
+
setTenantCustomDomain(variables: SetTenantCustomDomainMutationVariables, options?: C): Promise<SetTenantCustomDomainMutation>;
|
|
1401
|
+
regenerateTenantCustomDomainCertificate(variables: RegenerateTenantCustomDomainCertificateMutationVariables, options?: C): Promise<RegenerateTenantCustomDomainCertificateMutation>;
|
|
1402
|
+
removeTenantCustomDomain(variables: RemoveTenantCustomDomainMutationVariables, options?: C): Promise<RemoveTenantCustomDomainMutation>;
|
|
1330
1403
|
};
|
|
1331
1404
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1332
1405
|
export declare const serviceName = "@droz/drozcommons";
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.RevertZendeskInstanceMigrationDocument = exports.MigrateZendeskInstanceToOAuthDocument = exports.CreateReclameAquiTicketSessionOnTenantDocument = exports.FullReindexBaseDocument = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.RemoveTenantTagsDocument = exports.AddTenantTagsDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetReclameAquiTicketDetailsDocument = exports.ListZendeskInstancesDocument = exports.ListReclameAquiInstancesDocument = exports.GetZendeskTicketDetailsDocument = exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RetryQueueDlqDocument = exports.ListQueueHealthDocument = exports.ListQueueHealthSummaryDocument = exports.RemoveEnvironmentParameterDocument = exports.SetEnvironmentParameterDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.ListParameterOverridesDocument = exports.GetEnvironmentParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = void 0;
|
|
4
|
+
exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.AddLlmModelPriceDocument = exports.UpdateLlmModelDocument = exports.CreateLlmModelDocument = exports.ListLlmModelsDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitTagsDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.QueueHealthFragmentDoc = exports.TenantQueueSummaryFragmentDoc = exports.ParameterFragmentDoc = exports.LlmModelFragmentDoc = exports.LlmModelPriceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitTagFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.ZendeskOAuthRevertStatus = exports.ZendeskOAuthMigrationStatus = exports.Typenames = exports.RetryQueueDlqStatus = exports.QueueAlarmState = exports.ParameterType = exports.ParameterEnvironment = exports.LlmProvider = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.CustomDomainStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.RemoveTenantCustomDomainDocument = exports.RegenerateTenantCustomDomainCertificateDocument = exports.SetTenantCustomDomainDocument = exports.RevertZendeskInstanceMigrationDocument = exports.MigrateZendeskInstanceToOAuthDocument = exports.CreateReclameAquiTicketSessionOnTenantDocument = exports.FullReindexBaseDocument = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.RemoveTenantTagsDocument = exports.AddTenantTagsDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetReclameAquiTicketDetailsDocument = exports.ListZendeskInstancesDocument = exports.ListReclameAquiInstancesDocument = exports.GetZendeskTicketDetailsDocument = exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RetryQueueDlqDocument = exports.ListQueueHealthDocument = exports.ListQueueHealthSummaryDocument = exports.RemoveEnvironmentParameterDocument = exports.SetEnvironmentParameterDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.ListParameterOverridesDocument = exports.GetEnvironmentParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -17,6 +17,14 @@ var Can;
|
|
|
17
17
|
Can["Remove"] = "remove";
|
|
18
18
|
Can["Write"] = "write";
|
|
19
19
|
})(Can || (exports.Can = Can = {}));
|
|
20
|
+
var CustomDomainStatus;
|
|
21
|
+
(function (CustomDomainStatus) {
|
|
22
|
+
CustomDomainStatus["Active"] = "ACTIVE";
|
|
23
|
+
CustomDomainStatus["Failed"] = "FAILED";
|
|
24
|
+
CustomDomainStatus["Issued"] = "ISSUED";
|
|
25
|
+
CustomDomainStatus["PendingValidation"] = "PENDING_VALIDATION";
|
|
26
|
+
CustomDomainStatus["TimedOut"] = "TIMED_OUT";
|
|
27
|
+
})(CustomDomainStatus || (exports.CustomDomainStatus = CustomDomainStatus = {}));
|
|
20
28
|
var DeploymentCommands;
|
|
21
29
|
(function (DeploymentCommands) {
|
|
22
30
|
DeploymentCommands["Deploy"] = "DEPLOY";
|
|
@@ -228,6 +236,23 @@ exports.TenantFragmentDoc = `
|
|
|
228
236
|
metadataContent
|
|
229
237
|
attributeMapping
|
|
230
238
|
}
|
|
239
|
+
customDomain {
|
|
240
|
+
host
|
|
241
|
+
status
|
|
242
|
+
certificateArn
|
|
243
|
+
validationRecord {
|
|
244
|
+
name
|
|
245
|
+
value
|
|
246
|
+
}
|
|
247
|
+
trafficRecord {
|
|
248
|
+
name
|
|
249
|
+
value
|
|
250
|
+
}
|
|
251
|
+
requestedAt
|
|
252
|
+
issuedAt
|
|
253
|
+
activatedAt
|
|
254
|
+
certificateExpiresAt
|
|
255
|
+
}
|
|
231
256
|
}
|
|
232
257
|
`;
|
|
233
258
|
exports.ListAccountsDocument = `
|
|
@@ -684,6 +709,27 @@ exports.RevertZendeskInstanceMigrationDocument = `
|
|
|
684
709
|
}
|
|
685
710
|
}
|
|
686
711
|
`;
|
|
712
|
+
exports.SetTenantCustomDomainDocument = `
|
|
713
|
+
mutation setTenantCustomDomain($input: SetTenantCustomDomainInput!) {
|
|
714
|
+
setTenantCustomDomain(input: $input) {
|
|
715
|
+
...tenant
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
${exports.TenantFragmentDoc}`;
|
|
719
|
+
exports.RegenerateTenantCustomDomainCertificateDocument = `
|
|
720
|
+
mutation regenerateTenantCustomDomainCertificate($input: RegenerateTenantCustomDomainCertificateInput!) {
|
|
721
|
+
regenerateTenantCustomDomainCertificate(input: $input) {
|
|
722
|
+
...tenant
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
${exports.TenantFragmentDoc}`;
|
|
726
|
+
exports.RemoveTenantCustomDomainDocument = `
|
|
727
|
+
mutation removeTenantCustomDomain($input: RemoveTenantCustomDomainInput!) {
|
|
728
|
+
removeTenantCustomDomain(input: $input) {
|
|
729
|
+
...tenant
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
${exports.TenantFragmentDoc}`;
|
|
687
733
|
function getSdk(requester) {
|
|
688
734
|
return {
|
|
689
735
|
listAccounts(variables, options) {
|
|
@@ -862,6 +908,15 @@ function getSdk(requester) {
|
|
|
862
908
|
},
|
|
863
909
|
revertZendeskInstanceMigration(variables, options) {
|
|
864
910
|
return requester(exports.RevertZendeskInstanceMigrationDocument, variables, options);
|
|
911
|
+
},
|
|
912
|
+
setTenantCustomDomain(variables, options) {
|
|
913
|
+
return requester(exports.SetTenantCustomDomainDocument, variables, options);
|
|
914
|
+
},
|
|
915
|
+
regenerateTenantCustomDomainCertificate(variables, options) {
|
|
916
|
+
return requester(exports.RegenerateTenantCustomDomainCertificateDocument, variables, options);
|
|
917
|
+
},
|
|
918
|
+
removeTenantCustomDomain(variables, options) {
|
|
919
|
+
return requester(exports.RemoveTenantCustomDomainDocument, variables, options);
|
|
865
920
|
}
|
|
866
921
|
};
|
|
867
922
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -371,6 +371,7 @@ export type Customer = {
|
|
|
371
371
|
externalId?: Maybe<Scalars['ID']['output']>;
|
|
372
372
|
externalIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
373
373
|
id: Scalars['ID']['output'];
|
|
374
|
+
messagingOptOut?: Maybe<CustomerMessagingOptOut>;
|
|
374
375
|
name: Scalars['String']['output'];
|
|
375
376
|
/** @deprecated Use phones instead */
|
|
376
377
|
phone?: Maybe<Scalars['String']['output']>;
|
|
@@ -381,6 +382,10 @@ export type Customer = {
|
|
|
381
382
|
export declare enum CustomerIndex {
|
|
382
383
|
ByExternalId = "byExternalId"
|
|
383
384
|
}
|
|
385
|
+
export type CustomerMessagingOptOut = {
|
|
386
|
+
at: Scalars['DateTime']['output'];
|
|
387
|
+
sessionId?: Maybe<Scalars['ID']['output']>;
|
|
388
|
+
};
|
|
384
389
|
export type CustomerSearchFilterInput = {
|
|
385
390
|
AND?: InputMaybe<Array<CustomerSearchFilterInput>>;
|
|
386
391
|
OR?: InputMaybe<Array<CustomerSearchFilterInput>>;
|
|
@@ -526,6 +531,7 @@ export type Mutation = {
|
|
|
526
531
|
patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
527
532
|
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
528
533
|
reactivateSession?: Maybe<Session>;
|
|
534
|
+
recordMessagingOptOut: Customer;
|
|
529
535
|
refreshContactData: Customer;
|
|
530
536
|
registerAppInstance: AppInstance;
|
|
531
537
|
removeAgent?: Maybe<Agent>;
|
|
@@ -618,6 +624,9 @@ export type MutationPublishStateMachineConfigArgs = {
|
|
|
618
624
|
export type MutationReactivateSessionArgs = {
|
|
619
625
|
sessionId: Scalars['ID']['input'];
|
|
620
626
|
};
|
|
627
|
+
export type MutationRecordMessagingOptOutArgs = {
|
|
628
|
+
input: RecordMessagingOptOutInput;
|
|
629
|
+
};
|
|
621
630
|
export type MutationRefreshContactDataArgs = {
|
|
622
631
|
input: RefreshContactDataInput;
|
|
623
632
|
};
|
|
@@ -764,6 +773,7 @@ export type Query = {
|
|
|
764
773
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
765
774
|
authInfo?: Maybe<AuthInfo>;
|
|
766
775
|
batchGetCustomersById?: Maybe<Array<Maybe<Customer>>>;
|
|
776
|
+
batchGetCustomersMessagingOptOut: Array<Customer>;
|
|
767
777
|
checkPermissions: Scalars['Boolean']['output'];
|
|
768
778
|
countAppInstances: Scalars['Int']['output'];
|
|
769
779
|
countCredentials: Scalars['Int']['output'];
|
|
@@ -819,6 +829,9 @@ export type QueryAmplifyConfigArgs = {
|
|
|
819
829
|
export type QueryBatchGetCustomersByIdArgs = {
|
|
820
830
|
ids: Array<Scalars['ID']['input']>;
|
|
821
831
|
};
|
|
832
|
+
export type QueryBatchGetCustomersMessagingOptOutArgs = {
|
|
833
|
+
identifiers: Array<Scalars['ID']['input']>;
|
|
834
|
+
};
|
|
822
835
|
export type QueryCheckPermissionsArgs = {
|
|
823
836
|
can: Can;
|
|
824
837
|
resources: Array<Scalars['String']['input']>;
|
|
@@ -942,6 +955,10 @@ export type QuerySearchSessionsArgs = {
|
|
|
942
955
|
perPage?: InputMaybe<Scalars['Number']['input']>;
|
|
943
956
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
944
957
|
};
|
|
958
|
+
export type RecordMessagingOptOutInput = {
|
|
959
|
+
customerId: Scalars['ID']['input'];
|
|
960
|
+
sessionId: Scalars['ID']['input'];
|
|
961
|
+
};
|
|
945
962
|
export type RefreshContactDataInput = {
|
|
946
963
|
customerId: Scalars['ID']['input'];
|
|
947
964
|
emails: Array<Scalars['EmailAddress']['input']>;
|
|
@@ -1575,12 +1592,21 @@ export type RemoveSystemCredentialsMutation = {
|
|
|
1575
1592
|
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'alternateName' | 'email' | 'phone' | 'document' | 'externalId' | 'emails' | 'phones' | 'documents' | 'externalIds' | 'status' | 'createdAt' | 'updatedAt'> & {
|
|
1576
1593
|
apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
|
|
1577
1594
|
});
|
|
1595
|
+
export type CustomerMessagingOptOutFragment = (Pick<Customer, 'id'> & {
|
|
1596
|
+
messagingOptOut?: Maybe<Pick<CustomerMessagingOptOut, 'at' | 'sessionId'>>;
|
|
1597
|
+
});
|
|
1578
1598
|
export type GetCustomerQueryVariables = Exact<{
|
|
1579
1599
|
identifier: Scalars['ID']['input'];
|
|
1580
1600
|
}>;
|
|
1581
1601
|
export type GetCustomerQuery = {
|
|
1582
1602
|
getCustomer?: Maybe<CustomerFragment>;
|
|
1583
1603
|
};
|
|
1604
|
+
export type BatchGetCustomersMessagingOptOutQueryVariables = Exact<{
|
|
1605
|
+
identifiers: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
1606
|
+
}>;
|
|
1607
|
+
export type BatchGetCustomersMessagingOptOutQuery = {
|
|
1608
|
+
batchGetCustomersMessagingOptOut: Array<CustomerMessagingOptOutFragment>;
|
|
1609
|
+
};
|
|
1584
1610
|
export type BatchGetCustomersByIdQueryVariables = Exact<{
|
|
1585
1611
|
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
1586
1612
|
}>;
|
|
@@ -1636,6 +1662,12 @@ export type RefreshContactDataMutationVariables = Exact<{
|
|
|
1636
1662
|
export type RefreshContactDataMutation = {
|
|
1637
1663
|
refreshContactData: CustomerFragment;
|
|
1638
1664
|
};
|
|
1665
|
+
export type RecordMessagingOptOutMutationVariables = Exact<{
|
|
1666
|
+
input: RecordMessagingOptOutInput;
|
|
1667
|
+
}>;
|
|
1668
|
+
export type RecordMessagingOptOutMutation = {
|
|
1669
|
+
recordMessagingOptOut: CustomerMessagingOptOutFragment;
|
|
1670
|
+
};
|
|
1639
1671
|
export type UpdateCustomerMutationVariables = Exact<{
|
|
1640
1672
|
input: UpdateCustomerInput;
|
|
1641
1673
|
}>;
|
|
@@ -1927,6 +1959,7 @@ export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstan
|
|
|
1927
1959
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1928
1960
|
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 url\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n url\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n url\n credentials {\n clientId\n clientSecret\n scope\n }\n }\n ... on MetaCredentialsType {\n url\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n url\n credentials {\n code\n }\n }\n}\n ";
|
|
1929
1961
|
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 ";
|
|
1962
|
+
export declare const CustomerMessagingOptOutFragmentDoc = "\n fragment customerMessagingOptOut on Customer {\n id\n messagingOptOut {\n at\n sessionId\n }\n}\n ";
|
|
1930
1963
|
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 ";
|
|
1931
1964
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1932
1965
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n ";
|
|
@@ -1983,6 +2016,7 @@ export declare const UpdateCredentialsDocument = "\n mutation updateCredentia
|
|
|
1983
2016
|
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 url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1984
2017
|
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 url\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1985
2018
|
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 ";
|
|
2019
|
+
export declare const BatchGetCustomersMessagingOptOutDocument = "\n query batchGetCustomersMessagingOptOut($identifiers: [ID!]!) {\n batchGetCustomersMessagingOptOut(identifiers: $identifiers) {\n ...customerMessagingOptOut\n }\n}\n \n fragment customerMessagingOptOut on Customer {\n id\n messagingOptOut {\n at\n sessionId\n }\n}\n ";
|
|
1986
2020
|
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 ";
|
|
1987
2021
|
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 ";
|
|
1988
2022
|
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $filters: [CustomerSearchFilterInput!], $page: Number, $perPage: Number) {\n searchCustomers(\n query: $query\n filters: $filters\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...customer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\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 ";
|
|
@@ -1990,6 +2024,7 @@ export declare const DynamicSearchCustomerDocument = "\n query dynamicSearchC
|
|
|
1990
2024
|
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 ";
|
|
1991
2025
|
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 ";
|
|
1992
2026
|
export declare const RefreshContactDataDocument = "\n mutation refreshContactData($input: RefreshContactDataInput!) {\n refreshContactData(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 ";
|
|
2027
|
+
export declare const RecordMessagingOptOutDocument = "\n mutation recordMessagingOptOut($input: RecordMessagingOptOutInput!) {\n recordMessagingOptOut(input: $input) {\n ...customerMessagingOptOut\n }\n}\n \n fragment customerMessagingOptOut on Customer {\n id\n messagingOptOut {\n at\n sessionId\n }\n}\n ";
|
|
1993
2028
|
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 ";
|
|
1994
2029
|
export declare const DeleteCustomerDocument = "\n mutation deleteCustomer($id: ID!) {\n deleteCustomer(id: $id)\n}\n ";
|
|
1995
2030
|
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 ";
|
|
@@ -2078,6 +2113,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2078
2113
|
removeCredentials(variables: RemoveCredentialsMutationVariables, options?: C): Promise<RemoveCredentialsMutation>;
|
|
2079
2114
|
removeSystemCredentials(variables: RemoveSystemCredentialsMutationVariables, options?: C): Promise<RemoveSystemCredentialsMutation>;
|
|
2080
2115
|
getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
|
|
2116
|
+
batchGetCustomersMessagingOptOut(variables: BatchGetCustomersMessagingOptOutQueryVariables, options?: C): Promise<BatchGetCustomersMessagingOptOutQuery>;
|
|
2081
2117
|
batchGetCustomersById(variables: BatchGetCustomersByIdQueryVariables, options?: C): Promise<BatchGetCustomersByIdQuery>;
|
|
2082
2118
|
listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
|
|
2083
2119
|
searchCustomers(variables?: SearchCustomersQueryVariables, options?: C): Promise<SearchCustomersQuery>;
|
|
@@ -2085,6 +2121,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2085
2121
|
createCustomer(variables?: CreateCustomerMutationVariables, options?: C): Promise<CreateCustomerMutation>;
|
|
2086
2122
|
getOrCreateCustomer(variables: GetOrCreateCustomerMutationVariables, options?: C): Promise<GetOrCreateCustomerMutation>;
|
|
2087
2123
|
refreshContactData(variables: RefreshContactDataMutationVariables, options?: C): Promise<RefreshContactDataMutation>;
|
|
2124
|
+
recordMessagingOptOut(variables: RecordMessagingOptOutMutationVariables, options?: C): Promise<RecordMessagingOptOutMutation>;
|
|
2088
2125
|
updateCustomer(variables: UpdateCustomerMutationVariables, options?: C): Promise<UpdateCustomerMutation>;
|
|
2089
2126
|
deleteCustomer(variables: DeleteCustomerMutationVariables, options?: C): Promise<DeleteCustomerMutation>;
|
|
2090
2127
|
getCronJob(variables: GetCronJobQueryVariables, options?: C): Promise<GetCronJobQuery>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
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 = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.ReactivateSessionDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = void 0;
|
|
4
|
+
exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.ChangeAgentStatusDocument = 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.IndexedSessionFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerMessagingOptOutFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.SystemRole = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.OperationMode = exports.CustomerStatus = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = exports.AgentStatus = void 0;
|
|
5
|
+
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.RecordMessagingOptOutDocument = exports.RefreshContactDataDocument = exports.GetOrCreateCustomerDocument = exports.CreateCustomerDocument = exports.DynamicSearchCustomerDocument = exports.SearchCustomersDocument = exports.ListCustomersDocument = exports.BatchGetCustomersByIdDocument = exports.BatchGetCustomersMessagingOptOutDocument = 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 = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.ResendConfirmationEmailDocument = exports.LeaveOrganizationDocument = exports.JoinAsSuperAdminDocument = exports.ChangeAgentRoleDocument = exports.RemoveRoleFromAgentDocument = 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 = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.UpdateSettingsDocument = exports.GetSettingsDocument = exports.ReactivateSessionDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetActiveSessionDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AgentStatus;
|
|
9
9
|
(function (AgentStatus) {
|
|
@@ -261,6 +261,15 @@ exports.CustomerFragmentDoc = `
|
|
|
261
261
|
updatedAt
|
|
262
262
|
}
|
|
263
263
|
`;
|
|
264
|
+
exports.CustomerMessagingOptOutFragmentDoc = `
|
|
265
|
+
fragment customerMessagingOptOut on Customer {
|
|
266
|
+
id
|
|
267
|
+
messagingOptOut {
|
|
268
|
+
at
|
|
269
|
+
sessionId
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
`;
|
|
264
273
|
exports.CronJobFragmentDoc = `
|
|
265
274
|
fragment cronJob on CronJob {
|
|
266
275
|
appId
|
|
@@ -740,6 +749,13 @@ exports.GetCustomerDocument = `
|
|
|
740
749
|
}
|
|
741
750
|
}
|
|
742
751
|
${exports.CustomerFragmentDoc}`;
|
|
752
|
+
exports.BatchGetCustomersMessagingOptOutDocument = `
|
|
753
|
+
query batchGetCustomersMessagingOptOut($identifiers: [ID!]!) {
|
|
754
|
+
batchGetCustomersMessagingOptOut(identifiers: $identifiers) {
|
|
755
|
+
...customerMessagingOptOut
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
${exports.CustomerMessagingOptOutFragmentDoc}`;
|
|
743
759
|
exports.BatchGetCustomersByIdDocument = `
|
|
744
760
|
query batchGetCustomersById($ids: [ID!]!) {
|
|
745
761
|
batchGetCustomersById(ids: $ids) {
|
|
@@ -820,6 +836,13 @@ exports.RefreshContactDataDocument = `
|
|
|
820
836
|
}
|
|
821
837
|
}
|
|
822
838
|
${exports.CustomerFragmentDoc}`;
|
|
839
|
+
exports.RecordMessagingOptOutDocument = `
|
|
840
|
+
mutation recordMessagingOptOut($input: RecordMessagingOptOutInput!) {
|
|
841
|
+
recordMessagingOptOut(input: $input) {
|
|
842
|
+
...customerMessagingOptOut
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
${exports.CustomerMessagingOptOutFragmentDoc}`;
|
|
823
846
|
exports.UpdateCustomerDocument = `
|
|
824
847
|
mutation updateCustomer($input: UpdateCustomerInput!) {
|
|
825
848
|
updateCustomer(input: $input) {
|
|
@@ -1290,6 +1313,9 @@ function getSdk(requester) {
|
|
|
1290
1313
|
getCustomer(variables, options) {
|
|
1291
1314
|
return requester(exports.GetCustomerDocument, variables, options);
|
|
1292
1315
|
},
|
|
1316
|
+
batchGetCustomersMessagingOptOut(variables, options) {
|
|
1317
|
+
return requester(exports.BatchGetCustomersMessagingOptOutDocument, variables, options);
|
|
1318
|
+
},
|
|
1293
1319
|
batchGetCustomersById(variables, options) {
|
|
1294
1320
|
return requester(exports.BatchGetCustomersByIdDocument, variables, options);
|
|
1295
1321
|
},
|
|
@@ -1311,6 +1337,9 @@ function getSdk(requester) {
|
|
|
1311
1337
|
refreshContactData(variables, options) {
|
|
1312
1338
|
return requester(exports.RefreshContactDataDocument, variables, options);
|
|
1313
1339
|
},
|
|
1340
|
+
recordMessagingOptOut(variables, options) {
|
|
1341
|
+
return requester(exports.RecordMessagingOptOutDocument, variables, options);
|
|
1342
|
+
},
|
|
1314
1343
|
updateCustomer(variables, options) {
|
|
1315
1344
|
return requester(exports.UpdateCustomerDocument, variables, options);
|
|
1316
1345
|
},
|