@mailbiz/onsite-moovin-vendor 0.1.2 → 0.1.4
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,85 +1,31 @@
|
|
|
1
1
|
import { OnsiteCoreWindow } from "@mailbiz/onsite-core";
|
|
2
2
|
//#region [Window]
|
|
3
3
|
interface MoovinWindow extends OnsiteCoreWindow {
|
|
4
|
-
|
|
4
|
+
location: Location;
|
|
5
5
|
state?: MoovinCheckoutState;
|
|
6
|
+
savedAddresses?: MoovinSavedAddress[];
|
|
6
7
|
VARIATION_NAVIGATION?: {
|
|
7
8
|
pedido?: string;
|
|
8
9
|
id?: string;
|
|
9
10
|
};
|
|
10
|
-
BASE_PATH?: string;
|
|
11
|
-
}
|
|
12
|
-
//#endregion
|
|
13
|
-
//#region [gtm context]
|
|
14
|
-
interface MoovinGtmProduct {
|
|
15
|
-
id: string;
|
|
16
|
-
id_color: string;
|
|
17
|
-
id_size: string | null;
|
|
18
|
-
title: string;
|
|
19
|
-
price: number;
|
|
20
|
-
price_number?: number;
|
|
21
|
-
sale_price?: number;
|
|
22
|
-
category?: string;
|
|
23
|
-
subcategory?: string;
|
|
24
|
-
brand?: string;
|
|
25
|
-
reference?: string;
|
|
26
|
-
SKU?: string;
|
|
27
|
-
SKU_color?: string;
|
|
28
|
-
SKU_size?: string;
|
|
29
|
-
stock?: number;
|
|
30
|
-
}
|
|
31
|
-
interface MoovinGtmLineProduct {
|
|
32
|
-
id: string;
|
|
33
|
-
id_color: string;
|
|
34
|
-
id_size: string;
|
|
35
|
-
title: string;
|
|
36
|
-
price: number | string;
|
|
37
|
-
quantity: number | string;
|
|
38
|
-
SKU?: string;
|
|
39
|
-
SKU_size?: string;
|
|
40
|
-
ean13?: string;
|
|
41
|
-
category?: string;
|
|
42
|
-
brand?: string;
|
|
43
|
-
reference?: string;
|
|
44
|
-
}
|
|
45
|
-
interface MoovinGtmCustomer {
|
|
46
|
-
name: string;
|
|
47
|
-
email: string;
|
|
48
|
-
genero?: string;
|
|
49
|
-
telefone?: string;
|
|
50
|
-
cep?: string;
|
|
51
|
-
cidade?: string;
|
|
52
|
-
estado?: string;
|
|
53
|
-
}
|
|
54
|
-
interface MoovinGtmOrderValues {
|
|
55
|
-
subtotal: string;
|
|
56
|
-
total: string;
|
|
57
|
-
ship: string;
|
|
58
|
-
discount: string;
|
|
59
|
-
coupom_discount: string;
|
|
60
|
-
}
|
|
61
|
-
interface MoovinGtm {
|
|
62
|
-
page?: string;
|
|
63
|
-
site_type?: string;
|
|
64
|
-
product?: MoovinGtmProduct;
|
|
65
|
-
products?: MoovinGtmLineProduct[];
|
|
66
|
-
customer?: MoovinGtmCustomer;
|
|
67
|
-
cart_values?: {
|
|
68
|
-
total: number;
|
|
69
|
-
subtotal: number;
|
|
70
|
-
discounts: unknown[];
|
|
71
|
-
};
|
|
72
|
-
order_id?: string;
|
|
73
|
-
order_values?: MoovinGtmOrderValues;
|
|
74
|
-
coupom_code?: string;
|
|
75
|
-
payment_form?: string;
|
|
76
|
-
delivery_country?: string;
|
|
77
|
-
estimated_delivery_date?: string;
|
|
78
11
|
}
|
|
79
12
|
interface MoovinCheckoutState {
|
|
80
13
|
currentStep?: string;
|
|
14
|
+
method?: string | null;
|
|
81
15
|
verifiedLogin?: boolean;
|
|
82
16
|
loginPage?: boolean;
|
|
17
|
+
selectedAddress?: number;
|
|
18
|
+
}
|
|
19
|
+
interface MoovinSavedAddress {
|
|
20
|
+
cod: string;
|
|
21
|
+
endereco: string;
|
|
22
|
+
numero: string;
|
|
23
|
+
complemento: string;
|
|
24
|
+
bairro: string;
|
|
25
|
+
cidade: string;
|
|
26
|
+
estado: string;
|
|
27
|
+
cep: string;
|
|
28
|
+
instrucoes: string;
|
|
83
29
|
}
|
|
84
30
|
declare global {
|
|
85
31
|
interface Window extends MoovinWindow {
|