@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
@@ -19,6 +19,152 @@ export declare const CABProductSection: z.ZodObject<{
19
19
  multiple: "multiple";
20
20
  single: "single";
21
21
  }>>;
22
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
23
+ effect: z.ZodDefault<z.ZodEnum<{
24
+ set_false: "set_false";
25
+ set_true: "set_true";
26
+ toggle: "toggle";
27
+ }>>;
28
+ variable: z.ZodString;
29
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
30
+ event: z.ZodEnum<{
31
+ item_added: "item_added";
32
+ quantity_changed: "quantity_changed";
33
+ variant_selected: "variant_selected";
34
+ }>;
35
+ type: z.ZodLiteral<"event">;
36
+ }, z.core.$strip>, z.ZodObject<{
37
+ operator: z.ZodDefault<z.ZodEnum<{
38
+ equals: "equals";
39
+ greater_than: "greater_than";
40
+ less_than: "less_than";
41
+ }>>;
42
+ type: z.ZodLiteral<"result_count">;
43
+ value: z.ZodDefault<z.ZodNumber>;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ operator: z.ZodDefault<z.ZodEnum<{
46
+ contains: "contains";
47
+ does_not_contain: "does_not_contain";
48
+ }>>;
49
+ type: z.ZodLiteral<"result_tag">;
50
+ value: z.ZodString;
51
+ }, z.core.$strip>], "type">;
52
+ }, z.core.$strip>>>;
53
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
54
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
55
+ name: z.ZodString;
56
+ seed: z.ZodOptional<z.ZodObject<{
57
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
58
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
59
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
60
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
61
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
62
+ operator: z.ZodDefault<z.ZodEnum<{
63
+ equals: "equals";
64
+ greater_than: "greater_than";
65
+ less_than: "less_than";
66
+ contains: "contains";
67
+ does_not_contain: "does_not_contain";
68
+ after: "after";
69
+ anything: "anything";
70
+ before: "before";
71
+ contains_any: "contains_any";
72
+ does_not_contain_any: "does_not_contain_any";
73
+ does_not_equal: "does_not_equal";
74
+ }>>;
75
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
76
+ type: z.ZodDefault<z.ZodEnum<{
77
+ product: "product";
78
+ date: "date";
79
+ cart: "cart";
80
+ cart_count: "cart_count";
81
+ cart_item_count: "cart_item_count";
82
+ cart_line_count: "cart_line_count";
83
+ cart_subtotal: "cart_subtotal";
84
+ collection: "collection";
85
+ customer: "customer";
86
+ customer_order_count: "customer_order_count";
87
+ customer_tag: "customer_tag";
88
+ customer_total_spent: "customer_total_spent";
89
+ product_tag: "product_tag";
90
+ product_title: "product_title";
91
+ product_type: "product_type";
92
+ product_vendor: "product_vendor";
93
+ }>>;
94
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
95
+ }, z.core.$strip>>>;
96
+ }, z.core.$strip>>>;
97
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
98
+ key: z.ZodDefault<z.ZodString>;
99
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
100
+ value: z.ZodDefault<z.ZodString>;
101
+ }, z.core.$strip>>>;
102
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
103
+ exitIfMatched: boolean;
104
+ logic: {
105
+ rules: {
106
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
107
+ products: never[] | unknown[];
108
+ 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";
109
+ value: string;
110
+ }[];
111
+ }[];
112
+ output: {
113
+ key: string;
114
+ type: "data_json";
115
+ value: string;
116
+ }[];
117
+ }[], Record<string, never>>>]>>;
118
+ }, z.core.$strip>>;
119
+ }, z.core.$strip>, z.ZodTransform<{
120
+ name: string;
121
+ seed?: {
122
+ dataSourceId: number | null;
123
+ ruleset: {
124
+ exitIfMatched: boolean;
125
+ logic: {
126
+ rules: {
127
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
128
+ products: never[] | unknown[];
129
+ 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";
130
+ value: string;
131
+ }[];
132
+ }[];
133
+ output: {
134
+ key: string;
135
+ type: "data_json";
136
+ value: string;
137
+ }[];
138
+ }[];
139
+ } | undefined;
140
+ defaultValue: boolean;
141
+ }, {
142
+ name: string;
143
+ defaultValue?: boolean | undefined;
144
+ seed?: {
145
+ dataSourceId: number | null;
146
+ ruleset: {
147
+ exitIfMatched: boolean;
148
+ logic: {
149
+ rules: {
150
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
151
+ products: never[] | unknown[];
152
+ 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";
153
+ value: string;
154
+ }[];
155
+ }[];
156
+ output: {
157
+ key: string;
158
+ type: "data_json";
159
+ value: string;
160
+ }[];
161
+ }[];
162
+ } | undefined;
163
+ }>>>>;
164
+ visibility: z.ZodOptional<z.ZodObject<{
165
+ variable: z.ZodString;
166
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
167
+ }, z.core.$strip>>;
22
168
  }, z.core.$strip>;
23
169
  export type CABProductSection = z.infer<typeof CABProductSection>;
