@droz-js/sdk 0.26.9 → 0.26.11
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/client/helpers.d.ts +1 -1
- package/src/drozadmin.d.ts +9 -0
- package/src/nucleus.d.ts +6 -0
- package/src/sdks/drozcommons.d.ts +80 -8
- package/src/sdks/drozcommons.js +56 -2
- package/src/sdks/nucleus.d.ts +37 -0
- package/src/sdks/nucleus.js +32 -3
package/package.json
CHANGED
package/src/client/helpers.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExecutionResult, GraphQLError } from 'graphql';
|
|
2
2
|
export type AuthorizationProvider = string | (() => Promise<string>) | (() => string);
|
|
3
|
-
export type Requester<C =
|
|
3
|
+
export type Requester<C = object> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
4
4
|
export type GetSdk<Sdk> = (requester: Requester<Sdk>) => Sdk;
|
|
5
5
|
export declare class SdkError extends Error {
|
|
6
6
|
statusCode?: number;
|
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,23 @@ 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
|
+
host: Scalars['String']['output'];
|
|
204
|
+
issuedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
205
|
+
requestedAt: Scalars['DateTime']['output'];
|
|
206
|
+
status: CustomDomainStatus;
|
|
207
|
+
trafficRecord?: Maybe<DnsRecord>;
|
|
208
|
+
validationRecord?: Maybe<DnsRecord>;
|
|
209
|
+
};
|
|
210
|
+
export declare enum CustomDomainStatus {
|
|
211
|
+
Active = "ACTIVE",
|
|
212
|
+
Failed = "FAILED",
|
|
213
|
+
Issued = "ISSUED",
|
|
214
|
+
PendingValidation = "PENDING_VALIDATION",
|
|
215
|
+
TimedOut = "TIMED_OUT"
|
|
216
|
+
}
|
|
200
217
|
export type DeployInput = {
|
|
201
218
|
branch: Scalars['String']['input'];
|
|
202
219
|
gitRepository: Scalars['String']['input'];
|
|
@@ -247,6 +264,10 @@ export type DestroyInput = {
|
|
|
247
264
|
services: Array<InputMaybe<Scalars['String']['input']>>;
|
|
248
265
|
tenantId: Scalars['ID']['input'];
|
|
249
266
|
};
|
|
267
|
+
export type DnsRecord = {
|
|
268
|
+
name: Scalars['String']['output'];
|
|
269
|
+
value: Scalars['String']['output'];
|
|
270
|
+
};
|
|
250
271
|
export type DrozService = {
|
|
251
272
|
id: Scalars['String']['output'];
|
|
252
273
|
name: Scalars['String']['output'];
|
|
@@ -358,10 +379,12 @@ export type Mutation = {
|
|
|
358
379
|
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
359
380
|
leaveTenantOrganization?: Maybe<Scalars['Void']['output']>;
|
|
360
381
|
migrateZendeskInstanceToOAuth?: Maybe<MigrateZendeskInstanceToOAuthResult>;
|
|
382
|
+
regenerateTenantCustomDomainCertificate: Tenant;
|
|
361
383
|
removeAccountParameter?: Maybe<Parameter>;
|
|
362
384
|
removeEnvironmentParameter?: Maybe<Parameter>;
|
|
363
385
|
removeGlobalParameter?: Maybe<Parameter>;
|
|
364
386
|
removeTenant: Tenant;
|
|
387
|
+
removeTenantCustomDomain: Tenant;
|
|
365
388
|
removeTenantParameter?: Maybe<Parameter>;
|
|
366
389
|
removeTenantTags: Tenant;
|
|
367
390
|
retryQueueDlq: RetryQueueDlqResult;
|
|
@@ -369,6 +392,7 @@ export type Mutation = {
|
|
|
369
392
|
setAccountParameter: Parameter;
|
|
370
393
|
setEnvironmentParameter: Parameter;
|
|
371
394
|
setGlobalParameter: Parameter;
|
|
395
|
+
setTenantCustomDomain: Tenant;
|
|
372
396
|
setTenantParameter: Parameter;
|
|
373
397
|
updateAccount: AwsAccount;
|
|
374
398
|
updateLlmModel: LlmModel;
|
|
@@ -411,6 +435,9 @@ export type MutationLeaveTenantOrganizationArgs = {
|
|
|
411
435
|
export type MutationMigrateZendeskInstanceToOAuthArgs = {
|
|
412
436
|
input: MigrateZendeskInstanceToOAuthInput;
|
|
413
437
|
};
|
|
438
|
+
export type MutationRegenerateTenantCustomDomainCertificateArgs = {
|
|
439
|
+
input: RegenerateTenantCustomDomainCertificateInput;
|
|
440
|
+
};
|
|
414
441
|
export type MutationRemoveAccountParameterArgs = {
|
|
415
442
|
input: RemoveAccountParameterInput;
|
|
416
443
|
};
|
|
@@ -423,6 +450,9 @@ export type MutationRemoveGlobalParameterArgs = {
|
|
|
423
450
|
export type MutationRemoveTenantArgs = {
|
|
424
451
|
input: RemoveTenantInput;
|
|
425
452
|
};
|
|
453
|
+
export type MutationRemoveTenantCustomDomainArgs = {
|
|
454
|
+
input: RemoveTenantCustomDomainInput;
|
|
455
|
+
};
|
|
426
456
|
export type MutationRemoveTenantParameterArgs = {
|
|
427
457
|
input: RemoveTenantParameterInput;
|
|
428
458
|
};
|
|
@@ -444,6 +474,9 @@ export type MutationSetEnvironmentParameterArgs = {
|
|
|
444
474
|
export type MutationSetGlobalParameterArgs = {
|
|
445
475
|
input: SetGlobalParameterInput;
|
|
446
476
|
};
|
|
477
|
+
export type MutationSetTenantCustomDomainArgs = {
|
|
478
|
+
input: SetTenantCustomDomainInput;
|
|
479
|
+
};
|
|
447
480
|
export type MutationSetTenantParameterArgs = {
|
|
448
481
|
input: SetTenantParameterInput;
|
|
449
482
|
};
|
|
@@ -625,6 +658,9 @@ export type QueueHealth = {
|
|
|
625
658
|
tenantId: Scalars['TenantId']['output'];
|
|
626
659
|
updatedAt: Scalars['DateTime']['output'];
|
|
627
660
|
};
|
|
661
|
+
export type RegenerateTenantCustomDomainCertificateInput = {
|
|
662
|
+
tenantId: Scalars['TenantId']['input'];
|
|
663
|
+
};
|
|
628
664
|
export type Region = {
|
|
629
665
|
name: Scalars['String']['output'];
|
|
630
666
|
};
|
|
@@ -639,6 +675,9 @@ export type RemoveEnvironmentParameterInput = {
|
|
|
639
675
|
export type RemoveGlobalParameterInput = {
|
|
640
676
|
name: Scalars['String']['input'];
|
|
641
677
|
};
|
|
678
|
+
export type RemoveTenantCustomDomainInput = {
|
|
679
|
+
tenantId: Scalars['TenantId']['input'];
|
|
680
|
+
};
|
|
642
681
|
export type RemoveTenantInput = {
|
|
643
682
|
tenantId: Scalars['TenantId']['input'];
|
|
644
683
|
};
|
|
@@ -723,6 +762,10 @@ export type SetGlobalParameterInput = {
|
|
|
723
762
|
type?: InputMaybe<ParameterType>;
|
|
724
763
|
value: Scalars['String']['input'];
|
|
725
764
|
};
|
|
765
|
+
export type SetTenantCustomDomainInput = {
|
|
766
|
+
host: Scalars['String']['input'];
|
|
767
|
+
tenantId: Scalars['TenantId']['input'];
|
|
768
|
+
};
|
|
726
769
|
export type SetTenantParameterInput = {
|
|
727
770
|
name: Scalars['String']['input'];
|
|
728
771
|
tenantId: Scalars['String']['input'];
|
|
@@ -759,6 +802,7 @@ export type Tenant = {
|
|
|
759
802
|
account: AwsAccount;
|
|
760
803
|
accountId: Scalars['ID']['output'];
|
|
761
804
|
createdAt: Scalars['DateTime']['output'];
|
|
805
|
+
customDomain?: Maybe<CustomDomain>;
|
|
762
806
|
deployedVersions?: Maybe<Scalars['JSON']['output']>;
|
|
763
807
|
deployments: Array<Deployment>;
|
|
764
808
|
disabled?: Maybe<Scalars['Boolean']['output']>;
|
|
@@ -1086,6 +1130,10 @@ export type ListServicesQuery = {
|
|
|
1086
1130
|
export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'disabled' | 'createdAt' | 'updatedAt' | 'tags'> & {
|
|
1087
1131
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
1088
1132
|
identityProviders: Array<Pick<IdentityProvider, 'type' | 'name' | 'metadataType' | 'metadataContent' | 'attributeMapping'>>;
|
|
1133
|
+
customDomain?: Maybe<(Pick<CustomDomain, 'host' | 'status' | 'certificateArn' | 'requestedAt' | 'issuedAt' | 'activatedAt'> & {
|
|
1134
|
+
validationRecord?: Maybe<Pick<DnsRecord, 'name' | 'value'>>;
|
|
1135
|
+
trafficRecord?: Maybe<Pick<DnsRecord, 'name' | 'value'>>;
|
|
1136
|
+
})>;
|
|
1089
1137
|
});
|
|
1090
1138
|
export type GetTenantQueryVariables = Exact<{
|
|
1091
1139
|
tenantId: Scalars['TenantId']['input'];
|
|
@@ -1194,6 +1242,24 @@ export type RevertZendeskInstanceMigrationMutationVariables = Exact<{
|
|
|
1194
1242
|
export type RevertZendeskInstanceMigrationMutation = {
|
|
1195
1243
|
revertZendeskInstanceMigration?: Maybe<Pick<RevertZendeskInstanceMigrationResult, 'tenantId' | 'instanceId' | 'status' | 'currentCredentialId' | 'restoredCredentialId' | 'oauthCredentialId' | 'clientRevokedInZendesk'>>;
|
|
1196
1244
|
};
|
|
1245
|
+
export type SetTenantCustomDomainMutationVariables = Exact<{
|
|
1246
|
+
input: SetTenantCustomDomainInput;
|
|
1247
|
+
}>;
|
|
1248
|
+
export type SetTenantCustomDomainMutation = {
|
|
1249
|
+
setTenantCustomDomain: TenantFragment;
|
|
1250
|
+
};
|
|
1251
|
+
export type RegenerateTenantCustomDomainCertificateMutationVariables = Exact<{
|
|
1252
|
+
input: RegenerateTenantCustomDomainCertificateInput;
|
|
1253
|
+
}>;
|
|
1254
|
+
export type RegenerateTenantCustomDomainCertificateMutation = {
|
|
1255
|
+
regenerateTenantCustomDomainCertificate: TenantFragment;
|
|
1256
|
+
};
|
|
1257
|
+
export type RemoveTenantCustomDomainMutationVariables = Exact<{
|
|
1258
|
+
input: RemoveTenantCustomDomainInput;
|
|
1259
|
+
}>;
|
|
1260
|
+
export type RemoveTenantCustomDomainMutation = {
|
|
1261
|
+
removeTenantCustomDomain: TenantFragment;
|
|
1262
|
+
};
|
|
1197
1263
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
1198
1264
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n}\n ";
|
|
1199
1265
|
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 +1272,7 @@ export declare const ParameterFragmentDoc = "\n fragment parameter on Paramet
|
|
|
1206
1272
|
export declare const TenantQueueSummaryFragmentDoc = "\n fragment tenantQueueSummary on TenantQueueSummary {\n tenantId\n totalVisible\n totalInDlq\n worstAlarmState\n}\n ";
|
|
1207
1273
|
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
1274
|
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 ";
|
|
1275
|
+
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 }\n}\n ";
|
|
1210
1276
|
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
1277
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
1212
1278
|
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 +1313,28 @@ export declare const ListQueueHealthSummaryDocument = "\n query listQueueHeal
|
|
|
1247
1313
|
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
1314
|
export declare const RetryQueueDlqDocument = "\n mutation retryQueueDlq($input: RetryQueueDlqInput!) {\n retryQueueDlq(input: $input) {\n status\n taskHandle\n }\n}\n ";
|
|
1249
1315
|
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 ";
|
|
1316
|
+
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 }\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 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 }\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
1318
|
export declare const GetFederationMetadataDocument = "\n query getFederationMetadata($tenantId: TenantId!) {\n getFederationMetadata(tenantId: $tenantId)\n}\n ";
|
|
1253
1319
|
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
|
|
1254
1320
|
export declare const GetZendeskTicketDetailsDocument = "\n query getZendeskTicketDetails($tenantId: TenantId!, $ticketId: String!) {\n getZendeskTicketDetails(tenantId: $tenantId, ticketId: $ticketId)\n}\n ";
|
|
1255
1321
|
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances($tenantId: TenantId!) {\n listReclameAquiInstances(tenantId: $tenantId)\n}\n ";
|
|
1256
1322
|
export declare const ListZendeskInstancesDocument = "\n query listZendeskInstances($tenantId: TenantId!) {\n listZendeskInstances(tenantId: $tenantId)\n}\n ";
|
|
1257
1323
|
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 ";
|
|
1324
|
+
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 }\n}\n ";
|
|
1325
|
+
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 }\n}\n ";
|
|
1326
|
+
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 }\n}\n ";
|
|
1327
|
+
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 }\n}\n ";
|
|
1328
|
+
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 }\n}\n ";
|
|
1263
1329
|
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
|
|
1264
1330
|
export declare const LeaveTenantOrganizationDocument = "\n mutation leaveTenantOrganization($input: LeaveTenantOrganizationInput!) {\n leaveTenantOrganization(input: $input)\n}\n ";
|
|
1265
1331
|
export declare const FullReindexBaseDocument = "\n mutation fullReindexBase($input: FullReindexBaseInput) {\n fullReindexBase(input: $input)\n}\n ";
|
|
1266
1332
|
export declare const CreateReclameAquiTicketSessionOnTenantDocument = "\n mutation createReclameAquiTicketSessionOnTenant($input: CreateReclameAquiTicketSessionOnTenantInput!) {\n createReclameAquiTicketSessionOnTenant(input: $input)\n}\n ";
|
|
1267
1333
|
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
1334
|
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 ";
|
|
1335
|
+
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 }\n}\n ";
|
|
1336
|
+
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 }\n}\n ";
|
|
1337
|
+
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 }\n}\n ";
|
|
1269
1338
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
1270
1339
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1271
1340
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
@@ -1327,6 +1396,9 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1327
1396
|
createReclameAquiTicketSessionOnTenant(variables: CreateReclameAquiTicketSessionOnTenantMutationVariables, options?: C): Promise<CreateReclameAquiTicketSessionOnTenantMutation>;
|
|
1328
1397
|
migrateZendeskInstanceToOAuth(variables: MigrateZendeskInstanceToOAuthMutationVariables, options?: C): Promise<MigrateZendeskInstanceToOAuthMutation>;
|
|
1329
1398
|
revertZendeskInstanceMigration(variables: RevertZendeskInstanceMigrationMutationVariables, options?: C): Promise<RevertZendeskInstanceMigrationMutation>;
|
|
1399
|
+
setTenantCustomDomain(variables: SetTenantCustomDomainMutationVariables, options?: C): Promise<SetTenantCustomDomainMutation>;
|
|
1400
|
+
regenerateTenantCustomDomainCertificate(variables: RegenerateTenantCustomDomainCertificateMutationVariables, options?: C): Promise<RegenerateTenantCustomDomainCertificateMutation>;
|
|
1401
|
+
removeTenantCustomDomain(variables: RemoveTenantCustomDomainMutationVariables, options?: C): Promise<RemoveTenantCustomDomainMutation>;
|
|
1330
1402
|
};
|
|
1331
1403
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
1332
1404
|
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,22 @@ 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
|
+
}
|
|
231
255
|
}
|
|
232
256
|
`;
|
|
233
257
|
exports.ListAccountsDocument = `
|
|
@@ -684,6 +708,27 @@ exports.RevertZendeskInstanceMigrationDocument = `
|
|
|
684
708
|
}
|
|
685
709
|
}
|
|
686
710
|
`;
|
|
711
|
+
exports.SetTenantCustomDomainDocument = `
|
|
712
|
+
mutation setTenantCustomDomain($input: SetTenantCustomDomainInput!) {
|
|
713
|
+
setTenantCustomDomain(input: $input) {
|
|
714
|
+
...tenant
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
${exports.TenantFragmentDoc}`;
|
|
718
|
+
exports.RegenerateTenantCustomDomainCertificateDocument = `
|
|
719
|
+
mutation regenerateTenantCustomDomainCertificate($input: RegenerateTenantCustomDomainCertificateInput!) {
|
|
720
|
+
regenerateTenantCustomDomainCertificate(input: $input) {
|
|
721
|
+
...tenant
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
${exports.TenantFragmentDoc}`;
|
|
725
|
+
exports.RemoveTenantCustomDomainDocument = `
|
|
726
|
+
mutation removeTenantCustomDomain($input: RemoveTenantCustomDomainInput!) {
|
|
727
|
+
removeTenantCustomDomain(input: $input) {
|
|
728
|
+
...tenant
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
${exports.TenantFragmentDoc}`;
|
|
687
732
|
function getSdk(requester) {
|
|
688
733
|
return {
|
|
689
734
|
listAccounts(variables, options) {
|
|
@@ -862,6 +907,15 @@ function getSdk(requester) {
|
|
|
862
907
|
},
|
|
863
908
|
revertZendeskInstanceMigration(variables, options) {
|
|
864
909
|
return requester(exports.RevertZendeskInstanceMigrationDocument, variables, options);
|
|
910
|
+
},
|
|
911
|
+
setTenantCustomDomain(variables, options) {
|
|
912
|
+
return requester(exports.SetTenantCustomDomainDocument, variables, options);
|
|
913
|
+
},
|
|
914
|
+
regenerateTenantCustomDomainCertificate(variables, options) {
|
|
915
|
+
return requester(exports.RegenerateTenantCustomDomainCertificateDocument, variables, options);
|
|
916
|
+
},
|
|
917
|
+
removeTenantCustomDomain(variables, options) {
|
|
918
|
+
return requester(exports.RemoveTenantCustomDomainDocument, variables, options);
|
|
865
919
|
}
|
|
866
920
|
};
|
|
867
921
|
}
|
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
|
},
|