@clxmedia/types 1.0.126 → 1.0.128

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.
@@ -68,12 +68,25 @@ 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;
86
+ is_active: boolean;
73
87
  requires_verification: boolean;
74
88
  internal_only: boolean;
75
89
  slug: EnterpriseEventSlugs;
76
- start_slug: EnterpriseEventSlugs | null;
77
90
  meta_data?: CLXTaskMetaData;
78
91
  description?: string;
79
92
  instructions?: string;
@@ -105,4 +118,5 @@ export type CLXTaskWithStatus = CLXTask & {
105
118
  };
106
119
  export type CLXTaskWithHistory = CLXTaskWithStatus & {
107
120
  history: CLXTaskHistoryEntry[];
121
+ triggers: CLXTaskTrigger[];
108
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",