@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
@@ -89,56 +89,153 @@ export declare const CABProgressBarSection: z.ZodLazy<z.ZodObject<{
89
89
  switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
90
90
  switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
91
91
  }>>;
92
- rule: z.ZodOptional<z.ZodObject<{
93
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
94
- enabled: z.ZodDefault<z.ZodBoolean>;
95
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
96
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
97
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
98
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
99
- operator: z.ZodDefault<z.ZodEnum<{
100
- after: "after";
101
- anything: "anything";
102
- before: "before";
103
- contains: "contains";
104
- contains_any: "contains_any";
105
- does_not_contain: "does_not_contain";
106
- does_not_contain_any: "does_not_contain_any";
107
- equals: "equals";
108
- does_not_equal: "does_not_equal";
109
- greater_than: "greater_than";
110
- less_than: "less_than";
111
- }>>;
112
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
113
- type: z.ZodDefault<z.ZodEnum<{
114
- product: "product";
115
- date: "date";
116
- cart: "cart";
117
- cart_count: "cart_count";
118
- cart_item_count: "cart_item_count";
119
- cart_line_count: "cart_line_count";
120
- cart_subtotal: "cart_subtotal";
121
- collection: "collection";
122
- customer: "customer";
123
- customer_order_count: "customer_order_count";
124
- customer_tag: "customer_tag";
125
- customer_total_spent: "customer_total_spent";
126
- product_tag: "product_tag";
127
- product_title: "product_title";
128
- product_type: "product_type";
129
- product_vendor: "product_vendor";
130
- }>>;
131
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
92
+ sectionId: z.ZodDefault<z.ZodUUID>;
93
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
94
+ effect: z.ZodDefault<z.ZodEnum<{
95
+ set_false: "set_false";
96
+ set_true: "set_true";
97
+ toggle: "toggle";
98
+ }>>;
99
+ variable: z.ZodString;
100
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
101
+ event: z.ZodEnum<{
102
+ item_added: "item_added";
103
+ quantity_changed: "quantity_changed";
104
+ variant_selected: "variant_selected";
105
+ }>;
106
+ type: z.ZodLiteral<"event">;
107
+ }, z.core.$strip>, z.ZodObject<{
108
+ operator: z.ZodDefault<z.ZodEnum<{
109
+ equals: "equals";
110
+ greater_than: "greater_than";
111
+ less_than: "less_than";
112
+ }>>;
113
+ type: z.ZodLiteral<"result_count">;
114
+ value: z.ZodDefault<z.ZodNumber>;
115
+ }, z.core.$strip>, z.ZodObject<{
116
+ operator: z.ZodDefault<z.ZodEnum<{
117
+ contains: "contains";
118
+ does_not_contain: "does_not_contain";
119
+ }>>;
120
+ type: z.ZodLiteral<"result_tag">;
121
+ value: z.ZodString;
122
+ }, z.core.$strip>], "type">;
123
+ }, z.core.$strip>>>;
124
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
125
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
126
+ name: z.ZodString;
127
+ seed: z.ZodOptional<z.ZodObject<{
128
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
129
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
130
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
131
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
132
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
133
+ operator: z.ZodDefault<z.ZodEnum<{
134
+ equals: "equals";
135
+ greater_than: "greater_than";
136
+ less_than: "less_than";
137
+ contains: "contains";
138
+ does_not_contain: "does_not_contain";
139
+ after: "after";
140
+ anything: "anything";
141
+ before: "before";
142
+ contains_any: "contains_any";
143
+ does_not_contain_any: "does_not_contain_any";
144
+ does_not_equal: "does_not_equal";
145
+ }>>;
146
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
147
+ type: z.ZodDefault<z.ZodEnum<{
148
+ product: "product";
149
+ date: "date";
150
+ cart: "cart";
151
+ cart_count: "cart_count";
152
+ cart_item_count: "cart_item_count";
153
+ cart_line_count: "cart_line_count";
154
+ cart_subtotal: "cart_subtotal";
155
+ collection: "collection";
156
+ customer: "customer";
157
+ customer_order_count: "customer_order_count";
158
+ customer_tag: "customer_tag";
159
+ customer_total_spent: "customer_total_spent";
160
+ product_tag: "product_tag";
161
+ product_title: "product_title";
162
+ product_type: "product_type";
163
+ product_vendor: "product_vendor";
164
+ }>>;
165
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
166
+ }, z.core.$strip>>>;
132
167
  }, z.core.$strip>>>;
