@rebuy/rebuy 2.0.2 → 2.2.0-rc.1

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 (47) hide show
  1. package/dist/client.d.ts +1 -1
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/index.js.map +2 -2
  4. package/dist/index.mjs.map +2 -2
  5. package/dist/schema/button.d.ts +271 -0
  6. package/dist/schema/button.d.ts.map +1 -0
  7. package/dist/schema/common.d.ts +369 -0
  8. package/dist/schema/common.d.ts.map +1 -0
  9. package/dist/schema/constants.d.ts +165 -0
  10. package/dist/schema/constants.d.ts.map +1 -0
  11. package/dist/schema/data-source.d.ts +11 -0
  12. package/dist/schema/data-source.d.ts.map +1 -0
  13. package/dist/schema/image.d.ts +63 -0
  14. package/dist/schema/image.d.ts.map +1 -0
  15. package/dist/schema/index.d.ts +20 -0
  16. package/dist/schema/index.d.ts.map +1 -0
  17. package/dist/schema/index.mjs +629 -0
  18. package/dist/schema/index.mjs.map +7 -0
  19. package/dist/schema/layout.d.ts +78 -0
  20. package/dist/schema/layout.d.ts.map +1 -0
  21. package/dist/schema/offers.d.ts +67 -0
  22. package/dist/schema/offers.d.ts.map +1 -0
  23. package/dist/schema/product.d.ts +147 -0
  24. package/dist/schema/product.d.ts.map +1 -0
  25. package/dist/schema/products.d.ts +150 -0
  26. package/dist/schema/products.d.ts.map +1 -0
  27. package/dist/schema/quantity.d.ts +19 -0
  28. package/dist/schema/quantity.d.ts.map +1 -0
  29. package/dist/schema/regex.d.ts +7 -0
  30. package/dist/schema/regex.d.ts.map +1 -0
  31. package/dist/schema/reviews.d.ts +8 -0
  32. package/dist/schema/reviews.d.ts.map +1 -0
  33. package/dist/schema/root.d.ts +127 -0
  34. package/dist/schema/root.d.ts.map +1 -0
  35. package/dist/schema/shared.d.ts +38 -0
  36. package/dist/schema/shared.d.ts.map +1 -0
  37. package/dist/schema/subscription.d.ts +8 -0
  38. package/dist/schema/subscription.d.ts.map +1 -0
  39. package/dist/schema/table.d.ts +8 -0
  40. package/dist/schema/table.d.ts.map +1 -0
  41. package/dist/schema/text.d.ts +160 -0
  42. package/dist/schema/text.d.ts.map +1 -0
  43. package/dist/schema/utils.d.ts +8 -0
  44. package/dist/schema/utils.d.ts.map +1 -0
  45. package/dist/schema/variants.d.ts +15 -0
  46. package/dist/schema/variants.d.ts.map +1 -0
  47. package/package.json +11 -9
