@clxmedia/types 1.0.87 → 1.0.89
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,4 @@
|
|
|
1
1
|
import type { XperienceAbility } from "../auth";
|
|
2
|
-
import { EnterpriseEventSlugs } from "../events";
|
|
3
2
|
export type CLXFormSelectOption = {
|
|
4
3
|
value: string;
|
|
5
4
|
label: string;
|
|
@@ -21,7 +20,7 @@ export type CLXFormState = {
|
|
|
21
20
|
mode: CLXFormMode;
|
|
22
21
|
locked: boolean;
|
|
23
22
|
};
|
|
24
|
-
export type CLXFormSubmitAction = 'lock' | 'reset' | 'snapshot' | 'notify'
|
|
23
|
+
export type CLXFormSubmitAction = 'lock' | 'reset' | 'snapshot' | 'notify';
|
|
25
24
|
export type CLXFormAllowable = 'share' | 'reset';
|
|
26
25
|
export type CLXFormSectionFormat = 'tabs' | 'accordion';
|
|
27
26
|
export type CLXFormSettingsDisplay = {
|
|
@@ -35,7 +34,6 @@ export type CLXFormSubmitConfig = {
|
|
|
35
34
|
actions: CLXFormSubmitAction[];
|
|
36
35
|
notifyEmails: string[];
|
|
37
36
|
notifySubmitter: boolean;
|
|
38
|
-
taskType?: EnterpriseEventSlugs;
|
|
39
37
|
};
|
|
40
38
|
export type CLXFormSettings = {
|
|
41
39
|
allow: CLXFormAllowable[];
|
|
@@ -1,11 +1,31 @@
|
|
|
1
1
|
export type EnterpriseEventBase = {
|
|
2
2
|
user_email: string;
|
|
3
3
|
description: string;
|
|
4
|
-
master_id
|
|
4
|
+
master_id: number;
|
|
5
5
|
event_unix_time_ms: number;
|
|
6
|
+
event_item_id?: string;
|
|
7
|
+
event_item_name?: string;
|
|
8
|
+
};
|
|
9
|
+
export type FormsEnterpriseEventAction = 'created' | 'locked' | 'unlocked' | 'archived' | 'shared' | 'submitted' | 'reviewed';
|
|
10
|
+
export type FormsItemTypes = 'onboarding' | 'client-request';
|
|
11
|
+
export type EnterpriseEventForms = EnterpriseEventBase & {
|
|
12
|
+
application_source: 'forms';
|
|
13
|
+
master_id: number;
|
|
14
|
+
event_item_type: FormsItemTypes;
|
|
15
|
+
event_action: FormsEnterpriseEventAction;
|
|
16
|
+
};
|
|
17
|
+
export type FormsEnterpriseEventSlugs = `forms:${FormsItemTypes}:${FormsEnterpriseEventAction}`;
|
|
18
|
+
export type ProjectsEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted';
|
|
19
|
+
export type ProjectsItemTypes = 'onboarding';
|
|
20
|
+
export type EnterpriseEventProjects = EnterpriseEventBase & {
|
|
21
|
+
application_source: 'projects';
|
|
22
|
+
event_item_type: ProjectsItemTypes;
|
|
23
|
+
event_item_id: string;
|
|
24
|
+
event_action: ProjectsEnterpriseEventAction;
|
|
6
25
|
};
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
26
|
+
export type ProjectsEnterpriseEventSlugs = `projects:${ProjectsItemTypes}:${ProjectsEnterpriseEventAction}`;
|
|
27
|
+
export type MediaHubEnterpriseEventAction = 'created' | 'archived' | 'unarchived' | 'deleted';
|
|
28
|
+
export type MediaHubItemTypes = 'asset' | 'asset_tag' | 'asset_version' | 'asset_internal_label' | 'asset_label' | 'video' | 'video_internal_label';
|
|
9
29
|
export type EnterpriseEventMediaHub = EnterpriseEventBase & {
|
|
10
30
|
application_source: 'mediahub';
|
|
11
31
|
event_item_type: MediaHubItemTypes;
|
|
@@ -14,16 +34,6 @@ export type EnterpriseEventMediaHub = EnterpriseEventBase & {
|
|
|
14
34
|
event_action: MediaHubEnterpriseEventAction;
|
|
15
35
|
};
|
|
16
36
|
export type MediaHubEnterpriseEventSlugs = `mediahub:${MediaHubItemTypes}:${MediaHubEnterpriseEventAction}`;
|
|
17
|
-
export type CoreEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'shared' | 'submitted' | 'reviewed';
|
|
18
|
-
export type CoreItemTypes = 'client_request' | 'onboarding_form' | 'access_request' | 'project' | 'task';
|
|
19
|
-
export type EnterpriseEventCore = EnterpriseEventBase & {
|
|
20
|
-
application_source: 'core';
|
|
21
|
-
event_item_type: CoreItemTypes;
|
|
22
|
-
event_item_id: string;
|
|
23
|
-
event_item_name?: string;
|
|
24
|
-
event_action: CoreEnterpriseEventAction;
|
|
25
|
-
};
|
|
26
|
-
export type CoreEnterpriseEventSlugs = `core:${CoreItemTypes}:${CoreEnterpriseEventAction}`;
|
|
27
37
|
export type AdsEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'reviewed' | 'paused' | 'unpaused' | 'published';
|
|
28
38
|
export type AdsItemTypes = 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video' | 'none';
|
|
29
39
|
export type EnterpriseEventAds = EnterpriseEventBase & {
|
|
@@ -54,8 +64,8 @@ export type EnterpriseEventExternal = EnterpriseEventBase & {
|
|
|
54
64
|
event_action: ExternalEnterpriseEventAction;
|
|
55
65
|
};
|
|
56
66
|
export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
|
|
57
|
-
export type EnterpriseEvent =
|
|
58
|
-
export type EnterpriseEventSlugs =
|
|
67
|
+
export type EnterpriseEvent = EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
|
|
68
|
+
export type EnterpriseEventSlugs = FormsEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
|
|
59
69
|
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
60
70
|
export type AccessConfigs = {
|
|
61
71
|
accessToken?: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { CLXFormRuleSet } from "../clxforms";
|
|
2
2
|
import type { EnterpriseEventSlugs } from "../events";
|
|
3
3
|
import type { CLXTask } from "../tasks";
|
|
4
|
-
export type CLXProjectStepStatus = "pending" | "open" | "complete" | "alert";
|
|
5
4
|
export type CLXProjectStepSlug = string;
|
|
6
5
|
export type CLXProjectTaskTemplate = {
|
|
7
6
|
slug: EnterpriseEventSlugs;
|
|
@@ -11,9 +10,6 @@ export type CLXProjectTaskTemplate = {
|
|
|
11
10
|
};
|
|
12
11
|
export type CLXProjectStepTemplate = {
|
|
13
12
|
name: string;
|
|
14
|
-
slug: string;
|
|
15
|
-
status: CLXProjectStepStatus;
|
|
16
|
-
depends_on: EnterpriseEventSlugs | null;
|
|
17
13
|
tasks: CLXProjectTaskTemplate[];
|
|
18
14
|
};
|
|
19
15
|
export type CLXProjectTemplate = {
|
|
@@ -41,9 +37,6 @@ export type CLXProjectStepInstance = {
|
|
|
41
37
|
id: number;
|
|
42
38
|
project_id: number;
|
|
43
39
|
name: string;
|
|
44
|
-
slug: string;
|
|
45
|
-
depends_on: EnterpriseEventSlugs | null;
|
|
46
|
-
status: CLXProjectStepStatus;
|
|
47
40
|
project_tasks: CLXProjectTaskInstance[];
|
|
48
41
|
};
|
|
49
42
|
export type CLXProjectInstance = {
|