@droz-js/sdk 0.26.22 → 0.26.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/drozai.d.ts +13 -0
- package/src/drozchat-ws.d.ts +47 -0
- package/src/drozchat.d.ts +47 -0
- package/src/sdks/ai.d.ts +183 -18
- package/src/sdks/ai.js +149 -3
- package/src/sdks/drozchat.d.ts +424 -0
- package/src/sdks/drozchat.js +328 -4
- package/src/sdks/drozcommons.d.ts +1 -0
- package/src/sdks/drozcommons.js +1 -0
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
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 = void 0;
|
|
4
|
+
exports.GlobalConfigurationFragmentDoc = exports.TicketWithCustomFieldValuesFragmentDoc = exports.TicketCustomFieldValueFragmentDoc = exports.CustomFieldFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.BulkCloseRunFragmentDoc = exports.BulkCloseRoutineConfigFragmentDoc = exports.DrozChatApprovalTaskFragmentDoc = exports.DrozChatApprovalQueueFragmentDoc = exports.AgentPresenceFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.LiveAgentStatus = exports.CustomFieldType = exports.Can = exports.BusinessHoursWeekday = exports.ApprovalTaskTab = exports.ApprovalTaskStatus = exports.ApprovalTaskRejectionReason = exports.ApprovalTaskMessageRole = exports.ApprovalTaskExecutionResult = exports.ApprovalTaskEventType = exports.ApprovalTaskDecision = exports.ApprovalTaskChannel = exports.ApprovalTaskChangeAction = exports.ApprovalAlertType = exports.AppInstanceStatus = exports.AgentPresenceStatus = exports.ActiveDispatchConnector = void 0;
|
|
5
|
+
exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GetBulkCloseRunsDocument = exports.DeleteBulkCloseRoutineConfigDocument = exports.DisableBulkCloseRoutineConfigDocument = exports.EnableBulkCloseRoutineConfigDocument = exports.UpdateBulkCloseRoutineConfigDocument = exports.CreateBulkCloseRoutineConfigDocument = exports.GetBulkCloseRoutineConfigDocument = exports.GenerateAnalyticsTokenDocument = exports.OnApprovalAlertDocument = exports.OnApprovalTaskChangeDocument = exports.DecideApprovalTaskDocument = exports.AssignApprovalTaskDocument = exports.ReleaseApprovalTaskDocument = exports.ClaimApprovalTaskDocument = exports.DeleteApprovalQueueDocument = exports.UpdateApprovalQueueDocument = exports.CreateApprovalQueueDocument = exports.GetApprovalSummaryDocument = exports.GetApprovalTaskDocument = exports.ListApprovalTasksDocument = exports.ListMyApprovalQueuesDocument = exports.GetApprovalQueueDocument = exports.ListApprovalQueuesDocument = exports.AgentLogoffDocument = exports.AgentHeartbeatDocument = exports.MyPresenceDocument = exports.ActiveDispatchDocument = exports.ViewFragmentDoc = exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.TicketPresenceFragmentDoc = exports.SurveyFragmentDoc = exports.MonitoringTicketSnapshotFragmentDoc = exports.LiveSummaryFragmentDoc = exports.LiveAgentLoadFragmentDoc = exports.LiveQueueSummaryFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = void 0;
|
|
6
|
+
exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.OnTicketPresenceDocument = exports.LeaveTicketPresenceDocument = exports.EnterTicketPresenceDocument = exports.TicketPresenceDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.OnMonitoringTicketChangeDocument = exports.LiveSummaryDocument = 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.CustomFieldValuesForTicketDocument = exports.ClearCustomFieldValueDocument = exports.SetCustomFieldValueDocument = exports.SearchTicketsWithCustomFieldValuesDocument = exports.ReorderCustomFieldsDocument = exports.DeleteCustomFieldDocument = exports.UpdateCustomFieldDocument = exports.CreateCustomFieldDocument = exports.ListCustomFieldsDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = void 0;
|
|
7
|
+
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.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AgentRemainingCapacityDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = void 0;
|
|
8
8
|
exports.getSdk = getSdk;
|
|
9
9
|
var ActiveDispatchConnector;
|
|
10
10
|
(function (ActiveDispatchConnector) {
|
|
@@ -23,6 +23,90 @@ var AppInstanceStatus;
|
|
|
23
23
|
AppInstanceStatus["Failing"] = "Failing";
|
|
24
24
|
AppInstanceStatus["Inactive"] = "Inactive";
|
|
25
25
|
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
26
|
+
var ApprovalAlertType;
|
|
27
|
+
(function (ApprovalAlertType) {
|
|
28
|
+
ApprovalAlertType["ApprovalQueueOverLimit"] = "APPROVAL_QUEUE_OVER_LIMIT";
|
|
29
|
+
ApprovalAlertType["Expired"] = "EXPIRED";
|
|
30
|
+
ApprovalAlertType["ExpiringSoon"] = "EXPIRING_SOON";
|
|
31
|
+
ApprovalAlertType["FallbackChannelMissing"] = "FALLBACK_CHANNEL_MISSING";
|
|
32
|
+
ApprovalAlertType["Indeterminate"] = "INDETERMINATE";
|
|
33
|
+
ApprovalAlertType["NoApproverOnline"] = "NO_APPROVER_ONLINE";
|
|
34
|
+
})(ApprovalAlertType || (exports.ApprovalAlertType = ApprovalAlertType = {}));
|
|
35
|
+
var ApprovalTaskChangeAction;
|
|
36
|
+
(function (ApprovalTaskChangeAction) {
|
|
37
|
+
ApprovalTaskChangeAction["Created"] = "CREATED";
|
|
38
|
+
ApprovalTaskChangeAction["Removed"] = "REMOVED";
|
|
39
|
+
ApprovalTaskChangeAction["Updated"] = "UPDATED";
|
|
40
|
+
})(ApprovalTaskChangeAction || (exports.ApprovalTaskChangeAction = ApprovalTaskChangeAction = {}));
|
|
41
|
+
var ApprovalTaskChannel;
|
|
42
|
+
(function (ApprovalTaskChannel) {
|
|
43
|
+
ApprovalTaskChannel["Other"] = "OTHER";
|
|
44
|
+
ApprovalTaskChannel["Web"] = "WEB";
|
|
45
|
+
ApprovalTaskChannel["Whatsapp"] = "WHATSAPP";
|
|
46
|
+
})(ApprovalTaskChannel || (exports.ApprovalTaskChannel = ApprovalTaskChannel = {}));
|
|
47
|
+
var ApprovalTaskDecision;
|
|
48
|
+
(function (ApprovalTaskDecision) {
|
|
49
|
+
ApprovalTaskDecision["Approved"] = "APPROVED";
|
|
50
|
+
ApprovalTaskDecision["Rejected"] = "REJECTED";
|
|
51
|
+
})(ApprovalTaskDecision || (exports.ApprovalTaskDecision = ApprovalTaskDecision = {}));
|
|
52
|
+
var ApprovalTaskEventType;
|
|
53
|
+
(function (ApprovalTaskEventType) {
|
|
54
|
+
ApprovalTaskEventType["Assigned"] = "ASSIGNED";
|
|
55
|
+
ApprovalTaskEventType["Cancelled"] = "CANCELLED";
|
|
56
|
+
ApprovalTaskEventType["Claimed"] = "CLAIMED";
|
|
57
|
+
ApprovalTaskEventType["ClaimExpired"] = "CLAIM_EXPIRED";
|
|
58
|
+
ApprovalTaskEventType["Created"] = "CREATED";
|
|
59
|
+
ApprovalTaskEventType["Decided"] = "DECIDED";
|
|
60
|
+
ApprovalTaskEventType["DivergenceFound"] = "DIVERGENCE_FOUND";
|
|
61
|
+
ApprovalTaskEventType["ExecutionReported"] = "EXECUTION_REPORTED";
|
|
62
|
+
ApprovalTaskEventType["Expired"] = "EXPIRED";
|
|
63
|
+
ApprovalTaskEventType["Released"] = "RELEASED";
|
|
64
|
+
})(ApprovalTaskEventType || (exports.ApprovalTaskEventType = ApprovalTaskEventType = {}));
|
|
65
|
+
var ApprovalTaskExecutionResult;
|
|
66
|
+
(function (ApprovalTaskExecutionResult) {
|
|
67
|
+
ApprovalTaskExecutionResult["Executed"] = "EXECUTED";
|
|
68
|
+
ApprovalTaskExecutionResult["Failed"] = "FAILED";
|
|
69
|
+
ApprovalTaskExecutionResult["Indeterminate"] = "INDETERMINATE";
|
|
70
|
+
ApprovalTaskExecutionResult["NotExecuted"] = "NOT_EXECUTED";
|
|
71
|
+
})(ApprovalTaskExecutionResult || (exports.ApprovalTaskExecutionResult = ApprovalTaskExecutionResult = {}));
|
|
72
|
+
var ApprovalTaskMessageRole;
|
|
73
|
+
(function (ApprovalTaskMessageRole) {
|
|
74
|
+
ApprovalTaskMessageRole["AiAgent"] = "AI_AGENT";
|
|
75
|
+
ApprovalTaskMessageRole["Customer"] = "CUSTOMER";
|
|
76
|
+
})(ApprovalTaskMessageRole || (exports.ApprovalTaskMessageRole = ApprovalTaskMessageRole = {}));
|
|
77
|
+
var ApprovalTaskRejectionReason;
|
|
78
|
+
(function (ApprovalTaskRejectionReason) {
|
|
79
|
+
ApprovalTaskRejectionReason["DataMismatch"] = "DATA_MISMATCH";
|
|
80
|
+
ApprovalTaskRejectionReason["Other"] = "OTHER";
|
|
81
|
+
ApprovalTaskRejectionReason["OutOfPolicy"] = "OUT_OF_POLICY";
|
|
82
|
+
ApprovalTaskRejectionReason["SuspectedFraud"] = "SUSPECTED_FRAUD";
|
|
83
|
+
})(ApprovalTaskRejectionReason || (exports.ApprovalTaskRejectionReason = ApprovalTaskRejectionReason = {}));
|
|
84
|
+
var ApprovalTaskStatus;
|
|
85
|
+
(function (ApprovalTaskStatus) {
|
|
86
|
+
ApprovalTaskStatus["Assigned"] = "ASSIGNED";
|
|
87
|
+
ApprovalTaskStatus["Cancelled"] = "CANCELLED";
|
|
88
|
+
ApprovalTaskStatus["Decided"] = "DECIDED";
|
|
89
|
+
ApprovalTaskStatus["Expired"] = "EXPIRED";
|
|
90
|
+
ApprovalTaskStatus["Open"] = "OPEN";
|
|
91
|
+
})(ApprovalTaskStatus || (exports.ApprovalTaskStatus = ApprovalTaskStatus = {}));
|
|
92
|
+
var ApprovalTaskTab;
|
|
93
|
+
(function (ApprovalTaskTab) {
|
|
94
|
+
ApprovalTaskTab["All"] = "ALL";
|
|
95
|
+
ApprovalTaskTab["Finished"] = "FINISHED";
|
|
96
|
+
ApprovalTaskTab["ManualCheck"] = "MANUAL_CHECK";
|
|
97
|
+
ApprovalTaskTab["Mine"] = "MINE";
|
|
98
|
+
ApprovalTaskTab["Pending"] = "PENDING";
|
|
99
|
+
})(ApprovalTaskTab || (exports.ApprovalTaskTab = ApprovalTaskTab = {}));
|
|
100
|
+
var BusinessHoursWeekday;
|
|
101
|
+
(function (BusinessHoursWeekday) {
|
|
102
|
+
BusinessHoursWeekday["Friday"] = "FRIDAY";
|
|
103
|
+
BusinessHoursWeekday["Monday"] = "MONDAY";
|
|
104
|
+
BusinessHoursWeekday["Saturday"] = "SATURDAY";
|
|
105
|
+
BusinessHoursWeekday["Sunday"] = "SUNDAY";
|
|
106
|
+
BusinessHoursWeekday["Thursday"] = "THURSDAY";
|
|
107
|
+
BusinessHoursWeekday["Tuesday"] = "TUESDAY";
|
|
108
|
+
BusinessHoursWeekday["Wednesday"] = "WEDNESDAY";
|
|
109
|
+
})(BusinessHoursWeekday || (exports.BusinessHoursWeekday = BusinessHoursWeekday = {}));
|
|
26
110
|
var Can;
|
|
27
111
|
(function (Can) {
|
|
28
112
|
Can["Manage"] = "manage";
|
|
@@ -168,9 +252,14 @@ var Typenames;
|
|
|
168
252
|
Typenames["AgentGroup"] = "AgentGroup";
|
|
169
253
|
Typenames["AgentPresence"] = "AgentPresence";
|
|
170
254
|
Typenames["Any"] = "Any";
|
|
255
|
+
Typenames["ApprovalQueues"] = "ApprovalQueues";
|
|
256
|
+
Typenames["ApprovalSessionLocks"] = "ApprovalSessionLocks";
|
|
257
|
+
Typenames["ApprovalTaskKeys"] = "ApprovalTaskKeys";
|
|
258
|
+
Typenames["ApprovalTasks"] = "ApprovalTasks";
|
|
171
259
|
Typenames["BulkCloseBatches"] = "BulkCloseBatches";
|
|
172
260
|
Typenames["BulkCloseRoutineConfig"] = "BulkCloseRoutineConfig";
|
|
173
261
|
Typenames["BulkCloseRuns"] = "BulkCloseRuns";
|
|
262
|
+
Typenames["BusinessHours"] = "BusinessHours";
|
|
174
263
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
175
264
|
Typenames["ChannelTriggerExecutions"] = "ChannelTriggerExecutions";
|
|
176
265
|
Typenames["Channels"] = "Channels";
|
|
@@ -200,6 +289,74 @@ exports.AgentPresenceFragmentDoc = `
|
|
|
200
289
|
since
|
|
201
290
|
}
|
|
202
291
|
`;
|
|
292
|
+
exports.DrozChatApprovalQueueFragmentDoc = `
|
|
293
|
+
fragment drozChatApprovalQueue on DrozChatApprovalQueue {
|
|
294
|
+
id
|
|
295
|
+
name
|
|
296
|
+
agentIds
|
|
297
|
+
groupIds
|
|
298
|
+
depthLimit
|
|
299
|
+
fallbackChannelId
|
|
300
|
+
procedureNames
|
|
301
|
+
procedureCount
|
|
302
|
+
deletedAt
|
|
303
|
+
createdAt
|
|
304
|
+
updatedAt
|
|
305
|
+
}
|
|
306
|
+
`;
|
|
307
|
+
exports.DrozChatApprovalTaskFragmentDoc = `
|
|
308
|
+
fragment drozChatApprovalTask on DrozChatApprovalTask {
|
|
309
|
+
id
|
|
310
|
+
approvalQueueId
|
|
311
|
+
idempotencyKey
|
|
312
|
+
aiAgentId
|
|
313
|
+
sessionId
|
|
314
|
+
customerId
|
|
315
|
+
channel
|
|
316
|
+
toolId
|
|
317
|
+
toolName
|
|
318
|
+
useCase
|
|
319
|
+
args
|
|
320
|
+
trusted
|
|
321
|
+
untrusted
|
|
322
|
+
consumerActive
|
|
323
|
+
summary
|
|
324
|
+
conversation {
|
|
325
|
+
truncated
|
|
326
|
+
messages {
|
|
327
|
+
role
|
|
328
|
+
text
|
|
329
|
+
sentAt
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
ticketId
|
|
333
|
+
expiresAt
|
|
334
|
+
status
|
|
335
|
+
assigneeId
|
|
336
|
+
assigneeName
|
|
337
|
+
assignedAt
|
|
338
|
+
claimExpiresAt
|
|
339
|
+
decision
|
|
340
|
+
rejectionReason
|
|
341
|
+
rejectionNote
|
|
342
|
+
decidedById
|
|
343
|
+
decidedByName
|
|
344
|
+
decidedAt
|
|
345
|
+
divergent {
|
|
346
|
+
before
|
|
347
|
+
after
|
|
348
|
+
}
|
|
349
|
+
executionResult
|
|
350
|
+
history {
|
|
351
|
+
type
|
|
352
|
+
at
|
|
353
|
+
actorId
|
|
354
|
+
targetId
|
|
355
|
+
}
|
|
356
|
+
createdAt
|
|
357
|
+
updatedAt
|
|
358
|
+
}
|
|
359
|
+
`;
|
|
203
360
|
exports.BulkCloseRoutineConfigFragmentDoc = `
|
|
204
361
|
fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {
|
|
205
362
|
id
|
|
@@ -948,6 +1105,128 @@ exports.AgentLogoffDocument = `
|
|
|
948
1105
|
}
|
|
949
1106
|
}
|
|
950
1107
|
${exports.AgentPresenceFragmentDoc}`;
|
|
1108
|
+
exports.ListApprovalQueuesDocument = `
|
|
1109
|
+
query listApprovalQueues {
|
|
1110
|
+
listApprovalQueues {
|
|
1111
|
+
...drozChatApprovalQueue
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1115
|
+
exports.GetApprovalQueueDocument = `
|
|
1116
|
+
query getApprovalQueue($id: ID!) {
|
|
1117
|
+
getApprovalQueue(id: $id) {
|
|
1118
|
+
...drozChatApprovalQueue
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1122
|
+
exports.ListMyApprovalQueuesDocument = `
|
|
1123
|
+
query listMyApprovalQueues {
|
|
1124
|
+
listMyApprovalQueues {
|
|
1125
|
+
...drozChatApprovalQueue
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1129
|
+
exports.ListApprovalTasksDocument = `
|
|
1130
|
+
query listApprovalTasks($filter: ApprovalTasksFilterInput!, $page: Int, $perPage: Int) {
|
|
1131
|
+
listApprovalTasks(filter: $filter, page: $page, perPage: $perPage) {
|
|
1132
|
+
total
|
|
1133
|
+
page
|
|
1134
|
+
perPage
|
|
1135
|
+
nodes {
|
|
1136
|
+
...drozChatApprovalTask
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1141
|
+
exports.GetApprovalTaskDocument = `
|
|
1142
|
+
query getApprovalTask($id: ID!) {
|
|
1143
|
+
getApprovalTask(id: $id) {
|
|
1144
|
+
...drozChatApprovalTask
|
|
1145
|
+
}
|
|
1146
|
+
}
|
|
1147
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1148
|
+
exports.GetApprovalSummaryDocument = `
|
|
1149
|
+
query getApprovalSummary {
|
|
1150
|
+
getApprovalSummary {
|
|
1151
|
+
openCount
|
|
1152
|
+
assignedCount
|
|
1153
|
+
mineCount
|
|
1154
|
+
expiringSoonCount
|
|
1155
|
+
divergentCount
|
|
1156
|
+
manualCheckCount
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
`;
|
|
1160
|
+
exports.CreateApprovalQueueDocument = `
|
|
1161
|
+
mutation createApprovalQueue($input: CreateApprovalQueueInput!) {
|
|
1162
|
+
createApprovalQueue(input: $input) {
|
|
1163
|
+
...drozChatApprovalQueue
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1167
|
+
exports.UpdateApprovalQueueDocument = `
|
|
1168
|
+
mutation updateApprovalQueue($input: UpdateApprovalQueueInput!) {
|
|
1169
|
+
updateApprovalQueue(input: $input) {
|
|
1170
|
+
...drozChatApprovalQueue
|
|
1171
|
+
}
|
|
1172
|
+
}
|
|
1173
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1174
|
+
exports.DeleteApprovalQueueDocument = `
|
|
1175
|
+
mutation deleteApprovalQueue($input: DeleteApprovalQueueInput!) {
|
|
1176
|
+
deleteApprovalQueue(input: $input) {
|
|
1177
|
+
...drozChatApprovalQueue
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
${exports.DrozChatApprovalQueueFragmentDoc}`;
|
|
1181
|
+
exports.ClaimApprovalTaskDocument = `
|
|
1182
|
+
mutation claimApprovalTask($input: ClaimApprovalTaskInput!) {
|
|
1183
|
+
claimApprovalTask(input: $input) {
|
|
1184
|
+
...drozChatApprovalTask
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1188
|
+
exports.ReleaseApprovalTaskDocument = `
|
|
1189
|
+
mutation releaseApprovalTask($input: ReleaseApprovalTaskInput!) {
|
|
1190
|
+
releaseApprovalTask(input: $input) {
|
|
1191
|
+
...drozChatApprovalTask
|
|
1192
|
+
}
|
|
1193
|
+
}
|
|
1194
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1195
|
+
exports.AssignApprovalTaskDocument = `
|
|
1196
|
+
mutation assignApprovalTask($input: AssignApprovalTaskInput!) {
|
|
1197
|
+
assignApprovalTask(input: $input) {
|
|
1198
|
+
...drozChatApprovalTask
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1202
|
+
exports.DecideApprovalTaskDocument = `
|
|
1203
|
+
mutation decideApprovalTask($input: DecideApprovalTaskInput!) {
|
|
1204
|
+
decideApprovalTask(input: $input) {
|
|
1205
|
+
...drozChatApprovalTask
|
|
1206
|
+
}
|
|
1207
|
+
}
|
|
1208
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1209
|
+
exports.OnApprovalTaskChangeDocument = `
|
|
1210
|
+
subscription onApprovalTaskChange {
|
|
1211
|
+
onApprovalTaskChange {
|
|
1212
|
+
action
|
|
1213
|
+
taskId
|
|
1214
|
+
task {
|
|
1215
|
+
...drozChatApprovalTask
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
}
|
|
1219
|
+
${exports.DrozChatApprovalTaskFragmentDoc}`;
|
|
1220
|
+
exports.OnApprovalAlertDocument = `
|
|
1221
|
+
subscription onApprovalAlert {
|
|
1222
|
+
onApprovalAlert {
|
|
1223
|
+
type
|
|
1224
|
+
approvalQueueId
|
|
1225
|
+
taskId
|
|
1226
|
+
raisedAt
|
|
1227
|
+
}
|
|
1228
|
+
}
|
|
1229
|
+
`;
|
|
951
1230
|
exports.GenerateAnalyticsTokenDocument = `
|
|
952
1231
|
mutation generateAnalyticsToken {
|
|
953
1232
|
generateAnalyticsToken {
|
|
@@ -1982,6 +2261,51 @@ function getSdk(requester) {
|
|
|
1982
2261
|
agentLogoff(variables, options) {
|
|
1983
2262
|
return requester(exports.AgentLogoffDocument, variables, options);
|
|
1984
2263
|
},
|
|
2264
|
+
listApprovalQueues(variables, options) {
|
|
2265
|
+
return requester(exports.ListApprovalQueuesDocument, variables, options);
|
|
2266
|
+
},
|
|
2267
|
+
getApprovalQueue(variables, options) {
|
|
2268
|
+
return requester(exports.GetApprovalQueueDocument, variables, options);
|
|
2269
|
+
},
|
|
2270
|
+
listMyApprovalQueues(variables, options) {
|
|
2271
|
+
return requester(exports.ListMyApprovalQueuesDocument, variables, options);
|
|
2272
|
+
},
|
|
2273
|
+
listApprovalTasks(variables, options) {
|
|
2274
|
+
return requester(exports.ListApprovalTasksDocument, variables, options);
|
|
2275
|
+
},
|
|
2276
|
+
getApprovalTask(variables, options) {
|
|
2277
|
+
return requester(exports.GetApprovalTaskDocument, variables, options);
|
|
2278
|
+
},
|
|
2279
|
+
getApprovalSummary(variables, options) {
|
|
2280
|
+
return requester(exports.GetApprovalSummaryDocument, variables, options);
|
|
2281
|
+
},
|
|
2282
|
+
createApprovalQueue(variables, options) {
|
|
2283
|
+
return requester(exports.CreateApprovalQueueDocument, variables, options);
|
|
2284
|
+
},
|
|
2285
|
+
updateApprovalQueue(variables, options) {
|
|
2286
|
+
return requester(exports.UpdateApprovalQueueDocument, variables, options);
|
|
2287
|
+
},
|
|
2288
|
+
deleteApprovalQueue(variables, options) {
|
|
2289
|
+
return requester(exports.DeleteApprovalQueueDocument, variables, options);
|
|
2290
|
+
},
|
|
2291
|
+
claimApprovalTask(variables, options) {
|
|
2292
|
+
return requester(exports.ClaimApprovalTaskDocument, variables, options);
|
|
2293
|
+
},
|
|
2294
|
+
releaseApprovalTask(variables, options) {
|
|
2295
|
+
return requester(exports.ReleaseApprovalTaskDocument, variables, options);
|
|
2296
|
+
},
|
|
2297
|
+
assignApprovalTask(variables, options) {
|
|
2298
|
+
return requester(exports.AssignApprovalTaskDocument, variables, options);
|
|
2299
|
+
},
|
|
2300
|
+
decideApprovalTask(variables, options) {
|
|
2301
|
+
return requester(exports.DecideApprovalTaskDocument, variables, options);
|
|
2302
|
+
},
|
|
2303
|
+
onApprovalTaskChange(variables, options) {
|
|
2304
|
+
return requester(exports.OnApprovalTaskChangeDocument, variables, options);
|
|
2305
|
+
},
|
|
2306
|
+
onApprovalAlert(variables, options) {
|
|
2307
|
+
return requester(exports.OnApprovalAlertDocument, variables, options);
|
|
2308
|
+
},
|
|
1985
2309
|
generateAnalyticsToken(variables, options) {
|
|
1986
2310
|
return requester(exports.GenerateAnalyticsTokenDocument, variables, options);
|
|
1987
2311
|
},
|
|
@@ -579,6 +579,7 @@ export declare enum PlatformTextKey {
|
|
|
579
579
|
MasterRule = "masterRule",
|
|
580
580
|
NegativeFeedbackQuestion = "negativeFeedbackQuestion",
|
|
581
581
|
NegativeSentimentQuestion = "negativeSentimentQuestion",
|
|
582
|
+
PersonalDataMarkerRule = "personalDataMarkerRule",
|
|
582
583
|
PrecedenceFooter = "precedenceFooter",
|
|
583
584
|
PrecedenceHeader = "precedenceHeader",
|
|
584
585
|
PromptInjectionQuestion = "promptInjectionQuestion",
|
package/src/sdks/drozcommons.js
CHANGED
|
@@ -85,6 +85,7 @@ var PlatformTextKey;
|
|
|
85
85
|
PlatformTextKey["MasterRule"] = "masterRule";
|
|
86
86
|
PlatformTextKey["NegativeFeedbackQuestion"] = "negativeFeedbackQuestion";
|
|
87
87
|
PlatformTextKey["NegativeSentimentQuestion"] = "negativeSentimentQuestion";
|
|
88
|
+
PlatformTextKey["PersonalDataMarkerRule"] = "personalDataMarkerRule";
|
|
88
89
|
PlatformTextKey["PrecedenceFooter"] = "precedenceFooter";
|
|
89
90
|
PlatformTextKey["PrecedenceHeader"] = "precedenceHeader";
|
|
90
91
|
PlatformTextKey["PromptInjectionQuestion"] = "promptInjectionQuestion";
|