@@ -0,0 +1,271 @@
1
+ import { z } from 'zod';
2
+ export declare const CABButtonContent: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
+ altText: z.ZodDefault<z.ZodString>;
4
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
5
+ border: z.ZodDefault<z.ZodObject<{
6
+ radius: z.ZodDefault<z.ZodEnum<{
7
+ small: "small";
8
+ none: "none";
9
+ base: "base";
10
+ large: "large";
11
+ fullyRounded: "fullyRounded";
12
+ }>>;
13
+ style: z.ZodDefault<z.ZodEnum<{
14
+ none: "none";
15
+ base: "base";
16
+ dotted: "dotted";
17
+ dashed: "dashed";
18
+ }>>;
19
+ width: z.ZodDefault<z.ZodEnum<{
20
+ base: "base";
21
+ medium: "medium";
22
+ thick: "thick";
23
+ }>>;
24
+ }, z.core.$strict>>;
25
+ buttonField: z.ZodOptional<z.ZodEnum<{
26
+ declineAllOffers: "declineAllOffers";
27
+ declineOffer: "declineOffer";
28
+ removeFromCart: "removeFromCart";
29
+ showVariants: "showVariants";
30
+ addedToCart: "addedToCart";
31
+ addingToCart: "addingToCart";
32
+ addToCart: "addToCart";
33
+ buttonLabel: "buttonLabel";
34
+ destinationUrl: "destinationUrl";
35
+ payNow: "payNow";
36
+ showVariant: "showVariant";
37
+ soldOut: "soldOut";
38
+ switchToOneTimeAction: "switchToOneTimeAction";
39
+ switchToOneTimePurchase: "switchToOneTimePurchase";
40
+ switchToSubscriptionAction: "switchToSubscriptionAction";
41
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
42
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
43
+ }>>;
44
+ category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
45
+ gallery: "gallery";
46
+ icons: "icons";
47
+ "payment-methods": "payment-methods";
48
+ "secure-checkout": "secure-checkout";
49
+ }>>>;
50
+ name: z.ZodOptional<z.ZodString>;
51
+ naturalHeight: z.ZodDefault<z.ZodNumber>;
52
+ naturalWidth: z.ZodDefault<z.ZodNumber>;
53
+ objectFit: z.ZodDefault<z.ZodEnum<{
54
+ cover: "cover";
55
+ contain: "contain";
56
+ }>>;
57
+ sectionId: z.ZodDefault<z.ZodUUID>;
58
+ sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
59
+ source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
60
+ width: z.ZodDefault<z.ZodNumber>;
61
+ }, z.core.$strict>, z.ZodObject<{
62
+ buttonField: z.ZodOptional<z.ZodEnum<{
63
+ declineAllOffers: "declineAllOffers";
64
+ declineOffer: "declineOffer";
65
+ removeFromCart: "removeFromCart";
66
+ showVariants: "showVariants";
67
+ addedToCart: "addedToCart";
68
+ addingToCart: "addingToCart";
69
+ addToCart: "addToCart";
70
+ buttonLabel: "buttonLabel";
71
+ destinationUrl: "destinationUrl";
72
+ payNow: "payNow";
73
+ showVariant: "showVariant";
74
+ soldOut: "soldOut";
75
+ switchToOneTimeAction: "switchToOneTimeAction";
76
+ switchToOneTimePurchase: "switchToOneTimePurchase";
77
+ switchToSubscriptionAction: "switchToSubscriptionAction";
78
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
79
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
80
+ }>>;
81
+ content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
82
+ attrs: z.ZodDefault<z.ZodObject<{
83
+ blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
84
+ }, z.core.$strict>>;
85
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
86
+ attrs: z.ZodDefault<z.ZodObject<{
87
+ textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
88
+ }, z.core.$strict>>;
89
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
90
+ marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
91
+ type: z.ZodLiteral<"bold">;
92
+ }, z.core.$strict>, z.ZodObject<{
93
+ type: z.ZodLiteral<"italic">;
94
+ }, z.core.$strict>, z.ZodObject<{
95
+ attrs: z.ZodObject<{
96
+ class: z.ZodNullable<z.ZodString>;
97
+ href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
98
+ rel: z.ZodDefault<z.ZodString>;
99
+ target: z.ZodDefault<z.ZodString>;
100
+ }, z.core.$strict>;
101
+ type: z.ZodLiteral<"link">;
102
+ }, z.core.$strict>, z.ZodObject<{
103
+ type: z.ZodLiteral<"strike">;
104
+ }, z.core.$strict>, z.ZodObject<{
105
+ attrs: z.ZodObject<{
106
+ color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
107
+ fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
108
+ }, z.core.$strict>;
109
+ type: z.ZodLiteral<"textStyle">;
110
+ }, z.core.$strict>], "type">>>;
111
+ text: z.ZodDefault<z.ZodString>;
112
+ type: z.ZodDefault<z.ZodLiteral<"text">>;
113
+ }, z.core.$strict>>>;
114
+ type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
115
+ }, z.core.$strict>>>;
116
+ type: z.ZodDefault<z.ZodLiteral<"doc">>;
117
+ }, z.core.$strict>]>>>>>;
118
+ name: z.ZodOptional<z.ZodString>;
119
+ sectionId: z.ZodDefault<z.ZodUUID>;
120
+ sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
121
+ }, z.core.$strict>], "sectionType">;
122
+ export type CABButtonContent = z.infer<typeof CABButtonContent>;
123
+ export declare const CABButtonSection: z.ZodObject<{
124
+ action: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"">, z.ZodEnum<{
125
+ addToOrder: "addToOrder";
126
+ declineAllOffers: "declineAllOffers";
127
+ declineOffer: "declineOffer";
128
+ goToRebuyApp: "goToRebuyApp";
129
+ goToRebuyVault: "goToRebuyVault";
130
+ goToURL: "goToURL";
131
+ removeFromCart: "removeFromCart";
132
+ showVariants: "showVariants";
133
+ switchToSubscription: "switchToSubscription";
134
+ }>]>>;
135
+ buttonStyle: z.ZodDefault<z.ZodEnum<{
136
+ primary: "primary";
137
+ secondary: "secondary";
138
+ plain: "plain";
139
+ custom: "custom";
140
+ }>>;
141
+ custom: z.ZodDefault<z.ZodObject<{
142
+ color: z.ZodDefault<z.ZodString>;
143
+ height: z.ZodDefault<z.ZodNumber>;
144
+ width: z.ZodDefault<z.ZodNumber>;
145
+ }, z.core.$strict>>;
146
+ name: z.ZodOptional<z.ZodString>;
147
+ sectionId: z.ZodDefault<z.ZodUUID>;
148
+ sections: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
149
+ altText: z.ZodDefault<z.ZodString>;
150
+ aspectRatio: z.ZodDefault<z.ZodNullable<z.ZodLiteral<1>>>;
151
+ border: z.ZodDefault<z.ZodObject<{
152
+ radius: z.ZodDefault<z.ZodEnum<{
153
+ small: "small";
154
+ none: "none";
155
+ base: "base";
156
+ large: "large";
157
+ fullyRounded: "fullyRounded";
158
+ }>>;
159
+ style: z.ZodDefault<z.ZodEnum<{
160
+ none: "none";
161
+ base: "base";
162
+ dotted: "dotted";
163
+ dashed: "dashed";
164
+ }>>;
165
+ width: z.ZodDefault<z.ZodEnum<{
166
+ base: "base";
167
+ medium: "medium";
168
+ thick: "thick";
169
+ }>>;
170
+ }, z.core.$strict>>;
171
+ buttonField: z.ZodOptional<z.ZodEnum<{
172
+ declineAllOffers: "declineAllOffers";
173
+ declineOffer: "declineOffer";
174
+ removeFromCart: "removeFromCart";
175
+ showVariants: "showVariants";
176
+ addedToCart: "addedToCart";
177
+ addingToCart: "addingToCart";
178
+ addToCart: "addToCart";
179
+ buttonLabel: "buttonLabel";
180
+ destinationUrl: "destinationUrl";
181
+ payNow: "payNow";
182
+ showVariant: "showVariant";
183
+ soldOut: "soldOut";
184
+ switchToOneTimeAction: "switchToOneTimeAction";
185
+ switchToOneTimePurchase: "switchToOneTimePurchase";
186
+ switchToSubscriptionAction: "switchToSubscriptionAction";
187
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
188
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
189
+ }>>;
190
+ category: z.ZodDefault<z.ZodNullable<z.ZodEnum<{
191
+ gallery: "gallery";
192
+ icons: "icons";
193
+ "payment-methods": "payment-methods";
194
+ "secure-checkout": "secure-checkout";
195
+ }>>>;
196
+ name: z.ZodOptional<z.ZodString>;
197
+ naturalHeight: z.ZodDefault<z.ZodNumber>;
198
+ naturalWidth: z.ZodDefault<z.ZodNumber>;
199
+ objectFit: z.ZodDefault<z.ZodEnum<{
200
+ cover: "cover";
201
+ contain: "contain";
202
+ }>>;
203
+ sectionId: z.ZodDefault<z.ZodUUID>;
204
+ sectionType: z.ZodDefault<z.ZodLiteral<"image">>;
205
+ source: z.ZodDefault<z.ZodUnion<readonly [z.ZodURL, z.ZodLiteral<"">, z.ZodString]>>;
206
+ width: z.ZodDefault<z.ZodNumber>;
207
+ }, z.core.$strict>, z.ZodObject<{
208
+ buttonField: z.ZodOptional<z.ZodEnum<{
209
+ declineAllOffers: "declineAllOffers";
210
+ declineOffer: "declineOffer";
211
+ removeFromCart: "removeFromCart";
212
+ showVariants: "showVariants";
213
+ addedToCart: "addedToCart";
214
+ addingToCart: "addingToCart";
215
+ addToCart: "addToCart";
216
+ buttonLabel: "buttonLabel";
217
+ destinationUrl: "destinationUrl";
218
+ payNow: "payNow";
219
+ showVariant: "showVariant";
220
+ soldOut: "soldOut";
221
+ switchToOneTimeAction: "switchToOneTimeAction";
222
+ switchToOneTimePurchase: "switchToOneTimePurchase";
223
+ switchToSubscriptionAction: "switchToSubscriptionAction";
224
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
225
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
226
+ }>>;
227
+ content: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
228
+ attrs: z.ZodDefault<z.ZodObject<{
229
+ blockSpacing: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"none" | "base" | "extraTight" | "tight" | "loose" | "extraLoose" | undefined, string>>>;
230
+ }, z.core.$strict>>;
231
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
232
+ attrs: z.ZodDefault<z.ZodObject<{
233
+ textAlign: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"start" | "center" | "end" | undefined, string>>>;
234
+ }, z.core.$strict>>;
235
+ content: z.ZodDefault<z.ZodArray<z.ZodObject<{
236
+ marks: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
237
+ type: z.ZodLiteral<"bold">;
238
+ }, z.core.$strict>, z.ZodObject<{
239
+ type: z.ZodLiteral<"italic">;
240
+ }, z.core.$strict>, z.ZodObject<{
241
+ attrs: z.ZodObject<{
242
+ class: z.ZodNullable<z.ZodString>;
243
+ href: z.ZodUnion<readonly [z.ZodURL, z.ZodString]>;
244
+ rel: z.ZodDefault<z.ZodString>;
245
+ target: z.ZodDefault<z.ZodString>;
246
+ }, z.core.$strict>;
247
+ type: z.ZodLiteral<"link">;
248
+ }, z.core.$strict>, z.ZodObject<{
249
+ type: z.ZodLiteral<"strike">;
250
+ }, z.core.$strict>, z.ZodObject<{
251
+ attrs: z.ZodObject<{
252
+ color: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"base" | "subdued" | "accent" | "decorative" | "success" | "warning" | "critical" | undefined, string>>>>;
253
+ fontSize: z.ZodDefault<z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodTransform<"small" | "base" | "large" | "medium" | "extraSmall" | "extraLarge" | undefined, string>>>>;
254
+ }, z.core.$strict>;
255
+ type: z.ZodLiteral<"textStyle">;
256
+ }, z.core.$strict>], "type">>>;
257
+ text: z.ZodDefault<z.ZodString>;
258
+ type: z.ZodDefault<z.ZodLiteral<"text">>;
259
+ }, z.core.$strict>>>;
260
+ type: z.ZodDefault<z.ZodLiteral<"paragraph">>;
261
+ }, z.core.$strict>>>;
262
+ type: z.ZodDefault<z.ZodLiteral<"doc">>;
263
+ }, z.core.$strict>]>>>>>;
264
+ name: z.ZodOptional<z.ZodString>;
265
+ sectionId: z.ZodDefault<z.ZodUUID>;
266
+ sectionType: z.ZodDefault<z.ZodLiteral<"text">>;
267
+ }, z.core.$strict>], "sectionType">>>;
268
+ sectionType: z.ZodDefault<z.ZodLiteral<"button">>;
269
+ }, z.core.$strict>;
270
+ export type CABButtonSection = z.infer<typeof CABButtonSection>;
271
+ //# sourceMappingURL=button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../src/schema/button.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAAyE,CAAC;AAEvG,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAEhE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAkB3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,369 @@
1
+ import { z } from 'zod';
2
+ export declare const borderRadii: readonly ["none", "small", "base", "large", "fullyRounded"];
3
+ declare const borderRadius: z.ZodEnum<{
4
+ small: "small";
5
+ none: "none";
6
+ base: "base";
7
+ large: "large";
8
+ fullyRounded: "fullyRounded";
9
+ }>;
10
+ export declare const BorderRadius: {
11
+ small: "small";
12
+ none: "none";
13
+ base: "base";
14
+ large: "large";
15
+ fullyRounded: "fullyRounded";
16
+ };
17
+ export type BorderRadius = z.infer<typeof borderRadius>;
18
+ export declare const borderStyles: readonly ["none", "base", "dotted", "dashed"];
19
+ declare const borderStyle: z.ZodEnum<{
20
+ none: "none";
21
+ base: "base";
22
+ dotted: "dotted";
23
+ dashed: "dashed";
24
+ }>;
25
+ export declare const BorderStyle: {
26
+ none: "none";
27
+ base: "base";
28
+ dotted: "dotted";
29
+ dashed: "dashed";
30
+ };
31
+ export type BorderStyle = z.infer<typeof borderStyle>;
32
+ export declare const borderWidths: readonly ["base", "medium", "thick"];
33
+ declare const borderWidth: z.ZodEnum<{
34
+ base: "base";
35
+ medium: "medium";
36
+ thick: "thick";
37
+ }>;
38
+ export declare const BorderWidth: {
39
+ base: "base";
40
+ medium: "medium";
41
+ thick: "thick";
42
+ };
43
+ export type BorderWidth = z.infer<typeof borderWidth>;
44
+ export declare const buttonActions: readonly ["addToOrder", "declineAllOffers", "declineOffer", "goToRebuyApp", "goToRebuyVault", "goToURL", "removeFromCart", "showVariants", "switchToSubscription"];
45
+ declare const buttonAction: z.ZodEnum<{
46
+ addToOrder: "addToOrder";
47
+ declineAllOffers: "declineAllOffers";
48
+ declineOffer: "declineOffer";
49
+ goToRebuyApp: "goToRebuyApp";
50
+ goToRebuyVault: "goToRebuyVault";
51
+ goToURL: "goToURL";
52
+ removeFromCart: "removeFromCart";
53
+ showVariants: "showVariants";
54
+ switchToSubscription: "switchToSubscription";
55
+ }>;
56
+ export declare const ButtonAction: {
57
+ addToOrder: "addToOrder";
58
+ declineAllOffers: "declineAllOffers";
59
+ declineOffer: "declineOffer";
60
+ goToRebuyApp: "goToRebuyApp";
61
+ goToRebuyVault: "goToRebuyVault";
62
+ goToURL: "goToURL";
63
+ removeFromCart: "removeFromCart";
64
+ showVariants: "showVariants";
65
+ switchToSubscription: "switchToSubscription";
66
+ };
67
+ export type ButtonAction = z.infer<typeof buttonAction>;
68
+ export declare const buttonFields: readonly ["addedToCart", "addingToCart", "addToCart", "buttonLabel", "declineAllOffers", "declineOffer", "destinationUrl", "payNow", "removeFromCart", "showVariant", "showVariants", "soldOut", "switchToOneTimeAction", "switchToOneTimePurchase", "switchToSubscriptionAction", "switchToSubscriptionNoDiscount", "switchToSubscriptionWithDiscount"];
69
+ declare const buttonField: z.ZodEnum<{
70
+ declineAllOffers: "declineAllOffers";
71
+ declineOffer: "declineOffer";
72
+ removeFromCart: "removeFromCart";
73
+ showVariants: "showVariants";
74
+ addedToCart: "addedToCart";
75
+ addingToCart: "addingToCart";
76
+ addToCart: "addToCart";
77
+ buttonLabel: "buttonLabel";
78
+ destinationUrl: "destinationUrl";
79
+ payNow: "payNow";
80
+ showVariant: "showVariant";
81
+ soldOut: "soldOut";
82
+ switchToOneTimeAction: "switchToOneTimeAction";
83
+ switchToOneTimePurchase: "switchToOneTimePurchase";
84
+ switchToSubscriptionAction: "switchToSubscriptionAction";
85
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
86
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
87
+ }>;
88
+ export declare const ButtonField: {
89
+ declineAllOffers: "declineAllOffers";
90
+ declineOffer: "declineOffer";
91
+ removeFromCart: "removeFromCart";
92
+ showVariants: "showVariants";
93
+ addedToCart: "addedToCart";
94
+ addingToCart: "addingToCart";
95
+ addToCart: "addToCart";
96
+ buttonLabel: "buttonLabel";
97
+ destinationUrl: "destinationUrl";
98
+ payNow: "payNow";
99
+ showVariant: "showVariant";
100
+ soldOut: "soldOut";
101
+ switchToOneTimeAction: "switchToOneTimeAction";
102
+ switchToOneTimePurchase: "switchToOneTimePurchase";
103
+ switchToSubscriptionAction: "switchToSubscriptionAction";
104
+ switchToSubscriptionNoDiscount: "switchToSubscriptionNoDiscount";
105
+ switchToSubscriptionWithDiscount: "switchToSubscriptionWithDiscount";
106
+ };
107
+ export type ButtonField = z.infer<typeof buttonField>;
108
+ export declare const buttonStyles: readonly ["primary", "secondary", "plain", "custom"];
109
+ declare const buttonStyle: z.ZodEnum<{
110
+ primary: "primary";
111
+ secondary: "secondary";
112
+ plain: "plain";
113
+ custom: "custom";
114
+ }>;
115
+ export declare const ButtonStyle: {
116
+ primary: "primary";
117
+ secondary: "secondary";
118
+ plain: "plain";
119
+ custom: "custom";
120
+ };
121
+ export type ButtonStyle = z.infer<typeof buttonStyle>;
122
+ export declare const directions: readonly ["columns", "rows"];
123
+ declare const direction: z.ZodEnum<{
124
+ columns: "columns";
125
+ rows: "rows";
126
+ }>;
127
+ export declare const Direction: {
128
+ columns: "columns";
129
+ rows: "rows";
130
+ };
131
+ export type Direction = z.infer<typeof direction>;
132
+ export declare const editorModes: readonly ["checkoutExtension", "postPurchaseOffer", "thankYouPage", "orderStatusPage", "ordersIndexPage", "customerProfilePage"];
133
+ declare const editorMode: z.ZodEnum<{
134
+ checkoutExtension: "checkoutExtension";
135
+ postPurchaseOffer: "postPurchaseOffer";
136
+ thankYouPage: "thankYouPage";
137
+ orderStatusPage: "orderStatusPage";
138
+ ordersIndexPage: "ordersIndexPage";
139
+ customerProfilePage: "customerProfilePage";
140
+ }>;
141
+ export declare const EditorMode: {
142
+ checkoutExtension: "checkoutExtension";
143
+ postPurchaseOffer: "postPurchaseOffer";
144
+ thankYouPage: "thankYouPage";
145
+ orderStatusPage: "orderStatusPage";
146
+ ordersIndexPage: "ordersIndexPage";
147
+ customerProfilePage: "customerProfilePage";
148
+ };
149
+ export type EditorMode = z.infer<typeof editorMode>;
150
+ export declare const horizontalAlignments: readonly ["start", "center", "end"];
151
+ declare const horizontalAlignment: z.ZodEnum<{
152
+ start: "start";
153
+ center: "center";
154
+ end: "end";
155
+ }>;
156
+ export declare const HorizontalAlignment: {
157
+ start: "start";
158
+ center: "center";
159
+ end: "end";
160
+ };
161
+ export type HorizontalAlignment = z.infer<typeof horizontalAlignment>;
162
+ export declare const languageKeys: readonly ["ar", "cs", "da", "de", "en", "es", "fi", "fr", "ga", "he", "hi", "id", "it", "ja", "ko", "nl", "no", "pl", "pt", "ru", "sv", "th", "tr", "uk", "vi", "zh"];
163
+ declare const languageKey: z.ZodEnum<{
164
+ ar: "ar";
165
+ cs: "cs";
166
+ da: "da";
167
+ de: "de";
168
+ en: "en";
169
+ es: "es";
170
+ fi: "fi";
171
+ fr: "fr";
172
+ ga: "ga";
173
+ he: "he";
174
+ hi: "hi";
175
+ id: "id";
176
+ it: "it";
177
+ ja: "ja";
178
+ ko: "ko";
179
+ nl: "nl";
180
+ no: "no";
181
+ pl: "pl";
182
+ pt: "pt";
183
+ ru: "ru";
184
+ sv: "sv";
185
+ th: "th";
186
+ tr: "tr";
187
+ uk: "uk";
188
+ vi: "vi";
189
+ zh: "zh";
190
+ }>;
191
+ export declare const LanguageKey: {
192
+ ar: "ar";
193
+ cs: "cs";
194
+ da: "da";
195
+ de: "de";
196
+ en: "en";
197
+ es: "es";
198
+ fi: "fi";
199
+ fr: "fr";
200
+ ga: "ga";
201
+ he: "he";
202
+ hi: "hi";
203
+ id: "id";
204
+ it: "it";
205
+ ja: "ja";
206
+ ko: "ko";
207
+ nl: "nl";
208
+ no: "no";
209
+ pl: "pl";
210
+ pt: "pt";
211
+ ru: "ru";
212
+ sv: "sv";
213
+ th: "th";
214
+ tr: "tr";
215
+ uk: "uk";
216
+ vi: "vi";
217
+ zh: "zh";
218
+ };
219
+ export type LanguageKey = z.infer<typeof languageKey>;
220
+ export declare const objectFits: readonly ["cover", "contain"];
221
+ declare const objectFit: z.ZodEnum<{
222
+ cover: "cover";
223
+ contain: "contain";
224
+ }>;
225
+ export declare const ObjectFit: {
226
+ cover: "cover";
227
+ contain: "contain";
228
+ };
229
+ export type ObjectFit = z.infer<typeof objectFit>;
230
+ export declare const quantityInputs: readonly ["select", "number"];
231
+ declare const quantityInput: z.ZodEnum<{
232
+ number: "number";
233
+ select: "select";
234
+ }>;
235
+ export declare const QuantityInput: {
236
+ number: "number";
237
+ select: "select";
238
+ };
239
+ export type QuantityInput = z.infer<typeof quantityInput>;
240
+ export declare const sectionTypes: readonly ["button", "dataSource", "image", "layout", "offers", "product", "products", "quantity", "reviews", "subscription", "table", "text", "variants"];
241
+ declare const sectionType: z.ZodEnum<{
242
+ product: "product";
243
+ button: "button";
244
+ dataSource: "dataSource";
245
+ image: "image";
246
+ layout: "layout";
247
+ offers: "offers";
248
+ products: "products";
249
+ quantity: "quantity";
250
+ reviews: "reviews";
251
+ subscription: "subscription";
252
+ table: "table";
253
+ text: "text";
254
+ variants: "variants";
255
+ }>;
256
+ export declare const SectionType: {
257
+ product: "product";
258
+ button: "button";
259
+ dataSource: "dataSource";
260
+ image: "image";
261
+ layout: "layout";
262
+ offers: "offers";
263
+ products: "products";
264
+ quantity: "quantity";
265
+ reviews: "reviews";
266
+ subscription: "subscription";
267
+ table: "table";
268
+ text: "text";
269
+ variants: "variants";
270
+ };
271
+ export type SectionType = z.infer<typeof sectionType>;
272
+ export declare const spacings: readonly ["none", "extraTight", "tight", "base", "loose", "extraLoose"];
273
+ declare const spacing: z.ZodEnum<{
274
+ none: "none";
275
+ base: "base";
276
+ extraTight: "extraTight";
277
+ tight: "tight";
278
+ loose: "loose";
279
+ extraLoose: "extraLoose";
280
+ }>;
281
+ export declare const Spacing: {
282
+ none: "none";
283
+ base: "base";
284
+ extraTight: "extraTight";
285
+ tight: "tight";
286
+ loose: "loose";
287
+ extraLoose: "extraLoose";
288
+ };
289
+ export type Spacing = z.infer<typeof spacing>;
290
+ export declare const textAlignments: readonly ["start", "center", "end"];
291
+ declare const textAlignment: z.ZodEnum<{
292
+ start: "start";
293
+ center: "center";
294
+ end: "end";
295
+ }>;
296
+ export declare const TextAlignment: {
297
+ start: "start";
298
+ center: "center";
299
+ end: "end";
300
+ };
301
+ export type TextAlignment = z.infer<typeof textAlignment>;
302
+ export declare const textColorNames: readonly ["base", "subdued", "accent", "decorative", "success", "warning", "critical"];
303
+ declare const textColorName: z.ZodEnum<{
304
+ base: "base";
305
+ subdued: "subdued";
306
+ accent: "accent";
307
+ decorative: "decorative";
308
+ success: "success";
309
+ warning: "warning";
310
+ critical: "critical";
311
+ }>;
312
+ export declare const TextColorName: {
313
+ base: "base";
314
+ subdued: "subdued";
315
+ accent: "accent";
316
+ decorative: "decorative";
317
+ success: "success";
318
+ warning: "warning";
319
+ critical: "critical";
320
+ };
321
+ export type TextColorName = z.infer<typeof textColorName>;
322
+ export declare const textSizeNames: readonly ["extraSmall", "small", "base", "medium", "large", "extraLarge"];
323
+ declare const textSizeName: z.ZodEnum<{
324
+ small: "small";
325
+ base: "base";
326
+ large: "large";
327
+ medium: "medium";
328
+ extraSmall: "extraSmall";
329
+ extraLarge: "extraLarge";
330
+ }>;
331
+ export declare const TextSizeName: {
332
+ small: "small";
333
+ base: "base";
334
+ large: "large";
335
+ medium: "medium";
336
+ extraSmall: "extraSmall";
337
+ extraLarge: "extraLarge";
338
+ };
339
+ export type TextSizeName = z.infer<typeof textSizeName>;
340
+ export declare const variantSelectors: readonly ["menu", "button", "radio", "color", "image"];
341
+ declare const variantSelector: z.ZodEnum<{
342
+ button: "button";
343
+ image: "image";
344
+ menu: "menu";
345
+ radio: "radio";
346
+ color: "color";
347
+ }>;
348
+ export declare const VariantSelector: {
349
+ button: "button";
350
+ image: "image";
351
+ menu: "menu";
352
+ radio: "radio";
353
+ color: "color";
354
+ };
355
+ export type VariantSelector = z.infer<typeof variantSelector>;
356
+ export declare const verticalAlignments: readonly ["top", "middle", "bottom"];
357
+ declare const verticalAlignment: z.ZodEnum<{
358
+ top: "top";
359
+ middle: "middle";
360
+ bottom: "bottom";
361
+ }>;
362
+ export declare const VerticalAlignment: {
363
+ top: "top";
364
+ middle: "middle";
365
+ bottom: "bottom";
366
+ };
367
+ export type VerticalAlignment = z.infer<typeof verticalAlignment>;
368
+ export {};
369
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/schema/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW,6DAA8D,CAAC;AACvF,QAAA,MAAM,YAAY;;;;;;EAAsB,CAAC;AAEzC,eAAO,MAAM,YAAY;;;;;;CAAoB,CAAC;AAC9C,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,YAAY,+CAAgD,CAAC;AAC1E,QAAA,MAAM,WAAW;;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY,sCAAuC,CAAC;AACjE,QAAA,MAAM,WAAW;;;;EAAuB,CAAC;AAEzC,eAAO,MAAM,WAAW;;;;CAAmB,CAAC;AAC5C,MAAM,MAAM,WAAW,GA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