@rebuy/rebuy 3.5.0 → 3.6.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 (40) hide show
  1. package/dist/index.cjs +740 -647
  2. package/dist/index.mjs +740 -647
  3. package/dist/schema/checkout-and-beyond/constants.cjs +16 -0
  4. package/dist/schema/checkout-and-beyond/constants.mjs +16 -0
  5. package/dist/schema/checkout-and-beyond/index.cjs +454 -362
  6. package/dist/schema/checkout-and-beyond/index.mjs +454 -362
  7. package/dist/schema/widget-data.cjs +508 -435
  8. package/dist/schema/widget-data.mjs +508 -435
  9. package/dist/schema/widgetData.d.ts +438 -147
  10. package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +145 -48
  11. package/dist/schema/widgets/checkout-and-beyond/button.d.ts +154 -49
  12. package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +145 -48
  13. package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +145 -48
  14. package/dist/schema/widgets/checkout-and-beyond/common.d.ts +29 -0
  15. package/dist/schema/widgets/checkout-and-beyond/discount.d.ts +146 -0
  16. package/dist/schema/widgets/checkout-and-beyond/icons.d.ts +1 -1
  17. package/dist/schema/widgets/checkout-and-beyond/image.d.ts +294 -100
  18. package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
  19. package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +148 -52
  20. package/dist/schema/widgets/checkout-and-beyond/monetize.d.ts +146 -49
  21. package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +145 -48
  22. package/dist/schema/widgets/checkout-and-beyond/product.d.ts +146 -0
  23. package/dist/schema/widgets/checkout-and-beyond/products.d.ts +292 -0
  24. package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +145 -48
  25. package/dist/schema/widgets/checkout-and-beyond/quantity.d.ts +146 -49
  26. package/dist/schema/widgets/checkout-and-beyond/reviews.d.ts +146 -49
  27. package/dist/schema/widgets/checkout-and-beyond/root.d.ts +146 -49
  28. package/dist/schema/widgets/checkout-and-beyond/rule.d.ts +140 -68
  29. package/dist/schema/widgets/checkout-and-beyond/text.d.ts +146 -49
  30. package/dist/schema/widgets/checkout-and-beyond/variables.d.ts +470 -0
  31. package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +146 -49
  32. package/dist/schema/widgets/contentBlock.d.ts +146 -49
  33. package/dist/schema/widgets/lineItemEditor.d.ts +146 -49
  34. package/dist/schema/widgets/rebuyButton.d.ts +146 -49
  35. package/dist/server/index.cjs +492 -416
  36. package/dist/server/index.mjs +492 -416
  37. package/dist/transforms/index.cjs +393 -317
  38. package/dist/transforms/index.mjs +393 -317
  39. package/dist/transforms/monetizeV1/convertMonetizeToV2.d.ts +2 -2
  40. package/package.json +1 -1
@@ -3,55 +3,6 @@ import { type SectionDetails } from './shared';
3
3
  export declare const CABVariantsSection: z.ZodObject<{
4
4
  hideOutOfStockVariants: z.ZodDefault<z.ZodBoolean>;
5
5
  name: z.ZodOptional<z.ZodString>;
6
- rule: z.ZodOptional<z.ZodObject<{
7
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
8
- enabled: z.ZodDefault<z.ZodBoolean>;
9
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
10
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
11
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
12
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
13
- operator: z.ZodDefault<z.ZodEnum<{
14
- after: "after";
15
- anything: "anything";
16
- before: "before";
17
- contains: "contains";
18
- contains_any: "contains_any";
19
- does_not_contain: "does_not_contain";
20
- does_not_contain_any: "does_not_contain_any";
21
- equals: "equals";
22
- does_not_equal: "does_not_equal";
23
- greater_than: "greater_than";
24
- less_than: "less_than";
25
- }>>;
26
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
27
- type: z.ZodDefault<z.ZodEnum<{
28
- product: "product";
29
- date: "date";
30
- cart: "cart";
31
- cart_count: "cart_count";
32
- cart_item_count: "cart_item_count";
33
- cart_line_count: "cart_line_count";
34
- cart_subtotal: "cart_subtotal";
35
- collection: "collection";
36
- customer: "customer";
37
- customer_order_count: "customer_order_count";
38
- customer_tag: "customer_tag";
39
- customer_total_spent: "customer_total_spent";
40
- product_tag: "product_tag";
41
- product_title: "product_title";
42
- product_type: "product_type";
43
- product_vendor: "product_vendor";
44
- }>>;
45
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
46
- }, z.core.$strip>>>;
47
- }, z.core.$strip>>>;
48
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
49
- key: z.ZodDefault<z.ZodString>;
50
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
51
- value: z.ZodDefault<z.ZodString>;
52
- }, z.core.$strip>>>;
53
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
54
- }, z.core.$strip>>;
55
6
  sectionId: z.ZodDefault<z.ZodUUID>;
