@rebuy/rebuy 3.5.1 → 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 +739 -647
  2. package/dist/index.mjs +739 -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 +491 -416
  36. package/dist/server/index.mjs +491 -416
  37. package/dist/transforms/index.cjs +392 -317
  38. package/dist/transforms/index.mjs +392 -317
  39. package/dist/transforms/monetizeV1/convertMonetizeToV2.d.ts +2 -2
  40. package/package.json +1 -1
@@ -127,55 +127,6 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
127
127
  loose: "loose";
128
128
  extraLoose: "extraLoose";
129
129
  }>>;
130
- rule: z.ZodOptional<z.ZodObject<{
131
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
132
- enabled: z.ZodDefault<z.ZodBoolean>;
133
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
134
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
135
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
136
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
137
- operator: z.ZodDefault<z.ZodEnum<{
138
- after: "after";
139
- anything: "anything";
140
- before: "before";
141
- contains: "contains";
142
- contains_any: "contains_any";
143
- does_not_contain: "does_not_contain";
144
- does_not_contain_any: "does_not_contain_any";
145
- equals: "equals";
146
- does_not_equal: "does_not_equal";
147
- greater_than: "greater_than";
148
- less_than: "less_than";
149
- }>>;
150
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
151
- type: z.ZodDefault<z.ZodEnum<{
152
- product: "product";
153
- date: "date";
154
- cart: "cart";
155
- cart_count: "cart_count";
156
- cart_item_count: "cart_item_count";
157
- cart_line_count: "cart_line_count";
158
- cart_subtotal: "cart_subtotal";
159
- collection: "collection";
160
- customer: "customer";
161
- customer_order_count: "customer_order_count";
162
- customer_tag: "customer_tag";
163
- customer_total_spent: "customer_total_spent";
164
- product_tag: "product_tag";
165
- product_title: "product_title";
166
- product_type: "product_type";
167
- product_vendor: "product_vendor";
168
- }>>;
169
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
170
- }, z.core.$strip>>>;
171
- }, z.core.$strip>>>;
172
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
173
- key: z.ZodDefault<z.ZodString>;
174
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
175
- value: z.ZodDefault<z.ZodString>;
176
- }, z.core.$strip>>>;
177
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
178
- }, z.core.$strip>>;
179
130
  sectionId: z.ZodDefault<z.ZodUUID>;
180
131
  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>>>]>>;
181
132
  sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
@@ -189,6 +140,152 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
189
140
  }>>;
190
141
  viewUrl: z.ZodOptional<z.ZodString>;
191
142
  width: z.ZodDefault<z.ZodNumber>;
