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