@thorprovider/blocks 3.0.2 → 4.1.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/checkout-commerce-v1/block.d.ts +49 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.js +2487 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.mjs +2467 -0
- package/dist/blocks/designs/checkout-commerce-v1/block.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.d.ts +8 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.js +44 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.mjs +19 -0
- package/dist/blocks/designs/checkout-commerce-v1/data-context.mjs.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.d.ts +3 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.d.ts.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.js +36 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.js.map +1 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.mjs +6 -0
- package/dist/blocks/designs/checkout-commerce-v1/index.mjs.map +1 -0
- 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/account/account-frame.d.ts +38 -0
- package/dist/blocks/e-commerce/account/account-frame.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/account-frame.js +102 -0
- package/dist/blocks/e-commerce/account/account-frame.js.map +1 -0
- package/dist/blocks/e-commerce/account/account-frame.mjs +78 -0
- package/dist/blocks/e-commerce/account/account-frame.mjs.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.d.ts +79 -0
- package/dist/blocks/e-commerce/account/address-book.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.js +250 -0
- package/dist/blocks/e-commerce/account/address-book.js.map +1 -0
- package/dist/blocks/e-commerce/account/address-book.mjs +225 -0
- package/dist/blocks/e-commerce/account/address-book.mjs.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.d.ts +35 -0
- package/dist/blocks/e-commerce/account/profile-form.d.ts.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.js +100 -0
- package/dist/blocks/e-commerce/account/profile-form.js.map +1 -0
- package/dist/blocks/e-commerce/account/profile-form.mjs +76 -0
- package/dist/blocks/e-commerce/account/profile-form.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 +16 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -0
- package/dist/index.mjs.map +1 -1
- package/dist/lib/contracts/checkout-commerce-v1.d.ts +2350 -0
- package/dist/lib/contracts/checkout-commerce-v1.d.ts.map +1 -0
- package/dist/lib/contracts/checkout-commerce-v1.js +417 -0
- package/dist/lib/contracts/checkout-commerce-v1.js.map +1 -0
- package/dist/lib/contracts/checkout-commerce-v1.mjs +392 -0
- package/dist/lib/contracts/checkout-commerce-v1.mjs.map +1 -0
- 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 +2289 -178
- package/dist/lib/contracts.d.ts.map +1 -1
- package/dist/lib/contracts.js +332 -25
- package/dist/lib/contracts.js.map +1 -1
- package/dist/lib/contracts.mjs +278 -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,8 +695,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
701
695
|
value: number;
|
|
702
696
|
count: number;
|
|
703
697
|
} | undefined;
|
|
704
|
-
|
|
698
|
+
shippingLabel?: string | undefined;
|
|
705
699
|
quantity?: number | undefined;
|
|
700
|
+
selectedVariantId?: string | null | undefined;
|
|
706
701
|
deliveryEstimate?: string | undefined;
|
|
707
702
|
shipping?: Money | undefined;
|
|
708
703
|
specifications?: Record<string, 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,8 +786,9 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
792
786
|
value: number;
|
|
793
787
|
count: number;
|
|
794
788
|
} | undefined;
|
|
795
|
-
|
|
789
|
+
shippingLabel?: string | undefined;
|
|
796
790
|
quantity?: number | undefined;
|
|
791
|
+
selectedVariantId?: string | null | undefined;
|
|
797
792
|
deliveryEstimate?: string | undefined;
|
|
798
793
|
shipping?: Money | undefined;
|
|
799
794
|
specifications?: Record<string, 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;
|
|
@@ -898,15 +892,15 @@ export declare const cartTotalsSchema: z.ZodObject<{
|
|
|
898
892
|
}, "strip", z.ZodTypeAny, {
|
|
899
893
|
subtotal: Money;
|
|
900
894
|
total: Money;
|
|
901
|
-
shipping?: Money | undefined;
|
|
902
895
|
discount?: Money | undefined;
|
|
903
896
|
tax?: Money | undefined;
|
|
897
|
+
shipping?: Money | undefined;
|
|
904
898
|
}, {
|
|
905
899
|
subtotal: Money;
|
|
906
900
|
total: Money;
|
|
907
|
-
shipping?: Money | undefined;
|
|
908
901
|
discount?: Money | undefined;
|
|
909
902
|
tax?: Money | undefined;
|
|
903
|
+
shipping?: Money | undefined;
|
|
910
904
|
}>;
|
|
911
905
|
export type CartTotals = z.infer<typeof cartTotalsSchema>;
|
|
912
906
|
export declare const recentlyViewedItemSchema: z.ZodObject<{
|
|
@@ -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;
|
|
@@ -1490,15 +1484,15 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1490
1484
|
}, "strip", z.ZodTypeAny, {
|
|
1491
1485
|
subtotal: Money;
|
|
1492
1486
|
total: Money;
|
|
1493
|
-
shipping?: Money | undefined;
|
|
1494
1487
|
discount?: Money | undefined;
|
|
1495
1488
|
tax?: Money | undefined;
|
|
1489
|
+
shipping?: Money | undefined;
|
|
1496
1490
|
}, {
|
|
1497
1491
|
subtotal: Money;
|
|
1498
1492
|
total: Money;
|
|
1499
|
-
shipping?: Money | undefined;
|
|
1500
1493
|
discount?: Money | undefined;
|
|
1501
1494
|
tax?: Money | undefined;
|
|
1495
|
+
shipping?: Money | undefined;
|
|
1502
1496
|
}>>;
|
|
1503
1497
|
totalsState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error"]>>;
|
|
1504
1498
|
totalsErrorLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1552,6 +1546,7 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1552
1546
|
presentation?: "page" | "compact" | undefined;
|
|
1553
1547
|
retryLabel?: string | undefined;
|
|
1554
1548
|
shippingLabel?: string | undefined;
|
|
1549
|
+
discountLabel?: string | undefined;
|
|
1555
1550
|
emptyLabel?: string | undefined;
|
|
1556
1551
|
recentlyViewed?: {
|
|
1557
1552
|
id: string;
|
|
@@ -1562,9 +1557,9 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1562
1557
|
totals?: {
|
|
1563
1558
|
subtotal: Money;
|
|
1564
1559
|
total: Money;
|
|
1565
|
-
shipping?: Money | undefined;
|
|
1566
1560
|
discount?: Money | undefined;
|
|
1567
1561
|
tax?: Money | undefined;
|
|
1562
|
+
shipping?: Money | undefined;
|
|
1568
1563
|
} | undefined;
|
|
1569
1564
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
1570
1565
|
totalsErrorLabel?: string | undefined;
|
|
@@ -1572,7 +1567,6 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1572
1567
|
amountUnavailableLabel?: string | undefined;
|
|
1573
1568
|
titleLabel?: string | undefined;
|
|
1574
1569
|
subtotalLabel?: string | undefined;
|
|
1575
|
-
discountLabel?: string | undefined;
|
|
1576
1570
|
taxLabel?: string | undefined;
|
|
1577
1571
|
shippingFreeLabel?: string | undefined;
|
|
1578
1572
|
totalLabel?: string | undefined;
|
|
@@ -1610,12 +1604,13 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1610
1604
|
presentation?: "page" | "compact" | undefined;
|
|
1611
1605
|
retryLabel?: string | undefined;
|
|
1612
1606
|
shippingLabel?: string | undefined;
|
|
1613
|
-
|
|
1607
|
+
discountLabel?: string | undefined;
|
|
1614
1608
|
promotions?: {
|
|
1615
1609
|
threshold: number;
|
|
1616
1610
|
reward: string;
|
|
1617
1611
|
icon?: string | undefined;
|
|
1618
1612
|
}[] | undefined;
|
|
1613
|
+
emptyLabel?: string | undefined;
|
|
1619
1614
|
recentlyViewed?: {
|
|
1620
1615
|
id: string;
|
|
1621
1616
|
name: string;
|
|
@@ -1625,9 +1620,9 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1625
1620
|
totals?: {
|
|
1626
1621
|
subtotal: Money;
|
|
1627
1622
|
total: Money;
|
|
1628
|
-
shipping?: Money | undefined;
|
|
1629
1623
|
discount?: Money | undefined;
|
|
1630
1624
|
tax?: Money | undefined;
|
|
1625
|
+
shipping?: Money | undefined;
|
|
1631
1626
|
} | undefined;
|
|
1632
1627
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
1633
1628
|
totalsErrorLabel?: string | undefined;
|
|
@@ -1635,7 +1630,6 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1635
1630
|
amountUnavailableLabel?: string | undefined;
|
|
1636
1631
|
titleLabel?: string | undefined;
|
|
1637
1632
|
subtotalLabel?: string | undefined;
|
|
1638
|
-
discountLabel?: string | undefined;
|
|
1639
1633
|
taxLabel?: string | undefined;
|
|
1640
1634
|
shippingFreeLabel?: string | undefined;
|
|
1641
1635
|
totalLabel?: string | undefined;
|
|
@@ -1999,7 +1993,6 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
1999
1993
|
}, "strip", z.ZodTypeAny, {
|
|
2000
1994
|
label: string;
|
|
2001
1995
|
href?: string | undefined;
|
|
2002
|
-
emphasis?: boolean | undefined;
|
|
2003
1996
|
groups?: {
|
|
2004
1997
|
items: {
|
|
2005
1998
|
label: string;
|
|
@@ -2009,10 +2002,10 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
2009
2002
|
}[];
|
|
2010
2003
|
title?: string | undefined;
|
|
2011
2004
|
}[] | undefined;
|
|
2005
|
+
emphasis?: boolean | undefined;
|
|
2012
2006
|
}, {
|
|
2013
2007
|
label: string;
|
|
2014
2008
|
href?: string | undefined;
|
|
2015
|
-
emphasis?: boolean | undefined;
|
|
2016
2009
|
groups?: {
|
|
2017
2010
|
items: {
|
|
2018
2011
|
label: string;
|
|
@@ -2022,6 +2015,7 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
2022
2015
|
}[];
|
|
2023
2016
|
title?: string | undefined;
|
|
2024
2017
|
}[] | undefined;
|
|
2018
|
+
emphasis?: boolean | undefined;
|
|
2025
2019
|
}>;
|
|
2026
2020
|
export type NavbarLinkSpec = z.infer<typeof navbarLinkSchema>;
|
|
2027
2021
|
export declare const navbarFeaturedSchema: z.ZodObject<{
|
|
@@ -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>;
|
|
@@ -2103,7 +2097,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2103
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2104
2098
|
label: string;
|
|
2105
2099
|
href?: string | undefined;
|
|
2106
|
-
emphasis?: boolean | undefined;
|
|
2107
2100
|
groups?: {
|
|
2108
2101
|
items: {
|
|
2109
2102
|
label: string;
|
|
@@ -2113,10 +2106,10 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2113
2106
|
}[];
|
|
2114
2107
|
title?: string | undefined;
|
|
2115
2108
|
}[] | undefined;
|
|
2109
|
+
emphasis?: boolean | undefined;
|
|
2116
2110
|
}, {
|
|
2117
2111
|
label: string;
|
|
2118
2112
|
href?: string | undefined;
|
|
2119
|
-
emphasis?: boolean | undefined;
|
|
2120
2113
|
groups?: {
|
|
2121
2114
|
items: {
|
|
2122
2115
|
label: string;
|
|
@@ -2126,6 +2119,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2126
2119
|
}[];
|
|
2127
2120
|
title?: string | undefined;
|
|
2128
2121
|
}[] | undefined;
|
|
2122
|
+
emphasis?: boolean | undefined;
|
|
2129
2123
|
}>, "many">;
|
|
2130
2124
|
featured: z.ZodOptional<z.ZodObject<{
|
|
2131
2125
|
eyebrow: z.ZodString;
|
|
@@ -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<{
|
|
@@ -2178,7 +2172,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2178
2172
|
links: {
|
|
2179
2173
|
label: string;
|
|
2180
2174
|
href?: string | undefined;
|
|
2181
|
-
emphasis?: boolean | undefined;
|
|
2182
2175
|
groups?: {
|
|
2183
2176
|
items: {
|
|
2184
2177
|
label: string;
|
|
@@ -2188,6 +2181,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2188
2181
|
}[];
|
|
2189
2182
|
title?: string | undefined;
|
|
2190
2183
|
}[] | undefined;
|
|
2184
|
+
emphasis?: boolean | undefined;
|
|
2191
2185
|
}[];
|
|
2192
2186
|
logoText: string;
|
|
2193
2187
|
className?: string | undefined;
|
|
@@ -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;
|
|
@@ -2215,7 +2209,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2215
2209
|
links: {
|
|
2216
2210
|
label: string;
|
|
2217
2211
|
href?: string | undefined;
|
|
2218
|
-
emphasis?: boolean | undefined;
|
|
2219
2212
|
groups?: {
|
|
2220
2213
|
items: {
|
|
2221
2214
|
label: string;
|
|
@@ -2225,6 +2218,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2225
2218
|
}[];
|
|
2226
2219
|
title?: string | undefined;
|
|
2227
2220
|
}[] | undefined;
|
|
2221
|
+
emphasis?: boolean | undefined;
|
|
2228
2222
|
}[];
|
|
2229
2223
|
logoText: string;
|
|
2230
2224
|
className?: 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;
|
|
@@ -3768,87 +3762,424 @@ export declare const orderLinePropsSchema: z.ZodObject<{
|
|
|
3768
3762
|
amountUnavailableLabel?: string | undefined;
|
|
3769
3763
|
}>;
|
|
3770
3764
|
export type OrderLineSpecProps = z.infer<typeof orderLinePropsSchema>;
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
* `ReviewSummary` is the aggregate unit, `ReviewList` the collection section,
|
|
3775
|
-
* `ReviewCard` its item cell, and `ReviewComposer` the controlled form. The
|
|
3776
|
-
* aggregate fields are required here for the same reason they are required in
|
|
3777
|
-
* the component: an absent average must stop a host from rendering a summary,
|
|
3778
|
-
* not become a zero. Callbacks and `resetSignal` are runtime props and are
|
|
3779
|
-
* excluded, as in the cart and order-history contracts.
|
|
3780
|
-
*/
|
|
3781
|
-
export declare const reviewRatingValueSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
3782
|
-
export type ReviewRatingValueSpec = z.infer<typeof reviewRatingValueSchema>;
|
|
3783
|
-
export declare const reviewDistributionSchema: z.ZodObject<{
|
|
3784
|
-
/** Every rating value is required; a partial distribution is rejected. */
|
|
3785
|
-
1: z.ZodNumber;
|
|
3786
|
-
2: z.ZodNumber;
|
|
3787
|
-
3: z.ZodNumber;
|
|
3788
|
-
4: z.ZodNumber;
|
|
3789
|
-
5: z.ZodNumber;
|
|
3790
|
-
}, "strip", z.ZodTypeAny, {
|
|
3791
|
-
1: number;
|
|
3792
|
-
2: number;
|
|
3793
|
-
3: number;
|
|
3794
|
-
4: number;
|
|
3795
|
-
5: number;
|
|
3796
|
-
}, {
|
|
3797
|
-
1: number;
|
|
3798
|
-
2: number;
|
|
3799
|
-
3: number;
|
|
3800
|
-
4: number;
|
|
3801
|
-
5: number;
|
|
3802
|
-
}>;
|
|
3803
|
-
export type ReviewDistributionSpec = z.infer<typeof reviewDistributionSchema>;
|
|
3804
|
-
export declare const reviewItemSchema: z.ZodObject<{
|
|
3805
|
-
/** Backend review identity; the React key and the action argument. */
|
|
3765
|
+
export declare const accountFramePresentationSchema: z.ZodEnum<["stack", "tabs"]>;
|
|
3766
|
+
export type AccountFramePresentationSpec = z.infer<typeof accountFramePresentationSchema>;
|
|
3767
|
+
export declare const accountModuleSpecSchema: z.ZodObject<{
|
|
3806
3768
|
id: z.ZodString;
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
avatar: z.ZodOptional<z.ZodString>;
|
|
3810
|
-
/** Host-formatted display date, rendered verbatim. */
|
|
3811
|
-
date: z.ZodString;
|
|
3812
|
-
/** Optional machine-readable value; the cell emits it only when it parses. */
|
|
3813
|
-
dateTime: z.ZodOptional<z.ZodString>;
|
|
3814
|
-
rating: z.ZodNumber;
|
|
3815
|
-
content: z.ZodString;
|
|
3816
|
-
/** Host-authoritative count; absent means unknown, never zero. */
|
|
3817
|
-
helpfulCount: z.ZodOptional<z.ZodNumber>;
|
|
3818
|
-
likedByViewer: z.ZodOptional<z.ZodBoolean>;
|
|
3769
|
+
label: z.ZodString;
|
|
3770
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3819
3771
|
}, "strip", z.ZodTypeAny, {
|
|
3772
|
+
label: string;
|
|
3820
3773
|
id: string;
|
|
3821
|
-
|
|
3822
|
-
date: string;
|
|
3823
|
-
author: string;
|
|
3824
|
-
rating: number;
|
|
3825
|
-
avatar?: string | undefined;
|
|
3826
|
-
dateTime?: string | undefined;
|
|
3827
|
-
helpfulCount?: number | undefined;
|
|
3828
|
-
likedByViewer?: boolean | undefined;
|
|
3774
|
+
href?: string | undefined;
|
|
3829
3775
|
}, {
|
|
3776
|
+
label: string;
|
|
3830
3777
|
id: string;
|
|
3831
|
-
|
|
3832
|
-
date: string;
|
|
3833
|
-
author: string;
|
|
3834
|
-
rating: number;
|
|
3835
|
-
avatar?: string | undefined;
|
|
3836
|
-
dateTime?: string | undefined;
|
|
3837
|
-
helpfulCount?: number | undefined;
|
|
3838
|
-
likedByViewer?: boolean | undefined;
|
|
3778
|
+
href?: string | undefined;
|
|
3839
3779
|
}>;
|
|
3840
|
-
export type
|
|
3841
|
-
export declare const
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3780
|
+
export type AccountModuleSpec = z.infer<typeof accountModuleSpecSchema>;
|
|
3781
|
+
export declare const accountFramePropsSchema: z.ZodObject<{
|
|
3782
|
+
displayName: z.ZodString;
|
|
3783
|
+
email: z.ZodOptional<z.ZodString>;
|
|
3784
|
+
modules: z.ZodArray<z.ZodObject<{
|
|
3785
|
+
id: z.ZodString;
|
|
3786
|
+
label: z.ZodString;
|
|
3787
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3788
|
+
}, "strip", z.ZodTypeAny, {
|
|
3789
|
+
label: string;
|
|
3790
|
+
id: string;
|
|
3791
|
+
href?: string | undefined;
|
|
3792
|
+
}, {
|
|
3793
|
+
label: string;
|
|
3794
|
+
id: string;
|
|
3795
|
+
href?: string | undefined;
|
|
3796
|
+
}>, "many">;
|
|
3797
|
+
activeModule: z.ZodOptional<z.ZodString>;
|
|
3798
|
+
presentation: z.ZodOptional<z.ZodEnum<["stack", "tabs"]>>;
|
|
3799
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3800
|
+
className: z.ZodOptional<z.ZodString>;
|
|
3801
|
+
}, "strip", z.ZodTypeAny, {
|
|
3802
|
+
displayName: string;
|
|
3803
|
+
modules: {
|
|
3804
|
+
label: string;
|
|
3805
|
+
id: string;
|
|
3806
|
+
href?: string | undefined;
|
|
3807
|
+
}[];
|
|
3808
|
+
className?: string | undefined;
|
|
3809
|
+
presentation?: "stack" | "tabs" | undefined;
|
|
3810
|
+
email?: string | undefined;
|
|
3811
|
+
labels?: Record<string, string> | undefined;
|
|
3812
|
+
activeModule?: string | undefined;
|
|
3813
|
+
}, {
|
|
3814
|
+
displayName: string;
|
|
3815
|
+
modules: {
|
|
3816
|
+
label: string;
|
|
3817
|
+
id: string;
|
|
3818
|
+
href?: string | undefined;
|
|
3819
|
+
}[];
|
|
3820
|
+
className?: string | undefined;
|
|
3821
|
+
presentation?: "stack" | "tabs" | undefined;
|
|
3822
|
+
email?: string | undefined;
|
|
3823
|
+
labels?: Record<string, string> | undefined;
|
|
3824
|
+
activeModule?: string | undefined;
|
|
3825
|
+
}>;
|
|
3826
|
+
export type AccountFrameSpecProps = z.infer<typeof accountFramePropsSchema>;
|
|
3827
|
+
export declare const profileFieldSpecSchema: z.ZodObject<{
|
|
3828
|
+
name: z.ZodString;
|
|
3829
|
+
label: z.ZodString;
|
|
3830
|
+
value: z.ZodOptional<z.ZodString>;
|
|
3831
|
+
type: z.ZodOptional<z.ZodEnum<["text", "tel", "email"]>>;
|
|
3832
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3833
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3834
|
+
autoComplete: z.ZodOptional<z.ZodString>;
|
|
3835
|
+
}, "strip", z.ZodTypeAny, {
|
|
3836
|
+
label: string;
|
|
3837
|
+
name: string;
|
|
3838
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3839
|
+
value?: string | undefined;
|
|
3840
|
+
required?: boolean | undefined;
|
|
3841
|
+
readOnly?: boolean | undefined;
|
|
3842
|
+
autoComplete?: string | undefined;
|
|
3843
|
+
}, {
|
|
3844
|
+
label: string;
|
|
3845
|
+
name: string;
|
|
3846
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3847
|
+
value?: string | undefined;
|
|
3848
|
+
required?: boolean | undefined;
|
|
3849
|
+
readOnly?: boolean | undefined;
|
|
3850
|
+
autoComplete?: string | undefined;
|
|
3851
|
+
}>;
|
|
3852
|
+
export type ProfileFieldSpec = z.infer<typeof profileFieldSpecSchema>;
|
|
3853
|
+
export declare const profileFormPropsSchema: z.ZodObject<{
|
|
3854
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
3855
|
+
name: z.ZodString;
|
|
3856
|
+
label: z.ZodString;
|
|
3857
|
+
value: z.ZodOptional<z.ZodString>;
|
|
3858
|
+
type: z.ZodOptional<z.ZodEnum<["text", "tel", "email"]>>;
|
|
3859
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3860
|
+
readOnly: z.ZodOptional<z.ZodBoolean>;
|
|
3861
|
+
autoComplete: z.ZodOptional<z.ZodString>;
|
|
3862
|
+
}, "strip", z.ZodTypeAny, {
|
|
3863
|
+
label: string;
|
|
3864
|
+
name: string;
|
|
3865
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3866
|
+
value?: string | undefined;
|
|
3867
|
+
required?: boolean | undefined;
|
|
3868
|
+
readOnly?: boolean | undefined;
|
|
3869
|
+
autoComplete?: string | undefined;
|
|
3870
|
+
}, {
|
|
3871
|
+
label: string;
|
|
3872
|
+
name: string;
|
|
3873
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3874
|
+
value?: string | undefined;
|
|
3875
|
+
required?: boolean | undefined;
|
|
3876
|
+
readOnly?: boolean | undefined;
|
|
3877
|
+
autoComplete?: string | undefined;
|
|
3878
|
+
}>, "many">;
|
|
3879
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3880
|
+
pending: z.ZodOptional<z.ZodBoolean>;
|
|
3881
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
3882
|
+
className: z.ZodOptional<z.ZodString>;
|
|
3883
|
+
}, "strip", z.ZodTypeAny, {
|
|
3884
|
+
fields: {
|
|
3885
|
+
label: string;
|
|
3886
|
+
name: string;
|
|
3887
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3888
|
+
value?: string | undefined;
|
|
3889
|
+
required?: boolean | undefined;
|
|
3890
|
+
readOnly?: boolean | undefined;
|
|
3891
|
+
autoComplete?: string | undefined;
|
|
3892
|
+
}[];
|
|
3893
|
+
className?: string | undefined;
|
|
3894
|
+
error?: string | null | undefined;
|
|
3895
|
+
pending?: boolean | undefined;
|
|
3896
|
+
labels?: Record<string, string> | undefined;
|
|
3897
|
+
}, {
|
|
3898
|
+
fields: {
|
|
3899
|
+
label: string;
|
|
3900
|
+
name: string;
|
|
3901
|
+
type?: "text" | "tel" | "email" | undefined;
|
|
3902
|
+
value?: string | undefined;
|
|
3903
|
+
required?: boolean | undefined;
|
|
3904
|
+
readOnly?: boolean | undefined;
|
|
3905
|
+
autoComplete?: string | undefined;
|
|
3906
|
+
}[];
|
|
3907
|
+
className?: string | undefined;
|
|
3908
|
+
error?: string | null | undefined;
|
|
3909
|
+
pending?: boolean | undefined;
|
|
3910
|
+
labels?: Record<string, string> | undefined;
|
|
3911
|
+
}>;
|
|
3912
|
+
export type ProfileFormSpecProps = z.infer<typeof profileFormPropsSchema>;
|
|
3913
|
+
export declare const accountAddressSpecSchema: z.ZodObject<{
|
|
3914
|
+
id: z.ZodString;
|
|
3915
|
+
recipientName: z.ZodString;
|
|
3916
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
3917
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
3918
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
3919
|
+
}, "strip", z.ZodTypeAny, {
|
|
3920
|
+
id: string;
|
|
3921
|
+
recipientName: string;
|
|
3922
|
+
lines: string[];
|
|
3923
|
+
isDefaultShipping?: boolean | undefined;
|
|
3924
|
+
isDefaultBilling?: boolean | undefined;
|
|
3925
|
+
}, {
|
|
3926
|
+
id: string;
|
|
3927
|
+
recipientName: string;
|
|
3928
|
+
lines: string[];
|
|
3929
|
+
isDefaultShipping?: boolean | undefined;
|
|
3930
|
+
isDefaultBilling?: boolean | undefined;
|
|
3931
|
+
}>;
|
|
3932
|
+
export type AccountAddressSpec = z.infer<typeof accountAddressSpecSchema>;
|
|
3933
|
+
export declare const addressBookPropsSchema: z.ZodObject<{
|
|
3934
|
+
addresses: z.ZodArray<z.ZodObject<{
|
|
3935
|
+
id: z.ZodString;
|
|
3936
|
+
recipientName: z.ZodString;
|
|
3937
|
+
lines: z.ZodArray<z.ZodString, "many">;
|
|
3938
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
3939
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
3940
|
+
}, "strip", z.ZodTypeAny, {
|
|
3941
|
+
id: string;
|
|
3942
|
+
recipientName: string;
|
|
3943
|
+
lines: string[];
|
|
3944
|
+
isDefaultShipping?: boolean | undefined;
|
|
3945
|
+
isDefaultBilling?: boolean | undefined;
|
|
3946
|
+
}, {
|
|
3947
|
+
id: string;
|
|
3948
|
+
recipientName: string;
|
|
3949
|
+
lines: string[];
|
|
3950
|
+
isDefaultShipping?: boolean | undefined;
|
|
3951
|
+
isDefaultBilling?: boolean | undefined;
|
|
3952
|
+
}>, "many">;
|
|
3953
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3954
|
+
className: z.ZodOptional<z.ZodString>;
|
|
3955
|
+
}, "strip", z.ZodTypeAny, {
|
|
3956
|
+
addresses: {
|
|
3957
|
+
id: string;
|
|
3958
|
+
recipientName: string;
|
|
3959
|
+
lines: string[];
|
|
3960
|
+
isDefaultShipping?: boolean | undefined;
|
|
3961
|
+
isDefaultBilling?: boolean | undefined;
|
|
3962
|
+
}[];
|
|
3963
|
+
className?: string | undefined;
|
|
3964
|
+
labels?: Record<string, string> | undefined;
|
|
3965
|
+
}, {
|
|
3966
|
+
addresses: {
|
|
3967
|
+
id: string;
|
|
3968
|
+
recipientName: string;
|
|
3969
|
+
lines: string[];
|
|
3970
|
+
isDefaultShipping?: boolean | undefined;
|
|
3971
|
+
isDefaultBilling?: boolean | undefined;
|
|
3972
|
+
}[];
|
|
3973
|
+
className?: string | undefined;
|
|
3974
|
+
labels?: Record<string, string> | undefined;
|
|
3975
|
+
}>;
|
|
3976
|
+
export type AddressBookSpecProps = z.infer<typeof addressBookPropsSchema>;
|
|
3977
|
+
export declare const addressFormFieldSpecSchema: z.ZodObject<{
|
|
3978
|
+
name: z.ZodString;
|
|
3979
|
+
label: z.ZodString;
|
|
3980
|
+
value: z.ZodOptional<z.ZodString>;
|
|
3981
|
+
type: z.ZodOptional<z.ZodEnum<["text", "tel", "email", "select"]>>;
|
|
3982
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
3983
|
+
autoComplete: z.ZodOptional<z.ZodString>;
|
|
3984
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3985
|
+
value: z.ZodString;
|
|
3986
|
+
label: z.ZodString;
|
|
3987
|
+
}, "strip", z.ZodTypeAny, {
|
|
3988
|
+
label: string;
|
|
3989
|
+
value: string;
|
|
3990
|
+
}, {
|
|
3991
|
+
label: string;
|
|
3992
|
+
value: string;
|
|
3993
|
+
}>, "many">>;
|
|
3994
|
+
}, "strip", z.ZodTypeAny, {
|
|
3995
|
+
label: string;
|
|
3996
|
+
name: string;
|
|
3997
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
3998
|
+
value?: string | undefined;
|
|
3999
|
+
options?: {
|
|
4000
|
+
label: string;
|
|
4001
|
+
value: string;
|
|
4002
|
+
}[] | undefined;
|
|
4003
|
+
required?: boolean | undefined;
|
|
4004
|
+
autoComplete?: string | undefined;
|
|
4005
|
+
}, {
|
|
4006
|
+
label: string;
|
|
4007
|
+
name: string;
|
|
4008
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
4009
|
+
value?: string | undefined;
|
|
4010
|
+
options?: {
|
|
4011
|
+
label: string;
|
|
4012
|
+
value: string;
|
|
4013
|
+
}[] | undefined;
|
|
4014
|
+
required?: boolean | undefined;
|
|
4015
|
+
autoComplete?: string | undefined;
|
|
4016
|
+
}>;
|
|
4017
|
+
export type AddressFormFieldSpec = z.infer<typeof addressFormFieldSpecSchema>;
|
|
4018
|
+
export declare const addressFormPropsSchema: z.ZodObject<{
|
|
4019
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
4020
|
+
name: z.ZodString;
|
|
4021
|
+
label: z.ZodString;
|
|
4022
|
+
value: z.ZodOptional<z.ZodString>;
|
|
4023
|
+
type: z.ZodOptional<z.ZodEnum<["text", "tel", "email", "select"]>>;
|
|
4024
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
4025
|
+
autoComplete: z.ZodOptional<z.ZodString>;
|
|
4026
|
+
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4027
|
+
value: z.ZodString;
|
|
4028
|
+
label: z.ZodString;
|
|
4029
|
+
}, "strip", z.ZodTypeAny, {
|
|
4030
|
+
label: string;
|
|
4031
|
+
value: string;
|
|
4032
|
+
}, {
|
|
4033
|
+
label: string;
|
|
4034
|
+
value: string;
|
|
4035
|
+
}>, "many">>;
|
|
4036
|
+
}, "strip", z.ZodTypeAny, {
|
|
4037
|
+
label: string;
|
|
4038
|
+
name: string;
|
|
4039
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
4040
|
+
value?: string | undefined;
|
|
4041
|
+
options?: {
|
|
4042
|
+
label: string;
|
|
4043
|
+
value: string;
|
|
4044
|
+
}[] | undefined;
|
|
4045
|
+
required?: boolean | undefined;
|
|
4046
|
+
autoComplete?: string | undefined;
|
|
4047
|
+
}, {
|
|
4048
|
+
label: string;
|
|
4049
|
+
name: string;
|
|
4050
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
4051
|
+
value?: string | undefined;
|
|
4052
|
+
options?: {
|
|
4053
|
+
label: string;
|
|
4054
|
+
value: string;
|
|
4055
|
+
}[] | undefined;
|
|
4056
|
+
required?: boolean | undefined;
|
|
4057
|
+
autoComplete?: string | undefined;
|
|
4058
|
+
}>, "many">;
|
|
4059
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4060
|
+
pending: z.ZodOptional<z.ZodBoolean>;
|
|
4061
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4062
|
+
fieldErrors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4063
|
+
className: z.ZodOptional<z.ZodString>;
|
|
4064
|
+
}, "strip", z.ZodTypeAny, {
|
|
4065
|
+
fields: {
|
|
4066
|
+
label: string;
|
|
4067
|
+
name: string;
|
|
4068
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
4069
|
+
value?: string | undefined;
|
|
4070
|
+
options?: {
|
|
4071
|
+
label: string;
|
|
4072
|
+
value: string;
|
|
4073
|
+
}[] | undefined;
|
|
4074
|
+
required?: boolean | undefined;
|
|
4075
|
+
autoComplete?: string | undefined;
|
|
4076
|
+
}[];
|
|
4077
|
+
className?: string | undefined;
|
|
4078
|
+
error?: string | null | undefined;
|
|
4079
|
+
pending?: boolean | undefined;
|
|
4080
|
+
labels?: Record<string, string> | undefined;
|
|
4081
|
+
fieldErrors?: Record<string, string> | undefined;
|
|
4082
|
+
}, {
|
|
4083
|
+
fields: {
|
|
4084
|
+
label: string;
|
|
4085
|
+
name: string;
|
|
4086
|
+
type?: "select" | "text" | "tel" | "email" | undefined;
|
|
4087
|
+
value?: string | undefined;
|
|
4088
|
+
options?: {
|
|
4089
|
+
label: string;
|
|
4090
|
+
value: string;
|
|
4091
|
+
}[] | undefined;
|
|
4092
|
+
required?: boolean | undefined;
|
|
4093
|
+
autoComplete?: string | undefined;
|
|
4094
|
+
}[];
|
|
4095
|
+
className?: string | undefined;
|
|
4096
|
+
error?: string | null | undefined;
|
|
4097
|
+
pending?: boolean | undefined;
|
|
4098
|
+
labels?: Record<string, string> | undefined;
|
|
4099
|
+
fieldErrors?: Record<string, string> | undefined;
|
|
4100
|
+
}>;
|
|
4101
|
+
export type AddressFormSpecProps = z.infer<typeof addressFormPropsSchema>;
|
|
4102
|
+
/**
|
|
4103
|
+
* Canonical review contracts (change: consolidate-review-family).
|
|
4104
|
+
*
|
|
4105
|
+
* `ReviewSummary` is the aggregate unit, `ReviewList` the collection section,
|
|
4106
|
+
* `ReviewCard` its item cell, and `ReviewComposer` the controlled form. The
|
|
4107
|
+
* aggregate fields are required here for the same reason they are required in
|
|
4108
|
+
* the component: an absent average must stop a host from rendering a summary,
|
|
4109
|
+
* not become a zero. Callbacks and `resetSignal` are runtime props and are
|
|
4110
|
+
* excluded, as in the cart and order-history contracts.
|
|
4111
|
+
*/
|
|
4112
|
+
export declare const reviewRatingValueSchema: z.ZodUnion<[z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>, z.ZodLiteral<5>]>;
|
|
4113
|
+
export type ReviewRatingValueSpec = z.infer<typeof reviewRatingValueSchema>;
|
|
4114
|
+
export declare const reviewDistributionSchema: z.ZodObject<{
|
|
4115
|
+
/** Every rating value is required; a partial distribution is rejected. */
|
|
4116
|
+
1: z.ZodNumber;
|
|
4117
|
+
2: z.ZodNumber;
|
|
4118
|
+
3: z.ZodNumber;
|
|
4119
|
+
4: z.ZodNumber;
|
|
4120
|
+
5: z.ZodNumber;
|
|
4121
|
+
}, "strip", z.ZodTypeAny, {
|
|
4122
|
+
1: number;
|
|
4123
|
+
2: number;
|
|
4124
|
+
3: number;
|
|
4125
|
+
4: number;
|
|
4126
|
+
5: number;
|
|
4127
|
+
}, {
|
|
4128
|
+
1: number;
|
|
4129
|
+
2: number;
|
|
4130
|
+
3: number;
|
|
4131
|
+
4: number;
|
|
4132
|
+
5: number;
|
|
4133
|
+
}>;
|
|
4134
|
+
export type ReviewDistributionSpec = z.infer<typeof reviewDistributionSchema>;
|
|
4135
|
+
export declare const reviewItemSchema: z.ZodObject<{
|
|
4136
|
+
/** Backend review identity; the React key and the action argument. */
|
|
4137
|
+
id: z.ZodString;
|
|
4138
|
+
author: z.ZodString;
|
|
4139
|
+
/** Optional; absent avatars are omitted, never serialized as `""`. */
|
|
4140
|
+
avatar: z.ZodOptional<z.ZodString>;
|
|
4141
|
+
/** Host-formatted display date, rendered verbatim. */
|
|
4142
|
+
date: z.ZodString;
|
|
4143
|
+
/** Optional machine-readable value; the cell emits it only when it parses. */
|
|
4144
|
+
dateTime: z.ZodOptional<z.ZodString>;
|
|
4145
|
+
rating: z.ZodNumber;
|
|
4146
|
+
content: z.ZodString;
|
|
4147
|
+
/** Host-authoritative count; absent means unknown, never zero. */
|
|
4148
|
+
helpfulCount: z.ZodOptional<z.ZodNumber>;
|
|
4149
|
+
likedByViewer: z.ZodOptional<z.ZodBoolean>;
|
|
4150
|
+
}, "strip", z.ZodTypeAny, {
|
|
4151
|
+
id: string;
|
|
4152
|
+
content: string;
|
|
4153
|
+
date: string;
|
|
4154
|
+
rating: number;
|
|
4155
|
+
author: string;
|
|
4156
|
+
avatar?: string | undefined;
|
|
4157
|
+
dateTime?: string | undefined;
|
|
4158
|
+
helpfulCount?: number | undefined;
|
|
4159
|
+
likedByViewer?: boolean | undefined;
|
|
4160
|
+
}, {
|
|
4161
|
+
id: string;
|
|
4162
|
+
content: string;
|
|
4163
|
+
date: string;
|
|
4164
|
+
rating: number;
|
|
4165
|
+
author: string;
|
|
4166
|
+
avatar?: string | undefined;
|
|
4167
|
+
dateTime?: string | undefined;
|
|
4168
|
+
helpfulCount?: number | undefined;
|
|
4169
|
+
likedByViewer?: boolean | undefined;
|
|
4170
|
+
}>;
|
|
4171
|
+
export type ReviewItemSpec = z.infer<typeof reviewItemSchema>;
|
|
4172
|
+
export declare const reviewSummaryPropsSchema: z.ZodObject<{
|
|
4173
|
+
averageRating: z.ZodNumber;
|
|
4174
|
+
totalReviews: z.ZodNumber;
|
|
4175
|
+
distribution: z.ZodObject<{
|
|
4176
|
+
/** Every rating value is required; a partial distribution is rejected. */
|
|
4177
|
+
1: z.ZodNumber;
|
|
4178
|
+
2: z.ZodNumber;
|
|
4179
|
+
3: z.ZodNumber;
|
|
4180
|
+
4: z.ZodNumber;
|
|
4181
|
+
5: z.ZodNumber;
|
|
4182
|
+
}, "strip", z.ZodTypeAny, {
|
|
3852
4183
|
1: number;
|
|
3853
4184
|
2: number;
|
|
3854
4185
|
3: number;
|
|
@@ -3875,8 +4206,8 @@ export declare const reviewSummaryPropsSchema: z.ZodObject<{
|
|
|
3875
4206
|
5: number;
|
|
3876
4207
|
};
|
|
3877
4208
|
className?: string | undefined;
|
|
3878
|
-
labels?: Record<string, string> | undefined;
|
|
3879
4209
|
locale?: string | undefined;
|
|
4210
|
+
labels?: Record<string, string> | undefined;
|
|
3880
4211
|
}, {
|
|
3881
4212
|
averageRating: number;
|
|
3882
4213
|
totalReviews: number;
|
|
@@ -3888,8 +4219,8 @@ export declare const reviewSummaryPropsSchema: z.ZodObject<{
|
|
|
3888
4219
|
5: number;
|
|
3889
4220
|
};
|
|
3890
4221
|
className?: string | undefined;
|
|
3891
|
-
labels?: Record<string, string> | undefined;
|
|
3892
4222
|
locale?: string | undefined;
|
|
4223
|
+
labels?: Record<string, string> | undefined;
|
|
3893
4224
|
}>;
|
|
3894
4225
|
export type ReviewSummarySpecProps = z.infer<typeof reviewSummaryPropsSchema>;
|
|
3895
4226
|
export declare const reviewListPresentationSchema: z.ZodEnum<["list", "carousel"]>;
|
|
@@ -3914,8 +4245,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3914
4245
|
id: string;
|
|
3915
4246
|
content: string;
|
|
3916
4247
|
date: string;
|
|
3917
|
-
author: string;
|
|
3918
4248
|
rating: number;
|
|
4249
|
+
author: string;
|
|
3919
4250
|
avatar?: string | undefined;
|
|
3920
4251
|
dateTime?: string | undefined;
|
|
3921
4252
|
helpfulCount?: number | undefined;
|
|
@@ -3924,8 +4255,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3924
4255
|
id: string;
|
|
3925
4256
|
content: string;
|
|
3926
4257
|
date: string;
|
|
3927
|
-
author: string;
|
|
3928
4258
|
rating: number;
|
|
4259
|
+
author: string;
|
|
3929
4260
|
avatar?: string | undefined;
|
|
3930
4261
|
dateTime?: string | undefined;
|
|
3931
4262
|
helpfulCount?: number | undefined;
|
|
@@ -3940,8 +4271,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3940
4271
|
id: string;
|
|
3941
4272
|
content: string;
|
|
3942
4273
|
date: string;
|
|
3943
|
-
author: string;
|
|
3944
4274
|
rating: number;
|
|
4275
|
+
author: string;
|
|
3945
4276
|
avatar?: string | undefined;
|
|
3946
4277
|
dateTime?: string | undefined;
|
|
3947
4278
|
helpfulCount?: number | undefined;
|
|
@@ -3956,8 +4287,8 @@ export declare const reviewListPropsSchema: z.ZodObject<{
|
|
|
3956
4287
|
id: string;
|
|
3957
4288
|
content: string;
|
|
3958
4289
|
date: string;
|
|
3959
|
-
author: string;
|
|
3960
4290
|
rating: number;
|
|
4291
|
+
author: string;
|
|
3961
4292
|
avatar?: string | undefined;
|
|
3962
4293
|
dateTime?: string | undefined;
|
|
3963
4294
|
helpfulCount?: number | undefined;
|
|
@@ -4003,6 +4334,1786 @@ export declare const reviewComposerPropsSchema: z.ZodObject<{
|
|
|
4003
4334
|
isSubmitting?: boolean | undefined;
|
|
4004
4335
|
}>;
|
|
4005
4336
|
export type ReviewComposerSpecProps = z.infer<typeof reviewComposerPropsSchema>;
|
|
4337
|
+
export declare const checkoutReadStateSchema: z.ZodEnum<["idle", "pending", "error", "unavailable"]>;
|
|
4338
|
+
export declare const checkoutAddressOptionSchema: z.ZodObject<{
|
|
4339
|
+
value: z.ZodString;
|
|
4340
|
+
label: z.ZodString;
|
|
4341
|
+
}, "strip", z.ZodTypeAny, {
|
|
4342
|
+
label: string;
|
|
4343
|
+
value: string;
|
|
4344
|
+
}, {
|
|
4345
|
+
label: string;
|
|
4346
|
+
value: string;
|
|
4347
|
+
}>;
|
|
4348
|
+
export declare const checkoutAddressLevelSchema: z.ZodEnum<["countries", "provinces", "cities"]>;
|
|
4349
|
+
export declare const checkoutLocationOptionsSchema: z.ZodObject<{
|
|
4350
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
4351
|
+
value: z.ZodString;
|
|
4352
|
+
label: z.ZodString;
|
|
4353
|
+
}, "strip", z.ZodTypeAny, {
|
|
4354
|
+
label: string;
|
|
4355
|
+
value: string;
|
|
4356
|
+
}, {
|
|
4357
|
+
label: string;
|
|
4358
|
+
value: string;
|
|
4359
|
+
}>, "many">;
|
|
4360
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
4361
|
+
value: z.ZodString;
|
|
4362
|
+
label: z.ZodString;
|
|
4363
|
+
}, "strip", z.ZodTypeAny, {
|
|
4364
|
+
label: string;
|
|
4365
|
+
value: string;
|
|
4366
|
+
}, {
|
|
4367
|
+
label: string;
|
|
4368
|
+
value: string;
|
|
4369
|
+
}>, "many">;
|
|
4370
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
4371
|
+
value: z.ZodString;
|
|
4372
|
+
label: z.ZodString;
|
|
4373
|
+
}, "strip", z.ZodTypeAny, {
|
|
4374
|
+
label: string;
|
|
4375
|
+
value: string;
|
|
4376
|
+
}, {
|
|
4377
|
+
label: string;
|
|
4378
|
+
value: string;
|
|
4379
|
+
}>, "many">;
|
|
4380
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4381
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4382
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
4383
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
4384
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
4385
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
4386
|
+
}, "strip", z.ZodTypeAny, {
|
|
4387
|
+
countries: {
|
|
4388
|
+
label: string;
|
|
4389
|
+
value: string;
|
|
4390
|
+
}[];
|
|
4391
|
+
provinces: {
|
|
4392
|
+
label: string;
|
|
4393
|
+
value: string;
|
|
4394
|
+
}[];
|
|
4395
|
+
cities: {
|
|
4396
|
+
label: string;
|
|
4397
|
+
value: string;
|
|
4398
|
+
}[];
|
|
4399
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4400
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4401
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4402
|
+
countriesError?: string | undefined;
|
|
4403
|
+
provincesError?: string | undefined;
|
|
4404
|
+
citiesError?: string | undefined;
|
|
4405
|
+
}, {
|
|
4406
|
+
countries: {
|
|
4407
|
+
label: string;
|
|
4408
|
+
value: string;
|
|
4409
|
+
}[];
|
|
4410
|
+
provinces: {
|
|
4411
|
+
label: string;
|
|
4412
|
+
value: string;
|
|
4413
|
+
}[];
|
|
4414
|
+
cities: {
|
|
4415
|
+
label: string;
|
|
4416
|
+
value: string;
|
|
4417
|
+
}[];
|
|
4418
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4419
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4420
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
4421
|
+
countriesError?: string | undefined;
|
|
4422
|
+
provincesError?: string | undefined;
|
|
4423
|
+
citiesError?: string | undefined;
|
|
4424
|
+
}>;
|
|
4425
|
+
export declare const checkoutAddressValuesSchema: z.ZodObject<{
|
|
4426
|
+
firstName: z.ZodString;
|
|
4427
|
+
lastName: z.ZodString;
|
|
4428
|
+
address1: z.ZodString;
|
|
4429
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4430
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4431
|
+
city: z.ZodString;
|
|
4432
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4433
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4434
|
+
countryCode: z.ZodString;
|
|
4435
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4436
|
+
}, "strip", z.ZodTypeAny, {
|
|
4437
|
+
city: string;
|
|
4438
|
+
firstName: string;
|
|
4439
|
+
lastName: string;
|
|
4440
|
+
address1: string;
|
|
4441
|
+
countryCode: string;
|
|
4442
|
+
postalCode?: string | undefined;
|
|
4443
|
+
phone?: string | undefined;
|
|
4444
|
+
province?: string | undefined;
|
|
4445
|
+
address2?: string | undefined;
|
|
4446
|
+
company?: string | undefined;
|
|
4447
|
+
}, {
|
|
4448
|
+
city: string;
|
|
4449
|
+
firstName: string;
|
|
4450
|
+
lastName: string;
|
|
4451
|
+
address1: string;
|
|
4452
|
+
countryCode: string;
|
|
4453
|
+
postalCode?: string | undefined;
|
|
4454
|
+
phone?: string | undefined;
|
|
4455
|
+
province?: string | undefined;
|
|
4456
|
+
address2?: string | undefined;
|
|
4457
|
+
company?: string | undefined;
|
|
4458
|
+
}>;
|
|
4459
|
+
export declare const checkoutContactValuesSchema: z.ZodObject<{
|
|
4460
|
+
email: z.ZodString;
|
|
4461
|
+
firstName: z.ZodString;
|
|
4462
|
+
lastName: z.ZodString;
|
|
4463
|
+
phone: z.ZodString;
|
|
4464
|
+
}, "strip", z.ZodTypeAny, {
|
|
4465
|
+
email: string;
|
|
4466
|
+
phone: string;
|
|
4467
|
+
firstName: string;
|
|
4468
|
+
lastName: string;
|
|
4469
|
+
}, {
|
|
4470
|
+
email: string;
|
|
4471
|
+
phone: string;
|
|
4472
|
+
firstName: string;
|
|
4473
|
+
lastName: string;
|
|
4474
|
+
}>;
|
|
4475
|
+
export declare const checkoutCustomerIdentitySchema: z.ZodObject<{
|
|
4476
|
+
id: z.ZodString;
|
|
4477
|
+
email: z.ZodString;
|
|
4478
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
4479
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
4480
|
+
}, "strip", z.ZodTypeAny, {
|
|
4481
|
+
id: string;
|
|
4482
|
+
email: string;
|
|
4483
|
+
firstName?: string | undefined;
|
|
4484
|
+
lastName?: string | undefined;
|
|
4485
|
+
}, {
|
|
4486
|
+
id: string;
|
|
4487
|
+
email: string;
|
|
4488
|
+
firstName?: string | undefined;
|
|
4489
|
+
lastName?: string | undefined;
|
|
4490
|
+
}>;
|
|
4491
|
+
export declare const checkoutSavedAddressSchema: z.ZodObject<{
|
|
4492
|
+
id: z.ZodString;
|
|
4493
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4494
|
+
address: z.ZodObject<{
|
|
4495
|
+
firstName: z.ZodString;
|
|
4496
|
+
lastName: z.ZodString;
|
|
4497
|
+
address1: z.ZodString;
|
|
4498
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4499
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4500
|
+
city: z.ZodString;
|
|
4501
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4502
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4503
|
+
countryCode: z.ZodString;
|
|
4504
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4505
|
+
}, "strip", z.ZodTypeAny, {
|
|
4506
|
+
city: string;
|
|
4507
|
+
firstName: string;
|
|
4508
|
+
lastName: string;
|
|
4509
|
+
address1: string;
|
|
4510
|
+
countryCode: string;
|
|
4511
|
+
postalCode?: string | undefined;
|
|
4512
|
+
phone?: string | undefined;
|
|
4513
|
+
province?: string | undefined;
|
|
4514
|
+
address2?: string | undefined;
|
|
4515
|
+
company?: string | undefined;
|
|
4516
|
+
}, {
|
|
4517
|
+
city: string;
|
|
4518
|
+
firstName: string;
|
|
4519
|
+
lastName: string;
|
|
4520
|
+
address1: string;
|
|
4521
|
+
countryCode: string;
|
|
4522
|
+
postalCode?: string | undefined;
|
|
4523
|
+
phone?: string | undefined;
|
|
4524
|
+
province?: string | undefined;
|
|
4525
|
+
address2?: string | undefined;
|
|
4526
|
+
company?: string | undefined;
|
|
4527
|
+
}>;
|
|
4528
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
4529
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
4530
|
+
}, "strip", z.ZodTypeAny, {
|
|
4531
|
+
address: {
|
|
4532
|
+
city: string;
|
|
4533
|
+
firstName: string;
|
|
4534
|
+
lastName: string;
|
|
4535
|
+
address1: string;
|
|
4536
|
+
countryCode: string;
|
|
4537
|
+
postalCode?: string | undefined;
|
|
4538
|
+
phone?: string | undefined;
|
|
4539
|
+
province?: string | undefined;
|
|
4540
|
+
address2?: string | undefined;
|
|
4541
|
+
company?: string | undefined;
|
|
4542
|
+
};
|
|
4543
|
+
id: string;
|
|
4544
|
+
label?: string | undefined;
|
|
4545
|
+
isDefaultShipping?: boolean | undefined;
|
|
4546
|
+
isDefaultBilling?: boolean | undefined;
|
|
4547
|
+
}, {
|
|
4548
|
+
address: {
|
|
4549
|
+
city: string;
|
|
4550
|
+
firstName: string;
|
|
4551
|
+
lastName: string;
|
|
4552
|
+
address1: string;
|
|
4553
|
+
countryCode: string;
|
|
4554
|
+
postalCode?: string | undefined;
|
|
4555
|
+
phone?: string | undefined;
|
|
4556
|
+
province?: string | undefined;
|
|
4557
|
+
address2?: string | undefined;
|
|
4558
|
+
company?: string | undefined;
|
|
4559
|
+
};
|
|
4560
|
+
id: string;
|
|
4561
|
+
label?: string | undefined;
|
|
4562
|
+
isDefaultShipping?: boolean | undefined;
|
|
4563
|
+
isDefaultBilling?: boolean | undefined;
|
|
4564
|
+
}>;
|
|
4565
|
+
export declare const checkoutSavedAddressStateSchema: z.ZodObject<{
|
|
4566
|
+
pendingId: z.ZodOptional<z.ZodString>;
|
|
4567
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
4568
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4569
|
+
message: z.ZodString;
|
|
4570
|
+
}, "strip", z.ZodTypeAny, {
|
|
4571
|
+
message: string;
|
|
4572
|
+
id?: string | undefined;
|
|
4573
|
+
}, {
|
|
4574
|
+
message: string;
|
|
4575
|
+
id?: string | undefined;
|
|
4576
|
+
}>>;
|
|
4577
|
+
lastSavedId: z.ZodOptional<z.ZodString>;
|
|
4578
|
+
lastAction: z.ZodOptional<z.ZodEnum<["saved", "deleted"]>>;
|
|
4579
|
+
}, "strip", z.ZodTypeAny, {
|
|
4580
|
+
error?: {
|
|
4581
|
+
message: string;
|
|
4582
|
+
id?: string | undefined;
|
|
4583
|
+
} | undefined;
|
|
4584
|
+
pendingId?: string | undefined;
|
|
4585
|
+
lastSavedId?: string | undefined;
|
|
4586
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4587
|
+
}, {
|
|
4588
|
+
error?: {
|
|
4589
|
+
message: string;
|
|
4590
|
+
id?: string | undefined;
|
|
4591
|
+
} | undefined;
|
|
4592
|
+
pendingId?: string | undefined;
|
|
4593
|
+
lastSavedId?: string | undefined;
|
|
4594
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
4595
|
+
}>;
|
|
4596
|
+
export declare const checkoutShippingOptionSchema: z.ZodObject<{
|
|
4597
|
+
id: z.ZodString;
|
|
4598
|
+
name: z.ZodString;
|
|
4599
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4600
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4601
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
4602
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
4603
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
4604
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4605
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
4606
|
+
}, "strip", z.ZodTypeAny, {
|
|
4607
|
+
id: string;
|
|
4608
|
+
name: string;
|
|
4609
|
+
disabled?: boolean | undefined;
|
|
4610
|
+
price?: Money | undefined;
|
|
4611
|
+
description?: string | undefined;
|
|
4612
|
+
estimatedDays?: string | undefined;
|
|
4613
|
+
pickup?: boolean | undefined;
|
|
4614
|
+
locationName?: string | undefined;
|
|
4615
|
+
disabledReason?: string | undefined;
|
|
4616
|
+
}, {
|
|
4617
|
+
id: string;
|
|
4618
|
+
name: string;
|
|
4619
|
+
disabled?: boolean | undefined;
|
|
4620
|
+
price?: Money | undefined;
|
|
4621
|
+
description?: string | undefined;
|
|
4622
|
+
estimatedDays?: string | undefined;
|
|
4623
|
+
pickup?: boolean | undefined;
|
|
4624
|
+
locationName?: string | undefined;
|
|
4625
|
+
disabledReason?: string | undefined;
|
|
4626
|
+
}>;
|
|
4627
|
+
export declare const checkoutShippingGroupItemSchema: z.ZodObject<{
|
|
4628
|
+
lineId: z.ZodString;
|
|
4629
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
4630
|
+
}, "strip", z.ZodTypeAny, {
|
|
4631
|
+
lineId: string;
|
|
4632
|
+
quantity?: number | undefined;
|
|
4633
|
+
}, {
|
|
4634
|
+
lineId: string;
|
|
4635
|
+
quantity?: number | undefined;
|
|
4636
|
+
}>;
|
|
4637
|
+
export declare const checkoutShippingGroupSchema: z.ZodObject<{
|
|
4638
|
+
id: z.ZodString;
|
|
4639
|
+
label: z.ZodOptional<z.ZodString>;
|
|
4640
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4641
|
+
lineId: z.ZodString;
|
|
4642
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
4643
|
+
}, "strip", z.ZodTypeAny, {
|
|
4644
|
+
lineId: string;
|
|
4645
|
+
quantity?: number | undefined;
|
|
4646
|
+
}, {
|
|
4647
|
+
lineId: string;
|
|
4648
|
+
quantity?: number | undefined;
|
|
4649
|
+
}>, "many">>;
|
|
4650
|
+
itemCount: z.ZodOptional<z.ZodNumber>;
|
|
4651
|
+
options: z.ZodArray<z.ZodObject<{
|
|
4652
|
+
id: z.ZodString;
|
|
4653
|
+
name: z.ZodString;
|
|
4654
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
4655
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4656
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
4657
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
4658
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
4659
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
4660
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
4661
|
+
}, "strip", z.ZodTypeAny, {
|
|
4662
|
+
id: string;
|
|
4663
|
+
name: string;
|
|
4664
|
+
disabled?: boolean | undefined;
|
|
4665
|
+
price?: Money | undefined;
|
|
4666
|
+
description?: string | undefined;
|
|
4667
|
+
estimatedDays?: string | undefined;
|
|
4668
|
+
pickup?: boolean | undefined;
|
|
4669
|
+
locationName?: string | undefined;
|
|
4670
|
+
disabledReason?: string | undefined;
|
|
4671
|
+
}, {
|
|
4672
|
+
id: string;
|
|
4673
|
+
name: string;
|
|
4674
|
+
disabled?: boolean | undefined;
|
|
4675
|
+
price?: Money | undefined;
|
|
4676
|
+
description?: string | undefined;
|
|
4677
|
+
estimatedDays?: string | undefined;
|
|
4678
|
+
pickup?: boolean | undefined;
|
|
4679
|
+
locationName?: string | undefined;
|
|
4680
|
+
disabledReason?: string | undefined;
|
|
4681
|
+
}>, "many">;
|
|
4682
|
+
selectedOptionId: z.ZodOptional<z.ZodString>;
|
|
4683
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
4684
|
+
}, "strip", z.ZodTypeAny, {
|
|
4685
|
+
id: string;
|
|
4686
|
+
options: {
|
|
4687
|
+
id: string;
|
|
4688
|
+
name: string;
|
|
4689
|
+
disabled?: boolean | undefined;
|
|
4690
|
+
price?: Money | undefined;
|
|
4691
|
+
description?: string | undefined;
|
|
4692
|
+
estimatedDays?: string | undefined;
|
|
4693
|
+
pickup?: boolean | undefined;
|
|
4694
|
+
locationName?: string | undefined;
|
|
4695
|
+
disabledReason?: string | undefined;
|
|
4696
|
+
}[];
|
|
4697
|
+
label?: string | undefined;
|
|
4698
|
+
items?: {
|
|
4699
|
+
lineId: string;
|
|
4700
|
+
quantity?: number | undefined;
|
|
4701
|
+
}[] | undefined;
|
|
4702
|
+
unavailableReason?: string | undefined;
|
|
4703
|
+
itemCount?: number | undefined;
|
|
4704
|
+
selectedOptionId?: string | undefined;
|
|
4705
|
+
}, {
|
|
4706
|
+
id: string;
|
|
4707
|
+
options: {
|
|
4708
|
+
id: string;
|
|
4709
|
+
name: string;
|
|
4710
|
+
disabled?: boolean | undefined;
|
|
4711
|
+
price?: Money | undefined;
|
|
4712
|
+
description?: string | undefined;
|
|
4713
|
+
estimatedDays?: string | undefined;
|
|
4714
|
+
pickup?: boolean | undefined;
|
|
4715
|
+
locationName?: string | undefined;
|
|
4716
|
+
disabledReason?: string | undefined;
|
|
4717
|
+
}[];
|
|
4718
|
+
label?: string | undefined;
|
|
4719
|
+
items?: {
|
|
4720
|
+
lineId: string;
|
|
4721
|
+
quantity?: number | undefined;
|
|
4722
|
+
}[] | undefined;
|
|
4723
|
+
unavailableReason?: string | undefined;
|
|
4724
|
+
itemCount?: number | undefined;
|
|
4725
|
+
selectedOptionId?: string | undefined;
|
|
4726
|
+
}>;
|
|
4727
|
+
export declare const checkoutAdjustmentPaymentSchema: z.ZodObject<{
|
|
4728
|
+
id: z.ZodString;
|
|
4729
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
4730
|
+
label: z.ZodString;
|
|
4731
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4732
|
+
}, "strip", z.ZodTypeAny, {
|
|
4733
|
+
label: string;
|
|
4734
|
+
id: string;
|
|
4735
|
+
amount: Money;
|
|
4736
|
+
kind: "gift-card" | "store-credit";
|
|
4737
|
+
}, {
|
|
4738
|
+
label: string;
|
|
4739
|
+
id: string;
|
|
4740
|
+
amount: Money;
|
|
4741
|
+
kind: "gift-card" | "store-credit";
|
|
4742
|
+
}>;
|
|
4743
|
+
export declare const checkoutInterruptionKindSchema: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
4744
|
+
export declare const checkoutInterruptionActionSchema: z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>;
|
|
4745
|
+
export declare const checkoutInterruptionSchema: z.ZodObject<{
|
|
4746
|
+
kind: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
4747
|
+
severity: z.ZodEnum<["info", "blocking"]>;
|
|
4748
|
+
title: z.ZodString;
|
|
4749
|
+
message: z.ZodString;
|
|
4750
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4751
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
4752
|
+
label: z.ZodString;
|
|
4753
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
4754
|
+
next: z.ZodOptional<z.ZodString>;
|
|
4755
|
+
}, "strip", z.ZodTypeAny, {
|
|
4756
|
+
label: string;
|
|
4757
|
+
next?: string | undefined;
|
|
4758
|
+
previous?: string | undefined;
|
|
4759
|
+
lineId?: string | undefined;
|
|
4760
|
+
}, {
|
|
4761
|
+
label: string;
|
|
4762
|
+
next?: string | undefined;
|
|
4763
|
+
previous?: string | undefined;
|
|
4764
|
+
lineId?: string | undefined;
|
|
4765
|
+
}>, "many">>;
|
|
4766
|
+
actions: z.ZodArray<z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>, "many">;
|
|
4767
|
+
}, "strip", z.ZodTypeAny, {
|
|
4768
|
+
title: string;
|
|
4769
|
+
message: string;
|
|
4770
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
4771
|
+
severity: "info" | "blocking";
|
|
4772
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
4773
|
+
changes?: {
|
|
4774
|
+
label: string;
|
|
4775
|
+
next?: string | undefined;
|
|
4776
|
+
previous?: string | undefined;
|
|
4777
|
+
lineId?: string | undefined;
|
|
4778
|
+
}[] | undefined;
|
|
4779
|
+
}, {
|
|
4780
|
+
title: string;
|
|
4781
|
+
message: string;
|
|
4782
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
4783
|
+
severity: "info" | "blocking";
|
|
4784
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
4785
|
+
changes?: {
|
|
4786
|
+
label: string;
|
|
4787
|
+
next?: string | undefined;
|
|
4788
|
+
previous?: string | undefined;
|
|
4789
|
+
lineId?: string | undefined;
|
|
4790
|
+
}[] | undefined;
|
|
4791
|
+
}>;
|
|
4792
|
+
export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
4793
|
+
contact: z.ZodObject<{
|
|
4794
|
+
email: z.ZodString;
|
|
4795
|
+
firstName: z.ZodString;
|
|
4796
|
+
lastName: z.ZodString;
|
|
4797
|
+
phone: z.ZodString;
|
|
4798
|
+
}, "strip", z.ZodTypeAny, {
|
|
4799
|
+
email: string;
|
|
4800
|
+
phone: string;
|
|
4801
|
+
firstName: string;
|
|
4802
|
+
lastName: string;
|
|
4803
|
+
}, {
|
|
4804
|
+
email: string;
|
|
4805
|
+
phone: string;
|
|
4806
|
+
firstName: string;
|
|
4807
|
+
lastName: string;
|
|
4808
|
+
}>;
|
|
4809
|
+
shippingAddress: z.ZodObject<{
|
|
4810
|
+
firstName: z.ZodString;
|
|
4811
|
+
lastName: z.ZodString;
|
|
4812
|
+
address1: z.ZodString;
|
|
4813
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4814
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4815
|
+
city: z.ZodString;
|
|
4816
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4817
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4818
|
+
countryCode: z.ZodString;
|
|
4819
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4820
|
+
}, "strip", z.ZodTypeAny, {
|
|
4821
|
+
city: string;
|
|
4822
|
+
firstName: string;
|
|
4823
|
+
lastName: string;
|
|
4824
|
+
address1: string;
|
|
4825
|
+
countryCode: string;
|
|
4826
|
+
postalCode?: string | undefined;
|
|
4827
|
+
phone?: string | undefined;
|
|
4828
|
+
province?: string | undefined;
|
|
4829
|
+
address2?: string | undefined;
|
|
4830
|
+
company?: string | undefined;
|
|
4831
|
+
}, {
|
|
4832
|
+
city: string;
|
|
4833
|
+
firstName: string;
|
|
4834
|
+
lastName: string;
|
|
4835
|
+
address1: string;
|
|
4836
|
+
countryCode: string;
|
|
4837
|
+
postalCode?: string | undefined;
|
|
4838
|
+
phone?: string | undefined;
|
|
4839
|
+
province?: string | undefined;
|
|
4840
|
+
address2?: string | undefined;
|
|
4841
|
+
company?: string | undefined;
|
|
4842
|
+
}>;
|
|
4843
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
4844
|
+
firstName: z.ZodString;
|
|
4845
|
+
lastName: z.ZodString;
|
|
4846
|
+
address1: z.ZodString;
|
|
4847
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
4848
|
+
company: z.ZodOptional<z.ZodString>;
|
|
4849
|
+
city: z.ZodString;
|
|
4850
|
+
province: z.ZodOptional<z.ZodString>;
|
|
4851
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
4852
|
+
countryCode: z.ZodString;
|
|
4853
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
4854
|
+
}, "strip", z.ZodTypeAny, {
|
|
4855
|
+
city: string;
|
|
4856
|
+
firstName: string;
|
|
4857
|
+
lastName: string;
|
|
4858
|
+
address1: string;
|
|
4859
|
+
countryCode: string;
|
|
4860
|
+
postalCode?: string | undefined;
|
|
4861
|
+
phone?: string | undefined;
|
|
4862
|
+
province?: string | undefined;
|
|
4863
|
+
address2?: string | undefined;
|
|
4864
|
+
company?: string | undefined;
|
|
4865
|
+
}, {
|
|
4866
|
+
city: string;
|
|
4867
|
+
firstName: string;
|
|
4868
|
+
lastName: string;
|
|
4869
|
+
address1: string;
|
|
4870
|
+
countryCode: string;
|
|
4871
|
+
postalCode?: string | undefined;
|
|
4872
|
+
phone?: string | undefined;
|
|
4873
|
+
province?: string | undefined;
|
|
4874
|
+
address2?: string | undefined;
|
|
4875
|
+
company?: string | undefined;
|
|
4876
|
+
}>>;
|
|
4877
|
+
sameAsShipping: z.ZodBoolean;
|
|
4878
|
+
shippingSelections: z.ZodArray<z.ZodObject<{
|
|
4879
|
+
groupId: z.ZodString;
|
|
4880
|
+
optionId: z.ZodString;
|
|
4881
|
+
}, "strip", z.ZodTypeAny, {
|
|
4882
|
+
groupId: string;
|
|
4883
|
+
optionId: string;
|
|
4884
|
+
}, {
|
|
4885
|
+
groupId: string;
|
|
4886
|
+
optionId: string;
|
|
4887
|
+
}>, "many">;
|
|
4888
|
+
paymentMethod: z.ZodString;
|
|
4889
|
+
adjustmentPayments: z.ZodArray<z.ZodObject<{
|
|
4890
|
+
id: z.ZodString;
|
|
4891
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
4892
|
+
label: z.ZodString;
|
|
4893
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
4894
|
+
}, "strip", z.ZodTypeAny, {
|
|
4895
|
+
label: string;
|
|
4896
|
+
id: string;
|
|
4897
|
+
amount: Money;
|
|
4898
|
+
kind: "gift-card" | "store-credit";
|
|
4899
|
+
}, {
|
|
4900
|
+
label: string;
|
|
4901
|
+
id: string;
|
|
4902
|
+
amount: Money;
|
|
4903
|
+
kind: "gift-card" | "store-credit";
|
|
4904
|
+
}>, "many">;
|
|
4905
|
+
promoCode: z.ZodString;
|
|
4906
|
+
}, "strip", z.ZodTypeAny, {
|
|
4907
|
+
sameAsShipping: boolean;
|
|
4908
|
+
contact: {
|
|
4909
|
+
email: string;
|
|
4910
|
+
phone: string;
|
|
4911
|
+
firstName: string;
|
|
4912
|
+
lastName: string;
|
|
4913
|
+
};
|
|
4914
|
+
shippingAddress: {
|
|
4915
|
+
city: string;
|
|
4916
|
+
firstName: string;
|
|
4917
|
+
lastName: string;
|
|
4918
|
+
address1: string;
|
|
4919
|
+
countryCode: string;
|
|
4920
|
+
postalCode?: string | undefined;
|
|
4921
|
+
phone?: string | undefined;
|
|
4922
|
+
province?: string | undefined;
|
|
4923
|
+
address2?: string | undefined;
|
|
4924
|
+
company?: string | undefined;
|
|
4925
|
+
};
|
|
4926
|
+
shippingSelections: {
|
|
4927
|
+
groupId: string;
|
|
4928
|
+
optionId: string;
|
|
4929
|
+
}[];
|
|
4930
|
+
paymentMethod: string;
|
|
4931
|
+
adjustmentPayments: {
|
|
4932
|
+
label: string;
|
|
4933
|
+
id: string;
|
|
4934
|
+
amount: Money;
|
|
4935
|
+
kind: "gift-card" | "store-credit";
|
|
4936
|
+
}[];
|
|
4937
|
+
promoCode: string;
|
|
4938
|
+
billingAddress?: {
|
|
4939
|
+
city: string;
|
|
4940
|
+
firstName: string;
|
|
4941
|
+
lastName: string;
|
|
4942
|
+
address1: string;
|
|
4943
|
+
countryCode: string;
|
|
4944
|
+
postalCode?: string | undefined;
|
|
4945
|
+
phone?: string | undefined;
|
|
4946
|
+
province?: string | undefined;
|
|
4947
|
+
address2?: string | undefined;
|
|
4948
|
+
company?: string | undefined;
|
|
4949
|
+
} | undefined;
|
|
4950
|
+
}, {
|
|
4951
|
+
sameAsShipping: boolean;
|
|
4952
|
+
contact: {
|
|
4953
|
+
email: string;
|
|
4954
|
+
phone: string;
|
|
4955
|
+
firstName: string;
|
|
4956
|
+
lastName: string;
|
|
4957
|
+
};
|
|
4958
|
+
shippingAddress: {
|
|
4959
|
+
city: string;
|
|
4960
|
+
firstName: string;
|
|
4961
|
+
lastName: string;
|
|
4962
|
+
address1: string;
|
|
4963
|
+
countryCode: string;
|
|
4964
|
+
postalCode?: string | undefined;
|
|
4965
|
+
phone?: string | undefined;
|
|
4966
|
+
province?: string | undefined;
|
|
4967
|
+
address2?: string | undefined;
|
|
4968
|
+
company?: string | undefined;
|
|
4969
|
+
};
|
|
4970
|
+
shippingSelections: {
|
|
4971
|
+
groupId: string;
|
|
4972
|
+
optionId: string;
|
|
4973
|
+
}[];
|
|
4974
|
+
paymentMethod: string;
|
|
4975
|
+
adjustmentPayments: {
|
|
4976
|
+
label: string;
|
|
4977
|
+
id: string;
|
|
4978
|
+
amount: Money;
|
|
4979
|
+
kind: "gift-card" | "store-credit";
|
|
4980
|
+
}[];
|
|
4981
|
+
promoCode: string;
|
|
4982
|
+
billingAddress?: {
|
|
4983
|
+
city: string;
|
|
4984
|
+
firstName: string;
|
|
4985
|
+
lastName: string;
|
|
4986
|
+
address1: string;
|
|
4987
|
+
countryCode: string;
|
|
4988
|
+
postalCode?: string | undefined;
|
|
4989
|
+
phone?: string | undefined;
|
|
4990
|
+
province?: string | undefined;
|
|
4991
|
+
address2?: string | undefined;
|
|
4992
|
+
company?: string | undefined;
|
|
4993
|
+
} | undefined;
|
|
4994
|
+
}>;
|
|
4995
|
+
export declare const checkoutOrderLineSchema: z.ZodObject<{
|
|
4996
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
4997
|
+
name: z.ZodString;
|
|
4998
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
4999
|
+
quantity: z.ZodNumber;
|
|
5000
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5001
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5002
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5003
|
+
}, "strip", z.ZodTypeAny, {
|
|
5004
|
+
id: string | number;
|
|
5005
|
+
name: string;
|
|
5006
|
+
quantity: number;
|
|
5007
|
+
variant?: string | undefined;
|
|
5008
|
+
image?: string | undefined;
|
|
5009
|
+
unitPrice?: Money | undefined;
|
|
5010
|
+
lineTotal?: Money | undefined;
|
|
5011
|
+
}, {
|
|
5012
|
+
id: string | number;
|
|
5013
|
+
name: string;
|
|
5014
|
+
quantity: number;
|
|
5015
|
+
variant?: string | undefined;
|
|
5016
|
+
image?: string | undefined;
|
|
5017
|
+
unitPrice?: Money | undefined;
|
|
5018
|
+
lineTotal?: Money | undefined;
|
|
5019
|
+
}>;
|
|
5020
|
+
export declare const checkoutTotalsSchema: z.ZodObject<{
|
|
5021
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5022
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5023
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5024
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5025
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5026
|
+
}, "strip", z.ZodTypeAny, {
|
|
5027
|
+
subtotal: Money;
|
|
5028
|
+
total: Money;
|
|
5029
|
+
discount?: Money | undefined;
|
|
5030
|
+
tax?: Money | undefined;
|
|
5031
|
+
shipping?: Money | undefined;
|
|
5032
|
+
}, {
|
|
5033
|
+
subtotal: Money;
|
|
5034
|
+
total: Money;
|
|
5035
|
+
discount?: Money | undefined;
|
|
5036
|
+
tax?: Money | undefined;
|
|
5037
|
+
shipping?: Money | undefined;
|
|
5038
|
+
}>;
|
|
5039
|
+
export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
5040
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5041
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5042
|
+
name: z.ZodString;
|
|
5043
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
5044
|
+
quantity: z.ZodNumber;
|
|
5045
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5046
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5047
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5048
|
+
}, "strip", z.ZodTypeAny, {
|
|
5049
|
+
id: string | number;
|
|
5050
|
+
name: string;
|
|
5051
|
+
quantity: number;
|
|
5052
|
+
variant?: string | undefined;
|
|
5053
|
+
image?: string | undefined;
|
|
5054
|
+
unitPrice?: Money | undefined;
|
|
5055
|
+
lineTotal?: Money | undefined;
|
|
5056
|
+
}, {
|
|
5057
|
+
id: string | number;
|
|
5058
|
+
name: string;
|
|
5059
|
+
quantity: number;
|
|
5060
|
+
variant?: string | undefined;
|
|
5061
|
+
image?: string | undefined;
|
|
5062
|
+
unitPrice?: Money | undefined;
|
|
5063
|
+
lineTotal?: Money | undefined;
|
|
5064
|
+
}>, "many">;
|
|
5065
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
5066
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5067
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5068
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5069
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5070
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5071
|
+
}, "strip", z.ZodTypeAny, {
|
|
5072
|
+
subtotal: Money;
|
|
5073
|
+
total: Money;
|
|
5074
|
+
discount?: Money | undefined;
|
|
5075
|
+
tax?: Money | undefined;
|
|
5076
|
+
shipping?: Money | undefined;
|
|
5077
|
+
}, {
|
|
5078
|
+
subtotal: Money;
|
|
5079
|
+
total: Money;
|
|
5080
|
+
discount?: Money | undefined;
|
|
5081
|
+
tax?: Money | undefined;
|
|
5082
|
+
shipping?: Money | undefined;
|
|
5083
|
+
}>>;
|
|
5084
|
+
}, "strip", z.ZodTypeAny, {
|
|
5085
|
+
items: {
|
|
5086
|
+
id: string | number;
|
|
5087
|
+
name: string;
|
|
5088
|
+
quantity: number;
|
|
5089
|
+
variant?: string | undefined;
|
|
5090
|
+
image?: string | undefined;
|
|
5091
|
+
unitPrice?: Money | undefined;
|
|
5092
|
+
lineTotal?: Money | undefined;
|
|
5093
|
+
}[];
|
|
5094
|
+
totals?: {
|
|
5095
|
+
subtotal: Money;
|
|
5096
|
+
total: Money;
|
|
5097
|
+
discount?: Money | undefined;
|
|
5098
|
+
tax?: Money | undefined;
|
|
5099
|
+
shipping?: Money | undefined;
|
|
5100
|
+
} | undefined;
|
|
5101
|
+
}, {
|
|
5102
|
+
items: {
|
|
5103
|
+
id: string | number;
|
|
5104
|
+
name: string;
|
|
5105
|
+
quantity: number;
|
|
5106
|
+
variant?: string | undefined;
|
|
5107
|
+
image?: string | undefined;
|
|
5108
|
+
unitPrice?: Money | undefined;
|
|
5109
|
+
lineTotal?: Money | undefined;
|
|
5110
|
+
}[];
|
|
5111
|
+
totals?: {
|
|
5112
|
+
subtotal: Money;
|
|
5113
|
+
total: Money;
|
|
5114
|
+
discount?: Money | undefined;
|
|
5115
|
+
tax?: Money | undefined;
|
|
5116
|
+
shipping?: Money | undefined;
|
|
5117
|
+
} | undefined;
|
|
5118
|
+
}>;
|
|
5119
|
+
export declare const checkoutAvailabilitySchema: z.ZodObject<{
|
|
5120
|
+
status: z.ZodEnum<["available", "empty", "unavailable", "error"]>;
|
|
5121
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5122
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
5123
|
+
}, "strip", z.ZodTypeAny, {
|
|
5124
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5125
|
+
reason?: string | undefined;
|
|
5126
|
+
actionLabel?: string | undefined;
|
|
5127
|
+
}, {
|
|
5128
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5129
|
+
reason?: string | undefined;
|
|
5130
|
+
actionLabel?: string | undefined;
|
|
5131
|
+
}>;
|
|
5132
|
+
export declare const checkoutPropsSchema: z.ZodObject<{
|
|
5133
|
+
presentation: z.ZodEnum<["single-page", "stepper"]>;
|
|
5134
|
+
showReviewStep: z.ZodOptional<z.ZodBoolean>;
|
|
5135
|
+
contact: z.ZodObject<{
|
|
5136
|
+
email: z.ZodString;
|
|
5137
|
+
firstName: z.ZodString;
|
|
5138
|
+
lastName: z.ZodString;
|
|
5139
|
+
phone: z.ZodString;
|
|
5140
|
+
}, "strip", z.ZodTypeAny, {
|
|
5141
|
+
email: string;
|
|
5142
|
+
phone: string;
|
|
5143
|
+
firstName: string;
|
|
5144
|
+
lastName: string;
|
|
5145
|
+
}, {
|
|
5146
|
+
email: string;
|
|
5147
|
+
phone: string;
|
|
5148
|
+
firstName: string;
|
|
5149
|
+
lastName: string;
|
|
5150
|
+
}>;
|
|
5151
|
+
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
5152
|
+
id: z.ZodString;
|
|
5153
|
+
email: z.ZodString;
|
|
5154
|
+
firstName: z.ZodOptional<z.ZodString>;
|
|
5155
|
+
lastName: z.ZodOptional<z.ZodString>;
|
|
5156
|
+
}, "strip", z.ZodTypeAny, {
|
|
5157
|
+
id: string;
|
|
5158
|
+
email: string;
|
|
5159
|
+
firstName?: string | undefined;
|
|
5160
|
+
lastName?: string | undefined;
|
|
5161
|
+
}, {
|
|
5162
|
+
id: string;
|
|
5163
|
+
email: string;
|
|
5164
|
+
firstName?: string | undefined;
|
|
5165
|
+
lastName?: string | undefined;
|
|
5166
|
+
}>>>;
|
|
5167
|
+
savedAddresses: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5168
|
+
id: z.ZodString;
|
|
5169
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5170
|
+
address: z.ZodObject<{
|
|
5171
|
+
firstName: z.ZodString;
|
|
5172
|
+
lastName: z.ZodString;
|
|
5173
|
+
address1: z.ZodString;
|
|
5174
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
company: z.ZodOptional<z.ZodString>;
|
|
5176
|
+
city: z.ZodString;
|
|
5177
|
+
province: z.ZodOptional<z.ZodString>;
|
|
5178
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
5179
|
+
countryCode: z.ZodString;
|
|
5180
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
5181
|
+
}, "strip", z.ZodTypeAny, {
|
|
5182
|
+
city: string;
|
|
5183
|
+
firstName: string;
|
|
5184
|
+
lastName: string;
|
|
5185
|
+
address1: string;
|
|
5186
|
+
countryCode: string;
|
|
5187
|
+
postalCode?: string | undefined;
|
|
5188
|
+
phone?: string | undefined;
|
|
5189
|
+
province?: string | undefined;
|
|
5190
|
+
address2?: string | undefined;
|
|
5191
|
+
company?: string | undefined;
|
|
5192
|
+
}, {
|
|
5193
|
+
city: string;
|
|
5194
|
+
firstName: string;
|
|
5195
|
+
lastName: string;
|
|
5196
|
+
address1: string;
|
|
5197
|
+
countryCode: string;
|
|
5198
|
+
postalCode?: string | undefined;
|
|
5199
|
+
phone?: string | undefined;
|
|
5200
|
+
province?: string | undefined;
|
|
5201
|
+
address2?: string | undefined;
|
|
5202
|
+
company?: string | undefined;
|
|
5203
|
+
}>;
|
|
5204
|
+
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
5205
|
+
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
5206
|
+
}, "strip", z.ZodTypeAny, {
|
|
5207
|
+
address: {
|
|
5208
|
+
city: string;
|
|
5209
|
+
firstName: string;
|
|
5210
|
+
lastName: string;
|
|
5211
|
+
address1: string;
|
|
5212
|
+
countryCode: string;
|
|
5213
|
+
postalCode?: string | undefined;
|
|
5214
|
+
phone?: string | undefined;
|
|
5215
|
+
province?: string | undefined;
|
|
5216
|
+
address2?: string | undefined;
|
|
5217
|
+
company?: string | undefined;
|
|
5218
|
+
};
|
|
5219
|
+
id: string;
|
|
5220
|
+
label?: string | undefined;
|
|
5221
|
+
isDefaultShipping?: boolean | undefined;
|
|
5222
|
+
isDefaultBilling?: boolean | undefined;
|
|
5223
|
+
}, {
|
|
5224
|
+
address: {
|
|
5225
|
+
city: string;
|
|
5226
|
+
firstName: string;
|
|
5227
|
+
lastName: string;
|
|
5228
|
+
address1: string;
|
|
5229
|
+
countryCode: string;
|
|
5230
|
+
postalCode?: string | undefined;
|
|
5231
|
+
phone?: string | undefined;
|
|
5232
|
+
province?: string | undefined;
|
|
5233
|
+
address2?: string | undefined;
|
|
5234
|
+
company?: string | undefined;
|
|
5235
|
+
};
|
|
5236
|
+
id: string;
|
|
5237
|
+
label?: string | undefined;
|
|
5238
|
+
isDefaultShipping?: boolean | undefined;
|
|
5239
|
+
isDefaultBilling?: boolean | undefined;
|
|
5240
|
+
}>, "many">>;
|
|
5241
|
+
savedAddressState: z.ZodOptional<z.ZodObject<{
|
|
5242
|
+
pendingId: z.ZodOptional<z.ZodString>;
|
|
5243
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
5244
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5245
|
+
message: z.ZodString;
|
|
5246
|
+
}, "strip", z.ZodTypeAny, {
|
|
5247
|
+
message: string;
|
|
5248
|
+
id?: string | undefined;
|
|
5249
|
+
}, {
|
|
5250
|
+
message: string;
|
|
5251
|
+
id?: string | undefined;
|
|
5252
|
+
}>>;
|
|
5253
|
+
lastSavedId: z.ZodOptional<z.ZodString>;
|
|
5254
|
+
lastAction: z.ZodOptional<z.ZodEnum<["saved", "deleted"]>>;
|
|
5255
|
+
}, "strip", z.ZodTypeAny, {
|
|
5256
|
+
error?: {
|
|
5257
|
+
message: string;
|
|
5258
|
+
id?: string | undefined;
|
|
5259
|
+
} | undefined;
|
|
5260
|
+
pendingId?: string | undefined;
|
|
5261
|
+
lastSavedId?: string | undefined;
|
|
5262
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
5263
|
+
}, {
|
|
5264
|
+
error?: {
|
|
5265
|
+
message: string;
|
|
5266
|
+
id?: string | undefined;
|
|
5267
|
+
} | undefined;
|
|
5268
|
+
pendingId?: string | undefined;
|
|
5269
|
+
lastSavedId?: string | undefined;
|
|
5270
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
5271
|
+
}>>;
|
|
5272
|
+
shippingAddress: z.ZodObject<{
|
|
5273
|
+
firstName: z.ZodString;
|
|
5274
|
+
lastName: z.ZodString;
|
|
5275
|
+
address1: z.ZodString;
|
|
5276
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
5277
|
+
company: z.ZodOptional<z.ZodString>;
|
|
5278
|
+
city: z.ZodString;
|
|
5279
|
+
province: z.ZodOptional<z.ZodString>;
|
|
5280
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
5281
|
+
countryCode: z.ZodString;
|
|
5282
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
5283
|
+
}, "strip", z.ZodTypeAny, {
|
|
5284
|
+
city: string;
|
|
5285
|
+
firstName: string;
|
|
5286
|
+
lastName: string;
|
|
5287
|
+
address1: string;
|
|
5288
|
+
countryCode: string;
|
|
5289
|
+
postalCode?: string | undefined;
|
|
5290
|
+
phone?: string | undefined;
|
|
5291
|
+
province?: string | undefined;
|
|
5292
|
+
address2?: string | undefined;
|
|
5293
|
+
company?: string | undefined;
|
|
5294
|
+
}, {
|
|
5295
|
+
city: string;
|
|
5296
|
+
firstName: string;
|
|
5297
|
+
lastName: string;
|
|
5298
|
+
address1: string;
|
|
5299
|
+
countryCode: string;
|
|
5300
|
+
postalCode?: string | undefined;
|
|
5301
|
+
phone?: string | undefined;
|
|
5302
|
+
province?: string | undefined;
|
|
5303
|
+
address2?: string | undefined;
|
|
5304
|
+
company?: string | undefined;
|
|
5305
|
+
}>;
|
|
5306
|
+
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
5307
|
+
firstName: z.ZodString;
|
|
5308
|
+
lastName: z.ZodString;
|
|
5309
|
+
address1: z.ZodString;
|
|
5310
|
+
address2: z.ZodOptional<z.ZodString>;
|
|
5311
|
+
company: z.ZodOptional<z.ZodString>;
|
|
5312
|
+
city: z.ZodString;
|
|
5313
|
+
province: z.ZodOptional<z.ZodString>;
|
|
5314
|
+
postalCode: z.ZodOptional<z.ZodString>;
|
|
5315
|
+
countryCode: z.ZodString;
|
|
5316
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
5317
|
+
}, "strip", z.ZodTypeAny, {
|
|
5318
|
+
city: string;
|
|
5319
|
+
firstName: string;
|
|
5320
|
+
lastName: string;
|
|
5321
|
+
address1: string;
|
|
5322
|
+
countryCode: string;
|
|
5323
|
+
postalCode?: string | undefined;
|
|
5324
|
+
phone?: string | undefined;
|
|
5325
|
+
province?: string | undefined;
|
|
5326
|
+
address2?: string | undefined;
|
|
5327
|
+
company?: string | undefined;
|
|
5328
|
+
}, {
|
|
5329
|
+
city: string;
|
|
5330
|
+
firstName: string;
|
|
5331
|
+
lastName: string;
|
|
5332
|
+
address1: string;
|
|
5333
|
+
countryCode: string;
|
|
5334
|
+
postalCode?: string | undefined;
|
|
5335
|
+
phone?: string | undefined;
|
|
5336
|
+
province?: string | undefined;
|
|
5337
|
+
address2?: string | undefined;
|
|
5338
|
+
company?: string | undefined;
|
|
5339
|
+
}>>;
|
|
5340
|
+
sameAsShipping: z.ZodBoolean;
|
|
5341
|
+
shippingLocations: z.ZodOptional<z.ZodObject<{
|
|
5342
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
5343
|
+
value: z.ZodString;
|
|
5344
|
+
label: z.ZodString;
|
|
5345
|
+
}, "strip", z.ZodTypeAny, {
|
|
5346
|
+
label: string;
|
|
5347
|
+
value: string;
|
|
5348
|
+
}, {
|
|
5349
|
+
label: string;
|
|
5350
|
+
value: string;
|
|
5351
|
+
}>, "many">;
|
|
5352
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
5353
|
+
value: z.ZodString;
|
|
5354
|
+
label: z.ZodString;
|
|
5355
|
+
}, "strip", z.ZodTypeAny, {
|
|
5356
|
+
label: string;
|
|
5357
|
+
value: string;
|
|
5358
|
+
}, {
|
|
5359
|
+
label: string;
|
|
5360
|
+
value: string;
|
|
5361
|
+
}>, "many">;
|
|
5362
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
5363
|
+
value: z.ZodString;
|
|
5364
|
+
label: z.ZodString;
|
|
5365
|
+
}, "strip", z.ZodTypeAny, {
|
|
5366
|
+
label: string;
|
|
5367
|
+
value: string;
|
|
5368
|
+
}, {
|
|
5369
|
+
label: string;
|
|
5370
|
+
value: string;
|
|
5371
|
+
}>, "many">;
|
|
5372
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5373
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5374
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5375
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
5376
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
5377
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
5378
|
+
}, "strip", z.ZodTypeAny, {
|
|
5379
|
+
countries: {
|
|
5380
|
+
label: string;
|
|
5381
|
+
value: string;
|
|
5382
|
+
}[];
|
|
5383
|
+
provinces: {
|
|
5384
|
+
label: string;
|
|
5385
|
+
value: string;
|
|
5386
|
+
}[];
|
|
5387
|
+
cities: {
|
|
5388
|
+
label: string;
|
|
5389
|
+
value: string;
|
|
5390
|
+
}[];
|
|
5391
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5392
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5393
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5394
|
+
countriesError?: string | undefined;
|
|
5395
|
+
provincesError?: string | undefined;
|
|
5396
|
+
citiesError?: string | undefined;
|
|
5397
|
+
}, {
|
|
5398
|
+
countries: {
|
|
5399
|
+
label: string;
|
|
5400
|
+
value: string;
|
|
5401
|
+
}[];
|
|
5402
|
+
provinces: {
|
|
5403
|
+
label: string;
|
|
5404
|
+
value: string;
|
|
5405
|
+
}[];
|
|
5406
|
+
cities: {
|
|
5407
|
+
label: string;
|
|
5408
|
+
value: string;
|
|
5409
|
+
}[];
|
|
5410
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5411
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5412
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5413
|
+
countriesError?: string | undefined;
|
|
5414
|
+
provincesError?: string | undefined;
|
|
5415
|
+
citiesError?: string | undefined;
|
|
5416
|
+
}>>;
|
|
5417
|
+
billingLocations: z.ZodOptional<z.ZodObject<{
|
|
5418
|
+
countries: z.ZodArray<z.ZodObject<{
|
|
5419
|
+
value: z.ZodString;
|
|
5420
|
+
label: z.ZodString;
|
|
5421
|
+
}, "strip", z.ZodTypeAny, {
|
|
5422
|
+
label: string;
|
|
5423
|
+
value: string;
|
|
5424
|
+
}, {
|
|
5425
|
+
label: string;
|
|
5426
|
+
value: string;
|
|
5427
|
+
}>, "many">;
|
|
5428
|
+
provinces: z.ZodArray<z.ZodObject<{
|
|
5429
|
+
value: z.ZodString;
|
|
5430
|
+
label: z.ZodString;
|
|
5431
|
+
}, "strip", z.ZodTypeAny, {
|
|
5432
|
+
label: string;
|
|
5433
|
+
value: string;
|
|
5434
|
+
}, {
|
|
5435
|
+
label: string;
|
|
5436
|
+
value: string;
|
|
5437
|
+
}>, "many">;
|
|
5438
|
+
cities: z.ZodArray<z.ZodObject<{
|
|
5439
|
+
value: z.ZodString;
|
|
5440
|
+
label: z.ZodString;
|
|
5441
|
+
}, "strip", z.ZodTypeAny, {
|
|
5442
|
+
label: string;
|
|
5443
|
+
value: string;
|
|
5444
|
+
}, {
|
|
5445
|
+
label: string;
|
|
5446
|
+
value: string;
|
|
5447
|
+
}>, "many">;
|
|
5448
|
+
countriesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5449
|
+
provincesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5450
|
+
citiesState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5451
|
+
countriesError: z.ZodOptional<z.ZodString>;
|
|
5452
|
+
provincesError: z.ZodOptional<z.ZodString>;
|
|
5453
|
+
citiesError: z.ZodOptional<z.ZodString>;
|
|
5454
|
+
}, "strip", z.ZodTypeAny, {
|
|
5455
|
+
countries: {
|
|
5456
|
+
label: string;
|
|
5457
|
+
value: string;
|
|
5458
|
+
}[];
|
|
5459
|
+
provinces: {
|
|
5460
|
+
label: string;
|
|
5461
|
+
value: string;
|
|
5462
|
+
}[];
|
|
5463
|
+
cities: {
|
|
5464
|
+
label: string;
|
|
5465
|
+
value: string;
|
|
5466
|
+
}[];
|
|
5467
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5468
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5469
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5470
|
+
countriesError?: string | undefined;
|
|
5471
|
+
provincesError?: string | undefined;
|
|
5472
|
+
citiesError?: string | undefined;
|
|
5473
|
+
}, {
|
|
5474
|
+
countries: {
|
|
5475
|
+
label: string;
|
|
5476
|
+
value: string;
|
|
5477
|
+
}[];
|
|
5478
|
+
provinces: {
|
|
5479
|
+
label: string;
|
|
5480
|
+
value: string;
|
|
5481
|
+
}[];
|
|
5482
|
+
cities: {
|
|
5483
|
+
label: string;
|
|
5484
|
+
value: string;
|
|
5485
|
+
}[];
|
|
5486
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5487
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5488
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5489
|
+
countriesError?: string | undefined;
|
|
5490
|
+
provincesError?: string | undefined;
|
|
5491
|
+
citiesError?: string | undefined;
|
|
5492
|
+
}>>;
|
|
5493
|
+
shippingGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5494
|
+
id: z.ZodString;
|
|
5495
|
+
label: z.ZodOptional<z.ZodString>;
|
|
5496
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5497
|
+
lineId: z.ZodString;
|
|
5498
|
+
quantity: z.ZodOptional<z.ZodNumber>;
|
|
5499
|
+
}, "strip", z.ZodTypeAny, {
|
|
5500
|
+
lineId: string;
|
|
5501
|
+
quantity?: number | undefined;
|
|
5502
|
+
}, {
|
|
5503
|
+
lineId: string;
|
|
5504
|
+
quantity?: number | undefined;
|
|
5505
|
+
}>, "many">>;
|
|
5506
|
+
itemCount: z.ZodOptional<z.ZodNumber>;
|
|
5507
|
+
options: z.ZodArray<z.ZodObject<{
|
|
5508
|
+
id: z.ZodString;
|
|
5509
|
+
name: z.ZodString;
|
|
5510
|
+
price: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5511
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5512
|
+
estimatedDays: z.ZodOptional<z.ZodString>;
|
|
5513
|
+
pickup: z.ZodOptional<z.ZodBoolean>;
|
|
5514
|
+
locationName: z.ZodOptional<z.ZodString>;
|
|
5515
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5516
|
+
disabledReason: z.ZodOptional<z.ZodString>;
|
|
5517
|
+
}, "strip", z.ZodTypeAny, {
|
|
5518
|
+
id: string;
|
|
5519
|
+
name: string;
|
|
5520
|
+
disabled?: boolean | undefined;
|
|
5521
|
+
price?: Money | undefined;
|
|
5522
|
+
description?: string | undefined;
|
|
5523
|
+
estimatedDays?: string | undefined;
|
|
5524
|
+
pickup?: boolean | undefined;
|
|
5525
|
+
locationName?: string | undefined;
|
|
5526
|
+
disabledReason?: string | undefined;
|
|
5527
|
+
}, {
|
|
5528
|
+
id: string;
|
|
5529
|
+
name: string;
|
|
5530
|
+
disabled?: boolean | undefined;
|
|
5531
|
+
price?: Money | undefined;
|
|
5532
|
+
description?: string | undefined;
|
|
5533
|
+
estimatedDays?: string | undefined;
|
|
5534
|
+
pickup?: boolean | undefined;
|
|
5535
|
+
locationName?: string | undefined;
|
|
5536
|
+
disabledReason?: string | undefined;
|
|
5537
|
+
}>, "many">;
|
|
5538
|
+
selectedOptionId: z.ZodOptional<z.ZodString>;
|
|
5539
|
+
unavailableReason: z.ZodOptional<z.ZodString>;
|
|
5540
|
+
}, "strip", z.ZodTypeAny, {
|
|
5541
|
+
id: string;
|
|
5542
|
+
options: {
|
|
5543
|
+
id: string;
|
|
5544
|
+
name: string;
|
|
5545
|
+
disabled?: boolean | undefined;
|
|
5546
|
+
price?: Money | undefined;
|
|
5547
|
+
description?: string | undefined;
|
|
5548
|
+
estimatedDays?: string | undefined;
|
|
5549
|
+
pickup?: boolean | undefined;
|
|
5550
|
+
locationName?: string | undefined;
|
|
5551
|
+
disabledReason?: string | undefined;
|
|
5552
|
+
}[];
|
|
5553
|
+
label?: string | undefined;
|
|
5554
|
+
items?: {
|
|
5555
|
+
lineId: string;
|
|
5556
|
+
quantity?: number | undefined;
|
|
5557
|
+
}[] | undefined;
|
|
5558
|
+
unavailableReason?: string | undefined;
|
|
5559
|
+
itemCount?: number | undefined;
|
|
5560
|
+
selectedOptionId?: string | undefined;
|
|
5561
|
+
}, {
|
|
5562
|
+
id: string;
|
|
5563
|
+
options: {
|
|
5564
|
+
id: string;
|
|
5565
|
+
name: string;
|
|
5566
|
+
disabled?: boolean | undefined;
|
|
5567
|
+
price?: Money | undefined;
|
|
5568
|
+
description?: string | undefined;
|
|
5569
|
+
estimatedDays?: string | undefined;
|
|
5570
|
+
pickup?: boolean | undefined;
|
|
5571
|
+
locationName?: string | undefined;
|
|
5572
|
+
disabledReason?: string | undefined;
|
|
5573
|
+
}[];
|
|
5574
|
+
label?: string | undefined;
|
|
5575
|
+
items?: {
|
|
5576
|
+
lineId: string;
|
|
5577
|
+
quantity?: number | undefined;
|
|
5578
|
+
}[] | undefined;
|
|
5579
|
+
unavailableReason?: string | undefined;
|
|
5580
|
+
itemCount?: number | undefined;
|
|
5581
|
+
selectedOptionId?: string | undefined;
|
|
5582
|
+
}>, "many">>;
|
|
5583
|
+
shippingState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5584
|
+
paymentMethods: z.ZodOptional<z.ZodArray<z.ZodType<PaymentMethod, z.ZodTypeDef, PaymentMethod>, "many">>;
|
|
5585
|
+
paymentState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5586
|
+
paymentMethod: z.ZodString;
|
|
5587
|
+
adjustmentPayments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5588
|
+
id: z.ZodString;
|
|
5589
|
+
kind: z.ZodEnum<["gift-card", "store-credit"]>;
|
|
5590
|
+
label: z.ZodString;
|
|
5591
|
+
amount: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5592
|
+
}, "strip", z.ZodTypeAny, {
|
|
5593
|
+
label: string;
|
|
5594
|
+
id: string;
|
|
5595
|
+
amount: Money;
|
|
5596
|
+
kind: "gift-card" | "store-credit";
|
|
5597
|
+
}, {
|
|
5598
|
+
label: string;
|
|
5599
|
+
id: string;
|
|
5600
|
+
amount: Money;
|
|
5601
|
+
kind: "gift-card" | "store-credit";
|
|
5602
|
+
}>, "many">>;
|
|
5603
|
+
orderSummary: z.ZodOptional<z.ZodObject<{
|
|
5604
|
+
items: z.ZodArray<z.ZodObject<{
|
|
5605
|
+
id: z.ZodUnion<[z.ZodString, z.ZodNumber]>;
|
|
5606
|
+
name: z.ZodString;
|
|
5607
|
+
variant: z.ZodOptional<z.ZodString>;
|
|
5608
|
+
quantity: z.ZodNumber;
|
|
5609
|
+
lineTotal: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5610
|
+
unitPrice: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5611
|
+
image: z.ZodOptional<z.ZodString>;
|
|
5612
|
+
}, "strip", z.ZodTypeAny, {
|
|
5613
|
+
id: string | number;
|
|
5614
|
+
name: string;
|
|
5615
|
+
quantity: number;
|
|
5616
|
+
variant?: string | undefined;
|
|
5617
|
+
image?: string | undefined;
|
|
5618
|
+
unitPrice?: Money | undefined;
|
|
5619
|
+
lineTotal?: Money | undefined;
|
|
5620
|
+
}, {
|
|
5621
|
+
id: string | number;
|
|
5622
|
+
name: string;
|
|
5623
|
+
quantity: number;
|
|
5624
|
+
variant?: string | undefined;
|
|
5625
|
+
image?: string | undefined;
|
|
5626
|
+
unitPrice?: Money | undefined;
|
|
5627
|
+
lineTotal?: Money | undefined;
|
|
5628
|
+
}>, "many">;
|
|
5629
|
+
totals: z.ZodOptional<z.ZodObject<{
|
|
5630
|
+
subtotal: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5631
|
+
discount: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5632
|
+
tax: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5633
|
+
shipping: z.ZodOptional<z.ZodType<Money, z.ZodTypeDef, Money>>;
|
|
5634
|
+
total: z.ZodType<Money, z.ZodTypeDef, Money>;
|
|
5635
|
+
}, "strip", z.ZodTypeAny, {
|
|
5636
|
+
subtotal: Money;
|
|
5637
|
+
total: Money;
|
|
5638
|
+
discount?: Money | undefined;
|
|
5639
|
+
tax?: Money | undefined;
|
|
5640
|
+
shipping?: Money | undefined;
|
|
5641
|
+
}, {
|
|
5642
|
+
subtotal: Money;
|
|
5643
|
+
total: Money;
|
|
5644
|
+
discount?: Money | undefined;
|
|
5645
|
+
tax?: Money | undefined;
|
|
5646
|
+
shipping?: Money | undefined;
|
|
5647
|
+
}>>;
|
|
5648
|
+
}, "strip", z.ZodTypeAny, {
|
|
5649
|
+
items: {
|
|
5650
|
+
id: string | number;
|
|
5651
|
+
name: string;
|
|
5652
|
+
quantity: number;
|
|
5653
|
+
variant?: string | undefined;
|
|
5654
|
+
image?: string | undefined;
|
|
5655
|
+
unitPrice?: Money | undefined;
|
|
5656
|
+
lineTotal?: Money | undefined;
|
|
5657
|
+
}[];
|
|
5658
|
+
totals?: {
|
|
5659
|
+
subtotal: Money;
|
|
5660
|
+
total: Money;
|
|
5661
|
+
discount?: Money | undefined;
|
|
5662
|
+
tax?: Money | undefined;
|
|
5663
|
+
shipping?: Money | undefined;
|
|
5664
|
+
} | undefined;
|
|
5665
|
+
}, {
|
|
5666
|
+
items: {
|
|
5667
|
+
id: string | number;
|
|
5668
|
+
name: string;
|
|
5669
|
+
quantity: number;
|
|
5670
|
+
variant?: string | undefined;
|
|
5671
|
+
image?: string | undefined;
|
|
5672
|
+
unitPrice?: Money | undefined;
|
|
5673
|
+
lineTotal?: Money | undefined;
|
|
5674
|
+
}[];
|
|
5675
|
+
totals?: {
|
|
5676
|
+
subtotal: Money;
|
|
5677
|
+
total: Money;
|
|
5678
|
+
discount?: Money | undefined;
|
|
5679
|
+
tax?: Money | undefined;
|
|
5680
|
+
shipping?: Money | undefined;
|
|
5681
|
+
} | undefined;
|
|
5682
|
+
}>>;
|
|
5683
|
+
totalsState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error"]>>;
|
|
5684
|
+
promoCode: z.ZodOptional<z.ZodString>;
|
|
5685
|
+
labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5686
|
+
fieldErrors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5687
|
+
fieldDescriptions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
5688
|
+
availability: z.ZodOptional<z.ZodObject<{
|
|
5689
|
+
status: z.ZodEnum<["available", "empty", "unavailable", "error"]>;
|
|
5690
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5691
|
+
actionLabel: z.ZodOptional<z.ZodString>;
|
|
5692
|
+
}, "strip", z.ZodTypeAny, {
|
|
5693
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5694
|
+
reason?: string | undefined;
|
|
5695
|
+
actionLabel?: string | undefined;
|
|
5696
|
+
}, {
|
|
5697
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5698
|
+
reason?: string | undefined;
|
|
5699
|
+
actionLabel?: string | undefined;
|
|
5700
|
+
}>>;
|
|
5701
|
+
interruption: z.ZodOptional<z.ZodObject<{
|
|
5702
|
+
kind: z.ZodEnum<["totals-changed", "price-changed", "stock-reduced", "item-unavailable", "session-expired", "payment-failed"]>;
|
|
5703
|
+
severity: z.ZodEnum<["info", "blocking"]>;
|
|
5704
|
+
title: z.ZodString;
|
|
5705
|
+
message: z.ZodString;
|
|
5706
|
+
changes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
5707
|
+
lineId: z.ZodOptional<z.ZodString>;
|
|
5708
|
+
label: z.ZodString;
|
|
5709
|
+
previous: z.ZodOptional<z.ZodString>;
|
|
5710
|
+
next: z.ZodOptional<z.ZodString>;
|
|
5711
|
+
}, "strip", z.ZodTypeAny, {
|
|
5712
|
+
label: string;
|
|
5713
|
+
next?: string | undefined;
|
|
5714
|
+
previous?: string | undefined;
|
|
5715
|
+
lineId?: string | undefined;
|
|
5716
|
+
}, {
|
|
5717
|
+
label: string;
|
|
5718
|
+
next?: string | undefined;
|
|
5719
|
+
previous?: string | undefined;
|
|
5720
|
+
lineId?: string | undefined;
|
|
5721
|
+
}>, "many">>;
|
|
5722
|
+
actions: z.ZodArray<z.ZodEnum<["acknowledge", "refresh", "return-to-cart", "retry"]>, "many">;
|
|
5723
|
+
}, "strip", z.ZodTypeAny, {
|
|
5724
|
+
title: string;
|
|
5725
|
+
message: string;
|
|
5726
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5727
|
+
severity: "info" | "blocking";
|
|
5728
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5729
|
+
changes?: {
|
|
5730
|
+
label: string;
|
|
5731
|
+
next?: string | undefined;
|
|
5732
|
+
previous?: string | undefined;
|
|
5733
|
+
lineId?: string | undefined;
|
|
5734
|
+
}[] | undefined;
|
|
5735
|
+
}, {
|
|
5736
|
+
title: string;
|
|
5737
|
+
message: string;
|
|
5738
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5739
|
+
severity: "info" | "blocking";
|
|
5740
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5741
|
+
changes?: {
|
|
5742
|
+
label: string;
|
|
5743
|
+
next?: string | undefined;
|
|
5744
|
+
previous?: string | undefined;
|
|
5745
|
+
lineId?: string | undefined;
|
|
5746
|
+
}[] | undefined;
|
|
5747
|
+
}>>;
|
|
5748
|
+
submitting: z.ZodOptional<z.ZodBoolean>;
|
|
5749
|
+
submitError: z.ZodOptional<z.ZodString>;
|
|
5750
|
+
}, "strip", z.ZodTypeAny, {
|
|
5751
|
+
presentation: "single-page" | "stepper";
|
|
5752
|
+
sameAsShipping: boolean;
|
|
5753
|
+
contact: {
|
|
5754
|
+
email: string;
|
|
5755
|
+
phone: string;
|
|
5756
|
+
firstName: string;
|
|
5757
|
+
lastName: string;
|
|
5758
|
+
};
|
|
5759
|
+
shippingAddress: {
|
|
5760
|
+
city: string;
|
|
5761
|
+
firstName: string;
|
|
5762
|
+
lastName: string;
|
|
5763
|
+
address1: string;
|
|
5764
|
+
countryCode: string;
|
|
5765
|
+
postalCode?: string | undefined;
|
|
5766
|
+
phone?: string | undefined;
|
|
5767
|
+
province?: string | undefined;
|
|
5768
|
+
address2?: string | undefined;
|
|
5769
|
+
company?: string | undefined;
|
|
5770
|
+
};
|
|
5771
|
+
paymentMethod: string;
|
|
5772
|
+
labels?: Record<string, string> | undefined;
|
|
5773
|
+
paymentMethods?: PaymentMethod[] | undefined;
|
|
5774
|
+
customer?: {
|
|
5775
|
+
id: string;
|
|
5776
|
+
email: string;
|
|
5777
|
+
firstName?: string | undefined;
|
|
5778
|
+
lastName?: string | undefined;
|
|
5779
|
+
} | null | undefined;
|
|
5780
|
+
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5781
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5782
|
+
billingAddress?: {
|
|
5783
|
+
city: string;
|
|
5784
|
+
firstName: string;
|
|
5785
|
+
lastName: string;
|
|
5786
|
+
address1: string;
|
|
5787
|
+
countryCode: string;
|
|
5788
|
+
postalCode?: string | undefined;
|
|
5789
|
+
phone?: string | undefined;
|
|
5790
|
+
province?: string | undefined;
|
|
5791
|
+
address2?: string | undefined;
|
|
5792
|
+
company?: string | undefined;
|
|
5793
|
+
} | undefined;
|
|
5794
|
+
adjustmentPayments?: {
|
|
5795
|
+
label: string;
|
|
5796
|
+
id: string;
|
|
5797
|
+
amount: Money;
|
|
5798
|
+
kind: "gift-card" | "store-credit";
|
|
5799
|
+
}[] | undefined;
|
|
5800
|
+
promoCode?: string | undefined;
|
|
5801
|
+
showReviewStep?: boolean | undefined;
|
|
5802
|
+
savedAddresses?: {
|
|
5803
|
+
address: {
|
|
5804
|
+
city: string;
|
|
5805
|
+
firstName: string;
|
|
5806
|
+
lastName: string;
|
|
5807
|
+
address1: string;
|
|
5808
|
+
countryCode: string;
|
|
5809
|
+
postalCode?: string | undefined;
|
|
5810
|
+
phone?: string | undefined;
|
|
5811
|
+
province?: string | undefined;
|
|
5812
|
+
address2?: string | undefined;
|
|
5813
|
+
company?: string | undefined;
|
|
5814
|
+
};
|
|
5815
|
+
id: string;
|
|
5816
|
+
label?: string | undefined;
|
|
5817
|
+
isDefaultShipping?: boolean | undefined;
|
|
5818
|
+
isDefaultBilling?: boolean | undefined;
|
|
5819
|
+
}[] | undefined;
|
|
5820
|
+
savedAddressState?: {
|
|
5821
|
+
error?: {
|
|
5822
|
+
message: string;
|
|
5823
|
+
id?: string | undefined;
|
|
5824
|
+
} | undefined;
|
|
5825
|
+
pendingId?: string | undefined;
|
|
5826
|
+
lastSavedId?: string | undefined;
|
|
5827
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
5828
|
+
} | undefined;
|
|
5829
|
+
shippingLocations?: {
|
|
5830
|
+
countries: {
|
|
5831
|
+
label: string;
|
|
5832
|
+
value: string;
|
|
5833
|
+
}[];
|
|
5834
|
+
provinces: {
|
|
5835
|
+
label: string;
|
|
5836
|
+
value: string;
|
|
5837
|
+
}[];
|
|
5838
|
+
cities: {
|
|
5839
|
+
label: string;
|
|
5840
|
+
value: string;
|
|
5841
|
+
}[];
|
|
5842
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5843
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5844
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5845
|
+
countriesError?: string | undefined;
|
|
5846
|
+
provincesError?: string | undefined;
|
|
5847
|
+
citiesError?: string | undefined;
|
|
5848
|
+
} | undefined;
|
|
5849
|
+
billingLocations?: {
|
|
5850
|
+
countries: {
|
|
5851
|
+
label: string;
|
|
5852
|
+
value: string;
|
|
5853
|
+
}[];
|
|
5854
|
+
provinces: {
|
|
5855
|
+
label: string;
|
|
5856
|
+
value: string;
|
|
5857
|
+
}[];
|
|
5858
|
+
cities: {
|
|
5859
|
+
label: string;
|
|
5860
|
+
value: string;
|
|
5861
|
+
}[];
|
|
5862
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5863
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5864
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5865
|
+
countriesError?: string | undefined;
|
|
5866
|
+
provincesError?: string | undefined;
|
|
5867
|
+
citiesError?: string | undefined;
|
|
5868
|
+
} | undefined;
|
|
5869
|
+
shippingGroups?: {
|
|
5870
|
+
id: string;
|
|
5871
|
+
options: {
|
|
5872
|
+
id: string;
|
|
5873
|
+
name: string;
|
|
5874
|
+
disabled?: boolean | undefined;
|
|
5875
|
+
price?: Money | undefined;
|
|
5876
|
+
description?: string | undefined;
|
|
5877
|
+
estimatedDays?: string | undefined;
|
|
5878
|
+
pickup?: boolean | undefined;
|
|
5879
|
+
locationName?: string | undefined;
|
|
5880
|
+
disabledReason?: string | undefined;
|
|
5881
|
+
}[];
|
|
5882
|
+
label?: string | undefined;
|
|
5883
|
+
items?: {
|
|
5884
|
+
lineId: string;
|
|
5885
|
+
quantity?: number | undefined;
|
|
5886
|
+
}[] | undefined;
|
|
5887
|
+
unavailableReason?: string | undefined;
|
|
5888
|
+
itemCount?: number | undefined;
|
|
5889
|
+
selectedOptionId?: string | undefined;
|
|
5890
|
+
}[] | undefined;
|
|
5891
|
+
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5892
|
+
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5893
|
+
orderSummary?: {
|
|
5894
|
+
items: {
|
|
5895
|
+
id: string | number;
|
|
5896
|
+
name: string;
|
|
5897
|
+
quantity: number;
|
|
5898
|
+
variant?: string | undefined;
|
|
5899
|
+
image?: string | undefined;
|
|
5900
|
+
unitPrice?: Money | undefined;
|
|
5901
|
+
lineTotal?: Money | undefined;
|
|
5902
|
+
}[];
|
|
5903
|
+
totals?: {
|
|
5904
|
+
subtotal: Money;
|
|
5905
|
+
total: Money;
|
|
5906
|
+
discount?: Money | undefined;
|
|
5907
|
+
tax?: Money | undefined;
|
|
5908
|
+
shipping?: Money | undefined;
|
|
5909
|
+
} | undefined;
|
|
5910
|
+
} | undefined;
|
|
5911
|
+
fieldDescriptions?: Record<string, string> | undefined;
|
|
5912
|
+
availability?: {
|
|
5913
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
5914
|
+
reason?: string | undefined;
|
|
5915
|
+
actionLabel?: string | undefined;
|
|
5916
|
+
} | undefined;
|
|
5917
|
+
interruption?: {
|
|
5918
|
+
title: string;
|
|
5919
|
+
message: string;
|
|
5920
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
5921
|
+
severity: "info" | "blocking";
|
|
5922
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
5923
|
+
changes?: {
|
|
5924
|
+
label: string;
|
|
5925
|
+
next?: string | undefined;
|
|
5926
|
+
previous?: string | undefined;
|
|
5927
|
+
lineId?: string | undefined;
|
|
5928
|
+
}[] | undefined;
|
|
5929
|
+
} | undefined;
|
|
5930
|
+
submitting?: boolean | undefined;
|
|
5931
|
+
submitError?: string | undefined;
|
|
5932
|
+
}, {
|
|
5933
|
+
presentation: "single-page" | "stepper";
|
|
5934
|
+
sameAsShipping: boolean;
|
|
5935
|
+
contact: {
|
|
5936
|
+
email: string;
|
|
5937
|
+
phone: string;
|
|
5938
|
+
firstName: string;
|
|
5939
|
+
lastName: string;
|
|
5940
|
+
};
|
|
5941
|
+
shippingAddress: {
|
|
5942
|
+
city: string;
|
|
5943
|
+
firstName: string;
|
|
5944
|
+
lastName: string;
|
|
5945
|
+
address1: string;
|
|
5946
|
+
countryCode: string;
|
|
5947
|
+
postalCode?: string | undefined;
|
|
5948
|
+
phone?: string | undefined;
|
|
5949
|
+
province?: string | undefined;
|
|
5950
|
+
address2?: string | undefined;
|
|
5951
|
+
company?: string | undefined;
|
|
5952
|
+
};
|
|
5953
|
+
paymentMethod: string;
|
|
5954
|
+
labels?: Record<string, string> | undefined;
|
|
5955
|
+
paymentMethods?: PaymentMethod[] | undefined;
|
|
5956
|
+
customer?: {
|
|
5957
|
+
id: string;
|
|
5958
|
+
email: string;
|
|
5959
|
+
firstName?: string | undefined;
|
|
5960
|
+
lastName?: string | undefined;
|
|
5961
|
+
} | null | undefined;
|
|
5962
|
+
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5963
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5964
|
+
billingAddress?: {
|
|
5965
|
+
city: string;
|
|
5966
|
+
firstName: string;
|
|
5967
|
+
lastName: string;
|
|
5968
|
+
address1: string;
|
|
5969
|
+
countryCode: string;
|
|
5970
|
+
postalCode?: string | undefined;
|
|
5971
|
+
phone?: string | undefined;
|
|
5972
|
+
province?: string | undefined;
|
|
5973
|
+
address2?: string | undefined;
|
|
5974
|
+
company?: string | undefined;
|
|
5975
|
+
} | undefined;
|
|
5976
|
+
adjustmentPayments?: {
|
|
5977
|
+
label: string;
|
|
5978
|
+
id: string;
|
|
5979
|
+
amount: Money;
|
|
5980
|
+
kind: "gift-card" | "store-credit";
|
|
5981
|
+
}[] | undefined;
|
|
5982
|
+
promoCode?: string | undefined;
|
|
5983
|
+
showReviewStep?: boolean | undefined;
|
|
5984
|
+
savedAddresses?: {
|
|
5985
|
+
address: {
|
|
5986
|
+
city: string;
|
|
5987
|
+
firstName: string;
|
|
5988
|
+
lastName: string;
|
|
5989
|
+
address1: string;
|
|
5990
|
+
countryCode: string;
|
|
5991
|
+
postalCode?: string | undefined;
|
|
5992
|
+
phone?: string | undefined;
|
|
5993
|
+
province?: string | undefined;
|
|
5994
|
+
address2?: string | undefined;
|
|
5995
|
+
company?: string | undefined;
|
|
5996
|
+
};
|
|
5997
|
+
id: string;
|
|
5998
|
+
label?: string | undefined;
|
|
5999
|
+
isDefaultShipping?: boolean | undefined;
|
|
6000
|
+
isDefaultBilling?: boolean | undefined;
|
|
6001
|
+
}[] | undefined;
|
|
6002
|
+
savedAddressState?: {
|
|
6003
|
+
error?: {
|
|
6004
|
+
message: string;
|
|
6005
|
+
id?: string | undefined;
|
|
6006
|
+
} | undefined;
|
|
6007
|
+
pendingId?: string | undefined;
|
|
6008
|
+
lastSavedId?: string | undefined;
|
|
6009
|
+
lastAction?: "saved" | "deleted" | undefined;
|
|
6010
|
+
} | undefined;
|
|
6011
|
+
shippingLocations?: {
|
|
6012
|
+
countries: {
|
|
6013
|
+
label: string;
|
|
6014
|
+
value: string;
|
|
6015
|
+
}[];
|
|
6016
|
+
provinces: {
|
|
6017
|
+
label: string;
|
|
6018
|
+
value: string;
|
|
6019
|
+
}[];
|
|
6020
|
+
cities: {
|
|
6021
|
+
label: string;
|
|
6022
|
+
value: string;
|
|
6023
|
+
}[];
|
|
6024
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6025
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6026
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6027
|
+
countriesError?: string | undefined;
|
|
6028
|
+
provincesError?: string | undefined;
|
|
6029
|
+
citiesError?: string | undefined;
|
|
6030
|
+
} | undefined;
|
|
6031
|
+
billingLocations?: {
|
|
6032
|
+
countries: {
|
|
6033
|
+
label: string;
|
|
6034
|
+
value: string;
|
|
6035
|
+
}[];
|
|
6036
|
+
provinces: {
|
|
6037
|
+
label: string;
|
|
6038
|
+
value: string;
|
|
6039
|
+
}[];
|
|
6040
|
+
cities: {
|
|
6041
|
+
label: string;
|
|
6042
|
+
value: string;
|
|
6043
|
+
}[];
|
|
6044
|
+
countriesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6045
|
+
provincesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6046
|
+
citiesState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6047
|
+
countriesError?: string | undefined;
|
|
6048
|
+
provincesError?: string | undefined;
|
|
6049
|
+
citiesError?: string | undefined;
|
|
6050
|
+
} | undefined;
|
|
6051
|
+
shippingGroups?: {
|
|
6052
|
+
id: string;
|
|
6053
|
+
options: {
|
|
6054
|
+
id: string;
|
|
6055
|
+
name: string;
|
|
6056
|
+
disabled?: boolean | undefined;
|
|
6057
|
+
price?: Money | undefined;
|
|
6058
|
+
description?: string | undefined;
|
|
6059
|
+
estimatedDays?: string | undefined;
|
|
6060
|
+
pickup?: boolean | undefined;
|
|
6061
|
+
locationName?: string | undefined;
|
|
6062
|
+
disabledReason?: string | undefined;
|
|
6063
|
+
}[];
|
|
6064
|
+
label?: string | undefined;
|
|
6065
|
+
items?: {
|
|
6066
|
+
lineId: string;
|
|
6067
|
+
quantity?: number | undefined;
|
|
6068
|
+
}[] | undefined;
|
|
6069
|
+
unavailableReason?: string | undefined;
|
|
6070
|
+
itemCount?: number | undefined;
|
|
6071
|
+
selectedOptionId?: string | undefined;
|
|
6072
|
+
}[] | undefined;
|
|
6073
|
+
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6074
|
+
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
6075
|
+
orderSummary?: {
|
|
6076
|
+
items: {
|
|
6077
|
+
id: string | number;
|
|
6078
|
+
name: string;
|
|
6079
|
+
quantity: number;
|
|
6080
|
+
variant?: string | undefined;
|
|
6081
|
+
image?: string | undefined;
|
|
6082
|
+
unitPrice?: Money | undefined;
|
|
6083
|
+
lineTotal?: Money | undefined;
|
|
6084
|
+
}[];
|
|
6085
|
+
totals?: {
|
|
6086
|
+
subtotal: Money;
|
|
6087
|
+
total: Money;
|
|
6088
|
+
discount?: Money | undefined;
|
|
6089
|
+
tax?: Money | undefined;
|
|
6090
|
+
shipping?: Money | undefined;
|
|
6091
|
+
} | undefined;
|
|
6092
|
+
} | undefined;
|
|
6093
|
+
fieldDescriptions?: Record<string, string> | undefined;
|
|
6094
|
+
availability?: {
|
|
6095
|
+
status: "error" | "empty" | "available" | "unavailable";
|
|
6096
|
+
reason?: string | undefined;
|
|
6097
|
+
actionLabel?: string | undefined;
|
|
6098
|
+
} | undefined;
|
|
6099
|
+
interruption?: {
|
|
6100
|
+
title: string;
|
|
6101
|
+
message: string;
|
|
6102
|
+
kind: "totals-changed" | "price-changed" | "stock-reduced" | "item-unavailable" | "session-expired" | "payment-failed";
|
|
6103
|
+
severity: "info" | "blocking";
|
|
6104
|
+
actions: ("acknowledge" | "refresh" | "return-to-cart" | "retry")[];
|
|
6105
|
+
changes?: {
|
|
6106
|
+
label: string;
|
|
6107
|
+
next?: string | undefined;
|
|
6108
|
+
previous?: string | undefined;
|
|
6109
|
+
lineId?: string | undefined;
|
|
6110
|
+
}[] | undefined;
|
|
6111
|
+
} | undefined;
|
|
6112
|
+
submitting?: boolean | undefined;
|
|
6113
|
+
submitError?: string | undefined;
|
|
6114
|
+
}>;
|
|
4006
6115
|
export { isCompleteFiniteDecimal, isAvailableMoney, formatMoney } from './money';
|
|
4007
6116
|
export { resolveAbsoluteQuantity } from './cart';
|
|
6117
|
+
export * from './contracts/marketplace-product-card';
|
|
6118
|
+
export * from './contracts/checkout-commerce-v1';
|
|
4008
6119
|
//# sourceMappingURL=contracts.d.ts.map
|