@thryveai/theme-interfaces 2.7.154 → 2.7.155-2.zod
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/core/interfaces/default-settings.interfaces.d.ts +3 -0
- package/dist/core/interfaces/default-settings.interfaces.js +2 -0
- package/dist/core/storefront-zod/retailer-settings/accountPage.d.ts +687 -0
- package/dist/core/storefront-zod/retailer-settings/accountPage.js +54 -0
- package/dist/core/storefront-zod/retailer-settings/addressSettings.d.ts +828 -0
- package/dist/core/storefront-zod/retailer-settings/addressSettings.js +23 -0
- package/dist/core/storefront-zod/retailer-settings/adminPanelOnly.d.ts +11 -0
- package/dist/core/storefront-zod/retailer-settings/adminPanelOnly.js +8 -0
- package/dist/core/storefront-zod/retailer-settings/cartSummary.d.ts +14 -0
- package/dist/core/storefront-zod/retailer-settings/cartSummary.js +9 -0
- package/dist/core/storefront-zod/retailer-settings/checkout.d.ts +238 -0
- package/dist/core/storefront-zod/retailer-settings/checkout.js +15 -0
- package/dist/core/storefront-zod/retailer-settings/features.d.ts +890 -0
- package/dist/core/storefront-zod/retailer-settings/features.js +63 -0
- package/dist/core/storefront-zod/retailer-settings/index.d.ts +9917 -0
- package/dist/core/storefront-zod/retailer-settings/index.js +31 -0
- package/dist/core/storefront-zod/retailer-settings/integration.d.ts +28 -0
- package/dist/core/storefront-zod/retailer-settings/integration.js +12 -0
- package/dist/core/storefront-zod/retailer-settings/pdpSettings.d.ts +157 -0
- package/dist/core/storefront-zod/retailer-settings/pdpSettings.js +59 -0
- package/dist/core/storefront-zod/retailer-settings/performance.d.ts +8 -0
- package/dist/core/storefront-zod/retailer-settings/performance.js +7 -0
- package/dist/core/storefront-zod/retailer-settings/productCard.d.ts +307 -0
- package/dist/core/storefront-zod/retailer-settings/productCard.js +10 -0
- package/dist/core/storefront-zod/retailer-settings/sharedSchemas.d.ts +1675 -0
- package/dist/core/storefront-zod/retailer-settings/sharedSchemas.js +590 -0
- package/dist/core/storefront-zod/retailer-settings/siteSettings.d.ts +594 -0
- package/dist/core/storefront-zod/retailer-settings/siteSettings.js +79 -0
- package/dist/core/storefront-zod/retailer-settings/welcomeModal.d.ts +17 -0
- package/dist/core/storefront-zod/retailer-settings/welcomeModal.js +11 -0
- package/dist/index.d.ts +3 -1
- package/dist/index.js +20 -18
- package/dist/interfaces/retailer-settings.interfaces.d.ts +2 -2
- package/dist/storefront/SFUIImagesTemplate.AdminUi.js +1 -1
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +36 -47
- package/dist/storefront/defaultIconsStorefront.js +1 -1
- package/dist/storefront/defaultImagesStorefront.js +32 -32
- package/dist/storefront/defaultSettingsStorefront.js +1 -1
- package/dist/storefront/defaultSharedSettings.js +1 -1
- package/dist/storefront/defaultThemeStorefront.js +978 -981
- package/dist/sts/STSImagesTemplate.AdminUi.js +1 -1
- package/dist/sts/STSSettingsTemplate.AdminUi.js +1 -1
- package/dist/sts/defaultSettingsSts.js +1 -1
- package/dist/theme-templates/index.js +2 -2
- package/dist/zodSchemas/generator.d.ts +6 -0
- package/dist/zodSchemas/generator.js +12 -0
- package/dist/zodSchemas/retailer-settings-zod.d.ts +1 -0
- package/dist/zodSchemas/retailer-settings-zod.js +315 -0
- package/package.json +5 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminImagesTemplateSTS = void 0;
|
|
4
|
-
|
|
4
|
+
const SFUISettingsTemplate_AdminUi_1 = require("../storefront/SFUISettingsTemplate.AdminUi");
|
|
5
5
|
exports.AdminImagesTemplateSTS = {
|
|
6
6
|
logos: {
|
|
7
7
|
title: "Logos",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminSettingsTemplateSTS = void 0;
|
|
4
|
-
|
|
4
|
+
const SFUISettingsTemplate_AdminUi_1 = require("../storefront/SFUISettingsTemplate.AdminUi");
|
|
5
5
|
exports.AdminSettingsTemplateSTS = {
|
|
6
6
|
hasEUTerms: {
|
|
7
7
|
title: 'Has Eu Terms',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
const defaultThemeStorefront_1 = require("../storefront/defaultThemeStorefront");
|
|
4
|
+
const AllThemeTemplates = {
|
|
5
5
|
'Default Storefront': defaultThemeStorefront_1.default,
|
|
6
6
|
'Default STS': defaultThemeStorefront_1.default,
|
|
7
7
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const { generate } = require("ts-to-zod");
|
|
2
|
+
const fs = require("fs");
|
|
3
|
+
const path = require("path");
|
|
4
|
+
const filePath = path.join(__dirname, "../storefront/contentEngineComponents.ts");
|
|
5
|
+
// Read the file contents
|
|
6
|
+
const sourceText = fs.readFileSync(filePath, "utf-8");
|
|
7
|
+
// Generate Zod schemas from the TypeScript interfaces
|
|
8
|
+
const { getZodSchemasFile, errors } = generate({ sourceText });
|
|
9
|
+
fs.writeFileSync(path.join(__dirname, "../zodSchemas/contentEngineComponents.ts"), getZodSchemasFile());
|
|
10
|
+
// Output the generated schemas
|
|
11
|
+
//console.log("source text", getZodSchemasFile());
|
|
12
|
+
console.log("errors", errors);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
//import { z } from "zod";
|
|
2
|
+
//import { CMSComponentNames } from "../storefront/contentEngineComponents";
|
|
3
|
+
//
|
|
4
|
+
//export const iGlobalCheckoutPropsSchema = z.object({
|
|
5
|
+
// numericPhonePayload: z.boolean(),
|
|
6
|
+
//});
|
|
7
|
+
//
|
|
8
|
+
//export const iLoggingLevelSchema = z.union([
|
|
9
|
+
// z.literal("error"),
|
|
10
|
+
// z.literal("warning"),
|
|
11
|
+
// z.literal("info"),
|
|
12
|
+
// z.literal("debug"),
|
|
13
|
+
//]);
|
|
14
|
+
//
|
|
15
|
+
//export const iSiteSettingsSchema = z.object({
|
|
16
|
+
// anonymousCart: z.boolean(),
|
|
17
|
+
//});
|
|
18
|
+
//
|
|
19
|
+
//export const iCartSummaryLayoutSchema = z.object({
|
|
20
|
+
// showTaxTotal: z.boolean(),
|
|
21
|
+
// showTaxGroups: z.boolean(),
|
|
22
|
+
//});
|
|
23
|
+
//
|
|
24
|
+
//export const iExternalAppSTSSchema = z.object({
|
|
25
|
+
// customTermPolicy: z.string().optional(),
|
|
26
|
+
//});
|
|
27
|
+
//
|
|
28
|
+
//export const iRedPepperConfigSchema = z.object({
|
|
29
|
+
// locale: z.string(),
|
|
30
|
+
// zoom: z.number(),
|
|
31
|
+
// clientId: z.string().optional(),
|
|
32
|
+
// clientUrl: z.string().optional(),
|
|
33
|
+
// storeValue: z.string().optional(),
|
|
34
|
+
// flyerSkuKey: z.string().optional(),
|
|
35
|
+
//});
|
|
36
|
+
//
|
|
37
|
+
//export const iEnvNamesSchema = z.union([
|
|
38
|
+
// z.literal("dev"),
|
|
39
|
+
// z.literal("de2"),
|
|
40
|
+
// z.literal("qat"),
|
|
41
|
+
// z.literal("qa2"),
|
|
42
|
+
// z.literal("int"),
|
|
43
|
+
// z.literal("in2"),
|
|
44
|
+
// z.literal("lod"),
|
|
45
|
+
// z.literal("lo2"),
|
|
46
|
+
// z.literal("stg"),
|
|
47
|
+
// z.literal("st2"),
|
|
48
|
+
// z.literal("stagingConfig"),
|
|
49
|
+
// z.literal("productionConfig"),
|
|
50
|
+
//]);
|
|
51
|
+
//
|
|
52
|
+
//export const iPageNamesForAdvertsSchema = z.record(
|
|
53
|
+
// iAdvertSettingsSchema.keyof(),
|
|
54
|
+
// z.string(),
|
|
55
|
+
//);
|
|
56
|
+
//
|
|
57
|
+
//export const iBarcodeOptionsSchema = z.object({
|
|
58
|
+
// width: z.number().optional(),
|
|
59
|
+
// height: z.number().optional(),
|
|
60
|
+
// format: z
|
|
61
|
+
// .union([
|
|
62
|
+
// z.literal("CODE39"),
|
|
63
|
+
// z.literal("CODE128"),
|
|
64
|
+
// z.literal("EAN13"),
|
|
65
|
+
// z.literal("ITF14"),
|
|
66
|
+
// z.literal("MSI"),
|
|
67
|
+
// z.literal("pharmacode"),
|
|
68
|
+
// z.literal("codabar"),
|
|
69
|
+
// z.literal("upc"),
|
|
70
|
+
// ])
|
|
71
|
+
// .optional(),
|
|
72
|
+
// displayValue: z.boolean().optional(),
|
|
73
|
+
// fontOptions: z.string().optional(),
|
|
74
|
+
// font: z.string().optional(),
|
|
75
|
+
// textAlign: z.string().optional(),
|
|
76
|
+
// textPosition: z.string().optional(),
|
|
77
|
+
// textMargin: z.number().optional(),
|
|
78
|
+
// fontSize: z.number().optional(),
|
|
79
|
+
// background: z.string().optional(),
|
|
80
|
+
// lineColor: z.string().optional(),
|
|
81
|
+
// margin: z.number().optional(),
|
|
82
|
+
// marginTop: z.number().optional(),
|
|
83
|
+
// marginBottom: z.number().optional(),
|
|
84
|
+
// marginLeft: z.number().optional(),
|
|
85
|
+
// marginRight: z.number().optional(),
|
|
86
|
+
//});
|
|
87
|
+
//
|
|
88
|
+
//const cmsComponentsValues = Object.values(CMSComponentNames) as [
|
|
89
|
+
// keyof typeof CMSComponentNames,
|
|
90
|
+
//];
|
|
91
|
+
//
|
|
92
|
+
//const iUseContentEngineV2ComponentsSchema = z.record(
|
|
93
|
+
// z.enum(cmsComponentsValues),
|
|
94
|
+
// z.boolean(),
|
|
95
|
+
//);
|
|
96
|
+
//
|
|
97
|
+
//export const iHeaderLinksLayoutSchema = z.object({
|
|
98
|
+
// enabled: z.boolean(),
|
|
99
|
+
// dimension: z.number(),
|
|
100
|
+
//});
|
|
101
|
+
//
|
|
102
|
+
//export const iScrollToTopButtonSchema = z.object({
|
|
103
|
+
// enabled: z.boolean(),
|
|
104
|
+
// percentOffset: z.object({
|
|
105
|
+
// right: z.number(),
|
|
106
|
+
// bottom: z.number(),
|
|
107
|
+
// }),
|
|
108
|
+
//});
|
|
109
|
+
//
|
|
110
|
+
//export const iShowShopAllLinkSchema = z.object({
|
|
111
|
+
// enabled: z.boolean(),
|
|
112
|
+
//});
|
|
113
|
+
//
|
|
114
|
+
//export const iLayoutSettingsSchema = z.object({
|
|
115
|
+
// footerVersion: iFooterTypesSchema,
|
|
116
|
+
//});
|
|
117
|
+
//
|
|
118
|
+
//export const iFlyerProvidersSchema = z.union([
|
|
119
|
+
// z.literal("flipp"),
|
|
120
|
+
// z.literal("redPepper"),
|
|
121
|
+
//]);
|
|
122
|
+
//
|
|
123
|
+
//export const iDefaultExternalSchema = z.object({
|
|
124
|
+
// provider: z.union([z.literal("brandbank"), z.literal("syndigo")]),
|
|
125
|
+
//});
|
|
126
|
+
//
|
|
127
|
+
//export const iAddressIntegrationSchema = z.object({
|
|
128
|
+
// enabled: z.boolean(),
|
|
129
|
+
// addressFinderType: iAddressFinderTypeSchema,
|
|
130
|
+
// useForNewAddresses: z.boolean(),
|
|
131
|
+
//});
|
|
132
|
+
//
|
|
133
|
+
//export const iLabelConfigSchema = z.union([
|
|
134
|
+
// z.object({
|
|
135
|
+
// _type: z.union([z.literal("pointPromo"), z.literal("promo")]),
|
|
136
|
+
// limit: z.number(),
|
|
137
|
+
// }),
|
|
138
|
+
// z.object({
|
|
139
|
+
// _type: z.literal("tprPromo"),
|
|
140
|
+
// }),
|
|
141
|
+
//]);
|
|
142
|
+
//
|
|
143
|
+
//// This is not part of the Settings
|
|
144
|
+
////export const iProductCardILayoutTypesSchema = iProductCardLayoutsSchema.keyof();
|
|
145
|
+
//
|
|
146
|
+
//export const pdpDetailsElementLayoutSchema = z.union([
|
|
147
|
+
// z.literal("productNutrition"),
|
|
148
|
+
// z.literal("productIngredients"),
|
|
149
|
+
// z.literal("productDescription"),
|
|
150
|
+
// z.literal("sodiumWarning"),
|
|
151
|
+
// z.literal("productNumber"),
|
|
152
|
+
// z.literal("recommendations"),
|
|
153
|
+
// z.literal("productSalesInfo"),
|
|
154
|
+
// z.string(),
|
|
155
|
+
//]);
|
|
156
|
+
//
|
|
157
|
+
//export const iAccountPageSettingsSchema = z.object({
|
|
158
|
+
// loyaltyTab: z.object({
|
|
159
|
+
// disabledEdit: z.boolean().optional(),
|
|
160
|
+
// enabled: z.boolean(),
|
|
161
|
+
// loyaltyNumberLength: z.number(),
|
|
162
|
+
// loyaltyNumberPrefix: z.string(),
|
|
163
|
+
// loyaltyValidationType: z.array(iValidationTypeSchema),
|
|
164
|
+
// }),
|
|
165
|
+
//});
|
|
166
|
+
//
|
|
167
|
+
//export const iExternalAppsSchema = z.object({
|
|
168
|
+
// sts: iExternalAppSTSSchema.optional(),
|
|
169
|
+
//});
|
|
170
|
+
//
|
|
171
|
+
//export const iFeatureSwitchSchema = z.object({
|
|
172
|
+
// additionalCharges: z.boolean(),
|
|
173
|
+
// clientCache: z.boolean(),
|
|
174
|
+
// vouchers: iVouchersSchema,
|
|
175
|
+
// giftCards: iGiftCardsSchema,
|
|
176
|
+
// smartbanner: iSmartBannerSchema,
|
|
177
|
+
// entryModalVersion: iEntryModalVersionSchema,
|
|
178
|
+
// addressIntegration: iAddressIntegrationSchema,
|
|
179
|
+
// hideAlcoholRule: iShoppingRuleControlSchema,
|
|
180
|
+
// addressIntegrationV2: z.boolean(),
|
|
181
|
+
//});
|
|
182
|
+
//
|
|
183
|
+
//export const iGlobalLayoutsSchema = z.object({
|
|
184
|
+
// cartSummary: iCartSummaryLayoutSchema,
|
|
185
|
+
// couponGallery: iCouponGalleryLayoutSchema,
|
|
186
|
+
//});
|
|
187
|
+
//
|
|
188
|
+
//export const iAddressesSettingsSchema = z.object({
|
|
189
|
+
// addressValidationTypes: iAddressValidationTypesSchema,
|
|
190
|
+
// eircode: z.object({
|
|
191
|
+
// enabled: z.boolean(),
|
|
192
|
+
// url: z.string(),
|
|
193
|
+
// }),
|
|
194
|
+
// integration: z.object({
|
|
195
|
+
// enabled: z.boolean(),
|
|
196
|
+
// addressFinderType: iAddressFinderTypeSchema,
|
|
197
|
+
// addNewAddressUrl: z.string(),
|
|
198
|
+
// editAddressUrl: z.string(),
|
|
199
|
+
// deleteAddressUrl: z.string(),
|
|
200
|
+
// getLocationUrl: z.string(),
|
|
201
|
+
// getAddressesUrl: z.string(),
|
|
202
|
+
// }),
|
|
203
|
+
// useAddressValidation: z.boolean(),
|
|
204
|
+
// disableAddressOnDelivery: z.boolean(),
|
|
205
|
+
//});
|
|
206
|
+
//
|
|
207
|
+
//export const iRetailerSettingsSchema = z.object({
|
|
208
|
+
// accountPage: iAccountPageSettingsSchema.optional(),
|
|
209
|
+
// additionalCharges: z.boolean().optional(),
|
|
210
|
+
// subscriptions: z.boolean().optional(),
|
|
211
|
+
// creditBalance: z.boolean().optional(),
|
|
212
|
+
// addresses: z
|
|
213
|
+
// .object({
|
|
214
|
+
// addressValidationTypes: iAddressValidationTypesSchema.optional(),
|
|
215
|
+
// canadianAddressCompleteKey: z
|
|
216
|
+
// .union([z.string(), z.undefined()])
|
|
217
|
+
// .optional(),
|
|
218
|
+
// eircodeUrl: z.string().optional().nullable(),
|
|
219
|
+
// integration: z
|
|
220
|
+
// .object({
|
|
221
|
+
// addNewAddressUrl: z.union([z.string(), z.undefined()]),
|
|
222
|
+
// editAddressUrl: z.union([z.string(), z.undefined()]),
|
|
223
|
+
// deleteAddressUrl: z.union([z.string(), z.undefined()]),
|
|
224
|
+
// })
|
|
225
|
+
// .optional(),
|
|
226
|
+
// useAddressValidation: z.boolean().optional(),
|
|
227
|
+
// })
|
|
228
|
+
// .optional(),
|
|
229
|
+
// addressValidationTypes: iAddressValidationTypesSchema.optional(),
|
|
230
|
+
// advertSettings: iAdvertSettingsSchema.optional(),
|
|
231
|
+
// allowInStorePurchases: z.boolean().optional(),
|
|
232
|
+
// allowPastPurchases: z.boolean().optional(),
|
|
233
|
+
// buildNumber: z.string(),
|
|
234
|
+
// cacheTimeMins: z.number().optional(),
|
|
235
|
+
// canadianAddressCompleteKey: z.union([z.string(), z.undefined()]).optional(),
|
|
236
|
+
// checkout: iGlobalCheckoutPropsSchema.optional(),
|
|
237
|
+
// checkoutV1: z.boolean().optional(),
|
|
238
|
+
// checkoutValidation: iCheckoutValidationSchema.optional(),
|
|
239
|
+
// ctaButtons: iCtaButtonsSchema.optional(),
|
|
240
|
+
// daysToRemainSignedIn: z.number().min(1).max(999).optional(),
|
|
241
|
+
// defaultCountry: iDefaultCountySchema.optional(),
|
|
242
|
+
// defaultSearchParams: iDefaultSearchParamsSchema.optional(),
|
|
243
|
+
// defaultShoppingMode: z
|
|
244
|
+
// .union([z.literal("pickup"), z.literal("planning"), z.literal("delivery")])
|
|
245
|
+
// .optional(),
|
|
246
|
+
// defaultStoreLocation: iDefaultStoreLocationSchema.optional(),
|
|
247
|
+
// disableTprPrice: z.boolean().optional(),
|
|
248
|
+
// documentTitle: z.string().optional(),
|
|
249
|
+
// eircode: z.string().optional().nullable(),
|
|
250
|
+
// enable3dSecure: z.boolean().optional(),
|
|
251
|
+
// googleTranslateWidget: iGoogleTranslateWidgetSchema.optional(),
|
|
252
|
+
// enableNewsletterSignup: z.boolean().optional(),
|
|
253
|
+
// enableNotifications: z.boolean().optional(),
|
|
254
|
+
// enableRecipeSearch: z.boolean().optional(),
|
|
255
|
+
// entryModalVersion: iEntryModalVersionSchema.optional(),
|
|
256
|
+
// hideAlcoholRule: iShoppingRuleControlSchema.optional(),
|
|
257
|
+
// errorLoggingLevel: iLoggingLevelSchema.optional(),
|
|
258
|
+
// externalApps: iExternalAppsSchema.optional(),
|
|
259
|
+
// externalStoreSelectorUrl: z.union([z.string(), z.undefined()]).optional(),
|
|
260
|
+
// favoritesV1: z.boolean().optional(),
|
|
261
|
+
// featureSwitch: iFeatureSwitchSchema.optional(),
|
|
262
|
+
// flipp: z
|
|
263
|
+
// .union([iFlippConfigSchema, iFlippConfigV2Schema])
|
|
264
|
+
// .optional()
|
|
265
|
+
// .nullable(),
|
|
266
|
+
// globalAnimations: iGlobalAnimationsSchema.optional(),
|
|
267
|
+
// googleAutocompleteSettings: iGoogleAutocompleteSettingsSchema.optional(),
|
|
268
|
+
// gtmId: z.union([z.undefined(), z.string()]).optional(),
|
|
269
|
+
// hideTaxOnSummary: z.boolean().optional(),
|
|
270
|
+
// houseAccountRegExValidation: z.string().optional(),
|
|
271
|
+
// idpTarget: z.union([z.literal("_self"), z.literal("_blank")]).optional(),
|
|
272
|
+
// idpUrl: z.union([z.undefined(), z.string()]).optional(),
|
|
273
|
+
// instacartUrl: z.union([z.string(), z.undefined()]).optional(),
|
|
274
|
+
// isPlanningOnly: z.boolean().optional(),
|
|
275
|
+
// RemoveAllOutOfStock: z.boolean().optional(),
|
|
276
|
+
// layout: iLayoutSettingsSchema.optional(),
|
|
277
|
+
// layouts: iGlobalLayoutsSchema.optional(),
|
|
278
|
+
// limitProductCardTitleHeight: z.boolean().optional(),
|
|
279
|
+
// loggingLevelClient: iLoggingLevelSchema.optional(),
|
|
280
|
+
// loggingLevelServer: iLoggingLevelSchema.optional(),
|
|
281
|
+
// mainHeaderHeight: z.number().optional(),
|
|
282
|
+
// maintainCustomerJourney: z.boolean().optional(),
|
|
283
|
+
// maintainCustomerPreferences: iMaintainCustomerPreferencesSchema.optional(),
|
|
284
|
+
// mapZoom: z.number().optional(),
|
|
285
|
+
// minimumCreditCardAmount: z.number().optional(),
|
|
286
|
+
// nutritionZone: iNutritionZoneSchema.optional(),
|
|
287
|
+
// paymentCards: iPaymentCardsSchema.optional(),
|
|
288
|
+
// pdpDetailsLayout: iProductDetailsPageLayoutSchema.optional(),
|
|
289
|
+
// productCardTitleHeight: z.number().optional(),
|
|
290
|
+
// productCards: iProductCardsPropsSchema.optional(),
|
|
291
|
+
// productCardv2: z.boolean().optional(),
|
|
292
|
+
// promoTemplateVersion: z.number().optional(),
|
|
293
|
+
// registrationFields: z.array(iRegistrationFieldSchema).optional(),
|
|
294
|
+
// restrictMapPlacesResults: iRestrictMapPlacesSchema.optional(),
|
|
295
|
+
// retailerCountry: iRetailerCountrySchema.optional(),
|
|
296
|
+
// retailerName: z.string(),
|
|
297
|
+
// searchPreview: iSearchPreviewVisibilitySchema.optional(),
|
|
298
|
+
// secondTierAuthorization: iSecondTierAuthorizationSchema.optional(),
|
|
299
|
+
// showCheckoutPromoCode: z.boolean().optional(),
|
|
300
|
+
// showImgOnOrder: z.boolean().optional(),
|
|
301
|
+
// showRewardPromoChangeTimeslotMsg: z.boolean().optional(),
|
|
302
|
+
// siteSettings: iSiteSettingsSchema.optional(),
|
|
303
|
+
// smartBanner: iSmartBannerSchema.optional(),
|
|
304
|
+
// smsNotifications: iSMSConfigSchema.optional(),
|
|
305
|
+
// sodiumWarning: iSodiumWarningSchema.optional(),
|
|
306
|
+
// specialRequestItems: z.boolean().optional(),
|
|
307
|
+
// subHeaderHeight: z.number().optional(),
|
|
308
|
+
// TimeslotModalSettings: iTimeslotModalSettingsSchema.optional(),
|
|
309
|
+
// useAddressValidation: z.boolean().optional(),
|
|
310
|
+
//});
|
|
311
|
+
//
|
|
312
|
+
//export const iAllSettingsSchema = z.record(
|
|
313
|
+
// iEnvNamesSchema,
|
|
314
|
+
// iRetailerSettingsSchema,
|
|
315
|
+
//);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.155-2.zod",
|
|
4
4
|
"description": "Shared interfaces and defaults for all Wynshop themed apps.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "gulp",
|
|
@@ -25,7 +25,10 @@
|
|
|
25
25
|
"imagemin-svgo": "9.0.0",
|
|
26
26
|
"svgo": "3.0.2",
|
|
27
27
|
"ts-node": "^10.8.1",
|
|
28
|
-
"
|
|
28
|
+
"ts-to-zod": "3.13.0",
|
|
29
|
+
"typescript": "4.6.3",
|
|
30
|
+
"zod-to-json-schema": "3.23.3",
|
|
31
|
+
"zod": "3.23.8"
|
|
29
32
|
},
|
|
30
33
|
"config": {
|
|
31
34
|
"commitizen": {
|