@clxmedia/types 1.0.106 → 1.0.108

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.
@@ -85,17 +85,15 @@ export type EnterpriseEventExternal = EnterpriseEventBase & {
85
85
  event_action: ExternalEnterpriseEventAction;
86
86
  };
87
87
  export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
88
- export type FlexEnterpriseEventAction = EnterpriseDefaultActions | (string & {});
89
- export type FlexItemTypes = string;
90
88
  export type EnterpriseEventFlex = EnterpriseEventBase & {
91
89
  application_source: 'flex';
92
90
  event_item_type: string;
93
91
  event_item_id: string;
94
- event_action: FlexEnterpriseEventAction;
92
+ event_action: string;
95
93
  };
96
- export type FlexEnterpriseEventSlugs = `flex:${FlexItemTypes}:${FlexEnterpriseEventAction}`;
94
+ export type FlexEnterpriseEventSlugs = `flex:${string}:${string}`;
97
95
  export type EnterpriseEventItemType = FormsItemTypes | AuthItemTypes | ProjectsItemTypes | MediaHubItemTypes | AdsItemTypes | ExternalItemTypes | OdooItemTypes;
98
- export type EnterpriseEventAction = FlexEnterpriseEventAction | DashboardEnterpriseEventAction | FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
96
+ export type EnterpriseEventAction = DashboardEnterpriseEventAction | FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
99
97
  export type EnterpriseEvent = EnterpriseEventFlex | EnterpriseEventDashboard | EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
100
98
  export type EnterpriseEventSlugs = FlexEnterpriseEventSlugs | DashboardEnterpriseEventSlugs | FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
101
99
  export type ServiceKeys = 'accessToken' | 'jwtConfig';
@@ -39,11 +39,19 @@ export type CLXTaskAssignmentUser = {
39
39
  email: string;
40
40
  };
41
41
  export type CLXTaskAssignment = CLXTaskAssignmentGeneral | CLXTaskAssignmentSlug | CLXTaskAssignmentUser;
42
+ export type CLXTaskMetaData = {
43
+ verifier: CLXTaskAssignment | null;
44
+ resource?: {
45
+ path: string;
46
+ label: string;
47
+ };
48
+ };
42
49
  export type CLXTask = {
43
50
  id: number;
44
51
  requires_verification: boolean;
45
52
  internal_only: boolean;
46
53
  slug: EnterpriseEventSlugs;
54
+ meta_data?: CLXTaskMetaData;
47
55
  description?: string;
48
56
  instructions?: string;
49
57
  created_at: Date;
@@ -67,6 +75,8 @@ export type CLXTaskHistoryEntry = {
67
75
  export type CLXTaskWithStatus = CLXTask & {
68
76
  completed_at: Date | null;
69
77
  verified_at: Date | null;
78
+ responsibility: 'internal' | 'external';
79
+ status: 'pending' | 'open' | 'done';
70
80
  };
71
81
  export type CLXTaskWithHistory = CLXTaskWithStatus & {
72
82
  history: CLXTaskHistoryEntry[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.106",
3
+ "version": "1.0.108",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",