143
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
+ effect: z.ZodDefault<z.ZodEnum<{
145
+ set_false: "set_false";
146
+ set_true: "set_true";
147
+ toggle: "toggle";
148
+ }>>;
149
+ variable: z.ZodString;
150
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
151
+ event: z.ZodEnum<{
152
+ item_added: "item_added";
153
+ quantity_changed: "quantity_changed";
154
+ variant_selected: "variant_selected";
155
+ }>;
156
+ type: z.ZodLiteral<"event">;
157
+ }, z.core.$strip>, z.ZodObject<{
158
+ operator: z.ZodDefault<z.ZodEnum<{
159
+ equals: "equals";
160
+ greater_than: "greater_than";
161
+ less_than: "less_than";
162
+ }>>;
163
+ type: z.ZodLiteral<"result_count">;
164
+ value: z.ZodDefault<z.ZodNumber>;
165
+ }, z.core.$strip>, z.ZodObject<{
166
+ operator: z.ZodDefault<z.ZodEnum<{
167
+ contains: "contains";
168
+ does_not_contain: "does_not_contain";
169
+ }>>;
170
+ type: z.ZodLiteral<"result_tag">;
171
+ value: z.ZodString;
172
+ }, z.core.$strip>], "type">;
173
+ }, z.core.$strip>>>;
174
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
175
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
176
+ name: z.ZodString;
177
+ seed: z.ZodOptional<z.ZodObject<{
178
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
179
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
180
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
181
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
182
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
183
+ operator: z.ZodDefault<z.ZodEnum<{
184
+ equals: "equals";
185
+ greater_than: "greater_than";
186
+ less_than: "less_than";
187
+ contains: "contains";
188
+ does_not_contain: "does_not_contain";
189
+ after: "after";
190
+ anything: "anything";
191
+ before: "before";
192
+ contains_any: "contains_any";
193
+ does_not_contain_any: "does_not_contain_any";
194
+ does_not_equal: "does_not_equal";
195
+ }>>;
196
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
197
+ type: z.ZodDefault<z.ZodEnum<{
198
+ product: "product";
199
+ date: "date";
200
+ cart: "cart";
201
+ cart_count: "cart_count";
202
+ cart_item_count: "cart_item_count";
203
+ cart_line_count: "cart_line_count";
204
+ cart_subtotal: "cart_subtotal";
205
+ collection: "collection";
206
+ customer: "customer";
207
+ customer_order_count: "customer_order_count";
208
+ customer_tag: "customer_tag";
209
+ customer_total_spent: "customer_total_spent";
210
+ product_tag: "product_tag";
211
+ product_title: "product_title";
212
+ product_type: "product_type";
213
+ product_vendor: "product_vendor";
214
+ }>>;
215
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
216
+ }, z.core.$strip>>>;
217
+ }, z.core.$strip>>>;
218
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
219
+ key: z.ZodDefault<z.ZodString>;
220
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
221
+ value: z.ZodDefault<z.ZodString>;
222
+ }, z.core.$strip>>>;
223
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
224
+ exitIfMatched: boolean;
225
+ logic: {
226
+ rules: {
227
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
228
+ products: never[] | unknown[];
229
+ 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";
230
+ value: string;
231
+ }[];
232
+ }[];
233
+ output: {
234
+ key: string;
235
+ type: "data_json";
236
+ value: string;
237
+ }[];
238
+ }[], Record<string, never>>>]>>;
239
+ }, z.core.$strip>>;
240
+ }, z.core.$strip>, z.ZodTransform<{
241
+ name: string;
242
+ seed?: {
243
+ dataSourceId: number | null;
244
+ ruleset: {
245
+ exitIfMatched: boolean;
246
+ logic: {
247
+ rules: {
248
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
249
+ products: never[] | unknown[];
250
+ 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";
251
+ value: string;
252
+ }[];
253
+ }[];
254
+ output: {
255
+ key: string;
256
+ type: "data_json";
257
+ value: string;
258
+ }[];
259
+ }[];
260
+ } | undefined;
261
+ defaultValue: boolean;
262
+ }, {
263
+ name: string;
264
+ defaultValue?: boolean | undefined;
265
+ seed?: {
266
+ dataSourceId: number | null;
267
+ ruleset: {
268
+ exitIfMatched: boolean;
269
+ logic: {
270
+ rules: {
271
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
272
+ products: never[] | unknown[];
273
+ 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";
274
+ value: string;
275
+ }[];
276
+ }[];
277
+ output: {
278
+ key: string;
279
+ type: "data_json";
280
+ value: string;
281
+ }[];
282
+ }[];
283
+ } | undefined;
284
+ }>>>>;
285
+ visibility: z.ZodOptional<z.ZodObject<{
286
+ variable: z.ZodString;
287
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
288
+ }, z.core.$strip>>;
192
289
  editorMode: z.ZodDefault<z.ZodEnum<{
193
290
  checkoutExtension: "checkoutExtension";
194
291
  postPurchaseOffer: "postPurchaseOffer";
@@ -347,55 +444,6 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
347
444
  loose: "loose";
348
445
  extraLoose: "extraLoose";
349
446
  }>>;
350
- rule: z.ZodOptional<z.ZodObject<{
351
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
352
- enabled: z.ZodDefault<z.ZodBoolean>;
353
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
354
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
355
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
356
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
357
- operator: z.ZodDefault<z.ZodEnum<{
358
- after: "after";
359
- anything: "anything";
360
- before: "before";
361
- contains: "contains";
362
- contains_any: "contains_any";
363
- does_not_contain: "does_not_contain";
364
- does_not_contain_any: "does_not_contain_any";
365
- equals: "equals";
366
- does_not_equal: "does_not_equal";
367
- greater_than: "greater_than";
368
- less_than: "less_than";
369
- }>>;
370
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
371
- type: z.ZodDefault<z.ZodEnum<{
372
- product: "product";
373
- date: "date";
374
- cart: "cart";
375
- cart_count: "cart_count";
376
- cart_item_count: "cart_item_count";
377
- cart_line_count: "cart_line_count";
378
- cart_subtotal: "cart_subtotal";
379
- collection: "collection";
380
- customer: "customer";
381
- customer_order_count: "customer_order_count";
382
- customer_tag: "customer_tag";
383
- customer_total_spent: "customer_total_spent";
384
- product_tag: "product_tag";
385
- product_title: "product_title";
386
- product_type: "product_type";
387
- product_vendor: "product_vendor";
388
- }>>;
389
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
390
- }, z.core.$strip>>>;
391
- }, z.core.$strip>>>;
392
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
393
- key: z.ZodDefault<z.ZodString>;
394
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
395
- value: z.ZodDefault<z.ZodString>;
396
- }, z.core.$strip>>>;
397
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
398
- }, z.core.$strip>>;
399
447
  sectionId: z.ZodDefault<z.ZodUUID>;
