@trii/types 2.10.760 → 2.10.762

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.
@@ -47,10 +47,6 @@ export interface ConversationQueue {
47
47
  description?: string;
48
48
  color?: string;
49
49
  enabled: boolean;
50
- /**
51
- * Higher values are evaluated first when multiple queues match.
52
- */
53
- priority: number;
54
50
  memberGroupIds: ID[];
55
51
  supervisorGroupIds: ID[];
56
52
  routing: QueueRoutingPolicy;
@@ -73,7 +69,6 @@ export interface ConversationQueueDefinitionInput {
73
69
  description?: string;
74
70
  color?: string;
75
71
  enabled: boolean;
76
- priority: number;
77
72
  memberGroupIds: ID[];
78
73
  supervisorGroupIds: ID[];
79
74
  routing: QueueRoutingPolicy;
@@ -1,15 +1,7 @@
1
- import { ChannelType } from '../Common/Channels/ChannelType';
2
1
  interface QueueRoutingPolicyBase {
3
- requiredSkills?: string[];
4
- optionalSkills?: string[];
5
- acceptedChannelTypes: ChannelType[];
6
2
  requireActiveParticipation: boolean;
7
3
  requireAvailablePresence: boolean;
8
4
  requireAcceptance: boolean;
9
- capacityPolicy: {
10
- maxConcurrentByChannelType: Partial<Record<ChannelType, number>>;
11
- weightByChannelType: Partial<Record<ChannelType, number>>;
12
- };
13
5
  fallback: {
14
6
  action: 'keep_queued' | 'overflow_queue' | 'assign_supervisor';
15
7
  overflowQueueId?: string;
@@ -61,3 +61,19 @@ export interface IAssignTicketDto {
61
61
  assignedGroupId?: string;
62
62
  }
63
63
  export type TicketPage = ITicketCursorResponse<ITicket>;
64
+ /** One ticket waiting in a work queue, as listed by GET /routing/queues/{id}/work. */
65
+ export interface ITicketQueueWorkItem {
66
+ ticket: ITicket;
67
+ enqueuedAt: Date;
68
+ /** 1-based position in the queue's configured order across pages. */
69
+ position: number;
70
+ }
71
+ /** Body of GET /routing/queues/{id}/work. Only members of the queue's groups may read it. */
72
+ export type ITicketQueueWorkPage = ITicketCursorResponse<ITicketQueueWorkItem>;
73
+ /**
74
+ * Body of POST /tickets/{id}/routing/pull: an agent who belongs to one of the
75
+ * queue's groups takes a QUEUED ticket. Pulling is an implicit accept.
76
+ */
77
+ export interface IPullTicketDto {
78
+ expectedVersion: number;
79
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.760",
3
+ "version": "2.10.762",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",