@clxmedia/types 1.0.127 → 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,13 +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;
73
86
  is_active: boolean;
74
87
  requires_verification: boolean;
75
88
  internal_only: boolean;
76
89
  slug: EnterpriseEventSlugs;
77
- start_slug: EnterpriseEventSlugs | null;
78
90
  meta_data?: CLXTaskMetaData;
79
91
  description?: string;
80
92
  instructions?: string;
@@ -106,4 +118,5 @@ export type CLXTaskWithStatus = CLXTask & {
106
118
  };
107
119
  export type CLXTaskWithHistory = CLXTaskWithStatus & {
108
120
  history: CLXTaskHistoryEntry[];
121
+ triggers: CLXTaskTrigger[];
109
122
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.127",
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",