@trii/types 2.10.717 → 2.10.719

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.
@@ -1,5 +1,5 @@
1
1
  import { MessageVisibility } from "../Common/Messages/Message";
2
- import { ITicketAttachment, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
2
+ import { ITicketAttachment, ITicketAuditedEntity, ITicketProperty, TicketPriority, TicketPropertyValue } from "./Common";
3
3
  import { ITicketFilter, ITicketCursorRequest, ITicketCursorResponse } from "./Api";
4
4
  import { ITicketTimelineEntry } from "./Conversation";
5
5
  import { ISlaMetricCycle } from "./Sla";
@@ -307,7 +307,7 @@ export type ITicketMacroAction = {
307
307
  type: TicketMacroActionType.ENQUEUE;
308
308
  queueId: string;
309
309
  };
310
- export interface ITicketMacro {
310
+ export interface ITicketMacro extends ITicketAuditedEntity {
311
311
  id: string;
312
312
  spaceId: string;
313
313
  name: string;
@@ -329,6 +329,20 @@ export interface IApplyTicketMacroDto {
329
329
  };
330
330
  idempotencyKey: string;
331
331
  }
332
+ export interface ICreateTicketMacroDto {
333
+ name: string;
334
+ description?: string;
335
+ actions: ITicketMacroAction[];
336
+ allowedRoleIds?: string[];
337
+ enabled?: boolean;
338
+ }
339
+ export interface IUpdateTicketMacroDto {
340
+ name?: string;
341
+ description?: string;
342
+ actions?: ITicketMacroAction[];
343
+ allowedRoleIds?: string[];
344
+ enabled?: boolean;
345
+ }
332
346
  export declare enum TicketBulkOperationType {
333
347
  UPDATE = "UPDATE",
334
348
  ASSIGN = "ASSIGN",
@@ -205,6 +205,7 @@ export interface ITicketAutomationLimits {
205
205
  maximumEventsPerTicketPerMinute: number;
206
206
  ignoreSameFlowCausedEvents: boolean;
207
207
  deadLetterAfterAttempts: number;
208
+ recommended: ITicketAutomationLimitValues;
208
209
  /** 0 for a space that has never saved its limits; the first PUT creates version 1. */
209
210
  version: number;
210
211
  createdAt?: Date;
@@ -222,6 +223,14 @@ export interface IUpdateTicketAutomationLimitsDto {
222
223
  ignoreSameFlowCausedEvents: boolean;
223
224
  deadLetterAfterAttempts: number;
224
225
  }
226
+ export interface ITicketAutomationLimitValues {
227
+ maximumCausalDepth: number;
228
+ maximumActionsPerExecution: number;
229
+ maximumActionsPerTicketPerMinute: number;
230
+ maximumEventsPerTicketPerMinute: number;
231
+ ignoreSameFlowCausedEvents: boolean;
232
+ deadLetterAfterAttempts: number;
233
+ }
225
234
  /** Loop-check request evaluated before dispatching an event or executing an action. */
226
235
  export interface ITicketAutomationGuardRequest {
227
236
  ticketId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.717",
3
+ "version": "2.10.719",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",