@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
@@ -84,55 +84,6 @@ export declare const CABImageSectionFields: z.ZodObject<{
84
84
  cover: "cover";
85
85
  contain: "contain";
86
86
  }>>;
87
- rule: z.ZodOptional<z.ZodObject<{
88
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
89
- enabled: z.ZodDefault<z.ZodBoolean>;
90
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
91
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
92
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
93
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
94
- operator: z.ZodDefault<z.ZodEnum<{
95
- after: "after";
96
- anything: "anything";
97
- before: "before";
98
- contains: "contains";
99
- contains_any: "contains_any";
100
- does_not_contain: "does_not_contain";
101
- does_not_contain_any: "does_not_contain_any";
102
- equals: "equals";
103
- does_not_equal: "does_not_equal";
104
- greater_than: "greater_than";
105
- less_than: "less_than";
106
- }>>;
107
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
108
- type: z.ZodDefault<z.ZodEnum<{
109
- product: "product";
110
- date: "date";
111
- cart: "cart";
112
- cart_count: "cart_count";
113
- cart_item_count: "cart_item_count";
114
- cart_line_count: "cart_line_count";
115
- cart_subtotal: "cart_subtotal";
116
- collection: "collection";
117
- customer: "customer";
118
- customer_order_count: "customer_order_count";
119
- customer_tag: "customer_tag";
120
- customer_total_spent: "customer_total_spent";
121
- product_tag: "product_tag";
122
- product_title: "product_title";
123
- product_type: "product_type";
124
- product_vendor: "product_vendor";
125
- }>>;
126
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
127
- }, z.core.$strip>>>;
128
- }, z.core.$strip>>>;
129
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
130
- key: z.ZodDefault<z.ZodString>;
131
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
132
- value: z.ZodDefault<z.ZodString>;
133
- }, z.core.$strip>>>;
134
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
135
- }, z.core.$strip>>;
136
87
  sectionId: z.ZodDefault<z.ZodUUID>;
137
88
  sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
