@rebuy/rebuy 3.34.0 → 3.36.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 (51) hide show
  1. package/dist/index.cjs +1003 -801
  2. package/dist/index.mjs +1005 -803
  3. package/dist/schema/index.d.ts +8 -0
  4. package/dist/schema/postPurchaseGroup.d.ts +15 -0
  5. package/dist/schema/postPurchaseGroupCatalog.d.ts +56 -0
  6. package/dist/schema/postPurchaseOfferEligibility.d.ts +32 -0
  7. package/dist/schema/postPurchaseOfferPresentation.d.ts +386 -0
  8. package/dist/schema/postPurchaseProduct.d.ts +74 -24
  9. package/dist/schema/postPurchaseProductCalculation.d.ts +87 -0
  10. package/dist/schema/postPurchaseProductCollectionView.d.ts +724 -3
  11. package/dist/schema/postPurchaseProductDisplay.d.ts +41 -12
  12. package/dist/schema/postPurchaseProductSource.d.ts +10 -5
  13. package/dist/schema/postPurchaseProductView.d.ts +708 -0
  14. package/dist/schema/postPurchaseQuantity.d.ts +26 -0
  15. package/dist/schema/postPurchaseSubscriptionProduct.d.ts +74 -17
  16. package/dist/schema/postPurchaseVariantDefault.d.ts +17 -0
  17. package/dist/schema/postPurchaseVariantDefaultContext.d.ts +10 -0
  18. package/dist/server/__fixtures__/postPurchaseGroup.d.ts +78 -0
  19. package/dist/server/classifyPostPurchaseOffer.d.ts +3 -0
  20. package/dist/server/createPostPurchaseOrderAttributes.d.ts +9 -0
  21. package/dist/server/index.cjs +1131 -210
  22. package/dist/server/index.d.ts +20 -2
  23. package/dist/server/index.mjs +1131 -210
  24. package/dist/server/postPurchaseMemberEligibility.d.ts +7 -0
  25. package/dist/server/postPurchaseOfferCopy.d.ts +3 -0
  26. package/dist/server/postPurchaseProductDisplay.d.ts +38 -6
  27. package/dist/server/postPurchaseProductEligibility.d.ts +3 -7
  28. package/dist/server/postPurchaseSubscriptionEligibility.d.ts +2 -3
  29. package/dist/server/prepareNormalizedSubscription.d.ts +2 -3
  30. package/dist/server/preparePostPurchaseAdmissionView.d.ts +418 -0
  31. package/dist/server/preparePostPurchaseCollectionGroup.d.ts +458 -0
  32. package/dist/server/preparePostPurchaseCollectionView.d.ts +442 -0
  33. package/dist/server/preparePostPurchaseGroupAdmissionView.d.ts +459 -0
  34. package/dist/server/preparePostPurchaseGroupDeclineDisplay.d.ts +12 -0
  35. package/dist/server/preparePostPurchaseGroupDefault.d.ts +459 -0
  36. package/dist/server/preparePostPurchaseGroupView.d.ts +458 -0
  37. package/dist/server/preparePostPurchaseMemberView.d.ts +1466 -0
  38. package/dist/server/preparePostPurchaseOfferPresentation.d.ts +137 -0
  39. package/dist/server/preparePostPurchaseProduct.d.ts +11 -0
  40. package/dist/server/preparePostPurchaseQuantityAdmissionView.d.ts +440 -0
  41. package/dist/server/preparePostPurchaseQuantityView.d.ts +427 -0
  42. package/dist/server/preparePostPurchaseSubscription.d.ts +37 -5
  43. package/dist/server/preparePostPurchaseView.d.ts +8 -0
  44. package/dist/server/projectPostPurchaseProduct.d.ts +42 -12
  45. package/dist/server/readPostPurchaseGroup.d.ts +101 -0
  46. package/dist/server/readPostPurchaseGroupSelection.d.ts +110 -0
  47. package/dist/server/readPostPurchaseQuantity.d.ts +27 -0
  48. package/dist/server/resolvePostPurchaseMemberDefault.d.ts +8 -0
  49. package/dist/server/selectPostPurchaseChoice.d.ts +2 -3
  50. package/dist/transforms/postPurchase/convertDescriptionRte.d.ts +11 -0
  51. package/package.json +1 -1
