@mailbiz/onsite-vtex-vendor 0.11.10 → 0.11.11
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.
|
@@ -26,6 +26,10 @@ interface VtexWindow extends OnsiteCoreWindow {
|
|
|
26
26
|
localStorage?: VtexLocalStorage;
|
|
27
27
|
CATALOG_SDK?: VtexLegacyCatalog;
|
|
28
28
|
ko: KnockoutStatic;
|
|
29
|
+
next?: VtexFastStoreNext;
|
|
30
|
+
LIVE?: VtexDecoLive;
|
|
31
|
+
DECO?: VtexDecoContext;
|
|
32
|
+
STOREFRONT?: VtexDecoStorefront;
|
|
29
33
|
}
|
|
30
34
|
//#endregion
|
|
31
35
|
//#region [KO]
|
|
@@ -102,6 +106,7 @@ interface VtexLegacyShippingData {
|
|
|
102
106
|
trackingHints?: any[];
|
|
103
107
|
isFOB?: boolean | null;
|
|
104
108
|
contactInformation?: any[];
|
|
109
|
+
contactsInfo?: any[];
|
|
105
110
|
}
|
|
106
111
|
interface LogisticsInfo {
|
|
107
112
|
itemIndex: number;
|
|
@@ -109,6 +114,7 @@ interface LogisticsInfo {
|
|
|
109
114
|
selectedDeliveryChannel: string | null;
|
|
110
115
|
addressId: string | null;
|
|
111
116
|
slas: any[];
|
|
117
|
+
deliveryOptions?: any[];
|
|
112
118
|
shipsTo: string[];
|
|
113
119
|
itemId: string;
|
|
114
120
|
deliveryChannels: DeliveryChannel[];
|
|
@@ -209,6 +215,7 @@ interface Seller {
|
|
|
209
215
|
name: string;
|
|
210
216
|
logo: string | null;
|
|
211
217
|
minimumOrderValue?: number;
|
|
218
|
+
sellerType?: string | null;
|
|
212
219
|
}
|
|
213
220
|
interface ClientPreferencesData {
|
|
214
221
|
locale: string;
|
|
@@ -300,7 +307,7 @@ interface VtexAddress {
|
|
|
300
307
|
addressId: string;
|
|
301
308
|
addressType: string;
|
|
302
309
|
city: string;
|
|
303
|
-
complement?: string;
|
|
310
|
+
complement?: string | null;
|
|
304
311
|
country: string;
|
|
305
312
|
neighborhood: string;
|
|
306
313
|
number: string;
|
|
@@ -419,14 +426,14 @@ interface VtexLegacyOrderForm extends BaseOrderForm {
|
|
|
419
426
|
checkedInPickupPointId: string | null;
|
|
420
427
|
ignoreProfileData: boolean;
|
|
421
428
|
selectableGifts: any[];
|
|
422
|
-
shippingData: VtexLegacyShippingData;
|
|
429
|
+
shippingData: VtexLegacyShippingData | null;
|
|
423
430
|
sellers: Seller[];
|
|
424
431
|
commercialConditionData: any;
|
|
425
432
|
storePreferencesData: VtexLegacyStorePreferencesData;
|
|
426
433
|
giftRegistryData: any;
|
|
427
434
|
openTextField: any;
|
|
428
435
|
invoiceData: any;
|
|
429
|
-
itemMetadata: ItemMetadata;
|
|
436
|
+
itemMetadata: ItemMetadata | null;
|
|
430
437
|
hooksData: any;
|
|
431
438
|
ratesAndBenefitsData: RatesAndBenefitsData;
|
|
432
439
|
subscriptionData: any;
|
|
@@ -491,6 +498,62 @@ interface VtexLegacyCatalog {
|
|
|
491
498
|
getShippingValue: () => {};
|
|
492
499
|
setProductWithVariationsCache: () => {};
|
|
493
500
|
}
|
|
501
|
+
interface VtexFastStoreProduct {
|
|
502
|
+
[key: string]: unknown;
|
|
503
|
+
sku: string;
|
|
504
|
+
name: string;
|
|
505
|
+
isVariantOf: {
|
|
506
|
+
[key: string]: unknown;
|
|
507
|
+
productGroupID: string;
|
|
508
|
+
name: string;
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
interface VtexFastStorePageProps {
|
|
512
|
+
[key: string]: unknown;
|
|
513
|
+
data?: {
|
|
514
|
+
product?: VtexFastStoreProduct;
|
|
515
|
+
};
|
|
516
|
+
}
|
|
517
|
+
interface VtexFastStoreNextRouter {
|
|
518
|
+
route: string;
|
|
519
|
+
components: Record<string, {
|
|
520
|
+
[key: string]: unknown;
|
|
521
|
+
props?: {
|
|
522
|
+
pageProps?: VtexFastStorePageProps;
|
|
523
|
+
};
|
|
524
|
+
}>;
|
|
525
|
+
}
|
|
526
|
+
interface VtexFastStoreNext {
|
|
527
|
+
router?: VtexFastStoreNextRouter;
|
|
528
|
+
}
|
|
529
|
+
//#endregion
|
|
530
|
+
//#region [Vtex Deco]
|
|
531
|
+
interface VtexDecoLive {
|
|
532
|
+
page?: {
|
|
533
|
+
id: string;
|
|
534
|
+
pathTemplate: string;
|
|
535
|
+
};
|
|
536
|
+
site?: {
|
|
537
|
+
id: number;
|
|
538
|
+
name: string;
|
|
539
|
+
};
|
|
540
|
+
flags?: Array<{
|
|
541
|
+
name: string;
|
|
542
|
+
value: unknown;
|
|
543
|
+
isSegment: boolean;
|
|
544
|
+
sticky: boolean;
|
|
545
|
+
cacheable: boolean;
|
|
546
|
+
}>;
|
|
547
|
+
}
|
|
548
|
+
interface VtexDecoContext {
|
|
549
|
+
events?: Record<string, unknown>;
|
|
550
|
+
featureFlags?: Record<string, unknown>;
|
|
551
|
+
}
|
|
552
|
+
interface VtexDecoStorefront {
|
|
553
|
+
CART?: {
|
|
554
|
+
subscribe: (callback: () => void) => void;
|
|
555
|
+
};
|
|
556
|
+
}
|
|
494
557
|
interface UniversalEventTracker {
|
|
495
558
|
(eventName: Events, eventData: EventData): void;
|
|
496
559
|
q?: Array<[
|