@droz-js/sdk 0.7.0 → 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 +2 -2
- package/src/drozadmin.d.ts +3 -0
- package/src/droznexo.d.ts +3 -3
- package/src/nucleus.d.ts +6 -0
- package/src/sdks/ai.d.ts +9 -0
- package/src/sdks/casasbahia.d.ts +9 -0
- package/src/sdks/chatwidget.d.ts +9 -0
- package/src/sdks/drozbot.d.ts +9 -0
- package/src/sdks/drozchat.d.ts +9 -0
- package/src/sdks/drozcommons.d.ts +32 -10
- package/src/sdks/drozcommons.js +11 -3
- package/src/sdks/droznexo.d.ts +34 -24
- package/src/sdks/droznexo.js +25 -21
- package/src/sdks/logger.d.ts +9 -0
- package/src/sdks/mercadolivre.d.ts +9 -0
- package/src/sdks/nucleus.d.ts +35 -0
- package/src/sdks/nucleus.js +21 -3
- package/src/sdks/reclameaqui.d.ts +9 -0
- package/src/sdks/utilities.d.ts +9 -0
- package/src/sdks/whatsapp.d.ts +9 -0
- package/src/sdks/zendesk.d.ts +9 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"postpack": "clean-package restore"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"graphql": "^16.8.
|
|
22
|
+
"graphql": "^16.8.2",
|
|
23
23
|
"graphql-ws": "^5.16.0",
|
|
24
24
|
"isomorphic-ws": "^5.0.0",
|
|
25
25
|
"inbatches": "^0.0.10"
|
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/droznexo.d.ts
CHANGED
|
@@ -9,9 +9,6 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
|
|
|
9
9
|
getUsageStatistics(variables?: import("./sdks/droznexo").Exact<{
|
|
10
10
|
[key: string]: never;
|
|
11
11
|
}>, options?: unknown): Promise<import("./sdks/droznexo").GetUsageStatisticsQuery>;
|
|
12
|
-
getLicence(variables?: import("./sdks/droznexo").Exact<{
|
|
13
|
-
[key: string]: never;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
|
|
15
12
|
getFlow(variables: import("./sdks/droznexo").Exact<{
|
|
16
13
|
id: string;
|
|
17
14
|
versionId: string;
|
|
@@ -50,6 +47,9 @@ declare const DrozNexo_base: new (options?: import("./client/http").HttpClientOp
|
|
|
50
47
|
removeSimpleConnection(variables: import("./sdks/droznexo").Exact<{
|
|
51
48
|
input: import("./sdks/droznexo").RemoveSimpleConnectionInput;
|
|
52
49
|
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveSimpleConnectionMutation>;
|
|
50
|
+
getLicence(variables?: import("./sdks/droznexo").Exact<{
|
|
51
|
+
[key: string]: never;
|
|
52
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").GetLicenceQuery>;
|
|
53
53
|
};
|
|
54
54
|
export declare class DrozNexo extends DrozNexo_base {
|
|
55
55
|
}
|
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
|
@@ -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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/casasbahia.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/chatwidget.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/drozbot.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
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;
|
|
@@ -126,6 +130,11 @@ export type AddTagsToTicketInput = {
|
|
|
126
130
|
tags: Array<Scalars['String']['input']>;
|
|
127
131
|
ticketId: Scalars['ID']['input'];
|
|
128
132
|
};
|
|
133
|
+
export type AgentInfo = {
|
|
134
|
+
id: Scalars['ID']['output'];
|
|
135
|
+
name: Scalars['String']['output'];
|
|
136
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
137
|
+
};
|
|
129
138
|
export type AgentSearchResultsFacet = {
|
|
130
139
|
name: Scalars['String']['output'];
|
|
131
140
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
|
@@ -183,7 +192,7 @@ export type CreateTenantInput = {
|
|
|
183
192
|
billing?: InputMaybe<TenantBillingInput>;
|
|
184
193
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
185
194
|
region?: InputMaybe<Scalars['String']['input']>;
|
|
186
|
-
tenantId: Scalars['
|
|
195
|
+
tenantId: Scalars['TenantId']['input'];
|
|
187
196
|
};
|
|
188
197
|
export type DeployInput = {
|
|
189
198
|
branch: Scalars['String']['input'];
|
|
@@ -243,11 +252,15 @@ export type I18nTextInput = {
|
|
|
243
252
|
lang: Scalars['Locale']['input'];
|
|
244
253
|
value: Scalars['String']['input'];
|
|
245
254
|
};
|
|
255
|
+
export type JoinTenantAsSuperAdminInput = {
|
|
256
|
+
tenantId: Scalars['TenantId']['input'];
|
|
257
|
+
};
|
|
246
258
|
export type Mutation = {
|
|
247
259
|
batchDeploy: Array<Deployment>;
|
|
248
260
|
createTenant: Tenant;
|
|
249
261
|
deploy: Deployment;
|
|
250
262
|
destroy: Deployment;
|
|
263
|
+
joinTenantAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
251
264
|
removeTenant: Tenant;
|
|
252
265
|
updateAccountParameters: AwsAccount;
|
|
253
266
|
updateTenant: Tenant;
|
|
@@ -265,6 +278,9 @@ export type MutationDeployArgs = {
|
|
|
265
278
|
export type MutationDestroyArgs = {
|
|
266
279
|
input: DestroyInput;
|
|
267
280
|
};
|
|
281
|
+
export type MutationJoinTenantAsSuperAdminArgs = {
|
|
282
|
+
input: JoinTenantAsSuperAdminInput;
|
|
283
|
+
};
|
|
268
284
|
export type MutationRemoveTenantArgs = {
|
|
269
285
|
input: RemoveTenantInput;
|
|
270
286
|
};
|
|
@@ -327,7 +343,7 @@ export type QueryGetDeploymentArgs = {
|
|
|
327
343
|
tenantId: Scalars['ID']['input'];
|
|
328
344
|
};
|
|
329
345
|
export type QueryGetTenantArgs = {
|
|
330
|
-
tenantId: Scalars['
|
|
346
|
+
tenantId: Scalars['TenantId']['input'];
|
|
331
347
|
};
|
|
332
348
|
export type QueryListDeploymentsArgs = {
|
|
333
349
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -341,7 +357,7 @@ export type QueryListServicesArgs = {
|
|
|
341
357
|
};
|
|
342
358
|
export type QuerySearchSessionsOnTenantArgs = {
|
|
343
359
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
344
|
-
tenantId: Scalars['
|
|
360
|
+
tenantId: Scalars['TenantId']['input'];
|
|
345
361
|
};
|
|
346
362
|
export type ReclameAquiBilling = {
|
|
347
363
|
cutoffSyncDays?: Maybe<Scalars['Float']['output']>;
|
|
@@ -353,7 +369,7 @@ export type Region = {
|
|
|
353
369
|
name: Scalars['String']['output'];
|
|
354
370
|
};
|
|
355
371
|
export type RemoveTenantInput = {
|
|
356
|
-
tenantId: Scalars['
|
|
372
|
+
tenantId: Scalars['TenantId']['input'];
|
|
357
373
|
};
|
|
358
374
|
export type SearchResultsFacet = {
|
|
359
375
|
name: Scalars['String']['output'];
|
|
@@ -420,7 +436,7 @@ export type Tenant = {
|
|
|
420
436
|
name?: Maybe<Scalars['String']['output']>;
|
|
421
437
|
region: Scalars['String']['output'];
|
|
422
438
|
services: Array<Maybe<Service>>;
|
|
423
|
-
tenantId: Scalars['
|
|
439
|
+
tenantId: Scalars['TenantId']['output'];
|
|
424
440
|
updatedAt: Scalars['DateTime']['output'];
|
|
425
441
|
};
|
|
426
442
|
export type TenantBillingInput = {
|
|
@@ -450,7 +466,7 @@ export type UpdateAccountParametersInput = {
|
|
|
450
466
|
export type UpdateTenantInput = {
|
|
451
467
|
billing?: InputMaybe<TenantBillingInput>;
|
|
452
468
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
453
|
-
tenantId: Scalars['
|
|
469
|
+
tenantId: Scalars['TenantId']['input'];
|
|
454
470
|
};
|
|
455
471
|
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
456
472
|
availableRegions: Array<RegionFragment>;
|
|
@@ -562,7 +578,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
|
|
|
562
578
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
563
579
|
});
|
|
564
580
|
export type GetTenantQueryVariables = Exact<{
|
|
565
|
-
tenantId: Scalars['
|
|
581
|
+
tenantId: Scalars['TenantId']['input'];
|
|
566
582
|
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
567
583
|
withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
|
|
568
584
|
}>;
|
|
@@ -583,7 +599,7 @@ export type ListTenantsQuery = {
|
|
|
583
599
|
} & TenantFragment)>>;
|
|
584
600
|
};
|
|
585
601
|
export type SearchSessionsOnTenantQueryVariables = Exact<{
|
|
586
|
-
tenantId: Scalars['
|
|
602
|
+
tenantId: Scalars['TenantId']['input'];
|
|
587
603
|
q?: InputMaybe<Scalars['String']['input']>;
|
|
588
604
|
}>;
|
|
589
605
|
export type SearchSessionsOnTenantQuery = Pick<Query, 'searchSessionsOnTenant'>;
|
|
@@ -605,6 +621,10 @@ export type RemoveTenantMutationVariables = Exact<{
|
|
|
605
621
|
export type RemoveTenantMutation = {
|
|
606
622
|
removeTenant: TenantFragment;
|
|
607
623
|
};
|
|
624
|
+
export type JoinTenantAsSuperAdminMutationVariables = Exact<{
|
|
625
|
+
input: JoinTenantAsSuperAdminInput;
|
|
626
|
+
}>;
|
|
627
|
+
export type JoinTenantAsSuperAdminMutation = Pick<Mutation, 'joinTenantAsSuperAdmin'>;
|
|
608
628
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
609
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 ";
|
|
610
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 ";
|
|
@@ -626,12 +646,13 @@ export declare const DeployDocument = "\n mutation deploy($input: DeployInput
|
|
|
626
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 ";
|
|
627
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 ";
|
|
628
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 ";
|
|
629
|
-
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 ";
|
|
630
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 ";
|
|
631
|
-
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 ";
|
|
632
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 ";
|
|
633
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 ";
|
|
634
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 ";
|
|
635
656
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
636
657
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
637
658
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
@@ -654,6 +675,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
654
675
|
createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>;
|
|
655
676
|
updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>;
|
|
656
677
|
removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>;
|
|
678
|
+
joinTenantAsSuperAdmin(variables: JoinTenantAsSuperAdminMutationVariables, options?: C): Promise<JoinTenantAsSuperAdminMutation>;
|
|
657
679
|
};
|
|
658
680
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
659
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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export type AppAndAppInstance = {
|
|
122
131
|
app: DrozNexoApp;
|
|
123
132
|
appInstance: DrozNexoAppInstance;
|
|
@@ -196,7 +205,7 @@ export type EditFlowInput = {
|
|
|
196
205
|
};
|
|
197
206
|
export type Flow = {
|
|
198
207
|
createdAt: Scalars['DateTime']['output'];
|
|
199
|
-
createdBy?: Maybe<
|
|
208
|
+
createdBy?: Maybe<AgentInfo>;
|
|
200
209
|
description?: Maybe<Scalars['String']['output']>;
|
|
201
210
|
edges: Array<Edge>;
|
|
202
211
|
id: Scalars['ID']['output'];
|
|
@@ -415,7 +424,7 @@ export type UpdateFlowInput = {
|
|
|
415
424
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
416
425
|
edges: Array<EdgeInput>;
|
|
417
426
|
id: Scalars['ID']['input'];
|
|
418
|
-
languages?: InputMaybe<Array<
|
|
427
|
+
languages?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
419
428
|
nodes: Array<NodeInput>;
|
|
420
429
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
421
430
|
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
@@ -437,7 +446,8 @@ export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
|
437
446
|
data: AppAndAppInstanceFragment;
|
|
438
447
|
});
|
|
439
448
|
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
440
|
-
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | '
|
|
449
|
+
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdAt' | 'updatedAt'> & {
|
|
450
|
+
createdBy?: Maybe<Pick<AgentInfo, 'id' | 'name' | 'picture'>>;
|
|
441
451
|
triggers: Array<AppAndAppInstanceFragment>;
|
|
442
452
|
nodes: Array<NodeFragment>;
|
|
443
453
|
edges: Array<EdgeFragment>;
|
|
@@ -448,17 +458,6 @@ export type GetUsageStatisticsQueryVariables = Exact<{
|
|
|
448
458
|
export type GetUsageStatisticsQuery = {
|
|
449
459
|
getUsageStatistics?: Maybe<Pick<DrozNexoUsageStatistics, 'totalSecrets' | 'totalAppInstances' | 'totalConnections'>>;
|
|
450
460
|
};
|
|
451
|
-
export type GetLicenceQueryVariables = Exact<{
|
|
452
|
-
[key: string]: never;
|
|
453
|
-
}>;
|
|
454
|
-
export type GetLicenceQuery = {
|
|
455
|
-
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
|
|
456
|
-
billing: {
|
|
457
|
-
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
458
|
-
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
459
|
-
};
|
|
460
|
-
})>;
|
|
461
|
-
};
|
|
462
461
|
export type GetFlowQueryVariables = Exact<{
|
|
463
462
|
id: Scalars['ID']['input'];
|
|
464
463
|
versionId: Scalars['ID']['input'];
|
|
@@ -539,30 +538,40 @@ export type RemoveSimpleConnectionMutationVariables = Exact<{
|
|
|
539
538
|
export type RemoveSimpleConnectionMutation = {
|
|
540
539
|
removeSimpleConnection: SimpleConnectionFragment;
|
|
541
540
|
};
|
|
541
|
+
export type GetLicenceQueryVariables = Exact<{
|
|
542
|
+
[key: string]: never;
|
|
543
|
+
}>;
|
|
544
|
+
export type GetLicenceQuery = {
|
|
545
|
+
getLicence?: Maybe<(Pick<DrozNexoLicence, 'tenantId' | 'name'> & {
|
|
546
|
+
billing: {
|
|
547
|
+
automate: Pick<AutomateConfiguration, 'isEnabled'>;
|
|
548
|
+
reclameaqui: Pick<ReclameAquiConfiguration, 'cutoffSyncDays'>;
|
|
549
|
+
};
|
|
550
|
+
})>;
|
|
551
|
+
};
|
|
542
552
|
export declare const AppAndAppInstanceFragmentDoc = "\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
543
553
|
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
|
|
544
554
|
export declare const SimpleConnectionFragmentDoc = "\n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n ";
|
|
545
555
|
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
546
556
|
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
547
|
-
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
|
|
557
|
+
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n ";
|
|
548
558
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
549
|
-
export declare const
|
|
550
|
-
export declare const
|
|
551
|
-
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
559
|
+
export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
560
|
+
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
552
561
|
export declare const ListSimpleSuggestionsDocument = "\n query listSimpleSuggestions {\n listSimpleConnectionSuggestions {\n ...simpleConnectionSuggestion\n }\n}\n \n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
553
562
|
export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
554
|
-
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
555
|
-
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
556
|
-
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
557
|
-
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
563
|
+
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
564
|
+
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
565
|
+
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
566
|
+
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
558
567
|
export declare const TestFlowDocument = "\n mutation testFlow($input: TestFlowInput!) {\n testFlow(input: $input) {\n sessionId\n }\n}\n ";
|
|
559
|
-
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
568
|
+
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy {\n id\n name\n picture\n }\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n ";
|
|
560
569
|
export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
561
570
|
export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n ";
|
|
571
|
+
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n ";
|
|
562
572
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
563
573
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
564
574
|
getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
|
|
565
|
-
getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
|
|
566
575
|
getFlow(variables: GetFlowQueryVariables, options?: C): Promise<GetFlowQuery>;
|
|
567
576
|
listFlows(variables?: ListFlowsQueryVariables, options?: C): Promise<ListFlowsQuery>;
|
|
568
577
|
listSimpleSuggestions(variables?: ListSimpleSuggestionsQueryVariables, options?: C): Promise<ListSimpleSuggestionsQuery>;
|
|
@@ -575,6 +584,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
575
584
|
removeFlow(variables: RemoveFlowMutationVariables, options?: C): Promise<RemoveFlowMutation>;
|
|
576
585
|
createSimpleConnection(variables: CreateSimpleConnectionMutationVariables, options?: C): Promise<CreateSimpleConnectionMutation>;
|
|
577
586
|
removeSimpleConnection(variables: RemoveSimpleConnectionMutationVariables, options?: C): Promise<RemoveSimpleConnectionMutation>;
|
|
587
|
+
getLicence(variables?: GetLicenceQueryVariables, options?: C): Promise<GetLicenceQuery>;
|
|
578
588
|
};
|
|
579
589
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
580
590
|
export declare const serviceName = "@droz/droznexo";
|
package/src/sdks/droznexo.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.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.TestFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.GetLicenceDocument = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.TestFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetUsageStatisticsDocument = exports.FlowFragmentDoc = exports.EdgeFragmentDoc = exports.NodeFragmentDoc = exports.SimpleConnectionFragmentDoc = exports.SimpleConnectionSuggestionFragmentDoc = exports.AppAndAppInstanceFragmentDoc = exports.Typenames = exports.FlowStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -101,7 +101,11 @@ exports.FlowFragmentDoc = `
|
|
|
101
101
|
description
|
|
102
102
|
status
|
|
103
103
|
languages
|
|
104
|
-
createdBy
|
|
104
|
+
createdBy {
|
|
105
|
+
id
|
|
106
|
+
name
|
|
107
|
+
picture
|
|
108
|
+
}
|
|
105
109
|
triggers {
|
|
106
110
|
...appAndAppInstance
|
|
107
111
|
}
|
|
@@ -124,22 +128,6 @@ exports.GetUsageStatisticsDocument = `
|
|
|
124
128
|
}
|
|
125
129
|
}
|
|
126
130
|
`;
|
|
127
|
-
exports.GetLicenceDocument = `
|
|
128
|
-
query getLicence {
|
|
129
|
-
getLicence {
|
|
130
|
-
tenantId
|
|
131
|
-
name
|
|
132
|
-
billing {
|
|
133
|
-
automate {
|
|
134
|
-
isEnabled
|
|
135
|
-
}
|
|
136
|
-
reclameaqui {
|
|
137
|
-
cutoffSyncDays
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
`;
|
|
143
131
|
exports.GetFlowDocument = `
|
|
144
132
|
query getFlow($id: ID!, $versionId: ID!) {
|
|
145
133
|
getFlow(id: $id, versionId: $versionId) {
|
|
@@ -261,14 +249,27 @@ exports.RemoveSimpleConnectionDocument = `
|
|
|
261
249
|
}
|
|
262
250
|
${exports.SimpleConnectionFragmentDoc}
|
|
263
251
|
${exports.AppAndAppInstanceFragmentDoc}`;
|
|
252
|
+
exports.GetLicenceDocument = `
|
|
253
|
+
query getLicence {
|
|
254
|
+
getLicence {
|
|
255
|
+
tenantId
|
|
256
|
+
name
|
|
257
|
+
billing {
|
|
258
|
+
automate {
|
|
259
|
+
isEnabled
|
|
260
|
+
}
|
|
261
|
+
reclameaqui {
|
|
262
|
+
cutoffSyncDays
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
`;
|
|
264
268
|
function getSdk(requester) {
|
|
265
269
|
return {
|
|
266
270
|
getUsageStatistics(variables, options) {
|
|
267
271
|
return requester(exports.GetUsageStatisticsDocument, variables, options);
|
|
268
272
|
},
|
|
269
|
-
getLicence(variables, options) {
|
|
270
|
-
return requester(exports.GetLicenceDocument, variables, options);
|
|
271
|
-
},
|
|
272
273
|
getFlow(variables, options) {
|
|
273
274
|
return requester(exports.GetFlowDocument, variables, options);
|
|
274
275
|
},
|
|
@@ -304,6 +305,9 @@ function getSdk(requester) {
|
|
|
304
305
|
},
|
|
305
306
|
removeSimpleConnection(variables, options) {
|
|
306
307
|
return requester(exports.RemoveSimpleConnectionDocument, variables, options);
|
|
308
|
+
},
|
|
309
|
+
getLicence(variables, options) {
|
|
310
|
+
return requester(exports.GetLicenceDocument, variables, options);
|
|
307
311
|
}
|
|
308
312
|
};
|
|
309
313
|
}
|
package/src/sdks/logger.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
|
@@ -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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
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;
|
|
@@ -144,6 +148,11 @@ export type AgentConnection = {
|
|
|
144
148
|
nodes: Array<Agent>;
|
|
145
149
|
pageInfo: PageInfo;
|
|
146
150
|
};
|
|
151
|
+
export type AgentInfo = {
|
|
152
|
+
id: Scalars['ID']['output'];
|
|
153
|
+
name: Scalars['String']['output'];
|
|
154
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
155
|
+
};
|
|
147
156
|
export type ApiKeyAgent = {
|
|
148
157
|
email: Scalars['EmailAddress']['output'];
|
|
149
158
|
password: Scalars['String']['output'];
|
|
@@ -374,6 +383,10 @@ export type IndexedSession = {
|
|
|
374
383
|
status: SessionStatus;
|
|
375
384
|
triggerDrn: Scalars['ID']['output'];
|
|
376
385
|
};
|
|
386
|
+
export type JoinAsSuperAdminInput = {
|
|
387
|
+
email: Scalars['EmailAddress']['input'];
|
|
388
|
+
name: Scalars['String']['input'];
|
|
389
|
+
};
|
|
377
390
|
export type MercadoLivreAuthInfo = {
|
|
378
391
|
authUrl: Scalars['String']['output'];
|
|
379
392
|
};
|
|
@@ -422,6 +435,7 @@ export type Mutation = {
|
|
|
422
435
|
createSystemCredentials: SafeCredentials;
|
|
423
436
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
424
437
|
getOrCreateCustomer: Customer;
|
|
438
|
+
joinAsSuperAdmin?: Maybe<Scalars['String']['output']>;
|
|
425
439
|
patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
426
440
|
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
427
441
|
registerAppInstance: AppInstance;
|
|
@@ -485,6 +499,9 @@ export type MutationEditStateMachineConfigArgs = {
|
|
|
485
499
|
export type MutationGetOrCreateCustomerArgs = {
|
|
486
500
|
input: GetOrCreateCustomerInput;
|
|
487
501
|
};
|
|
502
|
+
export type MutationJoinAsSuperAdminArgs = {
|
|
503
|
+
input: JoinAsSuperAdminInput;
|
|
504
|
+
};
|
|
488
505
|
export type MutationPatchSessionAttributesArgs = {
|
|
489
506
|
input: PatchSessionAttributesInput;
|
|
490
507
|
};
|
|
@@ -622,6 +639,7 @@ export type Query = {
|
|
|
622
639
|
countCredentials: Scalars['Int']['output'];
|
|
623
640
|
countLiveStateMachineConfigs: Scalars['Int']['output'];
|
|
624
641
|
getAgent?: Maybe<Agent>;
|
|
642
|
+
getAgentByEmail?: Maybe<Agent>;
|
|
625
643
|
getAgents: Array<Maybe<Agent>>;
|
|
626
644
|
getApp?: Maybe<App>;
|
|
627
645
|
getAppInstance?: Maybe<AppInstance>;
|
|
@@ -668,6 +686,9 @@ export type QueryCheckPermissionsArgs = {
|
|
|
668
686
|
export type QueryGetAgentArgs = {
|
|
669
687
|
id: Scalars['ID']['input'];
|
|
670
688
|
};
|
|
689
|
+
export type QueryGetAgentByEmailArgs = {
|
|
690
|
+
email: Scalars['EmailAddress']['input'];
|
|
691
|
+
};
|
|
671
692
|
export type QueryGetAgentsArgs = {
|
|
672
693
|
ids: Array<Scalars['ID']['input']>;
|
|
673
694
|
};
|
|
@@ -1034,6 +1055,12 @@ export type GetAgentQueryVariables = Exact<{
|
|
|
1034
1055
|
export type GetAgentQuery = {
|
|
1035
1056
|
getAgent?: Maybe<AgentFragment>;
|
|
1036
1057
|
};
|
|
1058
|
+
export type GetAgentByEmailQueryVariables = Exact<{
|
|
1059
|
+
email: Scalars['EmailAddress']['input'];
|
|
1060
|
+
}>;
|
|
1061
|
+
export type GetAgentByEmailQuery = {
|
|
1062
|
+
getAgentByEmail?: Maybe<AgentFragment>;
|
|
1063
|
+
};
|
|
1037
1064
|
export type GetAgentsQueryVariables = Exact<{
|
|
1038
1065
|
ids: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
1039
1066
|
}>;
|
|
@@ -1112,6 +1139,10 @@ export type RemoveRoleFromAgentMutationVariables = Exact<{
|
|
|
1112
1139
|
export type RemoveRoleFromAgentMutation = {
|
|
1113
1140
|
removeRoleFromAgent?: Maybe<AgentFragment>;
|
|
1114
1141
|
};
|
|
1142
|
+
export type JoinAsSuperAdminMutationVariables = Exact<{
|
|
1143
|
+
input: JoinAsSuperAdminInput;
|
|
1144
|
+
}>;
|
|
1145
|
+
export type JoinAsSuperAdminMutation = Pick<Mutation, 'joinAsSuperAdmin'>;
|
|
1115
1146
|
export type AppFragment = (Pick<App, 'id' | 'type' | 'name' | 'description' | 'color'> & {
|
|
1116
1147
|
channels?: Maybe<Array<Pick<AppChannel, 'id' | 'sources' | 'main' | 'readonly' | 'hidden'>>>;
|
|
1117
1148
|
});
|
|
@@ -1551,6 +1582,7 @@ export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment s
|
|
|
1551
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 ";
|
|
1552
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 ";
|
|
1553
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 ";
|
|
1554
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 ";
|
|
1555
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 ";
|
|
1556
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 ";
|
|
@@ -1563,6 +1595,7 @@ export declare const RemoveAgentDocument = "\n mutation removeAgent($input: R
|
|
|
1563
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 ";
|
|
1564
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 ";
|
|
1565
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 ";
|
|
1566
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 ";
|
|
1567
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 ";
|
|
1568
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 ";
|
|
@@ -1627,6 +1660,7 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Pr
|
|
|
1627
1660
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
1628
1661
|
getMe(variables?: GetMeQueryVariables, options?: C): Promise<GetMeQuery>;
|
|
1629
1662
|
getAgent(variables: GetAgentQueryVariables, options?: C): Promise<GetAgentQuery>;
|
|
1663
|
+
getAgentByEmail(variables: GetAgentByEmailQueryVariables, options?: C): Promise<GetAgentByEmailQuery>;
|
|
1630
1664
|
getAgents(variables: GetAgentsQueryVariables, options?: C): Promise<GetAgentsQuery>;
|
|
1631
1665
|
listAgents(variables?: ListAgentsQueryVariables, options?: C): Promise<ListAgentsQuery>;
|
|
1632
1666
|
listApiKeyAgents(variables?: ListApiKeyAgentsQueryVariables, options?: C): Promise<ListApiKeyAgentsQuery>;
|
|
@@ -1639,6 +1673,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1639
1673
|
removeSystemApiKeyAgent(variables: RemoveSystemApiKeyAgentMutationVariables, options?: C): Promise<RemoveSystemApiKeyAgentMutation>;
|
|
1640
1674
|
addRoleToAgent(variables: AddRoleToAgentMutationVariables, options?: C): Promise<AddRoleToAgentMutation>;
|
|
1641
1675
|
removeRoleFromAgent(variables: RemoveRoleFromAgentMutationVariables, options?: C): Promise<RemoveRoleFromAgentMutation>;
|
|
1676
|
+
joinAsSuperAdmin(variables: JoinAsSuperAdminMutationVariables, options?: C): Promise<JoinAsSuperAdminMutation>;
|
|
1642
1677
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
1643
1678
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
1644
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
|
},
|
|
@@ -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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/utilities.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/whatsapp.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|
package/src/sdks/zendesk.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;
|
|
@@ -118,6 +122,11 @@ export type Scalars = {
|
|
|
118
122
|
output: void;
|
|
119
123
|
};
|
|
120
124
|
};
|
|
125
|
+
export type AgentInfo = {
|
|
126
|
+
id: Scalars['ID']['output'];
|
|
127
|
+
name: Scalars['String']['output'];
|
|
128
|
+
picture?: Maybe<Scalars['String']['output']>;
|
|
129
|
+
};
|
|
121
130
|
export declare enum AppInstanceStatus {
|
|
122
131
|
Active = "Active",
|
|
123
132
|
Failing = "Failing",
|