@trii/types 2.10.685 → 2.10.686
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.
|
@@ -64,3 +64,44 @@ export interface ConversationQueue {
|
|
|
64
64
|
updatedAt: Date;
|
|
65
65
|
updatedByUserId?: ID;
|
|
66
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Editable Queue definition sent by clients.
|
|
69
|
+
*
|
|
70
|
+
* It excludes id, version and audit fields controlled by the backend. Nested
|
|
71
|
+
* routing, SLA and audience objects use full-replacement semantics.
|
|
72
|
+
*/
|
|
73
|
+
export interface ConversationQueueDefinitionInput {
|
|
74
|
+
name: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
color?: string;
|
|
77
|
+
enabled: boolean;
|
|
78
|
+
priority: number;
|
|
79
|
+
memberGroupIds: ID[];
|
|
80
|
+
supervisorGroupIds: ID[];
|
|
81
|
+
routing: QueueRoutingPolicy;
|
|
82
|
+
sla: ConversationQueueSlaConfig;
|
|
83
|
+
audience: ConversationQueueAudienceConfig;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Creates a Queue. commandId makes retries idempotent. The backend assigns
|
|
87
|
+
* queue id, version and audit fields.
|
|
88
|
+
*/
|
|
89
|
+
export interface CreateConversationQueueRequest {
|
|
90
|
+
commandId: ID;
|
|
91
|
+
spaceId: ID;
|
|
92
|
+
definition: ConversationQueueDefinitionInput;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Replaces the editable definition of an existing Queue.
|
|
96
|
+
*
|
|
97
|
+
* expectedVersion is the version loaded by the client; it is not incremented
|
|
98
|
+
* by the client. The backend rejects stale writes and returns the updated
|
|
99
|
+
* ConversationQueue with its new version and audit fields.
|
|
100
|
+
*/
|
|
101
|
+
export interface UpdateConversationQueueRequest {
|
|
102
|
+
commandId: ID;
|
|
103
|
+
spaceId: ID;
|
|
104
|
+
queueId: ID;
|
|
105
|
+
expectedVersion: number;
|
|
106
|
+
definition: ConversationQueueDefinitionInput;
|
|
107
|
+
}
|