24
170
  export type CABProductSectionProps = CABProductSection & SectionDetails;
@@ -18,8 +18,300 @@ export declare const CABProductsSection: z.ZodObject<{
18
18
  multiple: "multiple";
19
19
  single: "single";
20
20
  }>>;
21
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ effect: z.ZodDefault<z.ZodEnum<{
23
+ set_false: "set_false";
24
+ set_true: "set_true";
25
+ toggle: "toggle";
26
+ }>>;
27
+ variable: z.ZodString;
28
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
29
+ event: z.ZodEnum<{
30
+ item_added: "item_added";
31
+ quantity_changed: "quantity_changed";
32
+ variant_selected: "variant_selected";
33
+ }>;
34
+ type: z.ZodLiteral<"event">;
35
+ }, z.core.$strip>, z.ZodObject<{
36
+ operator: z.ZodDefault<z.ZodEnum<{
37
+ equals: "equals";
38
+ greater_than: "greater_than";
39
+ less_than: "less_than";
40
+ }>>;
41
+ type: z.ZodLiteral<"result_count">;
42
+ value: z.ZodDefault<z.ZodNumber>;
43
+ }, z.core.$strip>, z.ZodObject<{
44
+ operator: z.ZodDefault<z.ZodEnum<{
45
+ contains: "contains";
46
+ does_not_contain: "does_not_contain";
47
+ }>>;
48
+ type: z.ZodLiteral<"result_tag">;
49
+ value: z.ZodString;
50
+ }, z.core.$strip>], "type">;
51
+ }, z.core.$strip>>>;
52
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
53
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
54
+ name: z.ZodString;
55
+ seed: z.ZodOptional<z.ZodObject<{
56
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
57
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
58
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
59
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
60
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
61
+ operator: z.ZodDefault<z.ZodEnum<{
62
+ equals: "equals";
63
+ greater_than: "greater_than";
64
+ less_than: "less_than";
65
+ contains: "contains";
66
+ does_not_contain: "does_not_contain";
67
+ after: "after";
68
+ anything: "anything";
69
+ before: "before";
70
+ contains_any: "contains_any";
71
+ does_not_contain_any: "does_not_contain_any";
72
+ does_not_equal: "does_not_equal";
73
+ }>>;
74
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
75
+ type: z.ZodDefault<z.ZodEnum<{
76
+ product: "product";
77
+ date: "date";
78
+ cart: "cart";
79
+ cart_count: "cart_count";
80
+ cart_item_count: "cart_item_count";
81
+ cart_line_count: "cart_line_count";
82
+ cart_subtotal: "cart_subtotal";
83
+ collection: "collection";
84
+ customer: "customer";
85
+ customer_order_count: "customer_order_count";
86
+ customer_tag: "customer_tag";
87
+ customer_total_spent: "customer_total_spent";
88
+ product_tag: "product_tag";
89
+ product_title: "product_title";
90
+ product_type: "product_type";
91
+ product_vendor: "product_vendor";
92
+ }>>;
93
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
94
+ }, z.core.$strip>>>;
95
+ }, z.core.$strip>>>;
96
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
97
+ key: z.ZodDefault<z.ZodString>;
98
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
99
+ value: z.ZodDefault<z.ZodString>;
100
+ }, z.core.$strip>>>;
101
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
102
+ exitIfMatched: boolean;
103
+ logic: {
104
+ rules: {
105
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
106
+ products: never[] | unknown[];
107
+ 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";
108
+ value: string;
109
+ }[];
110
+ }[];
111
+ output: {
112
+ key: string;
113
+ type: "data_json";
114
+ value: string;
115
+ }[];
116
+ }[], Record<string, never>>>]>>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>, z.ZodTransform<{
119
+ name: string;
120
+ seed?: {
121
+ dataSourceId: number | null;
122
+ ruleset: {
123
+ exitIfMatched: boolean;
124
+ logic: {
125
+ rules: {
126
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
127
+ products: never[] | unknown[];
128
+ 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";
129
+ value: string;
130
+ }[];
131
+ }[];
132
+ output: {
133
+ key: string;
134
+ type: "data_json";
135
+ value: string;
136
+ }[];
137
+ }[];
138
+ } | undefined;
139
+ defaultValue: boolean;
140
+ }, {
141
+ name: string;
142
+ defaultValue?: boolean | undefined;
143
+ seed?: {
144
+ dataSourceId: number | null;
145
+ ruleset: {
146
+ exitIfMatched: boolean;
147
+ logic: {
148
+ rules: {
149
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
150
+ products: never[] | unknown[];
151
+ 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";
152
+ value: string;
153
+ }[];
154
+ }[];
155
+ output: {
156
+ key: string;
157
+ type: "data_json";
158
+ value: string;
159
+ }[];
160
+ }[];
161
+ } | undefined;
162
+ }>>>>;
163
+ visibility: z.ZodOptional<z.ZodObject<{
164
+ variable: z.ZodString;
165
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
166
+ }, z.core.$strip>>;
21
167
  }, z.core.$strip>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
