@droz-js/sdk 0.9.82 → 0.9.84
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/drozbot.d.ts +12 -0
- package/src/sdks/drozbot.d.ts +80 -1
- package/src/sdks/drozbot.js +59 -1
- package/src/sdks/nucleus.d.ts +7 -3
- package/src/sdks/nucleus.js +7 -3
package/package.json
CHANGED
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
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -359,6 +359,10 @@ export declare enum CustomerIndex {
|
|
|
359
359
|
ByExternalId = "byExternalId",
|
|
360
360
|
ByPhone = "byPhone"
|
|
361
361
|
}
|
|
362
|
+
export type CustomerSearchResults = {
|
|
363
|
+
nodes: Array<Customer>;
|
|
364
|
+
stats: SearchResultsStats;
|
|
365
|
+
};
|
|
362
366
|
export declare enum CustomerStatus {
|
|
363
367
|
Active = "Active",
|
|
364
368
|
Archived = "Archived",
|
|
@@ -740,7 +744,7 @@ export type Query = {
|
|
|
740
744
|
listStateMachineConfigsByStatus: StateMachineConfigConnection;
|
|
741
745
|
listSystemRoles: Array<Role>;
|
|
742
746
|
searchAgents: AgentConnection;
|
|
743
|
-
searchCustomers:
|
|
747
|
+
searchCustomers: CustomerSearchResults;
|
|
744
748
|
searchSessions: Array<IndexedSession>;
|
|
745
749
|
version?: Maybe<Scalars['String']['output']>;
|
|
746
750
|
};
|
|
@@ -1461,7 +1465,7 @@ export type SearchCustomersQueryVariables = Exact<{
|
|
|
1461
1465
|
export type SearchCustomersQuery = {
|
|
1462
1466
|
searchCustomers: {
|
|
1463
1467
|
nodes: Array<CustomerFragment>;
|
|
1464
|
-
|
|
1468
|
+
stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
|
|
1465
1469
|
};
|
|
1466
1470
|
};
|
|
1467
1471
|
export type CreateCustomerMutationVariables = Exact<{
|
|
@@ -1805,7 +1809,7 @@ export declare const RemoveSystemCredentialsDocument = "\n mutation removeSys
|
|
|
1805
1809
|
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1806
1810
|
export declare const BatchGetCustomersByIdDocument = "\n query batchGetCustomersById($ids: [ID!]!) {\n batchGetCustomersById(ids: $ids) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1807
1811
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1808
|
-
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n
|
|
1812
|
+
export declare const SearchCustomersDocument = "\n query searchCustomers($query: String, $page: Number) {\n searchCustomers(query: $query, page: $page) {\n nodes {\n ...customer\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1809
1813
|
export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1810
1814
|
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
|
1811
1815
|
export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n apps {\n id\n name\n }\n status\n createdAt\n updatedAt\n}\n ";
|
package/src/sdks/nucleus.js
CHANGED