56
7
  sectionType: z.ZodDefault<z.ZodLiteral<"variants">>;
57
8
  selector: z.ZodDefault<z.ZodEnum<{
@@ -63,6 +14,152 @@ export declare const CABVariantsSection: z.ZodObject<{
63
14
  multiple: "multiple";
64
15
  single: "single";
65
16
  }>>;
17
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
18
+ effect: z.ZodDefault<z.ZodEnum<{
19
+ set_false: "set_false";
20
+ set_true: "set_true";
21
+ toggle: "toggle";
22
+ }>>;
23
+ variable: z.ZodString;
24
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
25
+ event: z.ZodEnum<{
26
+ item_added: "item_added";
27
+ quantity_changed: "quantity_changed";
28
+ variant_selected: "variant_selected";
29
+ }>;
30
+ type: z.ZodLiteral<"event">;
31
+ }, z.core.$strip>, z.ZodObject<{
32
+ operator: z.ZodDefault<z.ZodEnum<{
33
+ equals: "equals";
34
+ greater_than: "greater_than";
35
+ less_than: "less_than";
36
+ }>>;
37
+ type: z.ZodLiteral<"result_count">;
38
+ value: z.ZodDefault<z.ZodNumber>;
39
+ }, z.core.$strip>, z.ZodObject<{
40
+ operator: z.ZodDefault<z.ZodEnum<{
41
+ contains: "contains";
42
+ does_not_contain: "does_not_contain";
43
+ }>>;
44
+ type: z.ZodLiteral<"result_tag">;
45
+ value: z.ZodString;
46
+ }, z.core.$strip>], "type">;
47
+ }, z.core.$strip>>>;
48
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
49
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
50
+ name: z.ZodString;
51
+ seed: z.ZodOptional<z.ZodObject<{
52
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
53
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
54
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
55
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
56
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
57
+ operator: z.ZodDefault<z.ZodEnum<{
58
+ equals: "equals";
59
+ greater_than: "greater_than";
60
+ less_than: "less_than";
61
+ contains: "contains";
62
+ does_not_contain: "does_not_contain";
63
+ after: "after";
64
+ anything: "anything";
65
+ before: "before";
66
+ contains_any: "contains_any";
67
+ does_not_contain_any: "does_not_contain_any";
68
+ does_not_equal: "does_not_equal";
69
+ }>>;
70
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
71
+ type: z.ZodDefault<z.ZodEnum<{
72
+ product: "product";
73
+ date: "date";
74
+ cart: "cart";
75
+ cart_count: "cart_count";
76
+ cart_item_count: "cart_item_count";
77
+ cart_line_count: "cart_line_count";
78
+ cart_subtotal: "cart_subtotal";
79
+ collection: "collection";
80
+ customer: "customer";
81
+ customer_order_count: "customer_order_count";
82
+ customer_tag: "customer_tag";
83
+ customer_total_spent: "customer_total_spent";
84
+ product_tag: "product_tag";
85
+ product_title: "product_title";
86
+ product_type: "product_type";
87
+ product_vendor: "product_vendor";
88
+ }>>;
89
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
90
+ }, z.core.$strip>>>;
91
+ }, z.core.$strip>>>;
92
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
93
+ key: z.ZodDefault<z.ZodString>;
94
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
95
+ value: z.ZodDefault<z.ZodString>;
96
+ }, z.core.$strip>>>;
97
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
98
+ exitIfMatched: boolean;
99
+ logic: {
100
+ rules: {
101
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
102
+ products: never[] | unknown[];
103
+ 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";
104
+ value: string;
105
+ }[];
106
+ }[];
107
+ output: {
108
+ key: string;
109
+ type: "data_json";
110
+ value: string;
111
+ }[];
112
+ }[], Record<string, never>>>]>>;
113
+ }, z.core.$strip>>;
114
+ }, z.core.$strip>, z.ZodTransform<{
115
+ name: string;
116
+ seed?: {
117
+ dataSourceId: number | null;
118
+ ruleset: {
119
+ exitIfMatched: boolean;
120
+ logic: {
121
+ rules: {
122
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
123
+ products: never[] | unknown[];
124
+ 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";
125
+ value: string;
126
+ }[];
127
+ }[];
128
+ output: {
129
+ key: string;
130
+ type: "data_json";
131
+ value: string;
132
+ }[];
133
+ }[];
134
+ } | undefined;
135
+ defaultValue: boolean;
136
+ }, {
137
+ name: string;
138
+ defaultValue?: boolean | undefined;
139
+ seed?: {
140
+ dataSourceId: number | null;
141
+ ruleset: {
142
+ exitIfMatched: boolean;
143
+ logic: {
144
+ rules: {
145
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
146
+ products: never[] | unknown[];
147
+ 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";
148
+ value: string;
149
+ }[];
150
+ }[];
151
+ output: {
152
+ key: string;
153
+ type: "data_json";
154
+ value: string;
155
+ }[];
156
+ }[];
157
+ } | undefined;
158
+ }>>>>;
159
+ visibility: z.ZodOptional<z.ZodObject<{
160
+ variable: z.ZodString;
161
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
162
+ }, z.core.$strip>>;
66
163
  }, z.core.$strip>;
