@droz-js/sdk 0.15.4 → 0.15.5
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 +33 -0
- package/src/drozchat-ws.d.ts +12 -5
- package/src/drozchat.d.ts +12 -5
- package/src/sdks/drozbot.d.ts +317 -0
- package/src/sdks/drozbot.js +255 -1
- package/src/sdks/drozchat.d.ts +40 -10
- package/src/sdks/drozchat.js +31 -11
package/package.json
CHANGED
package/src/drozbot.d.ts
CHANGED
|
@@ -57,6 +57,39 @@ declare const DrozBot_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
57
57
|
predictIntent(variables: import("./sdks/drozbot").Exact<{
|
|
58
58
|
input: import("./sdks/drozbot").PredictIntentInput;
|
|
59
59
|
}>, options?: unknown): Promise<import("./sdks/drozbot").PredictIntentMutation>;
|
|
60
|
+
fetchDrozbotTalkAnalysisDataset(variables?: import("./sdks/drozbot").Exact<{
|
|
61
|
+
botId?: import("./sdks/drozbot").InputMaybe<import("./sdks/drozbot").Scalars["Int"]["input"]>;
|
|
62
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").FetchDrozbotTalkAnalysisDatasetQuery>;
|
|
63
|
+
drozbotAiTalkAnalysisInputs(variables?: import("./sdks/drozbot").Exact<{
|
|
64
|
+
status?: import("./sdks/drozbot").InputMaybe<import("./sdks/drozbot").DrozbotAiTalkAnalysisProcessingStatus>;
|
|
65
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").DrozbotAiTalkAnalysisInputsQuery>;
|
|
66
|
+
drozbotAiTalkAnalysisPendingRetries(variables?: import("./sdks/drozbot").Exact<{
|
|
67
|
+
[key: string]: never;
|
|
68
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").DrozbotAiTalkAnalysisPendingRetriesQuery>;
|
|
69
|
+
drozbotTalkAnalysisIntentions(variables: import("./sdks/drozbot").Exact<{
|
|
70
|
+
botId: import("./sdks/drozbot").Scalars["Int"]["input"];
|
|
71
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").DrozbotTalkAnalysisIntentionsQuery>;
|
|
72
|
+
getDrozbotTalkAnalysis(variables: import("./sdks/drozbot").Exact<{
|
|
73
|
+
talkId: import("./sdks/drozbot").Scalars["Int"]["input"];
|
|
74
|
+
botId: import("./sdks/drozbot").Scalars["Int"]["input"];
|
|
75
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").GetDrozbotTalkAnalysisQuery>;
|
|
76
|
+
listDrozbotTalkAnalyses(variables: import("./sdks/drozbot").Exact<{
|
|
77
|
+
botId: import("./sdks/drozbot").Scalars["Int"]["input"];
|
|
78
|
+
next?: import("./sdks/drozbot").InputMaybe<import("./sdks/drozbot").Scalars["Base64"]["input"]>;
|
|
79
|
+
limit?: import("./sdks/drozbot").InputMaybe<import("./sdks/drozbot").Scalars["Int"]["input"]>;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").ListDrozbotTalkAnalysesQuery>;
|
|
81
|
+
triggerDrozbotTalkAnalysisIngest(variables?: import("./sdks/drozbot").Exact<{
|
|
82
|
+
botId?: import("./sdks/drozbot").InputMaybe<import("./sdks/drozbot").Scalars["Int"]["input"]>;
|
|
83
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").TriggerDrozbotTalkAnalysisIngestMutation>;
|
|
84
|
+
triggerDrozbotTalkAnalysisBatch(variables?: import("./sdks/drozbot").Exact<{
|
|
85
|
+
[key: string]: never;
|
|
86
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").TriggerDrozbotTalkAnalysisBatchMutation>;
|
|
87
|
+
analyzeDrozbotTalk(variables: import("./sdks/drozbot").Exact<{
|
|
88
|
+
input: import("./sdks/drozbot").AnalyzeDrozbotTalkInput;
|
|
89
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").AnalyzeDrozbotTalkMutation>;
|
|
90
|
+
evaluateDrozbotTalkAnalysisOutput(variables: import("./sdks/drozbot").Exact<{
|
|
91
|
+
input: import("./sdks/drozbot").EvaluateDrozbotTalkAnalysisOutputInput;
|
|
92
|
+
}>, options?: unknown): Promise<import("./sdks/drozbot").EvaluateDrozbotTalkAnalysisOutputMutation>;
|
|
60
93
|
listWhatsAppBots(variables?: import("./sdks/drozbot").Exact<{
|
|
61
94
|
[key: string]: never;
|
|
62
95
|
}>, options?: unknown): Promise<import("./sdks/drozbot").ListWhatsAppBotsQuery>;
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -227,21 +227,28 @@ declare const DrozChatWs_base: new () => {
|
|
|
227
227
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
228
228
|
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
229
229
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
230
|
-
|
|
230
|
+
listTriggers(variables?: import("./sdks/drozchat").Exact<{
|
|
231
231
|
[key: string]: never;
|
|
232
232
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTriggersQuery>;
|
|
233
|
-
|
|
233
|
+
listTriggersByEventType(variables: import("./sdks/drozchat").Exact<{
|
|
234
|
+
eventType: import("./sdks/drozchat").TriggerEventType;
|
|
235
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTriggersByEventTypeQuery>;
|
|
236
|
+
getTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
234
237
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
235
238
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTriggerQuery>;
|
|
236
|
-
|
|
239
|
+
createTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
237
240
|
input: import("./sdks/drozchat").CreateTriggerInput;
|
|
238
241
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTriggerMutation>;
|
|
239
|
-
|
|
242
|
+
updateTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
240
243
|
input: import("./sdks/drozchat").UpdateTriggerInput;
|
|
241
244
|
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateTriggerMutation>;
|
|
242
|
-
|
|
245
|
+
deleteTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
243
246
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
244
247
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTriggerMutation>;
|
|
248
|
+
reorderTriggersByEventType(variables: import("./sdks/drozchat").Exact<{
|
|
249
|
+
eventType: import("./sdks/drozchat").TriggerEventType;
|
|
250
|
+
input: Array<import("./sdks/drozchat").TriggerPriorityInput> | import("./sdks/drozchat").TriggerPriorityInput;
|
|
251
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ReorderTriggersByEventTypeMutation>;
|
|
245
252
|
getView(variables: import("./sdks/drozchat").Exact<{
|
|
246
253
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
247
254
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetViewQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -230,21 +230,28 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
230
230
|
onTicketMessage(variables: import("./sdks/drozchat").Exact<{
|
|
231
231
|
ticketId: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
232
232
|
}>, options?: unknown): AsyncIterableIterator<import("./sdks/drozchat").OnTicketMessageSubscription>;
|
|
233
|
-
|
|
233
|
+
listTriggers(variables?: import("./sdks/drozchat").Exact<{
|
|
234
234
|
[key: string]: never;
|
|
235
235
|
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTriggersQuery>;
|
|
236
|
-
|
|
236
|
+
listTriggersByEventType(variables: import("./sdks/drozchat").Exact<{
|
|
237
|
+
eventType: import("./sdks/drozchat").TriggerEventType;
|
|
238
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ListTriggersByEventTypeQuery>;
|
|
239
|
+
getTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
237
240
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
238
241
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTriggerQuery>;
|
|
239
|
-
|
|
242
|
+
createTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
240
243
|
input: import("./sdks/drozchat").CreateTriggerInput;
|
|
241
244
|
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTriggerMutation>;
|
|
242
|
-
|
|
245
|
+
updateTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
243
246
|
input: import("./sdks/drozchat").UpdateTriggerInput;
|
|
244
247
|
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateTriggerMutation>;
|
|
245
|
-
|
|
248
|
+
deleteTrigger(variables: import("./sdks/drozchat").Exact<{
|
|
246
249
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
247
250
|
}>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTriggerMutation>;
|
|
251
|
+
reorderTriggersByEventType(variables: import("./sdks/drozchat").Exact<{
|
|
252
|
+
eventType: import("./sdks/drozchat").TriggerEventType;
|
|
253
|
+
input: Array<import("./sdks/drozchat").TriggerPriorityInput> | import("./sdks/drozchat").TriggerPriorityInput;
|
|
254
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").ReorderTriggersByEventTypeMutation>;
|
|
248
255
|
getView(variables: import("./sdks/drozchat").Exact<{
|
|
249
256
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
250
257
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetViewQuery>;
|
package/src/sdks/drozbot.d.ts
CHANGED
|
@@ -149,6 +149,24 @@ export type AiActionVariableValueInput = {
|
|
|
149
149
|
key: Scalars['String']['input'];
|
|
150
150
|
value: Scalars['String']['input'];
|
|
151
151
|
};
|
|
152
|
+
export type AnalyzeDrozbotTalkInput = {
|
|
153
|
+
botId: Scalars['Int']['input'];
|
|
154
|
+
createdDate: Scalars['String']['input'];
|
|
155
|
+
rows: Array<AnalyzeDrozbotTalkRowInput>;
|
|
156
|
+
status: Scalars['String']['input'];
|
|
157
|
+
talkId: Scalars['Int']['input'];
|
|
158
|
+
};
|
|
159
|
+
export type AnalyzeDrozbotTalkRowInput = {
|
|
160
|
+
bot: Scalars['String']['input'];
|
|
161
|
+
botMsgType: Scalars['String']['input'];
|
|
162
|
+
createdDate: Scalars['String']['input'];
|
|
163
|
+
drozAiNlpResponse?: InputMaybe<Scalars['Boolean']['input']>;
|
|
164
|
+
id: Scalars['String']['input'];
|
|
165
|
+
typeOfFeedback?: InputMaybe<Scalars['String']['input']>;
|
|
166
|
+
typeOfNlp?: InputMaybe<Scalars['String']['input']>;
|
|
167
|
+
user?: InputMaybe<Scalars['String']['input']>;
|
|
168
|
+
userMsgType?: InputMaybe<Scalars['String']['input']>;
|
|
169
|
+
};
|
|
152
170
|
export declare enum AppInstanceStatus {
|
|
153
171
|
Active = "Active",
|
|
154
172
|
Failing = "Failing",
|
|
@@ -317,6 +335,160 @@ export type DrozbotAiHumanizedAnswerResult = {
|
|
|
317
335
|
actions: Array<DrozbotAiAction>;
|
|
318
336
|
message_to_user: Scalars['String']['output'];
|
|
319
337
|
};
|
|
338
|
+
export type DrozbotAiTalkAnalysisInput = {
|
|
339
|
+
attempts: Array<DrozbotTalkAnalysisAttempt>;
|
|
340
|
+
batchJobId?: Maybe<Scalars['String']['output']>;
|
|
341
|
+
botId: Scalars['Int']['output'];
|
|
342
|
+
errorMessage?: Maybe<Scalars['String']['output']>;
|
|
343
|
+
processingStatus: DrozbotAiTalkAnalysisProcessingStatus;
|
|
344
|
+
retryCount: Scalars['Int']['output'];
|
|
345
|
+
submittedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
346
|
+
talkId: Scalars['Int']['output'];
|
|
347
|
+
};
|
|
348
|
+
export declare enum DrozbotAiTalkAnalysisProcessingStatus {
|
|
349
|
+
Done = "DONE",
|
|
350
|
+
Failed = "FAILED",
|
|
351
|
+
Pending = "PENDING",
|
|
352
|
+
Submitted = "SUBMITTED"
|
|
353
|
+
}
|
|
354
|
+
export declare enum DrozbotBatchJobStatus {
|
|
355
|
+
Collecting = "COLLECTING",
|
|
356
|
+
Done = "DONE",
|
|
357
|
+
Failed = "FAILED",
|
|
358
|
+
InProgress = "IN_PROGRESS"
|
|
359
|
+
}
|
|
360
|
+
export type DrozbotTalkAnalysis = {
|
|
361
|
+
analysis: DrozbotTalkAnalysisPayload;
|
|
362
|
+
botId: Scalars['Int']['output'];
|
|
363
|
+
createdDate: Scalars['String']['output'];
|
|
364
|
+
evaluation?: Maybe<DrozbotTalkAnalysisEvaluation>;
|
|
365
|
+
modelUsed: Scalars['String']['output'];
|
|
366
|
+
status: Scalars['String']['output'];
|
|
367
|
+
talkId: Scalars['Int']['output'];
|
|
368
|
+
};
|
|
369
|
+
export declare enum DrozbotTalkAnalysisAbandonmentType {
|
|
370
|
+
Frustrated = "frustrated",
|
|
371
|
+
HandoffAfterAttempt = "handoff_after_attempt",
|
|
372
|
+
Immediate = "immediate",
|
|
373
|
+
ImmediateHandoff = "immediate_handoff",
|
|
374
|
+
None = "none",
|
|
375
|
+
SatisfactionSurvey = "satisfaction_survey",
|
|
376
|
+
Silent = "silent"
|
|
377
|
+
}
|
|
378
|
+
export type DrozbotTalkAnalysisAggregates = {
|
|
379
|
+
csatFinal?: Maybe<Scalars['Float']['output']>;
|
|
380
|
+
csatStatus?: Maybe<Scalars['String']['output']>;
|
|
381
|
+
finalSentiment?: Maybe<Scalars['String']['output']>;
|
|
382
|
+
initialSentiment?: Maybe<Scalars['String']['output']>;
|
|
383
|
+
topIntents: Array<Scalars['String']['output']>;
|
|
384
|
+
};
|
|
385
|
+
export type DrozbotTalkAnalysisAttempt = {
|
|
386
|
+
batchCustomId?: Maybe<Scalars['String']['output']>;
|
|
387
|
+
batchJobId?: Maybe<Scalars['String']['output']>;
|
|
388
|
+
errorMessage: Scalars['String']['output'];
|
|
389
|
+
failedAt: Scalars['String']['output'];
|
|
390
|
+
};
|
|
391
|
+
export type DrozbotTalkAnalysisBreakdown = {
|
|
392
|
+
abandonmentType: Scalars['String']['output'];
|
|
393
|
+
cesLabel?: Maybe<Scalars['String']['output']>;
|
|
394
|
+
cesScore?: Maybe<Scalars['Int']['output']>;
|
|
395
|
+
clarityPrecision?: Maybe<Scalars['Int']['output']>;
|
|
396
|
+
csatScale?: Maybe<Scalars['Int']['output']>;
|
|
397
|
+
notEvaluable: Scalars['Boolean']['output'];
|
|
398
|
+
};
|
|
399
|
+
export type DrozbotTalkAnalysisConnection = {
|
|
400
|
+
nodes: Array<DrozbotTalkAnalysis>;
|
|
401
|
+
pageInfo: PageInfo;
|
|
402
|
+
};
|
|
403
|
+
export type DrozbotTalkAnalysisConversation = {
|
|
404
|
+
aggregates: DrozbotTalkAnalysisAggregates;
|
|
405
|
+
intent: DrozbotTalkAnalysisIntent;
|
|
406
|
+
sentiment: DrozbotTalkAnalysisSentimentData;
|
|
407
|
+
serviceQuality: DrozbotTalkAnalysisServiceQuality;
|
|
408
|
+
};
|
|
409
|
+
/**
|
|
410
|
+
* Label derived from the CES (Customer Effort Score). Measures how easy it was for the customer
|
|
411
|
+
* to get their issue resolved — distinct from satisfaction (DrozbotTalkAnalysisSatisfactionLevel),
|
|
412
|
+
* which measures the outcome quality rather than the resolution effort.
|
|
413
|
+
*/
|
|
414
|
+
export declare enum DrozbotTalkAnalysisCustomerEffortLabel {
|
|
415
|
+
Excellent = "excellent",
|
|
416
|
+
Good = "good",
|
|
417
|
+
Poor = "poor",
|
|
418
|
+
Regular = "regular"
|
|
419
|
+
}
|
|
420
|
+
export type DrozbotTalkAnalysisDatasetItem = {
|
|
421
|
+
botId: Scalars['Int']['output'];
|
|
422
|
+
createdDate?: Maybe<Scalars['String']['output']>;
|
|
423
|
+
rows: Array<DrozbotTalkAnalysisDatasetRow>;
|
|
424
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
425
|
+
talkId: Scalars['Int']['output'];
|
|
426
|
+
};
|
|
427
|
+
export type DrozbotTalkAnalysisDatasetRow = {
|
|
428
|
+
bot?: Maybe<Scalars['String']['output']>;
|
|
429
|
+
botMsgType?: Maybe<Scalars['String']['output']>;
|
|
430
|
+
createdDate?: Maybe<Scalars['String']['output']>;
|
|
431
|
+
id?: Maybe<Scalars['String']['output']>;
|
|
432
|
+
typeOfNlp?: Maybe<Scalars['String']['output']>;
|
|
433
|
+
user?: Maybe<Scalars['String']['output']>;
|
|
434
|
+
userMsgType?: Maybe<Scalars['String']['output']>;
|
|
435
|
+
};
|
|
436
|
+
export type DrozbotTalkAnalysisEvaluation = {
|
|
437
|
+
coherent: Scalars['Boolean']['output'];
|
|
438
|
+
confidenceScore: Scalars['Float']['output'];
|
|
439
|
+
criticalIssues: Array<Scalars['String']['output']>;
|
|
440
|
+
evaluatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
441
|
+
grounded: Scalars['Boolean']['output'];
|
|
442
|
+
model?: Maybe<Scalars['String']['output']>;
|
|
443
|
+
passed: Scalars['Boolean']['output'];
|
|
444
|
+
reasoning: Scalars['String']['output'];
|
|
445
|
+
threshold: Scalars['Float']['output'];
|
|
446
|
+
};
|
|
447
|
+
export type DrozbotTalkAnalysisIntent = {
|
|
448
|
+
dominantIntent?: Maybe<Scalars['String']['output']>;
|
|
449
|
+
globalConfidence?: Maybe<Scalars['Int']['output']>;
|
|
450
|
+
justification?: Maybe<Scalars['String']['output']>;
|
|
451
|
+
secondaryIntents: Array<Scalars['String']['output']>;
|
|
452
|
+
};
|
|
453
|
+
export type DrozbotTalkAnalysisPayload = {
|
|
454
|
+
conversation: DrozbotTalkAnalysisConversation;
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* Overall satisfaction/quality rating scale. Used for CSAT status and service quality assessment.
|
|
458
|
+
* Values coincide with CustomerEffortLabel but represent a distinct concept — satisfaction can be
|
|
459
|
+
* poor even when effort was low, and vice versa.
|
|
460
|
+
*/
|
|
461
|
+
export declare enum DrozbotTalkAnalysisSatisfactionLevel {
|
|
462
|
+
Excellent = "excellent",
|
|
463
|
+
Good = "good",
|
|
464
|
+
Poor = "poor",
|
|
465
|
+
Regular = "regular"
|
|
466
|
+
}
|
|
467
|
+
export declare enum DrozbotTalkAnalysisSentiment {
|
|
468
|
+
Negative = "negative",
|
|
469
|
+
Neutral = "neutral",
|
|
470
|
+
Positive = "positive"
|
|
471
|
+
}
|
|
472
|
+
export type DrozbotTalkAnalysisSentimentData = {
|
|
473
|
+
averageSentiment: Scalars['String']['output'];
|
|
474
|
+
finalSentiment?: Maybe<Scalars['String']['output']>;
|
|
475
|
+
initialSentiment?: Maybe<Scalars['String']['output']>;
|
|
476
|
+
observation?: Maybe<Scalars['String']['output']>;
|
|
477
|
+
};
|
|
478
|
+
export type DrozbotTalkAnalysisServiceQuality = {
|
|
479
|
+
breakdown: DrozbotTalkAnalysisBreakdown;
|
|
480
|
+
csatFinal?: Maybe<Scalars['Float']['output']>;
|
|
481
|
+
reason?: Maybe<Scalars['String']['output']>;
|
|
482
|
+
status?: Maybe<Scalars['String']['output']>;
|
|
483
|
+
};
|
|
484
|
+
export type EvaluateDrozbotTalkAnalysisOutputInput = {
|
|
485
|
+
botId: Scalars['Int']['input'];
|
|
486
|
+
finalOutput?: InputMaybe<Scalars['JSON']['input']>;
|
|
487
|
+
processedData?: InputMaybe<Scalars['JSON']['input']>;
|
|
488
|
+
rawData?: InputMaybe<Scalars['JSON']['input']>;
|
|
489
|
+
talkId: Scalars['Int']['input'];
|
|
490
|
+
threshold?: InputMaybe<Scalars['Float']['input']>;
|
|
491
|
+
};
|
|
320
492
|
export type I18nText = {
|
|
321
493
|
lang: Scalars['Locale']['output'];
|
|
322
494
|
value: Scalars['String']['output'];
|
|
@@ -345,10 +517,12 @@ export type IntentDictionaryEntityInput = {
|
|
|
345
517
|
};
|
|
346
518
|
export type Mutation = {
|
|
347
519
|
activeTrigger?: Maybe<Scalars['Void']['output']>;
|
|
520
|
+
analyzeDrozbotTalk: DrozbotTalkAnalysis;
|
|
348
521
|
createDrozBotInstance: DrozBotInstance;
|
|
349
522
|
createDrozBotTicket: DrozBotTicket;
|
|
350
523
|
createDrozBotTicketComment: DrozBotTicketComment;
|
|
351
524
|
createDrozBotTicketComments: Array<DrozBotTicketComment>;
|
|
525
|
+
evaluateDrozbotTalkAnalysisOutput: DrozbotTalkAnalysisEvaluation;
|
|
352
526
|
predictIntent?: Maybe<Intent>;
|
|
353
527
|
registerRootCredential?: Maybe<Scalars['Void']['output']>;
|
|
354
528
|
removeDrozBotInstance: DrozBotInstance;
|
|
@@ -356,6 +530,8 @@ export type Mutation = {
|
|
|
356
530
|
runDrozbotAiAction: DrozbotAiActionResult;
|
|
357
531
|
runDrozbotAiActionHumanizedAnswer: DrozbotAiHumanizedAnswerResult;
|
|
358
532
|
syncChatbotConversations: SyncChatbotConversationsResult;
|
|
533
|
+
triggerDrozbotTalkAnalysisBatch: Scalars['Int']['output'];
|
|
534
|
+
triggerDrozbotTalkAnalysisIngest: Scalars['Int']['output'];
|
|
359
535
|
updateDrozBotInstance: DrozBotInstance;
|
|
360
536
|
upsertIntentDictionary?: Maybe<IntentDictionary>;
|
|
361
537
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -363,6 +539,9 @@ export type Mutation = {
|
|
|
363
539
|
export type MutationActiveTriggerArgs = {
|
|
364
540
|
input: ActiveTriggerInput;
|
|
365
541
|
};
|
|
542
|
+
export type MutationAnalyzeDrozbotTalkArgs = {
|
|
543
|
+
input: AnalyzeDrozbotTalkInput;
|
|
544
|
+
};
|
|
366
545
|
export type MutationCreateDrozBotInstanceArgs = {
|
|
367
546
|
input: CreateDrozBotInstanceInput;
|
|
368
547
|
};
|
|
@@ -375,6 +554,9 @@ export type MutationCreateDrozBotTicketCommentArgs = {
|
|
|
375
554
|
export type MutationCreateDrozBotTicketCommentsArgs = {
|
|
376
555
|
input: CreateDrozBotTicketCommentsInput;
|
|
377
556
|
};
|
|
557
|
+
export type MutationEvaluateDrozbotTalkAnalysisOutputArgs = {
|
|
558
|
+
input: EvaluateDrozbotTalkAnalysisOutputInput;
|
|
559
|
+
};
|
|
378
560
|
export type MutationPredictIntentArgs = {
|
|
379
561
|
input: PredictIntentInput;
|
|
380
562
|
};
|
|
@@ -396,6 +578,9 @@ export type MutationRunDrozbotAiActionHumanizedAnswerArgs = {
|
|
|
396
578
|
export type MutationSyncChatbotConversationsArgs = {
|
|
397
579
|
input: SyncChatbotConversationsInput;
|
|
398
580
|
};
|
|
581
|
+
export type MutationTriggerDrozbotTalkAnalysisIngestArgs = {
|
|
582
|
+
botId?: InputMaybe<Scalars['Int']['input']>;
|
|
583
|
+
};
|
|
399
584
|
export type MutationUpdateDrozBotInstanceArgs = {
|
|
400
585
|
input: UpdateDrozBotInstanceInput;
|
|
401
586
|
};
|
|
@@ -431,29 +616,53 @@ export type PredictIntentInput = {
|
|
|
431
616
|
};
|
|
432
617
|
export type Query = {
|
|
433
618
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
619
|
+
drozbotAiTalkAnalysisInputs: Array<DrozbotAiTalkAnalysisInput>;
|
|
620
|
+
drozbotAiTalkAnalysisPendingRetries: Array<DrozbotAiTalkAnalysisInput>;
|
|
621
|
+
drozbotTalkAnalysisIntentions: Array<Scalars['String']['output']>;
|
|
622
|
+
fetchDrozbotTalkAnalysisDataset: Array<DrozbotTalkAnalysisDatasetItem>;
|
|
434
623
|
getCustomerByPhone?: Maybe<DrozBotCustomer>;
|
|
435
624
|
getDrozBotInstance?: Maybe<DrozBotInstance>;
|
|
625
|
+
getDrozbotTalkAnalysis?: Maybe<DrozbotTalkAnalysis>;
|
|
436
626
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
437
627
|
getIntentDictionary?: Maybe<IntentDictionary>;
|
|
438
628
|
getWhatsAppBotDetails?: Maybe<DrozBotWhatsAppBot>;
|
|
439
629
|
listDrozBotInstances: Array<Maybe<DrozBotInstance>>;
|
|
630
|
+
listDrozbotTalkAnalyses: DrozbotTalkAnalysisConnection;
|
|
440
631
|
listIntentDictionary: Array<Maybe<IntentDictionary>>;
|
|
441
632
|
listWhatsAppBotTemplates: Array<DrozBotWhatsAppTemplate>;
|
|
442
633
|
listWhatsAppBots: Array<DrozBotWhatsAppBot>;
|
|
443
634
|
version?: Maybe<Scalars['String']['output']>;
|
|
444
635
|
};
|
|
636
|
+
export type QueryDrozbotAiTalkAnalysisInputsArgs = {
|
|
637
|
+
status?: InputMaybe<DrozbotAiTalkAnalysisProcessingStatus>;
|
|
638
|
+
};
|
|
639
|
+
export type QueryDrozbotTalkAnalysisIntentionsArgs = {
|
|
640
|
+
botId: Scalars['Int']['input'];
|
|
641
|
+
};
|
|
642
|
+
export type QueryFetchDrozbotTalkAnalysisDatasetArgs = {
|
|
643
|
+
botId?: InputMaybe<Scalars['Int']['input']>;
|
|
644
|
+
};
|
|
445
645
|
export type QueryGetCustomerByPhoneArgs = {
|
|
446
646
|
phone: Scalars['PhoneNumber']['input'];
|
|
447
647
|
};
|
|
448
648
|
export type QueryGetDrozBotInstanceArgs = {
|
|
449
649
|
id: Scalars['ID']['input'];
|
|
450
650
|
};
|
|
651
|
+
export type QueryGetDrozbotTalkAnalysisArgs = {
|
|
652
|
+
botId: Scalars['Int']['input'];
|
|
653
|
+
talkId: Scalars['Int']['input'];
|
|
654
|
+
};
|
|
451
655
|
export type QueryGetIntentDictionaryArgs = {
|
|
452
656
|
id: Scalars['ID']['input'];
|
|
453
657
|
};
|
|
454
658
|
export type QueryGetWhatsAppBotDetailsArgs = {
|
|
455
659
|
id: Scalars['ID']['input'];
|
|
456
660
|
};
|
|
661
|
+
export type QueryListDrozbotTalkAnalysesArgs = {
|
|
662
|
+
botId: Scalars['Int']['input'];
|
|
663
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
664
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
665
|
+
};
|
|
457
666
|
export type QueryListWhatsAppBotTemplatesArgs = {
|
|
458
667
|
id: Scalars['ID']['input'];
|
|
459
668
|
};
|
|
@@ -543,6 +752,12 @@ export declare enum Typenames {
|
|
|
543
752
|
DrozBotRootAuth = "DrozBotRootAuth",
|
|
544
753
|
DrozBotSession = "DrozBotSession",
|
|
545
754
|
DrozbotAiAction = "DrozbotAiAction",
|
|
755
|
+
DrozbotAiTalkAnalysis = "DrozbotAiTalkAnalysis",
|
|
756
|
+
DrozbotAiTalkAnalysisInput = "DrozbotAiTalkAnalysisInput",
|
|
757
|
+
DrozbotTalkAnalysis = "DrozbotTalkAnalysis",
|
|
758
|
+
DrozbotTalkAnalysisBatchJob = "DrozbotTalkAnalysisBatchJob",
|
|
759
|
+
DrozbotTalkAnalysisEvaluation = "DrozbotTalkAnalysisEvaluation",
|
|
760
|
+
DrozbotTalkAnalysisIntention = "DrozbotTalkAnalysisIntention",
|
|
546
761
|
GraphqlConnections = "GraphqlConnections",
|
|
547
762
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
548
763
|
IntentDictionary = "IntentDictionary"
|
|
@@ -668,6 +883,85 @@ export type PredictIntentMutationVariables = Exact<{
|
|
|
668
883
|
export type PredictIntentMutation = {
|
|
669
884
|
predictIntent?: Maybe<IntentFragment>;
|
|
670
885
|
};
|
|
886
|
+
export type DrozbotTalkAnalysisInputFragment = (Pick<DrozbotAiTalkAnalysisInput, 'talkId' | 'botId' | 'processingStatus' | 'batchJobId' | 'submittedAt' | 'errorMessage' | 'retryCount'> & {
|
|
887
|
+
attempts: Array<Pick<DrozbotTalkAnalysisAttempt, 'errorMessage' | 'failedAt' | 'batchJobId' | 'batchCustomId'>>;
|
|
888
|
+
});
|
|
889
|
+
export type DrozbotTalkAnalysisEvaluationFragment = Pick<DrozbotTalkAnalysisEvaluation, 'model' | 'evaluatedAt' | 'confidenceScore' | 'threshold' | 'passed' | 'grounded' | 'coherent' | 'reasoning' | 'criticalIssues'>;
|
|
890
|
+
export type DrozbotTalkAnalysisFragment = (Pick<DrozbotTalkAnalysis, 'talkId' | 'botId' | 'status' | 'createdDate' | 'modelUsed'> & {
|
|
891
|
+
analysis: {
|
|
892
|
+
conversation: {
|
|
893
|
+
aggregates: Pick<DrozbotTalkAnalysisAggregates, 'csatFinal' | 'csatStatus' | 'initialSentiment' | 'finalSentiment' | 'topIntents'>;
|
|
894
|
+
serviceQuality: (Pick<DrozbotTalkAnalysisServiceQuality, 'status' | 'csatFinal' | 'reason'> & {
|
|
895
|
+
breakdown: Pick<DrozbotTalkAnalysisBreakdown, 'clarityPrecision' | 'cesScore' | 'cesLabel' | 'csatScale' | 'abandonmentType' | 'notEvaluable'>;
|
|
896
|
+
});
|
|
897
|
+
sentiment: Pick<DrozbotTalkAnalysisSentimentData, 'initialSentiment' | 'averageSentiment' | 'finalSentiment' | 'observation'>;
|
|
898
|
+
intent: Pick<DrozbotTalkAnalysisIntent, 'dominantIntent' | 'globalConfidence' | 'justification' | 'secondaryIntents'>;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
evaluation?: Maybe<DrozbotTalkAnalysisEvaluationFragment>;
|
|
902
|
+
});
|
|
903
|
+
export type FetchDrozbotTalkAnalysisDatasetQueryVariables = Exact<{
|
|
904
|
+
botId?: InputMaybe<Scalars['Int']['input']>;
|
|
905
|
+
}>;
|
|
906
|
+
export type FetchDrozbotTalkAnalysisDatasetQuery = {
|
|
907
|
+
fetchDrozbotTalkAnalysisDataset: Array<(Pick<DrozbotTalkAnalysisDatasetItem, 'talkId' | 'botId' | 'status' | 'createdDate'> & {
|
|
908
|
+
rows: Array<Pick<DrozbotTalkAnalysisDatasetRow, 'id' | 'createdDate' | 'bot' | 'botMsgType' | 'user' | 'userMsgType' | 'typeOfNlp'>>;
|
|
909
|
+
})>;
|
|
910
|
+
};
|
|
911
|
+
export type DrozbotAiTalkAnalysisInputsQueryVariables = Exact<{
|
|
912
|
+
status?: InputMaybe<DrozbotAiTalkAnalysisProcessingStatus>;
|
|
913
|
+
}>;
|
|
914
|
+
export type DrozbotAiTalkAnalysisInputsQuery = {
|
|
915
|
+
drozbotAiTalkAnalysisInputs: Array<DrozbotTalkAnalysisInputFragment>;
|
|
916
|
+
};
|
|
917
|
+
export type DrozbotAiTalkAnalysisPendingRetriesQueryVariables = Exact<{
|
|
918
|
+
[key: string]: never;
|
|
919
|
+
}>;
|
|
920
|
+
export type DrozbotAiTalkAnalysisPendingRetriesQuery = {
|
|
921
|
+
drozbotAiTalkAnalysisPendingRetries: Array<DrozbotTalkAnalysisInputFragment>;
|
|
922
|
+
};
|
|
923
|
+
export type DrozbotTalkAnalysisIntentionsQueryVariables = Exact<{
|
|
924
|
+
botId: Scalars['Int']['input'];
|
|
925
|
+
}>;
|
|
926
|
+
export type DrozbotTalkAnalysisIntentionsQuery = Pick<Query, 'drozbotTalkAnalysisIntentions'>;
|
|
927
|
+
export type GetDrozbotTalkAnalysisQueryVariables = Exact<{
|
|
928
|
+
talkId: Scalars['Int']['input'];
|
|
929
|
+
botId: Scalars['Int']['input'];
|
|
930
|
+
}>;
|
|
931
|
+
export type GetDrozbotTalkAnalysisQuery = {
|
|
932
|
+
getDrozbotTalkAnalysis?: Maybe<DrozbotTalkAnalysisFragment>;
|
|
933
|
+
};
|
|
934
|
+
export type ListDrozbotTalkAnalysesQueryVariables = Exact<{
|
|
935
|
+
botId: Scalars['Int']['input'];
|
|
936
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
937
|
+
limit?: InputMaybe<Scalars['Int']['input']>;
|
|
938
|
+
}>;
|
|
939
|
+
export type ListDrozbotTalkAnalysesQuery = {
|
|
940
|
+
listDrozbotTalkAnalyses: {
|
|
941
|
+
nodes: Array<DrozbotTalkAnalysisFragment>;
|
|
942
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
943
|
+
};
|
|
944
|
+
};
|
|
945
|
+
export type TriggerDrozbotTalkAnalysisIngestMutationVariables = Exact<{
|
|
946
|
+
botId?: InputMaybe<Scalars['Int']['input']>;
|
|
947
|
+
}>;
|
|
948
|
+
export type TriggerDrozbotTalkAnalysisIngestMutation = Pick<Mutation, 'triggerDrozbotTalkAnalysisIngest'>;
|
|
949
|
+
export type TriggerDrozbotTalkAnalysisBatchMutationVariables = Exact<{
|
|
950
|
+
[key: string]: never;
|
|
951
|
+
}>;
|
|
952
|
+
export type TriggerDrozbotTalkAnalysisBatchMutation = Pick<Mutation, 'triggerDrozbotTalkAnalysisBatch'>;
|
|
953
|
+
export type AnalyzeDrozbotTalkMutationVariables = Exact<{
|
|
954
|
+
input: AnalyzeDrozbotTalkInput;
|
|
955
|
+
}>;
|
|
956
|
+
export type AnalyzeDrozbotTalkMutation = {
|
|
957
|
+
analyzeDrozbotTalk: DrozbotTalkAnalysisFragment;
|
|
958
|
+
};
|
|
959
|
+
export type EvaluateDrozbotTalkAnalysisOutputMutationVariables = Exact<{
|
|
960
|
+
input: EvaluateDrozbotTalkAnalysisOutputInput;
|
|
961
|
+
}>;
|
|
962
|
+
export type EvaluateDrozbotTalkAnalysisOutputMutation = {
|
|
963
|
+
evaluateDrozbotTalkAnalysisOutput: DrozbotTalkAnalysisEvaluationFragment;
|
|
964
|
+
};
|
|
671
965
|
export type DrozBotWhatsAppBotFragment = Pick<DrozBotWhatsAppBot, 'id' | 'name' | 'enabled' | 'deleted' | 'channel' | 'providerChannel' | 'language' | 'phone'>;
|
|
672
966
|
export type DrozBotWhatsAppTemplateFragment = Pick<DrozBotWhatsAppTemplate, 'id' | 'templateName' | 'content' | 'contentButton' | 'language' | 'deleted' | 'approved' | 'type'>;
|
|
673
967
|
export type ListWhatsAppBotsQueryVariables = Exact<{
|
|
@@ -702,6 +996,9 @@ export declare const DrozBotTicketCommentFragmentDoc = "\n fragment drozBotTi
|
|
|
702
996
|
export declare const DrozBotCustomerFragmentDoc = "\n fragment drozBotCustomer on DrozBotCustomer {\n id\n name\n phones\n}\n ";
|
|
703
997
|
export declare const IntentDictionaryFragmentDoc = "\n fragment intentDictionary on IntentDictionary {\n id\n entities {\n label\n keys\n }\n createdAt\n updatedAt\n}\n ";
|
|
704
998
|
export declare const IntentFragmentDoc = "\n fragment intent on Intent {\n label\n score\n}\n ";
|
|
999
|
+
export declare const DrozbotTalkAnalysisInputFragmentDoc = "\n fragment drozbotTalkAnalysisInput on DrozbotAiTalkAnalysisInput {\n talkId\n botId\n processingStatus\n batchJobId\n submittedAt\n errorMessage\n retryCount\n attempts {\n errorMessage\n failedAt\n batchJobId\n batchCustomId\n }\n}\n ";
|
|
1000
|
+
export declare const DrozbotTalkAnalysisEvaluationFragmentDoc = "\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1001
|
+
export declare const DrozbotTalkAnalysisFragmentDoc = "\n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n ";
|
|
705
1002
|
export declare const DrozBotWhatsAppBotFragmentDoc = "\n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
706
1003
|
export declare const DrozBotWhatsAppTemplateFragmentDoc = "\n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
|
|
707
1004
|
export declare const RunDrozbotAiActionDocument = "\n mutation runDrozbotAiAction($input: RunAiActionInput!) {\n runDrozbotAiAction(input: $input) {\n actions\n setVariables {\n ...aiActionVariableValue\n }\n missingVariables\n message_to_user\n context\n }\n}\n \n fragment aiActionVariableValue on AiActionVariableValue {\n key\n value\n}\n ";
|
|
@@ -721,6 +1018,16 @@ export declare const GetIntentDictionaryDocument = "\n query getIntentDiction
|
|
|
721
1018
|
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 ";
|
|
722
1019
|
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 ";
|
|
723
1020
|
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 ";
|
|
1021
|
+
export declare const FetchDrozbotTalkAnalysisDatasetDocument = "\n query fetchDrozbotTalkAnalysisDataset($botId: Int) {\n fetchDrozbotTalkAnalysisDataset(botId: $botId) {\n talkId\n botId\n status\n createdDate\n rows {\n id\n createdDate\n bot\n botMsgType\n user\n userMsgType\n typeOfNlp\n }\n }\n}\n ";
|
|
1022
|
+
export declare const DrozbotAiTalkAnalysisInputsDocument = "\n query drozbotAiTalkAnalysisInputs($status: DrozbotAiTalkAnalysisProcessingStatus) {\n drozbotAiTalkAnalysisInputs(status: $status) {\n ...drozbotTalkAnalysisInput\n }\n}\n \n fragment drozbotTalkAnalysisInput on DrozbotAiTalkAnalysisInput {\n talkId\n botId\n processingStatus\n batchJobId\n submittedAt\n errorMessage\n retryCount\n attempts {\n errorMessage\n failedAt\n batchJobId\n batchCustomId\n }\n}\n ";
|
|
1023
|
+
export declare const DrozbotAiTalkAnalysisPendingRetriesDocument = "\n query drozbotAiTalkAnalysisPendingRetries {\n drozbotAiTalkAnalysisPendingRetries {\n ...drozbotTalkAnalysisInput\n }\n}\n \n fragment drozbotTalkAnalysisInput on DrozbotAiTalkAnalysisInput {\n talkId\n botId\n processingStatus\n batchJobId\n submittedAt\n errorMessage\n retryCount\n attempts {\n errorMessage\n failedAt\n batchJobId\n batchCustomId\n }\n}\n ";
|
|
1024
|
+
export declare const DrozbotTalkAnalysisIntentionsDocument = "\n query drozbotTalkAnalysisIntentions($botId: Int!) {\n drozbotTalkAnalysisIntentions(botId: $botId)\n}\n ";
|
|
1025
|
+
export declare const GetDrozbotTalkAnalysisDocument = "\n query getDrozbotTalkAnalysis($talkId: Int!, $botId: Int!) {\n getDrozbotTalkAnalysis(talkId: $talkId, botId: $botId) {\n ...drozbotTalkAnalysis\n }\n}\n \n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1026
|
+
export declare const ListDrozbotTalkAnalysesDocument = "\n query listDrozbotTalkAnalyses($botId: Int!, $next: Base64, $limit: Int) {\n listDrozbotTalkAnalyses(botId: $botId, next: $next, limit: $limit) {\n nodes {\n ...drozbotTalkAnalysis\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1027
|
+
export declare const TriggerDrozbotTalkAnalysisIngestDocument = "\n mutation triggerDrozbotTalkAnalysisIngest($botId: Int) {\n triggerDrozbotTalkAnalysisIngest(botId: $botId)\n}\n ";
|
|
1028
|
+
export declare const TriggerDrozbotTalkAnalysisBatchDocument = "\n mutation triggerDrozbotTalkAnalysisBatch {\n triggerDrozbotTalkAnalysisBatch\n}\n ";
|
|
1029
|
+
export declare const AnalyzeDrozbotTalkDocument = "\n mutation analyzeDrozbotTalk($input: AnalyzeDrozbotTalkInput!) {\n analyzeDrozbotTalk(input: $input) {\n ...drozbotTalkAnalysis\n }\n}\n \n fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {\n talkId\n botId\n status\n createdDate\n modelUsed\n analysis {\n conversation {\n aggregates {\n csatFinal\n csatStatus\n initialSentiment\n finalSentiment\n topIntents\n }\n serviceQuality {\n status\n csatFinal\n reason\n breakdown {\n clarityPrecision\n cesScore\n cesLabel\n csatScale\n abandonmentType\n notEvaluable\n }\n }\n sentiment {\n initialSentiment\n averageSentiment\n finalSentiment\n observation\n }\n intent {\n dominantIntent\n globalConfidence\n justification\n secondaryIntents\n }\n }\n }\n evaluation {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n\n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
1030
|
+
export declare const EvaluateDrozbotTalkAnalysisOutputDocument = "\n mutation evaluateDrozbotTalkAnalysisOutput($input: EvaluateDrozbotTalkAnalysisOutputInput!) {\n evaluateDrozbotTalkAnalysisOutput(input: $input) {\n ...drozbotTalkAnalysisEvaluation\n }\n}\n \n fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {\n model\n evaluatedAt\n confidenceScore\n threshold\n passed\n grounded\n coherent\n reasoning\n criticalIssues\n}\n ";
|
|
724
1031
|
export declare const ListWhatsAppBotsDocument = "\n query listWhatsAppBots {\n listWhatsAppBots {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
725
1032
|
export declare const GetWhatsAppBotDetailsDocument = "\n query getWhatsAppBotDetails($id: ID!) {\n getWhatsAppBotDetails(id: $id) {\n ...drozBotWhatsAppBot\n }\n}\n \n fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {\n id\n name\n enabled\n deleted\n channel\n providerChannel\n language\n phone\n}\n ";
|
|
726
1033
|
export declare const ListWhatsAppBotTemplatesDocument = "\n query listWhatsAppBotTemplates($id: ID!) {\n listWhatsAppBotTemplates(id: $id) {\n ...drozBotWhatsAppTemplate\n }\n}\n \n fragment drozBotWhatsAppTemplate on DrozBotWhatsAppTemplate {\n id\n templateName\n content\n contentButton\n language\n deleted\n approved\n type\n}\n ";
|
|
@@ -745,6 +1052,16 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
745
1052
|
listIntentDictionary(variables?: ListIntentDictionaryQueryVariables, options?: C): Promise<ListIntentDictionaryQuery>;
|
|
746
1053
|
upsertIntentDictionary(variables: UpsertIntentDictionaryMutationVariables, options?: C): Promise<UpsertIntentDictionaryMutation>;
|
|
747
1054
|
predictIntent(variables: PredictIntentMutationVariables, options?: C): Promise<PredictIntentMutation>;
|
|
1055
|
+
fetchDrozbotTalkAnalysisDataset(variables?: FetchDrozbotTalkAnalysisDatasetQueryVariables, options?: C): Promise<FetchDrozbotTalkAnalysisDatasetQuery>;
|
|
1056
|
+
drozbotAiTalkAnalysisInputs(variables?: DrozbotAiTalkAnalysisInputsQueryVariables, options?: C): Promise<DrozbotAiTalkAnalysisInputsQuery>;
|
|
1057
|
+
drozbotAiTalkAnalysisPendingRetries(variables?: DrozbotAiTalkAnalysisPendingRetriesQueryVariables, options?: C): Promise<DrozbotAiTalkAnalysisPendingRetriesQuery>;
|
|
1058
|
+
drozbotTalkAnalysisIntentions(variables: DrozbotTalkAnalysisIntentionsQueryVariables, options?: C): Promise<DrozbotTalkAnalysisIntentionsQuery>;
|
|
1059
|
+
getDrozbotTalkAnalysis(variables: GetDrozbotTalkAnalysisQueryVariables, options?: C): Promise<GetDrozbotTalkAnalysisQuery>;
|
|
1060
|
+
listDrozbotTalkAnalyses(variables: ListDrozbotTalkAnalysesQueryVariables, options?: C): Promise<ListDrozbotTalkAnalysesQuery>;
|
|
1061
|
+
triggerDrozbotTalkAnalysisIngest(variables?: TriggerDrozbotTalkAnalysisIngestMutationVariables, options?: C): Promise<TriggerDrozbotTalkAnalysisIngestMutation>;
|
|
1062
|
+
triggerDrozbotTalkAnalysisBatch(variables?: TriggerDrozbotTalkAnalysisBatchMutationVariables, options?: C): Promise<TriggerDrozbotTalkAnalysisBatchMutation>;
|
|
1063
|
+
analyzeDrozbotTalk(variables: AnalyzeDrozbotTalkMutationVariables, options?: C): Promise<AnalyzeDrozbotTalkMutation>;
|
|
1064
|
+
evaluateDrozbotTalkAnalysisOutput(variables: EvaluateDrozbotTalkAnalysisOutputMutationVariables, options?: C): Promise<EvaluateDrozbotTalkAnalysisOutputMutation>;
|
|
748
1065
|
listWhatsAppBots(variables?: ListWhatsAppBotsQueryVariables, options?: C): Promise<ListWhatsAppBotsQuery>;
|
|
749
1066
|
getWhatsAppBotDetails(variables: GetWhatsAppBotDetailsQueryVariables, options?: C): Promise<GetWhatsAppBotDetailsQuery>;
|
|
750
1067
|
listWhatsAppBotTemplates(variables: ListWhatsAppBotTemplatesQueryVariables, options?: C): Promise<ListWhatsAppBotTemplatesQuery>;
|
package/src/sdks/drozbot.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.ListDrozbotTalkAnalysesDocument = exports.GetDrozbotTalkAnalysisDocument = exports.DrozbotTalkAnalysisIntentionsDocument = exports.DrozbotAiTalkAnalysisPendingRetriesDocument = exports.DrozbotAiTalkAnalysisInputsDocument = exports.FetchDrozbotTalkAnalysisDatasetDocument = exports.PredictIntentDocument = exports.UpsertIntentDictionaryDocument = exports.ListIntentDictionaryDocument = exports.GetIntentDictionaryDocument = exports.CreateDrozBotTicketCommentDocument = exports.CreateDrozBotTicketCommentsDocument = exports.CreateDrozBotTicketDocument = exports.RemoveDrozBotInstanceDocument = exports.UpdateDrozBotInstanceDocument = exports.CreateDrozBotInstanceDocument = exports.GetCustomerByPhoneDocument = exports.ListDrozBotInstancesDocument = exports.GetDrozBotInstanceDocument = exports.SyncChatbotConversationsDocument = exports.RequestDrozBotAssessDocument = exports.RunDrozbotAiActionHumanizedAnswerDocument = exports.RunDrozbotAiActionDocument = exports.DrozBotWhatsAppTemplateFragmentDoc = exports.DrozBotWhatsAppBotFragmentDoc = exports.DrozbotTalkAnalysisFragmentDoc = exports.DrozbotTalkAnalysisEvaluationFragmentDoc = exports.DrozbotTalkAnalysisInputFragmentDoc = exports.IntentFragmentDoc = exports.IntentDictionaryFragmentDoc = exports.DrozBotCustomerFragmentDoc = exports.DrozBotTicketCommentFragmentDoc = exports.DrozbotFragmentDoc = exports.AiActionVariableValueFragmentDoc = exports.Typenames = exports.DrozbotTalkAnalysisSentiment = exports.DrozbotTalkAnalysisSatisfactionLevel = exports.DrozbotTalkAnalysisCustomerEffortLabel = exports.DrozbotTalkAnalysisAbandonmentType = exports.DrozbotBatchJobStatus = exports.DrozbotAiTalkAnalysisProcessingStatus = exports.DrozbotAiAction = exports.DrozBotWhatsAppTemplateTypes = exports.DrozBotWhatsAppTemplateStates = exports.DrozBotWhatsAppBotProviders = exports.DrozBotTicketMessageSender = exports.DrozBotIntegrationType = exports.DrozBotAssessType = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.ActiveTriggerDocument = exports.RegisterRootCredentialDocument = exports.ListWhatsAppBotTemplatesDocument = exports.GetWhatsAppBotDetailsDocument = exports.ListWhatsAppBotsDocument = exports.EvaluateDrozbotTalkAnalysisOutputDocument = exports.AnalyzeDrozbotTalkDocument = exports.TriggerDrozbotTalkAnalysisBatchDocument = exports.TriggerDrozbotTalkAnalysisIngestDocument = void 0;
|
|
5
6
|
exports.getSdk = getSdk;
|
|
6
7
|
var AppInstanceStatus;
|
|
7
8
|
(function (AppInstanceStatus) {
|
|
@@ -57,6 +58,60 @@ var DrozbotAiAction;
|
|
|
57
58
|
DrozbotAiAction["AiActionReturnFinalAnswer"] = "AiActionReturnFinalAnswer";
|
|
58
59
|
DrozbotAiAction["AiActionSetVariables"] = "AiActionSetVariables";
|
|
59
60
|
})(DrozbotAiAction || (exports.DrozbotAiAction = DrozbotAiAction = {}));
|
|
61
|
+
var DrozbotAiTalkAnalysisProcessingStatus;
|
|
62
|
+
(function (DrozbotAiTalkAnalysisProcessingStatus) {
|
|
63
|
+
DrozbotAiTalkAnalysisProcessingStatus["Done"] = "DONE";
|
|
64
|
+
DrozbotAiTalkAnalysisProcessingStatus["Failed"] = "FAILED";
|
|
65
|
+
DrozbotAiTalkAnalysisProcessingStatus["Pending"] = "PENDING";
|
|
66
|
+
DrozbotAiTalkAnalysisProcessingStatus["Submitted"] = "SUBMITTED";
|
|
67
|
+
})(DrozbotAiTalkAnalysisProcessingStatus || (exports.DrozbotAiTalkAnalysisProcessingStatus = DrozbotAiTalkAnalysisProcessingStatus = {}));
|
|
68
|
+
var DrozbotBatchJobStatus;
|
|
69
|
+
(function (DrozbotBatchJobStatus) {
|
|
70
|
+
DrozbotBatchJobStatus["Collecting"] = "COLLECTING";
|
|
71
|
+
DrozbotBatchJobStatus["Done"] = "DONE";
|
|
72
|
+
DrozbotBatchJobStatus["Failed"] = "FAILED";
|
|
73
|
+
DrozbotBatchJobStatus["InProgress"] = "IN_PROGRESS";
|
|
74
|
+
})(DrozbotBatchJobStatus || (exports.DrozbotBatchJobStatus = DrozbotBatchJobStatus = {}));
|
|
75
|
+
var DrozbotTalkAnalysisAbandonmentType;
|
|
76
|
+
(function (DrozbotTalkAnalysisAbandonmentType) {
|
|
77
|
+
DrozbotTalkAnalysisAbandonmentType["Frustrated"] = "frustrated";
|
|
78
|
+
DrozbotTalkAnalysisAbandonmentType["HandoffAfterAttempt"] = "handoff_after_attempt";
|
|
79
|
+
DrozbotTalkAnalysisAbandonmentType["Immediate"] = "immediate";
|
|
80
|
+
DrozbotTalkAnalysisAbandonmentType["ImmediateHandoff"] = "immediate_handoff";
|
|
81
|
+
DrozbotTalkAnalysisAbandonmentType["None"] = "none";
|
|
82
|
+
DrozbotTalkAnalysisAbandonmentType["SatisfactionSurvey"] = "satisfaction_survey";
|
|
83
|
+
DrozbotTalkAnalysisAbandonmentType["Silent"] = "silent";
|
|
84
|
+
})(DrozbotTalkAnalysisAbandonmentType || (exports.DrozbotTalkAnalysisAbandonmentType = DrozbotTalkAnalysisAbandonmentType = {}));
|
|
85
|
+
/**
|
|
86
|
+
* Label derived from the CES (Customer Effort Score). Measures how easy it was for the customer
|
|
87
|
+
* to get their issue resolved — distinct from satisfaction (DrozbotTalkAnalysisSatisfactionLevel),
|
|
88
|
+
* which measures the outcome quality rather than the resolution effort.
|
|
89
|
+
*/
|
|
90
|
+
var DrozbotTalkAnalysisCustomerEffortLabel;
|
|
91
|
+
(function (DrozbotTalkAnalysisCustomerEffortLabel) {
|
|
92
|
+
DrozbotTalkAnalysisCustomerEffortLabel["Excellent"] = "excellent";
|
|
93
|
+
DrozbotTalkAnalysisCustomerEffortLabel["Good"] = "good";
|
|
94
|
+
DrozbotTalkAnalysisCustomerEffortLabel["Poor"] = "poor";
|
|
95
|
+
DrozbotTalkAnalysisCustomerEffortLabel["Regular"] = "regular";
|
|
96
|
+
})(DrozbotTalkAnalysisCustomerEffortLabel || (exports.DrozbotTalkAnalysisCustomerEffortLabel = DrozbotTalkAnalysisCustomerEffortLabel = {}));
|
|
97
|
+
/**
|
|
98
|
+
* Overall satisfaction/quality rating scale. Used for CSAT status and service quality assessment.
|
|
99
|
+
* Values coincide with CustomerEffortLabel but represent a distinct concept — satisfaction can be
|
|
100
|
+
* poor even when effort was low, and vice versa.
|
|
101
|
+
*/
|
|
102
|
+
var DrozbotTalkAnalysisSatisfactionLevel;
|
|
103
|
+
(function (DrozbotTalkAnalysisSatisfactionLevel) {
|
|
104
|
+
DrozbotTalkAnalysisSatisfactionLevel["Excellent"] = "excellent";
|
|
105
|
+
DrozbotTalkAnalysisSatisfactionLevel["Good"] = "good";
|
|
106
|
+
DrozbotTalkAnalysisSatisfactionLevel["Poor"] = "poor";
|
|
107
|
+
DrozbotTalkAnalysisSatisfactionLevel["Regular"] = "regular";
|
|
108
|
+
})(DrozbotTalkAnalysisSatisfactionLevel || (exports.DrozbotTalkAnalysisSatisfactionLevel = DrozbotTalkAnalysisSatisfactionLevel = {}));
|
|
109
|
+
var DrozbotTalkAnalysisSentiment;
|
|
110
|
+
(function (DrozbotTalkAnalysisSentiment) {
|
|
111
|
+
DrozbotTalkAnalysisSentiment["Negative"] = "negative";
|
|
112
|
+
DrozbotTalkAnalysisSentiment["Neutral"] = "neutral";
|
|
113
|
+
DrozbotTalkAnalysisSentiment["Positive"] = "positive";
|
|
114
|
+
})(DrozbotTalkAnalysisSentiment || (exports.DrozbotTalkAnalysisSentiment = DrozbotTalkAnalysisSentiment = {}));
|
|
60
115
|
var Typenames;
|
|
61
116
|
(function (Typenames) {
|
|
62
117
|
Typenames["Any"] = "Any";
|
|
@@ -67,6 +122,12 @@ var Typenames;
|
|
|
67
122
|
Typenames["DrozBotRootAuth"] = "DrozBotRootAuth";
|
|
68
123
|
Typenames["DrozBotSession"] = "DrozBotSession";
|
|
69
124
|
Typenames["DrozbotAiAction"] = "DrozbotAiAction";
|
|
125
|
+
Typenames["DrozbotAiTalkAnalysis"] = "DrozbotAiTalkAnalysis";
|
|
126
|
+
Typenames["DrozbotAiTalkAnalysisInput"] = "DrozbotAiTalkAnalysisInput";
|
|
127
|
+
Typenames["DrozbotTalkAnalysis"] = "DrozbotTalkAnalysis";
|
|
128
|
+
Typenames["DrozbotTalkAnalysisBatchJob"] = "DrozbotTalkAnalysisBatchJob";
|
|
129
|
+
Typenames["DrozbotTalkAnalysisEvaluation"] = "DrozbotTalkAnalysisEvaluation";
|
|
130
|
+
Typenames["DrozbotTalkAnalysisIntention"] = "DrozbotTalkAnalysisIntention";
|
|
70
131
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
71
132
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
72
133
|
Typenames["IntentDictionary"] = "IntentDictionary";
|
|
@@ -119,6 +180,84 @@ exports.IntentFragmentDoc = `
|
|
|
119
180
|
score
|
|
120
181
|
}
|
|
121
182
|
`;
|
|
183
|
+
exports.DrozbotTalkAnalysisInputFragmentDoc = `
|
|
184
|
+
fragment drozbotTalkAnalysisInput on DrozbotAiTalkAnalysisInput {
|
|
185
|
+
talkId
|
|
186
|
+
botId
|
|
187
|
+
processingStatus
|
|
188
|
+
batchJobId
|
|
189
|
+
submittedAt
|
|
190
|
+
errorMessage
|
|
191
|
+
retryCount
|
|
192
|
+
attempts {
|
|
193
|
+
errorMessage
|
|
194
|
+
failedAt
|
|
195
|
+
batchJobId
|
|
196
|
+
batchCustomId
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
`;
|
|
200
|
+
exports.DrozbotTalkAnalysisEvaluationFragmentDoc = `
|
|
201
|
+
fragment drozbotTalkAnalysisEvaluation on DrozbotTalkAnalysisEvaluation {
|
|
202
|
+
model
|
|
203
|
+
evaluatedAt
|
|
204
|
+
confidenceScore
|
|
205
|
+
threshold
|
|
206
|
+
passed
|
|
207
|
+
grounded
|
|
208
|
+
coherent
|
|
209
|
+
reasoning
|
|
210
|
+
criticalIssues
|
|
211
|
+
}
|
|
212
|
+
`;
|
|
213
|
+
exports.DrozbotTalkAnalysisFragmentDoc = `
|
|
214
|
+
fragment drozbotTalkAnalysis on DrozbotTalkAnalysis {
|
|
215
|
+
talkId
|
|
216
|
+
botId
|
|
217
|
+
status
|
|
218
|
+
createdDate
|
|
219
|
+
modelUsed
|
|
220
|
+
analysis {
|
|
221
|
+
conversation {
|
|
222
|
+
aggregates {
|
|
223
|
+
csatFinal
|
|
224
|
+
csatStatus
|
|
225
|
+
initialSentiment
|
|
226
|
+
finalSentiment
|
|
227
|
+
topIntents
|
|
228
|
+
}
|
|
229
|
+
serviceQuality {
|
|
230
|
+
status
|
|
231
|
+
csatFinal
|
|
232
|
+
reason
|
|
233
|
+
breakdown {
|
|
234
|
+
clarityPrecision
|
|
235
|
+
cesScore
|
|
236
|
+
cesLabel
|
|
237
|
+
csatScale
|
|
238
|
+
abandonmentType
|
|
239
|
+
notEvaluable
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
sentiment {
|
|
243
|
+
initialSentiment
|
|
244
|
+
averageSentiment
|
|
245
|
+
finalSentiment
|
|
246
|
+
observation
|
|
247
|
+
}
|
|
248
|
+
intent {
|
|
249
|
+
dominantIntent
|
|
250
|
+
globalConfidence
|
|
251
|
+
justification
|
|
252
|
+
secondaryIntents
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
evaluation {
|
|
257
|
+
...drozbotTalkAnalysisEvaluation
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
`;
|
|
122
261
|
exports.DrozBotWhatsAppBotFragmentDoc = `
|
|
123
262
|
fragment drozBotWhatsAppBot on DrozBotWhatsAppBot {
|
|
124
263
|
id
|
|
@@ -269,6 +408,91 @@ exports.PredictIntentDocument = `
|
|
|
269
408
|
}
|
|
270
409
|
}
|
|
271
410
|
${exports.IntentFragmentDoc}`;
|
|
411
|
+
exports.FetchDrozbotTalkAnalysisDatasetDocument = `
|
|
412
|
+
query fetchDrozbotTalkAnalysisDataset($botId: Int) {
|
|
413
|
+
fetchDrozbotTalkAnalysisDataset(botId: $botId) {
|
|
414
|
+
talkId
|
|
415
|
+
botId
|
|
416
|
+
status
|
|
417
|
+
createdDate
|
|
418
|
+
rows {
|
|
419
|
+
id
|
|
420
|
+
createdDate
|
|
421
|
+
bot
|
|
422
|
+
botMsgType
|
|
423
|
+
user
|
|
424
|
+
userMsgType
|
|
425
|
+
typeOfNlp
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
`;
|
|
430
|
+
exports.DrozbotAiTalkAnalysisInputsDocument = `
|
|
431
|
+
query drozbotAiTalkAnalysisInputs($status: DrozbotAiTalkAnalysisProcessingStatus) {
|
|
432
|
+
drozbotAiTalkAnalysisInputs(status: $status) {
|
|
433
|
+
...drozbotTalkAnalysisInput
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
${exports.DrozbotTalkAnalysisInputFragmentDoc}`;
|
|
437
|
+
exports.DrozbotAiTalkAnalysisPendingRetriesDocument = `
|
|
438
|
+
query drozbotAiTalkAnalysisPendingRetries {
|
|
439
|
+
drozbotAiTalkAnalysisPendingRetries {
|
|
440
|
+
...drozbotTalkAnalysisInput
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
${exports.DrozbotTalkAnalysisInputFragmentDoc}`;
|
|
444
|
+
exports.DrozbotTalkAnalysisIntentionsDocument = `
|
|
445
|
+
query drozbotTalkAnalysisIntentions($botId: Int!) {
|
|
446
|
+
drozbotTalkAnalysisIntentions(botId: $botId)
|
|
447
|
+
}
|
|
448
|
+
`;
|
|
449
|
+
exports.GetDrozbotTalkAnalysisDocument = `
|
|
450
|
+
query getDrozbotTalkAnalysis($talkId: Int!, $botId: Int!) {
|
|
451
|
+
getDrozbotTalkAnalysis(talkId: $talkId, botId: $botId) {
|
|
452
|
+
...drozbotTalkAnalysis
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
${exports.DrozbotTalkAnalysisFragmentDoc}
|
|
456
|
+
${exports.DrozbotTalkAnalysisEvaluationFragmentDoc}`;
|
|
457
|
+
exports.ListDrozbotTalkAnalysesDocument = `
|
|
458
|
+
query listDrozbotTalkAnalyses($botId: Int!, $next: Base64, $limit: Int) {
|
|
459
|
+
listDrozbotTalkAnalyses(botId: $botId, next: $next, limit: $limit) {
|
|
460
|
+
nodes {
|
|
461
|
+
...drozbotTalkAnalysis
|
|
462
|
+
}
|
|
463
|
+
pageInfo {
|
|
464
|
+
hasNext
|
|
465
|
+
next
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
${exports.DrozbotTalkAnalysisFragmentDoc}
|
|
470
|
+
${exports.DrozbotTalkAnalysisEvaluationFragmentDoc}`;
|
|
471
|
+
exports.TriggerDrozbotTalkAnalysisIngestDocument = `
|
|
472
|
+
mutation triggerDrozbotTalkAnalysisIngest($botId: Int) {
|
|
473
|
+
triggerDrozbotTalkAnalysisIngest(botId: $botId)
|
|
474
|
+
}
|
|
475
|
+
`;
|
|
476
|
+
exports.TriggerDrozbotTalkAnalysisBatchDocument = `
|
|
477
|
+
mutation triggerDrozbotTalkAnalysisBatch {
|
|
478
|
+
triggerDrozbotTalkAnalysisBatch
|
|
479
|
+
}
|
|
480
|
+
`;
|
|
481
|
+
exports.AnalyzeDrozbotTalkDocument = `
|
|
482
|
+
mutation analyzeDrozbotTalk($input: AnalyzeDrozbotTalkInput!) {
|
|
483
|
+
analyzeDrozbotTalk(input: $input) {
|
|
484
|
+
...drozbotTalkAnalysis
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
${exports.DrozbotTalkAnalysisFragmentDoc}
|
|
488
|
+
${exports.DrozbotTalkAnalysisEvaluationFragmentDoc}`;
|
|
489
|
+
exports.EvaluateDrozbotTalkAnalysisOutputDocument = `
|
|
490
|
+
mutation evaluateDrozbotTalkAnalysisOutput($input: EvaluateDrozbotTalkAnalysisOutputInput!) {
|
|
491
|
+
evaluateDrozbotTalkAnalysisOutput(input: $input) {
|
|
492
|
+
...drozbotTalkAnalysisEvaluation
|
|
493
|
+
}
|
|
494
|
+
}
|
|
495
|
+
${exports.DrozbotTalkAnalysisEvaluationFragmentDoc}`;
|
|
272
496
|
exports.ListWhatsAppBotsDocument = `
|
|
273
497
|
query listWhatsAppBots {
|
|
274
498
|
listWhatsAppBots {
|
|
@@ -353,6 +577,36 @@ function getSdk(requester) {
|
|
|
353
577
|
predictIntent(variables, options) {
|
|
354
578
|
return requester(exports.PredictIntentDocument, variables, options);
|
|
355
579
|
},
|
|
580
|
+
fetchDrozbotTalkAnalysisDataset(variables, options) {
|
|
581
|
+
return requester(exports.FetchDrozbotTalkAnalysisDatasetDocument, variables, options);
|
|
582
|
+
},
|
|
583
|
+
drozbotAiTalkAnalysisInputs(variables, options) {
|
|
584
|
+
return requester(exports.DrozbotAiTalkAnalysisInputsDocument, variables, options);
|
|
585
|
+
},
|
|
586
|
+
drozbotAiTalkAnalysisPendingRetries(variables, options) {
|
|
587
|
+
return requester(exports.DrozbotAiTalkAnalysisPendingRetriesDocument, variables, options);
|
|
588
|
+
},
|
|
589
|
+
drozbotTalkAnalysisIntentions(variables, options) {
|
|
590
|
+
return requester(exports.DrozbotTalkAnalysisIntentionsDocument, variables, options);
|
|
591
|
+
},
|
|
592
|
+
getDrozbotTalkAnalysis(variables, options) {
|
|
593
|
+
return requester(exports.GetDrozbotTalkAnalysisDocument, variables, options);
|
|
594
|
+
},
|
|
595
|
+
listDrozbotTalkAnalyses(variables, options) {
|
|
596
|
+
return requester(exports.ListDrozbotTalkAnalysesDocument, variables, options);
|
|
597
|
+
},
|
|
598
|
+
triggerDrozbotTalkAnalysisIngest(variables, options) {
|
|
599
|
+
return requester(exports.TriggerDrozbotTalkAnalysisIngestDocument, variables, options);
|
|
600
|
+
},
|
|
601
|
+
triggerDrozbotTalkAnalysisBatch(variables, options) {
|
|
602
|
+
return requester(exports.TriggerDrozbotTalkAnalysisBatchDocument, variables, options);
|
|
603
|
+
},
|
|
604
|
+
analyzeDrozbotTalk(variables, options) {
|
|
605
|
+
return requester(exports.AnalyzeDrozbotTalkDocument, variables, options);
|
|
606
|
+
},
|
|
607
|
+
evaluateDrozbotTalkAnalysisOutput(variables, options) {
|
|
608
|
+
return requester(exports.EvaluateDrozbotTalkAnalysisOutputDocument, variables, options);
|
|
609
|
+
},
|
|
356
610
|
listWhatsAppBots(variables, options) {
|
|
357
611
|
return requester(exports.ListWhatsAppBotsDocument, variables, options);
|
|
358
612
|
},
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -403,6 +403,7 @@ export type Mutation = {
|
|
|
403
403
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
404
404
|
removeDrozChatChannelGroup?: Maybe<DrozChatChannel>;
|
|
405
405
|
removeTagsFromTicket: Ticket;
|
|
406
|
+
reorderTriggersByEventType: Array<Trigger>;
|
|
406
407
|
setMaxSimultaneousAttendances: GlobalConfiguration;
|
|
407
408
|
transferTicketToChannel: Ticket;
|
|
408
409
|
unassignTicket: Ticket;
|
|
@@ -513,6 +514,10 @@ export type MutationRemoveDrozChatChannelGroupArgs = {
|
|
|
513
514
|
export type MutationRemoveTagsFromTicketArgs = {
|
|
514
515
|
input: RemoveTagsFromTicketInput;
|
|
515
516
|
};
|
|
517
|
+
export type MutationReorderTriggersByEventTypeArgs = {
|
|
518
|
+
eventType: TriggerEventType;
|
|
519
|
+
input: Array<TriggerPriorityInput>;
|
|
520
|
+
};
|
|
516
521
|
export type MutationSetMaxSimultaneousAttendancesArgs = {
|
|
517
522
|
input: SetMaxSimultaneousAttendancesInput;
|
|
518
523
|
};
|
|
@@ -608,6 +613,7 @@ export type Query = {
|
|
|
608
613
|
listTicketsByView: Array<Ticket>;
|
|
609
614
|
listTicketsInProgressMine: TicketsConnection;
|
|
610
615
|
listTriggers: Array<Trigger>;
|
|
616
|
+
listTriggersByEventType: Array<Trigger>;
|
|
611
617
|
listViews: Array<View>;
|
|
612
618
|
searchQuickAnswers?: Maybe<QuickAnswersSearchResults>;
|
|
613
619
|
searchTickets?: Maybe<TicketsSearchResults>;
|
|
@@ -669,6 +675,9 @@ export type QueryListTicketsByViewArgs = {
|
|
|
669
675
|
export type QueryListTicketsInProgressMineArgs = {
|
|
670
676
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
671
677
|
};
|
|
678
|
+
export type QueryListTriggersByEventTypeArgs = {
|
|
679
|
+
eventType: TriggerEventType;
|
|
680
|
+
};
|
|
672
681
|
export type QuerySearchQuickAnswersArgs = {
|
|
673
682
|
filters?: InputMaybe<Array<QuickAnswerFilterInput>>;
|
|
674
683
|
page?: InputMaybe<Scalars['Number']['input']>;
|
|
@@ -1113,6 +1122,10 @@ export declare enum TriggerEventType {
|
|
|
1113
1122
|
Created = "CREATED",
|
|
1114
1123
|
Updated = "UPDATED"
|
|
1115
1124
|
}
|
|
1125
|
+
export type TriggerPriorityInput = {
|
|
1126
|
+
priority: Scalars['Int']['input'];
|
|
1127
|
+
triggerId: Scalars['ID']['input'];
|
|
1128
|
+
};
|
|
1116
1129
|
export declare enum TriggerScope {
|
|
1117
1130
|
Channel = "CHANNEL",
|
|
1118
1131
|
Ticket = "TICKET"
|
|
@@ -1755,6 +1768,12 @@ export type ListTriggersQueryVariables = Exact<{
|
|
|
1755
1768
|
export type ListTriggersQuery = {
|
|
1756
1769
|
listTriggers: Array<TriggerFragment>;
|
|
1757
1770
|
};
|
|
1771
|
+
export type ListTriggersByEventTypeQueryVariables = Exact<{
|
|
1772
|
+
eventType: TriggerEventType;
|
|
1773
|
+
}>;
|
|
1774
|
+
export type ListTriggersByEventTypeQuery = {
|
|
1775
|
+
listTriggersByEventType: Array<TriggerFragment>;
|
|
1776
|
+
};
|
|
1758
1777
|
export type GetTriggerQueryVariables = Exact<{
|
|
1759
1778
|
id: Scalars['ID']['input'];
|
|
1760
1779
|
}>;
|
|
@@ -1777,6 +1796,13 @@ export type DeleteTriggerMutationVariables = Exact<{
|
|
|
1777
1796
|
id: Scalars['ID']['input'];
|
|
1778
1797
|
}>;
|
|
1779
1798
|
export type DeleteTriggerMutation = Pick<Mutation, 'deleteTrigger'>;
|
|
1799
|
+
export type ReorderTriggersByEventTypeMutationVariables = Exact<{
|
|
1800
|
+
eventType: TriggerEventType;
|
|
1801
|
+
input: Array<TriggerPriorityInput> | TriggerPriorityInput;
|
|
1802
|
+
}>;
|
|
1803
|
+
export type ReorderTriggersByEventTypeMutation = {
|
|
1804
|
+
reorderTriggersByEventType: Array<TriggerFragment>;
|
|
1805
|
+
};
|
|
1780
1806
|
export type ViewFragment = Pick<View, 'id' | 'name' | 'filters' | 'createdAt' | 'updatedAt'>;
|
|
1781
1807
|
export type GetViewQueryVariables = Exact<{
|
|
1782
1808
|
id: Scalars['ID']['input'];
|
|
@@ -1908,11 +1934,13 @@ export declare const TransferTicketToChannelDocument = "\n mutation transferT
|
|
|
1908
1934
|
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1909
1935
|
export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
|
|
1910
1936
|
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n}\n ";
|
|
1911
|
-
export declare const ListTriggersDocument = "\n query
|
|
1912
|
-
export declare const
|
|
1913
|
-
export declare const
|
|
1914
|
-
export declare const
|
|
1915
|
-
export declare const
|
|
1937
|
+
export declare const ListTriggersDocument = "\n query listTriggers {\n listTriggers {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1938
|
+
export declare const ListTriggersByEventTypeDocument = "\n query listTriggersByEventType($eventType: TriggerEventType!) {\n listTriggersByEventType(eventType: $eventType) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1939
|
+
export declare const GetTriggerDocument = "\n query getTrigger($id: ID!) {\n getTrigger(id: $id) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1940
|
+
export declare const CreateTriggerDocument = "\n mutation createTrigger($input: CreateTriggerInput!) {\n createTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1941
|
+
export declare const UpdateTriggerDocument = "\n mutation updateTrigger($input: UpdateTriggerInput!) {\n updateTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1942
|
+
export declare const DeleteTriggerDocument = "\n mutation deleteTrigger($id: ID!) {\n deleteTrigger(id: $id)\n}\n ";
|
|
1943
|
+
export declare const ReorderTriggersByEventTypeDocument = "\n mutation reorderTriggersByEventType($eventType: TriggerEventType!, $input: [TriggerPriorityInput!]!) {\n reorderTriggersByEventType(eventType: $eventType, input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n}\n ";
|
|
1916
1944
|
export declare const GetViewDocument = "\n query getView($id: ID!) {\n getView(id: $id) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1917
1945
|
export declare const ListViewsDocument = "\n query listViews {\n listViews {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
|
|
1918
1946
|
export declare const ListTicketsByViewDocument = "\n query listTicketsByView($id: ID!) {\n listTicketsByView(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
@@ -1989,11 +2017,13 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1989
2017
|
onTicketInProgressMine(variables?: OnTicketInProgressMineSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketInProgressMineSubscription>;
|
|
1990
2018
|
onTicketByState(variables: OnTicketByStateSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketByStateSubscription>;
|
|
1991
2019
|
onTicketMessage(variables: OnTicketMessageSubscriptionVariables, options?: C): AsyncIterableIterator<OnTicketMessageSubscription>;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2020
|
+
listTriggers(variables?: ListTriggersQueryVariables, options?: C): Promise<ListTriggersQuery>;
|
|
2021
|
+
listTriggersByEventType(variables: ListTriggersByEventTypeQueryVariables, options?: C): Promise<ListTriggersByEventTypeQuery>;
|
|
2022
|
+
getTrigger(variables: GetTriggerQueryVariables, options?: C): Promise<GetTriggerQuery>;
|
|
2023
|
+
createTrigger(variables: CreateTriggerMutationVariables, options?: C): Promise<CreateTriggerMutation>;
|
|
2024
|
+
updateTrigger(variables: UpdateTriggerMutationVariables, options?: C): Promise<UpdateTriggerMutation>;
|
|
2025
|
+
deleteTrigger(variables: DeleteTriggerMutationVariables, options?: C): Promise<DeleteTriggerMutation>;
|
|
2026
|
+
reorderTriggersByEventType(variables: ReorderTriggersByEventTypeMutationVariables, options?: C): Promise<ReorderTriggersByEventTypeMutation>;
|
|
1997
2027
|
getView(variables: GetViewQueryVariables, options?: C): Promise<GetViewQuery>;
|
|
1998
2028
|
listViews(variables?: ListViewsQueryVariables, options?: C): Promise<ListViewsQuery>;
|
|
1999
2029
|
listTicketsByView(variables: ListTicketsByViewQueryVariables, options?: C): Promise<ListTicketsByViewQuery>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GenerateAnalyticsTokenDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.NpsSurveyFragmentDoc = exports.SurveyFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.NpsSurveyChannels = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.DisableNpsSurveyDocument = exports.UpsertNpsSurveyDocument = exports.GetNpsSurveyDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = void 0;
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersByEventTypeDocument = exports.ListTriggersDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var AppInstanceStatus;
|
|
9
9
|
(function (AppInstanceStatus) {
|
|
@@ -1232,38 +1232,52 @@ exports.OnTicketMessageDocument = `
|
|
|
1232
1232
|
${exports.TicketMessageFragmentDoc}
|
|
1233
1233
|
${exports.DrozChatUserFragmentDoc}`;
|
|
1234
1234
|
exports.ListTriggersDocument = `
|
|
1235
|
-
query
|
|
1235
|
+
query listTriggers {
|
|
1236
1236
|
listTriggers {
|
|
1237
1237
|
...trigger
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
${exports.TriggerFragmentDoc}`;
|
|
1241
|
+
exports.ListTriggersByEventTypeDocument = `
|
|
1242
|
+
query listTriggersByEventType($eventType: TriggerEventType!) {
|
|
1243
|
+
listTriggersByEventType(eventType: $eventType) {
|
|
1244
|
+
...trigger
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
${exports.TriggerFragmentDoc}`;
|
|
1241
1248
|
exports.GetTriggerDocument = `
|
|
1242
|
-
query
|
|
1249
|
+
query getTrigger($id: ID!) {
|
|
1243
1250
|
getTrigger(id: $id) {
|
|
1244
1251
|
...trigger
|
|
1245
1252
|
}
|
|
1246
1253
|
}
|
|
1247
1254
|
${exports.TriggerFragmentDoc}`;
|
|
1248
1255
|
exports.CreateTriggerDocument = `
|
|
1249
|
-
mutation
|
|
1256
|
+
mutation createTrigger($input: CreateTriggerInput!) {
|
|
1250
1257
|
createTrigger(input: $input) {
|
|
1251
1258
|
...trigger
|
|
1252
1259
|
}
|
|
1253
1260
|
}
|
|
1254
1261
|
${exports.TriggerFragmentDoc}`;
|
|
1255
1262
|
exports.UpdateTriggerDocument = `
|
|
1256
|
-
mutation
|
|
1263
|
+
mutation updateTrigger($input: UpdateTriggerInput!) {
|
|
1257
1264
|
updateTrigger(input: $input) {
|
|
1258
1265
|
...trigger
|
|
1259
1266
|
}
|
|
1260
1267
|
}
|
|
1261
1268
|
${exports.TriggerFragmentDoc}`;
|
|
1262
1269
|
exports.DeleteTriggerDocument = `
|
|
1263
|
-
mutation
|
|
1270
|
+
mutation deleteTrigger($id: ID!) {
|
|
1264
1271
|
deleteTrigger(id: $id)
|
|
1265
1272
|
}
|
|
1266
1273
|
`;
|
|
1274
|
+
exports.ReorderTriggersByEventTypeDocument = `
|
|
1275
|
+
mutation reorderTriggersByEventType($eventType: TriggerEventType!, $input: [TriggerPriorityInput!]!) {
|
|
1276
|
+
reorderTriggersByEventType(eventType: $eventType, input: $input) {
|
|
1277
|
+
...trigger
|
|
1278
|
+
}
|
|
1279
|
+
}
|
|
1280
|
+
${exports.TriggerFragmentDoc}`;
|
|
1267
1281
|
exports.GetViewDocument = `
|
|
1268
1282
|
query getView($id: ID!) {
|
|
1269
1283
|
getView(id: $id) {
|
|
@@ -1520,21 +1534,27 @@ function getSdk(requester) {
|
|
|
1520
1534
|
onTicketMessage(variables, options) {
|
|
1521
1535
|
return requester(exports.OnTicketMessageDocument, variables, options);
|
|
1522
1536
|
},
|
|
1523
|
-
|
|
1537
|
+
listTriggers(variables, options) {
|
|
1524
1538
|
return requester(exports.ListTriggersDocument, variables, options);
|
|
1525
1539
|
},
|
|
1526
|
-
|
|
1540
|
+
listTriggersByEventType(variables, options) {
|
|
1541
|
+
return requester(exports.ListTriggersByEventTypeDocument, variables, options);
|
|
1542
|
+
},
|
|
1543
|
+
getTrigger(variables, options) {
|
|
1527
1544
|
return requester(exports.GetTriggerDocument, variables, options);
|
|
1528
1545
|
},
|
|
1529
|
-
|
|
1546
|
+
createTrigger(variables, options) {
|
|
1530
1547
|
return requester(exports.CreateTriggerDocument, variables, options);
|
|
1531
1548
|
},
|
|
1532
|
-
|
|
1549
|
+
updateTrigger(variables, options) {
|
|
1533
1550
|
return requester(exports.UpdateTriggerDocument, variables, options);
|
|
1534
1551
|
},
|
|
1535
|
-
|
|
1552
|
+
deleteTrigger(variables, options) {
|
|
1536
1553
|
return requester(exports.DeleteTriggerDocument, variables, options);
|
|
1537
1554
|
},
|
|
1555
|
+
reorderTriggersByEventType(variables, options) {
|
|
1556
|
+
return requester(exports.ReorderTriggersByEventTypeDocument, variables, options);
|
|
1557
|
+
},
|
|
1538
1558
|
getView(variables, options) {
|
|
1539
1559
|
return requester(exports.GetViewDocument, variables, options);
|
|
1540
1560
|
},
|