@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.
- package/dist/index.cjs +740 -647
- package/dist/index.mjs +740 -647
- package/dist/schema/checkout-and-beyond/constants.cjs +16 -0
- package/dist/schema/checkout-and-beyond/constants.mjs +16 -0
- package/dist/schema/checkout-and-beyond/index.cjs +454 -362
- package/dist/schema/checkout-and-beyond/index.mjs +454 -362
- package/dist/schema/widget-data.cjs +508 -435
- package/dist/schema/widget-data.mjs +508 -435
- package/dist/schema/widgetData.d.ts +438 -147
- package/dist/schema/widgets/checkout-and-beyond/banner.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/button.d.ts +154 -49
- package/dist/schema/widgets/checkout-and-beyond/carousel.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/cartLine.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/common.d.ts +29 -0
- package/dist/schema/widgets/checkout-and-beyond/discount.d.ts +146 -0
- package/dist/schema/widgets/checkout-and-beyond/icons.d.ts +1 -1
- package/dist/schema/widgets/checkout-and-beyond/image.d.ts +294 -100
- package/dist/schema/widgets/checkout-and-beyond/index.d.ts +1 -0
- package/dist/schema/widgets/checkout-and-beyond/layout.d.ts +148 -52
- package/dist/schema/widgets/checkout-and-beyond/monetize.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/offers.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/product.d.ts +146 -0
- package/dist/schema/widgets/checkout-and-beyond/products.d.ts +292 -0
- package/dist/schema/widgets/checkout-and-beyond/progressBar.d.ts +145 -48
- package/dist/schema/widgets/checkout-and-beyond/quantity.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/reviews.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/root.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/rule.d.ts +140 -68
- package/dist/schema/widgets/checkout-and-beyond/text.d.ts +146 -49
- package/dist/schema/widgets/checkout-and-beyond/variables.d.ts +470 -0
- package/dist/schema/widgets/checkout-and-beyond/variants.d.ts +146 -49
- package/dist/schema/widgets/contentBlock.d.ts +146 -49
- package/dist/schema/widgets/lineItemEditor.d.ts +146 -49
- package/dist/schema/widgets/rebuyButton.d.ts +146 -49
- package/dist/server/index.cjs +492 -416
- package/dist/server/index.mjs +492 -416
- package/dist/transforms/index.cjs +393 -317
- package/dist/transforms/index.mjs +393 -317
- package/dist/transforms/monetizeV1/convertMonetizeToV2.d.ts +2 -2
- package/package.json +1 -1
|
@@ -53,56 +53,153 @@ export declare const CABCartLineSection: z.ZodLazy<z.ZodObject<{
|
|
|
53
53
|
switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
|
|
54
54
|
switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
|
|
55
55
|
}>>;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
56
|
+
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
57
|
+
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
+
effect: z.ZodDefault<z.ZodEnum<{
|
|
59
|
+
set_false: "set_false";
|
|
60
|
+
set_true: "set_true";
|
|
61
|
+
toggle: "toggle";
|
|
62
|
+
}>>;
|
|
63
|
+
variable: z.ZodString;
|
|
64
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
65
|
+
event: z.ZodEnum<{
|
|
66
|
+
item_added: "item_added";
|
|
67
|
+
quantity_changed: "quantity_changed";
|
|
68
|
+
variant_selected: "variant_selected";
|
|
69
|
+
}>;
|
|
70
|
+
type: z.ZodLiteral<"event">;
|
|
71
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
72
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
73
|
+
equals: "equals";
|
|
74
|
+
greater_than: "greater_than";
|
|
75
|
+
less_than: "less_than";
|
|
76
|
+
}>>;
|
|
77
|
+
type: z.ZodLiteral<"result_count">;
|
|
78
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
81
|
+
contains: "contains";
|
|
82
|
+
does_not_contain: "does_not_contain";
|
|
83
|
+
}>>;
|
|
84
|
+
type: z.ZodLiteral<"result_tag">;
|
|
85
|
+
value: z.ZodString;
|
|
86
|
+
}, z.core.$strip>], "type">;
|
|
87
|
+
}, z.core.$strip>>>;
|
|
88
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
89
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
seed: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
93
|
+
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
94
|
+
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
96
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
97
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
98
|
+
equals: "equals";
|
|
99
|
+
greater_than: "greater_than";
|
|
100
|
+
less_than: "less_than";
|
|
101
|
+
contains: "contains";
|
|
102
|
+
does_not_contain: "does_not_contain";
|
|
103
|
+
after: "after";
|
|
104
|
+
anything: "anything";
|
|
105
|
+
before: "before";
|
|
106
|
+
contains_any: "contains_any";
|
|
107
|
+
does_not_contain_any: "does_not_contain_any";
|
|
108
|
+
does_not_equal: "does_not_equal";
|
|
109
|
+
}>>;
|
|
110
|
+
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
111
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
112
|
+
product: "product";
|
|
113
|
+
date: "date";
|
|
114
|
+
cart: "cart";
|
|
115
|
+
cart_count: "cart_count";
|
|
116
|
+
cart_item_count: "cart_item_count";
|
|
117
|
+
cart_line_count: "cart_line_count";
|
|
118
|
+
cart_subtotal: "cart_subtotal";
|
|
119
|
+
collection: "collection";
|
|
120
|
+
customer: "customer";
|
|
121
|
+
customer_order_count: "customer_order_count";
|
|
122
|
+
customer_tag: "customer_tag";
|
|
123
|
+
customer_total_spent: "customer_total_spent";
|
|
124
|
+
product_tag: "product_tag";
|
|
125
|
+
product_title: "product_title";
|
|
126
|
+
product_type: "product_type";
|
|
127
|
+
product_vendor: "product_vendor";
|
|
128
|
+
}>>;
|
|
129
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
130
|
+
}, z.core.$strip>>>;
|
|
96
131
|
}, z.core.$strip>>>;
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}, z.core.$strip
|
|
103
|
-
|
|
132
|
+
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
133
|
+
key: z.ZodDefault<z.ZodString>;
|
|
134
|
+
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
135
|
+
value: z.ZodDefault<z.ZodString>;
|
|
136
|
+
}, z.core.$strip>>>;
|
|
137
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
|
|
138
|
+
exitIfMatched: boolean;
|
|
139
|
+
logic: {
|
|
140
|
+
rules: {
|
|
141
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
142
|
+
products: never[] | unknown[];
|
|
143
|
+
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";
|
|
144
|
+
value: string;
|
|
145
|
+
}[];
|
|
146
|
+
}[];
|
|
147
|
+
output: {
|
|
148
|
+
key: string;
|
|
149
|
+
type: "data_json";
|
|
150
|
+
value: string;
|
|
151
|
+
}[];
|
|
152
|
+
}[], Record<string, never>>>]>>;
|
|
153
|
+
}, z.core.$strip>>;
|
|
154
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
155
|
+
name: string;
|
|
156
|
+
seed?: {
|
|
157
|
+
dataSourceId: number | null;
|
|
158
|
+
ruleset: {
|
|
159
|
+
exitIfMatched: boolean;
|
|
160
|
+
logic: {
|
|
161
|
+
rules: {
|
|
162
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
163
|
+
products: never[] | unknown[];
|
|
164
|
+
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";
|
|
165
|
+
value: string;
|
|
166
|
+
}[];
|
|
167
|
+
}[];
|
|
168
|
+
output: {
|
|
169
|
+
key: string;
|
|
170
|
+
type: "data_json";
|
|
171
|
+
value: string;
|
|
172
|
+
}[];
|
|
173
|
+
}[];
|
|
174
|
+
} | undefined;
|
|
175
|
+
defaultValue: boolean;
|
|
176
|
+
}, {
|
|
177
|
+
name: string;
|
|
178
|
+
defaultValue?: boolean | undefined;
|
|
179
|
+
seed?: {
|
|
180
|
+
dataSourceId: number | null;
|
|
181
|
+
ruleset: {
|
|
182
|
+
exitIfMatched: boolean;
|
|
183
|
+
logic: {
|
|
184
|
+
rules: {
|
|
185
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
186
|
+
products: never[] | unknown[];
|
|
187
|
+
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";
|
|
188
|
+
value: string;
|
|
189
|
+
}[];
|
|
190
|
+
}[];
|
|
191
|
+
output: {
|
|
192
|
+
key: string;
|
|
193
|
+
type: "data_json";
|
|
194
|
+
value: string;
|
|
195
|
+
}[];
|
|
196
|
+
}[];
|
|
197
|
+
} | undefined;
|
|
198
|
+
}>>>>;
|
|
199
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
200
|
+
variable: z.ZodString;
|
|
201
|
+
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
104
202
|
}, z.core.$strip>>;
|
|
105
|
-
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
106
203
|
alignment: z.ZodDefault<z.ZodObject<{
|
|
107
204
|
horizontal: z.ZodDefault<z.ZodEnum<{
|
|
108
205
|
start: "start";
|
|
@@ -165,6 +165,14 @@ export declare const LanguageKey: {
|
|
|
165
165
|
readonly zh: "zh";
|
|
166
166
|
};
|
|
167
167
|
export type LanguageKey = (typeof languageKeys)[number];
|
|
168
|
+
/** Runtime cart/order events a variable mutator can fire on (the events phase of REB-22472). */
|
|
169
|
+
export declare const mutatorEvents: readonly ["item_added", "quantity_changed", "variant_selected"];
|
|
170
|
+
export declare const MutatorEvent: {
|
|
171
|
+
readonly item_added: "item_added";
|
|
172
|
+
readonly quantity_changed: "quantity_changed";
|
|
173
|
+
readonly variant_selected: "variant_selected";
|
|
174
|
+
};
|
|
175
|
+
export type MutatorEvent = (typeof mutatorEvents)[number];
|
|
168
176
|
export declare const objectFits: readonly ["cover", "contain"];
|
|
169
177
|
export declare const ObjectFit: {
|
|
170
178
|
readonly cover: "cover";
|
|
@@ -212,6 +220,19 @@ export declare const QuantityInput: {
|
|
|
212
220
|
readonly select: "select";
|
|
213
221
|
};
|
|
214
222
|
export type QuantityInput = (typeof quantityInputs)[number];
|
|
223
|
+
export declare const resultCountOperators: readonly ["equals", "greater_than", "less_than"];
|
|
224
|
+
export declare const ResultCountOperator: {
|
|
225
|
+
readonly equals: "equals";
|
|
226
|
+
readonly greater_than: "greater_than";
|
|
227
|
+
readonly less_than: "less_than";
|
|
228
|
+
};
|
|
229
|
+
export type ResultCountOperator = (typeof resultCountOperators)[number];
|
|
230
|
+
export declare const resultTagOperators: readonly ["contains", "does_not_contain"];
|
|
231
|
+
export declare const ResultTagOperator: {
|
|
232
|
+
readonly contains: "contains";
|
|
233
|
+
readonly does_not_contain: "does_not_contain";
|
|
234
|
+
};
|
|
235
|
+
export type ResultTagOperator = (typeof resultTagOperators)[number];
|
|
215
236
|
export declare const reviewsSizes: readonly ["small", "default", "large"];
|
|
216
237
|
export declare const ReviewsSize: {
|
|
217
238
|
readonly small: "small";
|
|
@@ -296,6 +317,14 @@ export declare const TextSizeName: {
|
|
|
296
317
|
readonly heading: "heading";
|
|
297
318
|
};
|
|
298
319
|
export type TextSizeName = (typeof textSizeNames)[number];
|
|
320
|
+
/** How a setter writes a variable (button secondary effects, mutators) — REB-22472's variables runtime. */
|
|
321
|
+
export declare const variableEffects: readonly ["set_false", "set_true", "toggle"];
|
|
322
|
+
export declare const VariableEffect: {
|
|
323
|
+
readonly set_false: "set_false";
|
|
324
|
+
readonly set_true: "set_true";
|
|
325
|
+
readonly toggle: "toggle";
|
|
326
|
+
};
|
|
327
|
+
export type VariableEffect = (typeof variableEffects)[number];
|
|
299
328
|
export declare const variantModes: readonly ["multiple", "single"];
|
|
300
329
|
export declare const VariantMode: {
|
|
301
330
|
readonly multiple: "multiple";
|
|
@@ -24,6 +24,152 @@ export declare const CABDiscountSection: z.ZodObject<{
|
|
|
24
24
|
percentage: "percentage";
|
|
25
25
|
fixed_amount: "fixed_amount";
|
|
26
26
|
}>>;
|
|
27
|
+
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
28
|
+
effect: z.ZodDefault<z.ZodEnum<{
|
|
29
|
+
set_false: "set_false";
|
|
30
|
+
set_true: "set_true";
|
|
31
|
+
toggle: "toggle";
|
|
32
|
+
}>>;
|
|
33
|
+
variable: z.ZodString;
|
|
34
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
35
|
+
event: z.ZodEnum<{
|
|
36
|
+
item_added: "item_added";
|
|
37
|
+
quantity_changed: "quantity_changed";
|
|
38
|
+
variant_selected: "variant_selected";
|
|
39
|
+
}>;
|
|
40
|
+
type: z.ZodLiteral<"event">;
|
|
41
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
42
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
43
|
+
equals: "equals";
|
|
44
|
+
greater_than: "greater_than";
|
|
45
|
+
less_than: "less_than";
|
|
46
|
+
}>>;
|
|
47
|
+
type: z.ZodLiteral<"result_count">;
|
|
48
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
51
|
+
contains: "contains";
|
|
52
|
+
does_not_contain: "does_not_contain";
|
|
53
|
+
}>>;
|
|
54
|
+
type: z.ZodLiteral<"result_tag">;
|
|
55
|
+
value: z.ZodString;
|
|
56
|
+
}, z.core.$strip>], "type">;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
59
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
seed: z.ZodOptional<z.ZodObject<{
|
|
62
|
+
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
63
|
+
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
64
|
+
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
+
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
66
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
67
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
68
|
+
equals: "equals";
|
|
69
|
+
greater_than: "greater_than";
|
|
70
|
+
less_than: "less_than";
|
|
71
|
+
contains: "contains";
|
|
72
|
+
does_not_contain: "does_not_contain";
|
|
73
|
+
after: "after";
|
|
74
|
+
anything: "anything";
|
|
75
|
+
before: "before";
|
|
76
|
+
contains_any: "contains_any";
|
|
77
|
+
does_not_contain_any: "does_not_contain_any";
|
|
78
|
+
does_not_equal: "does_not_equal";
|
|
79
|
+
}>>;
|
|
80
|
+
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
81
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
82
|
+
product: "product";
|
|
83
|
+
date: "date";
|
|
84
|
+
cart: "cart";
|
|
85
|
+
cart_count: "cart_count";
|
|
86
|
+
cart_item_count: "cart_item_count";
|
|
87
|
+
cart_line_count: "cart_line_count";
|
|
88
|
+
cart_subtotal: "cart_subtotal";
|
|
89
|
+
collection: "collection";
|
|
90
|
+
customer: "customer";
|
|
91
|
+
customer_order_count: "customer_order_count";
|
|
92
|
+
customer_tag: "customer_tag";
|
|
93
|
+
customer_total_spent: "customer_total_spent";
|
|
94
|
+
product_tag: "product_tag";
|
|
95
|
+
product_title: "product_title";
|
|
96
|
+
product_type: "product_type";
|
|
97
|
+
product_vendor: "product_vendor";
|
|
98
|
+
}>>;
|
|
99
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
100
|
+
}, z.core.$strip>>>;
|
|
101
|
+
}, z.core.$strip>>>;
|
|
102
|
+
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
103
|
+
key: z.ZodDefault<z.ZodString>;
|
|
104
|
+
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
105
|
+
value: z.ZodDefault<z.ZodString>;
|
|
106
|
+
}, z.core.$strip>>>;
|
|
107
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
|
|
108
|
+
exitIfMatched: boolean;
|
|
109
|
+
logic: {
|
|
110
|
+
rules: {
|
|
111
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
112
|
+
products: never[] | unknown[];
|
|
113
|
+
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";
|
|
114
|
+
value: string;
|
|
115
|
+
}[];
|
|
116
|
+
}[];
|
|
117
|
+
output: {
|
|
118
|
+
key: string;
|
|
119
|
+
type: "data_json";
|
|
120
|
+
value: string;
|
|
121
|
+
}[];
|
|
122
|
+
}[], Record<string, never>>>]>>;
|
|
123
|
+
}, z.core.$strip>>;
|
|
124
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
125
|
+
name: string;
|
|
126
|
+
seed?: {
|
|
127
|
+
dataSourceId: number | null;
|
|
128
|
+
ruleset: {
|
|
129
|
+
exitIfMatched: boolean;
|
|
130
|
+
logic: {
|
|
131
|
+
rules: {
|
|
132
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
133
|
+
products: never[] | unknown[];
|
|
134
|
+
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";
|
|
135
|
+
value: string;
|
|
136
|
+
}[];
|
|
137
|
+
}[];
|
|
138
|
+
output: {
|
|
139
|
+
key: string;
|
|
140
|
+
type: "data_json";
|
|
141
|
+
value: string;
|
|
142
|
+
}[];
|
|
143
|
+
}[];
|
|
144
|
+
} | undefined;
|
|
145
|
+
defaultValue: boolean;
|
|
146
|
+
}, {
|
|
147
|
+
name: string;
|
|
148
|
+
defaultValue?: boolean | undefined;
|
|
149
|
+
seed?: {
|
|
150
|
+
dataSourceId: number | null;
|
|
151
|
+
ruleset: {
|
|
152
|
+
exitIfMatched: boolean;
|
|
153
|
+
logic: {
|
|
154
|
+
rules: {
|
|
155
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
156
|
+
products: never[] | unknown[];
|
|
157
|
+
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";
|
|
158
|
+
value: string;
|
|
159
|
+
}[];
|
|
160
|
+
}[];
|
|
161
|
+
output: {
|
|
162
|
+
key: string;
|
|
163
|
+
type: "data_json";
|
|
164
|
+
value: string;
|
|
165
|
+
}[];
|
|
166
|
+
}[];
|
|
167
|
+
} | undefined;
|
|
168
|
+
}>>>>;
|
|
169
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
170
|
+
variable: z.ZodString;
|
|
171
|
+
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
172
|
+
}, z.core.$strip>>;
|
|
27
173
|
}, z.core.$strip>;
|
|
28
174
|
export type CABDiscountSection = z.infer<typeof CABDiscountSection>;
|
|
29
175
|
export type CABDiscountSectionProps = CABDiscountSection & SectionDetails;
|
|
@@ -23,7 +23,6 @@ export declare const IconName: {
|
|
|
23
23
|
readonly info: "info";
|
|
24
24
|
readonly grid: "grid";
|
|
25
25
|
readonly menu: "menu";
|
|
26
|
-
readonly cart: "cart";
|
|
27
26
|
readonly "alert-circle": "alert-circle";
|
|
28
27
|
readonly "alert-triangle": "alert-triangle";
|
|
29
28
|
readonly "alert-triangle-filled": "alert-triangle-filled";
|
|
@@ -37,6 +36,7 @@ export declare const IconName: {
|
|
|
37
36
|
readonly calendar: "calendar";
|
|
38
37
|
readonly camera: "camera";
|
|
39
38
|
readonly "caret-down": "caret-down";
|
|
39
|
+
readonly cart: "cart";
|
|
40
40
|
readonly "cash-dollar": "cash-dollar";
|
|
41
41
|
readonly categories: "categories";
|
|
42
42
|
readonly "check-circle": "check-circle";
|