@clxmedia/types 1.0.80 → 1.0.81
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 +12 -2
- package/package.json +1 -1
|
@@ -37,6 +37,16 @@ export type EnterpriseEventAds = EnterpriseEventBase & {
|
|
|
37
37
|
event_action: AdsEnterpriseEventAction;
|
|
38
38
|
};
|
|
39
39
|
export type AdsEnterpriseEventSlugs = `ads:${AdsItemTypes}:${AdsEnterpriseEventAction}`;
|
|
40
|
+
export type ExternalEnterpriseEventAction = BaseEnterpriseEventAction | 'granted' | 'installed';
|
|
41
|
+
export type ExternalItemTypes = 'gtm' | 'google_analytics_editor' | 'gbp_manager' | 'facebook_page_access' | 'google_search_console' | 'none';
|
|
42
|
+
export type EnterpriseEventExternal = EnterpriseEventBase & {
|
|
43
|
+
application_source: 'external';
|
|
44
|
+
event_item_type: ExternalItemTypes;
|
|
45
|
+
event_item_id: string;
|
|
46
|
+
event_item_name?: string;
|
|
47
|
+
event_action: ExternalEnterpriseEventAction;
|
|
48
|
+
};
|
|
49
|
+
export type ExternalEnterpriseEventSlugs = `external:${ExternalItemTypes}:${ExternalEnterpriseEventAction}`;
|
|
40
50
|
export type EnterpriseEventOther = EnterpriseEventBase & {
|
|
41
51
|
application_source: 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
|
|
42
52
|
event_item_type: string;
|
|
@@ -45,8 +55,8 @@ export type EnterpriseEventOther = EnterpriseEventBase & {
|
|
|
45
55
|
event_action: BaseEnterpriseEventAction;
|
|
46
56
|
};
|
|
47
57
|
export type OtherEnterpriseEventSlugs = `${OtherEnterpriseEventApplicationSource}:${string}:${BaseEnterpriseEventAction}`;
|
|
48
|
-
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventOther;
|
|
49
|
-
export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs | OtherEnterpriseEventSlugs;
|
|
58
|
+
export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventExternal | EnterpriseEventOther;
|
|
59
|
+
export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs | ExternalEnterpriseEventSlugs | OtherEnterpriseEventSlugs;
|
|
50
60
|
export type ServiceKeys = 'accessToken' | 'jwtConfig';
|
|
51
61
|
export type AccessConfigs = {
|
|
52
62
|
accessToken?: string;
|