@rebuy/rebuy 3.35.0 → 3.37.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 +799 -648
- package/dist/index.mjs +799 -648
- package/dist/schema/index.d.ts +4 -0
- package/dist/schema/postPurchaseGroup.d.ts +15 -0
- package/dist/schema/postPurchaseProduct.d.ts +102 -24
- package/dist/schema/postPurchaseProductCalculation.d.ts +87 -0
- package/dist/schema/postPurchaseProductCollectionView.d.ts +738 -3
- package/dist/schema/postPurchaseProductDisplay.d.ts +57 -16
- package/dist/schema/postPurchaseProductReviews.d.ts +36 -0
- package/dist/schema/postPurchaseProductView.d.ts +722 -0
- package/dist/schema/postPurchaseQuantity.d.ts +16 -3
- package/dist/schema/postPurchaseSubscriptionProduct.d.ts +98 -17
- package/dist/server/__fixtures__/postPurchaseGroup.d.ts +3 -0
- package/dist/server/__fixtures__/postPurchaseReviewProviders.d.ts +30 -0
- package/dist/server/__fixtures__/postPurchaseReviews.d.ts +67 -0
- package/dist/server/index.cjs +1014 -348
- package/dist/server/index.d.ts +13 -2
- package/dist/server/index.mjs +1014 -348
- package/dist/server/postPurchaseJudgeMeReviews.d.ts +6 -0
- package/dist/server/postPurchaseOkendoReviews.d.ts +6 -0
- package/dist/server/postPurchaseProductDisplay.d.ts +49 -7
- package/dist/server/postPurchaseReviewData.d.ts +7 -0
- package/dist/server/postPurchaseReviewFields.d.ts +7 -0
- package/dist/server/postPurchaseReviewProvider.d.ts +2 -0
- package/dist/server/postPurchaseReviews.d.ts +5 -0
- package/dist/server/postPurchaseScalarReviews.d.ts +6 -0
- package/dist/server/prepareNormalizedSubscription.d.ts +2 -2
- package/dist/server/preparePostPurchaseAdmissionView.d.ts +428 -0
- package/dist/server/preparePostPurchaseCollectionGroup.d.ts +468 -0
- package/dist/server/preparePostPurchaseCollectionView.d.ts +452 -0
- package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +469 -0
- package/dist/server/preparePostPurchaseGroupDefault.d.ts +469 -0
- package/dist/server/preparePostPurchaseGroupView.d.ts +468 -0
- package/dist/server/preparePostPurchaseMemberView.d.ts +1496 -0
- package/dist/server/preparePostPurchaseProduct.d.ts +8 -0
- package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +450 -0
- package/dist/server/preparePostPurchaseQuantityView.d.ts +437 -0
- package/dist/server/preparePostPurchaseSubscription.d.ts +47 -5
- package/dist/server/preparePostPurchaseView.d.ts +8 -0
- package/dist/server/projectPostPurchaseProduct.d.ts +49 -6
- package/dist/transforms/postPurchase/convertDescriptionRte.d.ts +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,722 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* A prepared view shows exactly one description: plain `description`, or — when the merchant's rich
|
|
4
|
+
* description wins the precedence — `description: null` with the standard-shape `descriptionDocument`.
|
|
5
|
+
*/
|
|
6
|
+
export declare const PostPurchaseProductView: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
|
+
groupCatalog: z.ZodOptional<z.ZodObject<{
|
|
8
|
+
memberProductId: z.ZodNumber;
|
|
9
|
+
options: z.ZodArray<z.ZodObject<{
|
|
10
|
+
productId: z.ZodNumber;
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
variantCatalog: z.ZodObject<{
|
|
13
|
+
displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
single: "single";
|
|
15
|
+
separate: "separate";
|
|
16
|
+
}>>>;
|
|
17
|
+
options: z.ZodArray<z.ZodObject<{
|
|
18
|
+
name: z.ZodString;
|
|
19
|
+
values: z.ZodArray<z.ZodString>;
|
|
20
|
+
id: z.ZodNumber;
|
|
21
|
+
position: z.ZodNumber;
|
|
22
|
+
}, z.core.$strip>>;
|
|
23
|
+
productId: z.ZodNumber;
|
|
24
|
+
showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
25
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
26
|
+
option1: z.ZodOptional<z.ZodString>;
|
|
27
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
|
+
available: z.ZodBoolean;
|
|
30
|
+
id: z.ZodNumber;
|
|
31
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
}, z.core.$strip>>;
|
|
37
|
+
initialVariant: z.ZodOptional<z.ZodObject<{
|
|
38
|
+
variantId: z.ZodNumber;
|
|
39
|
+
}, z.core.$strict>>;
|
|
40
|
+
planCatalog: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
41
|
+
plans: z.ZodArray<z.ZodObject<{
|
|
42
|
+
adjustment: z.ZodOptional<z.ZodObject<{
|
|
43
|
+
amount: z.ZodNumber;
|
|
44
|
+
type: z.ZodEnum<{
|
|
45
|
+
price: "price";
|
|
46
|
+
fixed_amount: "fixed_amount";
|
|
47
|
+
percentage: "percentage";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
id: z.ZodNumber;
|
|
51
|
+
intervalFrequency: z.ZodOptional<z.ZodString>;
|
|
52
|
+
intervalLabel: z.ZodString;
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
55
|
+
productId: z.ZodNumber;
|
|
56
|
+
requiresSellingPlan: z.ZodBoolean;
|
|
57
|
+
variantId: z.ZodNumber;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
preparation: z.ZodObject<{
|
|
60
|
+
labels: z.ZodObject<{
|
|
61
|
+
declineAll: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
62
|
+
free: z.ZodString;
|
|
63
|
+
payNow: z.ZodString;
|
|
64
|
+
quantity: z.ZodString;
|
|
65
|
+
recurringShipping: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
66
|
+
recurringSubtotal: z.ZodDefault<z.ZodString>;
|
|
67
|
+
save: z.ZodString;
|
|
68
|
+
shipping: z.ZodString;
|
|
69
|
+
subtotal: z.ZodString;
|
|
70
|
+
taxes: z.ZodString;
|
|
71
|
+
total: z.ZodString;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
product: z.ZodObject<{
|
|
74
|
+
title: z.ZodString;
|
|
75
|
+
image: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
76
|
+
src: z.ZodString;
|
|
77
|
+
}, z.core.$strip>>>;
|
|
78
|
+
description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
79
|
+
id: z.ZodNumber;
|
|
80
|
+
variant: z.ZodObject<{
|
|
81
|
+
title: z.ZodString;
|
|
82
|
+
compareAtPrice: z.ZodNullable<z.ZodString>;
|
|
83
|
+
id: z.ZodNumber;
|
|
84
|
+
price: z.ZodString;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
selection: z.ZodObject<{
|
|
88
|
+
productId: z.ZodNumber;
|
|
89
|
+
quantity: z.ZodNumber;
|
|
90
|
+
sellingPlanId: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
variantId: z.ZodNumber;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
status: z.ZodLiteral<"prepared">;
|
|
94
|
+
terms: z.ZodObject<{
|
|
95
|
+
discount: z.ZodObject<{
|
|
96
|
+
amount: z.ZodNumber;
|
|
97
|
+
title: z.ZodString;
|
|
98
|
+
type: z.ZodEnum<{
|
|
99
|
+
none: "none";
|
|
100
|
+
fixed_amount: "fixed_amount";
|
|
101
|
+
percentage: "percentage";
|
|
102
|
+
}>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
shipping: z.ZodObject<{
|
|
105
|
+
amount: z.ZodNumber;
|
|
106
|
+
title: z.ZodString;
|
|
107
|
+
type: z.ZodEnum<{
|
|
108
|
+
fixed_amount: "fixed_amount";
|
|
109
|
+
free: "free";
|
|
110
|
+
}>;
|
|
111
|
+
}, z.core.$strip>;
|
|
112
|
+
subscription: z.ZodOptional<z.ZodObject<{
|
|
113
|
+
adjustment: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
amount: z.ZodNumber;
|
|
115
|
+
type: z.ZodEnum<{
|
|
116
|
+
price: "price";
|
|
117
|
+
fixed_amount: "fixed_amount";
|
|
118
|
+
percentage: "percentage";
|
|
119
|
+
}>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
initialShippingPrice: z.ZodNumber;
|
|
122
|
+
intervalLabel: z.ZodString;
|
|
123
|
+
name: z.ZodString;
|
|
124
|
+
recurringShippingPrice: z.ZodNumber;
|
|
125
|
+
shippingOption: z.ZodObject<{
|
|
126
|
+
presentmentTitle: z.ZodString;
|
|
127
|
+
title: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
}, z.core.$strip>;
|
|
131
|
+
display: z.ZodObject<{
|
|
132
|
+
descriptionDocument: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
attrs: z.ZodDefault<z.ZodObject<{
|
|
134
|
+
blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
137
|
+
attrs: z.ZodDefault<z.ZodObject<{
|
|
138
|
+
textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
content: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
141
|
+
marks: z.ZodOptional<z.ZodUnion<readonly [z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
142
|
+
type: z.ZodLiteral<"bold">;
|
|
143
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"italic">;
|
|
145
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
+
attrs: z.ZodObject<{
|
|
147
|
+
class: z.ZodNullable<z.ZodString>;
|
|
148
|
+
href: z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"#">, z.ZodString, z.ZodString]>;
|
|
149
|
+
rel: z.ZodDefault<z.ZodString>;
|
|
150
|
+
target: z.ZodDefault<z.ZodString>;
|
|
151
|
+
}, z.core.$strip>;
|
|
152
|
+
type: z.ZodLiteral<"link">;
|
|
153
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
154
|
+
type: z.ZodLiteral<"strike">;
|
|
155
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
+
attrs: z.ZodObject<{
|
|
157
|
+
color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"success" | "warning" | "critical" | "base" | "decorative" | "subdued" | "accent" | undefined, string>>>>;
|
|
158
|
+
fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | "heading" | undefined, string>>>>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
type: z.ZodLiteral<"textStyle">;
|
|
161
|
+
}, z.core.$strip>], "type">>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
162
|
+
text: z.ZodDefault<z.ZodString>;
|
|
163
|
+
type: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
164
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
165
|
+
type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
|
|
166
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
167
|
+
type: z.ZodDefault<z.ZodLiteral<"doc">>;
|
|
168
|
+
}, z.core.$strip>>;
|
|
169
|
+
discountedFrom: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
170
|
+
price: "price";
|
|
171
|
+
compare_at_price: "compare_at_price";
|
|
172
|
+
}>>>;
|
|
173
|
+
gallery: z.ZodOptional<z.ZodObject<{
|
|
174
|
+
images: z.ZodArray<z.ZodObject<{
|
|
175
|
+
description: z.ZodString;
|
|
176
|
+
id: z.ZodNumber;
|
|
177
|
+
source: z.ZodString;
|
|
178
|
+
thumbnail: z.ZodString;
|
|
179
|
+
}, z.core.$strip>>;
|
|
180
|
+
selectedImageId: z.ZodOptional<z.ZodNumber>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
language: z.ZodObject<{
|
|
183
|
+
description: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>;
|
|
184
|
+
descriptionEnabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
185
|
+
}, z.core.$strip>;
|
|
186
|
+
primaryImage: z.ZodObject<{
|
|
187
|
+
description: z.ZodString;
|
|
188
|
+
source: z.ZodString;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
productOptions: z.ZodObject<{
|
|
191
|
+
showDeclineAll: z.ZodOptional<z.ZodEnum<{
|
|
192
|
+
none: "none";
|
|
193
|
+
both: "both";
|
|
194
|
+
above: "above";
|
|
195
|
+
below: "below";
|
|
196
|
+
}>>;
|
|
197
|
+
showShipping: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
198
|
+
showSubtotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
199
|
+
showTaxes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
200
|
+
showTotal: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
201
|
+
showVariantSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
responseDescription: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodPipe<z.ZodUnknown, z.ZodTransform<string, unknown>>]>>;
|
|
204
|
+
reviews: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
205
|
+
color: z.ZodString;
|
|
206
|
+
rating: z.ZodNumber;
|
|
207
|
+
reviewCount: z.ZodNumber;
|
|
208
|
+
reviewsPlural: z.ZodString;
|
|
209
|
+
reviewsSingular: z.ZodString;
|
|
210
|
+
size: z.ZodEnum<{
|
|
211
|
+
small: "small";
|
|
212
|
+
large: "large";
|
|
213
|
+
medium: "medium";
|
|
214
|
+
}>;
|
|
215
|
+
strokeColor: z.ZodString;
|
|
216
|
+
strokeWidth: z.ZodNumber;
|
|
217
|
+
}, z.core.$strip>>>;
|
|
218
|
+
shouldShowSavingText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
219
|
+
description: z.ZodNullable<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
purchaseOptions: z.ZodOptional<z.ZodObject<{
|
|
223
|
+
defaultChoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
224
|
+
mode: z.ZodLiteral<"one-time">;
|
|
225
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
226
|
+
mode: z.ZodLiteral<"subscription">;
|
|
227
|
+
sellingPlanId: z.ZodNumber;
|
|
228
|
+
}, z.core.$strict>], "mode">;
|
|
229
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
230
|
+
"one-time": "one-time";
|
|
231
|
+
subscription: "subscription";
|
|
232
|
+
}>>;
|
|
233
|
+
selector: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
234
|
+
radio: "radio";
|
|
235
|
+
dropdown: "dropdown";
|
|
236
|
+
}>>>;
|
|
237
|
+
}, z.core.$strip>>;
|
|
238
|
+
sections: z.ZodObject<{
|
|
239
|
+
alignment: z.ZodDefault<z.ZodObject<{
|
|
240
|
+
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
241
|
+
start: "start";
|
|
242
|
+
center: "center";
|
|
243
|
+
end: "end";
|
|
244
|
+
}>>;
|
|
245
|
+
vertical: z.ZodDefault<z.ZodEnum<{
|
|
246
|
+
top: "top";
|
|
247
|
+
middle: "middle";
|
|
248
|
+
bottom: "bottom";
|
|
249
|
+
}>>;
|
|
250
|
+
}, z.core.$strip>>;
|
|
251
|
+
border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
|
|
252
|
+
radius: z.ZodDefault<z.ZodEnum<{
|
|
253
|
+
small: "small";
|
|
254
|
+
none: "none";
|
|
255
|
+
base: "base";
|
|
256
|
+
large: "large";
|
|
257
|
+
fullyRounded: "fullyRounded";
|
|
258
|
+
}>>;
|
|
259
|
+
style: z.ZodDefault<z.ZodEnum<{
|
|
260
|
+
none: "none";
|
|
261
|
+
base: "base";
|
|
262
|
+
dotted: "dotted";
|
|
263
|
+
dashed: "dashed";
|
|
264
|
+
}>>;
|
|
265
|
+
width: z.ZodDefault<z.ZodEnum<{
|
|
266
|
+
base: "base";
|
|
267
|
+
medium: "medium";
|
|
268
|
+
thick: "thick";
|
|
269
|
+
}>>;
|
|
270
|
+
}, z.core.$strip>>>;
|
|
271
|
+
buttonField: z.ZodOptional<z.ZodEnum<{
|
|
272
|
+
declineAllOffers: "declineAllOffers";
|
|
273
|
+
declineOffer: "declineOffer";
|
|
274
|
+
removeFromOrder: "removeFromOrder";
|
|
275
|
+
undoAddToOrder: "undoAddToOrder";
|
|
276
|
+
activePage: "activePage";
|
|
277
|
+
addedToCart: "addedToCart";
|
|
278
|
+
addingToCart: "addingToCart";
|
|
279
|
+
addToCart: "addToCart";
|
|
280
|
+
buttonLabel: "buttonLabel";
|
|
281
|
+
destinationUrl: "destinationUrl";
|
|
282
|
+
inactivePage: "inactivePage";
|
|
283
|
+
overlayContent: "overlayContent";
|
|
284
|
+
payNow: "payNow";
|
|
285
|
+
progressReached: "progressReached";
|
|
286
|
+
progressRemaining: "progressRemaining";
|
|
287
|
+
redirectToCheckout: "redirectToCheckout";
|
|
288
|
+
showVariant: "showVariant";
|
|
289
|
+
showVariants: "showVariants";
|
|
290
|
+
soldOut: "soldOut";
|
|
291
|
+
subscriptionOption: "subscriptionOption";
|
|
292
|
+
switchToOneTimePurchase: "switchToOneTimePurchase";
|
|
293
|
+
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
294
|
+
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
295
|
+
}>>;
|
|
296
|
+
direction: z.ZodDefault<z.ZodEnum<{
|
|
297
|
+
columns: "columns";
|
|
298
|
+
rows: "rows";
|
|
299
|
+
grid: "grid";
|
|
300
|
+
}>>;
|
|
301
|
+
frame: z.ZodOptional<z.ZodEnum<{
|
|
302
|
+
callout: "callout";
|
|
303
|
+
"offer-content": "offer-content";
|
|
304
|
+
}>>;
|
|
305
|
+
grid: z.ZodOptional<z.ZodDefault<z.ZodObject<{
|
|
306
|
+
columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
307
|
+
rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
|
|
308
|
+
}, z.core.$strip>>>;
|
|
309
|
+
name: z.ZodOptional<z.ZodString>;
|
|
310
|
+
padding: z.ZodDefault<z.ZodEnum<{
|
|
311
|
+
none: "none";
|
|
312
|
+
base: "base";
|
|
313
|
+
extraTight: "extraTight";
|
|
314
|
+
tight: "tight";
|
|
315
|
+
loose: "loose";
|
|
316
|
+
extraLoose: "extraLoose";
|
|
317
|
+
}>>;
|
|
318
|
+
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
319
|
+
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import(".").CABSection, unknown, z.core.$ZodTypeInternals<import(".").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
320
|
+
sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
|
|
321
|
+
spacing: z.ZodDefault<z.ZodEnum<{
|
|
322
|
+
none: "none";
|
|
323
|
+
base: "base";
|
|
324
|
+
extraTight: "extraTight";
|
|
325
|
+
tight: "tight";
|
|
326
|
+
loose: "loose";
|
|
327
|
+
extraLoose: "extraLoose";
|
|
328
|
+
}>>;
|
|
329
|
+
viewUrl: z.ZodOptional<z.ZodString>;
|
|
330
|
+
width: z.ZodDefault<z.ZodNumber>;
|
|
331
|
+
wrapping: z.ZodOptional<z.ZodObject<{
|
|
332
|
+
breakAt: z.ZodNumber;
|
|
333
|
+
maxPerLine: z.ZodNumber;
|
|
334
|
+
}, z.core.$strip>>;
|
|
335
|
+
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
336
|
+
effect: z.ZodDefault<z.ZodEnum<{
|
|
337
|
+
set_false: "set_false";
|
|
338
|
+
set_true: "set_true";
|
|
339
|
+
toggle: "toggle";
|
|
340
|
+
}>>;
|
|
341
|
+
variable: z.ZodString;
|
|
342
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
343
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
344
|
+
is_empty: "is_empty";
|
|
345
|
+
is_not_empty: "is_not_empty";
|
|
346
|
+
}>>;
|
|
347
|
+
type: z.ZodLiteral<"content">;
|
|
348
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
349
|
+
event: z.ZodEnum<{
|
|
350
|
+
item_added: "item_added";
|
|
351
|
+
quantity_changed: "quantity_changed";
|
|
352
|
+
variant_selected: "variant_selected";
|
|
353
|
+
}>;
|
|
354
|
+
type: z.ZodLiteral<"event">;
|
|
355
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
356
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
357
|
+
equals: "equals";
|
|
358
|
+
greater_than: "greater_than";
|
|
359
|
+
less_than: "less_than";
|
|
360
|
+
}>>;
|
|
361
|
+
type: z.ZodLiteral<"result_count">;
|
|
362
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
363
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
364
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
365
|
+
contains: "contains";
|
|
366
|
+
does_not_contain: "does_not_contain";
|
|
367
|
+
}>>;
|
|
368
|
+
type: z.ZodLiteral<"result_tag">;
|
|
369
|
+
value: z.ZodString;
|
|
370
|
+
}, z.core.$strip>], "type">;
|
|
371
|
+
}, z.core.$strip>>>;
|
|
372
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
373
|
+
defaultValue: z.ZodString;
|
|
374
|
+
name: z.ZodString;
|
|
375
|
+
seed: z.ZodOptional<z.ZodNever>;
|
|
376
|
+
type: z.ZodLiteral<"text">;
|
|
377
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
378
|
+
defaultValue: z.ZodNumber;
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
seed: z.ZodOptional<z.ZodNever>;
|
|
381
|
+
type: z.ZodLiteral<"number">;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
+
name: z.ZodString;
|
|
385
|
+
seed: z.ZodOptional<z.ZodObject<{
|
|
386
|
+
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
387
|
+
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
388
|
+
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
389
|
+
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
390
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
391
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
392
|
+
equals: "equals";
|
|
393
|
+
greater_than: "greater_than";
|
|
394
|
+
less_than: "less_than";
|
|
395
|
+
contains: "contains";
|
|
396
|
+
does_not_contain: "does_not_contain";
|
|
397
|
+
after: "after";
|
|
398
|
+
anything: "anything";
|
|
399
|
+
before: "before";
|
|
400
|
+
contains_any: "contains_any";
|
|
401
|
+
does_not_contain_any: "does_not_contain_any";
|
|
402
|
+
does_not_equal: "does_not_equal";
|
|
403
|
+
}>>;
|
|
404
|
+
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
405
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
406
|
+
product: "product";
|
|
407
|
+
date: "date";
|
|
408
|
+
cart: "cart";
|
|
409
|
+
cart_count: "cart_count";
|
|
410
|
+
cart_item_count: "cart_item_count";
|
|
411
|
+
cart_line_count: "cart_line_count";
|
|
412
|
+
cart_subtotal: "cart_subtotal";
|
|
413
|
+
collection: "collection";
|
|
414
|
+
customer: "customer";
|
|
415
|
+
customer_order_count: "customer_order_count";
|
|
416
|
+
customer_tag: "customer_tag";
|
|
417
|
+
customer_total_spent: "customer_total_spent";
|
|
418
|
+
product_tag: "product_tag";
|
|
419
|
+
product_title: "product_title";
|
|
420
|
+
product_type: "product_type";
|
|
421
|
+
product_vendor: "product_vendor";
|
|
422
|
+
}>>;
|
|
423
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
424
|
+
}, z.core.$strip>>>;
|
|
425
|
+
}, z.core.$strip>>>;
|
|
426
|
+
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
427
|
+
key: z.ZodDefault<z.ZodString>;
|
|
428
|
+
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
429
|
+
value: z.ZodDefault<z.ZodString>;
|
|
430
|
+
}, z.core.$strip>>>;
|
|
431
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
|
|
432
|
+
exitIfMatched: boolean;
|
|
433
|
+
logic: {
|
|
434
|
+
rules: {
|
|
435
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
436
|
+
products: never[] | unknown[];
|
|
437
|
+
type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
|
|
438
|
+
value: string;
|
|
439
|
+
}[];
|
|
440
|
+
}[];
|
|
441
|
+
output: {
|
|
442
|
+
key: string;
|
|
443
|
+
type: "data_json";
|
|
444
|
+
value: string;
|
|
445
|
+
}[];
|
|
446
|
+
}[], Record<string, never>>>]>>;
|
|
447
|
+
}, z.core.$strip>>;
|
|
448
|
+
type: z.ZodDefault<z.ZodLiteral<"boolean">>;
|
|
449
|
+
}, z.core.$strip>]>, z.ZodTransform<{
|
|
450
|
+
defaultValue: string;
|
|
451
|
+
name: string;
|
|
452
|
+
type: "text";
|
|
453
|
+
seed?: undefined;
|
|
454
|
+
} | {
|
|
455
|
+
defaultValue: number;
|
|
456
|
+
name: string;
|
|
457
|
+
type: "number";
|
|
458
|
+
seed?: undefined;
|
|
459
|
+
} | {
|
|
460
|
+
defaultValue: boolean;
|
|
461
|
+
name: string;
|
|
462
|
+
type: "boolean";
|
|
463
|
+
seed?: {
|
|
464
|
+
dataSourceId: number | null;
|
|
465
|
+
ruleset: {
|
|
466
|
+
exitIfMatched: boolean;
|
|
467
|
+
logic: {
|
|
468
|
+
rules: {
|
|
469
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
470
|
+
products: never[] | unknown[];
|
|
471
|
+
type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
|
|
472
|
+
value: string;
|
|
473
|
+
}[];
|
|
474
|
+
}[];
|
|
475
|
+
output: {
|
|
476
|
+
key: string;
|
|
477
|
+
type: "data_json";
|
|
478
|
+
value: string;
|
|
479
|
+
}[];
|
|
480
|
+
}[];
|
|
481
|
+
} | undefined;
|
|
482
|
+
}, {
|
|
483
|
+
name: string;
|
|
484
|
+
type: "boolean";
|
|
485
|
+
defaultValue?: boolean | undefined;
|
|
486
|
+
seed?: {
|
|
487
|
+
dataSourceId: number | null;
|
|
488
|
+
ruleset: {
|
|
489
|
+
exitIfMatched: boolean;
|
|
490
|
+
logic: {
|
|
491
|
+
rules: {
|
|
492
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
493
|
+
products: never[] | unknown[];
|
|
494
|
+
type: "product" | "date" | "cart" | "cart_count" | "cart_item_count" | "cart_line_count" | "cart_subtotal" | "collection" | "customer" | "customer_order_count" | "customer_tag" | "customer_total_spent" | "product_tag" | "product_title" | "product_type" | "product_vendor";
|
|
495
|
+
value: string;
|
|
496
|
+
}[];
|
|
497
|
+
}[];
|
|
498
|
+
output: {
|
|
499
|
+
key: string;
|
|
500
|
+
type: "data_json";
|
|
501
|
+
value: string;
|
|
502
|
+
}[];
|
|
503
|
+
}[];
|
|
504
|
+
} | undefined;
|
|
505
|
+
} | {
|
|
506
|
+
defaultValue: string;
|
|
507
|
+
name: string;
|
|
508
|
+
type: "text";
|
|
509
|
+
seed?: undefined;
|
|
510
|
+
} | {
|
|
511
|
+
defaultValue: number;
|
|
512
|
+
name: string;
|
|
513
|
+
type: "number";
|
|
514
|
+
seed?: undefined;
|
|
515
|
+
}>>>>;
|
|
516
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
517
|
+
variable: z.ZodString;
|
|
518
|
+
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
519
|
+
}, z.core.$strip>>;
|
|
520
|
+
editorMode: z.ZodDefault<z.ZodEnum<{
|
|
521
|
+
checkoutExtension: "checkoutExtension";
|
|
522
|
+
postPurchaseOffer: "postPurchaseOffer";
|
|
523
|
+
thankYouPage: "thankYouPage";
|
|
524
|
+
orderStatusPage: "orderStatusPage";
|
|
525
|
+
ordersIndexPage: "ordersIndexPage";
|
|
526
|
+
customerProfilePage: "customerProfilePage";
|
|
527
|
+
}>>;
|
|
528
|
+
experiment: z.ZodOptional<z.ZodObject<{
|
|
529
|
+
elementId: z.ZodNumber;
|
|
530
|
+
experimentId: z.ZodNumber;
|
|
531
|
+
experimentType: z.ZodString;
|
|
532
|
+
selectedId: z.ZodNumber;
|
|
533
|
+
}, z.core.$strip>>;
|
|
534
|
+
previewMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
|
|
535
|
+
storeId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
536
|
+
targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
|
|
537
|
+
fill: z.ZodOptional<z.ZodBoolean>;
|
|
538
|
+
flip: z.ZodOptional<z.ZodEnum<{
|
|
539
|
+
vertical: "vertical";
|
|
540
|
+
horizontal: "horizontal";
|
|
541
|
+
both: "both";
|
|
542
|
+
}>>;
|
|
543
|
+
icon: z.ZodString;
|
|
544
|
+
label: z.ZodString;
|
|
545
|
+
width: z.ZodString;
|
|
546
|
+
}, z.core.$strip>>>;
|
|
547
|
+
tracking: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
548
|
+
enableAttribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
|
|
549
|
+
enableSource: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
|
|
550
|
+
enableWidget: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
|
|
551
|
+
}, z.core.$strip>>>, z.ZodTransform<{
|
|
552
|
+
enableAttribution: boolean;
|
|
553
|
+
enableSource: boolean;
|
|
554
|
+
enableWidget: boolean;
|
|
555
|
+
}, {
|
|
556
|
+
enableAttribution: boolean;
|
|
557
|
+
enableSource: boolean;
|
|
558
|
+
enableWidget: boolean;
|
|
559
|
+
} | null | undefined>>;
|
|
560
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
561
|
+
product: "product";
|
|
562
|
+
bundle_builder: "bundle_builder";
|
|
563
|
+
cart: "cart";
|
|
564
|
+
cart_subscription: "cart_subscription";
|
|
565
|
+
dynamic_bundle: "dynamic_bundle";
|
|
566
|
+
gift_with_purchase: "gift_with_purchase";
|
|
567
|
+
placeholder: "placeholder";
|
|
568
|
+
pre_purchase: "pre_purchase";
|
|
569
|
+
product_addon: "product_addon";
|
|
570
|
+
product_upsell: "product_upsell";
|
|
571
|
+
recharge_checkout: "recharge_checkout";
|
|
572
|
+
recharge_customer_portal: "recharge_customer_portal";
|
|
573
|
+
recharge_post_purchase: "recharge_post_purchase";
|
|
574
|
+
shopify_checkout: "shopify_checkout";
|
|
575
|
+
shopify_checkout_extension: "shopify_checkout_extension";
|
|
576
|
+
shopify_post_purchase: "shopify_post_purchase";
|
|
577
|
+
shopify_post_purchase_extension: "shopify_post_purchase_extension";
|
|
578
|
+
switch_to_subscription: "switch_to_subscription";
|
|
579
|
+
ui_extension_ad: "ui_extension_ad";
|
|
580
|
+
ui_extension_button: "ui_extension_button";
|
|
581
|
+
ui_extension_content_block: "ui_extension_content_block";
|
|
582
|
+
ui_extension_line_item_editor: "ui_extension_line_item_editor";
|
|
583
|
+
ui_extension_progress_bar: "ui_extension_progress_bar";
|
|
584
|
+
}>>;
|
|
585
|
+
uiLabels: z.ZodDefault<z.ZodObject<{
|
|
586
|
+
currentPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
587
|
+
guest: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
588
|
+
loadingOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
589
|
+
nextPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
590
|
+
offerCarousel: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
591
|
+
offerDialog: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
592
|
+
page: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
593
|
+
previousPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
594
|
+
selected: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
595
|
+
subscriptionOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
596
|
+
updating: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
|
|
597
|
+
}, z.core.$strip>>;
|
|
598
|
+
version: z.ZodDefault<z.ZodLiteral<2>>;
|
|
599
|
+
widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
600
|
+
}, z.core.$strip>;
|
|
601
|
+
variantCatalog: z.ZodOptional<z.ZodObject<{
|
|
602
|
+
displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
603
|
+
single: "single";
|
|
604
|
+
separate: "separate";
|
|
605
|
+
}>>>;
|
|
606
|
+
options: z.ZodArray<z.ZodObject<{
|
|
607
|
+
name: z.ZodString;
|
|
608
|
+
values: z.ZodArray<z.ZodString>;
|
|
609
|
+
id: z.ZodNumber;
|
|
610
|
+
position: z.ZodNumber;
|
|
611
|
+
}, z.core.$strip>>;
|
|
612
|
+
productId: z.ZodNumber;
|
|
613
|
+
showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
614
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
615
|
+
option1: z.ZodOptional<z.ZodString>;
|
|
616
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
617
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
618
|
+
available: z.ZodBoolean;
|
|
619
|
+
id: z.ZodNumber;
|
|
620
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
621
|
+
title: z.ZodString;
|
|
622
|
+
}, z.core.$strip>>;
|
|
623
|
+
}, z.core.$strip>>;
|
|
624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
625
|
+
groupCatalog: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
memberProductId: z.ZodNumber;
|
|
627
|
+
options: z.ZodArray<z.ZodObject<{
|
|
628
|
+
productId: z.ZodNumber;
|
|
629
|
+
title: z.ZodString;
|
|
630
|
+
variantCatalog: z.ZodObject<{
|
|
631
|
+
displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
632
|
+
single: "single";
|
|
633
|
+
separate: "separate";
|
|
634
|
+
}>>>;
|
|
635
|
+
options: z.ZodArray<z.ZodObject<{
|
|
636
|
+
name: z.ZodString;
|
|
637
|
+
values: z.ZodArray<z.ZodString>;
|
|
638
|
+
id: z.ZodNumber;
|
|
639
|
+
position: z.ZodNumber;
|
|
640
|
+
}, z.core.$strip>>;
|
|
641
|
+
productId: z.ZodNumber;
|
|
642
|
+
showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
643
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
644
|
+
option1: z.ZodOptional<z.ZodString>;
|
|
645
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
646
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
647
|
+
available: z.ZodBoolean;
|
|
648
|
+
id: z.ZodNumber;
|
|
649
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
650
|
+
title: z.ZodString;
|
|
651
|
+
}, z.core.$strip>>;
|
|
652
|
+
}, z.core.$strip>;
|
|
653
|
+
}, z.core.$strip>>;
|
|
654
|
+
}, z.core.$strip>>;
|
|
655
|
+
initialVariant: z.ZodOptional<z.ZodObject<{
|
|
656
|
+
variantId: z.ZodNumber;
|
|
657
|
+
}, z.core.$strict>>;
|
|
658
|
+
planCatalog: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
659
|
+
plans: z.ZodArray<z.ZodObject<{
|
|
660
|
+
adjustment: z.ZodOptional<z.ZodObject<{
|
|
661
|
+
amount: z.ZodNumber;
|
|
662
|
+
type: z.ZodEnum<{
|
|
663
|
+
price: "price";
|
|
664
|
+
fixed_amount: "fixed_amount";
|
|
665
|
+
percentage: "percentage";
|
|
666
|
+
}>;
|
|
667
|
+
}, z.core.$strip>>;
|
|
668
|
+
id: z.ZodNumber;
|
|
669
|
+
intervalFrequency: z.ZodOptional<z.ZodString>;
|
|
670
|
+
intervalLabel: z.ZodString;
|
|
671
|
+
name: z.ZodString;
|
|
672
|
+
}, z.core.$strip>>;
|
|
673
|
+
productId: z.ZodNumber;
|
|
674
|
+
requiresSellingPlan: z.ZodBoolean;
|
|
675
|
+
variantId: z.ZodNumber;
|
|
676
|
+
}, z.core.$strip>>>;
|
|
677
|
+
preparation: z.ZodObject<{
|
|
678
|
+
reason: z.ZodString;
|
|
679
|
+
status: z.ZodLiteral<"unsupported">;
|
|
680
|
+
}, z.core.$strip>;
|
|
681
|
+
purchaseOptions: z.ZodOptional<z.ZodObject<{
|
|
682
|
+
defaultChoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
683
|
+
mode: z.ZodLiteral<"one-time">;
|
|
684
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
685
|
+
mode: z.ZodLiteral<"subscription">;
|
|
686
|
+
sellingPlanId: z.ZodNumber;
|
|
687
|
+
}, z.core.$strict>], "mode">;
|
|
688
|
+
modes: z.ZodArray<z.ZodEnum<{
|
|
689
|
+
"one-time": "one-time";
|
|
690
|
+
subscription: "subscription";
|
|
691
|
+
}>>;
|
|
692
|
+
selector: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
693
|
+
radio: "radio";
|
|
694
|
+
dropdown: "dropdown";
|
|
695
|
+
}>>>;
|
|
696
|
+
}, z.core.$strip>>;
|
|
697
|
+
sections: z.ZodNull;
|
|
698
|
+
variantCatalog: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
700
|
+
single: "single";
|
|
701
|
+
separate: "separate";
|
|
702
|
+
}>>>;
|
|
703
|
+
options: z.ZodArray<z.ZodObject<{
|
|
704
|
+
name: z.ZodString;
|
|
705
|
+
values: z.ZodArray<z.ZodString>;
|
|
706
|
+
id: z.ZodNumber;
|
|
707
|
+
position: z.ZodNumber;
|
|
708
|
+
}, z.core.$strip>>;
|
|
709
|
+
productId: z.ZodNumber;
|
|
710
|
+
showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
711
|
+
variants: z.ZodArray<z.ZodObject<{
|
|
712
|
+
option1: z.ZodOptional<z.ZodString>;
|
|
713
|
+
option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
714
|
+
option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
715
|
+
available: z.ZodBoolean;
|
|
716
|
+
id: z.ZodNumber;
|
|
717
|
+
imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
718
|
+
title: z.ZodString;
|
|
719
|
+
}, z.core.$strip>>;
|
|
720
|
+
}, z.core.$strip>>;
|
|
721
|
+
}, z.core.$strip>]>;
|
|
722
|
+
export type PostPurchaseProductView = z.infer<typeof PostPurchaseProductView>;
|