67
164
  export type CABVariantsSection = z.infer<typeof CABVariantsSection>;
68
165
  export type CABVariantsSectionProps = CABVariantsSection & SectionDetails;
@@ -170,55 +170,6 @@ export declare const ContentBlock: z.ZodDiscriminatedUnion<[z.ZodObject<{
170
170
  loose: "loose";
171
171
  extraLoose: "extraLoose";
172
172
  }>>;
173
- rule: z.ZodOptional<z.ZodObject<{
174
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
175
- enabled: z.ZodDefault<z.ZodBoolean>;
176
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
177
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
178
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
179
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
180
- operator: z.ZodDefault<z.ZodEnum<{
181
- after: "after";
182
- anything: "anything";
183
- before: "before";
184
- contains: "contains";
185
- contains_any: "contains_any";
186
- does_not_contain: "does_not_contain";
187
- does_not_contain_any: "does_not_contain_any";
188
- equals: "equals";
189
- does_not_equal: "does_not_equal";
190
- greater_than: "greater_than";
191
- less_than: "less_than";
192
- }>>;
193
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
194
- type: z.ZodDefault<z.ZodEnum<{
195
- product: "product";
196
- date: "date";
197
- cart: "cart";
198
- cart_count: "cart_count";
199
- cart_item_count: "cart_item_count";
200
- cart_line_count: "cart_line_count";
201
- cart_subtotal: "cart_subtotal";
202
- collection: "collection";
203
- customer: "customer";
204
- customer_order_count: "customer_order_count";
205
- customer_tag: "customer_tag";
206
- customer_total_spent: "customer_total_spent";
207
- product_tag: "product_tag";
208
- product_title: "product_title";
209
- product_type: "product_type";
210
- product_vendor: "product_vendor";
211
- }>>;
212
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
213
- }, z.core.$strip>>>;
214
- }, z.core.$strip>>>;
215
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
216
- key: z.ZodDefault<z.ZodString>;
217
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
218
- value: z.ZodDefault<z.ZodString>;
219
- }, z.core.$strip>>>;
220
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
221
- }, z.core.$strip>>;
222
173
  sectionId: z.ZodDefault<z.ZodUUID>;
223
174
  sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import("./checkout-and-beyond").CABSection, unknown, z.core.$ZodTypeInternals<import("./checkout-and-beyond").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
224
175
  sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