22
168
  sectionType: z.ZodDefault<z.ZodLiteral<"products">>;
169
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
170
+ effect: z.ZodDefault<z.ZodEnum<{
171
+ set_false: "set_false";
172
+ set_true: "set_true";
173
+ toggle: "toggle";
174
+ }>>;
175
+ variable: z.ZodString;
176
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
177
+ event: z.ZodEnum<{
178
+ item_added: "item_added";
179
+ quantity_changed: "quantity_changed";
180
+ variant_selected: "variant_selected";
181
+ }>;
182
+ type: z.ZodLiteral<"event">;
183
+ }, z.core.$strip>, z.ZodObject<{
184
+ operator: z.ZodDefault<z.ZodEnum<{
185
+ equals: "equals";
186
+ greater_than: "greater_than";
187
+ less_than: "less_than";
188
+ }>>;
189
+ type: z.ZodLiteral<"result_count">;
190
+ value: z.ZodDefault<z.ZodNumber>;
191
+ }, z.core.$strip>, z.ZodObject<{
192
+ operator: z.ZodDefault<z.ZodEnum<{
193
+ contains: "contains";
194
+ does_not_contain: "does_not_contain";
195
+ }>>;
196
+ type: z.ZodLiteral<"result_tag">;
197
+ value: z.ZodString;
198
+ }, z.core.$strip>], "type">;
199
+ }, z.core.$strip>>>;
200
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
201
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
202
+ name: z.ZodString;
203
+ seed: z.ZodOptional<z.ZodObject<{
204
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
205
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
206
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
207
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
208
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
209
+ operator: z.ZodDefault<z.ZodEnum<{
210
+ equals: "equals";
211
+ greater_than: "greater_than";
212
+ less_than: "less_than";
213
+ contains: "contains";
214
+ does_not_contain: "does_not_contain";
215
+ after: "after";
216
+ anything: "anything";
217
+ before: "before";
218
+ contains_any: "contains_any";
219
+ does_not_contain_any: "does_not_contain_any";
220
+ does_not_equal: "does_not_equal";
221
+ }>>;
222
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
223
+ type: z.ZodDefault<z.ZodEnum<{
224
+ product: "product";
225
+ date: "date";
226
+ cart: "cart";
227
+ cart_count: "cart_count";
228
+ cart_item_count: "cart_item_count";
229
+ cart_line_count: "cart_line_count";
230
+ cart_subtotal: "cart_subtotal";
231
+ collection: "collection";
232
+ customer: "customer";
233
+ customer_order_count: "customer_order_count";
234
+ customer_tag: "customer_tag";
235
+ customer_total_spent: "customer_total_spent";
236
+ product_tag: "product_tag";
237
+ product_title: "product_title";
238
+ product_type: "product_type";
239
+ product_vendor: "product_vendor";
240
+ }>>;
241
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
242
+ }, z.core.$strip>>>;
243
+ }, z.core.$strip>>>;
244
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
245
+ key: z.ZodDefault<z.ZodString>;
246
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
247
+ value: z.ZodDefault<z.ZodString>;
248
+ }, z.core.$strip>>>;
249
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
250
+ exitIfMatched: boolean;
251
+ logic: {
252
+ rules: {
253
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
254
+ products: never[] | unknown[];
255
+ 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";
256
+ value: string;
257
+ }[];
258
+ }[];
259
+ output: {
260
+ key: string;
261
+ type: "data_json";
262
+ value: string;
263
+ }[];
264
+ }[], Record<string, never>>>]>>;
265
+ }, z.core.$strip>>;
266
+ }, z.core.$strip>, z.ZodTransform<{
267
+ name: string;
268
+ seed?: {
269
+ dataSourceId: number | null;
270
+ ruleset: {
271
+ exitIfMatched: boolean;
272
+ logic: {
273
+ rules: {
274
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
275
+ products: never[] | unknown[];
276
+ 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";
277
+ value: string;
278
+ }[];
279
+ }[];
280
+ output: {
281
+ key: string;
282
+ type: "data_json";
283
+ value: string;
284
+ }[];
285
+ }[];
286
+ } | undefined;
287
+ defaultValue: boolean;
288
+ }, {
289
+ name: string;
290
+ defaultValue?: boolean | undefined;
291
+ seed?: {
292
+ dataSourceId: number | null;
293
+ ruleset: {
294
+ exitIfMatched: boolean;
295
+ logic: {
296
+ rules: {
297
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
298
+ products: never[] | unknown[];
299
+ 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";
300
+ value: string;
301
+ }[];
302
+ }[];
303
+ output: {
304
+ key: string;
305
+ type: "data_json";
306
+ value: string;
307
+ }[];
308
+ }[];
309
+ } | undefined;
310
+ }>>>>;
311
+ visibility: z.ZodOptional<z.ZodObject<{
312
+ variable: z.ZodString;
313
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
314
+ }, z.core.$strip>>;
23
315
  }, z.core.$strip>;
24
316
  export type CABProductsSection = z.infer<typeof CABProductsSection>;
25
317
  export type CABProductsSectionProps = CABProductsSection & SectionDetails;