138
89
  source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString, z.ZodEnum<{
@@ -146,7 +97,6 @@ export declare const CABImageSectionFields: z.ZodObject<{
146
97
  info: "info";
147
98
  grid: "grid";
148
99
  menu: "menu";
149
- cart: "cart";
150
100
  "alert-circle": "alert-circle";
151
101
  "alert-triangle": "alert-triangle";
152
102
  "alert-triangle-filled": "alert-triangle-filled";
@@ -160,6 +110,7 @@ export declare const CABImageSectionFields: z.ZodObject<{
160
110
  calendar: "calendar";
161
111
  camera: "camera";
162
112
  "caret-down": "caret-down";
113
+ cart: "cart";
163
114
  "cash-dollar": "cash-dollar";
164
115
  categories: "categories";
165
116
  "check-circle": "check-circle";
@@ -213,6 +164,152 @@ export declare const CABImageSectionFields: z.ZodObject<{
213
164
  "x-circle-filled": "x-circle-filled";
214
165
  }>]>>;
215
166
  width: z.ZodDefault<z.ZodNumber>;
167
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
168
+ effect: z.ZodDefault<z.ZodEnum<{
169
+ set_false: "set_false";
170
+ set_true: "set_true";
171
+ toggle: "toggle";
172
+ }>>;
173
+ variable: z.ZodString;
174
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
175
+ event: z.ZodEnum<{
176
+ item_added: "item_added";
177
+ quantity_changed: "quantity_changed";
178
+ variant_selected: "variant_selected";
179
+ }>;
180
+ type: z.ZodLiteral<"event">;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ operator: z.ZodDefault<z.ZodEnum<{
183
+ equals: "equals";
184
+ greater_than: "greater_than";
185
+ less_than: "less_than";
186
+ }>>;
187
+ type: z.ZodLiteral<"result_count">;
188
+ value: z.ZodDefault<z.ZodNumber>;
189
+ }, z.core.$strip>, z.ZodObject<{
190
+ operator: z.ZodDefault<z.ZodEnum<{
191
+ contains: "contains";
192
+ does_not_contain: "does_not_contain";
193
+ }>>;
194
+ type: z.ZodLiteral<"result_tag">;
195
+ value: z.ZodString;
196
+ }, z.core.$strip>], "type">;
197
+ }, z.core.$strip>>>;
198
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
199
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
200
+ name: z.ZodString;
201
+ seed: z.ZodOptional<z.ZodObject<{
202
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
203
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
204
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
205
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
206
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
207
+ operator: z.ZodDefault<z.ZodEnum<{
208
+ equals: "equals";
209
+ greater_than: "greater_than";
210
+ less_than: "less_than";
211
+ contains: "contains";
212
+ does_not_contain: "does_not_contain";
213
+ after: "after";
214
+ anything: "anything";
215
+ before: "before";
216
+ contains_any: "contains_any";
217
+ does_not_contain_any: "does_not_contain_any";
218
+ does_not_equal: "does_not_equal";
219
+ }>>;
220
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
221
+ type: z.ZodDefault<z.ZodEnum<{
222
+ product: "product";
223
+ date: "date";
224
+ cart: "cart";
225
+ cart_count: "cart_count";
226
+ cart_item_count: "cart_item_count";
227
+ cart_line_count: "cart_line_count";
228
+ cart_subtotal: "cart_subtotal";
229
+ collection: "collection";
230
+ customer: "customer";
231
+ customer_order_count: "customer_order_count";
232
+ customer_tag: "customer_tag";
233
+ customer_total_spent: "customer_total_spent";
234
+ product_tag: "product_tag";
235
+ product_title: "product_title";
236
+ product_type: "product_type";
237
+ product_vendor: "product_vendor";
238
+ }>>;
239
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
240
+ }, z.core.$strip>>>;
241
+ }, z.core.$strip>>>;
242
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
243
+ key: z.ZodDefault<z.ZodString>;
244
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
245
+ value: z.ZodDefault<z.ZodString>;
246
+ }, z.core.$strip>>>;
247
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
248
+ exitIfMatched: boolean;
249
+ logic: {
250
+ rules: {
251
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
252
+ products: never[] | unknown[];
253
+ 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";
254
+ value: string;
255
+ }[];
256
+ }[];
257
+ output: {
258
+ key: string;
259
+ type: "data_json";
260
+ value: string;
261
+ }[];
262
+ }[], Record<string, never>>>]>>;
263
+ }, z.core.$strip>>;
264
+ }, z.core.$strip>, z.ZodTransform<{
265
+ name: string;
266
+ seed?: {
267
+ dataSourceId: number | null;
268
+ ruleset: {
269
+ exitIfMatched: boolean;
270
+ logic: {
271
+ rules: {
272
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
273
+ products: never[] | unknown[];
274
+ 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";
275
+ value: string;
276
+ }[];
277
+ }[];
278
+ output: {
279
+ key: string;
280
+ type: "data_json";
281
+ value: string;
282
+ }[];
283
+ }[];
284
+ } | undefined;
285
+ defaultValue: boolean;
286
+ }, {
287
+ name: string;
288
+ defaultValue?: boolean | undefined;
289
+ seed?: {
290
+ dataSourceId: number | null;
291
+ ruleset: {
292
+ exitIfMatched: boolean;
293
+ logic: {
294
+ rules: {
295
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
296
+ products: never[] | unknown[];
297
+ 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";
298
+ value: string;
299
+ }[];
300
+ }[];
301
+ output: {
302
+ key: string;
303
+ type: "data_json";
304
+ value: string;
305
+ }[];
306
+ }[];
307
+ } | undefined;
308
+ }>>>>;
309
+ visibility: z.ZodOptional<z.ZodObject<{
310
+ variable: z.ZodString;
311
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
312
+ }, z.core.$strip>>;
216
313
  }, z.core.$strip>;
