@mailbiz/onsite-godeep-vendor 0.1.0 → 0.2.0

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/README.md CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  Vendor websiste: https://godeep.global/
4
4
 
5
- Copyright (c) 2026 Mailbiz.
5
+ Copyright (c) 2026 Mailbiz
@@ -4,6 +4,7 @@ interface GodeepWindow extends OnsiteCoreWindow {
4
4
  f1s?: F1SContext;
5
5
  F1SOLUCOES?: F1SOLUCOESContext;
6
6
  PEDIDO?: GodeepPedido;
7
+ xcnt_product_id?: string;
7
8
  }
8
9
  interface GodeepPedido {
9
10
  data_estimada_entrega: number;
@@ -15,26 +16,30 @@ interface GodeepPedido {
15
16
  interface GoogleDataLayerPurchaseItem {
16
17
  item_id: string;
17
18
  item_name: string;
18
- affiliation: string;
19
- item_list_name: string;
20
- item_list_id: string | null;
21
- item_brand: string;
22
- item_variant: string | null;
23
- index: number;
24
- item_category: string;
25
- item_category2: string;
26
- item_category3: string;
19
+ affiliation?: string;
20
+ item_list_name?: string;
21
+ item_list_id?: string | null;
22
+ item_brand?: string;
23
+ brand?: string;
24
+ item_variant?: string | null;
25
+ index?: number;
26
+ item_category?: string;
27
+ item_category2?: string;
28
+ item_category3?: string;
29
+ item_category4?: string;
30
+ item_category5?: string;
27
31
  quantity: number;
28
- currency: string;
29
- price: number;
30
- discount: number;
32
+ currency?: string;
33
+ price: number | string;
34
+ discount?: number | string;
35
+ [key: string]: unknown;
31
36
  }
32
37
  interface GoogleDataLayerPurchaseData {
33
38
  items: GoogleDataLayerPurchaseItem[];
34
- transaction_id: number;
39
+ transaction_id: number | string;
35
40
  value: string;
36
41
  currency: string;
37
- tax: number;
42
+ tax?: number;
38
43
  shipping: string;
39
44
  }
40
45
  type GoogleDataLayerEntry = GoogleDataLayerPurchaseEntry | unknown;