@thorprovider/blocks 4.0.0 → 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/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/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/index.d.ts +10 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +14 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -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.d.ts +515 -177
- package/dist/lib/contracts.d.ts.map +1 -1
- package/dist/lib/contracts.js +81 -1
- package/dist/lib/contracts.js.map +1 -1
- package/dist/lib/contracts.mjs +70 -0
- package/dist/lib/contracts.mjs.map +1 -1
- package/package.json +1 -1
package/dist/lib/contracts.d.ts
CHANGED
|
@@ -696,8 +696,8 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
696
696
|
count: number;
|
|
697
697
|
} | undefined;
|
|
698
698
|
shippingLabel?: string | undefined;
|
|
699
|
-
selectedVariantId?: string | null | undefined;
|
|
700
699
|
quantity?: number | undefined;
|
|
700
|
+
selectedVariantId?: string | null | undefined;
|
|
701
701
|
deliveryEstimate?: string | undefined;
|
|
702
702
|
shipping?: Money | undefined;
|
|
703
703
|
specifications?: Record<string, string> | undefined;
|
|
@@ -787,8 +787,8 @@ export declare const productOverviewPropsSchema: z.ZodObject<{
|
|
|
787
787
|
count: number;
|
|
788
788
|
} | undefined;
|
|
789
789
|
shippingLabel?: string | undefined;
|
|
790
|
-
selectedVariantId?: string | null | undefined;
|
|
791
790
|
quantity?: number | undefined;
|
|
791
|
+
selectedVariantId?: string | null | undefined;
|
|
792
792
|
deliveryEstimate?: string | undefined;
|
|
793
793
|
shipping?: Money | undefined;
|
|
794
794
|
specifications?: Record<string, string> | undefined;
|
|
@@ -892,15 +892,15 @@ export declare const cartTotalsSchema: z.ZodObject<{
|
|
|
892
892
|
}, "strip", z.ZodTypeAny, {
|
|
893
893
|
subtotal: Money;
|
|
894
894
|
total: Money;
|
|
895
|
-
shipping?: Money | undefined;
|
|
896
895
|
discount?: Money | undefined;
|
|
897
896
|
tax?: Money | undefined;
|
|
897
|
+
shipping?: Money | undefined;
|
|
898
898
|
}, {
|
|
899
899
|
subtotal: Money;
|
|
900
900
|
total: Money;
|
|
901
|
-
shipping?: Money | undefined;
|
|
902
901
|
discount?: Money | undefined;
|
|
903
902
|
tax?: Money | undefined;
|
|
903
|
+
shipping?: Money | undefined;
|
|
904
904
|
}>;
|
|
905
905
|
export type CartTotals = z.infer<typeof cartTotalsSchema>;
|
|
906
906
|
export declare const recentlyViewedItemSchema: z.ZodObject<{
|
|
@@ -1484,15 +1484,15 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1484
1484
|
}, "strip", z.ZodTypeAny, {
|
|
1485
1485
|
subtotal: Money;
|
|
1486
1486
|
total: Money;
|
|
1487
|
-
shipping?: Money | undefined;
|
|
1488
1487
|
discount?: Money | undefined;
|
|
1489
1488
|
tax?: Money | undefined;
|
|
1489
|
+
shipping?: Money | undefined;
|
|
1490
1490
|
}, {
|
|
1491
1491
|
subtotal: Money;
|
|
1492
1492
|
total: Money;
|
|
1493
|
-
shipping?: Money | undefined;
|
|
1494
1493
|
discount?: Money | undefined;
|
|
1495
1494
|
tax?: Money | undefined;
|
|
1495
|
+
shipping?: Money | undefined;
|
|
1496
1496
|
}>>;
|
|
1497
1497
|
totalsState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error"]>>;
|
|
1498
1498
|
totalsErrorLabel: z.ZodOptional<z.ZodString>;
|
|
@@ -1546,6 +1546,7 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1546
1546
|
presentation?: "page" | "compact" | undefined;
|
|
1547
1547
|
retryLabel?: string | undefined;
|
|
1548
1548
|
shippingLabel?: string | undefined;
|
|
1549
|
+
discountLabel?: string | undefined;
|
|
1549
1550
|
emptyLabel?: string | undefined;
|
|
1550
1551
|
recentlyViewed?: {
|
|
1551
1552
|
id: string;
|
|
@@ -1556,9 +1557,9 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1556
1557
|
totals?: {
|
|
1557
1558
|
subtotal: Money;
|
|
1558
1559
|
total: Money;
|
|
1559
|
-
shipping?: Money | undefined;
|
|
1560
1560
|
discount?: Money | undefined;
|
|
1561
1561
|
tax?: Money | undefined;
|
|
1562
|
+
shipping?: Money | undefined;
|
|
1562
1563
|
} | undefined;
|
|
1563
1564
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
1564
1565
|
totalsErrorLabel?: string | undefined;
|
|
@@ -1566,7 +1567,6 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1566
1567
|
amountUnavailableLabel?: string | undefined;
|
|
1567
1568
|
titleLabel?: string | undefined;
|
|
1568
1569
|
subtotalLabel?: string | undefined;
|
|
1569
|
-
discountLabel?: string | undefined;
|
|
1570
1570
|
taxLabel?: string | undefined;
|
|
1571
1571
|
shippingFreeLabel?: string | undefined;
|
|
1572
1572
|
totalLabel?: string | undefined;
|
|
@@ -1604,12 +1604,13 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1604
1604
|
presentation?: "page" | "compact" | undefined;
|
|
1605
1605
|
retryLabel?: string | undefined;
|
|
1606
1606
|
shippingLabel?: string | undefined;
|
|
1607
|
-
|
|
1607
|
+
discountLabel?: string | undefined;
|
|
1608
1608
|
promotions?: {
|
|
1609
1609
|
threshold: number;
|
|
1610
1610
|
reward: string;
|
|
1611
1611
|
icon?: string | undefined;
|
|
1612
1612
|
}[] | undefined;
|
|
1613
|
+
emptyLabel?: string | undefined;
|
|
1613
1614
|
recentlyViewed?: {
|
|
1614
1615
|
id: string;
|
|
1615
1616
|
name: string;
|
|
@@ -1619,9 +1620,9 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1619
1620
|
totals?: {
|
|
1620
1621
|
subtotal: Money;
|
|
1621
1622
|
total: Money;
|
|
1622
|
-
shipping?: Money | undefined;
|
|
1623
1623
|
discount?: Money | undefined;
|
|
1624
1624
|
tax?: Money | undefined;
|
|
1625
|
+
shipping?: Money | undefined;
|
|
1625
1626
|
} | undefined;
|
|
1626
1627
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
1627
1628
|
totalsErrorLabel?: string | undefined;
|
|
@@ -1629,7 +1630,6 @@ export declare const shoppingCartPropsSchema: z.ZodObject<{
|
|
|
1629
1630
|
amountUnavailableLabel?: string | undefined;
|
|
1630
1631
|
titleLabel?: string | undefined;
|
|
1631
1632
|
subtotalLabel?: string | undefined;
|
|
1632
|
-
discountLabel?: string | undefined;
|
|
1633
1633
|
taxLabel?: string | undefined;
|
|
1634
1634
|
shippingFreeLabel?: string | undefined;
|
|
1635
1635
|
totalLabel?: string | undefined;
|
|
@@ -1993,7 +1993,6 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
1993
1993
|
}, "strip", z.ZodTypeAny, {
|
|
1994
1994
|
label: string;
|
|
1995
1995
|
href?: string | undefined;
|
|
1996
|
-
emphasis?: boolean | undefined;
|
|
1997
1996
|
groups?: {
|
|
1998
1997
|
items: {
|
|
1999
1998
|
label: string;
|
|
@@ -2003,10 +2002,10 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
2003
2002
|
}[];
|
|
2004
2003
|
title?: string | undefined;
|
|
2005
2004
|
}[] | undefined;
|
|
2005
|
+
emphasis?: boolean | undefined;
|
|
2006
2006
|
}, {
|
|
2007
2007
|
label: string;
|
|
2008
2008
|
href?: string | undefined;
|
|
2009
|
-
emphasis?: boolean | undefined;
|
|
2010
2009
|
groups?: {
|
|
2011
2010
|
items: {
|
|
2012
2011
|
label: string;
|
|
@@ -2016,6 +2015,7 @@ export declare const navbarLinkSchema: z.ZodObject<{
|
|
|
2016
2015
|
}[];
|
|
2017
2016
|
title?: string | undefined;
|
|
2018
2017
|
}[] | undefined;
|
|
2018
|
+
emphasis?: boolean | undefined;
|
|
2019
2019
|
}>;
|
|
2020
2020
|
export type NavbarLinkSpec = z.infer<typeof navbarLinkSchema>;
|
|
2021
2021
|
export declare const navbarFeaturedSchema: z.ZodObject<{
|
|
@@ -2097,7 +2097,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2097
2097
|
}, "strip", z.ZodTypeAny, {
|
|
2098
2098
|
label: string;
|
|
2099
2099
|
href?: string | undefined;
|
|
2100
|
-
emphasis?: boolean | undefined;
|
|
2101
2100
|
groups?: {
|
|
2102
2101
|
items: {
|
|
2103
2102
|
label: string;
|
|
@@ -2107,10 +2106,10 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2107
2106
|
}[];
|
|
2108
2107
|
title?: string | undefined;
|
|
2109
2108
|
}[] | undefined;
|
|
2109
|
+
emphasis?: boolean | undefined;
|
|
2110
2110
|
}, {
|
|
2111
2111
|
label: string;
|
|
2112
2112
|
href?: string | undefined;
|
|
2113
|
-
emphasis?: boolean | undefined;
|
|
2114
2113
|
groups?: {
|
|
2115
2114
|
items: {
|
|
2116
2115
|
label: string;
|
|
@@ -2120,6 +2119,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2120
2119
|
}[];
|
|
2121
2120
|
title?: string | undefined;
|
|
2122
2121
|
}[] | undefined;
|
|
2122
|
+
emphasis?: boolean | undefined;
|
|
2123
2123
|
}>, "many">;
|
|
2124
2124
|
featured: z.ZodOptional<z.ZodObject<{
|
|
2125
2125
|
eyebrow: z.ZodString;
|
|
@@ -2172,7 +2172,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2172
2172
|
links: {
|
|
2173
2173
|
label: string;
|
|
2174
2174
|
href?: string | undefined;
|
|
2175
|
-
emphasis?: boolean | undefined;
|
|
2176
2175
|
groups?: {
|
|
2177
2176
|
items: {
|
|
2178
2177
|
label: string;
|
|
@@ -2182,6 +2181,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2182
2181
|
}[];
|
|
2183
2182
|
title?: string | undefined;
|
|
2184
2183
|
}[] | undefined;
|
|
2184
|
+
emphasis?: boolean | undefined;
|
|
2185
2185
|
}[];
|
|
2186
2186
|
logoText: string;
|
|
2187
2187
|
className?: string | undefined;
|
|
@@ -2209,7 +2209,6 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2209
2209
|
links: {
|
|
2210
2210
|
label: string;
|
|
2211
2211
|
href?: string | undefined;
|
|
2212
|
-
emphasis?: boolean | undefined;
|
|
2213
2212
|
groups?: {
|
|
2214
2213
|
items: {
|
|
2215
2214
|
label: string;
|
|
@@ -2219,6 +2218,7 @@ export declare const navbarPropsSchema: z.ZodObject<{
|
|
|
2219
2218
|
}[];
|
|
2220
2219
|
title?: string | undefined;
|
|
2221
2220
|
}[] | undefined;
|
|
2221
|
+
emphasis?: boolean | undefined;
|
|
2222
2222
|
}[];
|
|
2223
2223
|
logoText: string;
|
|
2224
2224
|
className?: string | undefined;
|
|
@@ -3762,6 +3762,343 @@ export declare const orderLinePropsSchema: z.ZodObject<{
|
|
|
3762
3762
|
amountUnavailableLabel?: string | undefined;
|
|
3763
3763
|
}>;
|
|
3764
3764
|
export type OrderLineSpecProps = z.infer<typeof orderLinePropsSchema>;
|
|
3765
|
+
export declare const accountFramePresentationSchema: z.ZodEnum<["stack", "tabs"]>;
|
|
3766
|
+
export type AccountFramePresentationSpec = z.infer<typeof accountFramePresentationSchema>;
|
|
3767
|
+
export declare const accountModuleSpecSchema: z.ZodObject<{
|
|
3768
|
+
id: z.ZodString;
|
|
3769
|
+
label: z.ZodString;
|
|
3770
|
+
href: z.ZodOptional<z.ZodString>;
|
|
3771
|
+
}, "strip", z.ZodTypeAny, {
|
|
3772
|
+
label: string;
|
|
3773
|
+
id: string;
|
|
3774
|
+
href?: string | undefined;
|
|
3775
|
+
}, {
|
|
3776
|
+
label: string;
|
|
3777
|
+
id: string;
|
|
3778
|
+
href?: string | undefined;
|
|
3779
|
+
}>;
|
|
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>;
|
|
3765
4102
|
/**
|
|
3766
4103
|
* Canonical review contracts (change: consolidate-review-family).
|
|
3767
4104
|
*
|
|
@@ -4097,27 +4434,27 @@ export declare const checkoutAddressValuesSchema: z.ZodObject<{
|
|
|
4097
4434
|
countryCode: z.ZodString;
|
|
4098
4435
|
phone: z.ZodOptional<z.ZodString>;
|
|
4099
4436
|
}, "strip", z.ZodTypeAny, {
|
|
4437
|
+
city: string;
|
|
4100
4438
|
firstName: string;
|
|
4101
4439
|
lastName: string;
|
|
4102
4440
|
address1: string;
|
|
4103
|
-
city: string;
|
|
4104
4441
|
countryCode: string;
|
|
4105
|
-
address2?: string | undefined;
|
|
4106
|
-
company?: string | undefined;
|
|
4107
|
-
province?: string | undefined;
|
|
4108
4442
|
postalCode?: string | undefined;
|
|
4109
4443
|
phone?: string | undefined;
|
|
4444
|
+
province?: string | undefined;
|
|
4445
|
+
address2?: string | undefined;
|
|
4446
|
+
company?: string | undefined;
|
|
4110
4447
|
}, {
|
|
4448
|
+
city: string;
|
|
4111
4449
|
firstName: string;
|
|
4112
4450
|
lastName: string;
|
|
4113
4451
|
address1: string;
|
|
4114
|
-
city: string;
|
|
4115
4452
|
countryCode: string;
|
|
4116
|
-
address2?: string | undefined;
|
|
4117
|
-
company?: string | undefined;
|
|
4118
|
-
province?: string | undefined;
|
|
4119
4453
|
postalCode?: string | undefined;
|
|
4120
4454
|
phone?: string | undefined;
|
|
4455
|
+
province?: string | undefined;
|
|
4456
|
+
address2?: string | undefined;
|
|
4457
|
+
company?: string | undefined;
|
|
4121
4458
|
}>;
|
|
4122
4459
|
export declare const checkoutContactValuesSchema: z.ZodObject<{
|
|
4123
4460
|
email: z.ZodString;
|
|
@@ -4126,14 +4463,14 @@ export declare const checkoutContactValuesSchema: z.ZodObject<{
|
|
|
4126
4463
|
phone: z.ZodString;
|
|
4127
4464
|
}, "strip", z.ZodTypeAny, {
|
|
4128
4465
|
email: string;
|
|
4466
|
+
phone: string;
|
|
4129
4467
|
firstName: string;
|
|
4130
4468
|
lastName: string;
|
|
4131
|
-
phone: string;
|
|
4132
4469
|
}, {
|
|
4133
4470
|
email: string;
|
|
4471
|
+
phone: string;
|
|
4134
4472
|
firstName: string;
|
|
4135
4473
|
lastName: string;
|
|
4136
|
-
phone: string;
|
|
4137
4474
|
}>;
|
|
4138
4475
|
export declare const checkoutCustomerIdentitySchema: z.ZodObject<{
|
|
4139
4476
|
id: z.ZodString;
|
|
@@ -4166,42 +4503,42 @@ export declare const checkoutSavedAddressSchema: z.ZodObject<{
|
|
|
4166
4503
|
countryCode: z.ZodString;
|
|
4167
4504
|
phone: z.ZodOptional<z.ZodString>;
|
|
4168
4505
|
}, "strip", z.ZodTypeAny, {
|
|
4506
|
+
city: string;
|
|
4169
4507
|
firstName: string;
|
|
4170
4508
|
lastName: string;
|
|
4171
4509
|
address1: string;
|
|
4172
|
-
city: string;
|
|
4173
4510
|
countryCode: string;
|
|
4174
|
-
address2?: string | undefined;
|
|
4175
|
-
company?: string | undefined;
|
|
4176
|
-
province?: string | undefined;
|
|
4177
4511
|
postalCode?: string | undefined;
|
|
4178
4512
|
phone?: string | undefined;
|
|
4513
|
+
province?: string | undefined;
|
|
4514
|
+
address2?: string | undefined;
|
|
4515
|
+
company?: string | undefined;
|
|
4179
4516
|
}, {
|
|
4517
|
+
city: string;
|
|
4180
4518
|
firstName: string;
|
|
4181
4519
|
lastName: string;
|
|
4182
4520
|
address1: string;
|
|
4183
|
-
city: string;
|
|
4184
4521
|
countryCode: string;
|
|
4185
|
-
address2?: string | undefined;
|
|
4186
|
-
company?: string | undefined;
|
|
4187
|
-
province?: string | undefined;
|
|
4188
4522
|
postalCode?: string | undefined;
|
|
4189
4523
|
phone?: string | undefined;
|
|
4524
|
+
province?: string | undefined;
|
|
4525
|
+
address2?: string | undefined;
|
|
4526
|
+
company?: string | undefined;
|
|
4190
4527
|
}>;
|
|
4191
4528
|
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
4192
4529
|
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
4193
4530
|
}, "strip", z.ZodTypeAny, {
|
|
4194
4531
|
address: {
|
|
4532
|
+
city: string;
|
|
4195
4533
|
firstName: string;
|
|
4196
4534
|
lastName: string;
|
|
4197
4535
|
address1: string;
|
|
4198
|
-
city: string;
|
|
4199
4536
|
countryCode: string;
|
|
4200
|
-
address2?: string | undefined;
|
|
4201
|
-
company?: string | undefined;
|
|
4202
|
-
province?: string | undefined;
|
|
4203
4537
|
postalCode?: string | undefined;
|
|
4204
4538
|
phone?: string | undefined;
|
|
4539
|
+
province?: string | undefined;
|
|
4540
|
+
address2?: string | undefined;
|
|
4541
|
+
company?: string | undefined;
|
|
4205
4542
|
};
|
|
4206
4543
|
id: string;
|
|
4207
4544
|
label?: string | undefined;
|
|
@@ -4209,16 +4546,16 @@ export declare const checkoutSavedAddressSchema: z.ZodObject<{
|
|
|
4209
4546
|
isDefaultBilling?: boolean | undefined;
|
|
4210
4547
|
}, {
|
|
4211
4548
|
address: {
|
|
4549
|
+
city: string;
|
|
4212
4550
|
firstName: string;
|
|
4213
4551
|
lastName: string;
|
|
4214
4552
|
address1: string;
|
|
4215
|
-
city: string;
|
|
4216
4553
|
countryCode: string;
|
|
4217
|
-
address2?: string | undefined;
|
|
4218
|
-
company?: string | undefined;
|
|
4219
|
-
province?: string | undefined;
|
|
4220
4554
|
postalCode?: string | undefined;
|
|
4221
4555
|
phone?: string | undefined;
|
|
4556
|
+
province?: string | undefined;
|
|
4557
|
+
address2?: string | undefined;
|
|
4558
|
+
company?: string | undefined;
|
|
4222
4559
|
};
|
|
4223
4560
|
id: string;
|
|
4224
4561
|
label?: string | undefined;
|
|
@@ -4362,9 +4699,9 @@ export declare const checkoutShippingGroupSchema: z.ZodObject<{
|
|
|
4362
4699
|
lineId: string;
|
|
4363
4700
|
quantity?: number | undefined;
|
|
4364
4701
|
}[] | undefined;
|
|
4702
|
+
unavailableReason?: string | undefined;
|
|
4365
4703
|
itemCount?: number | undefined;
|
|
4366
4704
|
selectedOptionId?: string | undefined;
|
|
4367
|
-
unavailableReason?: string | undefined;
|
|
4368
4705
|
}, {
|
|
4369
4706
|
id: string;
|
|
4370
4707
|
options: {
|
|
@@ -4383,9 +4720,9 @@ export declare const checkoutShippingGroupSchema: z.ZodObject<{
|
|
|
4383
4720
|
lineId: string;
|
|
4384
4721
|
quantity?: number | undefined;
|
|
4385
4722
|
}[] | undefined;
|
|
4723
|
+
unavailableReason?: string | undefined;
|
|
4386
4724
|
itemCount?: number | undefined;
|
|
4387
4725
|
selectedOptionId?: string | undefined;
|
|
4388
|
-
unavailableReason?: string | undefined;
|
|
4389
4726
|
}>;
|
|
4390
4727
|
export declare const checkoutAdjustmentPaymentSchema: z.ZodObject<{
|
|
4391
4728
|
id: z.ZodString;
|
|
@@ -4460,14 +4797,14 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4460
4797
|
phone: z.ZodString;
|
|
4461
4798
|
}, "strip", z.ZodTypeAny, {
|
|
4462
4799
|
email: string;
|
|
4800
|
+
phone: string;
|
|
4463
4801
|
firstName: string;
|
|
4464
4802
|
lastName: string;
|
|
4465
|
-
phone: string;
|
|
4466
4803
|
}, {
|
|
4467
4804
|
email: string;
|
|
4805
|
+
phone: string;
|
|
4468
4806
|
firstName: string;
|
|
4469
4807
|
lastName: string;
|
|
4470
|
-
phone: string;
|
|
4471
4808
|
}>;
|
|
4472
4809
|
shippingAddress: z.ZodObject<{
|
|
4473
4810
|
firstName: z.ZodString;
|
|
@@ -4481,27 +4818,27 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4481
4818
|
countryCode: z.ZodString;
|
|
4482
4819
|
phone: z.ZodOptional<z.ZodString>;
|
|
4483
4820
|
}, "strip", z.ZodTypeAny, {
|
|
4821
|
+
city: string;
|
|
4484
4822
|
firstName: string;
|
|
4485
4823
|
lastName: string;
|
|
4486
4824
|
address1: string;
|
|
4487
|
-
city: string;
|
|
4488
4825
|
countryCode: string;
|
|
4489
|
-
address2?: string | undefined;
|
|
4490
|
-
company?: string | undefined;
|
|
4491
|
-
province?: string | undefined;
|
|
4492
4826
|
postalCode?: string | undefined;
|
|
4493
4827
|
phone?: string | undefined;
|
|
4828
|
+
province?: string | undefined;
|
|
4829
|
+
address2?: string | undefined;
|
|
4830
|
+
company?: string | undefined;
|
|
4494
4831
|
}, {
|
|
4832
|
+
city: string;
|
|
4495
4833
|
firstName: string;
|
|
4496
4834
|
lastName: string;
|
|
4497
4835
|
address1: string;
|
|
4498
|
-
city: string;
|
|
4499
4836
|
countryCode: string;
|
|
4500
|
-
address2?: string | undefined;
|
|
4501
|
-
company?: string | undefined;
|
|
4502
|
-
province?: string | undefined;
|
|
4503
4837
|
postalCode?: string | undefined;
|
|
4504
4838
|
phone?: string | undefined;
|
|
4839
|
+
province?: string | undefined;
|
|
4840
|
+
address2?: string | undefined;
|
|
4841
|
+
company?: string | undefined;
|
|
4505
4842
|
}>;
|
|
4506
4843
|
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
4507
4844
|
firstName: z.ZodString;
|
|
@@ -4515,27 +4852,27 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4515
4852
|
countryCode: z.ZodString;
|
|
4516
4853
|
phone: z.ZodOptional<z.ZodString>;
|
|
4517
4854
|
}, "strip", z.ZodTypeAny, {
|
|
4855
|
+
city: string;
|
|
4518
4856
|
firstName: string;
|
|
4519
4857
|
lastName: string;
|
|
4520
4858
|
address1: string;
|
|
4521
|
-
city: string;
|
|
4522
4859
|
countryCode: string;
|
|
4523
|
-
address2?: string | undefined;
|
|
4524
|
-
company?: string | undefined;
|
|
4525
|
-
province?: string | undefined;
|
|
4526
4860
|
postalCode?: string | undefined;
|
|
4527
4861
|
phone?: string | undefined;
|
|
4862
|
+
province?: string | undefined;
|
|
4863
|
+
address2?: string | undefined;
|
|
4864
|
+
company?: string | undefined;
|
|
4528
4865
|
}, {
|
|
4866
|
+
city: string;
|
|
4529
4867
|
firstName: string;
|
|
4530
4868
|
lastName: string;
|
|
4531
4869
|
address1: string;
|
|
4532
|
-
city: string;
|
|
4533
4870
|
countryCode: string;
|
|
4534
|
-
address2?: string | undefined;
|
|
4535
|
-
company?: string | undefined;
|
|
4536
|
-
province?: string | undefined;
|
|
4537
4871
|
postalCode?: string | undefined;
|
|
4538
4872
|
phone?: string | undefined;
|
|
4873
|
+
province?: string | undefined;
|
|
4874
|
+
address2?: string | undefined;
|
|
4875
|
+
company?: string | undefined;
|
|
4539
4876
|
}>>;
|
|
4540
4877
|
sameAsShipping: z.ZodBoolean;
|
|
4541
4878
|
shippingSelections: z.ZodArray<z.ZodObject<{
|
|
@@ -4567,25 +4904,25 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4567
4904
|
}>, "many">;
|
|
4568
4905
|
promoCode: z.ZodString;
|
|
4569
4906
|
}, "strip", z.ZodTypeAny, {
|
|
4907
|
+
sameAsShipping: boolean;
|
|
4570
4908
|
contact: {
|
|
4571
4909
|
email: string;
|
|
4910
|
+
phone: string;
|
|
4572
4911
|
firstName: string;
|
|
4573
4912
|
lastName: string;
|
|
4574
|
-
phone: string;
|
|
4575
4913
|
};
|
|
4576
4914
|
shippingAddress: {
|
|
4915
|
+
city: string;
|
|
4577
4916
|
firstName: string;
|
|
4578
4917
|
lastName: string;
|
|
4579
4918
|
address1: string;
|
|
4580
|
-
city: string;
|
|
4581
4919
|
countryCode: string;
|
|
4582
|
-
address2?: string | undefined;
|
|
4583
|
-
company?: string | undefined;
|
|
4584
|
-
province?: string | undefined;
|
|
4585
4920
|
postalCode?: string | undefined;
|
|
4586
4921
|
phone?: string | undefined;
|
|
4922
|
+
province?: string | undefined;
|
|
4923
|
+
address2?: string | undefined;
|
|
4924
|
+
company?: string | undefined;
|
|
4587
4925
|
};
|
|
4588
|
-
sameAsShipping: boolean;
|
|
4589
4926
|
shippingSelections: {
|
|
4590
4927
|
groupId: string;
|
|
4591
4928
|
optionId: string;
|
|
@@ -4599,37 +4936,37 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4599
4936
|
}[];
|
|
4600
4937
|
promoCode: string;
|
|
4601
4938
|
billingAddress?: {
|
|
4939
|
+
city: string;
|
|
4602
4940
|
firstName: string;
|
|
4603
4941
|
lastName: string;
|
|
4604
4942
|
address1: string;
|
|
4605
|
-
city: string;
|
|
4606
4943
|
countryCode: string;
|
|
4607
|
-
address2?: string | undefined;
|
|
4608
|
-
company?: string | undefined;
|
|
4609
|
-
province?: string | undefined;
|
|
4610
4944
|
postalCode?: string | undefined;
|
|
4611
4945
|
phone?: string | undefined;
|
|
4946
|
+
province?: string | undefined;
|
|
4947
|
+
address2?: string | undefined;
|
|
4948
|
+
company?: string | undefined;
|
|
4612
4949
|
} | undefined;
|
|
4613
4950
|
}, {
|
|
4951
|
+
sameAsShipping: boolean;
|
|
4614
4952
|
contact: {
|
|
4615
4953
|
email: string;
|
|
4954
|
+
phone: string;
|
|
4616
4955
|
firstName: string;
|
|
4617
4956
|
lastName: string;
|
|
4618
|
-
phone: string;
|
|
4619
4957
|
};
|
|
4620
4958
|
shippingAddress: {
|
|
4959
|
+
city: string;
|
|
4621
4960
|
firstName: string;
|
|
4622
4961
|
lastName: string;
|
|
4623
4962
|
address1: string;
|
|
4624
|
-
city: string;
|
|
4625
4963
|
countryCode: string;
|
|
4626
|
-
address2?: string | undefined;
|
|
4627
|
-
company?: string | undefined;
|
|
4628
|
-
province?: string | undefined;
|
|
4629
4964
|
postalCode?: string | undefined;
|
|
4630
4965
|
phone?: string | undefined;
|
|
4966
|
+
province?: string | undefined;
|
|
4967
|
+
address2?: string | undefined;
|
|
4968
|
+
company?: string | undefined;
|
|
4631
4969
|
};
|
|
4632
|
-
sameAsShipping: boolean;
|
|
4633
4970
|
shippingSelections: {
|
|
4634
4971
|
groupId: string;
|
|
4635
4972
|
optionId: string;
|
|
@@ -4643,16 +4980,16 @@ export declare const checkoutSubmissionSchema: z.ZodObject<{
|
|
|
4643
4980
|
}[];
|
|
4644
4981
|
promoCode: string;
|
|
4645
4982
|
billingAddress?: {
|
|
4983
|
+
city: string;
|
|
4646
4984
|
firstName: string;
|
|
4647
4985
|
lastName: string;
|
|
4648
4986
|
address1: string;
|
|
4649
|
-
city: string;
|
|
4650
4987
|
countryCode: string;
|
|
4651
|
-
address2?: string | undefined;
|
|
4652
|
-
company?: string | undefined;
|
|
4653
|
-
province?: string | undefined;
|
|
4654
4988
|
postalCode?: string | undefined;
|
|
4655
4989
|
phone?: string | undefined;
|
|
4990
|
+
province?: string | undefined;
|
|
4991
|
+
address2?: string | undefined;
|
|
4992
|
+
company?: string | undefined;
|
|
4656
4993
|
} | undefined;
|
|
4657
4994
|
}>;
|
|
4658
4995
|
export declare const checkoutOrderLineSchema: z.ZodObject<{
|
|
@@ -4689,15 +5026,15 @@ export declare const checkoutTotalsSchema: z.ZodObject<{
|
|
|
4689
5026
|
}, "strip", z.ZodTypeAny, {
|
|
4690
5027
|
subtotal: Money;
|
|
4691
5028
|
total: Money;
|
|
4692
|
-
shipping?: Money | undefined;
|
|
4693
5029
|
discount?: Money | undefined;
|
|
4694
5030
|
tax?: Money | undefined;
|
|
5031
|
+
shipping?: Money | undefined;
|
|
4695
5032
|
}, {
|
|
4696
5033
|
subtotal: Money;
|
|
4697
5034
|
total: Money;
|
|
4698
|
-
shipping?: Money | undefined;
|
|
4699
5035
|
discount?: Money | undefined;
|
|
4700
5036
|
tax?: Money | undefined;
|
|
5037
|
+
shipping?: Money | undefined;
|
|
4701
5038
|
}>;
|
|
4702
5039
|
export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
4703
5040
|
items: z.ZodArray<z.ZodObject<{
|
|
@@ -4734,15 +5071,15 @@ export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
|
4734
5071
|
}, "strip", z.ZodTypeAny, {
|
|
4735
5072
|
subtotal: Money;
|
|
4736
5073
|
total: Money;
|
|
4737
|
-
shipping?: Money | undefined;
|
|
4738
5074
|
discount?: Money | undefined;
|
|
4739
5075
|
tax?: Money | undefined;
|
|
5076
|
+
shipping?: Money | undefined;
|
|
4740
5077
|
}, {
|
|
4741
5078
|
subtotal: Money;
|
|
4742
5079
|
total: Money;
|
|
4743
|
-
shipping?: Money | undefined;
|
|
4744
5080
|
discount?: Money | undefined;
|
|
4745
5081
|
tax?: Money | undefined;
|
|
5082
|
+
shipping?: Money | undefined;
|
|
4746
5083
|
}>>;
|
|
4747
5084
|
}, "strip", z.ZodTypeAny, {
|
|
4748
5085
|
items: {
|
|
@@ -4757,9 +5094,9 @@ export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
|
4757
5094
|
totals?: {
|
|
4758
5095
|
subtotal: Money;
|
|
4759
5096
|
total: Money;
|
|
4760
|
-
shipping?: Money | undefined;
|
|
4761
5097
|
discount?: Money | undefined;
|
|
4762
5098
|
tax?: Money | undefined;
|
|
5099
|
+
shipping?: Money | undefined;
|
|
4763
5100
|
} | undefined;
|
|
4764
5101
|
}, {
|
|
4765
5102
|
items: {
|
|
@@ -4774,9 +5111,9 @@ export declare const checkoutOrderSummarySchema: z.ZodObject<{
|
|
|
4774
5111
|
totals?: {
|
|
4775
5112
|
subtotal: Money;
|
|
4776
5113
|
total: Money;
|
|
4777
|
-
shipping?: Money | undefined;
|
|
4778
5114
|
discount?: Money | undefined;
|
|
4779
5115
|
tax?: Money | undefined;
|
|
5116
|
+
shipping?: Money | undefined;
|
|
4780
5117
|
} | undefined;
|
|
4781
5118
|
}>;
|
|
4782
5119
|
export declare const checkoutAvailabilitySchema: z.ZodObject<{
|
|
@@ -4802,14 +5139,14 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
4802
5139
|
phone: z.ZodString;
|
|
4803
5140
|
}, "strip", z.ZodTypeAny, {
|
|
4804
5141
|
email: string;
|
|
5142
|
+
phone: string;
|
|
4805
5143
|
firstName: string;
|
|
4806
5144
|
lastName: string;
|
|
4807
|
-
phone: string;
|
|
4808
5145
|
}, {
|
|
4809
5146
|
email: string;
|
|
5147
|
+
phone: string;
|
|
4810
5148
|
firstName: string;
|
|
4811
5149
|
lastName: string;
|
|
4812
|
-
phone: string;
|
|
4813
5150
|
}>;
|
|
4814
5151
|
customer: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
4815
5152
|
id: z.ZodString;
|
|
@@ -4842,42 +5179,42 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
4842
5179
|
countryCode: z.ZodString;
|
|
4843
5180
|
phone: z.ZodOptional<z.ZodString>;
|
|
4844
5181
|
}, "strip", z.ZodTypeAny, {
|
|
5182
|
+
city: string;
|
|
4845
5183
|
firstName: string;
|
|
4846
5184
|
lastName: string;
|
|
4847
5185
|
address1: string;
|
|
4848
|
-
city: string;
|
|
4849
5186
|
countryCode: string;
|
|
4850
|
-
address2?: string | undefined;
|
|
4851
|
-
company?: string | undefined;
|
|
4852
|
-
province?: string | undefined;
|
|
4853
5187
|
postalCode?: string | undefined;
|
|
4854
5188
|
phone?: string | undefined;
|
|
5189
|
+
province?: string | undefined;
|
|
5190
|
+
address2?: string | undefined;
|
|
5191
|
+
company?: string | undefined;
|
|
4855
5192
|
}, {
|
|
5193
|
+
city: string;
|
|
4856
5194
|
firstName: string;
|
|
4857
5195
|
lastName: string;
|
|
4858
5196
|
address1: string;
|
|
4859
|
-
city: string;
|
|
4860
5197
|
countryCode: string;
|
|
4861
|
-
address2?: string | undefined;
|
|
4862
|
-
company?: string | undefined;
|
|
4863
|
-
province?: string | undefined;
|
|
4864
5198
|
postalCode?: string | undefined;
|
|
4865
5199
|
phone?: string | undefined;
|
|
5200
|
+
province?: string | undefined;
|
|
5201
|
+
address2?: string | undefined;
|
|
5202
|
+
company?: string | undefined;
|
|
4866
5203
|
}>;
|
|
4867
5204
|
isDefaultShipping: z.ZodOptional<z.ZodBoolean>;
|
|
4868
5205
|
isDefaultBilling: z.ZodOptional<z.ZodBoolean>;
|
|
4869
5206
|
}, "strip", z.ZodTypeAny, {
|
|
4870
5207
|
address: {
|
|
5208
|
+
city: string;
|
|
4871
5209
|
firstName: string;
|
|
4872
5210
|
lastName: string;
|
|
4873
5211
|
address1: string;
|
|
4874
|
-
city: string;
|
|
4875
5212
|
countryCode: string;
|
|
4876
|
-
address2?: string | undefined;
|
|
4877
|
-
company?: string | undefined;
|
|
4878
|
-
province?: string | undefined;
|
|
4879
5213
|
postalCode?: string | undefined;
|
|
4880
5214
|
phone?: string | undefined;
|
|
5215
|
+
province?: string | undefined;
|
|
5216
|
+
address2?: string | undefined;
|
|
5217
|
+
company?: string | undefined;
|
|
4881
5218
|
};
|
|
4882
5219
|
id: string;
|
|
4883
5220
|
label?: string | undefined;
|
|
@@ -4885,16 +5222,16 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
4885
5222
|
isDefaultBilling?: boolean | undefined;
|
|
4886
5223
|
}, {
|
|
4887
5224
|
address: {
|
|
5225
|
+
city: string;
|
|
4888
5226
|
firstName: string;
|
|
4889
5227
|
lastName: string;
|
|
4890
5228
|
address1: string;
|
|
4891
|
-
city: string;
|
|
4892
5229
|
countryCode: string;
|
|
4893
|
-
address2?: string | undefined;
|
|
4894
|
-
company?: string | undefined;
|
|
4895
|
-
province?: string | undefined;
|
|
4896
5230
|
postalCode?: string | undefined;
|
|
4897
5231
|
phone?: string | undefined;
|
|
5232
|
+
province?: string | undefined;
|
|
5233
|
+
address2?: string | undefined;
|
|
5234
|
+
company?: string | undefined;
|
|
4898
5235
|
};
|
|
4899
5236
|
id: string;
|
|
4900
5237
|
label?: string | undefined;
|
|
@@ -4944,27 +5281,27 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
4944
5281
|
countryCode: z.ZodString;
|
|
4945
5282
|
phone: z.ZodOptional<z.ZodString>;
|
|
4946
5283
|
}, "strip", z.ZodTypeAny, {
|
|
5284
|
+
city: string;
|
|
4947
5285
|
firstName: string;
|
|
4948
5286
|
lastName: string;
|
|
4949
5287
|
address1: string;
|
|
4950
|
-
city: string;
|
|
4951
5288
|
countryCode: string;
|
|
4952
|
-
address2?: string | undefined;
|
|
4953
|
-
company?: string | undefined;
|
|
4954
|
-
province?: string | undefined;
|
|
4955
5289
|
postalCode?: string | undefined;
|
|
4956
5290
|
phone?: string | undefined;
|
|
5291
|
+
province?: string | undefined;
|
|
5292
|
+
address2?: string | undefined;
|
|
5293
|
+
company?: string | undefined;
|
|
4957
5294
|
}, {
|
|
5295
|
+
city: string;
|
|
4958
5296
|
firstName: string;
|
|
4959
5297
|
lastName: string;
|
|
4960
5298
|
address1: string;
|
|
4961
|
-
city: string;
|
|
4962
5299
|
countryCode: string;
|
|
4963
|
-
address2?: string | undefined;
|
|
4964
|
-
company?: string | undefined;
|
|
4965
|
-
province?: string | undefined;
|
|
4966
5300
|
postalCode?: string | undefined;
|
|
4967
5301
|
phone?: string | undefined;
|
|
5302
|
+
province?: string | undefined;
|
|
5303
|
+
address2?: string | undefined;
|
|
5304
|
+
company?: string | undefined;
|
|
4968
5305
|
}>;
|
|
4969
5306
|
billingAddress: z.ZodOptional<z.ZodObject<{
|
|
4970
5307
|
firstName: z.ZodString;
|
|
@@ -4978,27 +5315,27 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
4978
5315
|
countryCode: z.ZodString;
|
|
4979
5316
|
phone: z.ZodOptional<z.ZodString>;
|
|
4980
5317
|
}, "strip", z.ZodTypeAny, {
|
|
5318
|
+
city: string;
|
|
4981
5319
|
firstName: string;
|
|
4982
5320
|
lastName: string;
|
|
4983
5321
|
address1: string;
|
|
4984
|
-
city: string;
|
|
4985
5322
|
countryCode: string;
|
|
4986
|
-
address2?: string | undefined;
|
|
4987
|
-
company?: string | undefined;
|
|
4988
|
-
province?: string | undefined;
|
|
4989
5323
|
postalCode?: string | undefined;
|
|
4990
5324
|
phone?: string | undefined;
|
|
5325
|
+
province?: string | undefined;
|
|
5326
|
+
address2?: string | undefined;
|
|
5327
|
+
company?: string | undefined;
|
|
4991
5328
|
}, {
|
|
5329
|
+
city: string;
|
|
4992
5330
|
firstName: string;
|
|
4993
5331
|
lastName: string;
|
|
4994
5332
|
address1: string;
|
|
4995
|
-
city: string;
|
|
4996
5333
|
countryCode: string;
|
|
4997
|
-
address2?: string | undefined;
|
|
4998
|
-
company?: string | undefined;
|
|
4999
|
-
province?: string | undefined;
|
|
5000
5334
|
postalCode?: string | undefined;
|
|
5001
5335
|
phone?: string | undefined;
|
|
5336
|
+
province?: string | undefined;
|
|
5337
|
+
address2?: string | undefined;
|
|
5338
|
+
company?: string | undefined;
|
|
5002
5339
|
}>>;
|
|
5003
5340
|
sameAsShipping: z.ZodBoolean;
|
|
5004
5341
|
shippingLocations: z.ZodOptional<z.ZodObject<{
|
|
@@ -5218,9 +5555,9 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5218
5555
|
lineId: string;
|
|
5219
5556
|
quantity?: number | undefined;
|
|
5220
5557
|
}[] | undefined;
|
|
5558
|
+
unavailableReason?: string | undefined;
|
|
5221
5559
|
itemCount?: number | undefined;
|
|
5222
5560
|
selectedOptionId?: string | undefined;
|
|
5223
|
-
unavailableReason?: string | undefined;
|
|
5224
5561
|
}, {
|
|
5225
5562
|
id: string;
|
|
5226
5563
|
options: {
|
|
@@ -5239,9 +5576,9 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5239
5576
|
lineId: string;
|
|
5240
5577
|
quantity?: number | undefined;
|
|
5241
5578
|
}[] | undefined;
|
|
5579
|
+
unavailableReason?: string | undefined;
|
|
5242
5580
|
itemCount?: number | undefined;
|
|
5243
5581
|
selectedOptionId?: string | undefined;
|
|
5244
|
-
unavailableReason?: string | undefined;
|
|
5245
5582
|
}>, "many">>;
|
|
5246
5583
|
shippingState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error", "unavailable"]>>;
|
|
5247
5584
|
paymentMethods: z.ZodOptional<z.ZodArray<z.ZodType<PaymentMethod, z.ZodTypeDef, PaymentMethod>, "many">>;
|
|
@@ -5298,15 +5635,15 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5298
5635
|
}, "strip", z.ZodTypeAny, {
|
|
5299
5636
|
subtotal: Money;
|
|
5300
5637
|
total: Money;
|
|
5301
|
-
shipping?: Money | undefined;
|
|
5302
5638
|
discount?: Money | undefined;
|
|
5303
5639
|
tax?: Money | undefined;
|
|
5640
|
+
shipping?: Money | undefined;
|
|
5304
5641
|
}, {
|
|
5305
5642
|
subtotal: Money;
|
|
5306
5643
|
total: Money;
|
|
5307
|
-
shipping?: Money | undefined;
|
|
5308
5644
|
discount?: Money | undefined;
|
|
5309
5645
|
tax?: Money | undefined;
|
|
5646
|
+
shipping?: Money | undefined;
|
|
5310
5647
|
}>>;
|
|
5311
5648
|
}, "strip", z.ZodTypeAny, {
|
|
5312
5649
|
items: {
|
|
@@ -5321,9 +5658,9 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5321
5658
|
totals?: {
|
|
5322
5659
|
subtotal: Money;
|
|
5323
5660
|
total: Money;
|
|
5324
|
-
shipping?: Money | undefined;
|
|
5325
5661
|
discount?: Money | undefined;
|
|
5326
5662
|
tax?: Money | undefined;
|
|
5663
|
+
shipping?: Money | undefined;
|
|
5327
5664
|
} | undefined;
|
|
5328
5665
|
}, {
|
|
5329
5666
|
items: {
|
|
@@ -5338,9 +5675,9 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5338
5675
|
totals?: {
|
|
5339
5676
|
subtotal: Money;
|
|
5340
5677
|
total: Money;
|
|
5341
|
-
shipping?: Money | undefined;
|
|
5342
5678
|
discount?: Money | undefined;
|
|
5343
5679
|
tax?: Money | undefined;
|
|
5680
|
+
shipping?: Money | undefined;
|
|
5344
5681
|
} | undefined;
|
|
5345
5682
|
}>>;
|
|
5346
5683
|
totalsState: z.ZodOptional<z.ZodEnum<["idle", "pending", "error"]>>;
|
|
@@ -5412,39 +5749,47 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5412
5749
|
submitError: z.ZodOptional<z.ZodString>;
|
|
5413
5750
|
}, "strip", z.ZodTypeAny, {
|
|
5414
5751
|
presentation: "single-page" | "stepper";
|
|
5752
|
+
sameAsShipping: boolean;
|
|
5415
5753
|
contact: {
|
|
5416
5754
|
email: string;
|
|
5755
|
+
phone: string;
|
|
5417
5756
|
firstName: string;
|
|
5418
5757
|
lastName: string;
|
|
5419
|
-
phone: string;
|
|
5420
5758
|
};
|
|
5421
5759
|
shippingAddress: {
|
|
5760
|
+
city: string;
|
|
5422
5761
|
firstName: string;
|
|
5423
5762
|
lastName: string;
|
|
5424
5763
|
address1: string;
|
|
5425
|
-
city: string;
|
|
5426
5764
|
countryCode: string;
|
|
5427
|
-
address2?: string | undefined;
|
|
5428
|
-
company?: string | undefined;
|
|
5429
|
-
province?: string | undefined;
|
|
5430
5765
|
postalCode?: string | undefined;
|
|
5431
5766
|
phone?: string | undefined;
|
|
5767
|
+
province?: string | undefined;
|
|
5768
|
+
address2?: string | undefined;
|
|
5769
|
+
company?: string | undefined;
|
|
5432
5770
|
};
|
|
5433
|
-
sameAsShipping: boolean;
|
|
5434
5771
|
paymentMethod: string;
|
|
5435
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;
|
|
5436
5780
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5781
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5437
5782
|
billingAddress?: {
|
|
5783
|
+
city: string;
|
|
5438
5784
|
firstName: string;
|
|
5439
5785
|
lastName: string;
|
|
5440
5786
|
address1: string;
|
|
5441
|
-
city: string;
|
|
5442
5787
|
countryCode: string;
|
|
5443
|
-
address2?: string | undefined;
|
|
5444
|
-
company?: string | undefined;
|
|
5445
|
-
province?: string | undefined;
|
|
5446
5788
|
postalCode?: string | undefined;
|
|
5447
5789
|
phone?: string | undefined;
|
|
5790
|
+
province?: string | undefined;
|
|
5791
|
+
address2?: string | undefined;
|
|
5792
|
+
company?: string | undefined;
|
|
5448
5793
|
} | undefined;
|
|
5449
5794
|
adjustmentPayments?: {
|
|
5450
5795
|
label: string;
|
|
@@ -5454,24 +5799,18 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5454
5799
|
}[] | undefined;
|
|
5455
5800
|
promoCode?: string | undefined;
|
|
5456
5801
|
showReviewStep?: boolean | undefined;
|
|
5457
|
-
customer?: {
|
|
5458
|
-
id: string;
|
|
5459
|
-
email: string;
|
|
5460
|
-
firstName?: string | undefined;
|
|
5461
|
-
lastName?: string | undefined;
|
|
5462
|
-
} | null | undefined;
|
|
5463
5802
|
savedAddresses?: {
|
|
5464
5803
|
address: {
|
|
5804
|
+
city: string;
|
|
5465
5805
|
firstName: string;
|
|
5466
5806
|
lastName: string;
|
|
5467
5807
|
address1: string;
|
|
5468
|
-
city: string;
|
|
5469
5808
|
countryCode: string;
|
|
5470
|
-
address2?: string | undefined;
|
|
5471
|
-
company?: string | undefined;
|
|
5472
|
-
province?: string | undefined;
|
|
5473
5809
|
postalCode?: string | undefined;
|
|
5474
5810
|
phone?: string | undefined;
|
|
5811
|
+
province?: string | undefined;
|
|
5812
|
+
address2?: string | undefined;
|
|
5813
|
+
company?: string | undefined;
|
|
5475
5814
|
};
|
|
5476
5815
|
id: string;
|
|
5477
5816
|
label?: string | undefined;
|
|
@@ -5545,12 +5884,11 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5545
5884
|
lineId: string;
|
|
5546
5885
|
quantity?: number | undefined;
|
|
5547
5886
|
}[] | undefined;
|
|
5887
|
+
unavailableReason?: string | undefined;
|
|
5548
5888
|
itemCount?: number | undefined;
|
|
5549
5889
|
selectedOptionId?: string | undefined;
|
|
5550
|
-
unavailableReason?: string | undefined;
|
|
5551
5890
|
}[] | undefined;
|
|
5552
5891
|
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5553
|
-
paymentMethods?: PaymentMethod[] | undefined;
|
|
5554
5892
|
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5555
5893
|
orderSummary?: {
|
|
5556
5894
|
items: {
|
|
@@ -5565,12 +5903,11 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5565
5903
|
totals?: {
|
|
5566
5904
|
subtotal: Money;
|
|
5567
5905
|
total: Money;
|
|
5568
|
-
shipping?: Money | undefined;
|
|
5569
5906
|
discount?: Money | undefined;
|
|
5570
5907
|
tax?: Money | undefined;
|
|
5908
|
+
shipping?: Money | undefined;
|
|
5571
5909
|
} | undefined;
|
|
5572
5910
|
} | undefined;
|
|
5573
|
-
fieldErrors?: Record<string, unknown> | undefined;
|
|
5574
5911
|
fieldDescriptions?: Record<string, string> | undefined;
|
|
5575
5912
|
availability?: {
|
|
5576
5913
|
status: "error" | "empty" | "available" | "unavailable";
|
|
@@ -5594,39 +5931,47 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5594
5931
|
submitError?: string | undefined;
|
|
5595
5932
|
}, {
|
|
5596
5933
|
presentation: "single-page" | "stepper";
|
|
5934
|
+
sameAsShipping: boolean;
|
|
5597
5935
|
contact: {
|
|
5598
5936
|
email: string;
|
|
5937
|
+
phone: string;
|
|
5599
5938
|
firstName: string;
|
|
5600
5939
|
lastName: string;
|
|
5601
|
-
phone: string;
|
|
5602
5940
|
};
|
|
5603
5941
|
shippingAddress: {
|
|
5942
|
+
city: string;
|
|
5604
5943
|
firstName: string;
|
|
5605
5944
|
lastName: string;
|
|
5606
5945
|
address1: string;
|
|
5607
|
-
city: string;
|
|
5608
5946
|
countryCode: string;
|
|
5609
|
-
address2?: string | undefined;
|
|
5610
|
-
company?: string | undefined;
|
|
5611
|
-
province?: string | undefined;
|
|
5612
5947
|
postalCode?: string | undefined;
|
|
5613
5948
|
phone?: string | undefined;
|
|
5949
|
+
province?: string | undefined;
|
|
5950
|
+
address2?: string | undefined;
|
|
5951
|
+
company?: string | undefined;
|
|
5614
5952
|
};
|
|
5615
|
-
sameAsShipping: boolean;
|
|
5616
5953
|
paymentMethod: string;
|
|
5617
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;
|
|
5618
5962
|
totalsState?: "error" | "pending" | "idle" | undefined;
|
|
5963
|
+
fieldErrors?: Record<string, unknown> | undefined;
|
|
5619
5964
|
billingAddress?: {
|
|
5965
|
+
city: string;
|
|
5620
5966
|
firstName: string;
|
|
5621
5967
|
lastName: string;
|
|
5622
5968
|
address1: string;
|
|
5623
|
-
city: string;
|
|
5624
5969
|
countryCode: string;
|
|
5625
|
-
address2?: string | undefined;
|
|
5626
|
-
company?: string | undefined;
|
|
5627
|
-
province?: string | undefined;
|
|
5628
5970
|
postalCode?: string | undefined;
|
|
5629
5971
|
phone?: string | undefined;
|
|
5972
|
+
province?: string | undefined;
|
|
5973
|
+
address2?: string | undefined;
|
|
5974
|
+
company?: string | undefined;
|
|
5630
5975
|
} | undefined;
|
|
5631
5976
|
adjustmentPayments?: {
|
|
5632
5977
|
label: string;
|
|
@@ -5636,24 +5981,18 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5636
5981
|
}[] | undefined;
|
|
5637
5982
|
promoCode?: string | undefined;
|
|
5638
5983
|
showReviewStep?: boolean | undefined;
|
|
5639
|
-
customer?: {
|
|
5640
|
-
id: string;
|
|
5641
|
-
email: string;
|
|
5642
|
-
firstName?: string | undefined;
|
|
5643
|
-
lastName?: string | undefined;
|
|
5644
|
-
} | null | undefined;
|
|
5645
5984
|
savedAddresses?: {
|
|
5646
5985
|
address: {
|
|
5986
|
+
city: string;
|
|
5647
5987
|
firstName: string;
|
|
5648
5988
|
lastName: string;
|
|
5649
5989
|
address1: string;
|
|
5650
|
-
city: string;
|
|
5651
5990
|
countryCode: string;
|
|
5652
|
-
address2?: string | undefined;
|
|
5653
|
-
company?: string | undefined;
|
|
5654
|
-
province?: string | undefined;
|
|
5655
5991
|
postalCode?: string | undefined;
|
|
5656
5992
|
phone?: string | undefined;
|
|
5993
|
+
province?: string | undefined;
|
|
5994
|
+
address2?: string | undefined;
|
|
5995
|
+
company?: string | undefined;
|
|
5657
5996
|
};
|
|
5658
5997
|
id: string;
|
|
5659
5998
|
label?: string | undefined;
|
|
@@ -5727,12 +6066,11 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5727
6066
|
lineId: string;
|
|
5728
6067
|
quantity?: number | undefined;
|
|
5729
6068
|
}[] | undefined;
|
|
6069
|
+
unavailableReason?: string | undefined;
|
|
5730
6070
|
itemCount?: number | undefined;
|
|
5731
6071
|
selectedOptionId?: string | undefined;
|
|
5732
|
-
unavailableReason?: string | undefined;
|
|
5733
6072
|
}[] | undefined;
|
|
5734
6073
|
shippingState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5735
|
-
paymentMethods?: PaymentMethod[] | undefined;
|
|
5736
6074
|
paymentState?: "error" | "pending" | "idle" | "unavailable" | undefined;
|
|
5737
6075
|
orderSummary?: {
|
|
5738
6076
|
items: {
|
|
@@ -5747,12 +6085,11 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5747
6085
|
totals?: {
|
|
5748
6086
|
subtotal: Money;
|
|
5749
6087
|
total: Money;
|
|
5750
|
-
shipping?: Money | undefined;
|
|
5751
6088
|
discount?: Money | undefined;
|
|
5752
6089
|
tax?: Money | undefined;
|
|
6090
|
+
shipping?: Money | undefined;
|
|
5753
6091
|
} | undefined;
|
|
5754
6092
|
} | undefined;
|
|
5755
|
-
fieldErrors?: Record<string, unknown> | undefined;
|
|
5756
6093
|
fieldDescriptions?: Record<string, string> | undefined;
|
|
5757
6094
|
availability?: {
|
|
5758
6095
|
status: "error" | "empty" | "available" | "unavailable";
|
|
@@ -5778,4 +6115,5 @@ export declare const checkoutPropsSchema: z.ZodObject<{
|
|
|
5778
6115
|
export { isCompleteFiniteDecimal, isAvailableMoney, formatMoney } from './money';
|
|
5779
6116
|
export { resolveAbsoluteQuantity } from './cart';
|
|
5780
6117
|
export * from './contracts/marketplace-product-card';
|
|
6118
|
+
export * from './contracts/checkout-commerce-v1';
|
|
5781
6119
|
//# sourceMappingURL=contracts.d.ts.map
|