400
448
  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>>>]>>;
401
449
  sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
@@ -409,6 +457,152 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
409
457
  }>>;
410
458
  viewUrl: z.ZodOptional<z.ZodString>;
411
459
  width: z.ZodDefault<z.ZodNumber>;
460
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
461
+ effect: z.ZodDefault<z.ZodEnum<{
462
+ set_false: "set_false";
463
+ set_true: "set_true";
464
+ toggle: "toggle";
465
+ }>>;
466
+ variable: z.ZodString;
467
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
468
+ event: z.ZodEnum<{
469
+ item_added: "item_added";
470
+ quantity_changed: "quantity_changed";
471
+ variant_selected: "variant_selected";
472
+ }>;
473
+ type: z.ZodLiteral<"event">;
474
+ }, z.core.$strip>, z.ZodObject<{
475
+ operator: z.ZodDefault<z.ZodEnum<{
476
+ equals: "equals";
477
+ greater_than: "greater_than";
478
+ less_than: "less_than";
479
+ }>>;
480
+ type: z.ZodLiteral<"result_count">;
481
+ value: z.ZodDefault<z.ZodNumber>;
482
+ }, z.core.$strip>, z.ZodObject<{
483
+ operator: z.ZodDefault<z.ZodEnum<{
484
+ contains: "contains";
485
+ does_not_contain: "does_not_contain";
486
+ }>>;
487
+ type: z.ZodLiteral<"result_tag">;
488
+ value: z.ZodString;
489
+ }, z.core.$strip>], "type">;
490
+ }, z.core.$strip>>>;
491
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
492
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
493
+ name: z.ZodString;
494
+ seed: z.ZodOptional<z.ZodObject<{
495
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
496
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
497
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
498
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
499
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
500
+ operator: z.ZodDefault<z.ZodEnum<{
501
+ equals: "equals";
502
+ greater_than: "greater_than";
503
+ less_than: "less_than";
504
+ contains: "contains";
505
+ does_not_contain: "does_not_contain";
506
+ after: "after";
507
+ anything: "anything";
508
+ before: "before";
509
+ contains_any: "contains_any";
510
+ does_not_contain_any: "does_not_contain_any";
511
+ does_not_equal: "does_not_equal";
512
+ }>>;
513
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
514
+ type: z.ZodDefault<z.ZodEnum<{
515
+ product: "product";
516
+ date: "date";
517
+ cart: "cart";
518
+ cart_count: "cart_count";
519
+ cart_item_count: "cart_item_count";
520
+ cart_line_count: "cart_line_count";
521
+ cart_subtotal: "cart_subtotal";
522
+ collection: "collection";
523
+ customer: "customer";
524
+ customer_order_count: "customer_order_count";
525
+ customer_tag: "customer_tag";
526
+ customer_total_spent: "customer_total_spent";
527
+ product_tag: "product_tag";
528
+ product_title: "product_title";
529
+ product_type: "product_type";
530
+ product_vendor: "product_vendor";
531
+ }>>;
532
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
533
+ }, z.core.$strip>>>;
534
+ }, z.core.$strip>>>;
535
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
536
+ key: z.ZodDefault<z.ZodString>;
537
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
538
+ value: z.ZodDefault<z.ZodString>;
539
+ }, z.core.$strip>>>;
540
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
541
+ exitIfMatched: boolean;
542
+ logic: {
543
+ rules: {
544
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
545
+ products: never[] | unknown[];
546
+ 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";
547
+ value: string;
548
+ }[];
549
+ }[];
550
+ output: {
551
+ key: string;
552
+ type: "data_json";
553
+ value: string;
554
+ }[];
555
+ }[], Record<string, never>>>]>>;
556
+ }, z.core.$strip>>;
557
+ }, z.core.$strip>, z.ZodTransform<{
558
+ name: string;
559
+ seed?: {
560
+ dataSourceId: number | null;
561
+ ruleset: {
562
+ exitIfMatched: boolean;
563
+ logic: {
564
+ rules: {
565
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
566
+ products: never[] | unknown[];
567
+ 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";
568
+ value: string;
569
+ }[];
570
+ }[];
571
+ output: {
572
+ key: string;
573
+ type: "data_json";
574
+ value: string;
575
+ }[];
576
+ }[];
577
+ } | undefined;
578
+ defaultValue: boolean;
579
+ }, {
580
+ name: string;
581
+ defaultValue?: boolean | undefined;
582
+ seed?: {
583
+ dataSourceId: number | null;
584
+ ruleset: {
585
+ exitIfMatched: boolean;
586
+ logic: {
587
+ rules: {
588
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
589
+ products: never[] | unknown[];
590
+ 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";
591
+ value: string;
592
+ }[];
593
+ }[];
594
+ output: {
595
+ key: string;
596
+ type: "data_json";
597
+ value: string;
598
+ }[];
599
+ }[];
600
+ } | undefined;
601
+ }>>>>;
602
+ visibility: z.ZodOptional<z.ZodObject<{
603
+ variable: z.ZodString;
604
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
605
+ }, z.core.$strip>>;
412
606
  editorMode: z.ZodDefault<z.ZodEnum<{
413
607
  checkoutExtension: "checkoutExtension";
414
608
  postPurchaseOffer: "postPurchaseOffer";
@@ -544,55 +738,6 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
544
738
  loose: "loose";
545
739
  extraLoose: "extraLoose";
546
740
  }>>;
