@thorprovider/blocks 3.0.2 → 4.0.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 +61 -21
- package/dist/blocks/designs/marketplace-product-card/block.d.ts +12 -0
- package/dist/blocks/designs/marketplace-product-card/block.d.ts.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/block.js +243 -0
- package/dist/blocks/designs/marketplace-product-card/block.js.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/block.mjs +233 -0
- package/dist/blocks/designs/marketplace-product-card/block.mjs.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/index.d.ts +3 -0
- package/dist/blocks/designs/marketplace-product-card/index.d.ts.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/index.js +36 -0
- package/dist/blocks/designs/marketplace-product-card/index.js.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/index.mjs +6 -0
- package/dist/blocks/designs/marketplace-product-card/index.mjs.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.d.ts +13 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.d.ts.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.js +36 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.js.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.mjs +12 -0
- package/dist/blocks/designs/marketplace-product-card/normalize.mjs.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/variants.d.ts +72 -0
- package/dist/blocks/designs/marketplace-product-card/variants.d.ts.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/variants.js +123 -0
- package/dist/blocks/designs/marketplace-product-card/variants.js.map +1 -0
- package/dist/blocks/designs/marketplace-product-card/variants.mjs +89 -0
- package/dist/blocks/designs/marketplace-product-card/variants.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkbox-check.js +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkbox-check.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkbox-check.mjs +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkbox-check.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.d.ts +11 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.js +46 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.mjs +22 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-equality.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.d.ts +28 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.js +278 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.mjs +260 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-address-fields.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.d.ts +12 -9
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.js +49 -71
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.mjs +50 -72
- package/dist/blocks/e-commerce/checkout-forms/checkout-contact-step.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-country-field.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-country-field.js +6 -3
- package/dist/blocks/e-commerce/checkout-forms/checkout-country-field.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-country-field.mjs +6 -3
- package/dist/blocks/e-commerce/checkout-forms/checkout-country-field.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.d.ts +7 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.js +41 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.mjs +16 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-id-context.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.d.ts +24 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.js +75 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.mjs +58 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-location-select.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.d.ts +3 -2
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.js +9 -2
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.mjs +9 -2
- package/dist/blocks/e-commerce/checkout-forms/checkout-order-summary.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.d.ts +23 -8
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.js +136 -31
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.mjs +143 -32
- package/dist/blocks/e-commerce/checkout-forms/checkout-payment-step.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.d.ts +13 -7
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.js +179 -28
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.mjs +180 -29
- package/dist/blocks/e-commerce/checkout-forms/checkout-review-step.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.d.ts +20 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.js +199 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.mjs +175 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-saved-addresses.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.d.ts +14 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.js +136 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.mjs +109 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-section-nav.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.d.ts +32 -10
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.js +265 -147
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.mjs +272 -148
- package/dist/blocks/e-commerce/checkout-forms/checkout-shipping-step.mjs.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.d.ts +13 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.js +74 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.mjs +50 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-header.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.d.ts +7 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.d.ts.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.js +91 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.js.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.mjs +65 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout-step-summary.mjs.map +1 -0
- package/dist/blocks/e-commerce/checkout-forms/checkout.d.ts +174 -44
- package/dist/blocks/e-commerce/checkout-forms/checkout.d.ts.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout.js +532 -108
- package/dist/blocks/e-commerce/checkout-forms/checkout.js.map +1 -1
- package/dist/blocks/e-commerce/checkout-forms/checkout.mjs +542 -109
- package/dist/blocks/e-commerce/checkout-forms/checkout.mjs.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar-cart-sheet.d.ts.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar-cart-sheet.js +44 -20
- package/dist/blocks/e-commerce/navigation/storefront-navbar-cart-sheet.js.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar-cart-sheet.mjs +44 -20
- package/dist/blocks/e-commerce/navigation/storefront-navbar-cart-sheet.mjs.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar.d.ts.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar.js +21 -10
- package/dist/blocks/e-commerce/navigation/storefront-navbar.js.map +1 -1
- package/dist/blocks/e-commerce/navigation/storefront-navbar.mjs +21 -10
- package/dist/blocks/e-commerce/navigation/storefront-navbar.mjs.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-card.d.ts.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-card.js +36 -9
- package/dist/blocks/e-commerce/product-list/product-card.js.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-card.mjs +36 -9
- package/dist/blocks/e-commerce/product-list/product-card.mjs.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-showcase-1.d.ts.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-showcase-1.js +7 -2
- package/dist/blocks/e-commerce/product-list/product-showcase-1.js.map +1 -1
- package/dist/blocks/e-commerce/product-list/product-showcase-1.mjs +7 -2
- package/dist/blocks/e-commerce/product-list/product-showcase-1.mjs.map +1 -1
- package/dist/blocks/e-commerce/product-overview/product-quick-view-dialog.d.ts.map +1 -1
- package/dist/blocks/e-commerce/product-overview/product-quick-view-dialog.js +5 -1
- package/dist/blocks/e-commerce/product-overview/product-quick-view-dialog.js.map +1 -1
- package/dist/blocks/e-commerce/product-overview/product-quick-view-dialog.mjs +5 -1
- package/dist/blocks/e-commerce/product-overview/product-quick-view-dialog.mjs.map +1 -1
- package/dist/blocks/e-commerce/storefront-hero/storefront-hero.d.ts.map +1 -1
- package/dist/blocks/e-commerce/storefront-hero/storefront-hero.js +71 -51
- package/dist/blocks/e-commerce/storefront-hero/storefront-hero.js.map +1 -1
- package/dist/blocks/e-commerce/storefront-hero/storefront-hero.mjs +71 -51
- package/dist/blocks/e-commerce/storefront-hero/storefront-hero.mjs.map +1 -1
- package/dist/blocks/marketing/banners/banner-1.d.ts.map +1 -1
- package/dist/blocks/marketing/banners/banner-1.js +15 -27
- package/dist/blocks/marketing/banners/banner-1.js.map +1 -1
- package/dist/blocks/marketing/banners/banner-1.mjs +16 -28
- package/dist/blocks/marketing/banners/banner-1.mjs.map +1 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/lib/contracts/marketplace-product-card.d.ts +324 -0
- package/dist/lib/contracts/marketplace-product-card.d.ts.map +1 -0
- package/dist/lib/contracts/marketplace-product-card.js +85 -0
- package/dist/lib/contracts/marketplace-product-card.js.map +1 -0
- package/dist/lib/contracts/marketplace-product-card.mjs +61 -0
- package/dist/lib/contracts/marketplace-product-card.mjs.map +1 -0
- package/dist/lib/contracts.d.ts +1861 -88
- package/dist/lib/contracts.d.ts.map +1 -1
- package/dist/lib/contracts.js +252 -25
- package/dist/lib/contracts.js.map +1 -1
- package/dist/lib/contracts.mjs +208 -5
- package/dist/lib/contracts.mjs.map +1 -1
- package/dist/lib/money-schema.d.ts +19 -0
- package/dist/lib/money-schema.d.ts.map +1 -0
- package/dist/lib/money-schema.js +33 -0
- package/dist/lib/money-schema.js.map +1 -0
- package/dist/lib/money-schema.mjs +9 -0
- package/dist/lib/money-schema.mjs.map +1 -0
- package/dist/lib/motion.d.ts +29 -0
- package/dist/lib/motion.d.ts.map +1 -0
- package/dist/lib/motion.js +65 -0
- package/dist/lib/motion.js.map +1 -0
- package/dist/lib/motion.mjs +41 -0
- package/dist/lib/motion.mjs.map +1 -0
- package/dist/ui/accordion.d.ts +3 -1
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +21 -5
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/accordion.mjs +21 -5
- package/dist/ui/accordion.mjs.map +1 -1
- package/dist/ui/input-group.d.ts +1 -1
- package/package.json +18 -3
- package/dist/.tsbuildinfo +0 -1
package/dist/lib/contracts.d.ts
CHANGED
|
@@ -30,17 +30,11 @@ export type CanonProduct = ProductPreview;
|
|
|
30
30
|
*/
|
|
31
31
|
export declare const PRODUCT_IMAGE_FALLBACK: string;
|
|
32
32
|
/**
|
|
33
|
-
* Canonical `Money`
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* The amount stays a permissive `z.string()` on purpose: an unresolved backend
|
|
38
|
-
* price may arrive as the canonical sentinel `""`, and tightening the schema
|
|
39
|
-
* would reject the whole view instead of letting the presentation layer render
|
|
40
|
-
* an unavailable state. Validity is enforced at render time by
|
|
41
|
-
* `isAvailableMoney`/`formatMoney` (a `""`/malformed amount never becomes `$0`).
|
|
33
|
+
* Canonical `Money` — defined in the leaf module `./money-schema` so the
|
|
34
|
+
* generated per-design contract entries can import it without a cycle with
|
|
35
|
+
* this module (which re-exports those entries). Re-exported here unchanged.
|
|
42
36
|
*/
|
|
43
|
-
export
|
|
37
|
+
export { moneySchema } from './money-schema';
|
|
44
38
|
export declare const productDetailVariantSchema: z.ZodObject<{
|
|
45
39
|
id: z.ZodString;
|
|
46
40
|
title: z.ZodString;
|
|
@@ -93,9 +87,9 @@ export declare const productDetailVariantSchema: z.ZodObject<{
|
|
|
93
87
|
height?: number | undefined;
|
|
94
88
|
width?: number | undefined;
|
|
95
89
|
} | undefined;
|
|
96
|
-
sku?: string | undefined;
|
|
97
90
|
price?: Money | null | undefined;
|
|
98
91
|
compareAtPrice?: Money | undefined;
|
|
92
|
+
sku?: string | undefined;
|
|
99
93
|
}, {
|
|
100
94
|
title: string;
|
|
101
95
|
id: string;
|
|
@@ -111,9 +105,9 @@ export declare const productDetailVariantSchema: z.ZodObject<{
|
|
|
111
105
|
height?: number | undefined;
|
|
112
106
|
width?: number | undefined;
|
|
113
107
|
} | undefined;
|
|
114
|
-
sku?: string | undefined;
|
|
115
108
|
price?: Money | null | undefined;
|
|
116
109
|
compareAtPrice?: Money | undefined;
|
|
110
|
+
sku?: string | undefined;
|
|
117
111
|
}>;
|
|
118
112
|
export type ProductDetailVariantSpec = z.infer<typeof productDetailVariantSchema>;
|
|
119
113
|
export declare const productDetailProductSchema: z.ZodObject<{
|
|
@@ -187,9 +181,9 @@ export declare const productDetailProductSchema: z.ZodObject<{
|
|
|
187
181
|
height?: number | undefined;
|
|
188
182
|
width?: number | undefined;
|
|
189
183
|
} | undefined;
|
|
190
|
-
sku?: string | undefined;
|
|
191
184
|
price?: Money | null | undefined;
|
|
192
185
|
compareAtPrice?: Money | undefined;
|
|
186
|
+
sku?: string | undefined;
|
|
193
187
|
}, {
|
|
194
188
|
title: string;
|
|
195
189
|
id: string;
|
|
@@ -205,9 +199,9 @@ export declare const productDetailProductSchema: z.ZodObject<{
|
|
|
205
199
|
height?: number | undefined;
|
|
206
200
|
width?: number | undefined;
|
|
207
201
|
} | undefined;
|
|
208
|
-
sku?: string | undefined;
|
|
209
202
|
price?: Money | null | undefined;
|
|
210
203
|
compareAtPrice?: Money | undefined;
|
|
204
|
+
sku?: string | undefined;
|
|
211
205
|
}>, "many">;
|
|
212
206
|
images: z.ZodArray<z.ZodObject<{
|
|
213
207
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -265,9 +259,9 @@ export declare const productDetailProductSchema: z.ZodObject<{
|
|
|
265
259
|
height?: number | undefined;
|
|
266
260
|
width?: number | undefined;
|
|
267
261
|
} | undefined;
|
|
268
|
-
sku?: string | undefined;
|
|
269
262
|
price?: Money | null | undefined;
|
|
270
263
|
compareAtPrice?: Money | undefined;
|
|
264
|
+
sku?: string | undefined;
|
|
271
265
|
}[];
|
|
272
266
|
options: {
|
|
273
267
|
id: string;
|
|
@@ -309,9 +303,9 @@ export declare const productDetailProductSchema: z.ZodObject<{
|
|
|
309
303
|
height?: number | undefined;
|
|
310
304
|
width?: number | undefined;
|
|
311
305
|
} | undefined;
|
|
312
|
-
sku?: string | undefined;
|
|
313
306
|
price?: Money | null | undefined;
|
|
314
307
|
compareAtPrice?: Money | undefined;
|
|
308
|
+
sku?: string | undefined;
|
|
315
309
|
}[];
|
|
316
310
|
options: {
|
|
317
311
|
id: string;
|
|
@@ -352,15 +346,15 @@ export declare const productOverviewReviewSchema: z.ZodObject<{
|
|
|
352
346
|
}, "strip", z.ZodTypeAny, {
|
|
353
347
|
id: number;
|
|
354
348
|
date: string;
|
|
355
|
-
author: string;
|
|
356
349
|
rating: number;
|
|
350
|
+
author: string;
|
|
357
351
|
comment: string;
|
|
358
352
|
helpful?: number | undefined;
|
|
359
353
|
}, {
|
|
360
354
|
id: number;
|
|
361
355
|
date: string;
|
|
362
|
-
author: string;
|
|
363
356
|
rating: number;
|
|
357
|
+
author: string;
|
|
364
358
|
comment: string;
|
|
365
359
|
helpful?: number | undefined;
|
|
366
360
|
}>;
|
|
@@ -436,9 +430,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
436
430
|
height?: number | undefined;
|
|
437
431
|
width?: number | undefined;
|
|
438
432
|
} | undefined;
|
|
439
|
-
sku?: string | undefined;
|
|
440
433
|
price?: Money | null | undefined;
|
|
441
434
|
compareAtPrice?: Money | undefined;
|
|
435
|
+
sku?: string | undefined;
|
|
442
436
|
}, {
|
|
443
437
|
title: string;
|
|
444
438
|
id: string;
|
|
@@ -454,9 +448,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
454
448
|
height?: number | undefined;
|
|
455
449
|
width?: number | undefined;
|
|
456
450
|
} | undefined;
|
|
457
|
-
sku?: string | undefined;
|
|
458
451
|
price?: Money | null | undefined;
|
|
459
452
|
compareAtPrice?: Money | undefined;
|
|
453
|
+
sku?: string | undefined;
|
|
460
454
|
}>, "many">;
|
|
461
455
|
images: z.ZodArray<z.ZodObject<{
|
|
462
456
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -514,9 +508,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
514
508
|
height?: number | undefined;
|
|
515
509
|
width?: number | undefined;
|
|
516
510
|
} | undefined;
|
|
517
|
-
sku?: string | undefined;
|
|
518
511
|
price?: Money | null | undefined;
|
|
519
512
|
compareAtPrice?: Money | undefined;
|
|
513
|
+
sku?: string | undefined;
|
|
520
514
|
}[];
|
|
521
515
|
options: {
|
|
522
516
|
id: string;
|
|
@@ -558,9 +552,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
558
552
|
height?: number | undefined;
|
|
559
553
|
width?: number | undefined;
|
|
560
554
|
} | undefined;
|
|
561
|
-
sku?: string | undefined;
|
|
562
555
|
price?: Money | null | undefined;
|
|
563
556
|
compareAtPrice?: Money | undefined;
|
|
557
|
+
sku?: string | undefined;
|
|
564
558
|
}[];
|
|
565
559
|
options: {
|
|
566
560
|
id: string;
|
|
@@ -612,15 +606,15 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
612
606
|
}, "strip", z.ZodTypeAny, {
|
|
613
607
|
id: number;
|
|
614
608
|
date: string;
|
|
615
|
-
author: string;
|
|
616
609
|
rating: number;
|
|
610
|
+
author: string;
|
|
617
611
|
comment: string;
|
|
618
612
|
helpful?: number | undefined;
|
|
619
613
|
}, {
|
|
620
614
|
id: number;
|
|
621
615
|
date: string;
|
|
622
|
-
author: string;
|
|
623
616
|
rating: number;
|
|
617
|
+
author: string;
|
|
624
618
|
comment: string;
|
|
625
619
|
helpful?: number | undefined;
|
|
626
620
|
}>, "many">>;
|
|
@@ -669,9 +663,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
669
663
|
height?: number | undefined;
|
|
670
664
|
width?: number | undefined;
|
|
671
665
|
} | undefined;
|
|
672
|
-
sku?: string | undefined;
|
|
673
666
|
price?: Money | null | undefined;
|
|
674
667
|
compareAtPrice?: Money | undefined;
|
|
668
|
+
sku?: string | undefined;
|
|
675
669
|
}[];
|
|
676
670
|
options: {
|
|
677
671
|
id: string;
|
|
@@ -701,6 +695,7 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
701
695
|
value: number;
|
|
702
696
|
count: number;
|
|
703
697
|
} | undefined;
|
|
698
|
+
shippingLabel?: string | undefined;
|
|
704
699
|
selectedVariantId?: string | null | undefined;
|
|
705
700
|
quantity?: number | undefined;
|
|
706
701
|
deliveryEstimate?: string | undefined;
|
|
@@ -710,8 +705,8 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
710
705
|
reviews?: {
|
|
711
706
|
id: number;
|
|
712
707
|
date: string;
|
|
713
|
-
author: string;
|
|
714
708
|
rating: number;
|
|
709
|
+
author: string;
|
|
715
710
|
comment: string;
|
|
716
711
|
helpful?: number | undefined;
|
|
717
712
|
}[] | undefined;
|
|
@@ -724,7 +719,6 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
724
719
|
selectVariantLabel?: string | undefined;
|
|
725
720
|
quantityLabel?: string | undefined;
|
|
726
721
|
deliveryEstimateLabel?: string | undefined;
|
|
727
|
-
shippingLabel?: string | undefined;
|
|
728
722
|
badgeLabel?: string | undefined;
|
|
729
723
|
availabilityLabel?: string | undefined;
|
|
730
724
|
skuLabel?: string | undefined;
|
|
@@ -760,9 +754,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
760
754
|
height?: number | undefined;
|
|
761
755
|
width?: number | undefined;
|
|
762
756
|
} | undefined;
|
|
763
|
-
sku?: string | undefined;
|
|
764
757
|
price?: Money | null | undefined;
|
|
765
758
|
compareAtPrice?: Money | undefined;
|
|
759
|
+
sku?: string | undefined;
|
|
766
760
|
}[];
|
|
767
761
|
options: {
|
|
768
762
|
id: string;
|
|
@@ -792,6 +786,7 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
792
786
|
value: number;
|
|
793
787
|
count: number;
|
|
794
788
|
} | undefined;
|
|
789
|
+
shippingLabel?: string | undefined;
|
|
795
790
|
selectedVariantId?: string | null | undefined;
|
|
796
791
|
quantity?: number | undefined;
|
|
797
792
|
deliveryEstimate?: string | undefined;
|
|
@@ -801,8 +796,8 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
801
796
|
reviews?: {
|
|
802
797
|
id: number;
|
|
803
798
|
date: string;
|
|
804
|
-
author: string;
|
|
805
799
|
rating: number;
|
|
800
|
+
author: string;
|
|
806
801
|
comment: string;
|
|
807
802
|
helpful?: number | undefined;
|
|
808
803
|
}[] | undefined;
|
|
@@ -815,7 +810,6 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
815
810
|
selectVariantLabel?: string | undefined;
|
|
816
811
|
quantityLabel?: string | undefined;
|
|
817
812
|
deliveryEstimateLabel?: string | undefined;
|
|
818
|
-
shippingLabel?: string | undefined;
|
|
819
813
|
badgeLabel?: string | undefined;
|
|
820
814
|
availabilityLabel?: string | undefined;
|
|
821
815
|
skuLabel?: string | undefined;
|
|
@@ -1084,9 +1078,9 @@ export declare const productPresentationSchema: z.ZodObject<{
|
|
|
1084
1078
|
image?: string | undefined;
|
|
1085
1079
|
badge?: string | undefined;
|
|
1086
1080
|
href?: string | undefined;
|
|
1087
|
-
compareAtPrice?: Money | undefined;
|
|
1088
1081
|
rating?: number | undefined;
|
|
1089
1082
|
imageAlt?: string | undefined;
|
|
1083
|
+
compareAtPrice?: Money | undefined;
|
|
1090
1084
|
}, {
|
|
1091
1085
|
title: string;
|
|
1092
1086
|
id: string | number;
|
|
@@ -1094,9 +1088,9 @@ export declare const productPresentationSchema: z.ZodObject<{
|
|
|
1094
1088
|
image?: string | undefined;
|
|
1095
1089
|
badge?: string | undefined;
|
|
1096
1090
|
href?: string | undefined;
|
|
1097
|
-
compareAtPrice?: Money | undefined;
|
|
1098
1091
|
rating?: number | undefined;
|
|
1099
1092
|
imageAlt?: string | undefined;
|
|
1093
|
+
compareAtPrice?: Money | undefined;
|
|
1100
1094
|
}>;
|
|
1101
1095
|
export type ProductPresentation = z.infer<typeof productPresentationSchema>;
|
|
1102
1096
|
/**
|
|
@@ -1130,9 +1124,9 @@ export declare const productCardPropsSchema: z.ZodObject<{
|
|
|
1130
1124
|
image?: string | undefined;
|
|
1131
1125
|
badge?: string | undefined;
|
|
1132
1126
|
href?: string | undefined;
|
|
1133
|
-
compareAtPrice?: Money | undefined;
|
|
1134
1127
|
rating?: number | undefined;
|
|
1135
1128
|
imageAlt?: string | undefined;
|
|
1129
|
+
compareAtPrice?: Money | undefined;
|
|
1136
1130
|
}, {
|
|
1137
1131
|
title: string;
|
|
1138
1132
|
id: string | number;
|
|
@@ -1140,9 +1134,9 @@ export declare const productCardPropsSchema: z.ZodObject<{
|
|
|
1140
1134
|
image?: string | undefined;
|
|
1141
1135
|
badge?: string | undefined;
|
|
1142
1136
|
href?: string | undefined;
|
|
1143
|
-
compareAtPrice?: Money | undefined;
|
|
1144
1137
|
rating?: number | undefined;
|
|
1145
1138
|
imageAlt?: string | undefined;
|
|
1139
|
+
compareAtPrice?: Money | undefined;
|
|
1146
1140
|
}>;
|
|
1147
1141
|
presentation: z.ZodOptional<z.ZodEnum<["classic", "minimal", "rich"]>>;
|
|
1148
1142
|
wishlisted: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1154,9 +1148,9 @@ export declare const productCardPropsSchema: z.ZodObject<{
|
|
|
1154
1148
|
image?: string | undefined;
|
|
1155
1149
|
badge?: string | undefined;
|
|
1156
1150
|
href?: string | undefined;
|
|
1157
|
-
compareAtPrice?: Money | undefined;
|
|
1158
1151
|
rating?: number | undefined;
|
|
1159
1152
|
imageAlt?: string | undefined;
|
|
1153
|
+
compareAtPrice?: Money | undefined;
|
|
1160
1154
|
};
|
|
1161
1155
|
presentation?: "rich" | "classic" | "minimal" | undefined;
|
|
1162
1156
|
wishlisted?: boolean | undefined;
|
|
@@ -1168,9 +1162,9 @@ export declare const productCardPropsSchema: z.ZodObject<{
|
|
|
1168
1162
|
image?: string | undefined;
|
|
1169
1163
|
badge?: string | undefined;
|
|
1170
1164
|
href?: string | undefined;
|
|
1171
|
-
compareAtPrice?: Money | undefined;
|
|
1172
1165
|
rating?: number | undefined;
|
|
1173
1166
|
imageAlt?: string | undefined;
|
|
1167
|
+
compareAtPrice?: Money | undefined;
|
|
1174
1168
|
};
|
|
1175
1169
|
presentation?: "rich" | "classic" | "minimal" | undefined;
|
|
1176
1170
|
wishlisted?: boolean | undefined;
|
|
@@ -1206,9 +1200,9 @@ export declare const productGridPropsSchema: z.ZodObject<{
|
|
|
1206
1200
|
image?: string | undefined;
|
|
1207
1201
|
badge?: string | undefined;
|
|
1208
1202
|
href?: string | undefined;
|
|
1209
|
-
compareAtPrice?: Money | undefined;
|
|
1210
1203
|
rating?: number | undefined;
|
|
1211
1204
|
imageAlt?: string | undefined;
|
|
1205
|
+
compareAtPrice?: Money | undefined;
|
|
1212
1206
|
}, {
|
|
1213
1207
|
title: string;
|
|
1214
1208
|
id: string | number;
|
|
@@ -1216,9 +1210,9 @@ export declare const productGridPropsSchema: z.ZodObject<{
|
|
|
1216
1210
|
image?: string | undefined;
|
|
1217
1211
|
badge?: string | undefined;
|
|
1218
1212
|
href?: string | undefined;
|
|
1219
|
-
compareAtPrice?: Money | undefined;
|
|
1220
1213
|
rating?: number | undefined;
|
|
1221
1214
|
imageAlt?: string | undefined;
|
|
1215
|
+
compareAtPrice?: Money | undefined;
|
|
1222
1216
|
}>, "many">;
|
|
1223
1217
|
presentation: z.ZodOptional<z.ZodEnum<["classic", "minimal", "rich"]>>;
|
|
1224
1218
|
heading: z.ZodOptional<z.ZodString>;
|
|
@@ -1235,9 +1229,9 @@ export declare const productGridPropsSchema: z.ZodObject<{
|
|
|
1235
1229
|
image?: string | undefined;
|
|
1236
1230
|
badge?: string | undefined;
|
|
1237
1231
|
href?: string | undefined;
|
|
1238
|
-
compareAtPrice?: Money | undefined;
|
|
1239
1232
|
rating?: number | undefined;
|
|
1240
1233
|
imageAlt?: string | undefined;
|
|
1234
|
+
compareAtPrice?: Money | undefined;
|
|
1241
1235
|
}[];
|
|
1242
1236
|
heading?: string | undefined;
|
|
1243
1237
|
presentation?: "rich" | "classic" | "minimal" | undefined;
|
|
@@ -1254,9 +1248,9 @@ export declare const productGridPropsSchema: z.ZodObject<{
|
|
|
1254
1248
|
image?: string | undefined;
|
|
1255
1249
|
badge?: string | undefined;
|
|
1256
1250
|
href?: string | undefined;
|
|
1257
|
-
compareAtPrice?: Money | undefined;
|
|
1258
1251
|
rating?: number | undefined;
|
|
1259
1252
|
imageAlt?: string | undefined;
|
|
1253
|
+
compareAtPrice?: Money | undefined;
|
|
1260
1254
|
}[];
|
|
1261
1255
|
heading?: string | undefined;
|
|
1262
1256
|
presentation?: "rich" | "classic" | "minimal" | undefined;
|
|
@@ -1295,9 +1289,9 @@ export declare const productShowcase1PropsSchema: z.ZodObject<{
|
|
|
1295
1289
|
image?: string | undefined;
|
|
1296
1290
|
badge?: string | undefined;
|
|
1297
1291
|
href?: string | undefined;
|
|
1298
|
-
compareAtPrice?: Money | undefined;
|
|
1299
1292
|
rating?: number | undefined;
|
|
1300
1293
|
imageAlt?: string | undefined;
|
|
1294
|
+
compareAtPrice?: Money | undefined;
|
|
1301
1295
|
}, {
|
|
1302
1296
|
title: string;
|
|
1303
1297
|
id: string | number;
|
|
@@ -1305,9 +1299,9 @@ export declare const productShowcase1PropsSchema: z.ZodObject<{
|
|
|
1305
1299
|
image?: string | undefined;
|
|
1306
1300
|
badge?: string | undefined;
|
|
1307
1301
|
href?: string | undefined;
|
|
1308
|
-
compareAtPrice?: Money | undefined;
|
|
1309
1302
|
rating?: number | undefined;
|
|
1310
1303
|
imageAlt?: string | undefined;
|
|
1304
|
+
compareAtPrice?: Money | undefined;
|
|
1311
1305
|
}>, "many">;
|
|
1312
1306
|
heading: z.ZodOptional<z.ZodString>;
|
|
1313
1307
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1326,9 +1320,9 @@ export declare const productShowcase1PropsSchema: z.ZodObject<{
|
|
|
1326
1320
|
image?: string | undefined;
|
|
1327
1321
|
badge?: string | undefined;
|
|
1328
1322
|
href?: string | undefined;
|
|
1329
|
-
compareAtPrice?: Money | undefined;
|
|
1330
1323
|
rating?: number | undefined;
|
|
1331
1324
|
imageAlt?: string | undefined;
|
|
1325
|
+
compareAtPrice?: Money | undefined;
|
|
1332
1326
|
}[];
|
|
1333
1327
|
heading?: string | undefined;
|
|
1334
1328
|
description?: string | undefined;
|
|
@@ -1347,9 +1341,9 @@ export declare const productShowcase1PropsSchema: z.ZodObject<{
|
|
|
1347
1341
|
image?: string | undefined;
|
|
1348
1342
|
badge?: string | undefined;
|
|
1349
1343
|
href?: string | undefined;
|
|
1350
|
-
compareAtPrice?: Money | undefined;
|
|
1351
1344
|
rating?: number | undefined;
|
|
1352
1345
|
imageAlt?: string | undefined;
|
|
1346
|
+
compareAtPrice?: Money | undefined;
|
|
1353
1347
|
}[];
|
|
1354
1348
|
heading?: string | undefined;
|
|
1355
1349
|
description?: string | undefined;
|
|
@@ -2037,16 +2031,16 @@ export declare const navbarFeaturedSchema: z.ZodObject<{
|
|
|
2037
2031
|
href: string;
|
|
2038
2032
|
eyebrow: string;
|
|
2039
2033
|
image?: string | undefined;
|
|
2040
|
-
description?: string | undefined;
|
|
2041
2034
|
imageAlt?: string | undefined;
|
|
2035
|
+
description?: string | undefined;
|
|
2042
2036
|
linkLabel?: string | undefined;
|
|
2043
2037
|
}, {
|
|
2044
2038
|
title: string;
|
|
2045
2039
|
href: string;
|
|
2046
2040
|
eyebrow: string;
|
|
2047
2041
|
image?: string | undefined;
|
|
2048
|
-
description?: string | undefined;
|
|
2049
2042
|
imageAlt?: string | undefined;
|
|
2043
|
+
description?: string | undefined;
|
|
2050
2044
|
linkLabel?: string | undefined;
|
|
2051
2045
|
}>;
|
|
2052
2046
|
export type NavbarFeaturedSpec = z.infer<typeof navbarFeaturedSchema>;
|
|
@@ -2140,16 +2134,16 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2140
2134
|
href: string;
|
|
2141
2135
|
eyebrow: string;
|
|
2142
2136
|
image?: string | undefined;
|
|
2143
|
-
description?: string | undefined;
|
|
2144
2137
|
imageAlt?: string | undefined;
|
|
2138
|
+
description?: string | undefined;
|
|
2145
2139
|
linkLabel?: string | undefined;
|
|
2146
2140
|
}, {
|
|
2147
2141
|
title: string;
|
|
2148
2142
|
href: string;
|
|
2149
2143
|
eyebrow: string;
|
|
2150
2144
|
image?: string | undefined;
|
|
2151
|
-
description?: string | undefined;
|
|
2152
2145
|
imageAlt?: string | undefined;
|
|
2146
|
+
description?: string | undefined;
|
|
2153
2147
|
linkLabel?: string | undefined;
|
|
2154
2148
|
}>>;
|
|
2155
2149
|
signIn: z.ZodOptional<z.ZodObject<{
|
|
@@ -2197,8 +2191,8 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2197
2191
|
href: string;
|
|
2198
2192
|
eyebrow: string;
|
|
2199
2193
|
image?: string | undefined;
|
|
2200
|
-
description?: string | undefined;
|
|
2201
2194
|
imageAlt?: string | undefined;
|
|
2195
|
+
description?: string | undefined;
|
|
2202
2196
|
linkLabel?: string | undefined;
|
|
2203
2197
|
} | undefined;
|
|
2204
2198
|
currentPath?: string | undefined;
|
|
@@ -2234,8 +2228,8 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2234
2228
|
href: string;
|
|
2235
2229
|
eyebrow: string;
|
|
2236
2230
|
image?: string | undefined;
|
|
2237
|
-
description?: string | undefined;
|
|
2238
2231
|
imageAlt?: string | undefined;
|
|
2232
|
+
description?: string | undefined;
|
|
2239
2233
|
linkLabel?: string | undefined;
|
|
2240
2234
|
} | undefined;
|
|
2241
2235
|
currentPath?: string | undefined;
|
|
@@ -2276,12 +2270,12 @@ export declare const storefrontHeroProductSchema: z.ZodObject<{
|
|
|
2276
2270
|
name: string;
|
|
2277
2271
|
price: number;
|
|
2278
2272
|
image?: string | undefined;
|
|
2273
|
+
brand?: string | undefined;
|
|
2279
2274
|
rating?: number | undefined;
|
|
2280
|
-
|
|
2275
|
+
reviewCount?: number | undefined;
|
|
2281
2276
|
imageAlt?: string | undefined;
|
|
2282
|
-
|
|
2277
|
+
originalPrice?: number | undefined;
|
|
2283
2278
|
colors?: string[] | undefined;
|
|
2284
|
-
reviewCount?: number | undefined;
|
|
2285
2279
|
inStock?: boolean | undefined;
|
|
2286
2280
|
isNew?: boolean | undefined;
|
|
2287
2281
|
tag?: string | undefined;
|
|
@@ -2290,12 +2284,12 @@ export declare const storefrontHeroProductSchema: z.ZodObject<{
|
|
|
2290
2284
|
name: string;
|
|
2291
2285
|
price: number;
|
|
2292
2286
|
image?: string | undefined;
|
|
2287
|
+
brand?: string | undefined;
|
|
2293
2288
|
rating?: number | undefined;
|
|
2294
|
-
|
|
2289
|
+
reviewCount?: number | undefined;
|
|
2295
2290
|
imageAlt?: string | undefined;
|
|
2296
|
-
|
|
2291
|
+
originalPrice?: number | undefined;
|
|
2297
2292
|
colors?: string[] | undefined;
|
|
2298
|
-
reviewCount?: number | undefined;
|
|
2299
2293
|
inStock?: boolean | undefined;
|
|
2300
2294
|
isNew?: boolean | undefined;
|
|
2301
2295
|
tag?: string | undefined;
|
|
@@ -2325,12 +2319,12 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2325
2319
|
name: string;
|
|
2326
2320
|
price: number;
|
|
2327
2321
|
image?: string | undefined;
|
|
2322
|
+
brand?: string | undefined;
|
|
2328
2323
|
rating?: number | undefined;
|
|
2329
|
-
|
|
2324
|
+
reviewCount?: number | undefined;
|
|
2330
2325
|
imageAlt?: string | undefined;
|
|
2331
|
-
|
|
2326
|
+
originalPrice?: number | undefined;
|
|
2332
2327
|
colors?: string[] | undefined;
|
|
2333
|
-
reviewCount?: number | undefined;
|
|
2334
2328
|
inStock?: boolean | undefined;
|
|
2335
2329
|
isNew?: boolean | undefined;
|
|
2336
2330
|
tag?: string | undefined;
|
|
@@ -2339,12 +2333,12 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2339
2333
|
name: string;
|
|
2340
2334
|
price: number;
|
|
2341
2335
|
image?: string | undefined;
|
|
2336
|
+
brand?: string | undefined;
|
|
2342
2337
|
rating?: number | undefined;
|
|
2343
|
-
|
|
2338
|
+
reviewCount?: number | undefined;
|
|
2344
2339
|
imageAlt?: string | undefined;
|
|
2345
|
-
|
|
2340
|
+
originalPrice?: number | undefined;
|
|
2346
2341
|
colors?: string[] | undefined;
|
|
2347
|
-
reviewCount?: number | undefined;
|
|
2348
2342
|
inStock?: boolean | undefined;
|
|
2349
2343
|
isNew?: boolean | undefined;
|
|
2350
2344
|
tag?: string | undefined;
|
|
@@ -2393,15 +2387,15 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2393
2387
|
name: string;
|
|
2394
2388
|
image?: string | undefined;
|
|
2395
2389
|
href?: string | undefined;
|
|
2396
|
-
count?: string | undefined;
|
|
2397
2390
|
imageAlt?: string | undefined;
|
|
2391
|
+
count?: string | undefined;
|
|
2398
2392
|
}, {
|
|
2399
2393
|
id: string;
|
|
2400
2394
|
name: string;
|
|
2401
2395
|
image?: string | undefined;
|
|
2402
2396
|
href?: string | undefined;
|
|
2403
|
-
count?: string | undefined;
|
|
2404
2397
|
imageAlt?: string | undefined;
|
|
2398
|
+
count?: string | undefined;
|
|
2405
2399
|
}>, "many">>;
|
|
2406
2400
|
featuredDeals: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2407
2401
|
id: z.ZodString;
|
|
@@ -2430,9 +2424,9 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2430
2424
|
label: string;
|
|
2431
2425
|
href?: string | undefined;
|
|
2432
2426
|
} | undefined;
|
|
2427
|
+
imageAlt?: string | undefined;
|
|
2433
2428
|
description?: string | undefined;
|
|
2434
2429
|
originalPrice?: number | undefined;
|
|
2435
|
-
imageAlt?: string | undefined;
|
|
2436
2430
|
}, {
|
|
2437
2431
|
id: string;
|
|
2438
2432
|
name: string;
|
|
@@ -2442,9 +2436,9 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2442
2436
|
label: string;
|
|
2443
2437
|
href?: string | undefined;
|
|
2444
2438
|
} | undefined;
|
|
2439
|
+
imageAlt?: string | undefined;
|
|
2445
2440
|
description?: string | undefined;
|
|
2446
2441
|
originalPrice?: number | undefined;
|
|
2447
|
-
imageAlt?: string | undefined;
|
|
2448
2442
|
}>, "many">>;
|
|
2449
2443
|
storeLocator: z.ZodOptional<z.ZodObject<{
|
|
2450
2444
|
title: z.ZodString;
|
|
@@ -2491,15 +2485,15 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2491
2485
|
name: string;
|
|
2492
2486
|
image?: string | undefined;
|
|
2493
2487
|
href?: string | undefined;
|
|
2494
|
-
count?: string | undefined;
|
|
2495
2488
|
imageAlt?: string | undefined;
|
|
2489
|
+
count?: string | undefined;
|
|
2496
2490
|
}, {
|
|
2497
2491
|
id: string;
|
|
2498
2492
|
name: string;
|
|
2499
2493
|
image?: string | undefined;
|
|
2500
2494
|
href?: string | undefined;
|
|
2501
|
-
count?: string | undefined;
|
|
2502
2495
|
imageAlt?: string | undefined;
|
|
2496
|
+
count?: string | undefined;
|
|
2503
2497
|
}>, "many">>;
|
|
2504
2498
|
rotationInterval: z.ZodOptional<z.ZodNumber>;
|
|
2505
2499
|
addToCartLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -2523,12 +2517,12 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2523
2517
|
name: string;
|
|
2524
2518
|
price: number;
|
|
2525
2519
|
image?: string | undefined;
|
|
2520
|
+
brand?: string | undefined;
|
|
2526
2521
|
rating?: number | undefined;
|
|
2527
|
-
|
|
2522
|
+
reviewCount?: number | undefined;
|
|
2528
2523
|
imageAlt?: string | undefined;
|
|
2529
|
-
|
|
2524
|
+
originalPrice?: number | undefined;
|
|
2530
2525
|
colors?: string[] | undefined;
|
|
2531
|
-
reviewCount?: number | undefined;
|
|
2532
2526
|
inStock?: boolean | undefined;
|
|
2533
2527
|
isNew?: boolean | undefined;
|
|
2534
2528
|
tag?: string | undefined;
|
|
@@ -2556,8 +2550,8 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2556
2550
|
name: string;
|
|
2557
2551
|
image?: string | undefined;
|
|
2558
2552
|
href?: string | undefined;
|
|
2559
|
-
count?: string | undefined;
|
|
2560
2553
|
imageAlt?: string | undefined;
|
|
2554
|
+
count?: string | undefined;
|
|
2561
2555
|
}[] | undefined;
|
|
2562
2556
|
featuredDeals?: {
|
|
2563
2557
|
id: string;
|
|
@@ -2568,9 +2562,9 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2568
2562
|
label: string;
|
|
2569
2563
|
href?: string | undefined;
|
|
2570
2564
|
} | undefined;
|
|
2565
|
+
imageAlt?: string | undefined;
|
|
2571
2566
|
description?: string | undefined;
|
|
2572
2567
|
originalPrice?: number | undefined;
|
|
2573
|
-
imageAlt?: string | undefined;
|
|
2574
2568
|
}[] | undefined;
|
|
2575
2569
|
storeLocator?: {
|
|
2576
2570
|
title: string;
|
|
@@ -2590,8 +2584,8 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2590
2584
|
name: string;
|
|
2591
2585
|
image?: string | undefined;
|
|
2592
2586
|
href?: string | undefined;
|
|
2593
|
-
count?: string | undefined;
|
|
2594
2587
|
imageAlt?: string | undefined;
|
|
2588
|
+
count?: string | undefined;
|
|
2595
2589
|
}[] | undefined;
|
|
2596
2590
|
rotationInterval?: number | undefined;
|
|
2597
2591
|
buyNowLabel?: string | undefined;
|
|
@@ -2613,12 +2607,12 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2613
2607
|
name: string;
|
|
2614
2608
|
price: number;
|
|
2615
2609
|
image?: string | undefined;
|
|
2610
|
+
brand?: string | undefined;
|
|
2616
2611
|
rating?: number | undefined;
|
|
2617
|
-
|
|
2612
|
+
reviewCount?: number | undefined;
|
|
2618
2613
|
imageAlt?: string | undefined;
|
|
2619
|
-
|
|
2614
|
+
originalPrice?: number | undefined;
|
|
2620
2615
|
colors?: string[] | undefined;
|
|
2621
|
-
reviewCount?: number | undefined;
|
|
2622
2616
|
inStock?: boolean | undefined;
|
|
2623
2617
|
isNew?: boolean | undefined;
|
|
2624
2618
|
tag?: string | undefined;
|
|
@@ -2646,8 +2640,8 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2646
2640
|
name: string;
|
|
2647
2641
|
image?: string | undefined;
|
|
2648
2642
|
href?: string | undefined;
|
|
2649
|
-
count?: string | undefined;
|
|
2650
2643
|
imageAlt?: string | undefined;
|
|
2644
|
+
count?: string | undefined;
|
|
2651
2645
|
}[] | undefined;
|
|
2652
2646
|
featuredDeals?: {
|
|
2653
2647
|
id: string;
|
|
@@ -2658,9 +2652,9 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2658
2652
|
label: string;
|
|
2659
2653
|
href?: string | undefined;
|
|
2660
2654
|
} | undefined;
|
|
2655
|
+
imageAlt?: string | undefined;
|
|
2661
2656
|
description?: string | undefined;
|
|
2662
2657
|
originalPrice?: number | undefined;
|
|
2663
|
-
imageAlt?: string | undefined;
|
|
2664
2658
|
}[] | undefined;
|
|
2665
2659
|
storeLocator?: {
|
|
2666
2660
|
title: string;
|
|
@@ -2680,8 +2674,8 @@ export declare const storefrontHeroPropsSchema: z.ZodObject<{
|
|
|
2680
2674
|
name: string;
|
|
2681
2675
|
image?: string | undefined;
|
|
2682
2676
|
href?: string | undefined;
|
|
2683
|
-
count?: string | undefined;
|
|
2684
2677
|
imageAlt?: string | undefined;
|
|
2678
|
+
count?: string | undefined;
|
|
2685
2679
|
}[] | undefined;
|
|
2686
2680
|
rotationInterval?: number | undefined;
|
|
2687
2681
|
buyNowLabel?: string | undefined;
|
|
@@ -3820,8 +3814,8 @@ export declare const reviewItemSchema: z.ZodObject<{
|
|
|
3820
3814
|
id: string;
|
|
3821
3815
|
content: string;
|
|
3822
3816
|
date: string;
|
|
3823
|
-
author: string;
|
|
3824
3817
|
rating: number;
|
|
3818
|
+
author: string;
|
|
3825
3819
|
avatar?: string | undefined;
|
|
3826
3820
|
dateTime?: string | undefined;
|
|
3827
3821
|
helpfulCount?: number | undefined;
|
|
@@ -3830,8 +3824,8 @@ export declare const reviewItemSchema: z.ZodObject<{
|
|
|
3830
3824
|
id: string;
|
|
3831
3825
|
content: string;
|
|
3832
3826
|
date: string;
|
|
3833
|
-
author: string;
|
|
3834
3827
|
rating: number;
|
|
3828
|
+
author: string;
|
|
3835
3829
|
avatar?: string | undefined;
|
|
3836
3830
|
dateTime?: string | undefined;
|
|
3837
3831
|
helpfulCount?: number | undefined;
|
|
@@ -3875,8 +3869,8 @@ export declare const reviewSummaryPropsSchema: z.ZodObject<{
|
|
|
3875
3869
|
5: number;
|
|
3876
3870
|
};
|
|
3877
3871
|
className?: string | undefined;
|
|
3878
|
-
labels?: Record<string, string> | undefined;
|
|
3879
3872
|
locale?: string | undefined;
|
|
3873
|
+
labels?: Record<string, string> | undefined;
|
|
3880
3874
|
}, {
|
|
3881
3875
|
averageRating: number;
|
|
3882
3876
|
totalReviews: number;
|
|
@@ -3888,8 +3882,8 @@ export declare const reviewSummaryPropsSchema: z.ZodObject<{
|
|
|
3888
3882
|
5: number;
|
|
3889
3883
|
};
|
|
3890
3884
|
className?: string | undefined;
|
|
3891
|
-
labels?: Record<string, string> | undefined;
|
|
3892
3885
|
locale?: string | undefined;
|
|
3886
|
+
labels?: Record<string, string> | undefined;
|
|
3893
3887
|
}>;
|
|
3894
3888
|
export type ReviewSummarySpecProps = z.infer<typeof reviewSummaryPropsSchema>;
|
|
3895
3889
|
export declare const reviewListPresentationSchema: z.ZodEnum<["list", "carousel"]>;
|
|
@@ -3914,8 +3908,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3914
3908
|
id: string;
|
|
3915
3909
|
content: string;
|
|
3916
3910
|
date: string;
|
|
3917
|
-
author: string;
|
|
3918
3911
|
rating: number;
|
|
3912
|
+
author: string;
|
|
3919
3913
|
avatar?: string | undefined;
|
|
3920
3914
|
dateTime?: string | undefined;
|
|
3921
3915
|
helpfulCount?: number | undefined;
|
|
@@ -3924,8 +3918,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3924
3918
|
id: string;
|
|
3925
3919
|
content: string;
|
|
3926
3920
|
date: string;
|
|
3927
|
-
author: string;
|
|
3928
3921
|
rating: number;
|
|
3922
|
+
author: string;
|
|
3929
3923
|
avatar?: string | undefined;
|
|
3930
3924
|
dateTime?: string | undefined;
|
|
3931
3925
|
helpfulCount?: number | undefined;
|
|
@@ -3940,8 +3934,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3940
3934
|
id: string;
|
|
3941
3935
|
content: string;
|
|
3942
3936
|
date: string;
|
|
3943
|
-
author: string;
|
|
3944
3937
|
rating: number;
|
|
3938
|
+
author: string;
|
|
3945
3939
|
avatar?: string | undefined;
|
|
3946
3940
|
dateTime?: string | undefined;
|
|
3947
3941
|
helpfulCount?: number | undefined;
|
|
@@ -3956,8 +3950,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3956
3950
|
id: string;
|
|
3957
3951
|
content: string;
|
|
3958
3952
|
date: string;
|
|
3959
|
-
author: string;
|
|
3960
3953
|
rating: number;
|
|
3954
|
+
author: string;
|
|
3961
3955
|
avatar?: string | undefined;
|
|
3962
3956
|
dateTime?: string | undefined;
|
|
3963
3957
|
helpfulCount?: number | undefined;
|
|
@@ -4003,6 +3997,1785 @@ export declare const reviewComposerPropsSchema: z.ZodObject<{
|
|
|
4003
3997
|
isSubmitting?: boolean | undefined;
|
|
4004
3998
|
}>;
|
|
4005
3999
|
export type ReviewComposerSpecProps = z.infer<typeof reviewComposerPropsSchema>;
|
|
4000
|
+
export declare const checkoutReadStateSchema: z.ZodEnum<["idle", "pending", "error", "unavailable"]>;
|
|
4001
|
+
export declare const checkoutAddressOptionSchema: z.ZodObject<{
|
|
4002
|
+
value: z.ZodString;
|
|
4003
|
+
label: z.ZodString;
|
|
4004
|
+
}, "strip", z.ZodTypeAny, {
|
|
4005
|
+
label: string;
|
|
4006
|
+
value: string;
|
|
4007
|
+
}, {
|
|
4008
|
+
label: string;
|
|
4009
|
+
value: string;
|
|
4010
|
+
}>;
|
|
4011
|
+
export declare const checkoutAddressLevelSchema: z.ZodEnum<["countries", "provinces", "cities"]>;
|
|
4012
|
+
export declare const checkoutLocationOptionsSchema: z.ZodObject<{
|
|
4013
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
4014
|
+
value: z.ZodString;
|
|
4015
|
+
label: z.ZodString;
|
|
4016
|
+
}, "strip", z.ZodTypeAny, {
|
|
4017
|
+
label: string;
|
|
4018
|
+
value: string;
|
|
4019
|
+
}, {
|
|
4020
|
+
label: string;
|
|
4021
|
+
value: string;
|
|
4022
|
+
}>, "many">;
|
|
4023
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
4024
|
+
value: z.ZodString;
|
|
4025
|
+
label: z.ZodString;
|
|
4026
|
+
}, "strip", z.ZodTypeAny, {
|
|
4027
|
+
label: string;
|
|
4028
|
+
value: string;
|
|
4029
|
+
}, {
|
|
4030
|
+
label: string;
|
|
4031
|
+
value: string;
|
|
4032
|
+
}>, "many">;
|
|
4033
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
4034
|
+
value: z.ZodString;
|
|
4035
|
+
label: z.ZodString;
|
|
4036
|
+
}, "strip", z.ZodTypeAny, {
|
|
4037
|
+
label: string;
|
|
4038
|
+
value: string;
|
|
4039
|
+
}, {
|
|
4040
|
+
label: string;
|
|
4041
|
+
value: string;
|
|
4042
|
+
}>, "many">;
|
|
4043
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4044
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4045
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4046
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
4047
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
4048
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
4049
|
+
}, "strip", z.ZodTypeAny, {
|
|
4050
|
+
countries: {
|
|
4051
|
+
label: string;
|
|
4052
|
+
value: string;
|
|
4053
|
+
}[];
|
|
4054
|
+
provinces: {
|
|
4055
|
+
label: string;
|
|
4056
|
+
value: string;
|
|
4057
|
+
}[];
|
|
4058
|
+
cities: {
|
|
4059
|
+
label: string;
|
|
4060
|
+
value: string;
|
|
4061
|
+
}[];
|
|
4062
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4063
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4064
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4065
|
+
countriesError?: string | undefined;
|
|
4066
|
+
provincesError?: string | undefined;
|
|
4067
|
+
citiesError?: string | undefined;
|
|
4068
|
+
}, {
|
|
4069
|
+
countries: {
|
|
4070
|
+
label: string;
|
|
4071
|
+
value: string;
|
|
4072
|
+
}[];
|
|
4073
|
+
provinces: {
|
|
4074
|
+
label: string;
|
|
4075
|
+
value: string;
|
|
4076
|
+
}[];
|
|
4077
|
+
cities: {
|
|
4078
|
+
label: string;
|
|
4079
|
+
value: string;
|
|
4080
|
+
}[];
|
|
4081
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4082
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4083
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4084
|
+
countriesError?: string | undefined;
|
|
4085
|
+
provincesError?: string | undefined;
|
|
4086
|
+
citiesError?: string | undefined;
|
|
4087
|
+
}>;
|
|
4088
|
+
export declare const checkoutAddressValuesSchema: z.ZodObject<{
|
|
4089
|
+
firstName: z.ZodString;
|
|
4090
|
+
lastName: z.ZodString;
|
|
4091
|
+
address1: z.ZodString;
|
|
4092
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4093
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4094
|
+
city: z.ZodString;
|
|
4095
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4096
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4097
|
+
countryCode: z.ZodString;
|
|
4098
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4099
|
+
}, "strip", z.ZodTypeAny, {
|
|
4100
|
+
firstName: string;
|
|
4101
|
+
lastName: string;
|
|
4102
|
+
address1: string;
|
|
4103
|
+
city: string;
|
|
4104
|
+
countryCode: string;
|
|
4105
|
+
address2?: string | undefined;
|
|
4106
|
+
company?: string | undefined;
|
|
4107
|
+
province?: string | undefined;
|
|
4108
|
+
postalCode?: string | undefined;
|
|
4109
|
+
phone?: string | undefined;
|
|
4110
|
+
}, {
|
|
4111
|
+
firstName: string;
|
|
4112
|
+
lastName: string;
|
|
4113
|
+
address1: string;
|
|
4114
|
+
city: string;
|
|
4115
|
+
countryCode: string;
|
|
4116
|
+
address2?: string | undefined;
|
|
4117
|
+
company?: string | undefined;
|
|
4118
|
+
province?: string | undefined;
|
|
4119
|
+
postalCode?: string | undefined;
|
|
4120
|
+
phone?: string | undefined;
|
|
4121
|
+
}>;
|
|
4122
|
+
export declare const checkoutContactValuesSchema: z.ZodObject<{
|
|
4123
|
+
email: z.ZodString;
|
|
4124
|
+
firstName: z.ZodString;
|
|
4125
|
+
lastName: z.ZodString;
|
|
4126
|
+
phone: z.ZodString;
|
|
4127
|
+
}, "strip", z.ZodTypeAny, {
|
|
4128
|
+
email: string;
|
|
4129
|
+
firstName: string;
|
|
4130
|
+
lastName: string;
|
|
4131
|
+
phone: string;
|
|
4132
|
+
}, {
|
|
4133
|
+
email: string;
|
|
4134
|
+
firstName: string;
|
|
4135
|
+
lastName: string;
|
|
4136
|
+
phone: string;
|
|
4137
|
+
}>;
|
|
4138
|
+
export declare const checkoutCustomerIdentitySchema: z.ZodObject<{
|
|
4139
|
+
id: z.ZodString;
|
|
4140
|
+
email: z.ZodString;
|
|
4141
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
4142
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
4143
|
+
}, "strip", z.ZodTypeAny, {
|
|
4144
|
+
id: string;
|
|
4145
|
+
email: string;
|
|
4146
|
+
firstName?: string | undefined;
|
|
4147
|
+
lastName?: string | undefined;
|
|
4148
|
+
}, {
|
|
4149
|
+
id: string;
|
|
4150
|
+
email: string;
|
|
4151
|
+
firstName?: string | undefined;
|
|
4152
|
+
lastName?: string | undefined;
|
|
4153
|
+
}>;
|
|
4154
|
+
export declare const checkoutSavedAddressSchema: z.ZodObject<{
|
|
4155
|
+
id: z.ZodString;
|
|
4156
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4157
|
+
address: z.ZodObject<{
|
|
4158
|
+
firstName: z.ZodString;
|
|
4159
|
+
lastName: z.ZodString;
|
|
4160
|
+
address1: z.ZodString;
|
|
4161
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4162
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
city: z.ZodString;
|
|
4164
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4165
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4166
|
+
countryCode: z.ZodString;
|
|
4167
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4168
|
+
}, "strip", z.ZodTypeAny, {
|
|
4169
|
+
firstName: string;
|
|
4170
|
+
lastName: string;
|
|
4171
|
+
address1: string;
|
|
4172
|
+
city: string;
|
|
4173
|
+
countryCode: string;
|
|
4174
|
+
address2?: string | undefined;
|
|
4175
|
+
company?: string | undefined;
|
|
4176
|
+
province?: string | undefined;
|
|
4177
|
+
postalCode?: string | undefined;
|
|
4178
|
+
phone?: string | undefined;
|
|
4179
|
+
}, {
|
|
4180
|
+
firstName: string;
|
|
4181
|
+
lastName: string;
|
|
4182
|
+
address1: string;
|
|
4183
|
+
city: string;
|
|
4184
|
+
countryCode: string;
|
|
4185
|
+
address2?: string | undefined;
|
|
4186
|
+
company?: string | undefined;
|
|
4187
|
+
province?: string | undefined;
|
|
4188
|
+
postalCode?: string | undefined;
|
|
4189
|
+
phone?: string | undefined;
|
|
4190
|
+
}>;
|
|
4191
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
4192
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
4193
|
+
}, "strip", z.ZodTypeAny, {
|
|
4194
|
+
address: {
|
|
4195
|
+
firstName: string;
|
|
4196
|
+
lastName: string;
|
|
4197
|
+
address1: string;
|
|
4198
|
+
city: string;
|
|
4199
|
+
countryCode: string;
|
|
4200
|
+
address2?: string | undefined;
|
|
4201
|
+
company?: string | undefined;
|
|
4202
|
+
province?: string | undefined;
|
|
4203
|
+
postalCode?: string | undefined;
|
|
4204
|
+
phone?: string | undefined;
|
|
4205
|
+
};
|
|
4206
|
+
id: string;
|
|
4207
|
+
label?: string | undefined;
|
|
4208
|
+
isDefaultShipping?: boolean | undefined;
|
|
4209
|
+
isDefaultBilling?: boolean | undefined;
|
|
4210
|
+
}, {
|
|
4211
|
+
address: {
|
|
4212
|
+
firstName: string;
|
|
4213
|
+
lastName: string;
|
|
4214
|
+
address1: string;
|
|
4215
|
+
city: string;
|
|
4216
|
+
countryCode: string;
|
|
4217
|
+
address2?: string | undefined;
|
|
4218
|
+
company?: string | undefined;
|
|
4219
|
+
province?: string | undefined;
|
|
4220
|
+
postalCode?: string | undefined;
|
|
4221
|
+
phone?: string | undefined;
|
|
4222
|
+
};
|
|
4223
|
+
id: string;
|
|
4224
|
+
label?: string | undefined;
|
|
4225
|
+
isDefaultShipping?: boolean | undefined;
|
|
4226
|
+
isDefaultBilling?: boolean | undefined;
|
|
4227
|
+
}>;
|
|
4228
|
+
export declare const checkoutSavedAddressStateSchema: z.ZodObject<{
|
|
4229
|
+
pendingId: z.ZodOptional<z.ZodString>;
|
|
4230
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
4231
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4232
|
+
message: z.ZodString;
|
|
4233
|
+
}, "strip", z.ZodTypeAny, {
|
|
4234
|
+
message: string;
|
|
4235
|
+
id?: string | undefined;
|
|
4236
|
+
}, {
|
|
4237
|
+
message: string;
|
|
4238
|
+
id?: string | undefined;
|
|
4239
|
+
}>>;
|
|
4240
|
+
lastSavedId: z.ZodOptional<z.ZodString>;
|
|
4241
|
+
lastAction: z.ZodOptional<z.ZodEnum<["saved", "deleted"]>>;
|
|
4242
|
+
}, "strip", z.ZodTypeAny, {
|
|
4243
|
+
error?: {
|
|
4244
|
+
message: string;
|
|
4245
|
+
id?: string | undefined;
|
|
4246
|
+
} | undefined;
|
|
4247
|
+
pendingId?: string | undefined;
|
|
4248
|
+
lastSavedId?: string | undefined;
|
|
4249
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4250
|
+
}, {
|
|
4251
|
+
error?: {
|
|
4252
|
+
message: string;
|
|
4253
|
+
id?: string | undefined;
|
|
4254
|
+
} | undefined;
|
|
4255
|
+
pendingId?: string | undefined;
|
|
4256
|
+
lastSavedId?: string | undefined;
|
|
4257
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4258
|
+
}>;
|
|
4259
|
+
export declare const checkoutShippingOptionSchema: z.ZodObject<{
|
|
4260
|
+
id: z.ZodString;
|
|
4261
|
+
name: z.ZodString;
|
|
4262
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4263
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4264
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
4265
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
4266
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
4267
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4268
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
4269
|
+
}, "strip", z.ZodTypeAny, {
|
|
4270
|
+
id: string;
|
|
4271
|
+
name: string;
|
|
4272
|
+
disabled?: boolean | undefined;
|
|
4273
|
+
price?: Money | undefined;
|
|
4274
|
+
description?: string | undefined;
|
|
4275
|
+
estimatedDays?: string | undefined;
|
|
4276
|
+
pickup?: boolean | undefined;
|
|
4277
|
+
locationName?: string | undefined;
|
|
4278
|
+
disabledReason?: string | undefined;
|
|
4279
|
+
}, {
|
|
4280
|
+
id: string;
|
|
4281
|
+
name: string;
|
|
4282
|
+
disabled?: boolean | undefined;
|
|
4283
|
+
price?: Money | undefined;
|
|
4284
|
+
description?: string | undefined;
|
|
4285
|
+
estimatedDays?: string | undefined;
|
|
4286
|
+
pickup?: boolean | undefined;
|
|
4287
|
+
locationName?: string | undefined;
|
|
4288
|
+
disabledReason?: string | undefined;
|
|
4289
|
+
}>;
|
|
4290
|
+
export declare const checkoutShippingGroupItemSchema: z.ZodObject<{
|
|
4291
|
+
lineId: z.ZodString;
|
|
4292
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
4293
|
+
}, "strip", z.ZodTypeAny, {
|
|
4294
|
+
lineId: string;
|
|
4295
|
+
quantity?: number | undefined;
|
|
4296
|
+
}, {
|
|
4297
|
+
lineId: string;
|
|
4298
|
+
quantity?: number | undefined;
|
|
4299
|
+
}>;
|
|
4300
|
+
export declare const checkoutShippingGroupSchema: z.ZodObject<{
|
|
4301
|
+
id: z.ZodString;
|
|
4302
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4303
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4304
|
+
lineId: z.ZodString;
|
|
4305
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
4306
|
+
}, "strip", z.ZodTypeAny, {
|
|
4307
|
+
lineId: string;
|
|
4308
|
+
quantity?: number | undefined;
|
|
4309
|
+
}, {
|
|
4310
|
+
lineId: string;
|
|
4311
|
+
quantity?: number | undefined;
|
|
4312
|
+
}>, "many">>;
|
|
4313
|
+
itemCount: z.ZodOptional<z.ZodNumber>;
|
|
4314
|
+
options: z.ZodArray<z.ZodObject<{
|
|
4315
|
+
id: z.ZodString;
|
|
4316
|
+
name: z.ZodString;
|
|
4317
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4318
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4319
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
4320
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
4321
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
4322
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4323
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
4324
|
+
}, "strip", z.ZodTypeAny, {
|
|
4325
|
+
id: string;
|
|
4326
|
+
name: string;
|
|
4327
|
+
disabled?: boolean | undefined;
|
|
4328
|
+
price?: Money | undefined;
|
|
4329
|
+
description?: string | undefined;
|
|
4330
|
+
estimatedDays?: string | undefined;
|
|
4331
|
+
pickup?: boolean | undefined;
|
|
4332
|
+
locationName?: string | undefined;
|
|
4333
|
+
disabledReason?: string | undefined;
|
|
4334
|
+
}, {
|
|
4335
|
+
id: string;
|
|
4336
|
+
name: string;
|
|
4337
|
+
disabled?: boolean | undefined;
|
|
4338
|
+
price?: Money | undefined;
|
|
4339
|
+
description?: string | undefined;
|
|
4340
|
+
estimatedDays?: string | undefined;
|
|
4341
|
+
pickup?: boolean | undefined;
|
|
4342
|
+
locationName?: string | undefined;
|
|
4343
|
+
disabledReason?: string | undefined;
|
|
4344
|
+
}>, "many">;
|
|
4345
|
+
selectedOptionId: z.ZodOptional<z.ZodString>;
|
|
4346
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
4347
|
+
}, "strip", z.ZodTypeAny, {
|
|
4348
|
+
id: string;
|
|
4349
|
+
options: {
|
|
4350
|
+
id: string;
|
|
4351
|
+
name: string;
|
|
4352
|
+
disabled?: boolean | undefined;
|
|
4353
|
+
price?: Money | undefined;
|
|
4354
|
+
description?: string | undefined;
|
|
4355
|
+
estimatedDays?: string | undefined;
|
|
4356
|
+
pickup?: boolean | undefined;
|
|
4357
|
+
locationName?: string | undefined;
|
|
4358
|
+
disabledReason?: string | undefined;
|
|
4359
|
+
}[];
|
|
4360
|
+
label?: string | undefined;
|
|
4361
|
+
items?: {
|
|
4362
|
+
lineId: string;
|
|
4363
|
+
quantity?: number | undefined;
|
|
4364
|
+
}[] | undefined;
|
|
4365
|
+
itemCount?: number | undefined;
|
|
4366
|
+
selectedOptionId?: string | undefined;
|
|
4367
|
+
unavailableReason?: string | undefined;
|
|
4368
|
+
}, {
|
|
4369
|
+
id: string;
|
|
4370
|
+
options: {
|
|
4371
|
+
id: string;
|
|
4372
|
+
name: string;
|
|
4373
|
+
disabled?: boolean | undefined;
|
|
4374
|
+
price?: Money | undefined;
|
|
4375
|
+
description?: string | undefined;
|
|
4376
|
+
estimatedDays?: string | undefined;
|
|
4377
|
+
pickup?: boolean | undefined;
|
|
4378
|
+
locationName?: string | undefined;
|
|
4379
|
+
disabledReason?: string | undefined;
|
|
4380
|
+
}[];
|
|
4381
|
+
label?: string | undefined;
|
|
4382
|
+
items?: {
|
|
4383
|
+
lineId: string;
|
|
4384
|
+
quantity?: number | undefined;
|
|
4385
|
+
}[] | undefined;
|
|
4386
|
+
itemCount?: number | undefined;
|
|
4387
|
+
selectedOptionId?: string | undefined;
|
|
4388
|
+
unavailableReason?: string | undefined;
|
|
4389
|
+
}>;
|
|
4390
|
+
export declare const checkoutAdjustmentPaymentSchema: z.ZodObject<{
|
|
4391
|
+
id: z.ZodString;
|
|
4392
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
4393
|
+
label: z.ZodString;
|
|
4394
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4395
|
+
}, "strip", z.ZodTypeAny, {
|
|
4396
|
+
label: string;
|
|
4397
|
+
id: string;
|
|
4398
|
+
amount: Money;
|
|
4399
|
+
kind: "gift-card" | "store-credit";
|
|
4400
|
+
}, {
|
|
4401
|
+
label: string;
|
|
4402
|
+
id: string;
|
|
4403
|
+
amount: Money;
|
|
4404
|
+
kind: "gift-card" | "store-credit";
|
|
4405
|
+
}>;
|
|
4406
|
+
export declare const checkoutInterruptionKindSchema: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
4407
|
+
export declare const checkoutInterruptionActionSchema: z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>;
|
|
4408
|
+
export declare const checkoutInterruptionSchema: z.ZodObject<{
|
|
4409
|
+
kind: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
4410
|
+
severity: z.ZodEnum<["info", "blocking"]>;
|
|
4411
|
+
title: z.ZodString;
|
|
4412
|
+
message: z.ZodString;
|
|
4413
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4414
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
4415
|
+
label: z.ZodString;
|
|
4416
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
4417
|
+
next: z.ZodOptional<z.ZodString>;
|
|
4418
|
+
}, "strip", z.ZodTypeAny, {
|
|
4419
|
+
label: string;
|
|
4420
|
+
next?: string | undefined;
|
|
4421
|
+
previous?: string | undefined;
|
|
4422
|
+
lineId?: string | undefined;
|
|
4423
|
+
}, {
|
|
4424
|
+
label: string;
|
|
4425
|
+
next?: string | undefined;
|
|
4426
|
+
previous?: string | undefined;
|
|
4427
|
+
lineId?: string | undefined;
|
|
4428
|
+
}>, "many">>;
|
|
4429
|
+
actions: z.ZodArray<z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>, "many">;
|
|
4430
|
+
}, "strip", z.ZodTypeAny, {
|
|
4431
|
+
title: string;
|
|
4432
|
+
message: string;
|
|
4433
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
4434
|
+
severity: "info" | "blocking";
|
|
4435
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
4436
|
+
changes?: {
|
|
4437
|
+
label: string;
|
|
4438
|
+
next?: string | undefined;
|
|
4439
|
+
previous?: string | undefined;
|
|
4440
|
+
lineId?: string | undefined;
|
|
4441
|
+
}[] | undefined;
|
|
4442
|
+
}, {
|
|
4443
|
+
title: string;
|
|
4444
|
+
message: string;
|
|
4445
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
4446
|
+
severity: "info" | "blocking";
|
|
4447
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
4448
|
+
changes?: {
|
|
4449
|
+
label: string;
|
|
4450
|
+
next?: string | undefined;
|
|
4451
|
+
previous?: string | undefined;
|
|
4452
|
+
lineId?: string | undefined;
|
|
4453
|
+
}[] | undefined;
|
|
4454
|
+
}>;
|
|
4455
|
+
export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
4456
|
+
contact: z.ZodObject<{
|
|
4457
|
+
email: z.ZodString;
|
|
4458
|
+
firstName: z.ZodString;
|
|
4459
|
+
lastName: z.ZodString;
|
|
4460
|
+
phone: z.ZodString;
|
|
4461
|
+
}, "strip", z.ZodTypeAny, {
|
|
4462
|
+
email: string;
|
|
4463
|
+
firstName: string;
|
|
4464
|
+
lastName: string;
|
|
4465
|
+
phone: string;
|
|
4466
|
+
}, {
|
|
4467
|
+
email: string;
|
|
4468
|
+
firstName: string;
|
|
4469
|
+
lastName: string;
|
|
4470
|
+
phone: string;
|
|
4471
|
+
}>;
|
|
4472
|
+
shippingAddress: z.ZodObject<{
|
|
4473
|
+
firstName: z.ZodString;
|
|
4474
|
+
lastName: z.ZodString;
|
|
4475
|
+
address1: z.ZodString;
|
|
4476
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4477
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4478
|
+
city: z.ZodString;
|
|
4479
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4481
|
+
countryCode: z.ZodString;
|
|
4482
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4483
|
+
}, "strip", z.ZodTypeAny, {
|
|
4484
|
+
firstName: string;
|
|
4485
|
+
lastName: string;
|
|
4486
|
+
address1: string;
|
|
4487
|
+
city: string;
|
|
4488
|
+
countryCode: string;
|
|
4489
|
+
address2?: string | undefined;
|
|
4490
|
+
company?: string | undefined;
|
|
4491
|
+
province?: string | undefined;
|
|
4492
|
+
postalCode?: string | undefined;
|
|
4493
|
+
phone?: string | undefined;
|
|
4494
|
+
}, {
|
|
4495
|
+
firstName: string;
|
|
4496
|
+
lastName: string;
|
|
4497
|
+
address1: string;
|
|
4498
|
+
city: string;
|
|
4499
|
+
countryCode: string;
|
|
4500
|
+
address2?: string | undefined;
|
|
4501
|
+
company?: string | undefined;
|
|
4502
|
+
province?: string | undefined;
|
|
4503
|
+
postalCode?: string | undefined;
|
|
4504
|
+
phone?: string | undefined;
|
|
4505
|
+
}>;
|
|
4506
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
4507
|
+
firstName: z.ZodString;
|
|
4508
|
+
lastName: z.ZodString;
|
|
4509
|
+
address1: z.ZodString;
|
|
4510
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4511
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4512
|
+
city: z.ZodString;
|
|
4513
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4514
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4515
|
+
countryCode: z.ZodString;
|
|
4516
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4517
|
+
}, "strip", z.ZodTypeAny, {
|
|
4518
|
+
firstName: string;
|
|
4519
|
+
lastName: string;
|
|
4520
|
+
address1: string;
|
|
4521
|
+
city: string;
|
|
4522
|
+
countryCode: string;
|
|
4523
|
+
address2?: string | undefined;
|
|
4524
|
+
company?: string | undefined;
|
|
4525
|
+
province?: string | undefined;
|
|
4526
|
+
postalCode?: string | undefined;
|
|
4527
|
+
phone?: string | undefined;
|
|
4528
|
+
}, {
|
|
4529
|
+
firstName: string;
|
|
4530
|
+
lastName: string;
|
|
4531
|
+
address1: string;
|
|
4532
|
+
city: string;
|
|
4533
|
+
countryCode: string;
|
|
4534
|
+
address2?: string | undefined;
|
|
4535
|
+
company?: string | undefined;
|
|
4536
|
+
province?: string | undefined;
|
|
4537
|
+
postalCode?: string | undefined;
|
|
4538
|
+
phone?: string | undefined;
|
|
4539
|
+
}>>;
|
|
4540
|
+
sameAsShipping: z.ZodBoolean;
|
|
4541
|
+
shippingSelections: z.ZodArray<z.ZodObject<{
|
|
4542
|
+
groupId: z.ZodString;
|
|
4543
|
+
optionId: z.ZodString;
|
|
4544
|
+
}, "strip", z.ZodTypeAny, {
|
|
4545
|
+
groupId: string;
|
|
4546
|
+
optionId: string;
|
|
4547
|
+
}, {
|
|
4548
|
+
groupId: string;
|
|
4549
|
+
optionId: string;
|
|
4550
|
+
}>, "many">;
|
|
4551
|
+
paymentMethod: z.ZodString;
|
|
4552
|
+
adjustmentPayments: z.ZodArray<z.ZodObject<{
|
|
4553
|
+
id: z.ZodString;
|
|
4554
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
4555
|
+
label: z.ZodString;
|
|
4556
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4557
|
+
}, "strip", z.ZodTypeAny, {
|
|
4558
|
+
label: string;
|
|
4559
|
+
id: string;
|
|
4560
|
+
amount: Money;
|
|
4561
|
+
kind: "gift-card" | "store-credit";
|
|
4562
|
+
}, {
|
|
4563
|
+
label: string;
|
|
4564
|
+
id: string;
|
|
4565
|
+
amount: Money;
|
|
4566
|
+
kind: "gift-card" | "store-credit";
|
|
4567
|
+
}>, "many">;
|
|
4568
|
+
promoCode: z.ZodString;
|
|
4569
|
+
}, "strip", z.ZodTypeAny, {
|
|
4570
|
+
contact: {
|
|
4571
|
+
email: string;
|
|
4572
|
+
firstName: string;
|
|
4573
|
+
lastName: string;
|
|
4574
|
+
phone: string;
|
|
4575
|
+
};
|
|
4576
|
+
shippingAddress: {
|
|
4577
|
+
firstName: string;
|
|
4578
|
+
lastName: string;
|
|
4579
|
+
address1: string;
|
|
4580
|
+
city: string;
|
|
4581
|
+
countryCode: string;
|
|
4582
|
+
address2?: string | undefined;
|
|
4583
|
+
company?: string | undefined;
|
|
4584
|
+
province?: string | undefined;
|
|
4585
|
+
postalCode?: string | undefined;
|
|
4586
|
+
phone?: string | undefined;
|
|
4587
|
+
};
|
|
4588
|
+
sameAsShipping: boolean;
|
|
4589
|
+
shippingSelections: {
|
|
4590
|
+
groupId: string;
|
|
4591
|
+
optionId: string;
|
|
4592
|
+
}[];
|
|
4593
|
+
paymentMethod: string;
|
|
4594
|
+
adjustmentPayments: {
|
|
4595
|
+
label: string;
|
|
4596
|
+
id: string;
|
|
4597
|
+
amount: Money;
|
|
4598
|
+
kind: "gift-card" | "store-credit";
|
|
4599
|
+
}[];
|
|
4600
|
+
promoCode: string;
|
|
4601
|
+
billingAddress?: {
|
|
4602
|
+
firstName: string;
|
|
4603
|
+
lastName: string;
|
|
4604
|
+
address1: string;
|
|
4605
|
+
city: string;
|
|
4606
|
+
countryCode: string;
|
|
4607
|
+
address2?: string | undefined;
|
|
4608
|
+
company?: string | undefined;
|
|
4609
|
+
province?: string | undefined;
|
|
4610
|
+
postalCode?: string | undefined;
|
|
4611
|
+
phone?: string | undefined;
|
|
4612
|
+
} | undefined;
|
|
4613
|
+
}, {
|
|
4614
|
+
contact: {
|
|
4615
|
+
email: string;
|
|
4616
|
+
firstName: string;
|
|
4617
|
+
lastName: string;
|
|
4618
|
+
phone: string;
|
|
4619
|
+
};
|
|
4620
|
+
shippingAddress: {
|
|
4621
|
+
firstName: string;
|
|
4622
|
+
lastName: string;
|
|
4623
|
+
address1: string;
|
|
4624
|
+
city: string;
|
|
4625
|
+
countryCode: string;
|
|
4626
|
+
address2?: string | undefined;
|
|
4627
|
+
company?: string | undefined;
|
|
4628
|
+
province?: string | undefined;
|
|
4629
|
+
postalCode?: string | undefined;
|
|
4630
|
+
phone?: string | undefined;
|
|
4631
|
+
};
|
|
4632
|
+
sameAsShipping: boolean;
|
|
4633
|
+
shippingSelections: {
|
|
4634
|
+
groupId: string;
|
|
4635
|
+
optionId: string;
|
|
4636
|
+
}[];
|
|
4637
|
+
paymentMethod: string;
|
|
4638
|
+
adjustmentPayments: {
|
|
4639
|
+
label: string;
|
|
4640
|
+
id: string;
|
|
4641
|
+
amount: Money;
|
|
4642
|
+
kind: "gift-card" | "store-credit";
|
|
4643
|
+
}[];
|
|
4644
|
+
promoCode: string;
|
|
4645
|
+
billingAddress?: {
|
|
4646
|
+
firstName: string;
|
|
4647
|
+
lastName: string;
|
|
4648
|
+
address1: string;
|
|
4649
|
+
city: string;
|
|
4650
|
+
countryCode: string;
|
|
4651
|
+
address2?: string | undefined;
|
|
4652
|
+
company?: string | undefined;
|
|
4653
|
+
province?: string | undefined;
|
|
4654
|
+
postalCode?: string | undefined;
|
|
4655
|
+
phone?: string | undefined;
|
|
4656
|
+
} | undefined;
|
|
4657
|
+
}>;
|
|
4658
|
+
export declare const checkoutOrderLineSchema: z.ZodObject<{
|
|
4659
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
4660
|
+
name: z.ZodString;
|
|
4661
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
4662
|
+
quantity: z.ZodNumber;
|
|
4663
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4664
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4665
|
+
image: z.ZodOptional<z.ZodString>;
|
|
4666
|
+
}, "strip", z.ZodTypeAny, {
|
|
4667
|
+
id: string | number;
|
|
4668
|
+
name: string;
|
|
4669
|
+
quantity: number;
|
|
4670
|
+
variant?: string | undefined;
|
|
4671
|
+
image?: string | undefined;
|
|
4672
|
+
unitPrice?: Money | undefined;
|
|
4673
|
+
lineTotal?: Money | undefined;
|
|
4674
|
+
}, {
|
|
4675
|
+
id: string | number;
|
|
4676
|
+
name: string;
|
|
4677
|
+
quantity: number;
|
|
4678
|
+
variant?: string | undefined;
|
|
4679
|
+
image?: string | undefined;
|
|
4680
|
+
unitPrice?: Money | undefined;
|
|
4681
|
+
lineTotal?: Money | undefined;
|
|
4682
|
+
}>;
|
|
4683
|
+
export declare const checkoutTotalsSchema: z.ZodObject<{
|
|
4684
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4685
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4686
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4687
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4688
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4689
|
+
}, "strip", z.ZodTypeAny, {
|
|
4690
|
+
subtotal: Money;
|
|
4691
|
+
total: Money;
|
|
4692
|
+
shipping?: Money | undefined;
|
|
4693
|
+
discount?: Money | undefined;
|
|
4694
|
+
tax?: Money | undefined;
|
|
4695
|
+
}, {
|
|
4696
|
+
subtotal: Money;
|
|
4697
|
+
total: Money;
|
|
4698
|
+
shipping?: Money | undefined;
|
|
4699
|
+
discount?: Money | undefined;
|
|
4700
|
+
tax?: Money | undefined;
|
|
4701
|
+
}>;
|
|
4702
|
+
export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
4703
|
+
items: z.ZodArray<z.ZodObject<{
|
|
4704
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
4705
|
+
name: z.ZodString;
|
|
4706
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
4707
|
+
quantity: z.ZodNumber;
|
|
4708
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4709
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4710
|
+
image: z.ZodOptional<z.ZodString>;
|
|
4711
|
+
}, "strip", z.ZodTypeAny, {
|
|
4712
|
+
id: string | number;
|
|
4713
|
+
name: string;
|
|
4714
|
+
quantity: number;
|
|
4715
|
+
variant?: string | undefined;
|
|
4716
|
+
image?: string | undefined;
|
|
4717
|
+
unitPrice?: Money | undefined;
|
|
4718
|
+
lineTotal?: Money | undefined;
|
|
4719
|
+
}, {
|
|
4720
|
+
id: string | number;
|
|
4721
|
+
name: string;
|
|
4722
|
+
quantity: number;
|
|
4723
|
+
variant?: string | undefined;
|
|
4724
|
+
image?: string | undefined;
|
|
4725
|
+
unitPrice?: Money | undefined;
|
|
4726
|
+
lineTotal?: Money | undefined;
|
|
4727
|
+
}>, "many">;
|
|
4728
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
4729
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4730
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4731
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4732
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4733
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4734
|
+
}, "strip", z.ZodTypeAny, {
|
|
4735
|
+
subtotal: Money;
|
|
4736
|
+
total: Money;
|
|
4737
|
+
shipping?: Money | undefined;
|
|
4738
|
+
discount?: Money | undefined;
|
|
4739
|
+
tax?: Money | undefined;
|
|
4740
|
+
}, {
|
|
4741
|
+
subtotal: Money;
|
|
4742
|
+
total: Money;
|
|
4743
|
+
shipping?: Money | undefined;
|
|
4744
|
+
discount?: Money | undefined;
|
|
4745
|
+
tax?: Money | undefined;
|
|
4746
|
+
}>>;
|
|
4747
|
+
}, "strip", z.ZodTypeAny, {
|
|
4748
|
+
items: {
|
|
4749
|
+
id: string | number;
|
|
4750
|
+
name: string;
|
|
4751
|
+
quantity: number;
|
|
4752
|
+
variant?: string | undefined;
|
|
4753
|
+
image?: string | undefined;
|
|
4754
|
+
unitPrice?: Money | undefined;
|
|
4755
|
+
lineTotal?: Money | undefined;
|
|
4756
|
+
}[];
|
|
4757
|
+
totals?: {
|
|
4758
|
+
subtotal: Money;
|
|
4759
|
+
total: Money;
|
|
4760
|
+
shipping?: Money | undefined;
|
|
4761
|
+
discount?: Money | undefined;
|
|
4762
|
+
tax?: Money | undefined;
|
|
4763
|
+
} | undefined;
|
|
4764
|
+
}, {
|
|
4765
|
+
items: {
|
|
4766
|
+
id: string | number;
|
|
4767
|
+
name: string;
|
|
4768
|
+
quantity: number;
|
|
4769
|
+
variant?: string | undefined;
|
|
4770
|
+
image?: string | undefined;
|
|
4771
|
+
unitPrice?: Money | undefined;
|
|
4772
|
+
lineTotal?: Money | undefined;
|
|
4773
|
+
}[];
|
|
4774
|
+
totals?: {
|
|
4775
|
+
subtotal: Money;
|
|
4776
|
+
total: Money;
|
|
4777
|
+
shipping?: Money | undefined;
|
|
4778
|
+
discount?: Money | undefined;
|
|
4779
|
+
tax?: Money | undefined;
|
|
4780
|
+
} | undefined;
|
|
4781
|
+
}>;
|
|
4782
|
+
export declare const checkoutAvailabilitySchema: z.ZodObject<{
|
|
4783
|
+
status: z.ZodEnum<["available", "empty", "unavailable", "error"]>;
|
|
4784
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4785
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
4786
|
+
}, "strip", z.ZodTypeAny, {
|
|
4787
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
4788
|
+
reason?: string | undefined;
|
|
4789
|
+
actionLabel?: string | undefined;
|
|
4790
|
+
}, {
|
|
4791
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
4792
|
+
reason?: string | undefined;
|
|
4793
|
+
actionLabel?: string | undefined;
|
|
4794
|
+
}>;
|
|
4795
|
+
export declare const checkoutPropsSchema: z.ZodObject<{
|
|
4796
|
+
presentation: z.ZodEnum<["single-page", "stepper"]>;
|
|
4797
|
+
showReviewStep: z.ZodOptional<z.ZodBoolean>;
|
|
4798
|
+
contact: z.ZodObject<{
|
|
4799
|
+
email: z.ZodString;
|
|
4800
|
+
firstName: z.ZodString;
|
|
4801
|
+
lastName: z.ZodString;
|
|
4802
|
+
phone: z.ZodString;
|
|
4803
|
+
}, "strip", z.ZodTypeAny, {
|
|
4804
|
+
email: string;
|
|
4805
|
+
firstName: string;
|
|
4806
|
+
lastName: string;
|
|
4807
|
+
phone: string;
|
|
4808
|
+
}, {
|
|
4809
|
+
email: string;
|
|
4810
|
+
firstName: string;
|
|
4811
|
+
lastName: string;
|
|
4812
|
+
phone: string;
|
|
4813
|
+
}>;
|
|
4814
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4815
|
+
id: z.ZodString;
|
|
4816
|
+
email: z.ZodString;
|
|
4817
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
4818
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
4819
|
+
}, "strip", z.ZodTypeAny, {
|
|
4820
|
+
id: string;
|
|
4821
|
+
email: string;
|
|
4822
|
+
firstName?: string | undefined;
|
|
4823
|
+
lastName?: string | undefined;
|
|
4824
|
+
}, {
|
|
4825
|
+
id: string;
|
|
4826
|
+
email: string;
|
|
4827
|
+
firstName?: string | undefined;
|
|
4828
|
+
lastName?: string | undefined;
|
|
4829
|
+
}>>>;
|
|
4830
|
+
savedAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4831
|
+
id: z.ZodString;
|
|
4832
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4833
|
+
address: z.ZodObject<{
|
|
4834
|
+
firstName: z.ZodString;
|
|
4835
|
+
lastName: z.ZodString;
|
|
4836
|
+
address1: z.ZodString;
|
|
4837
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4838
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4839
|
+
city: z.ZodString;
|
|
4840
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4841
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4842
|
+
countryCode: z.ZodString;
|
|
4843
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4844
|
+
}, "strip", z.ZodTypeAny, {
|
|
4845
|
+
firstName: string;
|
|
4846
|
+
lastName: string;
|
|
4847
|
+
address1: string;
|
|
4848
|
+
city: string;
|
|
4849
|
+
countryCode: string;
|
|
4850
|
+
address2?: string | undefined;
|
|
4851
|
+
company?: string | undefined;
|
|
4852
|
+
province?: string | undefined;
|
|
4853
|
+
postalCode?: string | undefined;
|
|
4854
|
+
phone?: string | undefined;
|
|
4855
|
+
}, {
|
|
4856
|
+
firstName: string;
|
|
4857
|
+
lastName: string;
|
|
4858
|
+
address1: string;
|
|
4859
|
+
city: string;
|
|
4860
|
+
countryCode: string;
|
|
4861
|
+
address2?: string | undefined;
|
|
4862
|
+
company?: string | undefined;
|
|
4863
|
+
province?: string | undefined;
|
|
4864
|
+
postalCode?: string | undefined;
|
|
4865
|
+
phone?: string | undefined;
|
|
4866
|
+
}>;
|
|
4867
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
4868
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
4869
|
+
}, "strip", z.ZodTypeAny, {
|
|
4870
|
+
address: {
|
|
4871
|
+
firstName: string;
|
|
4872
|
+
lastName: string;
|
|
4873
|
+
address1: string;
|
|
4874
|
+
city: string;
|
|
4875
|
+
countryCode: string;
|
|
4876
|
+
address2?: string | undefined;
|
|
4877
|
+
company?: string | undefined;
|
|
4878
|
+
province?: string | undefined;
|
|
4879
|
+
postalCode?: string | undefined;
|
|
4880
|
+
phone?: string | undefined;
|
|
4881
|
+
};
|
|
4882
|
+
id: string;
|
|
4883
|
+
label?: string | undefined;
|
|
4884
|
+
isDefaultShipping?: boolean | undefined;
|
|
4885
|
+
isDefaultBilling?: boolean | undefined;
|
|
4886
|
+
}, {
|
|
4887
|
+
address: {
|
|
4888
|
+
firstName: string;
|
|
4889
|
+
lastName: string;
|
|
4890
|
+
address1: string;
|
|
4891
|
+
city: string;
|
|
4892
|
+
countryCode: string;
|
|
4893
|
+
address2?: string | undefined;
|
|
4894
|
+
company?: string | undefined;
|
|
4895
|
+
province?: string | undefined;
|
|
4896
|
+
postalCode?: string | undefined;
|
|
4897
|
+
phone?: string | undefined;
|
|
4898
|
+
};
|
|
4899
|
+
id: string;
|
|
4900
|
+
label?: string | undefined;
|
|
4901
|
+
isDefaultShipping?: boolean | undefined;
|
|
4902
|
+
isDefaultBilling?: boolean | undefined;
|
|
4903
|
+
}>, "many">>;
|
|
4904
|
+
savedAddressState: z.ZodOptional<z.ZodObject<{
|
|
4905
|
+
pendingId: z.ZodOptional<z.ZodString>;
|
|
4906
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
4907
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4908
|
+
message: z.ZodString;
|
|
4909
|
+
}, "strip", z.ZodTypeAny, {
|
|
4910
|
+
message: string;
|
|
4911
|
+
id?: string | undefined;
|
|
4912
|
+
}, {
|
|
4913
|
+
message: string;
|
|
4914
|
+
id?: string | undefined;
|
|
4915
|
+
}>>;
|
|
4916
|
+
lastSavedId: z.ZodOptional<z.ZodString>;
|
|
4917
|
+
lastAction: z.ZodOptional<z.ZodEnum<["saved", "deleted"]>>;
|
|
4918
|
+
}, "strip", z.ZodTypeAny, {
|
|
4919
|
+
error?: {
|
|
4920
|
+
message: string;
|
|
4921
|
+
id?: string | undefined;
|
|
4922
|
+
} | undefined;
|
|
4923
|
+
pendingId?: string | undefined;
|
|
4924
|
+
lastSavedId?: string | undefined;
|
|
4925
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4926
|
+
}, {
|
|
4927
|
+
error?: {
|
|
4928
|
+
message: string;
|
|
4929
|
+
id?: string | undefined;
|
|
4930
|
+
} | undefined;
|
|
4931
|
+
pendingId?: string | undefined;
|
|
4932
|
+
lastSavedId?: string | undefined;
|
|
4933
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4934
|
+
}>>;
|
|
4935
|
+
shippingAddress: z.ZodObject<{
|
|
4936
|
+
firstName: z.ZodString;
|
|
4937
|
+
lastName: z.ZodString;
|
|
4938
|
+
address1: z.ZodString;
|
|
4939
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4940
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4941
|
+
city: z.ZodString;
|
|
4942
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4943
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
countryCode: z.ZodString;
|
|
4945
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4946
|
+
}, "strip", z.ZodTypeAny, {
|
|
4947
|
+
firstName: string;
|
|
4948
|
+
lastName: string;
|
|
4949
|
+
address1: string;
|
|
4950
|
+
city: string;
|
|
4951
|
+
countryCode: string;
|
|
4952
|
+
address2?: string | undefined;
|
|
4953
|
+
company?: string | undefined;
|
|
4954
|
+
province?: string | undefined;
|
|
4955
|
+
postalCode?: string | undefined;
|
|
4956
|
+
phone?: string | undefined;
|
|
4957
|
+
}, {
|
|
4958
|
+
firstName: string;
|
|
4959
|
+
lastName: string;
|
|
4960
|
+
address1: string;
|
|
4961
|
+
city: string;
|
|
4962
|
+
countryCode: string;
|
|
4963
|
+
address2?: string | undefined;
|
|
4964
|
+
company?: string | undefined;
|
|
4965
|
+
province?: string | undefined;
|
|
4966
|
+
postalCode?: string | undefined;
|
|
4967
|
+
phone?: string | undefined;
|
|
4968
|
+
}>;
|
|
4969
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
4970
|
+
firstName: z.ZodString;
|
|
4971
|
+
lastName: z.ZodString;
|
|
4972
|
+
address1: z.ZodString;
|
|
4973
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4974
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4975
|
+
city: z.ZodString;
|
|
4976
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4977
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4978
|
+
countryCode: z.ZodString;
|
|
4979
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4980
|
+
}, "strip", z.ZodTypeAny, {
|
|
4981
|
+
firstName: string;
|
|
4982
|
+
lastName: string;
|
|
4983
|
+
address1: string;
|
|
4984
|
+
city: string;
|
|
4985
|
+
countryCode: string;
|
|
4986
|
+
address2?: string | undefined;
|
|
4987
|
+
company?: string | undefined;
|
|
4988
|
+
province?: string | undefined;
|
|
4989
|
+
postalCode?: string | undefined;
|
|
4990
|
+
phone?: string | undefined;
|
|
4991
|
+
}, {
|
|
4992
|
+
firstName: string;
|
|
4993
|
+
lastName: string;
|
|
4994
|
+
address1: string;
|
|
4995
|
+
city: string;
|
|
4996
|
+
countryCode: string;
|
|
4997
|
+
address2?: string | undefined;
|
|
4998
|
+
company?: string | undefined;
|
|
4999
|
+
province?: string | undefined;
|
|
5000
|
+
postalCode?: string | undefined;
|
|
5001
|
+
phone?: string | undefined;
|
|
5002
|
+
}>>;
|
|
5003
|
+
sameAsShipping: z.ZodBoolean;
|
|
5004
|
+
shippingLocations: z.ZodOptional<z.ZodObject<{
|
|
5005
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
5006
|
+
value: z.ZodString;
|
|
5007
|
+
label: z.ZodString;
|
|
5008
|
+
}, "strip", z.ZodTypeAny, {
|
|
5009
|
+
label: string;
|
|
5010
|
+
value: string;
|
|
5011
|
+
}, {
|
|
5012
|
+
label: string;
|
|
5013
|
+
value: string;
|
|
5014
|
+
}>, "many">;
|
|
5015
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
5016
|
+
value: z.ZodString;
|
|
5017
|
+
label: z.ZodString;
|
|
5018
|
+
}, "strip", z.ZodTypeAny, {
|
|
5019
|
+
label: string;
|
|
5020
|
+
value: string;
|
|
5021
|
+
}, {
|
|
5022
|
+
label: string;
|
|
5023
|
+
value: string;
|
|
5024
|
+
}>, "many">;
|
|
5025
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
5026
|
+
value: z.ZodString;
|
|
5027
|
+
label: z.ZodString;
|
|
5028
|
+
}, "strip", z.ZodTypeAny, {
|
|
5029
|
+
label: string;
|
|
5030
|
+
value: string;
|
|
5031
|
+
}, {
|
|
5032
|
+
label: string;
|
|
5033
|
+
value: string;
|
|
5034
|
+
}>, "many">;
|
|
5035
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5036
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5037
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5038
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
5039
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
5040
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
5041
|
+
}, "strip", z.ZodTypeAny, {
|
|
5042
|
+
countries: {
|
|
5043
|
+
label: string;
|
|
5044
|
+
value: string;
|
|
5045
|
+
}[];
|
|
5046
|
+
provinces: {
|
|
5047
|
+
label: string;
|
|
5048
|
+
value: string;
|
|
5049
|
+
}[];
|
|
5050
|
+
cities: {
|
|
5051
|
+
label: string;
|
|
5052
|
+
value: string;
|
|
5053
|
+
}[];
|
|
5054
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5055
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5056
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5057
|
+
countriesError?: string | undefined;
|
|
5058
|
+
provincesError?: string | undefined;
|
|
5059
|
+
citiesError?: string | undefined;
|
|
5060
|
+
}, {
|
|
5061
|
+
countries: {
|
|
5062
|
+
label: string;
|
|
5063
|
+
value: string;
|
|
5064
|
+
}[];
|
|
5065
|
+
provinces: {
|
|
5066
|
+
label: string;
|
|
5067
|
+
value: string;
|
|
5068
|
+
}[];
|
|
5069
|
+
cities: {
|
|
5070
|
+
label: string;
|
|
5071
|
+
value: string;
|
|
5072
|
+
}[];
|
|
5073
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5074
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5075
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5076
|
+
countriesError?: string | undefined;
|
|
5077
|
+
provincesError?: string | undefined;
|
|
5078
|
+
citiesError?: string | undefined;
|
|
5079
|
+
}>>;
|
|
5080
|
+
billingLocations: z.ZodOptional<z.ZodObject<{
|
|
5081
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
5082
|
+
value: z.ZodString;
|
|
5083
|
+
label: z.ZodString;
|
|
5084
|
+
}, "strip", z.ZodTypeAny, {
|
|
5085
|
+
label: string;
|
|
5086
|
+
value: string;
|
|
5087
|
+
}, {
|
|
5088
|
+
label: string;
|
|
5089
|
+
value: string;
|
|
5090
|
+
}>, "many">;
|
|
5091
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
5092
|
+
value: z.ZodString;
|
|
5093
|
+
label: z.ZodString;
|
|
5094
|
+
}, "strip", z.ZodTypeAny, {
|
|
5095
|
+
label: string;
|
|
5096
|
+
value: string;
|
|
5097
|
+
}, {
|
|
5098
|
+
label: string;
|
|
5099
|
+
value: string;
|
|
5100
|
+
}>, "many">;
|
|
5101
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
5102
|
+
value: z.ZodString;
|
|
5103
|
+
label: z.ZodString;
|
|
5104
|
+
}, "strip", z.ZodTypeAny, {
|
|
5105
|
+
label: string;
|
|
5106
|
+
value: string;
|
|
5107
|
+
}, {
|
|
5108
|
+
label: string;
|
|
5109
|
+
value: string;
|
|
5110
|
+
}>, "many">;
|
|
5111
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5112
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5113
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5114
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
5115
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
5116
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
5117
|
+
}, "strip", z.ZodTypeAny, {
|
|
5118
|
+
countries: {
|
|
5119
|
+
label: string;
|
|
5120
|
+
value: string;
|
|
5121
|
+
}[];
|
|
5122
|
+
provinces: {
|
|
5123
|
+
label: string;
|
|
5124
|
+
value: string;
|
|
5125
|
+
}[];
|
|
5126
|
+
cities: {
|
|
5127
|
+
label: string;
|
|
5128
|
+
value: string;
|
|
5129
|
+
}[];
|
|
5130
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5131
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5132
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5133
|
+
countriesError?: string | undefined;
|
|
5134
|
+
provincesError?: string | undefined;
|
|
5135
|
+
citiesError?: string | undefined;
|
|
5136
|
+
}, {
|
|
5137
|
+
countries: {
|
|
5138
|
+
label: string;
|
|
5139
|
+
value: string;
|
|
5140
|
+
}[];
|
|
5141
|
+
provinces: {
|
|
5142
|
+
label: string;
|
|
5143
|
+
value: string;
|
|
5144
|
+
}[];
|
|
5145
|
+
cities: {
|
|
5146
|
+
label: string;
|
|
5147
|
+
value: string;
|
|
5148
|
+
}[];
|
|
5149
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5150
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5151
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5152
|
+
countriesError?: string | undefined;
|
|
5153
|
+
provincesError?: string | undefined;
|
|
5154
|
+
citiesError?: string | undefined;
|
|
5155
|
+
}>>;
|
|
5156
|
+
shippingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5157
|
+
id: z.ZodString;
|
|
5158
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5159
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5160
|
+
lineId: z.ZodString;
|
|
5161
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
5162
|
+
}, "strip", z.ZodTypeAny, {
|
|
5163
|
+
lineId: string;
|
|
5164
|
+
quantity?: number | undefined;
|
|
5165
|
+
}, {
|
|
5166
|
+
lineId: string;
|
|
5167
|
+
quantity?: number | undefined;
|
|
5168
|
+
}>, "many">>;
|
|
5169
|
+
itemCount: z.ZodOptional<z.ZodNumber>;
|
|
5170
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5171
|
+
id: z.ZodString;
|
|
5172
|
+
name: z.ZodString;
|
|
5173
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5174
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
5176
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
5177
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
5178
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5179
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
5180
|
+
}, "strip", z.ZodTypeAny, {
|
|
5181
|
+
id: string;
|
|
5182
|
+
name: string;
|
|
5183
|
+
disabled?: boolean | undefined;
|
|
5184
|
+
price?: Money | undefined;
|
|
5185
|
+
description?: string | undefined;
|
|
5186
|
+
estimatedDays?: string | undefined;
|
|
5187
|
+
pickup?: boolean | undefined;
|
|
5188
|
+
locationName?: string | undefined;
|
|
5189
|
+
disabledReason?: string | undefined;
|
|
5190
|
+
}, {
|
|
5191
|
+
id: string;
|
|
5192
|
+
name: string;
|
|
5193
|
+
disabled?: boolean | undefined;
|
|
5194
|
+
price?: Money | undefined;
|
|
5195
|
+
description?: string | undefined;
|
|
5196
|
+
estimatedDays?: string | undefined;
|
|
5197
|
+
pickup?: boolean | undefined;
|
|
5198
|
+
locationName?: string | undefined;
|
|
5199
|
+
disabledReason?: string | undefined;
|
|
5200
|
+
}>, "many">;
|
|
5201
|
+
selectedOptionId: z.ZodOptional<z.ZodString>;
|
|
5202
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
5203
|
+
}, "strip", z.ZodTypeAny, {
|
|
5204
|
+
id: string;
|
|
5205
|
+
options: {
|
|
5206
|
+
id: string;
|
|
5207
|
+
name: string;
|
|
5208
|
+
disabled?: boolean | undefined;
|
|
5209
|
+
price?: Money | undefined;
|
|
5210
|
+
description?: string | undefined;
|
|
5211
|
+
estimatedDays?: string | undefined;
|
|
5212
|
+
pickup?: boolean | undefined;
|
|
5213
|
+
locationName?: string | undefined;
|
|
5214
|
+
disabledReason?: string | undefined;
|
|
5215
|
+
}[];
|
|
5216
|
+
label?: string | undefined;
|
|
5217
|
+
items?: {
|
|
5218
|
+
lineId: string;
|
|
5219
|
+
quantity?: number | undefined;
|
|
5220
|
+
}[] | undefined;
|
|
5221
|
+
itemCount?: number | undefined;
|
|
5222
|
+
selectedOptionId?: string | undefined;
|
|
5223
|
+
unavailableReason?: string | undefined;
|
|
5224
|
+
}, {
|
|
5225
|
+
id: string;
|
|
5226
|
+
options: {
|
|
5227
|
+
id: string;
|
|
5228
|
+
name: string;
|
|
5229
|
+
disabled?: boolean | undefined;
|
|
5230
|
+
price?: Money | undefined;
|
|
5231
|
+
description?: string | undefined;
|
|
5232
|
+
estimatedDays?: string | undefined;
|
|
5233
|
+
pickup?: boolean | undefined;
|
|
5234
|
+
locationName?: string | undefined;
|
|
5235
|
+
disabledReason?: string | undefined;
|
|
5236
|
+
}[];
|
|
5237
|
+
label?: string | undefined;
|
|
5238
|
+
items?: {
|
|
5239
|
+
lineId: string;
|
|
5240
|
+
quantity?: number | undefined;
|
|
5241
|
+
}[] | undefined;
|
|
5242
|
+
itemCount?: number | undefined;
|
|
5243
|
+
selectedOptionId?: string | undefined;
|
|
5244
|
+
unavailableReason?: string | undefined;
|
|
5245
|
+
}>, "many">>;
|
|
5246
|
+
shippingState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5247
|
+
paymentMethods: z.ZodOptional<z.ZodArray<z.ZodType<PaymentMethod, z.ZodTypeDef, PaymentMethod>, "many">>;
|
|
5248
|
+
paymentState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5249
|
+
paymentMethod: z.ZodString;
|
|
5250
|
+
adjustmentPayments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5251
|
+
id: z.ZodString;
|
|
5252
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
5253
|
+
label: z.ZodString;
|
|
5254
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5255
|
+
}, "strip", z.ZodTypeAny, {
|
|
5256
|
+
label: string;
|
|
5257
|
+
id: string;
|
|
5258
|
+
amount: Money;
|
|
5259
|
+
kind: "gift-card" | "store-credit";
|
|
5260
|
+
}, {
|
|
5261
|
+
label: string;
|
|
5262
|
+
id: string;
|
|
5263
|
+
amount: Money;
|
|
5264
|
+
kind: "gift-card" | "store-credit";
|
|
5265
|
+
}>, "many">>;
|
|
5266
|
+
orderSummary: z.ZodOptional<z.ZodObject<{
|
|
5267
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5268
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5269
|
+
name: z.ZodString;
|
|
5270
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
5271
|
+
quantity: z.ZodNumber;
|
|
5272
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5273
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5274
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5275
|
+
}, "strip", z.ZodTypeAny, {
|
|
5276
|
+
id: string | number;
|
|
5277
|
+
name: string;
|
|
5278
|
+
quantity: number;
|
|
5279
|
+
variant?: string | undefined;
|
|
5280
|
+
image?: string | undefined;
|
|
5281
|
+
unitPrice?: Money | undefined;
|
|
5282
|
+
lineTotal?: Money | undefined;
|
|
5283
|
+
}, {
|
|
5284
|
+
id: string | number;
|
|
5285
|
+
name: string;
|
|
5286
|
+
quantity: number;
|
|
5287
|
+
variant?: string | undefined;
|
|
5288
|
+
image?: string | undefined;
|
|
5289
|
+
unitPrice?: Money | undefined;
|
|
5290
|
+
lineTotal?: Money | undefined;
|
|
5291
|
+
}>, "many">;
|
|
5292
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
5293
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5294
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5295
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5296
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5297
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5298
|
+
}, "strip", z.ZodTypeAny, {
|
|
5299
|
+
subtotal: Money;
|
|
5300
|
+
total: Money;
|
|
5301
|
+
shipping?: Money | undefined;
|
|
5302
|
+
discount?: Money | undefined;
|
|
5303
|
+
tax?: Money | undefined;
|
|
5304
|
+
}, {
|
|
5305
|
+
subtotal: Money;
|
|
5306
|
+
total: Money;
|
|
5307
|
+
shipping?: Money | undefined;
|
|
5308
|
+
discount?: Money | undefined;
|
|
5309
|
+
tax?: Money | undefined;
|
|
5310
|
+
}>>;
|
|
5311
|
+
}, "strip", z.ZodTypeAny, {
|
|
5312
|
+
items: {
|
|
5313
|
+
id: string | number;
|
|
5314
|
+
name: string;
|
|
5315
|
+
quantity: number;
|
|
5316
|
+
variant?: string | undefined;
|
|
5317
|
+
image?: string | undefined;
|
|
5318
|
+
unitPrice?: Money | undefined;
|
|
5319
|
+
lineTotal?: Money | undefined;
|
|
5320
|
+
}[];
|
|
5321
|
+
totals?: {
|
|
5322
|
+
subtotal: Money;
|
|
5323
|
+
total: Money;
|
|
5324
|
+
shipping?: Money | undefined;
|
|
5325
|
+
discount?: Money | undefined;
|
|
5326
|
+
tax?: Money | undefined;
|
|
5327
|
+
} | undefined;
|
|
5328
|
+
}, {
|
|
5329
|
+
items: {
|
|
5330
|
+
id: string | number;
|
|
5331
|
+
name: string;
|
|
5332
|
+
quantity: number;
|
|
5333
|
+
variant?: string | undefined;
|
|
5334
|
+
image?: string | undefined;
|
|
5335
|
+
unitPrice?: Money | undefined;
|
|
5336
|
+
lineTotal?: Money | undefined;
|
|
5337
|
+
}[];
|
|
5338
|
+
totals?: {
|
|
5339
|
+
subtotal: Money;
|
|
5340
|
+
total: Money;
|
|
5341
|
+
shipping?: Money | undefined;
|
|
5342
|
+
discount?: Money | undefined;
|
|
5343
|
+
tax?: Money | undefined;
|
|
5344
|
+
} | undefined;
|
|
5345
|
+
}>>;
|
|
5346
|
+
totalsState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error"]>>;
|
|
5347
|
+
promoCode: z.ZodOptional<z.ZodString>;
|
|
5348
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5349
|
+
fieldErrors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5350
|
+
fieldDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5351
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5352
|
+
status: z.ZodEnum<["available", "empty", "unavailable", "error"]>;
|
|
5353
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5354
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
5355
|
+
}, "strip", z.ZodTypeAny, {
|
|
5356
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5357
|
+
reason?: string | undefined;
|
|
5358
|
+
actionLabel?: string | undefined;
|
|
5359
|
+
}, {
|
|
5360
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5361
|
+
reason?: string | undefined;
|
|
5362
|
+
actionLabel?: string | undefined;
|
|
5363
|
+
}>>;
|
|
5364
|
+
interruption: z.ZodOptional<z.ZodObject<{
|
|
5365
|
+
kind: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
5366
|
+
severity: z.ZodEnum<["info", "blocking"]>;
|
|
5367
|
+
title: z.ZodString;
|
|
5368
|
+
message: z.ZodString;
|
|
5369
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5370
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
5371
|
+
label: z.ZodString;
|
|
5372
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
5373
|
+
next: z.ZodOptional<z.ZodString>;
|
|
5374
|
+
}, "strip", z.ZodTypeAny, {
|
|
5375
|
+
label: string;
|
|
5376
|
+
next?: string | undefined;
|
|
5377
|
+
previous?: string | undefined;
|
|
5378
|
+
lineId?: string | undefined;
|
|
5379
|
+
}, {
|
|
5380
|
+
label: string;
|
|
5381
|
+
next?: string | undefined;
|
|
5382
|
+
previous?: string | undefined;
|
|
5383
|
+
lineId?: string | undefined;
|
|
5384
|
+
}>, "many">>;
|
|
5385
|
+
actions: z.ZodArray<z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>, "many">;
|
|
5386
|
+
}, "strip", z.ZodTypeAny, {
|
|
5387
|
+
title: string;
|
|
5388
|
+
message: string;
|
|
5389
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5390
|
+
severity: "info" | "blocking";
|
|
5391
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5392
|
+
changes?: {
|
|
5393
|
+
label: string;
|
|
5394
|
+
next?: string | undefined;
|
|
5395
|
+
previous?: string | undefined;
|
|
5396
|
+
lineId?: string | undefined;
|
|
5397
|
+
}[] | undefined;
|
|
5398
|
+
}, {
|
|
5399
|
+
title: string;
|
|
5400
|
+
message: string;
|
|
5401
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5402
|
+
severity: "info" | "blocking";
|
|
5403
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5404
|
+
changes?: {
|
|
5405
|
+
label: string;
|
|
5406
|
+
next?: string | undefined;
|
|
5407
|
+
previous?: string | undefined;
|
|
5408
|
+
lineId?: string | undefined;
|
|
5409
|
+
}[] | undefined;
|
|
5410
|
+
}>>;
|
|
5411
|
+
submitting: z.ZodOptional<z.ZodBoolean>;
|
|
5412
|
+
submitError: z.ZodOptional<z.ZodString>;
|
|
5413
|
+
}, "strip", z.ZodTypeAny, {
|
|
5414
|
+
presentation: "single-page" | "stepper";
|
|
5415
|
+
contact: {
|
|
5416
|
+
email: string;
|
|
5417
|
+
firstName: string;
|
|
5418
|
+
lastName: string;
|
|
5419
|
+
phone: string;
|
|
5420
|
+
};
|
|
5421
|
+
shippingAddress: {
|
|
5422
|
+
firstName: string;
|
|
5423
|
+
lastName: string;
|
|
5424
|
+
address1: string;
|
|
5425
|
+
city: string;
|
|
5426
|
+
countryCode: string;
|
|
5427
|
+
address2?: string | undefined;
|
|
5428
|
+
company?: string | undefined;
|
|
5429
|
+
province?: string | undefined;
|
|
5430
|
+
postalCode?: string | undefined;
|
|
5431
|
+
phone?: string | undefined;
|
|
5432
|
+
};
|
|
5433
|
+
sameAsShipping: boolean;
|
|
5434
|
+
paymentMethod: string;
|
|
5435
|
+
labels?: Record<string, string> | undefined;
|
|
5436
|
+
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5437
|
+
billingAddress?: {
|
|
5438
|
+
firstName: string;
|
|
5439
|
+
lastName: string;
|
|
5440
|
+
address1: string;
|
|
5441
|
+
city: string;
|
|
5442
|
+
countryCode: string;
|
|
5443
|
+
address2?: string | undefined;
|
|
5444
|
+
company?: string | undefined;
|
|
5445
|
+
province?: string | undefined;
|
|
5446
|
+
postalCode?: string | undefined;
|
|
5447
|
+
phone?: string | undefined;
|
|
5448
|
+
} | undefined;
|
|
5449
|
+
adjustmentPayments?: {
|
|
5450
|
+
label: string;
|
|
5451
|
+
id: string;
|
|
5452
|
+
amount: Money;
|
|
5453
|
+
kind: "gift-card" | "store-credit";
|
|
5454
|
+
}[] | undefined;
|
|
5455
|
+
promoCode?: string | undefined;
|
|
5456
|
+
showReviewStep?: boolean | undefined;
|
|
5457
|
+
customer?: {
|
|
5458
|
+
id: string;
|
|
5459
|
+
email: string;
|
|
5460
|
+
firstName?: string | undefined;
|
|
5461
|
+
lastName?: string | undefined;
|
|
5462
|
+
} | null | undefined;
|
|
5463
|
+
savedAddresses?: {
|
|
5464
|
+
address: {
|
|
5465
|
+
firstName: string;
|
|
5466
|
+
lastName: string;
|
|
5467
|
+
address1: string;
|
|
5468
|
+
city: string;
|
|
5469
|
+
countryCode: string;
|
|
5470
|
+
address2?: string | undefined;
|
|
5471
|
+
company?: string | undefined;
|
|
5472
|
+
province?: string | undefined;
|
|
5473
|
+
postalCode?: string | undefined;
|
|
5474
|
+
phone?: string | undefined;
|
|
5475
|
+
};
|
|
5476
|
+
id: string;
|
|
5477
|
+
label?: string | undefined;
|
|
5478
|
+
isDefaultShipping?: boolean | undefined;
|
|
5479
|
+
isDefaultBilling?: boolean | undefined;
|
|
5480
|
+
}[] | undefined;
|
|
5481
|
+
savedAddressState?: {
|
|
5482
|
+
error?: {
|
|
5483
|
+
message: string;
|
|
5484
|
+
id?: string | undefined;
|
|
5485
|
+
} | undefined;
|
|
5486
|
+
pendingId?: string | undefined;
|
|
5487
|
+
lastSavedId?: string | undefined;
|
|
5488
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
5489
|
+
} | undefined;
|
|
5490
|
+
shippingLocations?: {
|
|
5491
|
+
countries: {
|
|
5492
|
+
label: string;
|
|
5493
|
+
value: string;
|
|
5494
|
+
}[];
|
|
5495
|
+
provinces: {
|
|
5496
|
+
label: string;
|
|
5497
|
+
value: string;
|
|
5498
|
+
}[];
|
|
5499
|
+
cities: {
|
|
5500
|
+
label: string;
|
|
5501
|
+
value: string;
|
|
5502
|
+
}[];
|
|
5503
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5504
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5505
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5506
|
+
countriesError?: string | undefined;
|
|
5507
|
+
provincesError?: string | undefined;
|
|
5508
|
+
citiesError?: string | undefined;
|
|
5509
|
+
} | undefined;
|
|
5510
|
+
billingLocations?: {
|
|
5511
|
+
countries: {
|
|
5512
|
+
label: string;
|
|
5513
|
+
value: string;
|
|
5514
|
+
}[];
|
|
5515
|
+
provinces: {
|
|
5516
|
+
label: string;
|
|
5517
|
+
value: string;
|
|
5518
|
+
}[];
|
|
5519
|
+
cities: {
|
|
5520
|
+
label: string;
|
|
5521
|
+
value: string;
|
|
5522
|
+
}[];
|
|
5523
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5524
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5525
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5526
|
+
countriesError?: string | undefined;
|
|
5527
|
+
provincesError?: string | undefined;
|
|
5528
|
+
citiesError?: string | undefined;
|
|
5529
|
+
} | undefined;
|
|
5530
|
+
shippingGroups?: {
|
|
5531
|
+
id: string;
|
|
5532
|
+
options: {
|
|
5533
|
+
id: string;
|
|
5534
|
+
name: string;
|
|
5535
|
+
disabled?: boolean | undefined;
|
|
5536
|
+
price?: Money | undefined;
|
|
5537
|
+
description?: string | undefined;
|
|
5538
|
+
estimatedDays?: string | undefined;
|
|
5539
|
+
pickup?: boolean | undefined;
|
|
5540
|
+
locationName?: string | undefined;
|
|
5541
|
+
disabledReason?: string | undefined;
|
|
5542
|
+
}[];
|
|
5543
|
+
label?: string | undefined;
|
|
5544
|
+
items?: {
|
|
5545
|
+
lineId: string;
|
|
5546
|
+
quantity?: number | undefined;
|
|
5547
|
+
}[] | undefined;
|
|
5548
|
+
itemCount?: number | undefined;
|
|
5549
|
+
selectedOptionId?: string | undefined;
|
|
5550
|
+
unavailableReason?: string | undefined;
|
|
5551
|
+
}[] | undefined;
|
|
5552
|
+
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5553
|
+
paymentMethods?: PaymentMethod[] | undefined;
|
|
5554
|
+
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5555
|
+
orderSummary?: {
|
|
5556
|
+
items: {
|
|
5557
|
+
id: string | number;
|
|
5558
|
+
name: string;
|
|
5559
|
+
quantity: number;
|
|
5560
|
+
variant?: string | undefined;
|
|
5561
|
+
image?: string | undefined;
|
|
5562
|
+
unitPrice?: Money | undefined;
|
|
5563
|
+
lineTotal?: Money | undefined;
|
|
5564
|
+
}[];
|
|
5565
|
+
totals?: {
|
|
5566
|
+
subtotal: Money;
|
|
5567
|
+
total: Money;
|
|
5568
|
+
shipping?: Money | undefined;
|
|
5569
|
+
discount?: Money | undefined;
|
|
5570
|
+
tax?: Money | undefined;
|
|
5571
|
+
} | undefined;
|
|
5572
|
+
} | undefined;
|
|
5573
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5574
|
+
fieldDescriptions?: Record<string, string> | undefined;
|
|
5575
|
+
availability?: {
|
|
5576
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5577
|
+
reason?: string | undefined;
|
|
5578
|
+
actionLabel?: string | undefined;
|
|
5579
|
+
} | undefined;
|
|
5580
|
+
interruption?: {
|
|
5581
|
+
title: string;
|
|
5582
|
+
message: string;
|
|
5583
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5584
|
+
severity: "info" | "blocking";
|
|
5585
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5586
|
+
changes?: {
|
|
5587
|
+
label: string;
|
|
5588
|
+
next?: string | undefined;
|
|
5589
|
+
previous?: string | undefined;
|
|
5590
|
+
lineId?: string | undefined;
|
|
5591
|
+
}[] | undefined;
|
|
5592
|
+
} | undefined;
|
|
5593
|
+
submitting?: boolean | undefined;
|
|
5594
|
+
submitError?: string | undefined;
|
|
5595
|
+
}, {
|
|
5596
|
+
presentation: "single-page" | "stepper";
|
|
5597
|
+
contact: {
|
|
5598
|
+
email: string;
|
|
5599
|
+
firstName: string;
|
|
5600
|
+
lastName: string;
|
|
5601
|
+
phone: string;
|
|
5602
|
+
};
|
|
5603
|
+
shippingAddress: {
|
|
5604
|
+
firstName: string;
|
|
5605
|
+
lastName: string;
|
|
5606
|
+
address1: string;
|
|
5607
|
+
city: string;
|
|
5608
|
+
countryCode: string;
|
|
5609
|
+
address2?: string | undefined;
|
|
5610
|
+
company?: string | undefined;
|
|
5611
|
+
province?: string | undefined;
|
|
5612
|
+
postalCode?: string | undefined;
|
|
5613
|
+
phone?: string | undefined;
|
|
5614
|
+
};
|
|
5615
|
+
sameAsShipping: boolean;
|
|
5616
|
+
paymentMethod: string;
|
|
5617
|
+
labels?: Record<string, string> | undefined;
|
|
5618
|
+
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5619
|
+
billingAddress?: {
|
|
5620
|
+
firstName: string;
|
|
5621
|
+
lastName: string;
|
|
5622
|
+
address1: string;
|
|
5623
|
+
city: string;
|
|
5624
|
+
countryCode: string;
|
|
5625
|
+
address2?: string | undefined;
|
|
5626
|
+
company?: string | undefined;
|
|
5627
|
+
province?: string | undefined;
|
|
5628
|
+
postalCode?: string | undefined;
|
|
5629
|
+
phone?: string | undefined;
|
|
5630
|
+
} | undefined;
|
|
5631
|
+
adjustmentPayments?: {
|
|
5632
|
+
label: string;
|
|
5633
|
+
id: string;
|
|
5634
|
+
amount: Money;
|
|
5635
|
+
kind: "gift-card" | "store-credit";
|
|
5636
|
+
}[] | undefined;
|
|
5637
|
+
promoCode?: string | undefined;
|
|
5638
|
+
showReviewStep?: boolean | undefined;
|
|
5639
|
+
customer?: {
|
|
5640
|
+
id: string;
|
|
5641
|
+
email: string;
|
|
5642
|
+
firstName?: string | undefined;
|
|
5643
|
+
lastName?: string | undefined;
|
|
5644
|
+
} | null | undefined;
|
|
5645
|
+
savedAddresses?: {
|
|
5646
|
+
address: {
|
|
5647
|
+
firstName: string;
|
|
5648
|
+
lastName: string;
|
|
5649
|
+
address1: string;
|
|
5650
|
+
city: string;
|
|
5651
|
+
countryCode: string;
|
|
5652
|
+
address2?: string | undefined;
|
|
5653
|
+
company?: string | undefined;
|
|
5654
|
+
province?: string | undefined;
|
|
5655
|
+
postalCode?: string | undefined;
|
|
5656
|
+
phone?: string | undefined;
|
|
5657
|
+
};
|
|
5658
|
+
id: string;
|
|
5659
|
+
label?: string | undefined;
|
|
5660
|
+
isDefaultShipping?: boolean | undefined;
|
|
5661
|
+
isDefaultBilling?: boolean | undefined;
|
|
5662
|
+
}[] | undefined;
|
|
5663
|
+
savedAddressState?: {
|
|
5664
|
+
error?: {
|
|
5665
|
+
message: string;
|
|
5666
|
+
id?: string | undefined;
|
|
5667
|
+
} | undefined;
|
|
5668
|
+
pendingId?: string | undefined;
|
|
5669
|
+
lastSavedId?: string | undefined;
|
|
5670
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
5671
|
+
} | undefined;
|
|
5672
|
+
shippingLocations?: {
|
|
5673
|
+
countries: {
|
|
5674
|
+
label: string;
|
|
5675
|
+
value: string;
|
|
5676
|
+
}[];
|
|
5677
|
+
provinces: {
|
|
5678
|
+
label: string;
|
|
5679
|
+
value: string;
|
|
5680
|
+
}[];
|
|
5681
|
+
cities: {
|
|
5682
|
+
label: string;
|
|
5683
|
+
value: string;
|
|
5684
|
+
}[];
|
|
5685
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5686
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5687
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5688
|
+
countriesError?: string | undefined;
|
|
5689
|
+
provincesError?: string | undefined;
|
|
5690
|
+
citiesError?: string | undefined;
|
|
5691
|
+
} | undefined;
|
|
5692
|
+
billingLocations?: {
|
|
5693
|
+
countries: {
|
|
5694
|
+
label: string;
|
|
5695
|
+
value: string;
|
|
5696
|
+
}[];
|
|
5697
|
+
provinces: {
|
|
5698
|
+
label: string;
|
|
5699
|
+
value: string;
|
|
5700
|
+
}[];
|
|
5701
|
+
cities: {
|
|
5702
|
+
label: string;
|
|
5703
|
+
value: string;
|
|
5704
|
+
}[];
|
|
5705
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5706
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5707
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5708
|
+
countriesError?: string | undefined;
|
|
5709
|
+
provincesError?: string | undefined;
|
|
5710
|
+
citiesError?: string | undefined;
|
|
5711
|
+
} | undefined;
|
|
5712
|
+
shippingGroups?: {
|
|
5713
|
+
id: string;
|
|
5714
|
+
options: {
|
|
5715
|
+
id: string;
|
|
5716
|
+
name: string;
|
|
5717
|
+
disabled?: boolean | undefined;
|
|
5718
|
+
price?: Money | undefined;
|
|
5719
|
+
description?: string | undefined;
|
|
5720
|
+
estimatedDays?: string | undefined;
|
|
5721
|
+
pickup?: boolean | undefined;
|
|
5722
|
+
locationName?: string | undefined;
|
|
5723
|
+
disabledReason?: string | undefined;
|
|
5724
|
+
}[];
|
|
5725
|
+
label?: string | undefined;
|
|
5726
|
+
items?: {
|
|
5727
|
+
lineId: string;
|
|
5728
|
+
quantity?: number | undefined;
|
|
5729
|
+
}[] | undefined;
|
|
5730
|
+
itemCount?: number | undefined;
|
|
5731
|
+
selectedOptionId?: string | undefined;
|
|
5732
|
+
unavailableReason?: string | undefined;
|
|
5733
|
+
}[] | undefined;
|
|
5734
|
+
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5735
|
+
paymentMethods?: PaymentMethod[] | undefined;
|
|
5736
|
+
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5737
|
+
orderSummary?: {
|
|
5738
|
+
items: {
|
|
5739
|
+
id: string | number;
|
|
5740
|
+
name: string;
|
|
5741
|
+
quantity: number;
|
|
5742
|
+
variant?: string | undefined;
|
|
5743
|
+
image?: string | undefined;
|
|
5744
|
+
unitPrice?: Money | undefined;
|
|
5745
|
+
lineTotal?: Money | undefined;
|
|
5746
|
+
}[];
|
|
5747
|
+
totals?: {
|
|
5748
|
+
subtotal: Money;
|
|
5749
|
+
total: Money;
|
|
5750
|
+
shipping?: Money | undefined;
|
|
5751
|
+
discount?: Money | undefined;
|
|
5752
|
+
tax?: Money | undefined;
|
|
5753
|
+
} | undefined;
|
|
5754
|
+
} | undefined;
|
|
5755
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5756
|
+
fieldDescriptions?: Record<string, string> | undefined;
|
|
5757
|
+
availability?: {
|
|
5758
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5759
|
+
reason?: string | undefined;
|
|
5760
|
+
actionLabel?: string | undefined;
|
|
5761
|
+
} | undefined;
|
|
5762
|
+
interruption?: {
|
|
5763
|
+
title: string;
|
|
5764
|
+
message: string;
|
|
5765
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5766
|
+
severity: "info" | "blocking";
|
|
5767
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5768
|
+
changes?: {
|
|
5769
|
+
label: string;
|
|
5770
|
+
next?: string | undefined;
|
|
5771
|
+
previous?: string | undefined;
|
|
5772
|
+
lineId?: string | undefined;
|
|
5773
|
+
}[] | undefined;
|
|
5774
|
+
} | undefined;
|
|
5775
|
+
submitting?: boolean | undefined;
|
|
5776
|
+
submitError?: string | undefined;
|
|
5777
|
+
}>;
|
|
4006
5778
|
export { isCompleteFiniteDecimal, isAvailableMoney, formatMoney } from './money';
|
|
4007
5779
|
export { resolveAbsoluteQuantity } from './cart';
|
|
5780
|
+
export * from './contracts/marketplace-product-card';
|
|
4008
5781
|
//# sourceMappingURL=contracts.d.ts.map
|