@droz-js/sdk 0.7.1 → 0.7.2
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 +3 -0
- package/src/nucleus.d.ts +6 -0
- package/src/sdks/ai.d.ts +4 -0
- package/src/sdks/casasbahia.d.ts +4 -0
- package/src/sdks/chatwidget.d.ts +4 -0
- package/src/sdks/drozbot.d.ts +4 -0
- package/src/sdks/drozchat.d.ts +4 -0
- package/src/sdks/drozcommons.d.ts +27 -10
- package/src/sdks/drozcommons.js +11 -3
- package/src/sdks/droznexo.d.ts +5 -1
- package/src/sdks/logger.d.ts +4 -0
- package/src/sdks/mercadolivre.d.ts +4 -0
- package/src/sdks/nucleus.d.ts +30 -0
- package/src/sdks/nucleus.js +21 -3
- package/src/sdks/reclameaqui.d.ts +4 -0
- package/src/sdks/utilities.d.ts +4 -0
- package/src/sdks/whatsapp.d.ts +4 -0
- package/src/sdks/zendesk.d.ts +4 -0
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -74,6 +74,9 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
74
74
|
removeTenant(variables: import("./sdks/drozcommons").Exact<{
|
|
75
75
|
input: import("./sdks/drozcommons").RemoveTenantInput;
|
|
76
76
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantMutation>;
|
|
77
|
+
joinTenantAsSuperAdmin(variables: import("./sdks/drozcommons").Exact<{
|
|
78
|
+
input: import("./sdks/drozcommons").JoinTenantAsSuperAdminInput;
|
|
79
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").JoinTenantAsSuperAdminMutation>;
|
|
77
80
|
};
|
|
78
81
|
export declare class DrozAdmin extends DrozAdmin_base {
|
|
79
82
|
}
|
package/src/nucleus.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
14
14
|
getAgent(variables: import("./sdks/nucleus").Exact<{
|
|
15
15
|
id: string;
|
|
16
16
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentQuery>;
|
|
17
|
+
getAgentByEmail(variables: import("./sdks/nucleus").Exact<{
|
|
18
|
+
email: string;
|
|
19
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentByEmailQuery>;
|
|
17
20
|
getAgents(variables: import("./sdks/nucleus").Exact<{
|
|
18
21
|
ids: string | string[];
|
|
19
22
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAgentsQuery>;
|
|
@@ -50,6 +53,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
50
53
|
removeRoleFromAgent(variables: import("./sdks/nucleus").Exact<{
|
|
51
54
|
input: import("./sdks/nucleus").RemoveRoleFromAgentInput;
|
|
52
55
|
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveRoleFromAgentMutation>;
|
|
56
|
+
joinAsSuperAdmin(variables: import("./sdks/nucleus").Exact<{
|
|
57
|
+
input: import("./sdks/nucleus").JoinAsSuperAdminInput;
|
|
58
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").JoinAsSuperAdminMutation>;
|
|
53
59
|
getApp(variables: import("./sdks/nucleus").Exact<{
|
|
54
60
|
appId: string;
|
|
55
61
|
withInstances?: boolean;
|
package/src/sdks/ai.d.ts
CHANGED
package/src/sdks/casasbahia.d.ts
CHANGED
package/src/sdks/chatwidget.d.ts
CHANGED
package/src/sdks/drozbot.d.ts
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -101,6 +101,10 @@ export type Scalars = {
|
|
|
101
101
|
input: string;
|
|
102
102
|
output: string;
|
|
103
103
|
};
|
|
104
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
104
108
|
Timezone: {
|
|
105
109
|
input: string;
|
|
106
110
|
output: string;
|
|
@@ -188,7 +192,7 @@ export type CreateTenantInput = {
|
|
|
188
192
|
billing?: InputMaybe<TenantBillingInput>;
|
|
189
193
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
190
194
|
region?: InputMaybe<Scalars['String']['input']>;
|
|
191
|
-
tenantId: Scalars['
|
|
195
|
+
tenantId: Scalars['TenantId']['input'];
|
|
192
196
|
};
|
|
193
197
|
export type DeployInput = {
|
|
194
198
|
branch: Scalars['String']['input'];
|
|
@@ -248,11 +252,15 @@ export type I18nTextInput = {
|
|
|
248
252
|
lang: Scalars['Locale']['input'];
|
|
249
253
|
value: Scalars['String']['input'];
|
|
250
254
|
};
|
|
255
|
+
export type JoinTenantAsSuperAdminInput = {
|
|
256
|
+
tenantId: Scalars['TenantId']['input'];
|
|
257
|
+
};
|
|
251
258
|
export type Mutation = {
|
|
252
259
|
batchDeploy: Array<Deployment>;
|
|
253
260
|
createTenant: Tenant;
|
|
254
261
|
deploy: Deployment;
|
|
255
262
|
destroy: Deployment;
|
|
263
|
+
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
256
264
|
removeTenant: Tenant;
|
|
257
265
|
updateAccountParameters: AwsAccount;
|
|
258
266
|
updateTenant: Tenant;
|
|
@@ -270,6 +278,9 @@ export type MutationDeployArgs = {
|
|
|
270
278
|
export type MutationDestroyArgs = {
|
|
271
279
|
input: DestroyInput;
|
|
272
280
|
};
|
|
281
|
+
export type MutationJoinTenantAsSuperAdminArgs = {
|
|
282
|
+
input: JoinTenantAsSuperAdminInput;
|
|
283
|
+
};
|
|
273
284
|
export type MutationRemoveTenantArgs = {
|
|
274
285
|
input: RemoveTenantInput;
|
|
275
286
|
};
|
|
@@ -332,7 +343,7 @@ export type QueryGetDeploymentArgs = {
|
|
|
332
343
|
tenantId: Scalars['ID']['input'];
|
|
333
344
|
};
|
|
334
345
|
export type QueryGetTenantArgs = {
|
|
335
|
-
tenantId: Scalars['
|
|
346
|
+
tenantId: Scalars['TenantId']['input'];
|
|
336
347
|
};
|
|
337
348
|
export type QueryListDeploymentsArgs = {
|
|
338
349
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -346,7 +357,7 @@ export type QueryListServicesArgs = {
|
|
|
346
357
|
};
|
|
347
358
|
export type QuerySearchSessionsOnTenantArgs = {
|
|
348
359
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
349
|
-
tenantId: Scalars['
|
|
360
|
+
tenantId: Scalars['TenantId']['input'];
|
|
350
361
|
};
|
|
351
362
|
export type ReclameAquiBilling = {
|
|
352
363
|
cutoffSyncDays?: Maybe<Scalars['Float']['output']>;
|
|
@@ -358,7 +369,7 @@ export type Region = {
|
|
|
358
369
|
name: Scalars['String']['output'];
|
|
359
370
|
};
|
|
360
371
|
export type RemoveTenantInput = {
|
|
361
|
-
tenantId: Scalars['
|
|
372
|
+
tenantId: Scalars['TenantId']['input'];
|
|
362
373
|
};
|
|
363
374
|
export type SearchResultsFacet = {
|
|
364
375
|
name: Scalars['String']['output'];
|
|
@@ -425,7 +436,7 @@ export type Tenant = {
|
|
|
425
436
|
name?: Maybe<Scalars['String']['output']>;
|
|
426
437
|
region: Scalars['String']['output'];
|
|
427
438
|
services: Array<Maybe<Service>>;
|
|
428
|
-
tenantId: Scalars['
|
|
439
|
+
tenantId: Scalars['TenantId']['output'];
|
|
429
440
|
updatedAt: Scalars['DateTime']['output'];
|
|
430
441
|
};
|
|
431
442
|
export type TenantBillingInput = {
|
|
@@ -455,7 +466,7 @@ export type UpdateAccountParametersInput = {
|
|
|
455
466
|
export type UpdateTenantInput = {
|
|
456
467
|
billing?: InputMaybe<TenantBillingInput>;
|
|
457
468
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
458
|
-
tenantId: Scalars['
|
|
469
|
+
tenantId: Scalars['TenantId']['input'];
|
|
459
470
|
};
|
|
460
471
|
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
461
472
|
availableRegions: Array<RegionFragment>;
|
|
@@ -567,7 +578,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
|
|
|
567
578
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
568
579
|
});
|
|
569
580
|
export type GetTenantQueryVariables = Exact<{
|
|
570
|
-
tenantId: Scalars['
|
|
581
|
+
tenantId: Scalars['TenantId']['input'];
|
|
571
582
|
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
572
583
|
withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
|
|
573
584
|
}>;
|
|
@@ -588,7 +599,7 @@ export type ListTenantsQuery = {
|
|
|
588
599
|
} & TenantFragment)>>;
|
|
589
600
|
};
|
|
590
601
|
export type SearchSessionsOnTenantQueryVariables = Exact<{
|
|
591
|
-
tenantId: Scalars['
|
|
602
|
+
tenantId: Scalars['TenantId']['input'];
|
|
592
603
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
593
604
|
}>;
|
|
594
605
|
export type SearchSessionsOnTenantQuery = Pick<Query, 'searchSessionsOnTenant'>;
|
|
@@ -610,6 +621,10 @@ export type RemoveTenantMutationVariables = Exact<{
|
|
|
610
621
|
export type RemoveTenantMutation = {
|
|
611
622
|
removeTenant: TenantFragment;
|
|
612
623
|
};
|
|
624
|
+
export type JoinTenantAsSuperAdminMutationVariables = Exact<{
|
|
625
|
+
input: JoinTenantAsSuperAdminInput;
|
|
626
|
+
}>;
|
|
627
|
+
export type JoinTenantAsSuperAdminMutation = Pick<Mutation, 'joinTenantAsSuperAdmin'>;
|
|
613
628
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
614
629
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n administrativeApiSecret\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n metaSystemUserId\n metaSystemUserToken\n mercadoLivreClientId\n mercadoLivreClientSecret\n }\n}\n ";
|
|
615
630
|
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
@@ -631,12 +646,13 @@ export declare const DeployDocument = "\n mutation deploy($input: DeployInput
|
|
|
631
646
|
export declare const DestroyDocument = "\n mutation destroy($input: DestroyInput!) {\n destroy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
632
647
|
export declare const BatchDeployDocument = "\n mutation batchDeploy($input: BatchDeployInput!) {\n batchDeploy(input: $input) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
633
648
|
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 ";
|
|
634
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId:
|
|
649
|
+
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\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 deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
635
650
|
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\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 deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
636
|
-
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId:
|
|
651
|
+
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
|
|
637
652
|
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
638
653
|
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
639
654
|
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 billing {\n reclameaqui {\n cutoffSyncDays\n }\n automate {\n isEnabled\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
655
|
+
export declare const JoinTenantAsSuperAdminDocument = "\n mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {\n joinTenantAsSuperAdmin(input: $input)\n}\n ";
|
|
640
656
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
641
657
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
642
658
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
@@ -659,6 +675,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
659
675
|
createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>;
|
|
660
676
|
updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>;
|
|
661
677
|
removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>;
|
|
678
|
+
joinTenantAsSuperAdmin(variables: JoinTenantAsSuperAdminMutationVariables, options?: C): Promise<JoinTenantAsSuperAdminMutation>;
|
|
662
679
|
};
|
|
663
680
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
664
681
|
export declare const serviceName = "@droz/drozcommons";
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.SearchSessionsOnTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UpdateAccountParametersDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -239,7 +239,7 @@ exports.ListServicesDocument = `
|
|
|
239
239
|
}
|
|
240
240
|
${exports.ServiceFragmentDoc}`;
|
|
241
241
|
exports.GetTenantDocument = `
|
|
242
|
-
query getTenant($tenantId:
|
|
242
|
+
query getTenant($tenantId: TenantId!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
|
|
243
243
|
getTenant(tenantId: $tenantId) {
|
|
244
244
|
...tenant
|
|
245
245
|
services @include(if: $withServices) {
|
|
@@ -269,7 +269,7 @@ exports.ListTenantsDocument = `
|
|
|
269
269
|
${exports.ServiceFragmentDoc}
|
|
270
270
|
${exports.DeploymentFragmentDoc}`;
|
|
271
271
|
exports.SearchSessionsOnTenantDocument = `
|
|
272
|
-
query searchSessionsOnTenant($tenantId:
|
|
272
|
+
query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {
|
|
273
273
|
searchSessionsOnTenant(tenantId: $tenantId, q: $q)
|
|
274
274
|
}
|
|
275
275
|
`;
|
|
@@ -294,6 +294,11 @@ exports.RemoveTenantDocument = `
|
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
296
|
${exports.TenantFragmentDoc}`;
|
|
297
|
+
exports.JoinTenantAsSuperAdminDocument = `
|
|
298
|
+
mutation joinTenantAsSuperAdmin($input: JoinTenantAsSuperAdminInput!) {
|
|
299
|
+
joinTenantAsSuperAdmin(input: $input)
|
|
300
|
+
}
|
|
301
|
+
`;
|
|
297
302
|
function getSdk(requester) {
|
|
298
303
|
return {
|
|
299
304
|
listAccounts(variables, options) {
|
|
@@ -355,6 +360,9 @@ function getSdk(requester) {
|
|
|
355
360
|
},
|
|
356
361
|
removeTenant(variables, options) {
|
|
357
362
|
return requester(exports.RemoveTenantDocument, variables, options);
|
|
363
|
+
},
|
|
364
|
+
joinTenantAsSuperAdmin(variables, options) {
|
|
365
|
+
return requester(exports.JoinTenantAsSuperAdminDocument, variables, options);
|
|
358
366
|
}
|
|
359
367
|
};
|
|
360
368
|
}
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -101,6 +101,10 @@ export type Scalars = {
|
|
|
101
101
|
input: string;
|
|
102
102
|
output: string;
|
|
103
103
|
};
|
|
104
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
104
108
|
Timezone: {
|
|
105
109
|
input: string;
|
|
106
110
|
output: string;
|
|
@@ -420,7 +424,7 @@ export type UpdateFlowInput = {
|
|
|
420
424
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
421
425
|
edges: Array<EdgeInput>;
|
|
422
426
|
id: Scalars['ID']['input'];
|
|
423
|
-
languages?: InputMaybe<Array<
|
|
427
|
+
languages?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
424
428
|
nodes: Array<NodeInput>;
|
|
425
429
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
426
430
|
triggers?: InputMaybe<Scalars['Set']['input']>;
|
package/src/sdks/logger.d.ts
CHANGED
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -101,6 +101,10 @@ export type Scalars = {
|
|
|
101
101
|
input: string;
|
|
102
102
|
output: string;
|
|
103
103
|
};
|
|
104
|
+
TenantId: {
|
|
105
|
+
input: string;
|
|
106
|
+
output: string;
|
|
107
|
+
};
|
|
104
108
|
Timezone: {
|
|
105
109
|
input: string;
|
|
106
110
|
output: string;
|
|
@@ -379,6 +383,10 @@ export type IndexedSession = {
|
|
|
379
383
|
status: SessionStatus;
|
|
380
384
|
triggerDrn: Scalars['ID']['output'];
|
|
381
385
|
};
|
|
386
|
+
export type JoinAsSuperAdminInput = {
|
|
387
|
+
email: Scalars['EmailAddress']['input'];
|
|
388
|
+
name: Scalars['String']['input'];
|
|
389
|
+
};
|
|
382
390
|
export type MercadoLivreAuthInfo = {
|
|
383
391
|
authUrl: Scalars['String']['output'];
|
|
384
392
|
};
|
|
@@ -427,6 +435,7 @@ export type Mutation = {
|
|
|
427
435
|
createSystemCredentials: SafeCredentials;
|
|
428
436
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
429
437
|
getOrCreateCustomer: Customer;
|
|
438
|
+
joinAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
430
439
|
patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
431
440
|
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
432
441
|
registerAppInstance: AppInstance;
|
|
@@ -490,6 +499,9 @@ export type MutationEditStateMachineConfigArgs = {
|
|
|
490
499
|
export type MutationGetOrCreateCustomerArgs = {
|
|
491
500
|
input: GetOrCreateCustomerInput;
|
|
492
501
|
};
|
|
502
|
+
export type MutationJoinAsSuperAdminArgs = {
|
|
503
|
+
input: JoinAsSuperAdminInput;
|
|
504
|
+
};
|
|
493
505
|
export type MutationPatchSessionAttributesArgs = {
|
|
494
506
|
input: PatchSessionAttributesInput;
|
|
495
507
|
};
|
|
@@ -627,6 +639,7 @@ export type Query = {
|
|
|
627
639
|
countCredentials: Scalars['Int']['output'];
|
|
628
640
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
629
641
|
getAgent?: Maybe<Agent>;
|
|
642
|
+
getAgentByEmail?: Maybe<Agent>;
|
|
630
643
|
getAgents: Array<Maybe<Agent>>;
|
|
631
644
|
getApp?: Maybe<App>;
|
|
632
645
|
getAppInstance?: Maybe<AppInstance>;
|
|
@@ -673,6 +686,9 @@ export type QueryCheckPermissionsArgs = {
|
|
|
673
686
|
export type QueryGetAgentArgs = {
|
|
674
687
|
id: Scalars['ID']['input'];
|
|
675
688
|
};
|
|
689
|
+
export type QueryGetAgentByEmailArgs = {
|
|
690
|
+
email: Scalars['EmailAddress']['input'];
|
|
691
|
+
};
|
|
676
692
|
export type QueryGetAgentsArgs = {
|
|
677
693
|
ids: Array<Scalars['ID']['input']>;
|
|
678
694
|
};
|
|
@@ -1039,6 +1055,12 @@ export type GetAgentQueryVariables = Exact<{
|
|
|
1039
1055
|
export type GetAgentQuery = {
|
|
1040
1056
|
getAgent?: Maybe<AgentFragment>;
|
|
1041
1057
|
};
|
|
1058
|
+
export type GetAgentByEmailQueryVariables = Exact<{
|
|
1059
|
+
email: Scalars['EmailAddress']['input'];
|
|
1060
|
+
}>;
|
|
1061
|
+
export type GetAgentByEmailQuery = {
|
|
1062
|
+
getAgentByEmail?: Maybe<AgentFragment>;
|
|
1063
|
+
};
|
|
1042
1064
|
export type GetAgentsQueryVariables = Exact<{
|
|
1043
1065
|
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
1044
1066
|
}>;
|
|
@@ -1117,6 +1139,10 @@ export type RemoveRoleFromAgentMutationVariables = Exact<{
|
|
|
1117
1139
|
export type RemoveRoleFromAgentMutation = {
|
|
1118
1140
|
removeRoleFromAgent?: Maybe<AgentFragment>;
|
|
1119
1141
|
};
|
|
1142
|
+
export type JoinAsSuperAdminMutationVariables = Exact<{
|
|
1143
|
+
input: JoinAsSuperAdminInput;
|
|
1144
|
+
}>;
|
|
1145
|
+
export type JoinAsSuperAdminMutation = Pick<Mutation, 'joinAsSuperAdmin'>;
|
|
1120
1146
|
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
|
|
1121
1147
|
channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
|
|
1122
1148
|
});
|
|
@@ -1556,6 +1582,7 @@ export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment s
|
|
|
1556
1582
|
export declare const StorageFragmentDoc = "\n fragment storage on Storage {\n key\n versionId\n name\n contentType\n size\n eTag\n cdnUrl\n createdAt\n updatedAt\n}\n ";
|
|
1557
1583
|
export declare const GetMeDocument = "\n query getMe {\n getMe {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1558
1584
|
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1585
|
+
export declare const GetAgentByEmailDocument = "\n query getAgentByEmail($email: EmailAddress!) {\n getAgentByEmail(email: $email) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1559
1586
|
export declare const GetAgentsDocument = "\n query getAgents($ids: [ID!]!) {\n getAgents(ids: $ids) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1560
1587
|
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1561
1588
|
export declare const ListApiKeyAgentsDocument = "\n query listApiKeyAgents($next: Base64) {\n listApiKeyAgents(next: $next) {\n nodes {\n ...agent\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1568,6 +1595,7 @@ export declare const RemoveAgentDocument = "\n mutation removeAgent($input: R
|
|
|
1568
1595
|
export declare const RemoveSystemApiKeyAgentDocument = "\n mutation removeSystemApiKeyAgent($input: RemoveAgentInput!) {\n removeSystemApiKeyAgent(input: $input) {\n ...apiKey\n }\n}\n \n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1569
1596
|
export declare const AddRoleToAgentDocument = "\n mutation addRoleToAgent($input: AddRoleToAgentInput!) {\n addRoleToAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1570
1597
|
export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFromAgent($input: RemoveRoleFromAgentInput!) {\n removeRoleFromAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n removed\n createdAt\n updatedAt\n}\n ";
|
|
1598
|
+
export declare const JoinAsSuperAdminDocument = "\n mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {\n joinAsSuperAdmin(input: $input)\n}\n ";
|
|
1571
1599
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1572
1600
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1573
1601
|
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
@@ -1632,6 +1660,7 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Pr
|
|
|
1632
1660
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1633
1661
|
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
1634
1662
|
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
1663
|
+
getAgentByEmail(variables: GetAgentByEmailQueryVariables, options?: C): Promise<GetAgentByEmailQuery>;
|
|
1635
1664
|
getAgents(variables: GetAgentsQueryVariables, options?: C): Promise<GetAgentsQuery>;
|
|
1636
1665
|
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
1637
1666
|
listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
|
|
@@ -1644,6 +1673,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1644
1673
|
removeSystemApiKeyAgent(variables: RemoveSystemApiKeyAgentMutationVariables, options?: C): Promise<RemoveSystemApiKeyAgentMutation>;
|
|
1645
1674
|
addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
|
|
1646
1675
|
removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
|
|
1676
|
+
joinAsSuperAdmin(variables: JoinAsSuperAdminMutationVariables, options?: C): Promise<JoinAsSuperAdminMutation>;
|
|
1647
1677
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
1648
1678
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
1649
1679
|
getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
|
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.getSdk = exports.CreatePresignedUploadUrlDocument = void 0;
|
|
4
|
+
exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.JoinAsSuperAdminDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveSystemApiKeyAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateSystemApiKeyAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentsDocument = exports.GetAgentByEmailDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.CredentialsWithSecretFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.SessionStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.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.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.SearchSessionsDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartCustomSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveSystemCredentialsDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateSystemCredentialsDocument = exports.CreateCredentialsDocument = exports.GetMercadoLivreAuthInfoDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetMetaAuthInfoDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = void 0;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
9
9
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -329,6 +329,13 @@ exports.GetAgentDocument = `
|
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
331
|
${exports.AgentFragmentDoc}`;
|
|
332
|
+
exports.GetAgentByEmailDocument = `
|
|
333
|
+
query getAgentByEmail($email: EmailAddress!) {
|
|
334
|
+
getAgentByEmail(email: $email) {
|
|
335
|
+
...agent
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
${exports.AgentFragmentDoc}`;
|
|
332
339
|
exports.GetAgentsDocument = `
|
|
333
340
|
query getAgents($ids: [ID!]!) {
|
|
334
341
|
getAgents(ids: $ids) {
|
|
@@ -428,6 +435,11 @@ exports.RemoveRoleFromAgentDocument = `
|
|
|
428
435
|
}
|
|
429
436
|
}
|
|
430
437
|
${exports.AgentFragmentDoc}`;
|
|
438
|
+
exports.JoinAsSuperAdminDocument = `
|
|
439
|
+
mutation joinAsSuperAdmin($input: JoinAsSuperAdminInput!) {
|
|
440
|
+
joinAsSuperAdmin(input: $input)
|
|
441
|
+
}
|
|
442
|
+
`;
|
|
431
443
|
exports.GetAppDocument = `
|
|
432
444
|
query getApp($appId: ID!, $withInstances: Boolean = false) {
|
|
433
445
|
getApp(appId: $appId) {
|
|
@@ -925,6 +937,9 @@ function getSdk(requester) {
|
|
|
925
937
|
getAgent(variables, options) {
|
|
926
938
|
return requester(exports.GetAgentDocument, variables, options);
|
|
927
939
|
},
|
|
940
|
+
getAgentByEmail(variables, options) {
|
|
941
|
+
return requester(exports.GetAgentByEmailDocument, variables, options);
|
|
942
|
+
},
|
|
928
943
|
getAgents(variables, options) {
|
|
929
944
|
return requester(exports.GetAgentsDocument, variables, options);
|
|
930
945
|
},
|
|
@@ -961,6 +976,9 @@ function getSdk(requester) {
|
|
|
961
976
|
removeRoleFromAgent(variables, options) {
|
|
962
977
|
return requester(exports.RemoveRoleFromAgentDocument, variables, options);
|
|
963
978
|
},
|
|
979
|
+
joinAsSuperAdmin(variables, options) {
|
|
980
|
+
return requester(exports.JoinAsSuperAdminDocument, variables, options);
|
|
981
|
+
},
|
|
964
982
|
getApp(variables, options) {
|
|
965
983
|
return requester(exports.GetAppDocument, variables, options);
|
|
966
984
|
},
|
package/src/sdks/utilities.d.ts
CHANGED
package/src/sdks/whatsapp.d.ts
CHANGED