@trii/types 2.10.758 → 2.10.759

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 = {}));
@@ -261,6 +261,11 @@ export interface ITicketRoutingState {
261
261
  requiredSkills?: ITicketSkillRequirement[];
262
262
  lastDecisionId?: string;
263
263
  }
264
+ /**
265
+ * Body of POST /tickets/{id}/routing/enqueue. `queueId` is optional in the
266
+ * contract for automatic routing (the router picks the queue); until that
267
+ * exists the endpoint requires it and answers 422 without it.
268
+ */
264
269
  export interface IEnqueueTicketDto {
265
270
  expectedVersion: number;
266
271
  queueId?: string;
@@ -402,6 +407,29 @@ export interface IEscalationPolicyUsage {
402
407
  export interface IEscalationPolicyUsageSummary {
403
408
  queuesCount: number;
404
409
  }
410
+ export interface ITicketQueueUsageRef {
411
+ id: string;
412
+ name: string;
413
+ }
414
+ /**
415
+ * Body of GET /routing/queues/{id}/usages: live (non-deleted) resources in the
416
+ * space that point at a work queue. Any non-empty entry blocks DELETE (409
417
+ * QUEUE_IN_USE); disabling is always allowed.
418
+ */
419
+ export interface ITicketQueueUsages {
420
+ /** Tickets currently waiting in the queue (routing status QUEUED). */
421
+ tickets: number;
422
+ /** Routing policies whose target is the queue. */
423
+ routingPolicies: ITicketQueueUsageRef[];
424
+ /** Escalation steps with a CHANGE_QUEUE action targeting the queue. */
425
+ escalationPolicies: ITicketQueueUsageRef[];
426
+ /** Macros with an ENQUEUE action targeting the queue. */
427
+ macros: ITicketQueueUsageRef[];
428
+ /** Dashboards whose default filter or any widget query filters by the queue. */
429
+ dashboards: ITicketQueueUsageRef[];
430
+ /** Analytics goals whose filter includes the queue. */
431
+ analyticsGoals: ITicketQueueUsageRef[];
432
+ }
405
433
  /** Mirror of TicketSkillWarningCode; only one member is needed today. */
406
434
  export declare enum EscalationPolicyWarningCode {
407
435
  DISABLED_BUT_REFERENCED = "DISABLED_BUT_REFERENCED"
@@ -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;
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.758",
3
+ "version": "2.10.759",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",