@clxmedia/types 1.0.69 → 1.0.71

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.
@@ -6,6 +6,7 @@ export type CLXProjectTaskTemplate = {
6
6
  slug: string;
7
7
  task_type_id: number;
8
8
  default_required?: boolean;
9
+ requires_verification?: boolean;
9
10
  };
10
11
  export type CLXProjectStepTemplate = {
11
12
  name: string;
@@ -30,6 +31,7 @@ export type CLXTaskInstance = {
30
31
  description: string;
31
32
  master_id: number;
32
33
  assigned_to_user_id: number | null;
34
+ requires_verification: boolean;
33
35
  created_at: Date;
34
36
  closed_at: Date | null;
35
37
  };
@@ -15,7 +15,7 @@ export type PagedResult<T> = {
15
15
  take: number;
16
16
  skip: number;
17
17
  };
18
- export type TaskActionType = 'create' | 'assign' | 'comment' | 'start' | 'complete' | 'close';
18
+ export type CLXTaskActionType = 'create' | 'assign' | 'comment' | 'start' | 'complete' | 'close' | 'verify';
19
19
  export type CLXTaskTargetType = 'none' | 'snapshot' | 'access_request';
20
20
  export type CLXTaskTargetNone = {
21
21
  type: 'none';
@@ -26,6 +26,8 @@ export type CLXTaskTarget = {
26
26
  };
27
27
  export type CLXTask = {
28
28
  id: number;
29
+ requires_verification: boolean;
30
+ slug: string;
29
31
  description: string;
30
32
  assigned_to_user_id: number;
31
33
  created_at: Date;
@@ -43,14 +45,17 @@ export type CLXTask = {
43
45
  };
44
46
  target: CLXTaskTarget | CLXTaskTargetNone;
45
47
  };
48
+ export type CLXTaskHistoryEntry = {
49
+ id: number;
50
+ description: string;
51
+ created_at: Date;
52
+ deleted_at: Date | null;
53
+ action_type: CLXTaskActionType;
54
+ action_by_user: {
55
+ id: number;
56
+ email: string;
57
+ };
58
+ };
46
59
  export type CLXTaskWithHistory = CLXTask & {
47
- history: {
48
- description: string;
49
- created_at: Date;
50
- action_type: TaskActionType;
51
- action_by_user: {
52
- id: number;
53
- email: string;
54
- };
55
- }[];
60
+ history: CLXTaskHistoryEntry[];
56
61
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",