@clxmedia/types 1.0.100 → 1.0.102

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 = 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo';
2
+ export type EventApplicationSource = 'dashboard' | 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo';
3
3
  export type EnterpriseEventBase = {
4
4
  user_email: string;
5
5
  description: string;
@@ -15,7 +15,7 @@ export type EnterpriseEventDashboard = EnterpriseEventBase & {
15
15
  application_source: 'dashboard';
16
16
  master_id: number;
17
17
  event_item_type: string;
18
- event_action: FormsEnterpriseEventAction;
18
+ event_action: DashboardEnterpriseEventAction;
19
19
  };
20
20
  export type DashboardEnterpriseEventSlugs = `dashboard:${string}:${DashboardEnterpriseEventAction}`;
21
21
  export type FormsEnterpriseEventAction = 'locked' | 'unlocked' | 'shared' | 'submitted' | 'reviewed' | (EnterpriseDefaultActions & {});
@@ -26,6 +26,19 @@ export type CLXTaskTarget = {
26
26
  type: 'snapshot' | 'access_request';
27
27
  id: number;
28
28
  };
29
+ export type CLXTaskAssignmentType = 'unassigned' | 'internal' | 'external' | 'role' | 'group' | 'user';
30
+ export type CLXTaskAssignmentGeneral = {
31
+ type: 'unassigned' | 'internal' | 'external';
32
+ };
33
+ export type CLXTaskAssignmentSlug = {
34
+ type: 'role' | 'group';
35
+ slug: string;
36
+ };
37
+ export type CLXTaskAssignmentUser = {
38
+ type: 'user';
39
+ email: string;
40
+ };
41
+ export type CLXTaskAssignment = CLXTaskAssignmentGeneral | CLXTaskAssignmentSlug | CLXTaskAssignmentUser;
29
42
  export type CLXTask = {
30
43
  id: number;
31
44
  requires_verification: boolean;
@@ -37,10 +50,7 @@ export type CLXTask = {
37
50
  closed_at: Date | null;
38
51
  master_id: number;
39
52
  entity_name: string;
40
- assigned_to_user?: {
41
- id: number;
42
- email: string;
43
- };
53
+ assignment: CLXTaskAssignment;
44
54
  target: CLXTaskTargetNone | CLXTaskTarget;
45
55
  };
46
56
  export type CLXTaskHistoryEntry = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.100",
3
+ "version": "1.0.102",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",