@clxmedia/types 1.0.78 → 1.0.80
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,9 +16,9 @@ export type EnterpriseEventMediaHub = EnterpriseEventBase & {
|
|
|
16
16
|
event_item_name: string;
|
|
17
17
|
event_action: MediaHubEnterpriseEventAction;
|
|
18
18
|
};
|
|
19
|
-
export type MediaHubEnterpriseEventSlugs = `
|
|
19
|
+
export type MediaHubEnterpriseEventSlugs = `mediahub:${MediaHubItemTypes}:${MediaHubEnterpriseEventAction}`;
|
|
20
20
|
export type CoreEnterpriseEventAction = BaseEnterpriseEventAction | 'shared' | 'submitted' | 'reviewed';
|
|
21
|
-
export type CoreItemTypes = '
|
|
21
|
+
export type CoreItemTypes = 'client_request' | 'onboarding_form' | 'access_request' | 'project' | 'task';
|
|
22
22
|
export type EnterpriseEventCore = EnterpriseEventBase & {
|
|
23
23
|
application_source: 'core';
|
|
24
24
|
event_item_type: CoreItemTypes;
|
|
@@ -26,25 +26,25 @@ export type EnterpriseEventCore = EnterpriseEventBase & {
|
|
|
26
26
|
event_item_name?: string;
|
|
27
27
|
event_action: CoreEnterpriseEventAction;
|
|
28
28
|
};
|
|
29
|
-
export type CoreEnterpriseEventSlugs = `
|
|
29
|
+
export type CoreEnterpriseEventSlugs = `core:${CoreItemTypes}:${CoreEnterpriseEventAction}`;
|
|
30
30
|
export type AdsEnterpriseEventAction = BaseEnterpriseEventAction | 'reviewed' | 'paused' | 'unpaused' | 'published';
|
|
31
31
|
export type AdsItemTypes = 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video' | 'none';
|
|
32
32
|
export type EnterpriseEventAds = EnterpriseEventBase & {
|
|
33
33
|
application_source: 'ads';
|
|
34
|
-
event_item_type
|
|
34
|
+
event_item_type: AdsItemTypes;
|
|
35
35
|
event_item_id: string;
|
|
36
36
|
event_item_name?: string;
|
|
37
37
|
event_action: AdsEnterpriseEventAction;
|
|
38
38
|
};
|
|
39
|
-
export type AdsEnterpriseEventSlugs = `
|
|
39
|
+
export type AdsEnterpriseEventSlugs = `ads:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
|
|
40
40
|
export type EnterpriseEventOther = EnterpriseEventBase & {
|
|
41
41
|
application_source: 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
|
|
42
|
-
event_item_type
|
|
43
|
-
event_item_id
|
|
42
|
+
event_item_type: string;
|
|
43
|
+
event_item_id?: string;
|
|
44
44
|
event_item_name?: string;
|
|
45
45
|
event_action: BaseEnterpriseEventAction;
|
|
46
46
|
};
|
|
47
|
-
export type OtherEnterpriseEventSlugs = `${OtherEnterpriseEventApplicationSource}
|
|
47
|
+
export type OtherEnterpriseEventSlugs = `${OtherEnterpriseEventApplicationSource}:${string}:${BaseEnterpriseEventAction}`;
|
|
48
48
|
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventOther;
|
|
49
49
|
export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs | OtherEnterpriseEventSlugs;
|
|
50
50
|
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
@@ -12,6 +12,7 @@ export type CLXProjectStepTemplate = {
|
|
|
12
12
|
name: string;
|
|
13
13
|
slug: string;
|
|
14
14
|
status: CLXProjectStepStatus;
|
|
15
|
+
depends_on: EnterpriseEventSlugs | null;
|
|
15
16
|
tasks: CLXProjectTaskTemplate[];
|
|
16
17
|
};
|
|
17
18
|
export type CLXProjectTemplate = {
|
|
@@ -38,6 +39,7 @@ export type CLXProjectStepInstance = {
|
|
|
38
39
|
project_id: number;
|
|
39
40
|
name: string;
|
|
40
41
|
slug: string;
|
|
42
|
+
depends_on: EnterpriseEventSlugs | null;
|
|
41
43
|
status: CLXProjectStepStatus;
|
|
42
44
|
project_tasks: CLXProjectTaskInstance[];
|
|
43
45
|
};
|