@clxmedia/types 1.0.136 → 1.0.138

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.
@@ -1,5 +1,5 @@
1
1
  type EnterpriseDefaultActions = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'critical';
2
- export type EventApplicationSource = 'dashboard' | 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo' | 'flex' | 'crmhub';
2
+ export type EventApplicationSource = 'dashboard' | 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo' | 'flex' | 'crmhub' | 'tasks';
3
3
  export type EnterpriseEventBase = {
4
4
  user_email: string;
5
5
  description: string;
@@ -99,10 +99,17 @@ export type EnterpriseEventFlex = EnterpriseEventBase & {
99
99
  event_action: string;
100
100
  };
101
101
  export type FlexEnterpriseEventSlugs = `flex:${string}:${string}`;
102
+ export type EnterpriseEventTasks = EnterpriseEventBase & {
103
+ application_source: 'tasks';
104
+ event_item_type: string;
105
+ event_item_id: string;
106
+ event_action: string;
107
+ };
108
+ export type TasksEnterpriseEventSlugs = `tasks:${string}:${string}`;
102
109
  export type EnterpriseEventItemType = FormsItemTypes | AuthItemTypes | ProjectsItemTypes | MediaHubItemTypes | AdsItemTypes | ExternalItemTypes | OdooItemTypes;
103
110
  export type EnterpriseEventAction = DashboardEnterpriseEventAction | FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
104
- export type EnterpriseEvent = EnterpriseEventCRMHub | EnterpriseEventFlex | EnterpriseEventDashboard | EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
105
- export type EnterpriseEventSlugs = CRMHubEnterpriseEventSlugs | FlexEnterpriseEventSlugs | DashboardEnterpriseEventSlugs | FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
111
+ export type EnterpriseEvent = EnterpriseEventTasks | EnterpriseEventCRMHub | EnterpriseEventFlex | EnterpriseEventDashboard | EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
112
+ export type EnterpriseEventSlugs = TasksEnterpriseEventSlugs | CRMHubEnterpriseEventSlugs | FlexEnterpriseEventSlugs | DashboardEnterpriseEventSlugs | FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
106
113
  export type ServiceKeys = 'accessToken' | 'jwtConfig';
107
114
  export type AccessConfigs = {
108
115
  accessToken?: string;
@@ -73,10 +73,11 @@ export type CLXTaskTriggerConstraint = 'event_user_to_onboarding_recipient_match
73
73
  export type CLXTaskTriggerConfig = {
74
74
  constraints: CLXTaskTriggerConstraint[];
75
75
  };
76
+ export type CLXTaskTriggerAction = 'activate' | 'start' | 'complete' | 'close' | 'require' | 'optional';
76
77
  export type CLXTaskTrigger = {
77
78
  id: number;
78
79
  trigger_slug: EnterpriseEventSlugs;
79
- action_type: CLXTaskActionType;
80
+ action_type: CLXTaskTriggerAction;
80
81
  config?: CLXTaskTriggerConfig;
81
82
  created_at: Date;
82
83
  fired_at: Date | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.136",
3
+ "version": "1.0.138",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",