@trii/types 2.10.663 → 2.10.665

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.
@@ -11,6 +11,12 @@ export interface ITicketStatus extends ITicketAuditedEntity {
11
11
  isInitial: boolean;
12
12
  isFinal: boolean;
13
13
  enabled: boolean;
14
+ version: number;
15
+ }
16
+ export interface ITicketStatusCreateDTO extends Omit<ITicketStatus, 'enabled' | 'version'> {
17
+ }
18
+ export interface ITicketStatusUpdateDTO extends Omit<ITicketStatus, 'version'> {
19
+ expectedVersion: number;
14
20
  }
15
21
  export declare enum TicketConditionOperator {
16
22
  EQUALS = "EQUALS",
@@ -50,14 +56,24 @@ export interface ITicketTransitionCondition {
50
56
  checklistItemId?: string;
51
57
  expectedValue?: TicketPropertyValue;
52
58
  }
59
+ export interface ICreateTicketTransitionConditionDTO extends Omit<ITicketTransitionCondition, 'id'> {
60
+ }
53
61
  export interface ITicketTransition extends ITicketAuditedEntity {
54
62
  name?: string;
55
63
  fromStatusId: string;
56
64
  toStatusId: string;
57
65
  enabled: boolean;
66
+ version: number;
58
67
  allowedRoleIds?: string[];
59
68
  conditions: ITicketTransitionCondition[];
60
69
  }
70
+ export interface ICreateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version' | 'conditions'> {
71
+ conditions?: ICreateTicketTransitionConditionDTO[];
72
+ }
73
+ export interface IUpdateTicketTransitionDTO extends Omit<ITicketTransition, keyof ITicketAuditedEntity | 'version'> {
74
+ id: string;
75
+ expectedVersion: number;
76
+ }
61
77
  export declare enum TicketActivityType {
62
78
  CREATED = "CREATED",
63
79
  UPDATED = "UPDATED",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/types",
3
- "version": "2.10.663",
3
+ "version": "2.10.665",
4
4
  "description": "Types definitions for Trii projects - ",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",