@clxmedia/types 1.0.108 → 1.0.110

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.
@@ -16,4 +16,10 @@ export type XperienceRightsData = {
16
16
  };
17
17
  };
18
18
  };
19
+ groups: {
20
+ [group: string]: {
21
+ common: boolean;
22
+ qualifiers: number[];
23
+ };
24
+ };
19
25
  };
@@ -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';
2
+ export type EventApplicationSource = 'dashboard' | 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo' | 'flex' | 'crmhub';
3
3
  export type EnterpriseEventBase = {
4
4
  user_email: string;
5
5
  description: string;
@@ -56,7 +56,7 @@ export type EnterpriseEventMediaHub = EnterpriseEventBase & {
56
56
  };
57
57
  export type MediaHubEnterpriseEventSlugs = `mediahub:${MediaHubItemTypes}:${MediaHubEnterpriseEventAction}`;
58
58
  export type AdsEnterpriseEventAction = 'reviewed' | 'paused' | 'unpaused' | 'published' | (EnterpriseDefaultActions & {});
59
- export type AdsItemTypes = 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video' | 'none';
59
+ export type AdsItemTypes = 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video' | 'none' | (string & {});
60
60
  export type EnterpriseEventAds = EnterpriseEventBase & {
61
61
  application_source: 'ads';
62
62
  event_item_type: AdsItemTypes;
@@ -66,7 +66,7 @@ export type EnterpriseEventAds = EnterpriseEventBase & {
66
66
  };
67
67
  export type AdsEnterpriseEventSlugs = `ads:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
68
68
  export type OdooEnterpriseEventAction = 'paid' | (EnterpriseDefaultActions & {});
69
- export type OdooItemTypes = 'invoice' | 'none';
69
+ export type OdooItemTypes = 'invoice' | 'none' | (string & {});
70
70
  export type EnterpriseEventOdoo = EnterpriseEventBase & {
71
71
  application_source: 'odoo';
72
72
  event_item_type: OdooItemTypes;
@@ -85,6 +85,13 @@ export type EnterpriseEventExternal = EnterpriseEventBase & {
85
85
  event_action: ExternalEnterpriseEventAction;
86
86
  };
87
87
  export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
88
+ export type EnterpriseEventCRMHub = EnterpriseEventBase & {
89
+ application_source: 'crmhub';
90
+ event_item_type: string;
91
+ event_item_id: string;
92
+ event_action: string;
93
+ };
94
+ export type CRMHubEnterpriseEventSlugs = `crmhub:${string}:${string}`;
88
95
  export type EnterpriseEventFlex = EnterpriseEventBase & {
89
96
  application_source: 'flex';
90
97
  event_item_type: string;
@@ -94,8 +101,8 @@ export type EnterpriseEventFlex = EnterpriseEventBase & {
94
101
  export type FlexEnterpriseEventSlugs = `flex:${string}:${string}`;
95
102
  export type EnterpriseEventItemType = FormsItemTypes | AuthItemTypes | ProjectsItemTypes | MediaHubItemTypes | AdsItemTypes | ExternalItemTypes | OdooItemTypes;
96
103
  export type EnterpriseEventAction = DashboardEnterpriseEventAction | FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
97
- export type EnterpriseEvent = EnterpriseEventFlex | EnterpriseEventDashboard | EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
98
- export type EnterpriseEventSlugs = FlexEnterpriseEventSlugs | DashboardEnterpriseEventSlugs | FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
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;
99
106
  export type ServiceKeys = 'accessToken' | 'jwtConfig';
100
107
  export type AccessConfigs = {
101
108
  accessToken?: string;
@@ -1,12 +1,27 @@
1
1
  import type { EnterpriseEventSlugs } from "../events";
2
2
  export type CLXSortDirection = 'asc' | 'desc';
3
+ export type CLXTaskAssignmentType = 'unassigned' | 'internal' | 'external' | 'role' | 'group' | 'user';
4
+ export type CLXTaskAssignmentGeneral = {
5
+ type: 'unassigned' | 'internal' | 'external';
6
+ };
7
+ export type CLXTaskAssignmentSlug = {
8
+ type: 'role' | 'group';
9
+ slug: string;
10
+ };
11
+ export type CLXTaskAssignmentUser = {
12
+ type: 'user';
13
+ email: string;
14
+ };
15
+ export type CLXTaskAssignment = CLXTaskAssignmentGeneral | CLXTaskAssignmentSlug | CLXTaskAssignmentUser;
16
+ export type CLXTaskStatus = 'pending' | 'open' | 'done';
3
17
  export type CLXTaskFilter = {
4
- assigned_to_user_id?: number;
18
+ assignment_type?: CLXTaskAssignmentType;
19
+ assignment_value?: string;
20
+ my_tasks?: boolean;
5
21
  master_id?: number;
6
- open_only?: boolean;
22
+ include_closed?: boolean;
7
23
  slug?: string;
8
24
  awaiting_verification?: boolean;
9
- internal_only?: boolean;
10
25
  take?: number;
11
26
  skip?: number;
12
27
  sort_by?: string;
@@ -26,19 +41,6 @@ export type CLXTaskTarget = {
26
41
  type: 'snapshot' | 'access_request';
27
42
  id: number;
28
43
  };
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;
42
44
  export type CLXTaskMetaData = {
43
45
  verifier: CLXTaskAssignment | null;
44
46
  resource?: {
@@ -76,7 +78,7 @@ export type CLXTaskWithStatus = CLXTask & {
76
78
  completed_at: Date | null;
77
79
  verified_at: Date | null;
78
80
  responsibility: 'internal' | 'external';
79
- status: 'pending' | 'open' | 'done';
81
+ status: CLXTaskStatus;
80
82
  };
81
83
  export type CLXTaskWithHistory = CLXTaskWithStatus & {
82
84
  history: CLXTaskHistoryEntry[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.108",
3
+ "version": "1.0.110",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",