@clxmedia/types 1.0.80 → 1.0.82
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.
- package/dist/core/events/index.d.ts +21 -9
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type OtherEnterpriseEventApplicationSource = 'dashboard' | '
|
|
1
|
+
export type OtherEnterpriseEventApplicationSource = 'dashboard' | 'crmhub' | 'emailhub';
|
|
2
2
|
export type BaseEnterpriseEventAction = 'created' | 'updated' | 'archived' | 'unarchived' | 'deleted' | 'info' | 'warning' | 'error';
|
|
3
3
|
export type EnterpriseEventBase = {
|
|
4
4
|
user_email: string;
|
|
@@ -37,16 +37,28 @@ export type EnterpriseEventAds = EnterpriseEventBase & {
|
|
|
37
37
|
event_action: AdsEnterpriseEventAction;
|
|
38
38
|
};
|
|
39
39
|
export type AdsEnterpriseEventSlugs = `ads:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
|
|
40
|
-
export type
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
export type OdooEnterpriseEventAction = BaseEnterpriseEventAction | 'paid';
|
|
41
|
+
export type OdooItemTypes = 'invoice' | 'none';
|
|
42
|
+
export type EnterpriseEventOdoo = EnterpriseEventBase & {
|
|
43
|
+
application_source: 'odoo';
|
|
44
|
+
event_item_type: OdooItemTypes;
|
|
45
|
+
event_item_id: string;
|
|
44
46
|
event_item_name?: string;
|
|
45
|
-
event_action:
|
|
47
|
+
event_action: OdooEnterpriseEventAction;
|
|
48
|
+
};
|
|
49
|
+
export type OdooEnterpriseEventSlugs = `odoo:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
|
|
50
|
+
export type ExternalEnterpriseEventAction = BaseEnterpriseEventAction | 'granted' | 'installed';
|
|
51
|
+
export type ExternalItemTypes = 'gtm' | 'google_analytics_editor' | 'gbp_manager' | 'facebook_page_access' | 'google_search_console' | 'none';
|
|
52
|
+
export type EnterpriseEventExternal = EnterpriseEventBase & {
|
|
53
|
+
application_source: 'external';
|
|
54
|
+
event_item_type: ExternalItemTypes;
|
|
55
|
+
event_item_id: string;
|
|
56
|
+
event_item_name?: string;
|
|
57
|
+
event_action: ExternalEnterpriseEventAction;
|
|
46
58
|
};
|
|
47
|
-
export type
|
|
48
|
-
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds |
|
|
49
|
-
export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs |
|
|
59
|
+
export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
|
|
60
|
+
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOdoo;
|
|
61
|
+
export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OdooEnterpriseEventSlugs;
|
|
50
62
|
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
51
63
|
export type AccessConfigs = {
|
|
52
64
|
accessToken?: string;
|