@@ -232,6 +183,152 @@ export declare const ContentBlock: z.ZodDiscriminatedUnion<[z.ZodObject<{
232
183
  }>>;
233
184
  viewUrl: z.ZodOptional<z.ZodString>;
234
185
  width: z.ZodDefault<z.ZodNumber>;
186
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
187
+ effect: z.ZodDefault<z.ZodEnum<{
188
+ set_false: "set_false";
189
+ set_true: "set_true";
190
+ toggle: "toggle";
191
+ }>>;
192
+ variable: z.ZodString;
193
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
194
+ event: z.ZodEnum<{
195
+ item_added: "item_added";
196
+ quantity_changed: "quantity_changed";
197
+ variant_selected: "variant_selected";
198
+ }>;
199
+ type: z.ZodLiteral<"event">;
200
+ }, z.core.$strip>, z.ZodObject<{
201
+ operator: z.ZodDefault<z.ZodEnum<{
202
+ equals: "equals";
203
+ greater_than: "greater_than";
204
+ less_than: "less_than";
205
+ }>>;
206
+ type: z.ZodLiteral<"result_count">;
207
+ value: z.ZodDefault<z.ZodNumber>;
208
+ }, z.core.$strip>, z.ZodObject<{
209
+ operator: z.ZodDefault<z.ZodEnum<{
210
+ contains: "contains";
211
+ does_not_contain: "does_not_contain";
212
+ }>>;
213
+ type: z.ZodLiteral<"result_tag">;
214
+ value: z.ZodString;
215
+ }, z.core.$strip>], "type">;
216
+ }, z.core.$strip>>>;
217
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
218
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
219
+ name: z.ZodString;
220
+ seed: z.ZodOptional<z.ZodObject<{
221
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
222
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
223
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
224
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
225
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
226
+ operator: z.ZodDefault<z.ZodEnum<{
227
+ equals: "equals";
228
+ greater_than: "greater_than";
229
+ less_than: "less_than";
230
+ contains: "contains";
231
+ does_not_contain: "does_not_contain";
232
+ after: "after";
233
+ anything: "anything";
234
+ before: "before";
235
+ contains_any: "contains_any";
236
+ does_not_contain_any: "does_not_contain_any";
237
+ does_not_equal: "does_not_equal";
238
+ }>>;
239
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
240
+ type: z.ZodDefault<z.ZodEnum<{
241
+ product: "product";
242
+ date: "date";
243
+ cart: "cart";
244
+ cart_count: "cart_count";
245
+ cart_item_count: "cart_item_count";
246
+ cart_line_count: "cart_line_count";
247
+ cart_subtotal: "cart_subtotal";
248
+ collection: "collection";
249
+ customer: "customer";
250
+ customer_order_count: "customer_order_count";
251
+ customer_tag: "customer_tag";
252
+ customer_total_spent: "customer_total_spent";
253
+ product_tag: "product_tag";
254
+ product_title: "product_title";
255
+ product_type: "product_type";
256
+ product_vendor: "product_vendor";
257
+ }>>;
258
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
259
+ }, z.core.$strip>>>;
260
+ }, z.core.$strip>>>;
261
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
262
+ key: z.ZodDefault<z.ZodString>;
263
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
264
+ value: z.ZodDefault<z.ZodString>;
265
+ }, z.core.$strip>>>;
266
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
267
+ exitIfMatched: boolean;
268
+ logic: {
269
+ rules: {
270
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
271
+ products: never[] | unknown[];
272
+ 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";
273
+ value: string;
274
+ }[];
275
+ }[];
276
+ output: {
277
+ key: string;
278
+ type: "data_json";
279
+ value: string;
280
+ }[];
281
+ }[], Record<string, never>>>]>>;
282
+ }, z.core.$strip>>;
283
+ }, z.core.$strip>, z.ZodTransform<{
284
+ name: string;
285
+ seed?: {
286
+ dataSourceId: number | null;
287
+ ruleset: {
288
+ exitIfMatched: boolean;
289
+ logic: {
290
+ rules: {
291
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
292
+ products: never[] | unknown[];
293
+ 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";
294
+ value: string;
295
+ }[];
296
+ }[];
297
+ output: {
298
+ key: string;
299
+ type: "data_json";
300
+ value: string;
301
+ }[];
302
+ }[];
303
+ } | undefined;
304
+ defaultValue: boolean;
305
+ }, {
306
+ name: string;
307
+ defaultValue?: boolean | undefined;
308
+ seed?: {
309
+ dataSourceId: number | null;
310
+ ruleset: {
311
+ exitIfMatched: boolean;
312
+ logic: {
313
+ rules: {
314
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
315
+ products: never[] | unknown[];
316
+ 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";
317
+ value: string;
318
+ }[];
319
+ }[];
320
+ output: {
321
+ key: string;
322
+ type: "data_json";
323
+ value: string;
324
+ }[];
325
+ }[];
326
+ } | undefined;
327
+ }>>>>;
328
+ visibility: z.ZodOptional<z.ZodObject<{
329
+ variable: z.ZodString;
330
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
331
+ }, z.core.$strip>>;
235
332
  editorMode: z.ZodDefault<z.ZodEnum<{
236
333
  checkoutExtension: "checkoutExtension";
237
334
  postPurchaseOffer: "postPurchaseOffer";
@@ -135,55 +135,6 @@ export declare const LineItemEditor: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
135
  loose: "loose";
136
136
  extraLoose: "extraLoose";
137
137
  }>>;