217
314
  /**
218
315
  * The `category`/`source` pairing documented on `category`: icon mode takes icon names, everything else can't.
@@ -302,55 +399,6 @@ export declare const CABImageSection: z.ZodObject<{
302
399
  cover: "cover";
303
400
  contain: "contain";
304
401
  }>>;
305
- rule: z.ZodOptional<z.ZodObject<{
306
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
307
- enabled: z.ZodDefault<z.ZodBoolean>;
308
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
309
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
310
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
311
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
312
- operator: z.ZodDefault<z.ZodEnum<{
313
- after: "after";
314
- anything: "anything";
315
- before: "before";
316
- contains: "contains";
317
- contains_any: "contains_any";
318
- does_not_contain: "does_not_contain";
319
- does_not_contain_any: "does_not_contain_any";
320
- equals: "equals";
321
- does_not_equal: "does_not_equal";
322
- greater_than: "greater_than";
323
- less_than: "less_than";
324
- }>>;
325
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
326
- type: z.ZodDefault<z.ZodEnum<{
327
- product: "product";
328
- date: "date";
329
- cart: "cart";
330
- cart_count: "cart_count";
331
- cart_item_count: "cart_item_count";
332
- cart_line_count: "cart_line_count";
333
- cart_subtotal: "cart_subtotal";
334
- collection: "collection";
335
- customer: "customer";
336
- customer_order_count: "customer_order_count";
337
- customer_tag: "customer_tag";
338
- customer_total_spent: "customer_total_spent";
339
- product_tag: "product_tag";
340
- product_title: "product_title";
341
- product_type: "product_type";
342
- product_vendor: "product_vendor";
343
- }>>;
344
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
345
- }, z.core.$strip>>>;
346
- }, z.core.$strip>>>;
347
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
348
- key: z.ZodDefault<z.ZodString>;
349
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
350
- value: z.ZodDefault<z.ZodString>;
351
- }, z.core.$strip>>>;
352
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
353
- }, z.core.$strip>>;
354
402
  sectionId: z.ZodDefault<z.ZodUUID>;
355
403
  sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
356
404
  source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString, z.ZodEnum<{
@@ -364,7 +412,6 @@ export declare const CABImageSection: z.ZodObject<{
364
412
  info: "info";
365
413
  grid: "grid";
366
414
  menu: "menu";
367
- cart: "cart";
368
415
  "alert-circle": "alert-circle";
369
416
  "alert-triangle": "alert-triangle";
370
417
  "alert-triangle-filled": "alert-triangle-filled";
@@ -378,6 +425,7 @@ export declare const CABImageSection: z.ZodObject<{
378
425
  calendar: "calendar";
379
426
  camera: "camera";
380
427
  "caret-down": "caret-down";
428
+ cart: "cart";
381
429
  "cash-dollar": "cash-dollar";
382
430
  categories: "categories";
383
431
  "check-circle": "check-circle";
@@ -431,6 +479,152 @@ export declare const CABImageSection: z.ZodObject<{
431
479
  "x-circle-filled": "x-circle-filled";
432
480
  }>]>>;
433
481
  width: z.ZodDefault<z.ZodNumber>;
482
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
483
+ effect: z.ZodDefault<z.ZodEnum<{
484
+ set_false: "set_false";
485
+ set_true: "set_true";
486
+ toggle: "toggle";
487
+ }>>;
488
+ variable: z.ZodString;
489
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
490
+ event: z.ZodEnum<{
491
+ item_added: "item_added";
492
+ quantity_changed: "quantity_changed";
493
+ variant_selected: "variant_selected";
494
+ }>;
495
+ type: z.ZodLiteral<"event">;
496
+ }, z.core.$strip>, z.ZodObject<{
497
+ operator: z.ZodDefault<z.ZodEnum<{
498
+ equals: "equals";
499
+ greater_than: "greater_than";
500
+ less_than: "less_than";
501
+ }>>;
502
+ type: z.ZodLiteral<"result_count">;
503
+ value: z.ZodDefault<z.ZodNumber>;
504
+ }, z.core.$strip>, z.ZodObject<{
505
+ operator: z.ZodDefault<z.ZodEnum<{
506
+ contains: "contains";
507
+ does_not_contain: "does_not_contain";
508
+ }>>;
509
+ type: z.ZodLiteral<"result_tag">;
510
+ value: z.ZodString;
511
+ }, z.core.$strip>], "type">;
512
+ }, z.core.$strip>>>;
513
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
514
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
515
+ name: z.ZodString;
516
+ seed: z.ZodOptional<z.ZodObject<{
517
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
518
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
519
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
520
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
521
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
522
+ operator: z.ZodDefault<z.ZodEnum<{
523
+ equals: "equals";
524
+ greater_than: "greater_than";
525
+ less_than: "less_than";
526
+ contains: "contains";
527
+ does_not_contain: "does_not_contain";
528
+ after: "after";
529
+ anything: "anything";
530
+ before: "before";
531
+ contains_any: "contains_any";
532
+ does_not_contain_any: "does_not_contain_any";
533
+ does_not_equal: "does_not_equal";
534
+ }>>;
535
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
536
+ type: z.ZodDefault<z.ZodEnum<{
537
+ product: "product";
538
+ date: "date";
539
+ cart: "cart";
540
+ cart_count: "cart_count";
541
+ cart_item_count: "cart_item_count";
542
+ cart_line_count: "cart_line_count";
543
+ cart_subtotal: "cart_subtotal";
544
+ collection: "collection";
545
+ customer: "customer";
546
+ customer_order_count: "customer_order_count";
547
+ customer_tag: "customer_tag";
548
+ customer_total_spent: "customer_total_spent";
549
+ product_tag: "product_tag";
550
+ product_title: "product_title";
551
+ product_type: "product_type";
552
+ product_vendor: "product_vendor";
553
+ }>>;
554
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
555
+ }, z.core.$strip>>>;
556
+ }, z.core.$strip>>>;
557
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
558
+ key: z.ZodDefault<z.ZodString>;
559
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
560
+ value: z.ZodDefault<z.ZodString>;
561
+ }, z.core.$strip>>>;
562
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
563
+ exitIfMatched: boolean;
564
+ logic: {
565
+ rules: {
566
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
567
+ products: never[] | unknown[];
568
+ 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";
569
+ value: string;
570
+ }[];
571
+ }[];
572
+ output: {
573
+ key: string;
574
+ type: "data_json";
575
+ value: string;
576
+ }[];
577
+ }[], Record<string, never>>>]>>;
578
+ }, z.core.$strip>>;
579
+ }, z.core.$strip>, z.ZodTransform<{
580
+ name: string;
581
+ seed?: {
582
+ dataSourceId: number | null;
583
+ ruleset: {
584
+ exitIfMatched: boolean;
585
+ logic: {
586
+ rules: {
587
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
588
+ products: never[] | unknown[];
589
+ 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";
590
+ value: string;
591
+ }[];
592
+ }[];
593
+ output: {
594
+ key: string;
595
+ type: "data_json";
596
+ value: string;
597
+ }[];
598
+ }[];
599
+ } | undefined;
600
+ defaultValue: boolean;
601
+ }, {
602
+ name: string;
603
+ defaultValue?: boolean | undefined;
604
+ seed?: {
605
+ dataSourceId: number | null;
606
+ ruleset: {
607
+ exitIfMatched: boolean;
608
+ logic: {
609
+ rules: {
610
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
611
+ products: never[] | unknown[];
612
+ 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";
613
+ value: string;
614
+ }[];
615
+ }[];
616
+ output: {
617
+ key: string;
618
+ type: "data_json";
619
+ value: string;
620
+ }[];
621
+ }[];
622
+ } | undefined;
623
+ }>>>>;
624
+ visibility: z.ZodOptional<z.ZodObject<{
625
+ variable: z.ZodString;
626
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
627
+ }, z.core.$strip>>;
434
628
  }, z.core.$strip>;
435
629
  export type CABImageSection = z.infer<typeof CABImageSection>;
436
630
  export type CABImageSectionProps = CABImageSection & SectionDetails;
@@ -27,4 +27,5 @@ export * from './switchLabels';
27
27
  export * from './text';
28
28
  export * from './uiLabels';
29
29
  export * from './utils';
30
+ export * from './variables';
30
31
  export * from './variants';