@clxmedia/types 1.0.127 → 1.0.129

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.
@@ -5,8 +5,6 @@ export type CLXProjectTaskInstance = {
5
5
  id: number;
6
6
  is_required: boolean;
7
7
  is_active: boolean;
8
- depends_on: EnterpriseEventSlugs | null;
9
- depends_on_description?: string;
10
8
  conditions: CLXFormRuleSet | any;
11
9
  project_step_id: number;
12
10
  created_at: Date;
@@ -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';
@@ -68,13 +68,24 @@ export type CLXTaskMetaData = {
68
68
  reminder_schedule?: CLXTaskReminderScheduleEntry[];
69
69
  notifications?: CLXTaskNotificationDefinition[];
70
70
  };
71
+ export type CLXTaskTriggerConstraint = 'event_user_to_onboarding_recipient_match' | 'project_id_match';
72
+ export type CLXTaskTriggerConfig = {
73
+ constraints: CLXTaskTriggerConstraint[];
74
+ };
75
+ export type CLXTaskTrigger = {
76
+ id: number;
77
+ trigger_slug: EnterpriseEventSlugs;
78
+ action_type: CLXTaskActionType;
79
+ config?: CLXTaskTriggerConfig;
80
+ created_at: Date;
81
+ fired_at: Date | null;
82
+ };
71
83
  export type CLXTask = {
72
84
  id: number;
85
+ name: string;
73
86
  is_active: boolean;
74
87
  requires_verification: boolean;
75
88
  internal_only: boolean;
76
- slug: EnterpriseEventSlugs;
77
- start_slug: EnterpriseEventSlugs | null;
78
89
  meta_data?: CLXTaskMetaData;
79
90
  description?: string;
80
91
  instructions?: string;
@@ -106,4 +117,5 @@ export type CLXTaskWithStatus = CLXTask & {
106
117
  };
107
118
  export type CLXTaskWithHistory = CLXTaskWithStatus & {
108
119
  history: CLXTaskHistoryEntry[];
120
+ triggers: CLXTaskTrigger[];
109
121
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.127",
3
+ "version": "1.0.129",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",