@trii/types 2.10.758 → 2.10.760
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.
|
@@ -23,6 +23,8 @@ export declare enum TicketAutomationTrigger {
|
|
|
23
23
|
SATISFACTION_RECEIVED = "SATISFACTION_RECEIVED",
|
|
24
24
|
TICKET_REOPENED = "TICKET_REOPENED",
|
|
25
25
|
TICKET_RESOLVED = "TICKET_RESOLVED",
|
|
26
|
+
/** The ticket entered a work queue or moved to another one. */
|
|
27
|
+
TICKET_ENQUEUED = "TICKET_ENQUEUED",
|
|
26
28
|
SCHEDULED = "SCHEDULED",
|
|
27
29
|
MANUAL = "MANUAL"
|
|
28
30
|
}
|
|
@@ -25,6 +25,8 @@ var TicketAutomationTrigger;
|
|
|
25
25
|
TicketAutomationTrigger["SATISFACTION_RECEIVED"] = "SATISFACTION_RECEIVED";
|
|
26
26
|
TicketAutomationTrigger["TICKET_REOPENED"] = "TICKET_REOPENED";
|
|
27
27
|
TicketAutomationTrigger["TICKET_RESOLVED"] = "TICKET_RESOLVED";
|
|
28
|
+
/** The ticket entered a work queue or moved to another one. */
|
|
29
|
+
TicketAutomationTrigger["TICKET_ENQUEUED"] = "TICKET_ENQUEUED";
|
|
28
30
|
TicketAutomationTrigger["SCHEDULED"] = "SCHEDULED";
|
|
29
31
|
TicketAutomationTrigger["MANUAL"] = "MANUAL";
|
|
30
32
|
})(TicketAutomationTrigger || (exports.TicketAutomationTrigger = TicketAutomationTrigger = {}));
|
|
@@ -134,7 +134,6 @@ export interface ITicketQueue extends ITicketAuditedEntity {
|
|
|
134
134
|
description?: string;
|
|
135
135
|
enabled: boolean;
|
|
136
136
|
priority: number;
|
|
137
|
-
conditions?: ITicketRoutingConditionGroup;
|
|
138
137
|
primaryGroupIds: string[];
|
|
139
138
|
fallbackGroupIds?: string[];
|
|
140
139
|
strategy: TicketRoutingStrategy;
|
|
@@ -261,6 +260,11 @@ export interface ITicketRoutingState {
|
|
|
261
260
|
requiredSkills?: ITicketSkillRequirement[];
|
|
262
261
|
lastDecisionId?: string;
|
|
263
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* Body of POST /tickets/{id}/routing/enqueue. `queueId` is optional in the
|
|
265
|
+
* contract for automatic routing (the router picks the queue); until that
|
|
266
|
+
* exists the endpoint requires it and answers 422 without it.
|
|
267
|
+
*/
|
|
264
268
|
export interface IEnqueueTicketDto {
|
|
265
269
|
expectedVersion: number;
|
|
266
270
|
queueId?: string;
|
|
@@ -293,7 +297,6 @@ export interface ICreateTicketQueueDto {
|
|
|
293
297
|
description?: string;
|
|
294
298
|
enabled: boolean;
|
|
295
299
|
priority: number;
|
|
296
|
-
conditions?: ITicketRoutingConditionGroup;
|
|
297
300
|
primaryGroupIds: string[];
|
|
298
301
|
fallbackGroupIds?: string[];
|
|
299
302
|
strategy: TicketRoutingStrategy;
|
|
@@ -317,15 +320,6 @@ export interface ICreateTicketEscalationPolicyDto {
|
|
|
317
320
|
steps: ITicketEscalationStep[];
|
|
318
321
|
}
|
|
319
322
|
export type IUpdateTicketEscalationPolicyDto = Partial<ICreateTicketEscalationPolicyDto>;
|
|
320
|
-
export interface ITicketQueueSimulateRequestDto {
|
|
321
|
-
queueId?: string;
|
|
322
|
-
conditions?: ITicketRoutingConditionGroup;
|
|
323
|
-
sampleTicket: Record<string, unknown>;
|
|
324
|
-
}
|
|
325
|
-
export interface ITicketQueueSimulateResponseDto {
|
|
326
|
-
wouldEnter: boolean;
|
|
327
|
-
reasons: string[];
|
|
328
|
-
}
|
|
329
323
|
export interface ICreateTicketRoutingPolicyDto {
|
|
330
324
|
name: string;
|
|
331
325
|
description?: string;
|
|
@@ -402,6 +396,29 @@ export interface IEscalationPolicyUsage {
|
|
|
402
396
|
export interface IEscalationPolicyUsageSummary {
|
|
403
397
|
queuesCount: number;
|
|
404
398
|
}
|
|
399
|
+
export interface ITicketQueueUsageRef {
|
|
400
|
+
id: string;
|
|
401
|
+
name: string;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Body of GET /routing/queues/{id}/usages: live (non-deleted) resources in the
|
|
405
|
+
* space that point at a work queue. Any non-empty entry blocks DELETE (409
|
|
406
|
+
* QUEUE_IN_USE); disabling is always allowed.
|
|
407
|
+
*/
|
|
408
|
+
export interface ITicketQueueUsages {
|
|
409
|
+
/** Tickets currently waiting in the queue (routing status QUEUED). */
|
|
410
|
+
tickets: number;
|
|
411
|
+
/** Routing policies whose target is the queue. */
|
|
412
|
+
routingPolicies: ITicketQueueUsageRef[];
|
|
413
|
+
/** Escalation steps with a CHANGE_QUEUE action targeting the queue. */
|
|
414
|
+
escalationPolicies: ITicketQueueUsageRef[];
|
|
415
|
+
/** Macros with an ENQUEUE action targeting the queue. */
|
|
416
|
+
macros: ITicketQueueUsageRef[];
|
|
417
|
+
/** Dashboards whose default filter or any widget query filters by the queue. */
|
|
418
|
+
dashboards: ITicketQueueUsageRef[];
|
|
419
|
+
/** Analytics goals whose filter includes the queue. */
|
|
420
|
+
analyticsGoals: ITicketQueueUsageRef[];
|
|
421
|
+
}
|
|
405
422
|
/** Mirror of TicketSkillWarningCode; only one member is needed today. */
|
|
406
423
|
export declare enum EscalationPolicyWarningCode {
|
|
407
424
|
DISABLED_BUT_REFERENCED = "DISABLED_BUT_REFERENCED"
|
package/dist/Tickets/Ticket.d.ts
CHANGED
|
@@ -102,6 +102,13 @@ export interface ICreateTicketDto {
|
|
|
102
102
|
* be used together.
|
|
103
103
|
*/
|
|
104
104
|
messageReferences?: string[];
|
|
105
|
+
/**
|
|
106
|
+
* Work queue the ticket enters on creation (manual routing). Optional: when
|
|
107
|
+
* absent the ticket is created NOT_ROUTED. Automatic queue selection from
|
|
108
|
+
* routing policies and queue conditions is planned for this same case, so
|
|
109
|
+
* clients must not treat "absent" as "never routed".
|
|
110
|
+
*/
|
|
111
|
+
queueId?: string;
|
|
105
112
|
}
|
|
106
113
|
export interface IUpdateTicketDto {
|
|
107
114
|
expectedVersion: number;
|
|
@@ -92,7 +92,9 @@ export declare enum TicketActivityType {
|
|
|
92
92
|
TASK_COMPLETED = "TASK_COMPLETED",
|
|
93
93
|
ALL_REQUIRED_TASKS_COMPLETED = "ALL_REQUIRED_TASKS_COMPLETED",
|
|
94
94
|
CHECKLIST_COMPLETED = "CHECKLIST_COMPLETED",
|
|
95
|
-
TICKET_EVENT = "TICKET_EVENT"
|
|
95
|
+
TICKET_EVENT = "TICKET_EVENT",
|
|
96
|
+
/** The ticket entered a work queue or moved to another one (`changes` carries `queueId`). */
|
|
97
|
+
ENQUEUED = "ENQUEUED"
|
|
96
98
|
}
|
|
97
99
|
export interface ITicketFieldChange {
|
|
98
100
|
fieldNameKey: string;
|
package/dist/Tickets/Workflow.js
CHANGED
|
@@ -41,4 +41,6 @@ var TicketActivityType;
|
|
|
41
41
|
TicketActivityType["ALL_REQUIRED_TASKS_COMPLETED"] = "ALL_REQUIRED_TASKS_COMPLETED";
|
|
42
42
|
TicketActivityType["CHECKLIST_COMPLETED"] = "CHECKLIST_COMPLETED";
|
|
43
43
|
TicketActivityType["TICKET_EVENT"] = "TICKET_EVENT";
|
|
44
|
+
/** The ticket entered a work queue or moved to another one (`changes` carries `queueId`). */
|
|
45
|
+
TicketActivityType["ENQUEUED"] = "ENQUEUED";
|
|
44
46
|
})(TicketActivityType || (exports.TicketActivityType = TicketActivityType = {}));
|