133
- }, z.core.$strip>>>;
134
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
135
- key: z.ZodDefault<z.ZodString>;
136
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
137
- value: z.ZodDefault<z.ZodString>;
138
- }, z.core.$strip>>>;
139
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
168
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
169
+ key: z.ZodDefault<z.ZodString>;
170
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
171
+ value: z.ZodDefault<z.ZodString>;
172
+ }, z.core.$strip>>>;
173
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
174
+ exitIfMatched: boolean;
175
+ logic: {
176
+ rules: {
177
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
178
+ products: never[] | unknown[];
179
+ 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";
180
+ value: string;
181
+ }[];
182
+ }[];
183
+ output: {
184
+ key: string;
185
+ type: "data_json";
186
+ value: string;
187
+ }[];
188
+ }[], Record<string, never>>>]>>;
189
+ }, z.core.$strip>>;
190
+ }, z.core.$strip>, z.ZodTransform<{
191
+ name: string;
192
+ seed?: {
193
+ dataSourceId: number | null;
194
+ ruleset: {
195
+ exitIfMatched: boolean;
196
+ logic: {
197
+ rules: {
198
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
199
+ products: never[] | unknown[];
200
+ 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";
201
+ value: string;
202
+ }[];
203
+ }[];
204
+ output: {
205
+ key: string;
206
+ type: "data_json";
207
+ value: string;
208
+ }[];
209
+ }[];
210
+ } | undefined;
211
+ defaultValue: boolean;
212
+ }, {
213
+ name: string;
214
+ defaultValue?: boolean | undefined;
215
+ seed?: {
216
+ dataSourceId: number | null;
217
+ ruleset: {
218
+ exitIfMatched: boolean;
219
+ logic: {
220
+ rules: {
221
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
222
+ products: never[] | unknown[];
223
+ 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";
224
+ value: string;
225
+ }[];
226
+ }[];
227
+ output: {
228
+ key: string;
229
+ type: "data_json";
230
+ value: string;
231
+ }[];
232
+ }[];
233
+ } | undefined;
234
+ }>>>>;
235
+ visibility: z.ZodOptional<z.ZodObject<{
236
+ variable: z.ZodString;
237
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
140
238
  }, z.core.$strip>>;
141
- sectionId: z.ZodDefault<z.ZodUUID>;
142
239
  alignment: z.ZodDefault<z.ZodObject<{
143
240
  horizontal: z.ZodDefault<z.ZodEnum<{
144
241
  start: "start";
@@ -14,57 +14,154 @@ export declare const CABQuantitySection: z.ZodObject<{
14
14
  max: z.ZodDefault<z.ZodNumber>;
15
15
  min: z.ZodDefault<z.ZodNumber>;
16
16
  name: z.ZodDefault<z.ZodString>;
17
- rule: z.ZodOptional<z.ZodObject<{
18
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
19
- enabled: z.ZodDefault<z.ZodBoolean>;
20
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
21
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
22
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
23
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
24
- operator: z.ZodDefault<z.ZodEnum<{
25
- after: "after";
26
- anything: "anything";
27
- before: "before";
28
- contains: "contains";
29
- contains_any: "contains_any";
30
- does_not_contain: "does_not_contain";
31
- does_not_contain_any: "does_not_contain_any";
32
- equals: "equals";
33
- does_not_equal: "does_not_equal";
34
- greater_than: "greater_than";
35
- less_than: "less_than";
36
- }>>;
37
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
38
- type: z.ZodDefault<z.ZodEnum<{
39
- product: "product";
40
- date: "date";
41
- cart: "cart";
42
- cart_count: "cart_count";
43
- cart_item_count: "cart_item_count";
44
- cart_line_count: "cart_line_count";
45
- cart_subtotal: "cart_subtotal";
46
- collection: "collection";
47
- customer: "customer";
48
- customer_order_count: "customer_order_count";
49
- customer_tag: "customer_tag";
50
- customer_total_spent: "customer_total_spent";
51
- product_tag: "product_tag";
52
- product_title: "product_title";
53
- product_type: "product_type";
54
- product_vendor: "product_vendor";
55
- }>>;
56
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
57
- }, z.core.$strip>>>;
58
- }, z.core.$strip>>>;
59
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
60
- key: z.ZodDefault<z.ZodString>;
61
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
62
- value: z.ZodDefault<z.ZodString>;
63
- }, z.core.$strip>>>;
64
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
65
- }, z.core.$strip>>;
66
17
  sectionId: z.ZodDefault<z.ZodUUID>;
