@trii/types 2.10.714 → 2.10.716

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.
@@ -235,3 +235,21 @@ export interface ITicketFlowBinding extends ITicketAuditedEntity {
235
235
  updatedAt?: Date;
236
236
  updatedBy?: string;
237
237
  }
238
+ export interface ICreateTicketFlowBindingDto {
239
+ name: string;
240
+ trigger: TicketAutomationTrigger;
241
+ flowId: string;
242
+ flowVersion?: number;
243
+ categoryIds?: string[];
244
+ enabled?: boolean;
245
+ ignoreEventsCausedBySameFlow?: boolean;
246
+ }
247
+ export interface IUpdateTicketFlowBindingDto {
248
+ name?: string;
249
+ trigger?: TicketAutomationTrigger;
250
+ flowId?: string;
251
+ flowVersion?: number;
252
+ categoryIds?: string[];
253
+ enabled?: boolean;
254
+ ignoreEventsCausedBySameFlow?: boolean;
255
+ }
@@ -262,6 +262,40 @@ export interface IUpdateTicketSlaPolicyDto {
262
262
  policyChangeBehavior?: SlaPolicyChangeBehavior;
263
263
  reopenBehavior?: SlaPolicyChangeBehavior;
264
264
  }
265
+ export interface ISimulateSlaPolicyRequest {
266
+ ticket: {
267
+ categoryId?: string;
268
+ priority?: TicketPriority;
269
+ properties?: Record<string, TicketPropertyValue>;
270
+ };
271
+ startAt: string;
272
+ }
273
+ export interface ISimulatedTarget {
274
+ targetId?: string;
275
+ metricDefinitionId?: string;
276
+ metric?: SlaMetricType;
277
+ mode: SlaTimeMode;
278
+ businessCalendarId?: string;
279
+ dueAt: string;
280
+ warnings: {
281
+ thresholdId: string;
282
+ at: string;
283
+ }[];
284
+ }
285
+ export interface ISimulatedCommitment {
286
+ id: string;
287
+ type: ServiceCommitmentType;
288
+ name: string;
289
+ targets: ISimulatedTarget[];
290
+ }
291
+ export interface ISimulateSlaPolicyResponse {
292
+ policy: {
293
+ id: string;
294
+ name: string;
295
+ } | null;
296
+ targets: ISimulatedTarget[];
297
+ commitments: ISimulatedCommitment[];
298
+ }
265
299
  export interface ISlaPausePeriod {
266
300
  startedAt: Date;
267
301
  endedAt?: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.714",
3
+ "version": "2.10.716",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",