@clxmedia/types 1.0.76 → 1.0.77
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,27 +1,37 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
application_source: string;
|
|
5
|
-
event_item_type: string;
|
|
6
|
-
} : T extends {
|
|
7
|
-
event_item_type: any;
|
|
8
|
-
} ? {
|
|
9
|
-
application_source: string;
|
|
10
|
-
} : {};
|
|
11
|
-
export type EnterpriseEventApplicationSource = 'mediahub' | 'gbpa' | 'ad-broker' | 'clx-forms' | string;
|
|
12
|
-
export type EnterpriseEventAction = 'client-review-approval' | 'updated-proof' | 'published' | 'publish-failed-error' | 'created-proof' | 'update-live-post' | 'update-live-post-failed' | 'deleted-proof' | 'concession-update' | 'unarchive' | 'create_internal_label' | 'creation' | 'pause' | 'proofing' | 'share-form' | string;
|
|
13
|
-
export type EnterpriseEventItemType = 'asset' | 'proof' | 'concession-automation' | 'onboarding' | string;
|
|
14
|
-
export type EnterpriseEvent = {
|
|
1
|
+
export type EnterpriseEventApplicationSource = 'mediahub' | 'ads' | 'core' | 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
|
|
2
|
+
export type EnterpriseEventAction = 'created' | 'shared' | 'updated' | 'submitted' | 'reviewed' | 'paused' | 'unpaused' | 'published' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error';
|
|
3
|
+
export type EnterpriseEventBase = {
|
|
15
4
|
user_email: string;
|
|
16
5
|
description: string;
|
|
17
|
-
application_source: EnterpriseEventApplicationSource;
|
|
18
|
-
event_action: EnterpriseEventAction;
|
|
19
|
-
event_unix_time_ms: number;
|
|
20
6
|
master_id?: number;
|
|
21
|
-
|
|
22
|
-
|
|
7
|
+
event_unix_time_ms: number;
|
|
8
|
+
event_action: EnterpriseEventAction;
|
|
9
|
+
};
|
|
10
|
+
export type EnterpriseEventMediaHub = EnterpriseEventBase & {
|
|
11
|
+
application_source: 'mediahub';
|
|
12
|
+
event_item_type: 'asset' | 'asset_tag' | 'asset_internal_label' | 'asset_label' | 'video' | 'video_internal_label';
|
|
13
|
+
event_item_id: string;
|
|
14
|
+
event_item_name: string;
|
|
15
|
+
};
|
|
16
|
+
export type EnterpriseEventCore = EnterpriseEventBase & {
|
|
17
|
+
application_source: 'core';
|
|
18
|
+
event_item_type?: 'form' | 'project' | 'task';
|
|
19
|
+
event_item_id: string;
|
|
23
20
|
event_item_name?: string;
|
|
24
|
-
}
|
|
21
|
+
};
|
|
22
|
+
export type EnterpriseEventAds = EnterpriseEventBase & {
|
|
23
|
+
application_source: 'ads';
|
|
24
|
+
event_item_type?: 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video';
|
|
25
|
+
event_item_id: string;
|
|
26
|
+
event_item_name?: string;
|
|
27
|
+
};
|
|
28
|
+
export type EnterpriseEventOther = EnterpriseEventBase & {
|
|
29
|
+
application_source: 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
|
|
30
|
+
event_item_type?: string;
|
|
31
|
+
event_item_id: string;
|
|
32
|
+
event_item_name?: string;
|
|
33
|
+
};
|
|
34
|
+
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventOther;
|
|
25
35
|
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
26
36
|
export type AccessConfigs = {
|
|
27
37
|
accessToken?: string;
|
|
@@ -43,4 +53,3 @@ export type XperienceGCPConfig = {
|
|
|
43
53
|
project: string;
|
|
44
54
|
location: string;
|
|
45
55
|
};
|
|
46
|
-
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { CLXFormRuleSet } from "../clxforms";
|
|
2
2
|
import type { CLXTask } from "../tasks";
|
|
3
|
-
export type CLXProjectStepStatus = "pending" | "open" | "complete";
|
|
3
|
+
export type CLXProjectStepStatus = "pending" | "open" | "complete" | "alert";
|
|
4
4
|
export type CLXProjectStepSlug = string;
|
|
5
5
|
export type CLXProjectTaskTemplate = {
|
|
6
6
|
slug: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
required: boolean;
|
|
8
|
+
verify: boolean;
|
|
9
9
|
};
|
|
10
10
|
export type CLXProjectStepTemplate = {
|
|
11
11
|
name: string;
|
|
@@ -28,7 +28,6 @@ export type CLXProjectTaskInstance = {
|
|
|
28
28
|
is_required: boolean;
|
|
29
29
|
conditions: CLXFormRuleSet | any;
|
|
30
30
|
project_step_id: number;
|
|
31
|
-
task_id: number;
|
|
32
31
|
created_at: Date;
|
|
33
32
|
updated_at: Date;
|
|
34
33
|
task: CLXTask;
|
|
@@ -17,12 +17,11 @@ export type PagedResult<T> = {
|
|
|
17
17
|
skip: number;
|
|
18
18
|
};
|
|
19
19
|
export type CLXTaskActionType = 'create' | 'assign' | 'comment' | 'start' | 'complete' | 'verify' | 'close';
|
|
20
|
-
export type CLXTaskTargetType = 'none' | 'snapshot' | 'access_request';
|
|
21
20
|
export type CLXTaskTargetNone = {
|
|
22
21
|
type: 'none';
|
|
23
22
|
};
|
|
24
23
|
export type CLXTaskTarget = {
|
|
25
|
-
type:
|
|
24
|
+
type: 'snapshot' | 'access_request';
|
|
26
25
|
id: number;
|
|
27
26
|
};
|
|
28
27
|
export type CLXTask = {
|
|
@@ -30,17 +29,15 @@ export type CLXTask = {
|
|
|
30
29
|
requires_verification: boolean;
|
|
31
30
|
slug: string;
|
|
32
31
|
instructions?: string;
|
|
33
|
-
assigned_to_user_id: number;
|
|
34
32
|
created_at: Date;
|
|
35
|
-
closed_at: Date;
|
|
33
|
+
closed_at: Date | null;
|
|
36
34
|
master_id: number;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
assigned_to_user: {
|
|
35
|
+
entity_name: string;
|
|
36
|
+
assigned_to_user?: {
|
|
37
|
+
id: number;
|
|
41
38
|
email: string;
|
|
42
39
|
};
|
|
43
|
-
target:
|
|
40
|
+
target: CLXTaskTargetNone | CLXTaskTarget;
|
|
44
41
|
};
|
|
45
42
|
export type CLXTaskHistoryEntry = {
|
|
46
43
|
id: number;
|