@thryveai/theme-interfaces 2.7.155-3.zod → 2.7.155-4.schemas
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/JSONSchemas/index.d.ts +5550 -0
- package/dist/JSONSchemas/index.js +7516 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +18 -20
- package/dist/interfaces/default-settings.interfaces.d.ts +2 -0
- package/dist/interfaces/default-theme.interface.d.ts +3 -0
- package/dist/interfaces/icons.interfaces.d.ts +2 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +1 -2
- package/dist/interfaces/shared-settings-interfaces.d.ts +2 -0
- package/dist/storefront/SFUIImagesTemplate.AdminUi.js +1 -1
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +47 -36
- 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 +981 -978
- 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/package.json +3 -5
- package/dist/core/interfaces/default-settings.interfaces.d.ts +0 -3
- package/dist/core/interfaces/default-settings.interfaces.js +0 -2
- package/dist/core/storefront-zod/retailer-settings/accountPage.d.ts +0 -687
- package/dist/core/storefront-zod/retailer-settings/accountPage.js +0 -54
- package/dist/core/storefront-zod/retailer-settings/addressSettings.d.ts +0 -828
- package/dist/core/storefront-zod/retailer-settings/addressSettings.js +0 -23
- package/dist/core/storefront-zod/retailer-settings/adminPanelOnly.d.ts +0 -11
- package/dist/core/storefront-zod/retailer-settings/adminPanelOnly.js +0 -8
- package/dist/core/storefront-zod/retailer-settings/cartSummary.d.ts +0 -14
- package/dist/core/storefront-zod/retailer-settings/cartSummary.js +0 -9
- package/dist/core/storefront-zod/retailer-settings/checkout.d.ts +0 -238
- package/dist/core/storefront-zod/retailer-settings/checkout.js +0 -15
- package/dist/core/storefront-zod/retailer-settings/features.d.ts +0 -848
- package/dist/core/storefront-zod/retailer-settings/features.js +0 -63
- package/dist/core/storefront-zod/retailer-settings/index.d.ts +0 -9805
- package/dist/core/storefront-zod/retailer-settings/index.js +0 -31
- package/dist/core/storefront-zod/retailer-settings/integration.d.ts +0 -28
- package/dist/core/storefront-zod/retailer-settings/integration.js +0 -12
- package/dist/core/storefront-zod/retailer-settings/pdpSettings.d.ts +0 -157
- package/dist/core/storefront-zod/retailer-settings/pdpSettings.js +0 -59
- package/dist/core/storefront-zod/retailer-settings/performance.d.ts +0 -8
- package/dist/core/storefront-zod/retailer-settings/performance.js +0 -7
- package/dist/core/storefront-zod/retailer-settings/productCard.d.ts +0 -307
- package/dist/core/storefront-zod/retailer-settings/productCard.js +0 -10
- package/dist/core/storefront-zod/retailer-settings/sharedSchemas.d.ts +0 -1647
- package/dist/core/storefront-zod/retailer-settings/sharedSchemas.js +0 -592
- package/dist/core/storefront-zod/retailer-settings/siteSettings.d.ts +0 -594
- package/dist/core/storefront-zod/retailer-settings/siteSettings.js +0 -79
- package/dist/core/storefront-zod/retailer-settings/welcomeModal.d.ts +0 -17
- package/dist/core/storefront-zod/retailer-settings/welcomeModal.js +0 -11
- package/dist/zodSchemas/generator.d.ts +0 -6
- package/dist/zodSchemas/generator.js +0 -12
- package/dist/zodSchemas/retailer-settings-zod.d.ts +0 -1
- package/dist/zodSchemas/retailer-settings-zod.js +0 -315
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iSiteSettingsV2Schema = exports.iShowShopAllLinkSchema = exports.iScrollToTopButtonSchema = exports.iHeaderLinksLayoutSchema = exports.iMobileViewCardLayoutSchema = exports.iCookieProSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const contentEngineComponents_1 = require("../../../storefront/contentEngineComponents");
|
|
6
|
-
const sharedSchemas_1 = require("./sharedSchemas");
|
|
7
|
-
exports.iCookieProSchema = zod_1.z.object({
|
|
8
|
-
enabled: zod_1.z.boolean(),
|
|
9
|
-
src: zod_1.z.string(),
|
|
10
|
-
domain: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
exports.iMobileViewCardLayoutSchema = zod_1.z.object({
|
|
13
|
-
enabled: zod_1.z.boolean(),
|
|
14
|
-
defaultView: zod_1.z.union([zod_1.z.literal("List"), zod_1.z.literal("Grid")]),
|
|
15
|
-
});
|
|
16
|
-
const cmsComponentsValues = Object.values(contentEngineComponents_1.CMSComponentNames);
|
|
17
|
-
const iUseContentEngineV2ComponentsSchema = zod_1.z.record(zod_1.z.enum(cmsComponentsValues), zod_1.z.boolean());
|
|
18
|
-
exports.iHeaderLinksLayoutSchema = zod_1.z.object({
|
|
19
|
-
enabled: zod_1.z.boolean(),
|
|
20
|
-
dimension: zod_1.z.number(),
|
|
21
|
-
});
|
|
22
|
-
exports.iScrollToTopButtonSchema = zod_1.z.object({
|
|
23
|
-
enabled: zod_1.z.boolean(),
|
|
24
|
-
percentOffset: zod_1.z.object({
|
|
25
|
-
right: zod_1.z.number(),
|
|
26
|
-
bottom: zod_1.z.number(),
|
|
27
|
-
}),
|
|
28
|
-
});
|
|
29
|
-
exports.iShowShopAllLinkSchema = zod_1.z.object({
|
|
30
|
-
enabled: zod_1.z.boolean(),
|
|
31
|
-
});
|
|
32
|
-
exports.iSiteSettingsV2Schema = zod_1.z.object({
|
|
33
|
-
clientSideOrderModify: zod_1.z.boolean(),
|
|
34
|
-
cookiePro: exports.iCookieProSchema,
|
|
35
|
-
anonymousCart: zod_1.z.boolean(),
|
|
36
|
-
ctaButtons: zod_1.z.union([sharedSchemas_1.iCtaButtonsSchema, zod_1.z.undefined()]).nullable(),
|
|
37
|
-
cmsLazyLoadRows: zod_1.z.number(),
|
|
38
|
-
daysToRemainSignedIn: zod_1.z.number(),
|
|
39
|
-
defaultCountry: sharedSchemas_1.iDefaultCountySchema,
|
|
40
|
-
defaultLanguage: zod_1.z.string(),
|
|
41
|
-
defaultSearchParams: sharedSchemas_1.iDefaultSearchParamsSchema,
|
|
42
|
-
defaultShoppingMode: zod_1.z.union([
|
|
43
|
-
zod_1.z.literal("pickup"),
|
|
44
|
-
zod_1.z.literal("planning"),
|
|
45
|
-
zod_1.z.literal("delivery"),
|
|
46
|
-
]),
|
|
47
|
-
defaultStoreLocation: sharedSchemas_1.iDefaultStoreLocationSchema,
|
|
48
|
-
defaultTabView: zod_1.z.union([zod_1.z.literal("listView"), zod_1.z.literal("mapView")]),
|
|
49
|
-
showChangeCustomerEmail: zod_1.z.boolean(),
|
|
50
|
-
disableTprPrice: zod_1.z.boolean(),
|
|
51
|
-
mobileViewCardLayout: exports.iMobileViewCardLayoutSchema,
|
|
52
|
-
footerVersion: sharedSchemas_1.iFooterTypesSchema,
|
|
53
|
-
googleAutocompleteSettings: sharedSchemas_1.iGoogleAutocompleteSettingsSchema,
|
|
54
|
-
gtmId: zod_1.z.string(),
|
|
55
|
-
hideWelcomeModalOnCorporate: zod_1.z.boolean(),
|
|
56
|
-
isPlanningOnly: zod_1.z.boolean(),
|
|
57
|
-
RemoveAllOutOfStock: zod_1.z.boolean(),
|
|
58
|
-
mainHeaderHeight: zod_1.z.number(),
|
|
59
|
-
maintainCustomerJourney: zod_1.z.boolean(),
|
|
60
|
-
maintainCustomerPreferences: sharedSchemas_1.iMaintainCustomerPreferencesSchema,
|
|
61
|
-
mapZoom: zod_1.z.number(),
|
|
62
|
-
promoTemplateVersion: zod_1.z.number(),
|
|
63
|
-
restrictMapPlacesResults: sharedSchemas_1.iRestrictMapPlacesSchema,
|
|
64
|
-
retailerCountry: sharedSchemas_1.iRetailerCountrySchema,
|
|
65
|
-
retailerName: zod_1.z.string(),
|
|
66
|
-
searchPreview: sharedSchemas_1.iSearchPreviewVisibilitySchema,
|
|
67
|
-
subHeaderHeight: zod_1.z.number(),
|
|
68
|
-
timeslotModalSettings: sharedSchemas_1.iTimeslotModalSettingsSchema,
|
|
69
|
-
useContentEngineV2Components: iUseContentEngineV2ComponentsSchema,
|
|
70
|
-
isLegacyProductURL: zod_1.z.boolean(),
|
|
71
|
-
headerLinks: exports.iHeaderLinksLayoutSchema,
|
|
72
|
-
useAdsV1: zod_1.z.boolean(),
|
|
73
|
-
advertProductView: zod_1.z.boolean(),
|
|
74
|
-
showCartValueOnMobile: zod_1.z.boolean(),
|
|
75
|
-
scrollToTopButton: exports.iScrollToTopButtonSchema,
|
|
76
|
-
clientRenderCoupons: zod_1.z.boolean(),
|
|
77
|
-
showShopAllLink: exports.iShowShopAllLinkSchema,
|
|
78
|
-
showEmptyMiniList: zod_1.z.boolean(),
|
|
79
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const iWelcomeModalV2Schema: z.ZodObject<{
|
|
3
|
-
label: z.ZodString;
|
|
4
|
-
href: z.ZodString;
|
|
5
|
-
target: z.ZodUnion<[z.ZodLiteral<"_blank">, z.ZodLiteral<"_self">, z.ZodLiteral<"_parent">, z.ZodLiteral<"_top">]>;
|
|
6
|
-
icon: z.ZodString;
|
|
7
|
-
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
label?: string;
|
|
9
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
10
|
-
href?: string;
|
|
11
|
-
icon?: string;
|
|
12
|
-
}, {
|
|
13
|
-
label?: string;
|
|
14
|
-
target?: "_blank" | "_self" | "_parent" | "_top";
|
|
15
|
-
href?: string;
|
|
16
|
-
icon?: string;
|
|
17
|
-
}>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iWelcomeModalV2Schema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const sharedSchemas_1 = require("./sharedSchemas");
|
|
6
|
-
exports.iWelcomeModalV2Schema = zod_1.z.object({
|
|
7
|
-
label: zod_1.z.string(),
|
|
8
|
-
href: zod_1.z.string(),
|
|
9
|
-
target: sharedSchemas_1.linkTargetSchema,
|
|
10
|
-
icon: zod_1.z.string(),
|
|
11
|
-
});
|
|
@@ -1,12 +0,0 @@
|
|
|
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);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,315 +0,0 @@
|
|
|
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
|
-
//);
|