547
- rule: z.ZodOptional<z.ZodObject<{
548
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
549
- enabled: z.ZodDefault<z.ZodBoolean>;
550
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
551
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
552
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
553
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
554
- operator: z.ZodDefault<z.ZodEnum<{
555
- after: "after";
556
- anything: "anything";
557
- before: "before";
558
- contains: "contains";
559
- contains_any: "contains_any";
560
- does_not_contain: "does_not_contain";
561
- does_not_contain_any: "does_not_contain_any";
562
- equals: "equals";
563
- does_not_equal: "does_not_equal";
564
- greater_than: "greater_than";
565
- less_than: "less_than";
566
- }>>;
567
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
568
- type: z.ZodDefault<z.ZodEnum<{
569
- product: "product";
570
- date: "date";
571
- cart: "cart";
572
- cart_count: "cart_count";
573
- cart_item_count: "cart_item_count";
574
- cart_line_count: "cart_line_count";
575
- cart_subtotal: "cart_subtotal";
576
- collection: "collection";
577
- customer: "customer";
578
- customer_order_count: "customer_order_count";
579
- customer_tag: "customer_tag";
580
- customer_total_spent: "customer_total_spent";
581
- product_tag: "product_tag";
582
- product_title: "product_title";
583
- product_type: "product_type";
584
- product_vendor: "product_vendor";
585
- }>>;
586
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
587
- }, z.core.$strip>>>;
588
- }, z.core.$strip>>>;
589
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
590
- key: z.ZodDefault<z.ZodString>;
591
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
592
- value: z.ZodDefault<z.ZodString>;
593
- }, z.core.$strip>>>;
594
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
595
- }, z.core.$strip>>;
596
741
  sectionId: z.ZodDefault<z.ZodUUID>;
597
742
  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>>>]>>;
598
743
  sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
