@kiriminaja/types 0.1.27 → 0.1.29

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/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './oms';
package/dist/oms.d.ts CHANGED
@@ -135,15 +135,14 @@ export declare const OMS_PRODUCT_TRACKING_EVENTS: readonly ["ViewContent", "Lead
135
135
  export declare const OMS_PRODUCT_CONVERSION_TRIGGERS: readonly ["Page Load", "Purchased"];
136
136
  export type OmsProductTrackingEventNameT = typeof OMS_PRODUCT_TRACKING_EVENTS[number];
137
137
  export type OmsProductConversionTriggerT = typeof OMS_PRODUCT_CONVERSION_TRIGGERS[number];
138
+ export type OmsProductEventTrackingPixelT = {
139
+ id?: string;
140
+ name?: string;
141
+ events?: OmsProductTrackingEventNameT[];
142
+ };
138
143
  export type OmsProductEventTrackingT = {
139
- facebook_pixels?: {
140
- id?: string;
141
- events?: OmsProductTrackingEventNameT[];
142
- }[];
143
- tiktok_pixels?: {
144
- id?: string;
145
- events?: OmsProductTrackingEventNameT[];
146
- }[];
144
+ facebook_pixels?: OmsProductEventTrackingPixelT[];
145
+ tiktok_pixels?: OmsProductEventTrackingPixelT[];
147
146
  google_ads?: {
148
147
  conversion_id?: string;
149
148
  conversion_label?: string;
package/dist/oms.js ADDED
@@ -0,0 +1,10 @@
1
+ export const OMS_PRODUCT_TRACKING_EVENTS = [
2
+ 'ViewContent',
3
+ 'Lead',
4
+ 'AddToCart',
5
+ 'ReceiverInfoCompleted',
6
+ 'ShippingInfoCompleted',
7
+ 'InitiateCheckout',
8
+ 'AddPaymentInfo'
9
+ ];
10
+ export const OMS_PRODUCT_CONVERSION_TRIGGERS = ['Page Load', 'Purchased'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiriminaja/types",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist"
@@ -10,13 +10,19 @@
10
10
  "clean": "rimraf dist",
11
11
  "prepublishOnly": "npm run build"
12
12
  },
13
+ "main": "./dist/index.js",
14
+ "module": "./dist/index.js",
13
15
  "types": "./dist/index.d.ts",
14
16
  "exports": {
15
17
  ".": {
16
- "types": "./dist/index.d.ts"
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js",
20
+ "default": "./dist/index.js"
17
21
  },
18
22
  "./checkout": {
19
- "types": "./dist/checkout.d.ts"
23
+ "types": "./dist/checkout.d.ts",
24
+ "import": "./dist/checkout.js",
25
+ "default": "./dist/checkout.js"
20
26
  }
21
27
  },
22
28
  "sideEffects": false,