67
18
  sectionType: z.ZodDefault<z.ZodLiteral<"quantity">>;
19
+ mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ effect: z.ZodDefault<z.ZodEnum<{
21
+ set_false: "set_false";
22
+ set_true: "set_true";
23
+ toggle: "toggle";
24
+ }>>;
25
+ variable: z.ZodString;
26
+ when: z.ZodDiscriminatedUnion<[z.ZodObject<{
27
+ event: z.ZodEnum<{
28
+ item_added: "item_added";
29
+ quantity_changed: "quantity_changed";
30
+ variant_selected: "variant_selected";
31
+ }>;
32
+ type: z.ZodLiteral<"event">;
33
+ }, z.core.$strip>, z.ZodObject<{
34
+ operator: z.ZodDefault<z.ZodEnum<{
35
+ equals: "equals";
36
+ greater_than: "greater_than";
37
+ less_than: "less_than";
38
+ }>>;
39
+ type: z.ZodLiteral<"result_count">;
40
+ value: z.ZodDefault<z.ZodNumber>;
41
+ }, z.core.$strip>, z.ZodObject<{
42
+ operator: z.ZodDefault<z.ZodEnum<{
43
+ contains: "contains";
44
+ does_not_contain: "does_not_contain";
45
+ }>>;
46
+ type: z.ZodLiteral<"result_tag">;
47
+ value: z.ZodString;
48
+ }, z.core.$strip>], "type">;
49
+ }, z.core.$strip>>>;
50
+ variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
51
+ defaultValue: z.ZodOptional<z.ZodBoolean>;
52
+ name: z.ZodString;
53
+ seed: z.ZodOptional<z.ZodObject<{
54
+ dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
55
+ ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
56
+ exitIfMatched: z.ZodDefault<z.ZodBoolean>;
57
+ logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
58
+ rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
59
+ operator: z.ZodDefault<z.ZodEnum<{
60
+ equals: "equals";
61
+ greater_than: "greater_than";
62
+ less_than: "less_than";
63
+ contains: "contains";
64
+ does_not_contain: "does_not_contain";
65
+ after: "after";
66
+ anything: "anything";
67
+ before: "before";
68
+ contains_any: "contains_any";
69
+ does_not_contain_any: "does_not_contain_any";
70
+ does_not_equal: "does_not_equal";
71
+ }>>;
72
+ products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
73
+ type: z.ZodDefault<z.ZodEnum<{
74
+ product: "product";
75
+ date: "date";
76
+ cart: "cart";
77
+ cart_count: "cart_count";
78
+ cart_item_count: "cart_item_count";
79
+ cart_line_count: "cart_line_count";
80
+ cart_subtotal: "cart_subtotal";
81
+ collection: "collection";
82
+ customer: "customer";
83
+ customer_order_count: "customer_order_count";
84
+ customer_tag: "customer_tag";
85
+ customer_total_spent: "customer_total_spent";
86
+ product_tag: "product_tag";
87
+ product_title: "product_title";
88
+ product_type: "product_type";
89
+ product_vendor: "product_vendor";
90
+ }>>;
91
+ value: z.ZodDefault<z.ZodCoercedString<unknown>>;
92
+ }, z.core.$strip>>>;
93
+ }, z.core.$strip>>>;
94
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
95
+ key: z.ZodDefault<z.ZodString>;
96
+ type: z.ZodDefault<z.ZodLiteral<"data_json">>;
97
+ value: z.ZodDefault<z.ZodString>;
98
+ }, z.core.$strip>>>;
99
+ }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
100
+ exitIfMatched: boolean;
101
+ logic: {
102
+ rules: {
103
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
104
+ products: never[] | unknown[];
105
+ 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";
106
+ value: string;
107
+ }[];
108
+ }[];
109
+ output: {
110
+ key: string;
111
+ type: "data_json";
112
+ value: string;
113
+ }[];
114
+ }[], Record<string, never>>>]>>;
115
+ }, z.core.$strip>>;
116
+ }, z.core.$strip>, z.ZodTransform<{
117
+ name: string;
118
+ seed?: {
119
+ dataSourceId: number | null;
120
+ ruleset: {
121
+ exitIfMatched: boolean;
122
+ logic: {
123
+ rules: {
124
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
125
+ products: never[] | unknown[];
126
+ 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";
127
+ value: string;
128
+ }[];
129
+ }[];
130
+ output: {
131
+ key: string;
132
+ type: "data_json";
133
+ value: string;
134
+ }[];
135
+ }[];
136
+ } | undefined;
137
+ defaultValue: boolean;
138
+ }, {
139
+ name: string;
140
+ defaultValue?: boolean | undefined;
141
+ seed?: {
142
+ dataSourceId: number | null;
143
+ ruleset: {
144
+ exitIfMatched: boolean;
145
+ logic: {
146
+ rules: {
147
+ operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
148
+ products: never[] | unknown[];
149
+ 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";
150
+ value: string;
151
+ }[];
152
+ }[];
153
+ output: {
154
+ key: string;
155
+ type: "data_json";
156
+ value: string;
157
+ }[];
158
+ }[];
159
+ } | undefined;
160
+ }>>>>;
161
+ visibility: z.ZodOptional<z.ZodObject<{
162
+ variable: z.ZodString;
163
+ visibleWhen: z.ZodDefault<z.ZodBoolean>;
164
+ }, z.core.$strip>>;
68
165
  }, z.core.$strip>;