138
- rule: z.ZodOptional<z.ZodObject<{
139
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
140
- enabled: z.ZodDefault<z.ZodBoolean>;
141
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
142
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
143
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
144
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
145
- operator: z.ZodDefault<z.ZodEnum<{
146
- after: "after";
147
- anything: "anything";
148
- before: "before";
149
- contains: "contains";
150
- contains_any: "contains_any";
151
- does_not_contain: "does_not_contain";
152
- does_not_contain_any: "does_not_contain_any";
153
- equals: "equals";
154
- does_not_equal: "does_not_equal";
155
- greater_than: "greater_than";
156
- less_than: "less_than";
157
- }>>;
158
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
159
- type: z.ZodDefault<z.ZodEnum<{
160
- product: "product";
161
- date: "date";
162
- cart: "cart";
163
- cart_count: "cart_count";
164
- cart_item_count: "cart_item_count";
165
- cart_line_count: "cart_line_count";
166
- cart_subtotal: "cart_subtotal";
167
- collection: "collection";
168
- customer: "customer";
169
- customer_order_count: "customer_order_count";
170
- customer_tag: "customer_tag";
171
- customer_total_spent: "customer_total_spent";
172
- product_tag: "product_tag";
173
- product_title: "product_title";
174
- product_type: "product_type";
175
- product_vendor: "product_vendor";
176
- }>>;
177
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
178
- }, z.core.$strip>>>;
179
- }, z.core.$strip>>>;
180
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
181
- key: z.ZodDefault<z.ZodString>;
182
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
183
- value: z.ZodDefault<z.ZodString>;
184
- }, z.core.$strip>>>;
185
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
186
- }, z.core.$strip>>;
187
138
  sectionId: z.ZodDefault<z.ZodUUID>;
188
139
  sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import("./checkout-and-beyond").CABSection, unknown, z.core.$ZodTypeInternals<import("./checkout-and-beyond").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
189
140
  sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
