@droz-js/sdk 0.9.83 → 0.9.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozadmin.d.ts +8 -0
- package/src/drozbot.d.ts +12 -0
- package/src/sdks/drozbot.d.ts +80 -1
- package/src/sdks/drozbot.js +59 -1
- package/src/sdks/drozcommons.d.ts +24 -0
- package/src/sdks/drozcommons.js +21 -1
- package/src/sdks/reclameaqui.d.ts +2 -2
package/package.json
CHANGED
package/src/drozadmin.d.ts
CHANGED
|
@@ -119,6 +119,14 @@ declare const DrozAdmin_base: new (options?: import("./client/http").HttpClientO
|
|
|
119
119
|
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
120
120
|
ticketId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
121
121
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetZendeskTicketDetailsQuery>;
|
|
122
|
+
listReclameAquiInstances(variables: import("./sdks/drozcommons").Exact<{
|
|
123
|
+
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
124
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListReclameAquiInstancesQuery>;
|
|
125
|
+
getReclameAquiTicketDetails(variables: import("./sdks/drozcommons").Exact<{
|
|
126
|
+
tenantId: import("./sdks/drozcommons").Scalars["TenantId"]["input"];
|
|
127
|
+
instanceId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
128
|
+
ticketId: import("./sdks/drozcommons").Scalars["String"]["input"];
|
|
129
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetReclameAquiTicketDetailsQuery>;
|
|
122
130
|
createTenant(variables: import("./sdks/drozcommons").Exact<{
|
|
123
131
|
input: import("./sdks/drozcommons").CreateTenantInput;
|
|
124
132
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").CreateTenantMutation>;
|
package/src/drozbot.d.ts
CHANGED
|
@@ -12,6 +12,12 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
12
12
|
listDrozBotInstances(variables?: import("./sdks/drozbot").Exact<{
|
|
13
13
|
[key: string]: never;
|
|
14
14
|
}>, options?: unknown): Promise<import("./sdks/drozbot").ListDrozBotInstancesQuery>;
|
|
15
|
+
getIntentDictionary(variables: import("./sdks/drozbot").Exact<{
|
|
16
|
+
id: import("./sdks/drozbot").Scalars["ID"]["input"];
|
|
17
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").GetIntentDictionaryQuery>;
|
|
18
|
+
listIntentDictionary(variables?: import("./sdks/drozbot").Exact<{
|
|
19
|
+
[key: string]: never;
|
|
20
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").ListIntentDictionaryQuery>;
|
|
15
21
|
createDrozBotInstance(variables: import("./sdks/drozbot").Exact<{
|
|
16
22
|
input: import("./sdks/drozbot").CreateDrozBotInstanceInput;
|
|
17
23
|
}>, options?: unknown): Promise<import("./sdks/drozbot").CreateDrozBotInstanceMutation>;
|
|
@@ -33,6 +39,12 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
33
39
|
requestDrozBotAssess(variables: import("./sdks/drozbot").Exact<{
|
|
34
40
|
input: import("./sdks/drozbot").RequestDrozBotAssessInput;
|
|
35
41
|
}>, options?: unknown): Promise<import("./sdks/drozbot").RequestDrozBotAssessMutation>;
|
|
42
|
+
upsertIntentDictionary(variables: import("./sdks/drozbot").Exact<{
|
|
43
|
+
input: import("./sdks/drozbot").UpsertIntentDictionaryInput;
|
|
44
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").UpsertIntentDictionaryMutation>;
|
|
45
|
+
predictIntent(variables: import("./sdks/drozbot").Exact<{
|
|
46
|
+
input: import("./sdks/drozbot").PredictIntentInput;
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").PredictIntentMutation>;
|
|
36
48
|
};
|
|
37
49
|
export declare class DrozBot extends DrozBot_base {
|
|
38
50
|
}
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -217,14 +217,34 @@ export type I18nTextInput = {
|
|
|
217
217
|
lang: Scalars['Locale']['input'];
|
|
218
218
|
value: Scalars['String']['input'];
|
|
219
219
|
};
|
|
220
|
+
export type Intent = {
|
|
221
|
+
label?: Maybe<Scalars['String']['output']>;
|
|
222
|
+
score?: Maybe<Scalars['Number']['output']>;
|
|
223
|
+
};
|
|
224
|
+
export type IntentDictionary = {
|
|
225
|
+
createdAt: Scalars['DateTime']['output'];
|
|
226
|
+
entities: Array<IntentDictionaryEntity>;
|
|
227
|
+
id: Scalars['ID']['output'];
|
|
228
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
229
|
+
};
|
|
230
|
+
export type IntentDictionaryEntity = {
|
|
231
|
+
keys: Array<Scalars['String']['output']>;
|
|
232
|
+
label: Scalars['String']['output'];
|
|
233
|
+
};
|
|
234
|
+
export type IntentDictionaryEntityInput = {
|
|
235
|
+
keys: Array<Scalars['String']['input']>;
|
|
236
|
+
label: Scalars['String']['input'];
|
|
237
|
+
};
|
|
220
238
|
export type Mutation = {
|
|
221
239
|
createDrozBotInstance: DrozBotInstance;
|
|
222
240
|
createDrozBotTicket: DrozBotTicket;
|
|
223
241
|
createDrozBotTicketComment: DrozBotTicketComment;
|
|
224
242
|
createDrozBotTicketComments: Array<DrozBotTicketComment>;
|
|
243
|
+
predictIntent?: Maybe<Intent>;
|
|
225
244
|
removeDrozBotInstance: DrozBotInstance;
|
|
226
245
|
requestDrozBotAssess: Scalars['Boolean']['output'];
|
|
227
246
|
updateDrozBotInstance: DrozBotInstance;
|
|
247
|
+
upsertIntentDictionary?: Maybe<IntentDictionary>;
|
|
228
248
|
version?: Maybe<Scalars['String']['output']>;
|
|
229
249
|
};
|
|
230
250
|
export type MutationCreateDrozBotInstanceArgs = {
|
|
@@ -239,6 +259,9 @@ export type MutationCreateDrozBotTicketCommentArgs = {
|
|
|
239
259
|
export type MutationCreateDrozBotTicketCommentsArgs = {
|
|
240
260
|
input: CreateDrozBotTicketCommentsInput;
|
|
241
261
|
};
|
|
262
|
+
export type MutationPredictIntentArgs = {
|
|
263
|
+
input: PredictIntentInput;
|
|
264
|
+
};
|
|
242
265
|
export type MutationRemoveDrozBotInstanceArgs = {
|
|
243
266
|
input: RemoveDrozBotInstanceInput;
|
|
244
267
|
};
|
|
@@ -248,6 +271,9 @@ export type MutationRequestDrozBotAssessArgs = {
|
|
|
248
271
|
export type MutationUpdateDrozBotInstanceArgs = {
|
|
249
272
|
input: UpdateDrozBotInstanceInput;
|
|
250
273
|
};
|
|
274
|
+
export type MutationUpsertIntentDictionaryArgs = {
|
|
275
|
+
input: UpsertIntentDictionaryInput;
|
|
276
|
+
};
|
|
251
277
|
export type NumberMatcher = {
|
|
252
278
|
btw?: Maybe<Array<Scalars['Number']['output']>>;
|
|
253
279
|
eq?: Maybe<Scalars['Number']['output']>;
|
|
@@ -270,16 +296,26 @@ export type PageInfo = {
|
|
|
270
296
|
hasNext: Scalars['Boolean']['output'];
|
|
271
297
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
272
298
|
};
|
|
299
|
+
export type PredictIntentInput = {
|
|
300
|
+
filterLabels?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
301
|
+
id: Scalars['ID']['input'];
|
|
302
|
+
userInput: Scalars['String']['input'];
|
|
303
|
+
};
|
|
273
304
|
export type Query = {
|
|
274
305
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
275
306
|
getDrozBotInstance?: Maybe<DrozBotInstance>;
|
|
276
307
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
308
|
+
getIntentDictionary?: Maybe<IntentDictionary>;
|
|
277
309
|
listDrozBotInstances: Array<Maybe<DrozBotInstance>>;
|
|
310
|
+
listIntentDictionary: Array<IntentDictionary>;
|
|
278
311
|
version?: Maybe<Scalars['String']['output']>;
|
|
279
312
|
};
|
|
280
313
|
export type QueryGetDrozBotInstanceArgs = {
|
|
281
314
|
id: Scalars['ID']['input'];
|
|
282
315
|
};
|
|
316
|
+
export type QueryGetIntentDictionaryArgs = {
|
|
317
|
+
id: Scalars['ID']['input'];
|
|
318
|
+
};
|
|
283
319
|
export type RemoveDrozBotInstanceInput = {
|
|
284
320
|
id: Scalars['ID']['input'];
|
|
285
321
|
};
|
|
@@ -342,7 +378,8 @@ export declare enum Typenames {
|
|
|
342
378
|
DrozBotInstance = "DrozBotInstance",
|
|
343
379
|
DrozBotSession = "DrozBotSession",
|
|
344
380
|
GraphqlConnections = "GraphqlConnections",
|
|
345
|
-
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
381
|
+
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
382
|
+
IntentDictionary = "IntentDictionary"
|
|
346
383
|
}
|
|
347
384
|
export type UpdateDrozBotInstanceInput = {
|
|
348
385
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -351,8 +388,16 @@ export type UpdateDrozBotInstanceInput = {
|
|
|
351
388
|
isTest?: InputMaybe<Scalars['Boolean']['input']>;
|
|
352
389
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
353
390
|
};
|
|
391
|
+
export type UpsertIntentDictionaryInput = {
|
|
392
|
+
entities: Array<IntentDictionaryEntityInput>;
|
|
393
|
+
id: Scalars['ID']['input'];
|
|
394
|
+
};
|
|
354
395
|
export type DrozbotFragment = Pick<DrozBotInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'isTest' | 'integrationType' | 'createdAt' | 'updatedAt'>;
|
|
355
396
|
export type DrozBotTicketCommentFragment = Pick<DrozBotTicketComment, 'id' | 'ticketId'>;
|
|
397
|
+
export type IntentDictionaryFragment = (Pick<IntentDictionary, 'id' | 'createdAt' | 'updatedAt'> & {
|
|
398
|
+
entities: Array<Pick<IntentDictionaryEntity, 'label' | 'keys'>>;
|
|
399
|
+
});
|
|
400
|
+
export type IntentFragment = Pick<Intent, 'label' | 'score'>;
|
|
356
401
|
export type GetDrozBotInstanceQueryVariables = Exact<{
|
|
357
402
|
id: Scalars['ID']['input'];
|
|
358
403
|
}>;
|
|
@@ -365,6 +410,18 @@ export type ListDrozBotInstancesQueryVariables = Exact<{
|
|
|
365
410
|
export type ListDrozBotInstancesQuery = {
|
|
366
411
|
listDrozBotInstances: Array<Maybe<DrozbotFragment>>;
|
|
367
412
|
};
|
|
413
|
+
export type GetIntentDictionaryQueryVariables = Exact<{
|
|
414
|
+
id: Scalars['ID']['input'];
|
|
415
|
+
}>;
|
|
416
|
+
export type GetIntentDictionaryQuery = {
|
|
417
|
+
getIntentDictionary?: Maybe<IntentDictionaryFragment>;
|
|
418
|
+
};
|
|
419
|
+
export type ListIntentDictionaryQueryVariables = Exact<{
|
|
420
|
+
[key: string]: never;
|
|
421
|
+
}>;
|
|
422
|
+
export type ListIntentDictionaryQuery = {
|
|
423
|
+
listIntentDictionary: Array<IntentDictionaryFragment>;
|
|
424
|
+
};
|
|
368
425
|
export type CreateDrozBotInstanceMutationVariables = Exact<{
|
|
369
426
|
input: CreateDrozBotInstanceInput;
|
|
370
427
|
}>;
|
|
@@ -405,10 +462,26 @@ export type RequestDrozBotAssessMutationVariables = Exact<{
|
|
|
405
462
|
input: RequestDrozBotAssessInput;
|
|
406
463
|
}>;
|
|
407
464
|
export type RequestDrozBotAssessMutation = Pick<Mutation, 'requestDrozBotAssess'>;
|
|
465
|
+
export type UpsertIntentDictionaryMutationVariables = Exact<{
|
|
466
|
+
input: UpsertIntentDictionaryInput;
|
|
467
|
+
}>;
|
|
468
|
+
export type UpsertIntentDictionaryMutation = {
|
|
469
|
+
upsertIntentDictionary?: Maybe<IntentDictionaryFragment>;
|
|
470
|
+
};
|
|
471
|
+
export type PredictIntentMutationVariables = Exact<{
|
|
472
|
+
input: PredictIntentInput;
|
|
473
|
+
}>;
|
|
474
|
+
export type PredictIntentMutation = {
|
|
475
|
+
predictIntent?: Maybe<IntentFragment>;
|
|
476
|
+
};
|
|
408
477
|
export declare const DrozbotFragmentDoc = "\n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
409
478
|
export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
479
|
+
export declare const IntentDictionaryFragmentDoc = "\n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
480
|
+
export declare const IntentFragmentDoc = "\n fragment intent on Intent {\n label\n score\n}\n ";
|
|
410
481
|
export declare const GetDrozBotInstanceDocument = "\n query getDrozBotInstance($id: ID!) {\n getDrozBotInstance(id: $id) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
411
482
|
export declare const ListDrozBotInstancesDocument = "\n query listDrozBotInstances {\n listDrozBotInstances {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
483
|
+
export declare const GetIntentDictionaryDocument = "\n query getIntentDictionary($id: ID!) {\n getIntentDictionary(id: $id) {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
484
|
+
export declare const ListIntentDictionaryDocument = "\n query listIntentDictionary {\n listIntentDictionary {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
412
485
|
export declare const CreateDrozBotInstanceDocument = "\n mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {\n createDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
413
486
|
export declare const UpdateDrozBotInstanceDocument = "\n mutation updateDrozBotInstance($input: UpdateDrozBotInstanceInput!) {\n updateDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
414
487
|
export declare const RemoveDrozBotInstanceDocument = "\n mutation removeDrozBotInstance($input: RemoveDrozBotInstanceInput!) {\n removeDrozBotInstance(input: $input) {\n ...drozbot\n }\n}\n \n fragment drozbot on DrozBotInstance {\n id\n name\n drn\n credentialId\n isTest\n integrationType\n createdAt\n updatedAt\n}\n ";
|
|
@@ -416,10 +489,14 @@ export declare const CreateDrozBotTicketDocument = "\n mutation createDrozBot
|
|
|
416
489
|
export declare const CreateDrozBotTicketCommentsDocument = "\n mutation createDrozBotTicketComments($input: CreateDrozBotTicketCommentsInput!) {\n createDrozBotTicketComments(input: $input) {\n ...drozBotTicketComment\n }\n}\n \n fragment drozBotTicketComment on DrozBotTicketComment {\n id\n ticketId\n}\n ";
|
|
417
490
|
export declare const CreateDrozBotTicketCommentDocument = "\n mutation createDrozBotTicketComment($input: CreateDrozBotTicketCommentInput!) {\n createDrozBotTicketComment(input: $input) {\n id\n ticketId\n }\n}\n ";
|
|
418
491
|
export declare const RequestDrozBotAssessDocument = "\n mutation requestDrozBotAssess($input: RequestDrozBotAssessInput!) {\n requestDrozBotAssess(input: $input)\n}\n ";
|
|
492
|
+
export declare const UpsertIntentDictionaryDocument = "\n mutation upsertIntentDictionary($input: UpsertIntentDictionaryInput!) {\n upsertIntentDictionary(input: $input) {\n ...intentDictionary\n }\n}\n \n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
493
|
+
export declare const PredictIntentDocument = "\n mutation predictIntent($input: PredictIntentInput!) {\n predictIntent(input: $input) {\n ...intent\n }\n}\n \n fragment intent on Intent {\n label\n score\n}\n ";
|
|
419
494
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
420
495
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
421
496
|
getDrozBotInstance(variables: GetDrozBotInstanceQueryVariables, options?: C): Promise<GetDrozBotInstanceQuery>;
|
|
422
497
|
listDrozBotInstances(variables?: ListDrozBotInstancesQueryVariables, options?: C): Promise<ListDrozBotInstancesQuery>;
|
|
498
|
+
getIntentDictionary(variables: GetIntentDictionaryQueryVariables, options?: C): Promise<GetIntentDictionaryQuery>;
|
|
499
|
+
listIntentDictionary(variables?: ListIntentDictionaryQueryVariables, options?: C): Promise<ListIntentDictionaryQuery>;
|
|
423
500
|
createDrozBotInstance(variables: CreateDrozBotInstanceMutationVariables, options?: C): Promise<CreateDrozBotInstanceMutation>;
|
|
424
501
|
updateDrozBotInstance(variables: UpdateDrozBotInstanceMutationVariables, options?: C): Promise<UpdateDrozBotInstanceMutation>;
|
|
425
502
|
removeDrozBotInstance(variables: RemoveDrozBotInstanceMutationVariables, options?: C): Promise<RemoveDrozBotInstanceMutation>;
|
|
@@ -427,6 +504,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
427
504
|
createDrozBotTicketComments(variables: CreateDrozBotTicketCommentsMutationVariables, options?: C): Promise<CreateDrozBotTicketCommentsMutation>;
|
|
428
505
|
createDrozBotTicketComment(variables: CreateDrozBotTicketCommentMutationVariables, options?: C): Promise<CreateDrozBotTicketCommentMutation>;
|
|
429
506
|
requestDrozBotAssess(variables: RequestDrozBotAssessMutationVariables, options?: C): Promise<RequestDrozBotAssessMutation>;
|
|
507
|
+
upsertIntentDictionary(variables: UpsertIntentDictionaryMutationVariables, options?: C): Promise<UpsertIntentDictionaryMutation>;
|
|
508
|
+
predictIntent(variables: PredictIntentMutationVariables, options?: C): Promise<PredictIntentMutation>;
|
|
430
509
|
};
|
|
431
510
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
432
511
|
export declare const serviceName = "@droz/drozbot";
|
package/src/sdks/drozbot.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.RequestDrozBotAssessDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.Typenames = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.RequestDrozBotAssessDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.Typenames = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -38,6 +38,7 @@ var Typenames;
|
|
|
38
38
|
Typenames["DrozBotSession"] = "DrozBotSession";
|
|
39
39
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
40
40
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
41
|
+
Typenames["IntentDictionary"] = "IntentDictionary";
|
|
41
42
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
42
43
|
exports.DrozbotFragmentDoc = `
|
|
43
44
|
fragment drozbot on DrozBotInstance {
|
|
@@ -57,6 +58,23 @@ exports.DrozBotTicketCommentFragmentDoc = `
|
|
|
57
58
|
ticketId
|
|
58
59
|
}
|
|
59
60
|
`;
|
|
61
|
+
exports.IntentDictionaryFragmentDoc = `
|
|
62
|
+
fragment intentDictionary on IntentDictionary {
|
|
63
|
+
id
|
|
64
|
+
entities {
|
|
65
|
+
label
|
|
66
|
+
keys
|
|
67
|
+
}
|
|
68
|
+
createdAt
|
|
69
|
+
updatedAt
|
|
70
|
+
}
|
|
71
|
+
`;
|
|
72
|
+
exports.IntentFragmentDoc = `
|
|
73
|
+
fragment intent on Intent {
|
|
74
|
+
label
|
|
75
|
+
score
|
|
76
|
+
}
|
|
77
|
+
`;
|
|
60
78
|
exports.GetDrozBotInstanceDocument = `
|
|
61
79
|
query getDrozBotInstance($id: ID!) {
|
|
62
80
|
getDrozBotInstance(id: $id) {
|
|
@@ -71,6 +89,20 @@ exports.ListDrozBotInstancesDocument = `
|
|
|
71
89
|
}
|
|
72
90
|
}
|
|
73
91
|
${exports.DrozbotFragmentDoc}`;
|
|
92
|
+
exports.GetIntentDictionaryDocument = `
|
|
93
|
+
query getIntentDictionary($id: ID!) {
|
|
94
|
+
getIntentDictionary(id: $id) {
|
|
95
|
+
...intentDictionary
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
${exports.IntentDictionaryFragmentDoc}`;
|
|
99
|
+
exports.ListIntentDictionaryDocument = `
|
|
100
|
+
query listIntentDictionary {
|
|
101
|
+
listIntentDictionary {
|
|
102
|
+
...intentDictionary
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
${exports.IntentDictionaryFragmentDoc}`;
|
|
74
106
|
exports.CreateDrozBotInstanceDocument = `
|
|
75
107
|
mutation createDrozBotInstance($input: CreateDrozBotInstanceInput!) {
|
|
76
108
|
createDrozBotInstance(input: $input) {
|
|
@@ -120,6 +152,20 @@ exports.RequestDrozBotAssessDocument = `
|
|
|
120
152
|
requestDrozBotAssess(input: $input)
|
|
121
153
|
}
|
|
122
154
|
`;
|
|
155
|
+
exports.UpsertIntentDictionaryDocument = `
|
|
156
|
+
mutation upsertIntentDictionary($input: UpsertIntentDictionaryInput!) {
|
|
157
|
+
upsertIntentDictionary(input: $input) {
|
|
158
|
+
...intentDictionary
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
${exports.IntentDictionaryFragmentDoc}`;
|
|
162
|
+
exports.PredictIntentDocument = `
|
|
163
|
+
mutation predictIntent($input: PredictIntentInput!) {
|
|
164
|
+
predictIntent(input: $input) {
|
|
165
|
+
...intent
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
${exports.IntentFragmentDoc}`;
|
|
123
169
|
function getSdk(requester) {
|
|
124
170
|
return {
|
|
125
171
|
getDrozBotInstance(variables, options) {
|
|
@@ -128,6 +174,12 @@ function getSdk(requester) {
|
|
|
128
174
|
listDrozBotInstances(variables, options) {
|
|
129
175
|
return requester(exports.ListDrozBotInstancesDocument, variables, options);
|
|
130
176
|
},
|
|
177
|
+
getIntentDictionary(variables, options) {
|
|
178
|
+
return requester(exports.GetIntentDictionaryDocument, variables, options);
|
|
179
|
+
},
|
|
180
|
+
listIntentDictionary(variables, options) {
|
|
181
|
+
return requester(exports.ListIntentDictionaryDocument, variables, options);
|
|
182
|
+
},
|
|
131
183
|
createDrozBotInstance(variables, options) {
|
|
132
184
|
return requester(exports.CreateDrozBotInstanceDocument, variables, options);
|
|
133
185
|
},
|
|
@@ -148,6 +200,12 @@ function getSdk(requester) {
|
|
|
148
200
|
},
|
|
149
201
|
requestDrozBotAssess(variables, options) {
|
|
150
202
|
return requester(exports.RequestDrozBotAssessDocument, variables, options);
|
|
203
|
+
},
|
|
204
|
+
upsertIntentDictionary(variables, options) {
|
|
205
|
+
return requester(exports.UpsertIntentDictionaryDocument, variables, options);
|
|
206
|
+
},
|
|
207
|
+
predictIntent(variables, options) {
|
|
208
|
+
return requester(exports.PredictIntentDocument, variables, options);
|
|
151
209
|
}
|
|
152
210
|
};
|
|
153
211
|
}
|
|
@@ -403,6 +403,7 @@ export type Query = {
|
|
|
403
403
|
getGlobalParameter?: Maybe<Parameter>;
|
|
404
404
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
405
405
|
getMe?: Maybe<AdminAgent>;
|
|
406
|
+
getReclameAquiTicketDetails?: Maybe<Scalars['JSON']['output']>;
|
|
406
407
|
getTenant?: Maybe<Tenant>;
|
|
407
408
|
getTenantParameter?: Maybe<Parameter>;
|
|
408
409
|
getZendeskTicketDetails?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -414,6 +415,7 @@ export type Query = {
|
|
|
414
415
|
listGitRepositories: Array<GitRepository>;
|
|
415
416
|
listGitTags: Array<GitTag>;
|
|
416
417
|
listGlobalParameters?: Maybe<Array<Parameter>>;
|
|
418
|
+
listReclameAquiInstances: Array<Maybe<Scalars['JSON']['output']>>;
|
|
417
419
|
listRegions: Array<Region>;
|
|
418
420
|
listServices: Array<Maybe<Service>>;
|
|
419
421
|
listTenantParameters?: Maybe<Array<Parameter>>;
|
|
@@ -443,6 +445,11 @@ export type QueryGetFederationMetadataArgs = {
|
|
|
443
445
|
export type QueryGetGlobalParameterArgs = {
|
|
444
446
|
name: Scalars['String']['input'];
|
|
445
447
|
};
|
|
448
|
+
export type QueryGetReclameAquiTicketDetailsArgs = {
|
|
449
|
+
instanceId: Scalars['String']['input'];
|
|
450
|
+
tenantId: Scalars['TenantId']['input'];
|
|
451
|
+
ticketId: Scalars['String']['input'];
|
|
452
|
+
};
|
|
446
453
|
export type QueryGetTenantArgs = {
|
|
447
454
|
tenantId: Scalars['TenantId']['input'];
|
|
448
455
|
};
|
|
@@ -467,6 +474,9 @@ export type QueryListGitBranchesArgs = {
|
|
|
467
474
|
export type QueryListGitTagsArgs = {
|
|
468
475
|
gitRepositoryId: Scalars['ID']['input'];
|
|
469
476
|
};
|
|
477
|
+
export type QueryListReclameAquiInstancesArgs = {
|
|
478
|
+
tenantId: Scalars['TenantId']['input'];
|
|
479
|
+
};
|
|
470
480
|
export type QueryListServicesArgs = {
|
|
471
481
|
tenantId: Scalars['ID']['input'];
|
|
472
482
|
};
|
|
@@ -836,6 +846,16 @@ export type GetZendeskTicketDetailsQueryVariables = Exact<{
|
|
|
836
846
|
ticketId: Scalars['String']['input'];
|
|
837
847
|
}>;
|
|
838
848
|
export type GetZendeskTicketDetailsQuery = Pick<Query, 'getZendeskTicketDetails'>;
|
|
849
|
+
export type ListReclameAquiInstancesQueryVariables = Exact<{
|
|
850
|
+
tenantId: Scalars['TenantId']['input'];
|
|
851
|
+
}>;
|
|
852
|
+
export type ListReclameAquiInstancesQuery = Pick<Query, 'listReclameAquiInstances'>;
|
|
853
|
+
export type GetReclameAquiTicketDetailsQueryVariables = Exact<{
|
|
854
|
+
tenantId: Scalars['TenantId']['input'];
|
|
855
|
+
instanceId: Scalars['String']['input'];
|
|
856
|
+
ticketId: Scalars['String']['input'];
|
|
857
|
+
}>;
|
|
858
|
+
export type GetReclameAquiTicketDetailsQuery = Pick<Query, 'getReclameAquiTicketDetails'>;
|
|
839
859
|
export type CreateTenantMutationVariables = Exact<{
|
|
840
860
|
input: CreateTenantInput;
|
|
841
861
|
}>;
|
|
@@ -921,6 +941,8 @@ export declare const ListTenantsDocument = "\n query listTenants($withService
|
|
|
921
941
|
export declare const GetFederationMetadataDocument = "\n query getFederationMetadata($tenantId: TenantId!) {\n getFederationMetadata(tenantId: $tenantId)\n}\n ";
|
|
922
942
|
export declare const SearchSessionsOnTenantDocument = "\n query searchSessionsOnTenant($tenantId: TenantId!, $q: String) {\n searchSessionsOnTenant(tenantId: $tenantId, q: $q)\n}\n ";
|
|
923
943
|
export declare const GetZendeskTicketDetailsDocument = "\n query getZendeskTicketDetails($tenantId: TenantId!, $ticketId: String!) {\n getZendeskTicketDetails(tenantId: $tenantId, ticketId: $ticketId)\n}\n ";
|
|
944
|
+
export declare const ListReclameAquiInstancesDocument = "\n query listReclameAquiInstances($tenantId: TenantId!) {\n listReclameAquiInstances(tenantId: $tenantId)\n}\n ";
|
|
945
|
+
export declare const GetReclameAquiTicketDetailsDocument = "\n query getReclameAquiTicketDetails($tenantId: TenantId!, $instanceId: String!, $ticketId: String!) {\n getReclameAquiTicketDetails(\n tenantId: $tenantId\n instanceId: $instanceId\n ticketId: $ticketId\n )\n}\n ";
|
|
924
946
|
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
925
947
|
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
926
948
|
export declare const AddTenantTagsDocument = "\n mutation addTenantTags($input: AddTenantTagsInput!) {\n addTenantTags(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n tags\n account {\n id\n name\n }\n identityProviders {\n type\n name\n metadataType\n metadataContent\n attributeMapping\n }\n}\n ";
|
|
@@ -965,6 +987,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
965
987
|
getFederationMetadata(variables: GetFederationMetadataQueryVariables, options?: C): Promise<GetFederationMetadataQuery>;
|
|
966
988
|
searchSessionsOnTenant(variables: SearchSessionsOnTenantQueryVariables, options?: C): Promise<SearchSessionsOnTenantQuery>;
|
|
967
989
|
getZendeskTicketDetails(variables: GetZendeskTicketDetailsQueryVariables, options?: C): Promise<GetZendeskTicketDetailsQuery>;
|
|
990
|
+
listReclameAquiInstances(variables: ListReclameAquiInstancesQueryVariables, options?: C): Promise<ListReclameAquiInstancesQuery>;
|
|
991
|
+
getReclameAquiTicketDetails(variables: GetReclameAquiTicketDetailsQueryVariables, options?: C): Promise<GetReclameAquiTicketDetailsQuery>;
|
|
968
992
|
createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>;
|
|
969
993
|
updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>;
|
|
970
994
|
addTenantTags(variables: AddTenantTagsMutationVariables, options?: C): Promise<AddTenantTagsMutation>;
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SearchSessionsOnTenantDocument = exports.GetFederationMetadataDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.RemoveGlobalParameterDocument = exports.SetGlobalParameterDocument = exports.RemoveAccountParameterDocument = exports.SetAccountParameterDocument = exports.RemoveTenantParameterDocument = exports.SetTenantParameterDocument = exports.GetGlobalParameterDocument = exports.ListGlobalParametersDocument = exports.GetAccountParameterDocument = exports.ListAccountParametersDocument = exports.GetTenantParameterDocument = exports.ListTenantParametersDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitTagsDocument = exports.ListGitBranchesDocument = exports.ListDrozServicesDocument = exports.ListGitRepositoriesDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.GetMeDocument = exports.UpdateAccountDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.ParameterFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitTagFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.AwsAccountFragmentDoc = exports.RegionFragmentDoc = exports.Typenames = exports.ParameterType = exports.IdentityProviderType = exports.IdentityProviderSamlMetadataType = exports.DeploymentStatus = exports.DeploymentCommands = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
-
exports.serviceName = exports.FullReindexBaseDocument = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.RemoveTenantTagsDocument = exports.AddTenantTagsDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
5
|
+
exports.serviceName = exports.FullReindexBaseDocument = exports.LeaveTenantOrganizationDocument = exports.JoinTenantAsSuperAdminDocument = exports.RemoveTenantDocument = exports.RemoveTenantTagsDocument = exports.AddTenantTagsDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.GetReclameAquiTicketDetailsDocument = exports.ListReclameAquiInstancesDocument = exports.GetZendeskTicketDetailsDocument = void 0;
|
|
6
6
|
exports.getSdk = getSdk;
|
|
7
7
|
var AppInstanceStatus;
|
|
8
8
|
(function (AppInstanceStatus) {
|
|
@@ -418,6 +418,20 @@ exports.GetZendeskTicketDetailsDocument = `
|
|
|
418
418
|
getZendeskTicketDetails(tenantId: $tenantId, ticketId: $ticketId)
|
|
419
419
|
}
|
|
420
420
|
`;
|
|
421
|
+
exports.ListReclameAquiInstancesDocument = `
|
|
422
|
+
query listReclameAquiInstances($tenantId: TenantId!) {
|
|
423
|
+
listReclameAquiInstances(tenantId: $tenantId)
|
|
424
|
+
}
|
|
425
|
+
`;
|
|
426
|
+
exports.GetReclameAquiTicketDetailsDocument = `
|
|
427
|
+
query getReclameAquiTicketDetails($tenantId: TenantId!, $instanceId: String!, $ticketId: String!) {
|
|
428
|
+
getReclameAquiTicketDetails(
|
|
429
|
+
tenantId: $tenantId
|
|
430
|
+
instanceId: $instanceId
|
|
431
|
+
ticketId: $ticketId
|
|
432
|
+
)
|
|
433
|
+
}
|
|
434
|
+
`;
|
|
421
435
|
exports.CreateTenantDocument = `
|
|
422
436
|
mutation createTenant($input: CreateTenantInput!) {
|
|
423
437
|
createTenant(input: $input) {
|
|
@@ -572,6 +586,12 @@ function getSdk(requester) {
|
|
|
572
586
|
getZendeskTicketDetails(variables, options) {
|
|
573
587
|
return requester(exports.GetZendeskTicketDetailsDocument, variables, options);
|
|
574
588
|
},
|
|
589
|
+
listReclameAquiInstances(variables, options) {
|
|
590
|
+
return requester(exports.ListReclameAquiInstancesDocument, variables, options);
|
|
591
|
+
},
|
|
592
|
+
getReclameAquiTicketDetails(variables, options) {
|
|
593
|
+
return requester(exports.GetReclameAquiTicketDetailsDocument, variables, options);
|
|
594
|
+
},
|
|
575
595
|
createTenant(variables, options) {
|
|
576
596
|
return requester(exports.CreateTenantDocument, variables, options);
|
|
577
597
|
},
|
|
@@ -343,10 +343,10 @@ export type ReclameAquiTicketCompany = {
|
|
|
343
343
|
name: Scalars['String']['output'];
|
|
344
344
|
};
|
|
345
345
|
export type ReclameAquiTicketCustomer = {
|
|
346
|
-
email?: Maybe<Scalars['String']['output']
|
|
346
|
+
email?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
347
347
|
id?: Maybe<Scalars['ID']['output']>;
|
|
348
348
|
name?: Maybe<Scalars['String']['output']>;
|
|
349
|
-
phone?: Maybe<Scalars['String']['output']
|
|
349
|
+
phone?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
|
|
350
350
|
};
|
|
351
351
|
export type ReclameAquiTicketEvaluationResponse = {
|
|
352
352
|
success: Scalars['Boolean']['output'];
|