@rebuy/rebuy 3.29.0 → 3.30.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/index.cjs +1543 -1346
- package/dist/index.mjs +1537 -1340
- package/dist/schema/index.d.ts +7 -0
- package/dist/schema/postPurchaseProductCollectionView.d.ts +8 -0
- package/dist/schema/postPurchaseProductDisplay.d.ts +59 -0
- package/dist/schema/postPurchaseProductGallery.d.ts +11 -0
- package/dist/schema/postPurchaseProductSettings.d.ts +117 -0
- package/dist/schema/postPurchaseProductSource.d.ts +65 -0
- package/dist/schema/postPurchaseVariantCatalog.d.ts +41 -0
- package/dist/schema/postPurchaseVariantDefault.d.ts +36 -0
- package/dist/schema/shopConfig.d.ts +2 -2
- package/dist/schema/userConfig.d.ts +2 -2
- package/dist/schema/widgetData.d.ts +2 -2
- package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +29 -29
- package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +29 -29
- package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +29 -29
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +5 -5
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +29 -29
- package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +29 -29
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +1 -1
- package/dist/schema/widgets/contentBlock.d.ts +4 -4
- package/dist/schema/widgets/post-purchase-offer/constants.d.ts +4 -4
- package/dist/schema/widgets/post-purchase-offer/postPurchaseBlocks.d.ts +2 -2
- package/dist/schema/widgets/post-purchase-offer/postPurchaseOffer.d.ts +2 -2
- package/dist/schema/widgets/post-purchase-offer/postPurchaseSettings.d.ts +2 -2
- package/dist/schema/widgets/post-purchase-offer/postPurchaseWidget.d.ts +2 -2
- package/dist/server/__fixtures__/postPurchaseProduct.d.ts +137 -0
- package/dist/server/__fixtures__/postPurchaseVariantDefaults.d.ts +26 -0
- package/dist/server/__fixtures__/postPurchaseVariants.d.ts +47 -0
- package/dist/server/index.cjs +6 -2
- package/dist/server/index.mjs +6 -2
- package/dist/server/matchPostPurchaseVariantDefault.d.ts +17 -0
- package/dist/server/normalizePostPurchaseCollection.d.ts +250 -0
- package/dist/server/normalizePostPurchaseProduct.d.ts +202 -0
- package/dist/server/postPurchasePrimaryImage.d.ts +6 -0
- package/dist/server/postPurchaseProductDisplay.d.ts +41 -0
- package/dist/server/postPurchaseProductEligibility.d.ts +8 -0
- package/dist/server/postPurchaseProductGallery.d.ts +5 -0
- package/dist/server/postPurchaseVariantAvailable.d.ts +12 -0
- package/dist/server/postPurchaseVariantCatalog.d.ts +3 -0
- package/dist/server/projectPostPurchaseProduct.d.ts +127 -0
- package/dist/server/resolvePostPurchaseVariantDefault.d.ts +10 -0
- package/dist/transforms/index.cjs +7 -3
- package/dist/transforms/index.mjs +7 -3
- package/dist/transforms/offerV1/offerTemplateSeed.d.ts +8 -5
- package/dist/transforms/postPurchase/imageContentSettings.d.ts +1 -1
- package/package.json +1 -1
package/dist/schema/index.d.ts
CHANGED
|
@@ -6,11 +6,18 @@ export * from './postPurchaseExitPolicy';
|
|
|
6
6
|
export * from './postPurchaseIdentity';
|
|
7
7
|
export * from './postPurchaseOrderDecision';
|
|
8
8
|
export * from './postPurchasePolicy';
|
|
9
|
+
export * from './postPurchaseProductCollectionView';
|
|
10
|
+
export * from './postPurchaseProductDisplay';
|
|
11
|
+
export * from './postPurchaseProductGallery';
|
|
12
|
+
export * from './postPurchaseProductSettings';
|
|
13
|
+
export * from './postPurchaseProductSource';
|
|
9
14
|
export * from './postPurchaseSelection';
|
|
10
15
|
export * from './postPurchaseSession';
|
|
11
16
|
export * from './postPurchaseSessionClose';
|
|
12
17
|
export * from './postPurchaseShadow';
|
|
13
18
|
export * from './postPurchaseSkipTrace';
|
|
19
|
+
export * from './postPurchaseVariantCatalog';
|
|
20
|
+
export * from './postPurchaseVariantDefault';
|
|
14
21
|
export * from './product';
|
|
15
22
|
export * from './shopConfig';
|
|
16
23
|
export * from './smartCart';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* Only the excluded-id shape Slice 23's `normalizePostPurchaseCollection` needs. The member/choice/pointer
|
|
4
|
+
* views that shared this file on the frozen branch depend on progress, choice and product-view schemas
|
|
5
|
+
* owned by the group/collection preparation Slice (25) and are added here when that Slice lands.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PostPurchaseExcludedProductIds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
|
|
8
|
+
export type PostPurchaseExcludedProductIds = z.infer<typeof PostPurchaseExcludedProductIds>;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PostPurchasePrimaryImageSource: z.ZodDefault<z.ZodString>;
|
|
3
|
+
/**
|
|
4
|
+
* `reviews` is deliberately absent here — the frozen branch merges `projectPostPurchaseReviews`'s result
|
|
5
|
+
* in, but that reader (and the nine provider formats behind it) is Slice 26's "Review providers" module.
|
|
6
|
+
* Slice 26 extends this schema and `projectPostPurchaseProductDisplay`'s return value with the field
|
|
7
|
+
* together, rather than this Slice carrying an always-null placeholder for it.
|
|
8
|
+
*/
|
|
9
|
+
export declare const PostPurchaseProductDisplay: z.ZodObject<{
|
|
10
|
+
discountedFrom: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
11
|
+
price: "price";
|
|
12
|
+
compare_at_price: "compare_at_price";
|
|
13
|
+
}>>>;
|
|
14
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
images: z.ZodArray<z.ZodObject<{
|
|
16
|
+
description: z.ZodString;
|
|
17
|
+
id: z.ZodNumber;
|
|
18
|
+
source: z.ZodString;
|
|
19
|
+
thumbnail: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>;
|
|
21
|
+
selectedImageId: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
language: z.ZodObject<{
|
|
24
|
+
description: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>;
|
|
25
|
+
descriptionEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
26
|
+
descriptionRte: z.ZodOptional<z.ZodObject<{
|
|
27
|
+
content: z.ZodArray<z.ZodUnknown>;
|
|
28
|
+
type: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
descriptionSpacing: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
default: "default";
|
|
32
|
+
none: "none";
|
|
33
|
+
tight: "tight";
|
|
34
|
+
loose: "loose";
|
|
35
|
+
xtight: "xtight";
|
|
36
|
+
xloose: "xloose";
|
|
37
|
+
}>>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
primaryImage: z.ZodObject<{
|
|
40
|
+
description: z.ZodString;
|
|
41
|
+
source: z.ZodString;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
productOptions: z.ZodObject<{
|
|
44
|
+
showDeclineAll: z.ZodOptional<z.ZodEnum<{
|
|
45
|
+
none: "none";
|
|
46
|
+
both: "both";
|
|
47
|
+
above: "above";
|
|
48
|
+
below: "below";
|
|
49
|
+
}>>;
|
|
50
|
+
showShipping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
51
|
+
showSubtotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
52
|
+
showTaxes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
53
|
+
showTotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
54
|
+
showVariantSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
responseDescription: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>;
|
|
57
|
+
shouldShowSavingText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type PostPurchaseProductDisplay = z.infer<typeof PostPurchaseProductDisplay>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PostPurchaseProductGallery: z.ZodObject<{
|
|
3
|
+
images: z.ZodArray<z.ZodObject<{
|
|
4
|
+
description: z.ZodString;
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
source: z.ZodString;
|
|
7
|
+
thumbnail: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
selectedImageId: z.ZodOptional<z.ZodNumber>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export type PostPurchaseProductGallery = z.infer<typeof PostPurchaseProductGallery>;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* The effective (merged original + response) configuration purchase terms and display both consume.
|
|
4
|
+
* `advance`, `blocks`, `integrations`, `styles` and `subscription` are deliberately `unknown` here: each is
|
|
5
|
+
* parsed where it is consumed (admission, offer copy, review provider/styles, subscription terms), so a
|
|
6
|
+
* malformed value fails only the feature that reads it rather than rejecting the whole offer at this boundary.
|
|
7
|
+
*/
|
|
8
|
+
export declare const PostPurchaseProductSettings: z.ZodObject<{
|
|
9
|
+
language: z.ZodObject<{
|
|
10
|
+
description: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>;
|
|
11
|
+
descriptionEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
12
|
+
descriptionRte: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
content: z.ZodArray<z.ZodUnknown>;
|
|
14
|
+
type: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
descriptionSpacing: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
default: "default";
|
|
18
|
+
none: "none";
|
|
19
|
+
tight: "tight";
|
|
20
|
+
loose: "loose";
|
|
21
|
+
xtight: "xtight";
|
|
22
|
+
xloose: "xloose";
|
|
23
|
+
}>>;
|
|
24
|
+
displayCtaPrice: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
global: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
26
|
+
declineAll: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
27
|
+
declineThisOffer: z.ZodDefault<z.ZodString>;
|
|
28
|
+
free: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
notAvailable: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
payNow: z.ZodDefault<z.ZodString>;
|
|
31
|
+
payNowUpgradeToSubscription: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
quantity: z.ZodDefault<z.ZodString>;
|
|
33
|
+
recurringShipping: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
recurringSubtotal: z.ZodDefault<z.ZodString>;
|
|
35
|
+
reviewsPlural: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
36
|
+
reviewsSingular: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
37
|
+
save: z.ZodDefault<z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>>;
|
|
38
|
+
shipping: z.ZodDefault<z.ZodString>;
|
|
39
|
+
subscriptionOption: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
40
|
+
subtotal: z.ZodDefault<z.ZodString>;
|
|
41
|
+
taxes: z.ZodDefault<z.ZodString>;
|
|
42
|
+
total: z.ZodDefault<z.ZodString>;
|
|
43
|
+
}, z.core.$strip>>>;
|
|
44
|
+
globalTranslation: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
productType: z.ZodDefault<z.ZodUnion<readonly [z.ZodEnum<{
|
|
47
|
+
"one-time": "one-time";
|
|
48
|
+
subscription: "subscription";
|
|
49
|
+
both: "both";
|
|
50
|
+
}>, z.ZodPipe<z.ZodLiteral<"">, z.ZodTransform<string, "">>]>>;
|
|
51
|
+
discountedFrom: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
52
|
+
price: "price";
|
|
53
|
+
compare_at_price: "compare_at_price";
|
|
54
|
+
}>>>;
|
|
55
|
+
subscriptionIsDefault: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
productLimit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
57
|
+
productOptions: z.ZodObject<{
|
|
58
|
+
hideOutOfStockVariants: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
matchVariant: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60
|
+
showDeclineAll: z.ZodOptional<z.ZodEnum<{
|
|
61
|
+
none: "none";
|
|
62
|
+
both: "both";
|
|
63
|
+
above: "above";
|
|
64
|
+
below: "below";
|
|
65
|
+
}>>;
|
|
66
|
+
showShipping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
67
|
+
showSubtotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
68
|
+
showTaxes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
69
|
+
showTotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
70
|
+
showVariantSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
71
|
+
variantSelectorDisplayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
single: "single";
|
|
73
|
+
separate: "separate";
|
|
74
|
+
}>>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
productTypeSelector: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
77
|
+
radio: "radio";
|
|
78
|
+
dropdown: "dropdown";
|
|
79
|
+
}>>>;
|
|
80
|
+
quantityInputs: z.ZodObject<{
|
|
81
|
+
defaultQuantity: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodNull, z.ZodTransform<number, null>>]>>;
|
|
82
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
83
|
+
maxValue: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodNull, z.ZodTransform<number, null>>]>>;
|
|
84
|
+
minValue: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodUnknown, z.ZodTransform<number, unknown>>]>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
upgradeToSubscription: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
87
|
+
acceptButtonText: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
88
|
+
allow: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
89
|
+
emailRefundNotice: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
90
|
+
errorBannerText: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
91
|
+
}, z.core.$strip>>>;
|
|
92
|
+
advance: z.ZodDefault<z.ZodUnknown>;
|
|
93
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
94
|
+
discount: z.ZodObject<{
|
|
95
|
+
shouldShowSavingText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
96
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
none: "none";
|
|
98
|
+
percentage: "percentage";
|
|
99
|
+
fixed_amount: "fixed_amount";
|
|
100
|
+
}>>;
|
|
101
|
+
amount: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
102
|
+
}, z.core.$strip>;
|
|
103
|
+
integrations: z.ZodDefault<z.ZodUnknown>;
|
|
104
|
+
shipping: z.ZodObject<{
|
|
105
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
106
|
+
title: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
107
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
108
|
+
fixed_amount: "fixed_amount";
|
|
109
|
+
free: "free";
|
|
110
|
+
}>>;
|
|
111
|
+
amount: z.ZodDefault<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
styles: z.ZodDefault<z.ZodUnknown>;
|
|
114
|
+
subImages: z.ZodCatch<z.ZodDefault<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>>;
|
|
115
|
+
subscription: z.ZodDefault<z.ZodUnknown>;
|
|
116
|
+
}, z.core.$strip>;
|
|
117
|
+
export type PostPurchaseProductSettings = z.infer<typeof PostPurchaseProductSettings>;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** Legacy decimal-string money as the data-source API actually sends it (never a bare JS number). */
|
|
3
|
+
export declare const PostPurchaseAmount: z.ZodString;
|
|
4
|
+
export declare const PostPurchaseProductId: z.ZodNumber;
|
|
5
|
+
export declare const PostPurchaseVariantId: z.ZodNumber;
|
|
6
|
+
/**
|
|
7
|
+
* The data-source product/variant response shape `normalizePostPurchaseProduct` validates. `recommendedVariantIds`
|
|
8
|
+
* is deliberately not declared here (decision 15): the legacy build never delivered the v2-recommendation
|
|
9
|
+
* branch it fed (the equivalent legacy schema stripped the field before any reader ran), so this rebuild
|
|
10
|
+
* does not carry it forward either — an undeclared key is simply dropped by `.parse()`, matching that dead
|
|
11
|
+
* behaviour rather than reviving it.
|
|
12
|
+
*
|
|
13
|
+
* The `unknown` product/variant fields (`options`, `option1–3`, selling-plan fields, `selectedVariant`,
|
|
14
|
+
* `productGroupVariants`, `metafields`) are likewise parsed at their point of use — e.g.
|
|
15
|
+
* `projectPostPurchaseVariantCatalog` validates options — so malformed optional control data never rejects
|
|
16
|
+
* a fixed single-variant offer that does not read it.
|
|
17
|
+
*/
|
|
18
|
+
export declare const PostPurchaseProductSource: z.ZodObject<{
|
|
19
|
+
data: z.ZodArray<z.ZodObject<{
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
22
|
+
src: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>>;
|
|
24
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
id: z.ZodNumber;
|
|
26
|
+
images: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
27
|
+
alt: z.ZodCatch<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
id: z.ZodNumber;
|
|
29
|
+
src: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>>>;
|
|
31
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
productQuantity: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodPipe<z.ZodString, z.ZodTransform<number, string>>]>>;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
metafields: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
options: z.ZodOptional<z.ZodUnknown>;
|
|
36
|
+
productGroupVariants: z.ZodDefault<z.ZodArray<z.ZodUnknown>>;
|
|
37
|
+
selectedVariant: z.ZodOptional<z.ZodUnknown>;
|
|
38
|
+
sellingPlanGroups: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
39
|
+
requiresSellingPlan: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
discountAmount: z.ZodOptional<z.ZodUnknown>;
|
|
41
|
+
discountType: z.ZodOptional<z.ZodUnknown>;
|
|
42
|
+
id: z.ZodOptional<z.ZodUnknown>;
|
|
43
|
+
sellingPlans: z.ZodOptional<z.ZodUnknown>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
48
|
+
id: z.ZodNumber;
|
|
49
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
50
|
+
inventoryManagement: z.ZodNullable<z.ZodString>;
|
|
51
|
+
inventoryPolicy: z.ZodString;
|
|
52
|
+
inventoryQuantity: z.ZodNumber;
|
|
53
|
+
option1: z.ZodOptional<z.ZodUnknown>;
|
|
54
|
+
option2: z.ZodOptional<z.ZodUnknown>;
|
|
55
|
+
option3: z.ZodOptional<z.ZodUnknown>;
|
|
56
|
+
price: z.ZodString;
|
|
57
|
+
productId: z.ZodNumber;
|
|
58
|
+
sellingPlanAllocations: z.ZodOptional<z.ZodUnknown>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
}, z.core.$strip>>;
|
|
61
|
+
metadata: z.ZodDefault<z.ZodObject<{
|
|
62
|
+
widget: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
63
|
+
}, z.core.$strip>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type PostPurchaseProductSource = z.infer<typeof PostPurchaseProductSource>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PostPurchaseVariantSelector: z.ZodObject<{
|
|
3
|
+
variantId: z.ZodNumber;
|
|
4
|
+
}, z.core.$strict>;
|
|
5
|
+
export type PostPurchaseVariantSelector = z.infer<typeof PostPurchaseVariantSelector>;
|
|
6
|
+
export declare const PostPurchaseVariantOption: z.ZodObject<{
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
values: z.ZodArray<z.ZodString>;
|
|
9
|
+
id: z.ZodNumber;
|
|
10
|
+
position: z.ZodNumber;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export declare const PostPurchaseVariantValues: z.ZodObject<{
|
|
13
|
+
option1: z.ZodString;
|
|
14
|
+
option2: z.ZodNullable<z.ZodString>;
|
|
15
|
+
option3: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
/** Catalog availability describes inventory only; it never grants purchase authority. */
|
|
18
|
+
export declare const PostPurchaseVariantCatalog: z.ZodObject<{
|
|
19
|
+
displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
single: "single";
|
|
21
|
+
separate: "separate";
|
|
22
|
+
}>>>;
|
|
23
|
+
options: z.ZodArray<z.ZodObject<{
|
|
24
|
+
name: z.ZodString;
|
|
25
|
+
values: z.ZodArray<z.ZodString>;
|
|
26
|
+
id: z.ZodNumber;
|
|
27
|
+
position: z.ZodNumber;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
productId: z.ZodNumber;
|
|
30
|
+
showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
32
|
+
option1: z.ZodOptional<z.ZodString>;
|
|
33
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
34
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
available: z.ZodBoolean;
|
|
36
|
+
id: z.ZodNumber;
|
|
37
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type PostPurchaseVariantCatalog = z.infer<typeof PostPurchaseVariantCatalog>;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* `recommendedVariantIds` is deliberately absent (decision 15): the legacy v2-recommendation fallback it
|
|
4
|
+
* fed never fired against real data, so `resolvePostPurchaseVariantDefault` no longer has a recommendation
|
|
5
|
+
* step to feed either.
|
|
6
|
+
*/
|
|
7
|
+
export declare const PostPurchaseVariantDefaultProduct: z.ZodObject<{
|
|
8
|
+
id: z.ZodNumber;
|
|
9
|
+
options: z.ZodArray<z.ZodObject<{
|
|
10
|
+
values: z.ZodArray<z.ZodString>;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
selectedVariant: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
|
+
option1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
id: z.ZodNumber;
|
|
18
|
+
inventoryManagement: z.ZodNullable<z.ZodString>;
|
|
19
|
+
inventoryPolicy: z.ZodString;
|
|
20
|
+
inventoryQuantity: z.ZodNumber;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
23
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
option1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
+
id: z.ZodNumber;
|
|
27
|
+
inventoryManagement: z.ZodNullable<z.ZodString>;
|
|
28
|
+
inventoryPolicy: z.ZodString;
|
|
29
|
+
inventoryQuantity: z.ZodNumber;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const PostPurchaseVariantDefaultSettings: z.ZodObject<{
|
|
33
|
+
matchVariant: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
34
|
+
hideOutOfStockVariants: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const PostPurchaseOrderAttributes: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
@@ -45,17 +45,17 @@ export declare const ShopConfig: z.ZodObject<{
|
|
|
45
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
46
46
|
id: z.ZodCoercedNumber<unknown>;
|
|
47
47
|
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
-
attentive: "attentive";
|
|
49
48
|
judgeme: "judgeme";
|
|
50
49
|
junip: "junip";
|
|
51
50
|
klaviyo: "klaviyo";
|
|
52
51
|
loox: "loox";
|
|
53
52
|
okendo: "okendo";
|
|
54
53
|
opinew: "opinew";
|
|
55
|
-
recharge: "recharge";
|
|
56
54
|
reviewsio: "reviewsio";
|
|
57
55
|
stamped: "stamped";
|
|
58
56
|
yotpo: "yotpo";
|
|
57
|
+
attentive: "attentive";
|
|
58
|
+
recharge: "recharge";
|
|
59
59
|
}>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnknown]>>;
|
|
60
60
|
markets: z.ZodObject<{
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
@@ -45,17 +45,17 @@ export declare const UserConfig: z.ZodObject<{
|
|
|
45
45
|
hasSmartSearchEnabled: z.ZodBoolean;
|
|
46
46
|
id: z.ZodCoercedNumber<unknown>;
|
|
47
47
|
integrations: z.ZodRecord<z.ZodEnum<{
|
|
48
|
-
attentive: "attentive";
|
|
49
48
|
judgeme: "judgeme";
|
|
50
49
|
junip: "junip";
|
|
51
50
|
klaviyo: "klaviyo";
|
|
52
51
|
loox: "loox";
|
|
53
52
|
okendo: "okendo";
|
|
54
53
|
opinew: "opinew";
|
|
55
|
-
recharge: "recharge";
|
|
56
54
|
reviewsio: "reviewsio";
|
|
57
55
|
stamped: "stamped";
|
|
58
56
|
yotpo: "yotpo";
|
|
57
|
+
attentive: "attentive";
|
|
58
|
+
recharge: "recharge";
|
|
59
59
|
}>, z.ZodUnion<readonly [z.ZodBoolean, z.ZodUnknown]>>;
|
|
60
60
|
markets: z.ZodObject<{
|
|
61
61
|
enabled: z.ZodBoolean;
|
|
@@ -20,15 +20,15 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
20
20
|
imagePlacement: z.ZodEnum<{
|
|
21
21
|
top: "top";
|
|
22
22
|
bottom: "bottom";
|
|
23
|
-
right: "right";
|
|
24
23
|
left: "left";
|
|
24
|
+
right: "right";
|
|
25
25
|
}>;
|
|
26
26
|
imageSize: z.ZodNumber;
|
|
27
27
|
imageUrl: z.ZodURL;
|
|
28
28
|
textAlignment: z.ZodEnum<{
|
|
29
29
|
center: "center";
|
|
30
|
-
right: "right";
|
|
31
30
|
left: "left";
|
|
31
|
+
right: "right";
|
|
32
32
|
}>;
|
|
33
33
|
textSize: z.ZodEnum<{
|
|
34
34
|
small: "small";
|
|
@@ -10,6 +10,18 @@ export declare const CABBannerSection: z.ZodLazy<z.ZodObject<{
|
|
|
10
10
|
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
11
11
|
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
14
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
start: "start";
|
|
16
|
+
center: "center";
|
|
17
|
+
end: "end";
|
|
18
|
+
}>>;
|
|
19
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
20
|
+
top: "top";
|
|
21
|
+
middle: "middle";
|
|
22
|
+
bottom: "bottom";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
13
25
|
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
14
26
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
15
27
|
small: "small";
|
|
@@ -30,6 +42,23 @@ export declare const CABBannerSection: z.ZodLazy<z.ZodObject<{
|
|
|
30
42
|
thick: "thick";
|
|
31
43
|
}>>;
|
|
32
44
|
}, z.core.$strip>>>;
|
|
45
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
46
|
+
columns: "columns";
|
|
47
|
+
rows: "rows";
|
|
48
|
+
grid: "grid";
|
|
49
|
+
}>>;
|
|
50
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
51
|
+
callout: "callout";
|
|
52
|
+
"offer-content": "offer-content";
|
|
53
|
+
}>>;
|
|
54
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
55
|
+
none: "none";
|
|
56
|
+
base: "base";
|
|
57
|
+
extraTight: "extraTight";
|
|
58
|
+
tight: "tight";
|
|
59
|
+
loose: "loose";
|
|
60
|
+
extraLoose: "extraLoose";
|
|
61
|
+
}>>;
|
|
33
62
|
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
63
|
effect: z.ZodDefault<z.ZodEnum<{
|
|
35
64
|
set_false: "set_false";
|
|
@@ -215,35 +244,6 @@ export declare const CABBannerSection: z.ZodLazy<z.ZodObject<{
|
|
|
215
244
|
variable: z.ZodString;
|
|
216
245
|
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
217
246
|
}, z.core.$strip>>;
|
|
218
|
-
alignment: z.ZodDefault<z.ZodObject<{
|
|
219
|
-
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
220
|
-
start: "start";
|
|
221
|
-
center: "center";
|
|
222
|
-
end: "end";
|
|
223
|
-
}>>;
|
|
224
|
-
vertical: z.ZodDefault<z.ZodEnum<{
|
|
225
|
-
top: "top";
|
|
226
|
-
middle: "middle";
|
|
227
|
-
bottom: "bottom";
|
|
228
|
-
}>>;
|
|
229
|
-
}, z.core.$strip>>;
|
|
230
|
-
direction: z.ZodDefault<z.ZodEnum<{
|
|
231
|
-
columns: "columns";
|
|
232
|
-
rows: "rows";
|
|
233
|
-
grid: "grid";
|
|
234
|
-
}>>;
|
|
235
|
-
frame: z.ZodOptional<z.ZodEnum<{
|
|
236
|
-
callout: "callout";
|
|
237
|
-
"offer-content": "offer-content";
|
|
238
|
-
}>>;
|
|
239
|
-
padding: z.ZodDefault<z.ZodEnum<{
|
|
240
|
-
none: "none";
|
|
241
|
-
base: "base";
|
|
242
|
-
extraTight: "extraTight";
|
|
243
|
-
tight: "tight";
|
|
244
|
-
loose: "loose";
|
|
245
|
-
extraLoose: "extraLoose";
|
|
246
|
-
}>>;
|
|
247
247
|
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import("./shared").CABSection, unknown, z.core.$ZodTypeInternals<import("./shared").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
248
248
|
spacing: z.ZodDefault<z.ZodEnum<{
|
|
249
249
|
none: "none";
|
|
@@ -10,6 +10,18 @@ export declare const CABCarouselSection: z.ZodLazy<z.ZodObject<{
|
|
|
10
10
|
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
11
11
|
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
12
12
|
}, z.core.$strip>>>;
|
|
13
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
14
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
15
|
+
start: "start";
|
|
16
|
+
center: "center";
|
|
17
|
+
end: "end";
|
|
18
|
+
}>>;
|
|
19
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
20
|
+
top: "top";
|
|
21
|
+
middle: "middle";
|
|
22
|
+
bottom: "bottom";
|
|
23
|
+
}>>;
|
|
24
|
+
}, z.core.$strip>>;
|
|
13
25
|
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
14
26
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
15
27
|
small: "small";
|
|
@@ -55,6 +67,23 @@ export declare const CABCarouselSection: z.ZodLazy<z.ZodObject<{
|
|
|
55
67
|
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
56
68
|
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
57
69
|
}>>;
|
|
70
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
columns: "columns";
|
|
72
|
+
rows: "rows";
|
|
73
|
+
grid: "grid";
|
|
74
|
+
}>>;
|
|
75
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
76
|
+
callout: "callout";
|
|
77
|
+
"offer-content": "offer-content";
|
|
78
|
+
}>>;
|
|
79
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
80
|
+
none: "none";
|
|
81
|
+
base: "base";
|
|
82
|
+
extraTight: "extraTight";
|
|
83
|
+
tight: "tight";
|
|
84
|
+
loose: "loose";
|
|
85
|
+
extraLoose: "extraLoose";
|
|
86
|
+
}>>;
|
|
58
87
|
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
88
|
effect: z.ZodDefault<z.ZodEnum<{
|
|
60
89
|
set_false: "set_false";
|
|
@@ -240,35 +269,6 @@ export declare const CABCarouselSection: z.ZodLazy<z.ZodObject<{
|
|
|
240
269
|
variable: z.ZodString;
|
|
241
270
|
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
242
271
|
}, z.core.$strip>>;
|
|
243
|
-
alignment: z.ZodDefault<z.ZodObject<{
|
|
244
|
-
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
245
|
-
start: "start";
|
|
246
|
-
center: "center";
|
|
247
|
-
end: "end";
|
|
248
|
-
}>>;
|
|
249
|
-
vertical: z.ZodDefault<z.ZodEnum<{
|
|
250
|
-
top: "top";
|
|
251
|
-
middle: "middle";
|
|
252
|
-
bottom: "bottom";
|
|
253
|
-
}>>;
|
|
254
|
-
}, z.core.$strip>>;
|
|
255
|
-
direction: z.ZodDefault<z.ZodEnum<{
|
|
256
|
-
columns: "columns";
|
|
257
|
-
rows: "rows";
|
|
258
|
-
grid: "grid";
|
|
259
|
-
}>>;
|
|
260
|
-
frame: z.ZodOptional<z.ZodEnum<{
|
|
261
|
-
callout: "callout";
|
|
262
|
-
"offer-content": "offer-content";
|
|
263
|
-
}>>;
|
|
264
|
-
padding: z.ZodDefault<z.ZodEnum<{
|
|
265
|
-
none: "none";
|
|
266
|
-
base: "base";
|
|
267
|
-
extraTight: "extraTight";
|
|
268
|
-
tight: "tight";
|
|
269
|
-
loose: "loose";
|
|
270
|
-
extraLoose: "extraLoose";
|
|
271
|
-
}>>;
|
|
272
272
|
spacing: z.ZodDefault<z.ZodEnum<{
|
|
273
273
|
none: "none";
|
|
274
274
|
base: "base";
|
|
@@ -9,6 +9,18 @@ export declare const CABCartLineSection: z.ZodLazy<z.ZodObject<{
|
|
|
9
9
|
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
10
10
|
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
11
11
|
}, z.core.$strip>>>;
|
|
12
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
13
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
14
|
+
start: "start";
|
|
15
|
+
center: "center";
|
|
16
|
+
end: "end";
|
|
17
|
+
}>>;
|
|
18
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
top: "top";
|
|
20
|
+
middle: "middle";
|
|
21
|
+
bottom: "bottom";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
12
24
|
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
13
25
|
radius: z.ZodDefault<z.ZodEnum<{
|
|
14
26
|
small: "small";
|
|
@@ -54,6 +66,23 @@ export declare const CABCartLineSection: z.ZodLazy<z.ZodObject<{
|
|
|
54
66
|
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
55
67
|
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
56
68
|
}>>;
|
|
69
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
70
|
+
columns: "columns";
|
|
71
|
+
rows: "rows";
|
|
72
|
+
grid: "grid";
|
|
73
|
+
}>>;
|
|
74
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
75
|
+
callout: "callout";
|
|
76
|
+
"offer-content": "offer-content";
|
|
77
|
+
}>>;
|
|
78
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
none: "none";
|
|
80
|
+
base: "base";
|
|
81
|
+
extraTight: "extraTight";
|
|
82
|
+
tight: "tight";
|
|
83
|
+
loose: "loose";
|
|
84
|
+
extraLoose: "extraLoose";
|
|
85
|
+
}>>;
|
|
57
86
|
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
87
|
effect: z.ZodDefault<z.ZodEnum<{
|
|
59
88
|
set_false: "set_false";
|
|
@@ -239,35 +268,6 @@ export declare const CABCartLineSection: z.ZodLazy<z.ZodObject<{
|
|
|
239
268
|
variable: z.ZodString;
|
|
240
269
|
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
241
270
|
}, z.core.$strip>>;
|
|
242
|
-
alignment: z.ZodDefault<z.ZodObject<{
|
|
243
|
-
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
244
|
-
start: "start";
|
|
245
|
-
center: "center";
|
|
246
|
-
end: "end";
|
|
247
|
-
}>>;
|
|
248
|
-
vertical: z.ZodDefault<z.ZodEnum<{
|
|
249
|
-
top: "top";
|
|
250
|
-
middle: "middle";
|
|
251
|
-
bottom: "bottom";
|
|
252
|
-
}>>;
|
|
253
|
-
}, z.core.$strip>>;
|
|
254
|
-
direction: z.ZodDefault<z.ZodEnum<{
|
|
255
|
-
columns: "columns";
|
|
256
|
-
rows: "rows";
|
|
257
|
-
grid: "grid";
|
|
258
|
-
}>>;
|
|
259
|
-
frame: z.ZodOptional<z.ZodEnum<{
|
|
260
|
-
callout: "callout";
|
|
261
|
-
"offer-content": "offer-content";
|
|
262
|
-
}>>;
|
|
263
|
-
padding: z.ZodDefault<z.ZodEnum<{
|
|
264
|
-
none: "none";
|
|
265
|
-
base: "base";
|
|
266
|
-
extraTight: "extraTight";
|
|
267
|
-
tight: "tight";
|
|
268
|
-
loose: "loose";
|
|
269
|
-
extraLoose: "extraLoose";
|
|
270
|
-
}>>;
|
|
271
271
|
spacing: z.ZodDefault<z.ZodEnum<{
|
|
272
272
|
none: "none";
|
|
273
273
|
base: "base";
|