@@ -1,8 +1,729 @@
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
+ shouldShowSavingText: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
210
+ description: z.ZodNullable<z.ZodString>;
211
+ }, z.core.$strip>;
212
+ }, z.core.$strip>;
213
+ purchaseOptions: z.ZodOptional<z.ZodObject<{
214
+ defaultChoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
215
+ mode: z.ZodLiteral<"one-time">;
216
+ }, z.core.$strict>, z.ZodObject<{
217
+ mode: z.ZodLiteral<"subscription">;
218
+ sellingPlanId: z.ZodNumber;
219
+ }, z.core.$strict>], "mode">;
220
+ modes: z.ZodArray<z.ZodEnum<{
221
+ "one-time": "one-time";
222
+ subscription: "subscription";
223
+ }>>;
224
+ selector: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
225
+ radio: "radio";
226
+ dropdown: "dropdown";
227
+ }>>>;
228
+ }, z.core.$strip>>;
229
+ sections: z.ZodObject<{
230
+ alignment: z.ZodDefault<z.ZodObject<{
231
+ horizontal: z.ZodDefault<z.ZodEnum<{
232
+ start: "start";
233
+ center: "center";
234
+ end: "end";
235
+ }>>;
236
+ vertical: z.ZodDefault<z.ZodEnum<{
237
+ top: "top";
238
+ middle: "middle";
239
+ bottom: "bottom";
240
+ }>>;
241
+ }, z.core.$strip>>;
242
+ border: z.ZodLazy<z.ZodDefault<z.ZodObject<{
243
+ radius: z.ZodDefault<z.ZodEnum<{
244
+ small: "small";
245
+ none: "none";
246
+ base: "base";
247
+ large: "large";
248
+ fullyRounded: "fullyRounded";
249
+ }>>;
250
+ style: z.ZodDefault<z.ZodEnum<{
251
+ none: "none";
252
+ base: "base";
253
+ dotted: "dotted";
254
+ dashed: "dashed";
255
+ }>>;
256
+ width: z.ZodDefault<z.ZodEnum<{
257
+ base: "base";
258
+ medium: "medium";
259
+ thick: "thick";
260
+ }>>;
261
+ }, z.core.$strip>>>;
262
+ buttonField: z.ZodOptional<z.ZodEnum<{
263
+ declineAllOffers: "declineAllOffers";
264
+ declineOffer: "declineOffer";
265
+ removeFromOrder: "removeFromOrder";
266
+ undoAddToOrder: "undoAddToOrder";
267
+ activePage: "activePage";
268
+ addedToCart: "addedToCart";
269
+ addingToCart: "addingToCart";
270
+ addToCart: "addToCart";
271
+ buttonLabel: "buttonLabel";
272
+ destinationUrl: "destinationUrl";
273
+ inactivePage: "inactivePage";
274
+ overlayContent: "overlayContent";
275
+ payNow: "payNow";
276
+ progressReached: "progressReached";
277
+ progressRemaining: "progressRemaining";
278
+ redirectToCheckout: "redirectToCheckout";
279
+ showVariant: "showVariant";
280
+ showVariants: "showVariants";
281
+ soldOut: "soldOut";
282
+ subscriptionOption: "subscriptionOption";
283
+ switchToOneTimePurchase: "switchToOneTimePurchase";
284
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
285
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
286
+ }>>;
287
+ direction: z.ZodDefault<z.ZodEnum<{
288
+ columns: "columns";
289
+ rows: "rows";
290
+ grid: "grid";
291
+ }>>;
292
+ frame: z.ZodOptional<z.ZodEnum<{
293
+ callout: "callout";
294
+ "offer-content": "offer-content";
295
+ }>>;
296
+ grid: z.ZodOptional<z.ZodDefault<z.ZodObject<{
297
+ columns: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
298
+ rows: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnion<readonly [z.ZodLiteral<"auto">, z.ZodLiteral<"fill">, z.ZodString, z.ZodNumber]>>, z.ZodUndefined]>>;
299
+ }, z.core.$strip>>>;
300
+ name: z.ZodOptional<z.ZodString>;
301
+ padding: z.ZodDefault<z.ZodEnum<{
302
+ none: "none";
303
+ base: "base";
304
+ extraTight: "extraTight";
305
+ tight: "tight";
306
+ loose: "loose";
307
+ extraLoose: "extraLoose";
308
+ }>>;
309
+ sectionId: z.ZodDefault<z.ZodUUID>;
310
+ 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>>>]>>;
311
+ sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
312
+ spacing: z.ZodDefault<z.ZodEnum<{
313
+ none: "none";
314
+ base: "base";
315
+ extraTight: "extraTight";
316
+ tight: "tight";
317
+ loose: "loose";
318
+ extraLoose: "extraLoose";
319
+ }>>;
320
+ viewUrl: z.ZodOptional<z.ZodString>;
321
+ width: z.ZodDefault<z.ZodNumber>;
322
+ wrapping: z.ZodOptional<z.ZodObject<{
323
+ breakAt: z.ZodNumber;
324
+ maxPerLine: z.ZodNumber;
325
+ }, z.core.$strip>>;
326
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
327
+ effect: z.ZodDefault<z.ZodEnum<{
328
+ set_false: "set_false";
329
+ set_true: "set_true";
330
+ toggle: "toggle";
331
+ }>>;
332
+ variable: z.ZodString;
333
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
334
+ operator: z.ZodDefault<z.ZodEnum<{
335
+ is_empty: "is_empty";
336
+ is_not_empty: "is_not_empty";
337
+ }>>;
338
+ type: z.ZodLiteral<"content">;
339
+ }, z.core.$strip>, z.ZodObject<{
340
+ event: z.ZodEnum<{
341
+ item_added: "item_added";
342
+ quantity_changed: "quantity_changed";
343
+ variant_selected: "variant_selected";
344
+ }>;
345
+ type: z.ZodLiteral<"event">;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ operator: z.ZodDefault<z.ZodEnum<{
348
+ equals: "equals";
349
+ greater_than: "greater_than";
350
+ less_than: "less_than";
351
+ }>>;
352
+ type: z.ZodLiteral<"result_count">;
353
+ value: z.ZodDefault<z.ZodNumber>;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ operator: z.ZodDefault<z.ZodEnum<{
356
+ contains: "contains";
357
+ does_not_contain: "does_not_contain";
358
+ }>>;
359
+ type: z.ZodLiteral<"result_tag">;
360
+ value: z.ZodString;
361
+ }, z.core.$strip>], "type">;
362
+ }, z.core.$strip>>>;
363
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
364
+ defaultValue: z.ZodString;
365
+ name: z.ZodString;
366
+ seed: z.ZodOptional<z.ZodNever>;
367
+ type: z.ZodLiteral<"text">;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ defaultValue: z.ZodNumber;
370
+ name: z.ZodString;
371
+ seed: z.ZodOptional<z.ZodNever>;
372
+ type: z.ZodLiteral<"number">;
373
+ }, z.core.$strip>, z.ZodObject<{
374
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
375
+ name: z.ZodString;
376
+ seed: z.ZodOptional<z.ZodObject<{
377
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
378
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
379
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
380
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
381
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
382
+ operator: z.ZodDefault<z.ZodEnum<{
383
+ equals: "equals";
384
+ greater_than: "greater_than";
385
+ less_than: "less_than";
386
+ contains: "contains";
387
+ does_not_contain: "does_not_contain";
388
+ after: "after";
389
+ anything: "anything";
390
+ before: "before";
391
+ contains_any: "contains_any";
392
+ does_not_contain_any: "does_not_contain_any";
393
+ does_not_equal: "does_not_equal";
394
+ }>>;
395
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
396
+ type: z.ZodDefault<z.ZodEnum<{
397
+ product: "product";
398
+ date: "date";
399
+ cart: "cart";
400
+ cart_count: "cart_count";
401
+ cart_item_count: "cart_item_count";
402
+ cart_line_count: "cart_line_count";
403
+ cart_subtotal: "cart_subtotal";
404
+ collection: "collection";
405
+ customer: "customer";
406
+ customer_order_count: "customer_order_count";
407
+ customer_tag: "customer_tag";
408
+ customer_total_spent: "customer_total_spent";
409
+ product_tag: "product_tag";
410
+ product_title: "product_title";
411
+ product_type: "product_type";
412
+ product_vendor: "product_vendor";
413
+ }>>;
414
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
415
+ }, z.core.$strip>>>;
416
+ }, z.core.$strip>>>;
417
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
418
+ key: z.ZodDefault<z.ZodString>;
419
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
420
+ value: z.ZodDefault<z.ZodString>;
421
+ }, z.core.$strip>>>;
422
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
423
+ exitIfMatched: boolean;
424
+ logic: {
425
+ rules: {
426
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
427
+ products: never[] | unknown[];
428
+ 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";
429
+ value: string;
430
+ }[];
431
+ }[];
432
+ output: {
433
+ key: string;
434
+ type: "data_json";
435
+ value: string;
436
+ }[];
437
+ }[], Record<string, never>>>]>>;
438
+ }, z.core.$strip>>;
439
+ type: z.ZodDefault<z.ZodLiteral<"boolean">>;
440
+ }, z.core.$strip>]>, z.ZodTransform<{
441
+ defaultValue: string;
442
+ name: string;
443
+ type: "text";
444
+ seed?: undefined;
445
+ } | {
446
+ defaultValue: number;
447
+ name: string;
448
+ type: "number";
449
+ seed?: undefined;
450
+ } | {
451
+ defaultValue: boolean;
452
+ name: string;
453
+ type: "boolean";
454
+ seed?: {
455
+ dataSourceId: number | null;
456
+ ruleset: {
457
+ exitIfMatched: boolean;
458
+ logic: {
459
+ rules: {
460
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
461
+ products: never[] | unknown[];
462
+ 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";
463
+ value: string;
464
+ }[];
465
+ }[];
466
+ output: {
467
+ key: string;
468
+ type: "data_json";
469
+ value: string;
470
+ }[];
471
+ }[];
472
+ } | undefined;
473
+ }, {
474
+ name: string;
475
+ type: "boolean";
476
+ defaultValue?: boolean | undefined;
477
+ seed?: {
478
+ dataSourceId: number | null;
479
+ ruleset: {
480
+ exitIfMatched: boolean;
481
+ logic: {
482
+ rules: {
483
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
484
+ products: never[] | unknown[];
485
+ 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";
486
+ value: string;
487
+ }[];
488
+ }[];
489
+ output: {
490
+ key: string;
491
+ type: "data_json";
492
+ value: string;
493
+ }[];
494
+ }[];
495
+ } | undefined;
496
+ } | {
497
+ defaultValue: string;
498
+ name: string;
499
+ type: "text";
500
+ seed?: undefined;
501
+ } | {
502
+ defaultValue: number;
503
+ name: string;
504
+ type: "number";
505
+ seed?: undefined;
506
+ }>>>>;
507
+ visibility: z.ZodOptional<z.ZodObject<{
508
+ variable: z.ZodString;
509
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
510
+ }, z.core.$strip>>;
511
+ editorMode: z.ZodDefault<z.ZodEnum<{
512
+ checkoutExtension: "checkoutExtension";
513
+ postPurchaseOffer: "postPurchaseOffer";
514
+ thankYouPage: "thankYouPage";
515
+ orderStatusPage: "orderStatusPage";
516
+ ordersIndexPage: "ordersIndexPage";
517
+ customerProfilePage: "customerProfilePage";
518
+ }>>;
519
+ experiment: z.ZodOptional<z.ZodObject<{
520
+ elementId: z.ZodNumber;
521
+ experimentId: z.ZodNumber;
522
+ experimentType: z.ZodString;
523
+ selectedId: z.ZodNumber;
524
+ }, z.core.$strip>>;
525
+ previewMode: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
526
+ storeId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
527
+ targetArea: z.ZodNullable<z.ZodDefault<z.ZodObject<{
528
+ fill: z.ZodOptional<z.ZodBoolean>;
529
+ flip: z.ZodOptional<z.ZodEnum<{
530
+ vertical: "vertical";
531
+ horizontal: "horizontal";
532
+ both: "both";
533
+ }>>;
534
+ icon: z.ZodString;
535
+ label: z.ZodString;
536
+ width: z.ZodString;
537
+ }, z.core.$strip>>>;
538
+ tracking: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodObject<{
539
+ enableAttribution: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
540
+ enableSource: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
541
+ enableWidget: z.ZodPipe<z.ZodOptional<z.ZodNullable<z.ZodBoolean>>, z.ZodTransform<boolean, boolean | null | undefined>>;
542
+ }, z.core.$strip>>>, z.ZodTransform<{
543
+ enableAttribution: boolean;
544
+ enableSource: boolean;
545
+ enableWidget: boolean;
546
+ }, {
547
+ enableAttribution: boolean;
548
+ enableSource: boolean;
549
+ enableWidget: boolean;
550
+ } | null | undefined>>;
551
+ type: z.ZodDefault<z.ZodEnum<{
552
+ product: "product";
553
+ bundle_builder: "bundle_builder";
554
+ cart: "cart";
555
+ cart_subscription: "cart_subscription";
556
+ dynamic_bundle: "dynamic_bundle";
557
+ gift_with_purchase: "gift_with_purchase";
558
+ placeholder: "placeholder";
559
+ pre_purchase: "pre_purchase";
560
+ product_addon: "product_addon";
561
+ product_upsell: "product_upsell";
562
+ recharge_checkout: "recharge_checkout";
563
+ recharge_customer_portal: "recharge_customer_portal";
564
+ recharge_post_purchase: "recharge_post_purchase";
565
+ shopify_checkout: "shopify_checkout";
566
+ shopify_checkout_extension: "shopify_checkout_extension";
567
+ shopify_post_purchase: "shopify_post_purchase";
568
+ shopify_post_purchase_extension: "shopify_post_purchase_extension";
569
+ switch_to_subscription: "switch_to_subscription";
570
+ ui_extension_ad: "ui_extension_ad";
571
+ ui_extension_button: "ui_extension_button";
572
+ ui_extension_content_block: "ui_extension_content_block";
573
+ ui_extension_line_item_editor: "ui_extension_line_item_editor";
574
+ ui_extension_progress_bar: "ui_extension_progress_bar";
575
+ }>>;
576
+ uiLabels: z.ZodDefault<z.ZodObject<{
577
+ currentPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
578
+ guest: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
579
+ loadingOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
580
+ nextPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
581
+ offerCarousel: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
582
+ offerDialog: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
583
+ page: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
584
+ previousPage: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
585
+ selected: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
586
+ subscriptionOptions: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
587
+ updating: z.ZodPipe<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>, z.ZodTransform<Record<string, string>, Record<string, string>>>;
588
+ }, z.core.$strip>>;
589
+ version: z.ZodDefault<z.ZodLiteral<2>>;
590
+ widgetId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
591
+ }, z.core.$strip>;
592
+ variantCatalog: z.ZodOptional<z.ZodObject<{
593
+ displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
594
+ single: "single";
595
+ separate: "separate";
596
+ }>>>;
597
+ options: z.ZodArray<z.ZodObject<{
598
+ name: z.ZodString;
599
+ values: z.ZodArray<z.ZodString>;
600
+ id: z.ZodNumber;
601
+ position: z.ZodNumber;
602
+ }, z.core.$strip>>;
603
+ productId: z.ZodNumber;
604
+ showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
605
+ variants: z.ZodArray<z.ZodObject<{
606
+ option1: z.ZodOptional<z.ZodString>;
607
+ option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
+ option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
+ available: z.ZodBoolean;
610
+ id: z.ZodNumber;
611
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
612
+ title: z.ZodString;
613
+ }, z.core.$strip>>;
614
+ }, z.core.$strip>>;
615
+ }, z.core.$strip>, z.ZodObject<{
616
+ groupCatalog: z.ZodOptional<z.ZodObject<{
617
+ memberProductId: z.ZodNumber;
618
+ options: z.ZodArray<z.ZodObject<{
619
+ productId: z.ZodNumber;
620
+ title: z.ZodString;
621
+ variantCatalog: z.ZodObject<{
622
+ displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
623
+ single: "single";
624
+ separate: "separate";
625
+ }>>>;
626
+ options: z.ZodArray<z.ZodObject<{
627
+ name: z.ZodString;
628
+ values: z.ZodArray<z.ZodString>;
629
+ id: z.ZodNumber;
630
+ position: z.ZodNumber;
631
+ }, z.core.$strip>>;
632
+ productId: z.ZodNumber;
633
+ showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
634
+ variants: z.ZodArray<z.ZodObject<{
635
+ option1: z.ZodOptional<z.ZodString>;
636
+ option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ available: z.ZodBoolean;
639
+ id: z.ZodNumber;
640
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
641
+ title: z.ZodString;
642
+ }, z.core.$strip>>;
643
+ }, z.core.$strip>;
644
+ }, z.core.$strip>>;
645
+ }, z.core.$strip>>;
646
+ initialVariant: z.ZodOptional<z.ZodObject<{
647
+ variantId: z.ZodNumber;
648
+ }, z.core.$strict>>;
649
+ planCatalog: z.ZodOptional<z.ZodNullable<z.ZodObject<{
650
+ plans: z.ZodArray<z.ZodObject<{
651
+ adjustment: z.ZodOptional<z.ZodObject<{
652
+ amount: z.ZodNumber;
653
+ type: z.ZodEnum<{
654
+ price: "price";
655
+ fixed_amount: "fixed_amount";
656
+ percentage: "percentage";
657
+ }>;
658
+ }, z.core.$strip>>;
659
+ id: z.ZodNumber;
660
+ intervalFrequency: z.ZodOptional<z.ZodString>;
661
+ intervalLabel: z.ZodString;
662
+ name: z.ZodString;
663
+ }, z.core.$strip>>;
664
+ productId: z.ZodNumber;
665
+ requiresSellingPlan: z.ZodBoolean;
666
+ variantId: z.ZodNumber;
667
+ }, z.core.$strip>>>;
668
+ preparation: z.ZodObject<{
669
+ reason: z.ZodString;
670
+ status: z.ZodLiteral<"unsupported">;
671
+ }, z.core.$strip>;
672
+ purchaseOptions: z.ZodOptional<z.ZodObject<{
673
+ defaultChoice: z.ZodDiscriminatedUnion<[z.ZodObject<{
674
+ mode: z.ZodLiteral<"one-time">;
675
+ }, z.core.$strict>, z.ZodObject<{
676
+ mode: z.ZodLiteral<"subscription">;
677
+ sellingPlanId: z.ZodNumber;
678
+ }, z.core.$strict>], "mode">;
679
+ modes: z.ZodArray<z.ZodEnum<{
680
+ "one-time": "one-time";
681
+ subscription: "subscription";
682
+ }>>;
683
+ selector: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
684
+ radio: "radio";
685
+ dropdown: "dropdown";
686
+ }>>>;
687
+ }, z.core.$strip>>;
688
+ sections: z.ZodNull;
689
+ variantCatalog: z.ZodOptional<z.ZodObject<{
690
+ displayMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
691
+ single: "single";
692
+ separate: "separate";
693
+ }>>>;
694
+ options: z.ZodArray<z.ZodObject<{
695
+ name: z.ZodString;
696
+ values: z.ZodArray<z.ZodString>;
697
+ id: z.ZodNumber;
698
+ position: z.ZodNumber;
699
+ }, z.core.$strip>>;
700
+ productId: z.ZodNumber;
701
+ showSelectors: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
702
+ variants: z.ZodArray<z.ZodObject<{
703
+ option1: z.ZodOptional<z.ZodString>;
704
+ option2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
705
+ option3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ available: z.ZodBoolean;
707
+ id: z.ZodNumber;
708
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
709
+ title: z.ZodString;
710
+ }, z.core.$strip>>;
711
+ }, z.core.$strip>>;
712
+ }, z.core.$strip>]>;
713
+ }, z.core.$strip>>;
714
+ }, z.core.$strip>;
715
+ export type PostPurchaseProductCollectionView = z.infer<typeof PostPurchaseProductCollectionView>;
716
+ /** One exact member, optionally with a purchase choice and an exact variant; nothing else is accepted. */
717
+ export declare const PostPurchaseCollectionChoice: z.ZodObject<{
718
+ choice: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
719
+ mode: z.ZodLiteral<"one-time">;
720
+ }, z.core.$strict>, z.ZodObject<{
721
+ mode: z.ZodLiteral<"subscription">;
722
+ sellingPlanId: z.ZodNumber;
723
+ }, z.core.$strict>], "mode">>;
724
+ productId: z.ZodNumber;
725
+ variantId: z.ZodOptional<z.ZodNumber>;
726
+ }, z.core.$strict>;
727
+ export type PostPurchaseCollectionChoice = z.infer<typeof PostPurchaseCollectionChoice>;
7
728
  export declare const PostPurchaseExcludedProductIds: z.ZodDefault<z.ZodArray<z.ZodNumber>>;
8
729
  export type PostPurchaseExcludedProductIds = z.infer<typeof PostPurchaseExcludedProductIds>;