@@ -197,6 +148,152 @@ export declare const LineItemEditor: z.ZodDiscriminatedUnion<[z.ZodObject<{
197
148
  }>>;
198
149
  viewUrl: z.ZodOptional<z.ZodString>;
199
150
  width: z.ZodDefault<z.ZodNumber>;
151
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
152
+ effect: z.ZodDefault<z.ZodEnum<{
153
+ set_false: "set_false";
154
+ set_true: "set_true";
155
+ toggle: "toggle";
156
+ }>>;
157
+ variable: z.ZodString;
158
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
159
+ event: z.ZodEnum<{
160
+ item_added: "item_added";
161
+ quantity_changed: "quantity_changed";
162
+ variant_selected: "variant_selected";
163
+ }>;
164
+ type: z.ZodLiteral<"event">;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ operator: z.ZodDefault<z.ZodEnum<{
167
+ equals: "equals";
168
+ greater_than: "greater_than";
169
+ less_than: "less_than";
170
+ }>>;
171
+ type: z.ZodLiteral<"result_count">;
172
+ value: z.ZodDefault<z.ZodNumber>;
173
+ }, z.core.$strip>, z.ZodObject<{
174
+ operator: z.ZodDefault<z.ZodEnum<{
175
+ contains: "contains";
176
+ does_not_contain: "does_not_contain";
177
+ }>>;
178
+ type: z.ZodLiteral<"result_tag">;
179
+ value: z.ZodString;
180
+ }, z.core.$strip>], "type">;
181
+ }, z.core.$strip>>>;
182
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
183
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
184
+ name: z.ZodString;
185
+ seed: z.ZodOptional<z.ZodObject<{
186
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
187
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
188
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
189
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
190
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
191
+ operator: z.ZodDefault<z.ZodEnum<{
192
+ equals: "equals";
193
+ greater_than: "greater_than";
194
+ less_than: "less_than";
195
+ contains: "contains";
196
+ does_not_contain: "does_not_contain";
197
+ after: "after";
198
+ anything: "anything";
199
+ before: "before";
200
+ contains_any: "contains_any";
201
+ does_not_contain_any: "does_not_contain_any";
202
+ does_not_equal: "does_not_equal";
203
+ }>>;
204
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
205
+ type: z.ZodDefault<z.ZodEnum<{
206
+ product: "product";
207
+ date: "date";
208
+ cart: "cart";
209
+ cart_count: "cart_count";
210
+ cart_item_count: "cart_item_count";
211
+ cart_line_count: "cart_line_count";
212
+ cart_subtotal: "cart_subtotal";
213
+ collection: "collection";
214
+ customer: "customer";
215
+ customer_order_count: "customer_order_count";
216
+ customer_tag: "customer_tag";
217
+ customer_total_spent: "customer_total_spent";
218
+ product_tag: "product_tag";
219
+ product_title: "product_title";
220
+ product_type: "product_type";
221
+ product_vendor: "product_vendor";
222
+ }>>;
223
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
224
+ }, z.core.$strip>>>;
225
+ }, z.core.$strip>>>;
226
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
227
+ key: z.ZodDefault<z.ZodString>;
228
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
229
+ value: z.ZodDefault<z.ZodString>;
230
+ }, z.core.$strip>>>;
231
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
232
+ exitIfMatched: boolean;
233
+ logic: {
234
+ rules: {
235
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
236
+ products: never[] | unknown[];
237
+ 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";
238
+ value: string;
239
+ }[];
240
+ }[];
241
+ output: {
242
+ key: string;
243
+ type: "data_json";
244
+ value: string;
245
+ }[];
246
+ }[], Record<string, never>>>]>>;
247
+ }, z.core.$strip>>;
248
+ }, z.core.$strip>, z.ZodTransform<{
249
+ name: string;
250
+ seed?: {
251
+ dataSourceId: number | null;
252
+ ruleset: {
253
+ exitIfMatched: boolean;
254
+ logic: {
255
+ rules: {
256
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
257
+ products: never[] | unknown[];
258
+ 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";
259
+ value: string;
260
+ }[];
261
+ }[];
262
+ output: {
263
+ key: string;
264
+ type: "data_json";
265
+ value: string;
266
+ }[];
267
+ }[];
268
+ } | undefined;
269
+ defaultValue: boolean;
270
+ }, {
271
+ name: string;
272
+ defaultValue?: boolean | undefined;
273
+ seed?: {
274
+ dataSourceId: number | null;
275
+ ruleset: {
276
+ exitIfMatched: boolean;
277
+ logic: {
278
+ rules: {
279
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
280
+ products: never[] | unknown[];
281
+ 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";
282
+ value: string;
283
+ }[];
284
+ }[];
285
+ output: {
286
+ key: string;
287
+ type: "data_json";
288
+ value: string;
289
+ }[];
290
+ }[];
291
+ } | undefined;
292
+ }>>>>;
293
+ visibility: z.ZodOptional<z.ZodObject<{
294
+ variable: z.ZodString;
295
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
296
+ }, z.core.$strip>>;
200
297
  editorMode: z.ZodDefault<z.ZodEnum<{
201
298
  checkoutExtension: "checkoutExtension";
202
299
  postPurchaseOffer: "postPurchaseOffer";