@droz-js/sdk 0.6.11 → 0.6.13
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/drozai.d.ts +20 -0
- package/src/logger.d.ts +7 -0
- package/src/mercadolivre.d.ts +24 -0
- package/src/mercadolivre.js +21 -0
- package/src/nucleus.d.ts +6 -0
- package/src/sdks/ai.d.ts +116 -1
- package/src/sdks/ai.js +77 -1
- package/src/sdks/drozchat.d.ts +1 -0
- package/src/sdks/drozcommons.d.ts +19 -11
- package/src/sdks/drozcommons.js +5 -1
- package/src/sdks/logger.d.ts +28 -2
- package/src/sdks/logger.js +37 -11
- package/src/sdks/nucleus.d.ts +61 -22
- package/src/sdks/nucleus.js +31 -1
- package/src/sdks/whatsapp.d.ts +18 -2
- package/src/sdks/whatsapp.js +17 -1
- package/src/whatsapp.d.ts +3 -0
package/package.json
CHANGED
package/src/drozai.d.ts
CHANGED
|
@@ -25,4 +25,24 @@ export declare const DrozAi: new (options?: import("./client/http").HttpClientOp
|
|
|
25
25
|
id: string;
|
|
26
26
|
sample: string;
|
|
27
27
|
}>, options?: unknown): Promise<import("./sdks/ai").TestNlpInstanceQuery>;
|
|
28
|
+
getQnAInstance(variables: import("./sdks/ai").Exact<{
|
|
29
|
+
id: string;
|
|
30
|
+
}>, options?: unknown): Promise<import("./sdks/ai").GetQnAInstanceQuery>;
|
|
31
|
+
listQnAInstances(variables?: import("./sdks/ai").Exact<{
|
|
32
|
+
[key: string]: never;
|
|
33
|
+
}>, options?: unknown): Promise<import("./sdks/ai").ListQnAInstancesQuery>;
|
|
34
|
+
testQnAInstance(variables: import("./sdks/ai").Exact<{
|
|
35
|
+
id: string;
|
|
36
|
+
input: string;
|
|
37
|
+
history?: string;
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/ai").TestQnAInstanceQuery>;
|
|
39
|
+
createQnAInstance(variables: import("./sdks/ai").Exact<{
|
|
40
|
+
input: import("./sdks/ai").CreateQnAInstanceInput;
|
|
41
|
+
}>, options?: unknown): Promise<import("./sdks/ai").CreateQnAInstanceMutation>;
|
|
42
|
+
updateQnAInstance(variables: import("./sdks/ai").Exact<{
|
|
43
|
+
input: import("./sdks/ai").UpdateQnAInstanceInput;
|
|
44
|
+
}>, options?: unknown): Promise<import("./sdks/ai").UpdateQnAInstanceMutation>;
|
|
45
|
+
removeQnAInstance(variables: import("./sdks/ai").Exact<{
|
|
46
|
+
input: import("./sdks/ai").RemoveQnAInstanceInput;
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/ai").RemoveQnAInstanceMutation>;
|
|
28
48
|
};
|
package/src/logger.d.ts
CHANGED
|
@@ -6,8 +6,15 @@ export declare const Logger: new (options?: import("./client/http").HttpClientOp
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
8
|
} & {
|
|
9
|
+
getLastMessage(variables: import("./sdks/logger").Exact<{
|
|
10
|
+
sessionId: string;
|
|
11
|
+
type?: string;
|
|
12
|
+
}>, options?: unknown): Promise<import("./sdks/logger").GetLastMessageQuery>;
|
|
9
13
|
listMessages(variables: import("./sdks/logger").Exact<{
|
|
10
14
|
sessionId: string;
|
|
15
|
+
type?: string;
|
|
16
|
+
limit?: number;
|
|
17
|
+
order?: import("./sdks/logger").Order;
|
|
11
18
|
next?: object;
|
|
12
19
|
}>, options?: unknown): Promise<import("./sdks/logger").ListMessagesQuery>;
|
|
13
20
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './sdks/mercadolivre';
|
|
2
|
+
export declare const MercadoLivre: new (options?: import("./client/http").HttpClientOptions) => {
|
|
3
|
+
readonly http: any;
|
|
4
|
+
forTenant(tenant: string): any;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
|
+
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
|
+
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
|
+
} & {
|
|
9
|
+
getMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
10
|
+
id: string;
|
|
11
|
+
}>, options?: unknown): Promise<import("./sdks/mercadolivre").GetMercadoLivreInstanceQuery>;
|
|
12
|
+
listMercadoLivreInstances(variables?: import("./sdks/mercadolivre").Exact<{
|
|
13
|
+
[key: string]: never;
|
|
14
|
+
}>, options?: unknown): Promise<import("./sdks/mercadolivre").ListMercadoLivreInstancesQuery>;
|
|
15
|
+
createMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
16
|
+
input: import("./sdks/mercadolivre").CreateMercadoLivreInstanceInput;
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/mercadolivre").CreateMercadoLivreInstanceMutation>;
|
|
18
|
+
updateMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
19
|
+
input: import("./sdks/mercadolivre").UpdateMercadoLivreInstanceInput;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/mercadolivre").UpdateMercadoLivreInstanceMutation>;
|
|
21
|
+
removeMercadoLivreInstance(variables: import("./sdks/mercadolivre").Exact<{
|
|
22
|
+
input: import("./sdks/mercadolivre").RemoveMercadoLivreInstanceInput;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/mercadolivre").RemoveMercadoLivreInstanceMutation>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.MercadoLivre = void 0;
|
|
18
|
+
const http_1 = require("./client/http");
|
|
19
|
+
const mercadolivre_1 = require("./sdks/mercadolivre");
|
|
20
|
+
__exportStar(require("./sdks/mercadolivre"), exports);
|
|
21
|
+
exports.MercadoLivre = (0, http_1.HttpClientBuilder)(mercadolivre_1.serviceName, mercadolivre_1.getSdk);
|
package/src/nucleus.d.ts
CHANGED
|
@@ -90,12 +90,18 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
90
90
|
getCredentialsSecret(variables: import("./sdks/nucleus").Exact<{
|
|
91
91
|
id: string;
|
|
92
92
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetCredentialsSecretQuery>;
|
|
93
|
+
getMetaAuthInfo(variables?: import("./sdks/nucleus").Exact<{
|
|
94
|
+
[key: string]: never;
|
|
95
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetMetaAuthInfoQuery>;
|
|
93
96
|
listCredentials(variables?: import("./sdks/nucleus").Exact<{
|
|
94
97
|
type?: import("./sdks/nucleus").CredentialsType;
|
|
95
98
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListCredentialsQuery>;
|
|
96
99
|
countCredentials(variables?: import("./sdks/nucleus").Exact<{
|
|
97
100
|
[key: string]: never;
|
|
98
101
|
}>, options?: unknown): Promise<import("./sdks/nucleus").CountCredentialsQuery>;
|
|
102
|
+
getMercadoLivreAuthInfo(variables?: import("./sdks/nucleus").Exact<{
|
|
103
|
+
[key: string]: never;
|
|
104
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetMercadoLivreAuthInfoQuery>;
|
|
99
105
|
createCredentials(variables: import("./sdks/nucleus").Exact<{
|
|
100
106
|
input: import("./sdks/nucleus").CreateCredentialsInput;
|
|
101
107
|
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateCredentialsMutation>;
|
package/src/sdks/ai.d.ts
CHANGED
|
@@ -133,6 +133,12 @@ export type CreateNlpInstanceInput = {
|
|
|
133
133
|
name: Scalars['String']['input'];
|
|
134
134
|
options: Array<NlpOptionInput>;
|
|
135
135
|
};
|
|
136
|
+
export type CreateQnAInstanceInput = {
|
|
137
|
+
name: Scalars['String']['input'];
|
|
138
|
+
prompt: Scalars['String']['input'];
|
|
139
|
+
retrieverCredentialsId: Scalars['ID']['input'];
|
|
140
|
+
retrieverTenantId: Scalars['String']['input'];
|
|
141
|
+
};
|
|
136
142
|
export type I18nText = {
|
|
137
143
|
lang: Scalars['Locale']['output'];
|
|
138
144
|
value: Scalars['String']['output'];
|
|
@@ -143,19 +149,31 @@ export type I18nTextInput = {
|
|
|
143
149
|
};
|
|
144
150
|
export type Mutation = {
|
|
145
151
|
createNlpInstance?: Maybe<NlpInstance>;
|
|
152
|
+
createQnAInstance?: Maybe<QnAInstance>;
|
|
146
153
|
removeNlpInstance?: Maybe<NlpInstance>;
|
|
154
|
+
removeQnAInstance?: Maybe<QnAInstance>;
|
|
147
155
|
updateNlpInstance?: Maybe<NlpInstance>;
|
|
156
|
+
updateQnAInstance?: Maybe<QnAInstance>;
|
|
148
157
|
version?: Maybe<Scalars['String']['output']>;
|
|
149
158
|
};
|
|
150
159
|
export type MutationCreateNlpInstanceArgs = {
|
|
151
160
|
input: CreateNlpInstanceInput;
|
|
152
161
|
};
|
|
162
|
+
export type MutationCreateQnAInstanceArgs = {
|
|
163
|
+
input: CreateQnAInstanceInput;
|
|
164
|
+
};
|
|
153
165
|
export type MutationRemoveNlpInstanceArgs = {
|
|
154
166
|
input: RemoveNlpInstanceInput;
|
|
155
167
|
};
|
|
168
|
+
export type MutationRemoveQnAInstanceArgs = {
|
|
169
|
+
input: RemoveQnAInstanceInput;
|
|
170
|
+
};
|
|
156
171
|
export type MutationUpdateNlpInstanceArgs = {
|
|
157
172
|
input: UpdateNlpInstanceInput;
|
|
158
173
|
};
|
|
174
|
+
export type MutationUpdateQnAInstanceArgs = {
|
|
175
|
+
input: UpdateQnAInstanceInput;
|
|
176
|
+
};
|
|
159
177
|
export type NlpInstance = {
|
|
160
178
|
createdAt: Scalars['DateTime']['output'];
|
|
161
179
|
id: Scalars['ID']['output'];
|
|
@@ -193,24 +211,47 @@ export type PageInfo = {
|
|
|
193
211
|
hasNext: Scalars['Boolean']['output'];
|
|
194
212
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
195
213
|
};
|
|
214
|
+
export type QnAInstance = {
|
|
215
|
+
createdAt: Scalars['DateTime']['output'];
|
|
216
|
+
id: Scalars['ID']['output'];
|
|
217
|
+
name: Scalars['String']['output'];
|
|
218
|
+
prompt: Scalars['String']['output'];
|
|
219
|
+
retrieverCredentialsId: Scalars['ID']['output'];
|
|
220
|
+
retrieverTenantId: Scalars['String']['output'];
|
|
221
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
222
|
+
};
|
|
196
223
|
export type Query = {
|
|
197
224
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
198
225
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
199
226
|
getNlpInstance?: Maybe<NlpInstance>;
|
|
227
|
+
getQnAInstance?: Maybe<QnAInstance>;
|
|
200
228
|
listNlpInstances: Array<NlpInstance>;
|
|
229
|
+
listQnAInstances: Array<QnAInstance>;
|
|
201
230
|
testNlpInstance?: Maybe<TestNlpInstanceResult>;
|
|
231
|
+
testQnAInstance?: Maybe<TestQnAInstanceResult>;
|
|
202
232
|
version?: Maybe<Scalars['String']['output']>;
|
|
203
233
|
};
|
|
204
234
|
export type QueryGetNlpInstanceArgs = {
|
|
205
235
|
id: Scalars['ID']['input'];
|
|
206
236
|
};
|
|
237
|
+
export type QueryGetQnAInstanceArgs = {
|
|
238
|
+
id: Scalars['ID']['input'];
|
|
239
|
+
};
|
|
207
240
|
export type QueryTestNlpInstanceArgs = {
|
|
208
241
|
id: Scalars['ID']['input'];
|
|
209
242
|
sample: Scalars['String']['input'];
|
|
210
243
|
};
|
|
244
|
+
export type QueryTestQnAInstanceArgs = {
|
|
245
|
+
history?: InputMaybe<Scalars['String']['input']>;
|
|
246
|
+
id: Scalars['ID']['input'];
|
|
247
|
+
input: Scalars['String']['input'];
|
|
248
|
+
};
|
|
211
249
|
export type RemoveNlpInstanceInput = {
|
|
212
250
|
id: Scalars['ID']['input'];
|
|
213
251
|
};
|
|
252
|
+
export type RemoveQnAInstanceInput = {
|
|
253
|
+
id: Scalars['ID']['input'];
|
|
254
|
+
};
|
|
214
255
|
export type SearchResultsFacet = {
|
|
215
256
|
name: Scalars['String']['output'];
|
|
216
257
|
stats?: Maybe<SearchResultsFacetStats>;
|
|
@@ -260,19 +301,39 @@ export type StringMatcherInput = {
|
|
|
260
301
|
};
|
|
261
302
|
export type TestNlpInstanceResult = {
|
|
262
303
|
confidence?: Maybe<Scalars['Float']['output']>;
|
|
304
|
+
sample?: Maybe<Scalars['String']['output']>;
|
|
263
305
|
transition?: Maybe<Scalars['VariableName']['output']>;
|
|
264
306
|
};
|
|
307
|
+
export type TestQnAInstanceContext = {
|
|
308
|
+
content: Scalars['String']['output'];
|
|
309
|
+
id: Scalars['ID']['output'];
|
|
310
|
+
title: Scalars['String']['output'];
|
|
311
|
+
url: Scalars['String']['output'];
|
|
312
|
+
};
|
|
313
|
+
export type TestQnAInstanceResult = {
|
|
314
|
+
answer?: Maybe<Scalars['String']['output']>;
|
|
315
|
+
context?: Maybe<Array<TestQnAInstanceContext>>;
|
|
316
|
+
};
|
|
265
317
|
export declare enum Typenames {
|
|
266
318
|
Any = "Any",
|
|
267
319
|
GraphqlConnections = "GraphqlConnections",
|
|
268
320
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
269
|
-
Nlp = "Nlp"
|
|
321
|
+
Nlp = "Nlp",
|
|
322
|
+
NlpEmbeddings = "NlpEmbeddings",
|
|
323
|
+
QnA = "QnA"
|
|
270
324
|
}
|
|
271
325
|
export type UpdateNlpInstanceInput = {
|
|
272
326
|
id: Scalars['ID']['input'];
|
|
273
327
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
274
328
|
options: Array<NlpOptionInput>;
|
|
275
329
|
};
|
|
330
|
+
export type UpdateQnAInstanceInput = {
|
|
331
|
+
id: Scalars['ID']['input'];
|
|
332
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
333
|
+
prompt?: InputMaybe<Scalars['String']['input']>;
|
|
334
|
+
retrieverCredentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
335
|
+
retrieverTenantId?: InputMaybe<Scalars['String']['input']>;
|
|
336
|
+
};
|
|
276
337
|
export type NlpInstanceFragment = (Pick<NlpInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
|
|
277
338
|
options: Array<Pick<NlpOption, 'transition' | 'samples'>>;
|
|
278
339
|
});
|
|
@@ -313,13 +374,61 @@ export type TestNlpInstanceQueryVariables = Exact<{
|
|
|
313
374
|
export type TestNlpInstanceQuery = {
|
|
314
375
|
testNlpInstance?: Maybe<Pick<TestNlpInstanceResult, 'transition' | 'confidence'>>;
|
|
315
376
|
};
|
|
377
|
+
export type QnaFragmentFragment = Pick<QnAInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
378
|
+
export type GetQnAInstanceQueryVariables = Exact<{
|
|
379
|
+
id: Scalars['ID']['input'];
|
|
380
|
+
}>;
|
|
381
|
+
export type GetQnAInstanceQuery = {
|
|
382
|
+
getQnAInstance?: Maybe<QnaFragmentFragment>;
|
|
383
|
+
};
|
|
384
|
+
export type ListQnAInstancesQueryVariables = Exact<{
|
|
385
|
+
[key: string]: never;
|
|
386
|
+
}>;
|
|
387
|
+
export type ListQnAInstancesQuery = {
|
|
388
|
+
listQnAInstances: Array<QnaFragmentFragment>;
|
|
389
|
+
};
|
|
390
|
+
export type TestQnAInstanceQueryVariables = Exact<{
|
|
391
|
+
id: Scalars['ID']['input'];
|
|
392
|
+
input: Scalars['String']['input'];
|
|
393
|
+
history?: InputMaybe<Scalars['String']['input']>;
|
|
394
|
+
}>;
|
|
395
|
+
export type TestQnAInstanceQuery = {
|
|
396
|
+
testQnAInstance?: Maybe<(Pick<TestQnAInstanceResult, 'answer'> & {
|
|
397
|
+
context?: Maybe<Array<Pick<TestQnAInstanceContext, 'id' | 'title' | 'url' | 'content'>>>;
|
|
398
|
+
})>;
|
|
399
|
+
};
|
|
400
|
+
export type CreateQnAInstanceMutationVariables = Exact<{
|
|
401
|
+
input: CreateQnAInstanceInput;
|
|
402
|
+
}>;
|
|
403
|
+
export type CreateQnAInstanceMutation = {
|
|
404
|
+
createQnAInstance?: Maybe<QnaFragmentFragment>;
|
|
405
|
+
};
|
|
406
|
+
export type UpdateQnAInstanceMutationVariables = Exact<{
|
|
407
|
+
input: UpdateQnAInstanceInput;
|
|
408
|
+
}>;
|
|
409
|
+
export type UpdateQnAInstanceMutation = {
|
|
410
|
+
updateQnAInstance?: Maybe<QnaFragmentFragment>;
|
|
411
|
+
};
|
|
412
|
+
export type RemoveQnAInstanceMutationVariables = Exact<{
|
|
413
|
+
input: RemoveQnAInstanceInput;
|
|
414
|
+
}>;
|
|
415
|
+
export type RemoveQnAInstanceMutation = {
|
|
416
|
+
removeQnAInstance?: Maybe<QnaFragmentFragment>;
|
|
417
|
+
};
|
|
316
418
|
export declare const NlpInstanceFragmentDoc = "\n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
419
|
+
export declare const QnaFragmentFragmentDoc = "\n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
317
420
|
export declare const GetNlpInstanceDocument = "\n query getNlpInstance($id: ID!) {\n getNlpInstance(id: $id) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
318
421
|
export declare const ListNlpInstancesDocument = "\n query listNlpInstances {\n listNlpInstances {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
319
422
|
export declare const CreateNlpInstanceDocument = "\n mutation createNlpInstance($input: CreateNlpInstanceInput!) {\n createNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
320
423
|
export declare const UpdateNlpInstanceDocument = "\n mutation updateNlpInstance($input: UpdateNlpInstanceInput!) {\n updateNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
321
424
|
export declare const RemoveNlpInstanceDocument = "\n mutation removeNlpInstance($input: RemoveNlpInstanceInput!) {\n removeNlpInstance(input: $input) {\n ...nlpInstance\n }\n}\n \n fragment nlpInstance on NlpInstance {\n id\n name\n options {\n transition\n samples\n }\n createdAt\n updatedAt\n}\n ";
|
|
322
425
|
export declare const TestNlpInstanceDocument = "\n query testNlpInstance($id: ID!, $sample: String!) {\n testNlpInstance(id: $id, sample: $sample) {\n transition\n confidence\n }\n}\n ";
|
|
426
|
+
export declare const GetQnAInstanceDocument = "\n query getQnAInstance($id: ID!) {\n getQnAInstance(id: $id) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
427
|
+
export declare const ListQnAInstancesDocument = "\n query listQnAInstances {\n listQnAInstances {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
428
|
+
export declare const TestQnAInstanceDocument = "\n query testQnAInstance($id: ID!, $input: String!, $history: String) {\n testQnAInstance(id: $id, input: $input, history: $history) {\n answer\n context {\n id\n title\n url\n content\n }\n }\n}\n ";
|
|
429
|
+
export declare const CreateQnAInstanceDocument = "\n mutation createQnAInstance($input: CreateQnAInstanceInput!) {\n createQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
430
|
+
export declare const UpdateQnAInstanceDocument = "\n mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {\n updateQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
431
|
+
export declare const RemoveQnAInstanceDocument = "\n mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {\n removeQnAInstance(input: $input) {\n ...qnaFragment\n }\n}\n \n fragment qnaFragment on QnAInstance {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
323
432
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
324
433
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
325
434
|
getNlpInstance(variables: GetNlpInstanceQueryVariables, options?: C): Promise<GetNlpInstanceQuery>;
|
|
@@ -328,6 +437,12 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
328
437
|
updateNlpInstance(variables: UpdateNlpInstanceMutationVariables, options?: C): Promise<UpdateNlpInstanceMutation>;
|
|
329
438
|
removeNlpInstance(variables: RemoveNlpInstanceMutationVariables, options?: C): Promise<RemoveNlpInstanceMutation>;
|
|
330
439
|
testNlpInstance(variables: TestNlpInstanceQueryVariables, options?: C): Promise<TestNlpInstanceQuery>;
|
|
440
|
+
getQnAInstance(variables: GetQnAInstanceQueryVariables, options?: C): Promise<GetQnAInstanceQuery>;
|
|
441
|
+
listQnAInstances(variables?: ListQnAInstancesQueryVariables, options?: C): Promise<ListQnAInstancesQuery>;
|
|
442
|
+
testQnAInstance(variables: TestQnAInstanceQueryVariables, options?: C): Promise<TestQnAInstanceQuery>;
|
|
443
|
+
createQnAInstance(variables: CreateQnAInstanceMutationVariables, options?: C): Promise<CreateQnAInstanceMutation>;
|
|
444
|
+
updateQnAInstance(variables: UpdateQnAInstanceMutationVariables, options?: C): Promise<UpdateQnAInstanceMutation>;
|
|
445
|
+
removeQnAInstance(variables: RemoveQnAInstanceMutationVariables, options?: C): Promise<RemoveQnAInstanceMutation>;
|
|
331
446
|
};
|
|
332
447
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
333
448
|
export declare const serviceName = "@droz/ai";
|
package/src/sdks/ai.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.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.NlpInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveQnAInstanceDocument = exports.UpdateQnAInstanceDocument = exports.CreateQnAInstanceDocument = exports.TestQnAInstanceDocument = exports.ListQnAInstancesDocument = exports.GetQnAInstanceDocument = exports.TestNlpInstanceDocument = exports.RemoveNlpInstanceDocument = exports.UpdateNlpInstanceDocument = exports.CreateNlpInstanceDocument = exports.ListNlpInstancesDocument = exports.GetNlpInstanceDocument = exports.QnaFragmentFragmentDoc = exports.NlpInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -21,6 +21,8 @@ var Typenames;
|
|
|
21
21
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
22
22
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
23
23
|
Typenames["Nlp"] = "Nlp";
|
|
24
|
+
Typenames["NlpEmbeddings"] = "NlpEmbeddings";
|
|
25
|
+
Typenames["QnA"] = "QnA";
|
|
24
26
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
25
27
|
exports.NlpInstanceFragmentDoc = `
|
|
26
28
|
fragment nlpInstance on NlpInstance {
|
|
@@ -34,6 +36,14 @@ exports.NlpInstanceFragmentDoc = `
|
|
|
34
36
|
updatedAt
|
|
35
37
|
}
|
|
36
38
|
`;
|
|
39
|
+
exports.QnaFragmentFragmentDoc = `
|
|
40
|
+
fragment qnaFragment on QnAInstance {
|
|
41
|
+
id
|
|
42
|
+
name
|
|
43
|
+
createdAt
|
|
44
|
+
updatedAt
|
|
45
|
+
}
|
|
46
|
+
`;
|
|
37
47
|
exports.GetNlpInstanceDocument = `
|
|
38
48
|
query getNlpInstance($id: ID!) {
|
|
39
49
|
getNlpInstance(id: $id) {
|
|
@@ -77,6 +87,54 @@ exports.TestNlpInstanceDocument = `
|
|
|
77
87
|
}
|
|
78
88
|
}
|
|
79
89
|
`;
|
|
90
|
+
exports.GetQnAInstanceDocument = `
|
|
91
|
+
query getQnAInstance($id: ID!) {
|
|
92
|
+
getQnAInstance(id: $id) {
|
|
93
|
+
...qnaFragment
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
${exports.QnaFragmentFragmentDoc}`;
|
|
97
|
+
exports.ListQnAInstancesDocument = `
|
|
98
|
+
query listQnAInstances {
|
|
99
|
+
listQnAInstances {
|
|
100
|
+
...qnaFragment
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
${exports.QnaFragmentFragmentDoc}`;
|
|
104
|
+
exports.TestQnAInstanceDocument = `
|
|
105
|
+
query testQnAInstance($id: ID!, $input: String!, $history: String) {
|
|
106
|
+
testQnAInstance(id: $id, input: $input, history: $history) {
|
|
107
|
+
answer
|
|
108
|
+
context {
|
|
109
|
+
id
|
|
110
|
+
title
|
|
111
|
+
url
|
|
112
|
+
content
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
`;
|
|
117
|
+
exports.CreateQnAInstanceDocument = `
|
|
118
|
+
mutation createQnAInstance($input: CreateQnAInstanceInput!) {
|
|
119
|
+
createQnAInstance(input: $input) {
|
|
120
|
+
...qnaFragment
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
${exports.QnaFragmentFragmentDoc}`;
|
|
124
|
+
exports.UpdateQnAInstanceDocument = `
|
|
125
|
+
mutation updateQnAInstance($input: UpdateQnAInstanceInput!) {
|
|
126
|
+
updateQnAInstance(input: $input) {
|
|
127
|
+
...qnaFragment
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
${exports.QnaFragmentFragmentDoc}`;
|
|
131
|
+
exports.RemoveQnAInstanceDocument = `
|
|
132
|
+
mutation removeQnAInstance($input: RemoveQnAInstanceInput!) {
|
|
133
|
+
removeQnAInstance(input: $input) {
|
|
134
|
+
...qnaFragment
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
${exports.QnaFragmentFragmentDoc}`;
|
|
80
138
|
function getSdk(requester) {
|
|
81
139
|
return {
|
|
82
140
|
getNlpInstance(variables, options) {
|
|
@@ -96,6 +154,24 @@ function getSdk(requester) {
|
|
|
96
154
|
},
|
|
97
155
|
testNlpInstance(variables, options) {
|
|
98
156
|
return requester(exports.TestNlpInstanceDocument, variables, options);
|
|
157
|
+
},
|
|
158
|
+
getQnAInstance(variables, options) {
|
|
159
|
+
return requester(exports.GetQnAInstanceDocument, variables, options);
|
|
160
|
+
},
|
|
161
|
+
listQnAInstances(variables, options) {
|
|
162
|
+
return requester(exports.ListQnAInstancesDocument, variables, options);
|
|
163
|
+
},
|
|
164
|
+
testQnAInstance(variables, options) {
|
|
165
|
+
return requester(exports.TestQnAInstanceDocument, variables, options);
|
|
166
|
+
},
|
|
167
|
+
createQnAInstance(variables, options) {
|
|
168
|
+
return requester(exports.CreateQnAInstanceDocument, variables, options);
|
|
169
|
+
},
|
|
170
|
+
updateQnAInstance(variables, options) {
|
|
171
|
+
return requester(exports.UpdateQnAInstanceDocument, variables, options);
|
|
172
|
+
},
|
|
173
|
+
removeQnAInstance(variables, options) {
|
|
174
|
+
return requester(exports.RemoveQnAInstanceDocument, variables, options);
|
|
99
175
|
}
|
|
100
176
|
};
|
|
101
177
|
}
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -534,6 +534,7 @@ export type TicketSearchFilterInput = {
|
|
|
534
534
|
assigneeId?: InputMaybe<StringMatcherInput>;
|
|
535
535
|
channelId?: InputMaybe<StringMatcherInput>;
|
|
536
536
|
createdAt?: InputMaybe<NumberMatcherInput>;
|
|
537
|
+
customerId?: InputMaybe<StringMatcherInput>;
|
|
537
538
|
priority?: InputMaybe<StringMatcherInput>;
|
|
538
539
|
state?: InputMaybe<StringMatcherInput>;
|
|
539
540
|
status?: InputMaybe<StringMatcherInput>;
|
|
@@ -139,9 +139,13 @@ export type AwsAccount = {
|
|
|
139
139
|
tenantsCount: Scalars['Int']['output'];
|
|
140
140
|
};
|
|
141
141
|
export type AwsAccountParameters = {
|
|
142
|
+
mercadoLivreClientId?: Maybe<Scalars['String']['output']>;
|
|
143
|
+
mercadoLivreClientSecret?: Maybe<Scalars['String']['output']>;
|
|
142
144
|
metaAppId?: Maybe<Scalars['String']['output']>;
|
|
143
145
|
metaClientSecret?: Maybe<Scalars['String']['output']>;
|
|
144
146
|
metaConfigurationId?: Maybe<Scalars['String']['output']>;
|
|
147
|
+
metaSystemUserId?: Maybe<Scalars['String']['output']>;
|
|
148
|
+
metaSystemUserToken?: Maybe<Scalars['String']['output']>;
|
|
145
149
|
metaWebhookVerificationToken?: Maybe<Scalars['String']['output']>;
|
|
146
150
|
openAIApiKey?: Maybe<Scalars['String']['output']>;
|
|
147
151
|
typesenseApiKey?: Maybe<Scalars['String']['output']>;
|
|
@@ -171,7 +175,7 @@ export type CreateTenantInput = {
|
|
|
171
175
|
billing?: InputMaybe<TenantBillingInput>;
|
|
172
176
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
173
177
|
region?: InputMaybe<Scalars['String']['input']>;
|
|
174
|
-
tenantId: Scalars['
|
|
178
|
+
tenantId: Scalars['Tag']['input'];
|
|
175
179
|
};
|
|
176
180
|
export type DeployInput = {
|
|
177
181
|
branch: Scalars['String']['input'];
|
|
@@ -314,7 +318,7 @@ export type QueryGetDeploymentArgs = {
|
|
|
314
318
|
tenantId: Scalars['ID']['input'];
|
|
315
319
|
};
|
|
316
320
|
export type QueryGetTenantArgs = {
|
|
317
|
-
tenantId: Scalars['
|
|
321
|
+
tenantId: Scalars['Tag']['input'];
|
|
318
322
|
};
|
|
319
323
|
export type QueryListDeploymentsArgs = {
|
|
320
324
|
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -336,7 +340,7 @@ export type Region = {
|
|
|
336
340
|
name: Scalars['String']['output'];
|
|
337
341
|
};
|
|
338
342
|
export type RemoveTenantInput = {
|
|
339
|
-
tenantId: Scalars['
|
|
343
|
+
tenantId: Scalars['Tag']['input'];
|
|
340
344
|
};
|
|
341
345
|
export type SearchResultsFacet = {
|
|
342
346
|
name: Scalars['String']['output'];
|
|
@@ -403,7 +407,7 @@ export type Tenant = {
|
|
|
403
407
|
name?: Maybe<Scalars['String']['output']>;
|
|
404
408
|
region: Scalars['String']['output'];
|
|
405
409
|
services: Array<Maybe<Service>>;
|
|
406
|
-
tenantId: Scalars['
|
|
410
|
+
tenantId: Scalars['Tag']['output'];
|
|
407
411
|
updatedAt: Scalars['DateTime']['output'];
|
|
408
412
|
};
|
|
409
413
|
export type TenantBillingInput = {
|
|
@@ -416,9 +420,13 @@ export declare enum Typenames {
|
|
|
416
420
|
}
|
|
417
421
|
export type UpdateAccountParametersInput = {
|
|
418
422
|
id: Scalars['ID']['input'];
|
|
423
|
+
mercadoLivreClientId?: InputMaybe<Scalars['String']['input']>;
|
|
424
|
+
mercadoLivreClientSecret?: InputMaybe<Scalars['String']['input']>;
|
|
419
425
|
metaAppId?: InputMaybe<Scalars['String']['input']>;
|
|
420
426
|
metaClientSecret?: InputMaybe<Scalars['String']['input']>;
|
|
421
427
|
metaConfigurationId?: InputMaybe<Scalars['String']['input']>;
|
|
428
|
+
metaSystemUserId?: InputMaybe<Scalars['String']['input']>;
|
|
429
|
+
metaSystemUserToken?: InputMaybe<Scalars['String']['input']>;
|
|
422
430
|
metaWebhookVerificationToken?: InputMaybe<Scalars['String']['input']>;
|
|
423
431
|
openAIApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
424
432
|
typesenseApiKey?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -427,11 +435,11 @@ export type UpdateAccountParametersInput = {
|
|
|
427
435
|
export type UpdateTenantInput = {
|
|
428
436
|
billing?: InputMaybe<TenantBillingInput>;
|
|
429
437
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
430
|
-
tenantId: Scalars['
|
|
438
|
+
tenantId: Scalars['Tag']['input'];
|
|
431
439
|
};
|
|
432
440
|
export type AwsAccountFragment = (Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'> & {
|
|
433
441
|
availableRegions: Array<RegionFragment>;
|
|
434
|
-
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken'>;
|
|
442
|
+
parameters: Pick<AwsAccountParameters, 'typesenseNodes' | 'typesenseApiKey' | 'openAIApiKey' | 'metaAppId' | 'metaClientSecret' | 'metaConfigurationId' | 'metaWebhookVerificationToken' | 'metaSystemUserId' | 'metaSystemUserToken' | 'mercadoLivreClientId' | 'mercadoLivreClientSecret'>;
|
|
435
443
|
});
|
|
436
444
|
export type RegionFragment = Pick<Region, 'name'>;
|
|
437
445
|
export type ListAccountsQueryVariables = Exact<{
|
|
@@ -538,7 +546,7 @@ export type TenantFragment = (Pick<Tenant, 'accountId' | 'tenantId' | 'name' | '
|
|
|
538
546
|
account: Pick<AwsAccount, 'id' | 'name'>;
|
|
539
547
|
});
|
|
540
548
|
export type GetTenantQueryVariables = Exact<{
|
|
541
|
-
tenantId: Scalars['
|
|
549
|
+
tenantId: Scalars['Tag']['input'];
|
|
542
550
|
withServices?: InputMaybe<Scalars['Boolean']['input']>;
|
|
543
551
|
withDeployments?: InputMaybe<Scalars['Boolean']['input']>;
|
|
544
552
|
}>;
|
|
@@ -577,15 +585,15 @@ export type RemoveTenantMutation = {
|
|
|
577
585
|
removeTenant: TenantFragment;
|
|
578
586
|
};
|
|
579
587
|
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
580
|
-
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n ";
|
|
588
|
+
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\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 ";
|
|
581
589
|
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 ";
|
|
582
590
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
583
591
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n ";
|
|
584
592
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
585
593
|
export declare const TenantFragmentDoc = "\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 }\n account {\n id\n name\n }\n}\n ";
|
|
586
|
-
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
594
|
+
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\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 \n\n fragment region on Region {\n name\n}\n ";
|
|
587
595
|
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
588
|
-
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\n typesenseNodes\n typesenseApiKey\n openAIApiKey\n metaAppId\n metaClientSecret\n metaConfigurationId\n metaWebhookVerificationToken\n }\n}\n \n\n fragment region on Region {\n name\n}\n ";
|
|
596
|
+
export declare const UpdateAccountParametersDocument = "\n mutation updateAccountParameters($input: UpdateAccountParametersInput!) {\n updateAccountParameters(input: $input) {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n availableRegions {\n ...region\n }\n parameters {\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 \n\n fragment region on Region {\n name\n}\n ";
|
|
589
597
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
590
598
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
591
599
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
@@ -597,7 +605,7 @@ export declare const DeployDocument = "\n mutation deploy($input: DeployInput
|
|
|
597
605
|
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 ";
|
|
598
606
|
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 ";
|
|
599
607
|
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 ";
|
|
600
|
-
export declare const GetTenantDocument = "\n query getTenant($tenantId:
|
|
608
|
+
export declare const GetTenantDocument = "\n query getTenant($tenantId: Tag!, $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 }\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 ";
|
|
601
609
|
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 }\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 ";
|
|
602
610
|
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 }\n account {\n id\n name\n }\n}\n ";
|
|
603
611
|
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 }\n account {\n id\n name\n }\n}\n ";
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -54,6 +54,10 @@ exports.AwsAccountFragmentDoc = `
|
|
|
54
54
|
metaClientSecret
|
|
55
55
|
metaConfigurationId
|
|
56
56
|
metaWebhookVerificationToken
|
|
57
|
+
metaSystemUserId
|
|
58
|
+
metaSystemUserToken
|
|
59
|
+
mercadoLivreClientId
|
|
60
|
+
mercadoLivreClientSecret
|
|
57
61
|
}
|
|
58
62
|
}
|
|
59
63
|
`;
|
|
@@ -231,7 +235,7 @@ exports.ListServicesDocument = `
|
|
|
231
235
|
}
|
|
232
236
|
${exports.ServiceFragmentDoc}`;
|
|
233
237
|
exports.GetTenantDocument = `
|
|
234
|
-
query getTenant($tenantId:
|
|
238
|
+
query getTenant($tenantId: Tag!, $withServices: Boolean = true, $withDeployments: Boolean = true) {
|
|
235
239
|
getTenant(tenantId: $tenantId) {
|
|
236
240
|
...tenant
|
|
237
241
|
services @include(if: $withServices) {
|
package/src/sdks/logger.d.ts
CHANGED
|
@@ -171,6 +171,10 @@ export type NumberMatcherInput = {
|
|
|
171
171
|
lte?: InputMaybe<Scalars['Number']['input']>;
|
|
172
172
|
ne?: InputMaybe<Scalars['Number']['input']>;
|
|
173
173
|
};
|
|
174
|
+
export declare enum Order {
|
|
175
|
+
Asc = "ASC",
|
|
176
|
+
Desc = "DESC"
|
|
177
|
+
}
|
|
174
178
|
export type PageInfo = {
|
|
175
179
|
hasNext: Scalars['Boolean']['output'];
|
|
176
180
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
@@ -178,12 +182,20 @@ export type PageInfo = {
|
|
|
178
182
|
export type Query = {
|
|
179
183
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
180
184
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
185
|
+
getLastMessage?: Maybe<Message>;
|
|
181
186
|
listMessages: MessageConnection;
|
|
182
187
|
version?: Maybe<Scalars['String']['output']>;
|
|
183
188
|
};
|
|
189
|
+
export type QueryGetLastMessageArgs = {
|
|
190
|
+
sessionId: Scalars['ID']['input'];
|
|
191
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
192
|
+
};
|
|
184
193
|
export type QueryListMessagesArgs = {
|
|
194
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
185
195
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
196
|
+
order?: InputMaybe<Order>;
|
|
186
197
|
sessionId: Scalars['ID']['input'];
|
|
198
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
187
199
|
};
|
|
188
200
|
export type SearchResultsFacet = {
|
|
189
201
|
name: Scalars['String']['output'];
|
|
@@ -237,19 +249,33 @@ export declare enum Typenames {
|
|
|
237
249
|
GraphqlConnections = "GraphqlConnections",
|
|
238
250
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
239
251
|
}
|
|
252
|
+
export type MessageFragment = Pick<Message, 'sessionId' | 'messageId' | 'type' | 'session' | 'sender' | 'recipient' | 'payload'>;
|
|
253
|
+
export type GetLastMessageQueryVariables = Exact<{
|
|
254
|
+
sessionId: Scalars['ID']['input'];
|
|
255
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
256
|
+
}>;
|
|
257
|
+
export type GetLastMessageQuery = {
|
|
258
|
+
getLastMessage?: Maybe<MessageFragment>;
|
|
259
|
+
};
|
|
240
260
|
export type ListMessagesQueryVariables = Exact<{
|
|
241
261
|
sessionId: Scalars['ID']['input'];
|
|
262
|
+
type?: InputMaybe<Scalars['String']['input']>;
|
|
263
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
264
|
+
order?: InputMaybe<Order>;
|
|
242
265
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
243
266
|
}>;
|
|
244
267
|
export type ListMessagesQuery = {
|
|
245
268
|
listMessages: {
|
|
246
|
-
nodes: Array<
|
|
269
|
+
nodes: Array<MessageFragment>;
|
|
247
270
|
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
248
271
|
};
|
|
249
272
|
};
|
|
250
|
-
export declare const
|
|
273
|
+
export declare const MessageFragmentDoc = "\n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
274
|
+
export declare const GetLastMessageDocument = "\n query getLastMessage($sessionId: ID!, $type: String) {\n getLastMessage(sessionId: $sessionId, type: $type) {\n ...message\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
275
|
+
export declare const ListMessagesDocument = "\n query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64) {\n listMessages(\n sessionId: $sessionId\n type: $type\n limit: $limit\n order: $order\n next: $next\n ) {\n nodes {\n ...message\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment message on Message {\n sessionId\n messageId\n type\n session\n sender\n recipient\n payload\n}\n ";
|
|
251
276
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
252
277
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
278
|
+
getLastMessage(variables: GetLastMessageQueryVariables, options?: C): Promise<GetLastMessageQuery>;
|
|
253
279
|
listMessages(variables: ListMessagesQueryVariables, options?: C): Promise<ListMessagesQuery>;
|
|
254
280
|
};
|
|
255
281
|
export type Sdk = ReturnType<typeof getSdk>;
|
package/src/sdks/logger.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.ListMessagesDocument = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.ListMessagesDocument = exports.GetLastMessageDocument = exports.MessageFragmentDoc = exports.Typenames = exports.Order = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -15,23 +15,46 @@ var Can;
|
|
|
15
15
|
Can["Remove"] = "remove";
|
|
16
16
|
Can["Write"] = "write";
|
|
17
17
|
})(Can || (exports.Can = Can = {}));
|
|
18
|
+
var Order;
|
|
19
|
+
(function (Order) {
|
|
20
|
+
Order["Asc"] = "ASC";
|
|
21
|
+
Order["Desc"] = "DESC";
|
|
22
|
+
})(Order || (exports.Order = Order = {}));
|
|
18
23
|
var Typenames;
|
|
19
24
|
(function (Typenames) {
|
|
20
25
|
Typenames["Any"] = "Any";
|
|
21
26
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
22
27
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
23
28
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
29
|
+
exports.MessageFragmentDoc = `
|
|
30
|
+
fragment message on Message {
|
|
31
|
+
sessionId
|
|
32
|
+
messageId
|
|
33
|
+
type
|
|
34
|
+
session
|
|
35
|
+
sender
|
|
36
|
+
recipient
|
|
37
|
+
payload
|
|
38
|
+
}
|
|
39
|
+
`;
|
|
40
|
+
exports.GetLastMessageDocument = `
|
|
41
|
+
query getLastMessage($sessionId: ID!, $type: String) {
|
|
42
|
+
getLastMessage(sessionId: $sessionId, type: $type) {
|
|
43
|
+
...message
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
${exports.MessageFragmentDoc}`;
|
|
24
47
|
exports.ListMessagesDocument = `
|
|
25
|
-
query listMessages($sessionId: ID!, $next: Base64) {
|
|
26
|
-
listMessages(
|
|
48
|
+
query listMessages($sessionId: ID!, $type: String, $limit: Int, $order: Order, $next: Base64) {
|
|
49
|
+
listMessages(
|
|
50
|
+
sessionId: $sessionId
|
|
51
|
+
type: $type
|
|
52
|
+
limit: $limit
|
|
53
|
+
order: $order
|
|
54
|
+
next: $next
|
|
55
|
+
) {
|
|
27
56
|
nodes {
|
|
28
|
-
|
|
29
|
-
messageId
|
|
30
|
-
type
|
|
31
|
-
session
|
|
32
|
-
sender
|
|
33
|
-
recipient
|
|
34
|
-
payload
|
|
57
|
+
...message
|
|
35
58
|
}
|
|
36
59
|
pageInfo {
|
|
37
60
|
hasNext
|
|
@@ -39,9 +62,12 @@ exports.ListMessagesDocument = `
|
|
|
39
62
|
}
|
|
40
63
|
}
|
|
41
64
|
}
|
|
42
|
-
`;
|
|
65
|
+
${exports.MessageFragmentDoc}`;
|
|
43
66
|
function getSdk(requester) {
|
|
44
67
|
return {
|
|
68
|
+
getLastMessage(variables, options) {
|
|
69
|
+
return requester(exports.GetLastMessageDocument, variables, options);
|
|
70
|
+
},
|
|
45
71
|
listMessages(variables, options) {
|
|
46
72
|
return requester(exports.ListMessagesDocument, variables, options);
|
|
47
73
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export type Agent = {
|
|
|
135
135
|
id: Scalars['ID']['output'];
|
|
136
136
|
name: Scalars['String']['output'];
|
|
137
137
|
picture?: Maybe<Scalars['String']['output']>;
|
|
138
|
+
removed?: Maybe<Scalars['Boolean']['output']>;
|
|
138
139
|
roles?: Maybe<Scalars['Set']['output']>;
|
|
139
140
|
systemAgent?: Maybe<Scalars['Boolean']['output']>;
|
|
140
141
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -285,10 +286,11 @@ export type CreateStateMachineConfigWithStateInput = {
|
|
|
285
286
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
286
287
|
stateId: Scalars['ID']['input'];
|
|
287
288
|
};
|
|
288
|
-
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | MetaCredentialsType | OAuth2CredentialsType;
|
|
289
|
+
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | MercadoLivreCredentialsType | MetaCredentialsType | OAuth2CredentialsType;
|
|
289
290
|
export declare enum CredentialsType {
|
|
290
291
|
ApiKey = "ApiKey",
|
|
291
292
|
Basic = "Basic",
|
|
293
|
+
Mercadolivre = "Mercadolivre",
|
|
292
294
|
Meta = "Meta",
|
|
293
295
|
OAuth2 = "OAuth2"
|
|
294
296
|
}
|
|
@@ -361,13 +363,30 @@ export type ICredentials = {
|
|
|
361
363
|
type: CredentialsType;
|
|
362
364
|
updatedAt: Scalars['DateTime']['output'];
|
|
363
365
|
};
|
|
366
|
+
export type MercadoLivreAuthInfo = {
|
|
367
|
+
authUrl: Scalars['String']['output'];
|
|
368
|
+
};
|
|
369
|
+
export type MercadoLivreCredentials = {
|
|
370
|
+
code: Scalars['String']['output'];
|
|
371
|
+
};
|
|
372
|
+
export type MercadoLivreCredentialsType = ICredentials & {
|
|
373
|
+
createdAt: Scalars['DateTime']['output'];
|
|
374
|
+
credentials: MercadoLivreCredentials;
|
|
375
|
+
description: Scalars['String']['output'];
|
|
376
|
+
id: Scalars['ID']['output'];
|
|
377
|
+
systemCredentials?: Maybe<Scalars['Boolean']['output']>;
|
|
378
|
+
type: CredentialsType;
|
|
379
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
380
|
+
};
|
|
364
381
|
export type MetaAuthInfo = {
|
|
382
|
+
configurationId: Scalars['String']['output'];
|
|
365
383
|
metaAppId: Scalars['String']['output'];
|
|
366
384
|
scope: Scalars['String']['output'];
|
|
367
385
|
};
|
|
368
386
|
export type MetaCredentials = {
|
|
369
387
|
accessToken: Scalars['String']['output'];
|
|
370
388
|
code: Scalars['String']['output'];
|
|
389
|
+
wabaId: Scalars['String']['output'];
|
|
371
390
|
};
|
|
372
391
|
export type MetaCredentialsType = ICredentials & {
|
|
373
392
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -598,6 +617,7 @@ export type Query = {
|
|
|
598
617
|
getCustomer?: Maybe<Customer>;
|
|
599
618
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
600
619
|
getMe?: Maybe<Agent>;
|
|
620
|
+
getMercadoLivreAuthInfo: MercadoLivreAuthInfo;
|
|
601
621
|
getMetaAuthInfo: MetaAuthInfo;
|
|
602
622
|
getSession?: Maybe<Session>;
|
|
603
623
|
getSessionSchema: Array<AppSessionSchemaFields>;
|
|
@@ -972,7 +992,7 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
972
992
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
973
993
|
stateId: Scalars['ID']['input'];
|
|
974
994
|
};
|
|
975
|
-
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'systemAgent' | 'createdAt' | 'updatedAt'>;
|
|
995
|
+
export type AgentFragment = Pick<Agent, 'id' | 'name' | 'email' | 'emailVerified' | 'picture' | 'apps' | 'roles' | 'cognitoUserStatus' | 'systemAgent' | 'removed' | 'createdAt' | 'updatedAt'>;
|
|
976
996
|
export type ApiKeyFragment = (Pick<ApiKeyAgent, 'email' | 'password' | 'token'> & {
|
|
977
997
|
user: AgentFragment;
|
|
978
998
|
});
|
|
@@ -1151,13 +1171,16 @@ type CredentialsWithSecret_ApiKeyCredentialsType_Fragment = (Pick<ApiKeyCredenti
|
|
|
1151
1171
|
type CredentialsWithSecret_BasicCredentialsType_Fragment = (Pick<BasicCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1152
1172
|
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
1153
1173
|
});
|
|
1174
|
+
type CredentialsWithSecret_MercadoLivreCredentialsType_Fragment = (Pick<MercadoLivreCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1175
|
+
credentials: Pick<MercadoLivreCredentials, 'code'>;
|
|
1176
|
+
});
|
|
1154
1177
|
type CredentialsWithSecret_MetaCredentialsType_Fragment = (Pick<MetaCredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1155
|
-
credentials: Pick<MetaCredentials, 'code' | 'accessToken'>;
|
|
1178
|
+
credentials: Pick<MetaCredentials, 'code' | 'accessToken' | 'wabaId'>;
|
|
1156
1179
|
});
|
|
1157
1180
|
type CredentialsWithSecret_OAuth2CredentialsType_Fragment = (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description' | 'systemCredentials' | 'createdAt' | 'updatedAt'> & {
|
|
1158
1181
|
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
1159
1182
|
});
|
|
1160
|
-
export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
|
|
1183
|
+
export type CredentialsWithSecretFragment = CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MercadoLivreCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment;
|
|
1161
1184
|
export type GetCredentialsQueryVariables = Exact<{
|
|
1162
1185
|
id: Scalars['ID']['input'];
|
|
1163
1186
|
}>;
|
|
@@ -1168,7 +1191,13 @@ export type GetCredentialsSecretQueryVariables = Exact<{
|
|
|
1168
1191
|
id: Scalars['ID']['input'];
|
|
1169
1192
|
}>;
|
|
1170
1193
|
export type GetCredentialsSecretQuery = {
|
|
1171
|
-
getCredentialsSecret?: Maybe<CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment>;
|
|
1194
|
+
getCredentialsSecret?: Maybe<CredentialsWithSecret_ApiKeyCredentialsType_Fragment | CredentialsWithSecret_BasicCredentialsType_Fragment | CredentialsWithSecret_MercadoLivreCredentialsType_Fragment | CredentialsWithSecret_MetaCredentialsType_Fragment | CredentialsWithSecret_OAuth2CredentialsType_Fragment>;
|
|
1195
|
+
};
|
|
1196
|
+
export type GetMetaAuthInfoQueryVariables = Exact<{
|
|
1197
|
+
[key: string]: never;
|
|
1198
|
+
}>;
|
|
1199
|
+
export type GetMetaAuthInfoQuery = {
|
|
1200
|
+
getMetaAuthInfo: Pick<MetaAuthInfo, 'configurationId' | 'metaAppId' | 'scope'>;
|
|
1172
1201
|
};
|
|
1173
1202
|
export type ListCredentialsQueryVariables = Exact<{
|
|
1174
1203
|
type?: InputMaybe<CredentialsType>;
|
|
@@ -1180,6 +1209,12 @@ export type CountCredentialsQueryVariables = Exact<{
|
|
|
1180
1209
|
[key: string]: never;
|
|
1181
1210
|
}>;
|
|
1182
1211
|
export type CountCredentialsQuery = Pick<Query, 'countCredentials'>;
|
|
1212
|
+
export type GetMercadoLivreAuthInfoQueryVariables = Exact<{
|
|
1213
|
+
[key: string]: never;
|
|
1214
|
+
}>;
|
|
1215
|
+
export type GetMercadoLivreAuthInfoQuery = {
|
|
1216
|
+
getMercadoLivreAuthInfo: Pick<MercadoLivreAuthInfo, 'authUrl'>;
|
|
1217
|
+
};
|
|
1183
1218
|
export type CreateCredentialsMutationVariables = Exact<{
|
|
1184
1219
|
input: CreateCredentialsInput;
|
|
1185
1220
|
}>;
|
|
@@ -1450,13 +1485,13 @@ export type CreatePresignedUploadUrlMutationVariables = Exact<{
|
|
|
1450
1485
|
export type CreatePresignedUploadUrlMutation = {
|
|
1451
1486
|
createPresignedUploadUrl: Pick<CreatePresignedUploadUrl, 'method' | 'url' | 'fields' | 'cdnUrl'>;
|
|
1452
1487
|
};
|
|
1453
|
-
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n emailVerified\n picture\n apps\n roles\n cognitoUserStatus\n systemAgent\n createdAt\n updatedAt\n}\n ";
|
|
1488
|
+
export declare const AgentFragmentDoc = "\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 ";
|
|
1454
1489
|
export declare const ApiKeyFragmentDoc = "\n fragment apiKey on ApiKeyAgent {\n email\n password\n token\n user {\n ...agent\n }\n}\n ";
|
|
1455
1490
|
export declare const AppFragmentDoc = "\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 ";
|
|
1456
1491
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1457
1492
|
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
1458
1493
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1459
|
-
export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n }\n }\n}\n ";
|
|
1494
|
+
export declare const CredentialsWithSecretFragmentDoc = "\n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n credentials {\n code\n }\n }\n}\n ";
|
|
1460
1495
|
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1461
1496
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
1462
1497
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
@@ -1468,20 +1503,20 @@ export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateM
|
|
|
1468
1503
|
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n createdAt\n updatedAt\n}\n ";
|
|
1469
1504
|
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n ";
|
|
1470
1505
|
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 ";
|
|
1471
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1472
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1473
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1474
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1475
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1476
|
-
export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(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 createdAt\n updatedAt\n}\n ";
|
|
1477
|
-
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(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 createdAt\n updatedAt\n}\n ";
|
|
1478
|
-
export declare const CreateApiKeyAgentDocument = "\n mutation createApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createApiKeyAgent(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 createdAt\n updatedAt\n}\n ";
|
|
1479
|
-
export declare const CreateSystemApiKeyAgentDocument = "\n mutation createSystemApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createSystemApiKeyAgent(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 createdAt\n updatedAt\n}\n ";
|
|
1480
|
-
export declare const UpdateAgentDocument = "\n mutation updateAgent($input: UpdateAgentInput!) {\n updateAgent(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 createdAt\n updatedAt\n}\n ";
|
|
1481
|
-
export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(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 createdAt\n updatedAt\n}\n ";
|
|
1482
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1483
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1484
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
1506
|
+
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 ";
|
|
1507
|
+
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 ";
|
|
1508
|
+
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 ";
|
|
1509
|
+
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 ";
|
|
1510
|
+
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 ";
|
|
1511
|
+
export declare const UpdateMyProfileDocument = "\n mutation updateMyProfile($input: UpdateMyProfileInput!) {\n updateMyProfile(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 ";
|
|
1512
|
+
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(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 ";
|
|
1513
|
+
export declare const CreateApiKeyAgentDocument = "\n mutation createApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createApiKeyAgent(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 ";
|
|
1514
|
+
export declare const CreateSystemApiKeyAgentDocument = "\n mutation createSystemApiKeyAgent($input: CreateApiKeyAgentInput!) {\n createSystemApiKeyAgent(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 ";
|
|
1515
|
+
export declare const UpdateAgentDocument = "\n mutation updateAgent($input: UpdateAgentInput!) {\n updateAgent(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 ";
|
|
1516
|
+
export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(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 ";
|
|
1517
|
+
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 ";
|
|
1518
|
+
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 ";
|
|
1519
|
+
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 ";
|
|
1485
1520
|
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 ";
|
|
1486
1521
|
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 ";
|
|
1487
1522
|
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 ";
|
|
@@ -1493,9 +1528,11 @@ export declare const UnregisterAppInstanceDocument = "\n mutation unregisterA
|
|
|
1493
1528
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
1494
1529
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
1495
1530
|
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1496
|
-
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ...credentialsWithSecret\n }\n}\n \n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n }\n }\n}\n ";
|
|
1531
|
+
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ...credentialsWithSecret\n }\n}\n \n fragment credentialsWithSecret on Credentials {\n ... on ICredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n ... on MetaCredentialsType {\n credentials {\n code\n accessToken\n wabaId\n }\n }\n ... on MercadoLivreCredentialsType {\n credentials {\n code\n }\n }\n}\n ";
|
|
1532
|
+
export declare const GetMetaAuthInfoDocument = "\n query getMetaAuthInfo {\n getMetaAuthInfo {\n configurationId\n metaAppId\n scope\n }\n}\n ";
|
|
1497
1533
|
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1498
1534
|
export declare const CountCredentialsDocument = "\n query countCredentials {\n countCredentials\n}\n ";
|
|
1535
|
+
export declare const GetMercadoLivreAuthInfoDocument = "\n query getMercadoLivreAuthInfo {\n getMercadoLivreAuthInfo {\n authUrl\n }\n}\n ";
|
|
1499
1536
|
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1500
1537
|
export declare const CreateSystemCredentialsDocument = "\n mutation createSystemCredentials($input: CreateCredentialsInput!) {\n createSystemCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
1501
1538
|
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n systemCredentials\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1565,8 +1602,10 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1565
1602
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
1566
1603
|
getCredentials(variables: GetCredentialsQueryVariables, options?: C): Promise<GetCredentialsQuery>;
|
|
1567
1604
|
getCredentialsSecret(variables: GetCredentialsSecretQueryVariables, options?: C): Promise<GetCredentialsSecretQuery>;
|
|
1605
|
+
getMetaAuthInfo(variables?: GetMetaAuthInfoQueryVariables, options?: C): Promise<GetMetaAuthInfoQuery>;
|
|
1568
1606
|
listCredentials(variables?: ListCredentialsQueryVariables, options?: C): Promise<ListCredentialsQuery>;
|
|
1569
1607
|
countCredentials(variables?: CountCredentialsQueryVariables, options?: C): Promise<CountCredentialsQuery>;
|
|
1608
|
+
getMercadoLivreAuthInfo(variables?: GetMercadoLivreAuthInfoQueryVariables, options?: C): Promise<GetMercadoLivreAuthInfoQuery>;
|
|
1570
1609
|
createCredentials(variables: CreateCredentialsMutationVariables, options?: C): Promise<CreateCredentialsMutation>;
|
|
1571
1610
|
createSystemCredentials(variables: CreateSystemCredentialsMutationVariables, options?: C): Promise<CreateSystemCredentialsMutation>;
|
|
1572
1611
|
updateCredentials(variables: UpdateCredentialsMutationVariables, options?: C): Promise<UpdateCredentialsMutation>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = 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.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.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = 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.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = 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 = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -26,6 +26,7 @@ var CredentialsType;
|
|
|
26
26
|
(function (CredentialsType) {
|
|
27
27
|
CredentialsType["ApiKey"] = "ApiKey";
|
|
28
28
|
CredentialsType["Basic"] = "Basic";
|
|
29
|
+
CredentialsType["Mercadolivre"] = "Mercadolivre";
|
|
29
30
|
CredentialsType["Meta"] = "Meta";
|
|
30
31
|
CredentialsType["OAuth2"] = "OAuth2";
|
|
31
32
|
})(CredentialsType || (exports.CredentialsType = CredentialsType = {}));
|
|
@@ -88,6 +89,7 @@ exports.AgentFragmentDoc = `
|
|
|
88
89
|
roles
|
|
89
90
|
cognitoUserStatus
|
|
90
91
|
systemAgent
|
|
92
|
+
removed
|
|
91
93
|
createdAt
|
|
92
94
|
updatedAt
|
|
93
95
|
}
|
|
@@ -178,6 +180,12 @@ exports.CredentialsWithSecretFragmentDoc = `
|
|
|
178
180
|
credentials {
|
|
179
181
|
code
|
|
180
182
|
accessToken
|
|
183
|
+
wabaId
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
... on MercadoLivreCredentialsType {
|
|
187
|
+
credentials {
|
|
188
|
+
code
|
|
181
189
|
}
|
|
182
190
|
}
|
|
183
191
|
}
|
|
@@ -527,6 +535,15 @@ exports.GetCredentialsSecretDocument = `
|
|
|
527
535
|
}
|
|
528
536
|
}
|
|
529
537
|
${exports.CredentialsWithSecretFragmentDoc}`;
|
|
538
|
+
exports.GetMetaAuthInfoDocument = `
|
|
539
|
+
query getMetaAuthInfo {
|
|
540
|
+
getMetaAuthInfo {
|
|
541
|
+
configurationId
|
|
542
|
+
metaAppId
|
|
543
|
+
scope
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
`;
|
|
530
547
|
exports.ListCredentialsDocument = `
|
|
531
548
|
query listCredentials($type: CredentialsType) {
|
|
532
549
|
listCredentials(type: $type) {
|
|
@@ -539,6 +556,13 @@ exports.CountCredentialsDocument = `
|
|
|
539
556
|
countCredentials
|
|
540
557
|
}
|
|
541
558
|
`;
|
|
559
|
+
exports.GetMercadoLivreAuthInfoDocument = `
|
|
560
|
+
query getMercadoLivreAuthInfo {
|
|
561
|
+
getMercadoLivreAuthInfo {
|
|
562
|
+
authUrl
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
`;
|
|
542
566
|
exports.CreateCredentialsDocument = `
|
|
543
567
|
mutation createCredentials($input: CreateCredentialsInput!) {
|
|
544
568
|
createCredentials(input: $input) {
|
|
@@ -936,12 +960,18 @@ function getSdk(requester) {
|
|
|
936
960
|
getCredentialsSecret(variables, options) {
|
|
937
961
|
return requester(exports.GetCredentialsSecretDocument, variables, options);
|
|
938
962
|
},
|
|
963
|
+
getMetaAuthInfo(variables, options) {
|
|
964
|
+
return requester(exports.GetMetaAuthInfoDocument, variables, options);
|
|
965
|
+
},
|
|
939
966
|
listCredentials(variables, options) {
|
|
940
967
|
return requester(exports.ListCredentialsDocument, variables, options);
|
|
941
968
|
},
|
|
942
969
|
countCredentials(variables, options) {
|
|
943
970
|
return requester(exports.CountCredentialsDocument, variables, options);
|
|
944
971
|
},
|
|
972
|
+
getMercadoLivreAuthInfo(variables, options) {
|
|
973
|
+
return requester(exports.GetMercadoLivreAuthInfoDocument, variables, options);
|
|
974
|
+
},
|
|
945
975
|
createCredentials(variables, options) {
|
|
946
976
|
return requester(exports.CreateCredentialsDocument, variables, options);
|
|
947
977
|
},
|
package/src/sdks/whatsapp.d.ts
CHANGED
|
@@ -133,7 +133,6 @@ export type CreateWhatsAppInstanceInput = {
|
|
|
133
133
|
credentialsId: Scalars['ID']['input'];
|
|
134
134
|
name: Scalars['String']['input'];
|
|
135
135
|
phoneNumberId: Scalars['String']['input'];
|
|
136
|
-
wabaId: Scalars['String']['input'];
|
|
137
136
|
};
|
|
138
137
|
export type I18nText = {
|
|
139
138
|
lang: Scalars['Locale']['output'];
|
|
@@ -185,11 +184,15 @@ export type Query = {
|
|
|
185
184
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
186
185
|
getWhatsAppInstance?: Maybe<WhatsAppInstance>;
|
|
187
186
|
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsAppInstance>>>;
|
|
187
|
+
listWhatsAppPhoneNumbers?: Maybe<Array<Maybe<WhatsAppPhoneNumber>>>;
|
|
188
188
|
version?: Maybe<Scalars['String']['output']>;
|
|
189
189
|
};
|
|
190
190
|
export type QueryGetWhatsAppInstanceArgs = {
|
|
191
191
|
id: Scalars['ID']['input'];
|
|
192
192
|
};
|
|
193
|
+
export type QueryListWhatsAppPhoneNumbersArgs = {
|
|
194
|
+
credentialsId: Scalars['ID']['input'];
|
|
195
|
+
};
|
|
193
196
|
export type RemoveWhatsAppInstanceInput = {
|
|
194
197
|
id: Scalars['ID']['input'];
|
|
195
198
|
};
|
|
@@ -250,7 +253,6 @@ export type UpdateWhatsAppInstanceInput = {
|
|
|
250
253
|
credentialsId?: InputMaybe<Scalars['ID']['input']>;
|
|
251
254
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
252
255
|
phoneNumberId?: InputMaybe<Scalars['String']['input']>;
|
|
253
|
-
wabaId?: InputMaybe<Scalars['String']['input']>;
|
|
254
256
|
};
|
|
255
257
|
export type WhatsAppInstance = {
|
|
256
258
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -261,7 +263,12 @@ export type WhatsAppInstance = {
|
|
|
261
263
|
updatedAt: Scalars['DateTime']['output'];
|
|
262
264
|
wabaId: Scalars['String']['output'];
|
|
263
265
|
};
|
|
266
|
+
export type WhatsAppPhoneNumber = {
|
|
267
|
+
displayPhoneNumber: Scalars['String']['output'];
|
|
268
|
+
id: Scalars['String']['output'];
|
|
269
|
+
};
|
|
264
270
|
export type WhatsappInstanceFragment = Pick<WhatsAppInstance, 'id' | 'name' | 'phoneNumberId' | 'wabaId' | 'credentialsId' | 'createdAt' | 'updatedAt'>;
|
|
271
|
+
export type WhatsAppPhoneNumberFragment = Pick<WhatsAppPhoneNumber, 'id' | 'displayPhoneNumber'>;
|
|
265
272
|
export type GetWhatsAppInstanceQueryVariables = Exact<{
|
|
266
273
|
id: Scalars['ID']['input'];
|
|
267
274
|
}>;
|
|
@@ -274,6 +281,12 @@ export type ListWhatsAppInstancesQueryVariables = Exact<{
|
|
|
274
281
|
export type ListWhatsAppInstancesQuery = {
|
|
275
282
|
listWhatsAppInstances?: Maybe<Array<Maybe<WhatsappInstanceFragment>>>;
|
|
276
283
|
};
|
|
284
|
+
export type ListWhatsAppPhoneNumbersQueryVariables = Exact<{
|
|
285
|
+
credentialsId: Scalars['ID']['input'];
|
|
286
|
+
}>;
|
|
287
|
+
export type ListWhatsAppPhoneNumbersQuery = {
|
|
288
|
+
listWhatsAppPhoneNumbers?: Maybe<Array<Maybe<WhatsAppPhoneNumberFragment>>>;
|
|
289
|
+
};
|
|
277
290
|
export type CreateWhatsAppInstanceMutationVariables = Exact<{
|
|
278
291
|
input: CreateWhatsAppInstanceInput;
|
|
279
292
|
}>;
|
|
@@ -293,8 +306,10 @@ export type RemoveWhatsAppInstanceMutation = {
|
|
|
293
306
|
removeWhatsAppInstance?: Maybe<WhatsappInstanceFragment>;
|
|
294
307
|
};
|
|
295
308
|
export declare const WhatsappInstanceFragmentDoc = "\n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
309
|
+
export declare const WhatsAppPhoneNumberFragmentDoc = "\n fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {\n id\n displayPhoneNumber\n}\n ";
|
|
296
310
|
export declare const GetWhatsAppInstanceDocument = "\n query getWhatsAppInstance($id: ID!) {\n getWhatsAppInstance(id: $id) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
297
311
|
export declare const ListWhatsAppInstancesDocument = "\n query listWhatsAppInstances {\n listWhatsAppInstances {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
312
|
+
export declare const ListWhatsAppPhoneNumbersDocument = "\n query listWhatsAppPhoneNumbers($credentialsId: ID!) {\n listWhatsAppPhoneNumbers(credentialsId: $credentialsId) {\n ...whatsAppPhoneNumber\n }\n}\n \n fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {\n id\n displayPhoneNumber\n}\n ";
|
|
298
313
|
export declare const CreateWhatsAppInstanceDocument = "\n mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {\n createWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
299
314
|
export declare const UpdateWhatsAppInstanceDocument = "\n mutation updateWhatsAppInstance($input: UpdateWhatsAppInstanceInput!) {\n updateWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
300
315
|
export declare const RemoveWhatsAppInstanceDocument = "\n mutation removeWhatsAppInstance($input: RemoveWhatsAppInstanceInput!) {\n removeWhatsAppInstance(input: $input) {\n ...whatsappInstance\n }\n}\n \n fragment whatsappInstance on WhatsAppInstance {\n id\n name\n phoneNumberId\n wabaId\n credentialsId\n createdAt\n updatedAt\n}\n ";
|
|
@@ -302,6 +317,7 @@ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Pr
|
|
|
302
317
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
303
318
|
getWhatsAppInstance(variables: GetWhatsAppInstanceQueryVariables, options?: C): Promise<GetWhatsAppInstanceQuery>;
|
|
304
319
|
listWhatsAppInstances(variables?: ListWhatsAppInstancesQueryVariables, options?: C): Promise<ListWhatsAppInstancesQuery>;
|
|
320
|
+
listWhatsAppPhoneNumbers(variables: ListWhatsAppPhoneNumbersQueryVariables, options?: C): Promise<ListWhatsAppPhoneNumbersQuery>;
|
|
305
321
|
createWhatsAppInstance(variables: CreateWhatsAppInstanceMutationVariables, options?: C): Promise<CreateWhatsAppInstanceMutation>;
|
|
306
322
|
updateWhatsAppInstance(variables: UpdateWhatsAppInstanceMutationVariables, options?: C): Promise<UpdateWhatsAppInstanceMutation>;
|
|
307
323
|
removeWhatsAppInstance(variables: RemoveWhatsAppInstanceMutationVariables, options?: C): Promise<RemoveWhatsAppInstanceMutation>;
|
package/src/sdks/whatsapp.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.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveWhatsAppInstanceDocument = exports.UpdateWhatsAppInstanceDocument = exports.CreateWhatsAppInstanceDocument = exports.ListWhatsAppPhoneNumbersDocument = exports.ListWhatsAppInstancesDocument = exports.GetWhatsAppInstanceDocument = exports.WhatsAppPhoneNumberFragmentDoc = exports.WhatsappInstanceFragmentDoc = exports.Typenames = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -33,6 +33,12 @@ exports.WhatsappInstanceFragmentDoc = `
|
|
|
33
33
|
updatedAt
|
|
34
34
|
}
|
|
35
35
|
`;
|
|
36
|
+
exports.WhatsAppPhoneNumberFragmentDoc = `
|
|
37
|
+
fragment whatsAppPhoneNumber on WhatsAppPhoneNumber {
|
|
38
|
+
id
|
|
39
|
+
displayPhoneNumber
|
|
40
|
+
}
|
|
41
|
+
`;
|
|
36
42
|
exports.GetWhatsAppInstanceDocument = `
|
|
37
43
|
query getWhatsAppInstance($id: ID!) {
|
|
38
44
|
getWhatsAppInstance(id: $id) {
|
|
@@ -47,6 +53,13 @@ exports.ListWhatsAppInstancesDocument = `
|
|
|
47
53
|
}
|
|
48
54
|
}
|
|
49
55
|
${exports.WhatsappInstanceFragmentDoc}`;
|
|
56
|
+
exports.ListWhatsAppPhoneNumbersDocument = `
|
|
57
|
+
query listWhatsAppPhoneNumbers($credentialsId: ID!) {
|
|
58
|
+
listWhatsAppPhoneNumbers(credentialsId: $credentialsId) {
|
|
59
|
+
...whatsAppPhoneNumber
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
${exports.WhatsAppPhoneNumberFragmentDoc}`;
|
|
50
63
|
exports.CreateWhatsAppInstanceDocument = `
|
|
51
64
|
mutation createWhatsAppInstance($input: CreateWhatsAppInstanceInput!) {
|
|
52
65
|
createWhatsAppInstance(input: $input) {
|
|
@@ -76,6 +89,9 @@ function getSdk(requester) {
|
|
|
76
89
|
listWhatsAppInstances(variables, options) {
|
|
77
90
|
return requester(exports.ListWhatsAppInstancesDocument, variables, options);
|
|
78
91
|
},
|
|
92
|
+
listWhatsAppPhoneNumbers(variables, options) {
|
|
93
|
+
return requester(exports.ListWhatsAppPhoneNumbersDocument, variables, options);
|
|
94
|
+
},
|
|
79
95
|
createWhatsAppInstance(variables, options) {
|
|
80
96
|
return requester(exports.CreateWhatsAppInstanceDocument, variables, options);
|
|
81
97
|
},
|
package/src/whatsapp.d.ts
CHANGED
|
@@ -12,6 +12,9 @@ export declare const WhatsApp: new (options?: import("./client/http").HttpClient
|
|
|
12
12
|
listWhatsAppInstances(variables?: import("./sdks/whatsapp").Exact<{
|
|
13
13
|
[key: string]: never;
|
|
14
14
|
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppInstancesQuery>;
|
|
15
|
+
listWhatsAppPhoneNumbers(variables: import("./sdks/whatsapp").Exact<{
|
|
16
|
+
credentialsId: string;
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/whatsapp").ListWhatsAppPhoneNumbersQuery>;
|
|
15
18
|
createWhatsAppInstance(variables: import("./sdks/whatsapp").Exact<{
|
|
16
19
|
input: import("./sdks/whatsapp").CreateWhatsAppInstanceInput;
|
|
17
20
|
}>, options?: unknown): Promise<import("./sdks/whatsapp").CreateWhatsAppInstanceMutation>;
|