@trii/types 2.10.715 → 2.10.717
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,22 @@ export interface ITicketAutomationLimits {
|
|
|
204
205
|
maximumEventsPerTicketPerMinute: number;
|
|
205
206
|
ignoreSameFlowCausedEvents: boolean;
|
|
206
207
|
deadLetterAfterAttempts: number;
|
|
208
|
+
/** 0 for a space that has never saved its limits; the first PUT creates version 1. */
|
|
209
|
+
version: number;
|
|
210
|
+
createdAt?: Date;
|
|
211
|
+
createdBy?: string;
|
|
212
|
+
updatedAt?: Date;
|
|
213
|
+
updatedBy?: string;
|
|
214
|
+
}
|
|
215
|
+
/** Replaces the whole automation limits record; expectedVersion guards concurrent edits. */
|
|
216
|
+
export interface IUpdateTicketAutomationLimitsDto {
|
|
217
|
+
expectedVersion: number;
|
|
218
|
+
maximumCausalDepth: number;
|
|
219
|
+
maximumActionsPerExecution: number;
|
|
220
|
+
maximumActionsPerTicketPerMinute: number;
|
|
221
|
+
maximumEventsPerTicketPerMinute: number;
|
|
222
|
+
ignoreSameFlowCausedEvents: boolean;
|
|
223
|
+
deadLetterAfterAttempts: number;
|
|
207
224
|
}
|
|
208
225
|
/** Loop-check request evaluated before dispatching an event or executing an action. */
|
|
209
226
|
export interface ITicketAutomationGuardRequest {
|
|
@@ -235,3 +252,21 @@ export interface ITicketFlowBinding extends ITicketAuditedEntity {
|
|
|
235
252
|
updatedAt?: Date;
|
|
236
253
|
updatedBy?: string;
|
|
237
254
|
}
|
|
255
|
+
export interface ICreateTicketFlowBindingDto {
|
|
256
|
+
name: string;
|
|
257
|
+
trigger: TicketAutomationTrigger;
|
|
258
|
+
flowId: string;
|
|
259
|
+
flowVersion?: number;
|
|
260
|
+
categoryIds?: string[];
|
|
261
|
+
enabled?: boolean;
|
|
262
|
+
ignoreEventsCausedBySameFlow?: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface IUpdateTicketFlowBindingDto {
|
|
265
|
+
name?: string;
|
|
266
|
+
trigger?: TicketAutomationTrigger;
|
|
267
|
+
flowId?: string;
|
|
268
|
+
flowVersion?: number;
|
|
269
|
+
categoryIds?: string[];
|
|
270
|
+
enabled?: boolean;
|
|
271
|
+
ignoreEventsCausedBySameFlow?: boolean;
|
|
272
|
+
}
|
|
@@ -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
|
+
}
|