@trii/types 2.10.716 → 2.10.718
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.
|
@@ -196,6 +196,7 @@ export interface ITicketAutomationActionExecution {
|
|
|
196
196
|
result?: ITicketAutomationActionResult;
|
|
197
197
|
}
|
|
198
198
|
/** Tenant safety limits enforced by Tickets before accepting Flow-originated actions. */
|
|
199
|
+
/** Tenant safety limits enforced by Tickets before accepting Flow-originated actions. */
|
|
199
200
|
export interface ITicketAutomationLimits {
|
|
200
201
|
spaceId: string;
|
|
201
202
|
maximumCausalDepth: number;
|
|
@@ -204,6 +205,31 @@ export interface ITicketAutomationLimits {
|
|
|
204
205
|
maximumEventsPerTicketPerMinute: number;
|
|
205
206
|
ignoreSameFlowCausedEvents: boolean;
|
|
206
207
|
deadLetterAfterAttempts: number;
|
|
208
|
+
recommended: ITicketAutomationLimitValues;
|
|
209
|
+
/** 0 for a space that has never saved its limits; the first PUT creates version 1. */
|
|
210
|
+
version: number;
|
|
211
|
+
createdAt?: Date;
|
|
212
|
+
createdBy?: string;
|
|
213
|
+
updatedAt?: Date;
|
|
214
|
+
updatedBy?: string;
|
|
215
|
+
}
|
|
216
|
+
/** Replaces the whole automation limits record; expectedVersion guards concurrent edits. */
|
|
217
|
+
export interface IUpdateTicketAutomationLimitsDto {
|
|
218
|
+
expectedVersion: number;
|
|
219
|
+
maximumCausalDepth: number;
|
|
220
|
+
maximumActionsPerExecution: number;
|
|
221
|
+
maximumActionsPerTicketPerMinute: number;
|
|
222
|
+
maximumEventsPerTicketPerMinute: number;
|
|
223
|
+
ignoreSameFlowCausedEvents: boolean;
|
|
224
|
+
deadLetterAfterAttempts: number;
|
|
225
|
+
}
|
|
226
|
+
export interface ITicketAutomationLimitValues {
|
|
227
|
+
maximumCausalDepth: number;
|
|
228
|
+
maximumActionsPerExecution: number;
|
|
229
|
+
maximumActionsPerTicketPerMinute: number;
|
|
230
|
+
maximumEventsPerTicketPerMinute: number;
|
|
231
|
+
ignoreSameFlowCausedEvents: boolean;
|
|
232
|
+
deadLetterAfterAttempts: number;
|
|
207
233
|
}
|
|
208
234
|
/** Loop-check request evaluated before dispatching an event or executing an action. */
|
|
209
235
|
export interface ITicketAutomationGuardRequest {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChannelType } from
|
|
2
|
-
import { ITicketAuditedEntity, TicketPriority, TicketPropertyValue } from
|
|
3
|
-
import { TicketConditionOperator } from
|
|
1
|
+
import { ChannelType } from "../Common/Channels/ChannelType";
|
|
2
|
+
import { ITicketAuditedEntity, TicketPriority, TicketPropertyValue } from "./Common";
|
|
3
|
+
import { TicketConditionOperator } from "./Workflow";
|
|
4
4
|
export declare enum TicketRoutingStrategy {
|
|
5
5
|
ROUND_ROBIN = "ROUND_ROBIN",
|
|
6
6
|
LEAST_BUSY = "LEAST_BUSY",
|
|
@@ -288,3 +288,57 @@ export interface IManualRouteTicketDto {
|
|
|
288
288
|
agentId?: string;
|
|
289
289
|
reason?: string;
|
|
290
290
|
}
|
|
291
|
+
export interface ICreateTicketQueueDto {
|
|
292
|
+
name: string;
|
|
293
|
+
description?: string;
|
|
294
|
+
enabled: boolean;
|
|
295
|
+
priority: number;
|
|
296
|
+
conditions?: ITicketRoutingConditionGroup;
|
|
297
|
+
primaryGroupIds: string[];
|
|
298
|
+
fallbackGroupIds?: string[];
|
|
299
|
+
strategy: TicketRoutingStrategy;
|
|
300
|
+
ordering: ITicketQueueOrder[];
|
|
301
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
302
|
+
offerTimeoutSeconds?: number;
|
|
303
|
+
maximumWaitMinutes?: number;
|
|
304
|
+
escalationPolicyId?: string;
|
|
305
|
+
}
|
|
306
|
+
export type IUpdateTicketQueueDto = Partial<ICreateTicketQueueDto>;
|
|
307
|
+
export interface ICreateTicketSkillDto {
|
|
308
|
+
name: string;
|
|
309
|
+
description?: string;
|
|
310
|
+
enabled?: boolean;
|
|
311
|
+
}
|
|
312
|
+
export type IUpdateTicketSkillDto = Partial<ICreateTicketSkillDto>;
|
|
313
|
+
export interface ICreateTicketEscalationPolicyDto {
|
|
314
|
+
name: string;
|
|
315
|
+
description?: string;
|
|
316
|
+
enabled?: boolean;
|
|
317
|
+
steps: ITicketEscalationStep[];
|
|
318
|
+
}
|
|
319
|
+
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
|
+
export interface ICreateTicketRoutingPolicyDto {
|
|
330
|
+
name: string;
|
|
331
|
+
description?: string;
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
priority: number;
|
|
334
|
+
conditions?: ITicketRoutingConditionGroup;
|
|
335
|
+
queueId: string;
|
|
336
|
+
strategyOverride?: TicketRoutingStrategy;
|
|
337
|
+
skillRequirements?: ITicketSkillRequirement[];
|
|
338
|
+
validFrom?: Date;
|
|
339
|
+
validUntil?: Date;
|
|
340
|
+
}
|
|
341
|
+
export type IUpdateTicketRoutingPolicyDto = Partial<ICreateTicketRoutingPolicyDto>;
|
|
342
|
+
export interface IReorderTicketRoutingPoliciesDto {
|
|
343
|
+
orderedIds: string[];
|
|
344
|
+
}
|