@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
|
@@ -178,55 +178,6 @@ export declare const CABTextSection: z.ZodObject<{
|
|
|
178
178
|
}, z.core.$strip>]>>>>>;
|
|
179
179
|
name: z.ZodOptional<z.ZodString>;
|
|
180
180
|
optionId: z.ZodOptional<z.ZodNumber>;
|
|
181
|
-
rule: z.ZodOptional<z.ZodObject<{
|
|
182
|
-
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
183
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
184
|
-
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
185
|
-
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
186
|
-
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
187
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
188
|
-
operator: z.ZodDefault<z.ZodEnum<{
|
|
189
|
-
after: "after";
|
|
190
|
-
anything: "anything";
|
|
191
|
-
before: "before";
|
|
192
|
-
contains: "contains";
|
|
193
|
-
contains_any: "contains_any";
|
|
194
|
-
does_not_contain: "does_not_contain";
|
|
195
|
-
does_not_contain_any: "does_not_contain_any";
|
|
196
|
-
equals: "equals";
|
|
197
|
-
does_not_equal: "does_not_equal";
|
|
198
|
-
greater_than: "greater_than";
|
|
199
|
-
less_than: "less_than";
|
|
200
|
-
}>>;
|
|
201
|
-
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
202
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
203
|
-
product: "product";
|
|
204
|
-
date: "date";
|
|
205
|
-
cart: "cart";
|
|
206
|
-
cart_count: "cart_count";
|
|
207
|
-
cart_item_count: "cart_item_count";
|
|
208
|
-
cart_line_count: "cart_line_count";
|
|
209
|
-
cart_subtotal: "cart_subtotal";
|
|
210
|
-
collection: "collection";
|
|
211
|
-
customer: "customer";
|
|
212
|
-
customer_order_count: "customer_order_count";
|
|
213
|
-
customer_tag: "customer_tag";
|
|
214
|
-
customer_total_spent: "customer_total_spent";
|
|
215
|
-
product_tag: "product_tag";
|
|
216
|
-
product_title: "product_title";
|
|
217
|
-
product_type: "product_type";
|
|
218
|
-
product_vendor: "product_vendor";
|
|
219
|
-
}>>;
|
|
220
|
-
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
221
|
-
}, z.core.$strip>>>;
|
|
222
|
-
}, z.core.$strip>>>;
|
|
223
|
-
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
224
|
-
key: z.ZodDefault<z.ZodString>;
|
|
225
|
-
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
226
|
-
value: z.ZodDefault<z.ZodString>;
|
|
227
|
-
}, z.core.$strip>>>;
|
|
228
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
229
|
-
}, z.core.$strip>>;
|
|
230
181
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
231
182
|
sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
|
|
232
183
|
tier: z.ZodOptional<z.ZodObject<{
|
|
@@ -240,6 +191,152 @@ export declare const CABTextSection: z.ZodObject<{
|
|
|
240
191
|
shipping: "shipping";
|
|
241
192
|
}>>;
|
|
242
193
|
}, z.core.$strip>>;
|
|
194
|
+
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
195
|
+
effect: z.ZodDefault<z.ZodEnum<{
|
|
196
|
+
set_false: "set_false";
|
|
197
|
+
set_true: "set_true";
|
|
198
|
+
toggle: "toggle";
|
|
199
|
+
}>>;
|
|
200
|
+
variable: z.ZodString;
|
|
201
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
202
|
+
event: z.ZodEnum<{
|
|
203
|
+
item_added: "item_added";
|
|
204
|
+
quantity_changed: "quantity_changed";
|
|
205
|
+
variant_selected: "variant_selected";
|
|
206
|
+
}>;
|
|
207
|
+
type: z.ZodLiteral<"event">;
|
|
208
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
209
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
210
|
+
equals: "equals";
|
|
211
|
+
greater_than: "greater_than";
|
|
212
|
+
less_than: "less_than";
|
|
213
|
+
}>>;
|
|
214
|
+
type: z.ZodLiteral<"result_count">;
|
|
215
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
216
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
217
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
218
|
+
contains: "contains";
|
|
219
|
+
does_not_contain: "does_not_contain";
|
|
220
|
+
}>>;
|
|
221
|
+
type: z.ZodLiteral<"result_tag">;
|
|
222
|
+
value: z.ZodString;
|
|
223
|
+
}, z.core.$strip>], "type">;
|
|
224
|
+
}, z.core.$strip>>>;
|
|
225
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
226
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
name: z.ZodString;
|
|
228
|
+
seed: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
230
|
+
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
231
|
+
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
232
|
+
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
233
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
234
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
235
|
+
equals: "equals";
|
|
236
|
+
greater_than: "greater_than";
|
|
237
|
+
less_than: "less_than";
|
|
238
|
+
contains: "contains";
|
|
239
|
+
does_not_contain: "does_not_contain";
|
|
240
|
+
after: "after";
|
|
241
|
+
anything: "anything";
|
|
242
|
+
before: "before";
|
|
243
|
+
contains_any: "contains_any";
|
|
244
|
+
does_not_contain_any: "does_not_contain_any";
|
|
245
|
+
does_not_equal: "does_not_equal";
|
|
246
|
+
}>>;
|
|
247
|
+
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
248
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
249
|
+
product: "product";
|
|
250
|
+
date: "date";
|
|
251
|
+
cart: "cart";
|
|
252
|
+
cart_count: "cart_count";
|
|
253
|
+
cart_item_count: "cart_item_count";
|
|
254
|
+
cart_line_count: "cart_line_count";
|
|
255
|
+
cart_subtotal: "cart_subtotal";
|
|
256
|
+
collection: "collection";
|
|
257
|
+
customer: "customer";
|
|
258
|
+
customer_order_count: "customer_order_count";
|
|
259
|
+
customer_tag: "customer_tag";
|
|
260
|
+
customer_total_spent: "customer_total_spent";
|
|
261
|
+
product_tag: "product_tag";
|
|
262
|
+
product_title: "product_title";
|
|
263
|
+
product_type: "product_type";
|
|
264
|
+
product_vendor: "product_vendor";
|
|
265
|
+
}>>;
|
|
266
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
267
|
+
}, z.core.$strip>>>;
|
|
268
|
+
}, z.core.$strip>>>;
|
|
269
|
+
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
270
|
+
key: z.ZodDefault<z.ZodString>;
|
|
271
|
+
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
272
|
+
value: z.ZodDefault<z.ZodString>;
|
|
273
|
+
}, z.core.$strip>>>;
|
|
274
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
|
|
275
|
+
exitIfMatched: boolean;
|
|
276
|
+
logic: {
|
|
277
|
+
rules: {
|
|
278
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
279
|
+
products: never[] | unknown[];
|
|
280
|
+
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";
|
|
281
|
+
value: string;
|
|
282
|
+
}[];
|
|
283
|
+
}[];
|
|
284
|
+
output: {
|
|
285
|
+
key: string;
|
|
286
|
+
type: "data_json";
|
|
287
|
+
value: string;
|
|
288
|
+
}[];
|
|
289
|
+
}[], Record<string, never>>>]>>;
|
|
290
|
+
}, z.core.$strip>>;
|
|
291
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
292
|
+
name: string;
|
|
293
|
+
seed?: {
|
|
294
|
+
dataSourceId: number | null;
|
|
295
|
+
ruleset: {
|
|
296
|
+
exitIfMatched: boolean;
|
|
297
|
+
logic: {
|
|
298
|
+
rules: {
|
|
299
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
300
|
+
products: never[] | unknown[];
|
|
301
|
+
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";
|
|
302
|
+
value: string;
|
|
303
|
+
}[];
|
|
304
|
+
}[];
|
|
305
|
+
output: {
|
|
306
|
+
key: string;
|
|
307
|
+
type: "data_json";
|
|
308
|
+
value: string;
|
|
309
|
+
}[];
|
|
310
|
+
}[];
|
|
311
|
+
} | undefined;
|
|
312
|
+
defaultValue: boolean;
|
|
313
|
+
}, {
|
|
314
|
+
name: string;
|
|
315
|
+
defaultValue?: boolean | undefined;
|
|
316
|
+
seed?: {
|
|
317
|
+
dataSourceId: number | null;
|
|
318
|
+
ruleset: {
|
|
319
|
+
exitIfMatched: boolean;
|
|
320
|
+
logic: {
|
|
321
|
+
rules: {
|
|
322
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
323
|
+
products: never[] | unknown[];
|
|
324
|
+
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";
|
|
325
|
+
value: string;
|
|
326
|
+
}[];
|
|
327
|
+
}[];
|
|
328
|
+
output: {
|
|
329
|
+
key: string;
|
|
330
|
+
type: "data_json";
|
|
331
|
+
value: string;
|
|
332
|
+
}[];
|
|
333
|
+
}[];
|
|
334
|
+
} | undefined;
|
|
335
|
+
}>>>>;
|
|
336
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
337
|
+
variable: z.ZodString;
|
|
338
|
+
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
339
|
+
}, z.core.$strip>>;
|
|
243
340
|
}, z.core.$strip>;
|
|
244
341
|
export type CABTextSection = z.infer<typeof CABTextSection>;
|
|
245
342
|
export type CABTextSectionProps = CABTextSection & SectionDetails;
|