69
166
  export type CABQuantitySection = z.infer<typeof CABQuantitySection>;
70
167
  export type CABQuantitySectionProps = CABQuantitySection & SectionDetails;
@@ -7,55 +7,6 @@ export declare const CABReviewsSection: z.ZodObject<{
7
7
  other: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
8
8
  }, z.core.$strip>>;
9
9
  name: z.ZodOptional<z.ZodString>;
10
- rule: z.ZodOptional<z.ZodObject<{
11
- dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
12
- enabled: z.ZodDefault<z.ZodBoolean>;
13
- ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
14
- exitIfMatched: z.ZodDefault<z.ZodBoolean>;
15
- logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
16
- rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
17
- operator: z.ZodDefault<z.ZodEnum<{
18
- after: "after";
19
- anything: "anything";
20
- before: "before";
21
- contains: "contains";
22
- contains_any: "contains_any";
23
- does_not_contain: "does_not_contain";
24
- does_not_contain_any: "does_not_contain_any";
25
- equals: "equals";
26
- does_not_equal: "does_not_equal";
27
- greater_than: "greater_than";
28
- less_than: "less_than";
29
- }>>;
30
- products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
31
- type: z.ZodDefault<z.ZodEnum<{
32
- product: "product";
33
- date: "date";
34
- cart: "cart";
35
- cart_count: "cart_count";
36
- cart_item_count: "cart_item_count";
37
- cart_line_count: "cart_line_count";
38
- cart_subtotal: "cart_subtotal";
39
- collection: "collection";
40
- customer: "customer";
41
- customer_order_count: "customer_order_count";
42
- customer_tag: "customer_tag";
43
- customer_total_spent: "customer_total_spent";
44
- product_tag: "product_tag";
45
- product_title: "product_title";
46
- product_type: "product_type";
47
- product_vendor: "product_vendor";
48
- }>>;
49
- value: z.ZodDefault<z.ZodCoercedString<unknown>>;
50
- }, z.core.$strip>>>;
51
- }, z.core.$strip>>>;
52
- output: z.ZodDefault<z.ZodArray<z.ZodObject<{
53
- key: z.ZodDefault<z.ZodString>;
54
- type: z.ZodDefault<z.ZodLiteral<"data_json">>;
55
- value: z.ZodDefault<z.ZodString>;
56
- }, z.core.$strip>>>;
57
- }, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
58
- }, z.core.$strip>>;
59
10
  sectionId: z.ZodDefault<z.ZodUUID>;
60
11
  sectionType: z.ZodDefault<z.ZodLiteral<"reviews">>;
61
12
  size: z.ZodDefault<z.ZodEnum<{
@@ -63,6 +14,152 @@ export declare const CABReviewsSection: z.ZodObject<{
63
14
  default: "default";
64
15
  large: "large";
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 CABReviewsSection = z.infer<typeof CABReviewsSection>;
68
165
  export type CABReviewsSectionProps = CABReviewsSection & SectionDetails;