@@ -606,6 +751,152 @@ export declare const WidgetData: z.ZodDiscriminatedUnion<[z.ZodObject<{
606
751
  }>>;
607
752
  viewUrl: z.ZodOptional<z.ZodString>;
608
753
  width: z.ZodDefault<z.ZodNumber>;
754
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
755
+ effect: z.ZodDefault<z.ZodEnum<{
756
+ set_false: "set_false";
757
+ set_true: "set_true";
758
+ toggle: "toggle";
759
+ }>>;
760
+ variable: z.ZodString;
761
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
762
+ event: z.ZodEnum<{
763
+ item_added: "item_added";
764
+ quantity_changed: "quantity_changed";
765
+ variant_selected: "variant_selected";
766
+ }>;
767
+ type: z.ZodLiteral<"event">;
768
+ }, z.core.$strip>, z.ZodObject<{
769
+ operator: z.ZodDefault<z.ZodEnum<{
770
+ equals: "equals";
771
+ greater_than: "greater_than";
772
+ less_than: "less_than";
773
+ }>>;
774
+ type: z.ZodLiteral<"result_count">;
775
+ value: z.ZodDefault<z.ZodNumber>;
776
+ }, z.core.$strip>, z.ZodObject<{
777
+ operator: z.ZodDefault<z.ZodEnum<{
778
+ contains: "contains";
779
+ does_not_contain: "does_not_contain";
780
+ }>>;
781
+ type: z.ZodLiteral<"result_tag">;
782
+ value: z.ZodString;
783
+ }, z.core.$strip>], "type">;
784
+ }, z.core.$strip>>>;
785
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
786
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
787
+ name: z.ZodString;
788
+ seed: z.ZodOptional<z.ZodObject<{
789
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
790
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
791
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
792
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
793
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
794
+ operator: z.ZodDefault<z.ZodEnum<{
795
+ equals: "equals";
796
+ greater_than: "greater_than";
797
+ less_than: "less_than";
798
+ contains: "contains";
799
+ does_not_contain: "does_not_contain";
800
+ after: "after";
801
+ anything: "anything";
802
+ before: "before";
803
+ contains_any: "contains_any";
804
+ does_not_contain_any: "does_not_contain_any";
805
+ does_not_equal: "does_not_equal";
806
+ }>>;
807
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
808
+ type: z.ZodDefault<z.ZodEnum<{
809
+ product: "product";
810
+ date: "date";
811
+ cart: "cart";
812
+ cart_count: "cart_count";
813
+ cart_item_count: "cart_item_count";
814
+ cart_line_count: "cart_line_count";
815
+ cart_subtotal: "cart_subtotal";
816
+ collection: "collection";
817
+ customer: "customer";
818
+ customer_order_count: "customer_order_count";
819
+ customer_tag: "customer_tag";
820
+ customer_total_spent: "customer_total_spent";
821
+ product_tag: "product_tag";
822
+ product_title: "product_title";
823
+ product_type: "product_type";
824
+ product_vendor: "product_vendor";
825
+ }>>;
826
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
827
+ }, z.core.$strip>>>;
828
+ }, z.core.$strip>>>;
829
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
830
+ key: z.ZodDefault<z.ZodString>;
831
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
832
+ value: z.ZodDefault<z.ZodString>;
833
+ }, z.core.$strip>>>;
834
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
835
+ exitIfMatched: boolean;
836
+ logic: {
837
+ rules: {
838
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
839
+ products: never[] | unknown[];
840
+ 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";
841
+ value: string;
842
+ }[];
843
+ }[];
844
+ output: {
845
+ key: string;
846
+ type: "data_json";
847
+ value: string;
848
+ }[];
849
+ }[], Record<string, never>>>]>>;
850
+ }, z.core.$strip>>;
851
+ }, z.core.$strip>, z.ZodTransform<{
852
+ name: string;
853
+ seed?: {
854
+ dataSourceId: number | null;
855
+ ruleset: {
856
+ exitIfMatched: boolean;
857
+ logic: {
858
+ rules: {
859
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
860
+ products: never[] | unknown[];
861
+ 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";
862
+ value: string;
863
+ }[];
864
+ }[];
865
+ output: {
866
+ key: string;
867
+ type: "data_json";
868
+ value: string;
869
+ }[];
870
+ }[];
871
+ } | undefined;
872
+ defaultValue: boolean;
873
+ }, {
874
+ name: string;
875
+ defaultValue?: boolean | undefined;
876
+ seed?: {
877
+ dataSourceId: number | null;
878
+ ruleset: {
879
+ exitIfMatched: boolean;
880
+ logic: {
881
+ rules: {
882
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
883
+ products: never[] | unknown[];
884
+ 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";
885
+ value: string;
886
+ }[];
887
+ }[];
888
+ output: {
889
+ key: string;
890
+ type: "data_json";
891
+ value: string;
892
+ }[];
893
+ }[];
894
+ } | undefined;
895
+ }>>>>;
896
+ visibility: z.ZodOptional<z.ZodObject<{
897
+ variable: z.ZodString;
898
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
899
+ }, z.core.$strip>>;
609
900
  editorMode: z.ZodDefault<z.ZodEnum<{
610
901
  checkoutExtension: "checkoutExtension";
611
902
  postPurchaseOffer: "postPurchaseOffer";