@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
|
@@ -82,55 +82,6 @@ export declare const RebuyButton: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
82
82
|
loose: "loose";
|
|
83
83
|
extraLoose: "extraLoose";
|
|
84
84
|
}>>;
|
|
85
|
-
rule: z.ZodOptional<z.ZodObject<{
|
|
86
|
-
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
87
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
88
|
-
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
89
|
-
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
90
|
-
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
|
-
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
92
|
-
operator: z.ZodDefault<z.ZodEnum<{
|
|
93
|
-
after: "after";
|
|
94
|
-
anything: "anything";
|
|
95
|
-
before: "before";
|
|
96
|
-
contains: "contains";
|
|
97
|
-
contains_any: "contains_any";
|
|
98
|
-
does_not_contain: "does_not_contain";
|
|
99
|
-
does_not_contain_any: "does_not_contain_any";
|
|
100
|
-
equals: "equals";
|
|
101
|
-
does_not_equal: "does_not_equal";
|
|
102
|
-
greater_than: "greater_than";
|
|
103
|
-
less_than: "less_than";
|
|
104
|
-
}>>;
|
|
105
|
-
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
106
|
-
type: z.ZodDefault<z.ZodEnum<{
|
|
107
|
-
product: "product";
|
|
108
|
-
date: "date";
|
|
109
|
-
cart: "cart";
|
|
110
|
-
cart_count: "cart_count";
|
|
111
|
-
cart_item_count: "cart_item_count";
|
|
112
|
-
cart_line_count: "cart_line_count";
|
|
113
|
-
cart_subtotal: "cart_subtotal";
|
|
114
|
-
collection: "collection";
|
|
115
|
-
customer: "customer";
|
|
116
|
-
customer_order_count: "customer_order_count";
|
|
117
|
-
customer_tag: "customer_tag";
|
|
118
|
-
customer_total_spent: "customer_total_spent";
|
|
119
|
-
product_tag: "product_tag";
|
|
120
|
-
product_title: "product_title";
|
|
121
|
-
product_type: "product_type";
|
|
122
|
-
product_vendor: "product_vendor";
|
|
123
|
-
}>>;
|
|
124
|
-
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
125
|
-
}, z.core.$strip>>>;
|
|
126
|
-
}, z.core.$strip>>>;
|
|
127
|
-
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
128
|
-
key: z.ZodDefault<z.ZodString>;
|
|
129
|
-
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
130
|
-
value: z.ZodDefault<z.ZodString>;
|
|
131
|
-
}, z.core.$strip>>>;
|
|
132
|
-
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
133
|
-
}, z.core.$strip>>;
|
|
134
85
|
sectionId: z.ZodDefault<z.ZodUUID>;
|
|
135
86
|
sections: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodLazy<z.ZodType<import("./checkout-and-beyond").CABSection, unknown, z.core.$ZodTypeInternals<import("./checkout-and-beyond").CABSection, unknown>>>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
136
87
|
sectionType: z.ZodDefault<z.ZodLiteral<"layout">>;
|
|
@@ -144,6 +95,152 @@ export declare const RebuyButton: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
144
95
|
}>>;
|
|
145
96
|
viewUrl: z.ZodOptional<z.ZodString>;
|
|
146
97
|
width: z.ZodDefault<z.ZodNumber>;
|
|
98
|
+
mutators: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
99
|
+
effect: z.ZodDefault<z.ZodEnum<{
|
|
100
|
+
set_false: "set_false";
|
|
101
|
+
set_true: "set_true";
|
|
102
|
+
toggle: "toggle";
|
|
103
|
+
}>>;
|
|
104
|
+
variable: z.ZodString;
|
|
105
|
+
when: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
106
|
+
event: z.ZodEnum<{
|
|
107
|
+
item_added: "item_added";
|
|
108
|
+
quantity_changed: "quantity_changed";
|
|
109
|
+
variant_selected: "variant_selected";
|
|
110
|
+
}>;
|
|
111
|
+
type: z.ZodLiteral<"event">;
|
|
112
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
113
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
114
|
+
equals: "equals";
|
|
115
|
+
greater_than: "greater_than";
|
|
116
|
+
less_than: "less_than";
|
|
117
|
+
}>>;
|
|
118
|
+
type: z.ZodLiteral<"result_count">;
|
|
119
|
+
value: z.ZodDefault<z.ZodNumber>;
|
|
120
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
121
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
122
|
+
contains: "contains";
|
|
123
|
+
does_not_contain: "does_not_contain";
|
|
124
|
+
}>>;
|
|
125
|
+
type: z.ZodLiteral<"result_tag">;
|
|
126
|
+
value: z.ZodString;
|
|
127
|
+
}, z.core.$strip>], "type">;
|
|
128
|
+
}, z.core.$strip>>>;
|
|
129
|
+
variables: z.ZodOptional<z.ZodArray<z.ZodPipe<z.ZodObject<{
|
|
130
|
+
defaultValue: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
seed: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
dataSourceId: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
134
|
+
ruleset: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodObject<{
|
|
135
|
+
exitIfMatched: z.ZodDefault<z.ZodBoolean>;
|
|
136
|
+
logic: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
137
|
+
rules: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
138
|
+
operator: z.ZodDefault<z.ZodEnum<{
|
|
139
|
+
equals: "equals";
|
|
140
|
+
greater_than: "greater_than";
|
|
141
|
+
less_than: "less_than";
|
|
142
|
+
contains: "contains";
|
|
143
|
+
does_not_contain: "does_not_contain";
|
|
144
|
+
after: "after";
|
|
145
|
+
anything: "anything";
|
|
146
|
+
before: "before";
|
|
147
|
+
contains_any: "contains_any";
|
|
148
|
+
does_not_contain_any: "does_not_contain_any";
|
|
149
|
+
does_not_equal: "does_not_equal";
|
|
150
|
+
}>>;
|
|
151
|
+
products: z.ZodDefault<z.ZodUnion<readonly [z.ZodArray<z.ZodUnknown>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<never[], Record<string, never>>>]>>;
|
|
152
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
153
|
+
product: "product";
|
|
154
|
+
date: "date";
|
|
155
|
+
cart: "cart";
|
|
156
|
+
cart_count: "cart_count";
|
|
157
|
+
cart_item_count: "cart_item_count";
|
|
158
|
+
cart_line_count: "cart_line_count";
|
|
159
|
+
cart_subtotal: "cart_subtotal";
|
|
160
|
+
collection: "collection";
|
|
161
|
+
customer: "customer";
|
|
162
|
+
customer_order_count: "customer_order_count";
|
|
163
|
+
customer_tag: "customer_tag";
|
|
164
|
+
customer_total_spent: "customer_total_spent";
|
|
165
|
+
product_tag: "product_tag";
|
|
166
|
+
product_title: "product_title";
|
|
167
|
+
product_type: "product_type";
|
|
168
|
+
product_vendor: "product_vendor";
|
|
169
|
+
}>>;
|
|
170
|
+
value: z.ZodDefault<z.ZodCoercedString<unknown>>;
|
|
171
|
+
}, z.core.$strip>>>;
|
|
172
|
+
}, z.core.$strip>>>;
|
|
173
|
+
output: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
174
|
+
key: z.ZodDefault<z.ZodString>;
|
|
175
|
+
type: z.ZodDefault<z.ZodLiteral<"data_json">>;
|
|
176
|
+
value: z.ZodDefault<z.ZodString>;
|
|
177
|
+
}, z.core.$strip>>>;
|
|
178
|
+
}, z.core.$strip>>, z.ZodPipe<z.ZodObject<{}, z.core.$strict>, z.ZodTransform<{
|
|
179
|
+
exitIfMatched: boolean;
|
|
180
|
+
logic: {
|
|
181
|
+
rules: {
|
|
182
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
183
|
+
products: never[] | unknown[];
|
|
184
|
+
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";
|
|
185
|
+
value: string;
|
|
186
|
+
}[];
|
|
187
|
+
}[];
|
|
188
|
+
output: {
|
|
189
|
+
key: string;
|
|
190
|
+
type: "data_json";
|
|
191
|
+
value: string;
|
|
192
|
+
}[];
|
|
193
|
+
}[], Record<string, never>>>]>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
196
|
+
name: string;
|
|
197
|
+
seed?: {
|
|
198
|
+
dataSourceId: number | null;
|
|
199
|
+
ruleset: {
|
|
200
|
+
exitIfMatched: boolean;
|
|
201
|
+
logic: {
|
|
202
|
+
rules: {
|
|
203
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
204
|
+
products: never[] | unknown[];
|
|
205
|
+
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";
|
|
206
|
+
value: string;
|
|
207
|
+
}[];
|
|
208
|
+
}[];
|
|
209
|
+
output: {
|
|
210
|
+
key: string;
|
|
211
|
+
type: "data_json";
|
|
212
|
+
value: string;
|
|
213
|
+
}[];
|
|
214
|
+
}[];
|
|
215
|
+
} | undefined;
|
|
216
|
+
defaultValue: boolean;
|
|
217
|
+
}, {
|
|
218
|
+
name: string;
|
|
219
|
+
defaultValue?: boolean | undefined;
|
|
220
|
+
seed?: {
|
|
221
|
+
dataSourceId: number | null;
|
|
222
|
+
ruleset: {
|
|
223
|
+
exitIfMatched: boolean;
|
|
224
|
+
logic: {
|
|
225
|
+
rules: {
|
|
226
|
+
operator: "equals" | "greater_than" | "less_than" | "contains" | "does_not_contain" | "after" | "anything" | "before" | "contains_any" | "does_not_contain_any" | "does_not_equal";
|
|
227
|
+
products: never[] | unknown[];
|
|
228
|
+
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";
|
|
229
|
+
value: string;
|
|
230
|
+
}[];
|
|
231
|
+
}[];
|
|
232
|
+
output: {
|
|
233
|
+
key: string;
|
|
234
|
+
type: "data_json";
|
|
235
|
+
value: string;
|
|
236
|
+
}[];
|
|
237
|
+
}[];
|
|
238
|
+
} | undefined;
|
|
239
|
+
}>>>>;
|
|
240
|
+
visibility: z.ZodOptional<z.ZodObject<{
|
|
241
|
+
variable: z.ZodString;
|
|
242
|
+
visibleWhen: z.ZodDefault<z.ZodBoolean>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
147
244
|
editorMode: z.ZodDefault<z.ZodEnum<{
|
|
148
245
|
checkoutExtension: "checkoutExtension";
|
|
149
246
|
postPurchaseOffer: "postPurchaseOffer";
|