@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.
@@ -1,4 +1,4 @@
1
- export type OtherEnterpriseEventApplicationSource = 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
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 EnterpriseEventOther = EnterpriseEventBase & {
41
- application_source: 'dashboard' | 'odoo' | 'crmhub' | 'emailhub';
42
- event_item_type: string;
43
- event_item_id?: string;
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: BaseEnterpriseEventAction;
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 OtherEnterpriseEventSlugs = `${OtherEnterpriseEventApplicationSource}:${string}:${BaseEnterpriseEventAction}`;
48
- export type EnterpriseEvent = EnterpriseEventMediaHub | EnterpriseEventCore | EnterpriseEventAds | EnterpriseEventOther;
49
- export type EnterpriseEventSlugs = MediaHubEnterpriseEventSlugs | CoreEnterpriseEventSlugs | AdsEnterpriseEventSlugs | OtherEnterpriseEventSlugs;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clxmedia/types",
3
- "version": "1.0.80",
3
+ "version": "1.0.82",
4
4
  "description": "Conversion Logix TypeScript type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",