@clxmedia/types 1.0.94 → 1.0.96

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,4 +1,4 @@
1
- export type XperienceScopes = "company" | "tasks" | "displayreview" | "platform" | "users" | "forms" | "gbpreview" | "gbpa" | "insights" | "mac" | "macreview" | "mediahub" | "onboarding" | "dashboard";
1
+ export type XperienceScopes = "company" | "tasks" | "displayreview" | "platform" | "users" | "forms" | "gbpreview" | "gbpa" | "insights" | "mac" | "macreview" | "billing" | "mediahub" | "onboarding" | "dashboard";
2
2
  export type XperienceAbility = "none" | "view" | "edit" | "admin";
3
3
  export type XperienceRightsData = {
4
4
  userId: number;
@@ -1,24 +1,11 @@
1
- type BaseEnterpriseEventLogQuery = {
1
+ import { EnterpriseEventAction, EnterpriseEventItemType, EventApplicationSource } from "../events";
2
+ export type EnterpriseEventLogQuery = {
3
+ application_source: EventApplicationSource;
4
+ event_item_type?: EnterpriseEventItemType;
5
+ event_action?: EnterpriseEventAction;
2
6
  master_id?: string;
3
7
  user_email?: string;
4
8
  limit?: string;
5
9
  offset?: string;
6
10
  order?: 'ASC' | 'DESC';
7
11
  };
8
- export type EnterpriseEventItemIdExists = BaseEnterpriseEventLogQuery & {
9
- event_item_id: string;
10
- application_source: string;
11
- event_item_type: string;
12
- };
13
- export type EnterpriseEventItemTypeIdExists = BaseEnterpriseEventLogQuery & {
14
- event_item_id?: string;
15
- application_source: string;
16
- event_item_type: string;
17
- };
18
- export type EnterpriseEventNoSpecialRequirements = BaseEnterpriseEventLogQuery & {
19
- event_item_id?: never;
20
- event_item_type?: never;
21
- application_source?: string;
22
- };
23
- export type EnterpriseEventLogQuery = EnterpriseEventItemIdExists | EnterpriseEventItemTypeIdExists | EnterpriseEventNoSpecialRequirements;
24
- export {};
@@ -1,12 +1,15 @@
1
+ type EnterpriseDefaultActions = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error';
2
+ export type EventApplicationSource = 'forms' | 'projects' | 'auth' | 'mediahub' | 'ads' | 'external' | 'odoo';
1
3
  export type EnterpriseEventBase = {
2
4
  user_email: string;
3
5
  description: string;
4
6
  master_id: number;
7
+ application_source: EventApplicationSource;
5
8
  event_unix_time_ms: number;
6
9
  event_item_id?: string;
7
10
  event_item_name?: string;
8
11
  };
9
- export type FormsEnterpriseEventAction = 'created' | 'locked' | 'unlocked' | 'archived' | 'shared' | 'submitted' | 'reviewed';
12
+ export type FormsEnterpriseEventAction = 'locked' | 'unlocked' | 'shared' | 'submitted' | 'reviewed' | (EnterpriseDefaultActions & {});
10
13
  export type FormsItemTypes = 'onboarding' | 'client-request';
11
14
  export type EnterpriseEventForms = EnterpriseEventBase & {
12
15
  application_source: 'forms';
@@ -15,7 +18,7 @@ export type EnterpriseEventForms = EnterpriseEventBase & {
15
18
  event_action: FormsEnterpriseEventAction;
16
19
  };
17
20
  export type FormsEnterpriseEventSlugs = `forms:${FormsItemTypes}:${FormsEnterpriseEventAction}`;
18
- export type AuthEnterpriseEventAction = 'requested' | 'granted' | 'denied' | 'revoked';
21
+ export type AuthEnterpriseEventAction = 'requested' | 'granted' | 'denied' | 'revoked' | (EnterpriseDefaultActions & {});
19
22
  export type AuthItemTypes = 'access';
20
23
  export type EnterpriseEventAuth = EnterpriseEventBase & {
21
24
  application_source: 'auth';
@@ -24,7 +27,7 @@ export type EnterpriseEventAuth = EnterpriseEventBase & {
24
27
  event_action: AuthEnterpriseEventAction;
25
28
  };
26
29
  export type AuthEnterpriseEventSlugs = `auth:${AuthItemTypes}:${AuthEnterpriseEventAction}`;
27
- export type ProjectsEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted';
30
+ export type ProjectsEnterpriseEventAction = EnterpriseDefaultActions;
28
31
  export type ProjectsItemTypes = 'onboarding';
29
32
  export type EnterpriseEventProjects = EnterpriseEventBase & {
30
33
  application_source: 'projects';
@@ -33,7 +36,7 @@ export type EnterpriseEventProjects = EnterpriseEventBase & {
33
36
  event_action: ProjectsEnterpriseEventAction;
34
37
  };
35
38
  export type ProjectsEnterpriseEventSlugs = `projects:${ProjectsItemTypes}:${ProjectsEnterpriseEventAction}`;
36
- export type MediaHubEnterpriseEventAction = 'created' | 'archived' | 'unarchived' | 'deleted';
39
+ export type MediaHubEnterpriseEventAction = EnterpriseDefaultActions;
37
40
  export type MediaHubItemTypes = 'asset' | 'asset_tag' | 'asset_version' | 'asset_internal_label' | 'asset_label' | 'video' | 'video_internal_label';
38
41
  export type EnterpriseEventMediaHub = EnterpriseEventBase & {
39
42
  application_source: 'mediahub';
@@ -43,7 +46,7 @@ export type EnterpriseEventMediaHub = EnterpriseEventBase & {
43
46
  event_action: MediaHubEnterpriseEventAction;
44
47
  };
45
48
  export type MediaHubEnterpriseEventSlugs = `mediahub:${MediaHubItemTypes}:${MediaHubEnterpriseEventAction}`;
46
- export type AdsEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'reviewed' | 'paused' | 'unpaused' | 'published';
49
+ export type AdsEnterpriseEventAction = 'reviewed' | 'paused' | 'unpaused' | 'published' | (EnterpriseDefaultActions & {});
47
50
  export type AdsItemTypes = 'proof_gbpa' | 'proof_mac' | 'proof_social' | 'proof_display' | 'proof_video' | 'none';
48
51
  export type EnterpriseEventAds = EnterpriseEventBase & {
49
52
  application_source: 'ads';
@@ -53,7 +56,7 @@ export type EnterpriseEventAds = EnterpriseEventBase & {
53
56
  event_action: AdsEnterpriseEventAction;
54
57
  };
55
58
  export type AdsEnterpriseEventSlugs = `ads:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
56
- export type OdooEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'paid';
59
+ export type OdooEnterpriseEventAction = 'paid' | (EnterpriseDefaultActions & {});
57
60
  export type OdooItemTypes = 'invoice' | 'none';
58
61
  export type EnterpriseEventOdoo = EnterpriseEventBase & {
59
62
  application_source: 'odoo';
@@ -63,7 +66,7 @@ export type EnterpriseEventOdoo = EnterpriseEventBase & {
63
66
  event_action: OdooEnterpriseEventAction;
64
67
  };
65
68
  export type OdooEnterpriseEventSlugs = `odoo:${OdooItemTypes}:${OdooEnterpriseEventAction}`;
66
- export type ExternalEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error' | 'granted' | 'installed';
69
+ export type ExternalEnterpriseEventAction = 'granted' | 'installed' | (EnterpriseDefaultActions & {});
67
70
  export type ExternalItemTypes = 'gtm' | 'google_analytics_editor' | 'gbp_manager' | 'facebook_page_access' | 'google_search_console' | 'none';
68
71
  export type EnterpriseEventExternal = EnterpriseEventBase & {
69
72
  application_source: 'external';
@@ -73,6 +76,8 @@ export type EnterpriseEventExternal = EnterpriseEventBase & {
73
76
  event_action: ExternalEnterpriseEventAction;
74
77
  };
75
78
  export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
79
+ export type EnterpriseEventItemType = FormsItemTypes | AuthItemTypes | ProjectsItemTypes | MediaHubItemTypes | AdsItemTypes | ExternalItemTypes | OdooItemTypes;
80
+ export type EnterpriseEventAction = FormsEnterpriseEventAction | AuthEnterpriseEventAction | ProjectsEnterpriseEventAction | MediaHubEnterpriseEventAction | AdsEnterpriseEventAction | ExternalEnterpriseEventAction | OdooEnterpriseEventAction;
76
81
  export type EnterpriseEvent = EnterpriseEventForms | EnterpriseEventProjects | EnterpriseEventAuth | EnterpriseEventMediaHub | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
77
82
  export type EnterpriseEventSlugs = FormsEnterpriseEventSlugs | AuthEnterpriseEventSlugs | ProjectsEnterpriseEventSlugs | MediaHubEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
78
83
  export type ServiceKeys = 'accessToken' | 'jwtConfig';
@@ -96,3 +101,4 @@ export type XperienceGCPConfig = {
96
101
  project: string;
97
102
  location: string;
98
103
  };
104
+ export {};
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.94",
3
+ "version": "1.0.96",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",