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