@mailbiz/onsite-vtex-vendor 0.11.7 → 0.11.8
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/onsite-vtex-vendor.d.ts +11 -27
- package/dist/onsite-vtex-vendor.js +1 -1
- package/dist/onsite-vtex-vendor.min.d.ts +11 -27
- package/dist/onsite-vtex-vendor.min.js +248 -242
- package/package.json +1 -1
|
@@ -25,7 +25,6 @@ interface VtexWindow extends OnsiteCoreWindow {
|
|
|
25
25
|
vtexjs?: VtexLegacyContext;
|
|
26
26
|
localStorage?: VtexLocalStorage;
|
|
27
27
|
CATALOG_SDK?: VtexLegacyCatalog;
|
|
28
|
-
dataLayer?: DataLayerEvent[];
|
|
29
28
|
ko: KnockoutStatic;
|
|
30
29
|
}
|
|
31
30
|
//#endregion
|
|
@@ -59,28 +58,6 @@ interface ClientProfileData {
|
|
|
59
58
|
phone?: string;
|
|
60
59
|
}
|
|
61
60
|
//#endregion
|
|
62
|
-
//#region [Data Layer]
|
|
63
|
-
interface DataLayerProduct {
|
|
64
|
-
brand: string;
|
|
65
|
-
category: string;
|
|
66
|
-
dimension1: string;
|
|
67
|
-
dimension2: string;
|
|
68
|
-
dimension3: string;
|
|
69
|
-
dimension4: string;
|
|
70
|
-
id: string;
|
|
71
|
-
name: string;
|
|
72
|
-
price: number;
|
|
73
|
-
variant: string;
|
|
74
|
-
}
|
|
75
|
-
interface DataLayerEvent {
|
|
76
|
-
event?: string;
|
|
77
|
-
ecommerce?: {
|
|
78
|
-
detail?: {
|
|
79
|
-
products?: DataLayerProduct[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
//#endregion
|
|
84
61
|
//#region [Vtex Order Form]
|
|
85
62
|
interface ProductCategories {
|
|
86
63
|
[categoryId: string]: string;
|
|
@@ -93,6 +70,7 @@ interface PriceTag {
|
|
|
93
70
|
isPercentual: boolean;
|
|
94
71
|
identifier: string;
|
|
95
72
|
owner?: string;
|
|
73
|
+
sourceSystem?: string | null;
|
|
96
74
|
__typename?: string;
|
|
97
75
|
ratesAndBenefitsIdentifier?: any;
|
|
98
76
|
}
|
|
@@ -101,6 +79,7 @@ interface PriceDefinition {
|
|
|
101
79
|
total: number;
|
|
102
80
|
sellingPrices: SellingPrice[];
|
|
103
81
|
reason?: any;
|
|
82
|
+
pricePerUnit?: number;
|
|
104
83
|
__typename?: string;
|
|
105
84
|
}
|
|
106
85
|
interface SellingPrice {
|
|
@@ -122,6 +101,7 @@ interface VtexLegacyShippingData {
|
|
|
122
101
|
pickupPoints: any[];
|
|
123
102
|
trackingHints?: any[];
|
|
124
103
|
isFOB?: boolean | null;
|
|
104
|
+
contactInformation?: any[];
|
|
125
105
|
}
|
|
126
106
|
interface LogisticsInfo {
|
|
127
107
|
itemIndex: number;
|
|
@@ -227,7 +207,8 @@ interface Validator {
|
|
|
227
207
|
interface Seller {
|
|
228
208
|
id: string;
|
|
229
209
|
name: string;
|
|
230
|
-
logo: string;
|
|
210
|
+
logo: string | null;
|
|
211
|
+
minimumOrderValue?: number;
|
|
231
212
|
}
|
|
232
213
|
interface ClientPreferencesData {
|
|
233
214
|
locale: string;
|
|
@@ -271,6 +252,7 @@ interface ItemMetadataItem {
|
|
|
271
252
|
interface RatesAndBenefitsData {
|
|
272
253
|
rateAndBenefitsIdentifiers: RateAndBenefitsIdentifier[];
|
|
273
254
|
teaser: any[];
|
|
255
|
+
campaigns?: any[];
|
|
274
256
|
}
|
|
275
257
|
interface RateAndBenefitsIdentifier {
|
|
276
258
|
id: string;
|
|
@@ -280,6 +262,7 @@ interface RateAndBenefitsIdentifier {
|
|
|
280
262
|
matchedParameters: any;
|
|
281
263
|
additionalInfo: any;
|
|
282
264
|
triggeredBy?: any;
|
|
265
|
+
isCupomDiscount?: boolean | null;
|
|
283
266
|
}
|
|
284
267
|
interface MarketingData {
|
|
285
268
|
coupon: string | null;
|
|
@@ -457,14 +440,14 @@ interface VtexLegacyCatalogProductCacheSku {
|
|
|
457
440
|
availablequantity: number;
|
|
458
441
|
bestPrice: number;
|
|
459
442
|
bestPriceFormated: string;
|
|
460
|
-
cacheVersionUsedToCallCheckout: string;
|
|
443
|
+
cacheVersionUsedToCallCheckout: string | null;
|
|
461
444
|
dimensions: Record<string, string>;
|
|
462
445
|
discount?: number;
|
|
463
446
|
fullSellingPrice: string;
|
|
464
447
|
hasDiscount?: boolean;
|
|
465
448
|
image: string;
|
|
466
449
|
installments: number;
|
|
467
|
-
installmentsInsterestRate: number;
|
|
450
|
+
installmentsInsterestRate: number | null;
|
|
468
451
|
installmentsValue: number;
|
|
469
452
|
listPrice: number;
|
|
470
453
|
listPriceFormated: string;
|
|
@@ -475,6 +458,7 @@ interface VtexLegacyCatalogProductCacheSku {
|
|
|
475
458
|
weight: number;
|
|
476
459
|
width: number;
|
|
477
460
|
};
|
|
461
|
+
priceToken?: string | null;
|
|
478
462
|
rewardValue: number;
|
|
479
463
|
seller: string;
|
|
480
464
|
sellerId: string;
|
|
@@ -486,7 +470,7 @@ interface VtexLegacyCatalogProductCacheSku {
|
|
|
486
470
|
unitMultiplier: number;
|
|
487
471
|
validBestPrice?: boolean;
|
|
488
472
|
validListPrice?: boolean;
|
|
489
|
-
values
|
|
473
|
+
values?: any[];
|
|
490
474
|
}
|
|
491
475
|
interface VtexLegacyCatalogProductCache {
|
|
492
476
|
available: boolean;
|