@clxmedia/types 1.0.128 → 1.0.130

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.
@@ -4,9 +4,6 @@ import type { CLXTaskAssignment, CLXTaskWithStatus } from "../tasks";
4
4
  export type CLXProjectTaskInstance = {
5
5
  id: number;
6
6
  is_required: boolean;
7
- is_active: boolean;
8
- depends_on: EnterpriseEventSlugs | null;
9
- depends_on_description?: string;
10
7
  conditions: CLXFormRuleSet | any;
11
8
  project_step_id: number;
12
9
  created_at: Date;
@@ -33,7 +33,7 @@ export type PagedResult<T> = {
33
33
  take: number;
34
34
  skip: number;
35
35
  };
36
- export type CLXTaskActionType = 'create' | 'assign' | 'comment' | 'notify' | 'start' | 'complete' | 'verify' | 'close';
36
+ export type CLXTaskActionType = 'create' | 'activate' | 'assign' | 'comment' | 'notify' | 'start' | 'complete' | 'verify' | 'close';
37
37
  export type CLXTaskTargetNone = {
38
38
  type: 'none';
39
39
  };
@@ -42,7 +42,7 @@ export type CLXTaskTarget = {
42
42
  id: number;
43
43
  };
44
44
  export type TimeDelay = {
45
- unit: 'seconds' | 'minutes' | 'hours' | 'days';
45
+ unit: 'seconds' | 'minutes' | 'hours' | 'days' | 'business_days';
46
46
  value: number;
47
47
  } | 'immediately';
48
48
  export type CLXTaskNotificationType = 'default' | 'initial_notify' | 'first_reminder' | 'second_reminder' | 'third_reminder' | 'final_reminder' | 'alert';
@@ -80,13 +80,15 @@ export type CLXTaskTrigger = {
80
80
  created_at: Date;
81
81
  fired_at: Date | null;
82
82
  };
83
- export type CLXTask = {
83
+ export type CLXTaskBase = {
84
84
  id: number;
85
85
  name: string;
86
86
  is_active: boolean;
87
+ };
88
+ export type CLXTask = CLXTaskBase & {
87
89
  requires_verification: boolean;
90
+ depends_on?: CLXTaskBase;
88
91
  internal_only: boolean;
89
- slug: EnterpriseEventSlugs;
90
92
  meta_data?: CLXTaskMetaData;
91
93
  description?: string;
92
94
  instructions?: string;
@@ -110,6 +112,7 @@ export type CLXTaskHistoryEntry = {
110
112
  };
111
113
  };
112
114
  export type CLXTaskWithStatus = CLXTask & {
115
+ activated_at: Date | null;
113
116
  started_at: Date | null;
114
117
  completed_at: Date | null;
115
118
  verified_at: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.128",
3
+ "version": "1.0.130",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",