@thryveai/theme-interfaces 2.3.16 → 2.4.2
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/README.md +29 -29
- package/dist/index.d.ts +4 -4
- package/dist/interfaces/admin-settings-interfaces.d.ts +7 -1
- package/dist/interfaces/default-settings.interfaces.d.ts +18 -5
- package/dist/interfaces/default-settings.interfaces.js +1 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +137 -8
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +605 -588
- package/dist/storefront/defaultSettingsStorefront.d.ts +2 -2
- package/dist/storefront/defaultSettingsStorefront.js +197 -207
- package/package.json +21 -18
package/README.md
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
#V8 Theme Interfaces
|
|
2
|
-
|
|
3
|
-
interfaces for all MI9 Retailer Themes.
|
|
4
|
-
|
|
5
|
-
###icons.interfaces
|
|
6
|
-
List of all icons used inside the ui projects.
|
|
7
|
-
|
|
8
|
-
###retailer-settings.interfaces
|
|
9
|
-
more info here
|
|
10
|
-
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
-
###theme.interfaces
|
|
12
|
-
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
-
|
|
14
|
-
#To Build Project
|
|
15
|
-
|
|
16
|
-
```
|
|
17
|
-
npm install
|
|
18
|
-
npm run build
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
#To Publish npm package
|
|
22
|
-
```
|
|
23
|
-
npm login
|
|
24
|
-
npm publish
|
|
25
|
-
```
|
|
26
|
-
or
|
|
27
|
-
```
|
|
28
|
-
npm run push
|
|
29
|
-
```
|
|
1
|
+
#V8 Theme Interfaces
|
|
2
|
+
|
|
3
|
+
interfaces for all MI9 Retailer Themes.
|
|
4
|
+
|
|
5
|
+
###icons.interfaces
|
|
6
|
+
List of all icons used inside the ui projects.
|
|
7
|
+
|
|
8
|
+
###retailer-settings.interfaces
|
|
9
|
+
more info here
|
|
10
|
+
https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
|
|
11
|
+
###theme.interfaces
|
|
12
|
+
The interface for each theme, colors, fonts, sizes and other css properties.
|
|
13
|
+
|
|
14
|
+
#To Build Project
|
|
15
|
+
|
|
16
|
+
```
|
|
17
|
+
npm install
|
|
18
|
+
npm run build
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#To Publish npm package
|
|
22
|
+
```
|
|
23
|
+
npm login
|
|
24
|
+
npm publish
|
|
25
|
+
```
|
|
26
|
+
or
|
|
27
|
+
```
|
|
28
|
+
npm run push
|
|
29
|
+
```
|
package/dist/index.d.ts
CHANGED
|
@@ -11,15 +11,15 @@ import { IconNamesToFiles } from "./interfaces/icons.interfaces";
|
|
|
11
11
|
import AllThemeTemplates from "./theme-templates";
|
|
12
12
|
import { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminImagesTemplateSFUI, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator } from "./interfaces/admin-settings-interfaces";
|
|
13
13
|
import { IAdminImagesControls, ISecondaryFaviconType } from "./interfaces/admin-images-interfaces";
|
|
14
|
-
import {
|
|
14
|
+
import { IDefaultRetailerSettingsVersion2 } from "./interfaces/default-settings.interfaces";
|
|
15
15
|
import { IDefaultStsSettings } from "./interfaces/sts-settings.interfaces";
|
|
16
|
-
import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion } from "./interfaces/retailer-settings.interfaces";
|
|
16
|
+
import { IAdvertsData, PdpDetailsElementLayout, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, ICouponGalleryLayout, IPageAdvertsRow, IEntryModalVersion, IShoppingRuleControl, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2 } from "./interfaces/retailer-settings.interfaces";
|
|
17
17
|
import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames } from "./interfaces/icons.interfaces";
|
|
18
18
|
import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./interfaces/theme.interfaces";
|
|
19
19
|
import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, IIconPosition } from "./interfaces/default-theme.interface";
|
|
20
20
|
export { DefaultConfigSFUI, DefaultConfigSTS, AllThemeTemplates, DefaultThemeSFUI, globalTheme, DefaultThemeColors, DefaultImagesSFUI, AdminSettingsTemplateSFUI, AdminSettingsTemplateSTS, AdminTemplateInputTypes, AdminImagesTemplateSFUI, AdminThemeTemplateSFUI, AdminThemeTemplateOptions, AdminImagesTemplateSTS, IconNamesToFiles, };
|
|
21
21
|
export { IAdminTemplateInputTypes, IAdminSettingsTemplate, IAdminSettingsTemplateSTS, IAdminControl, IAdminControlType, IThemeGenerator, IAdminImagesTemplateSFUI, IAdminImagesTemplateSTS, IAdminThemeTemplateSFUI, IAdminThemeTemplateOptions, IAdminImagesControls, ISecondaryFaviconType, };
|
|
22
|
-
export {
|
|
22
|
+
export { IDefaultRetailerSettingsVersion2, IDefaultStsSettings };
|
|
23
23
|
export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IBrandColors, IUiColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource, ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource, IIconPosition, };
|
|
24
24
|
export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames };
|
|
25
|
-
export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, };
|
|
25
|
+
export { PdpDetailsElementLayout, ISearchPreview, IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateMultipleLengths, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, IAdvertLeaderboards, IAdvertProductGrid, IAdvertSkyScrapers, IPageNamesForAdverts, IAddressValidationTypes, IAdvertSettings, IGoogleAutocompleteSettings, ITimeslotModalSettings, ISodiumWarning, IProductCardsProps, IProductDetailsPageLayout, ICartSummaryLayout, ISmartBanner, IEntryModalVersion, IShoppingRuleControl, ICouponGalleryLayout, IPageAdvertsRow, IScreenType, IProductCardLayoutObjects, IProductCardILayoutVersions, IProductCardILayoutTypes, IAdvertsData, IAdminOnlyV2, IAccountPageV2, IAddressesSettingsV2, ICartSummaryV2, ICheckoutSettingsV2, IFeaturesV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, };
|
|
@@ -5,8 +5,14 @@ export declare type IAdminTemplateInputTypes = {
|
|
|
5
5
|
};
|
|
6
6
|
export interface IAdminSettingsTemplate {
|
|
7
7
|
adminPanelOnly: IAdminControl;
|
|
8
|
-
|
|
8
|
+
accountPage: IAdminControl;
|
|
9
|
+
addressSettings: IAdminControl;
|
|
10
|
+
cartSummary: IAdminControl;
|
|
11
|
+
checkout: IAdminControl;
|
|
9
12
|
features: IAdminControl;
|
|
13
|
+
pdpSettings: IAdminControl;
|
|
14
|
+
productCard: IAdminControl;
|
|
15
|
+
siteSettings: IAdminControl;
|
|
10
16
|
}
|
|
11
17
|
export interface IAdminControl {
|
|
12
18
|
title: string;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { IAccountPageSettings,
|
|
1
|
+
import { IAccountPageSettings, IAccountPageV2, IAddressIntegration, IAddressValidationTypes, IAddressesSettings, IAddressesSettingsV2, IAdminOnlyV2, IAdvertSettings, ICartSummaryV2, ICheckoutSettingsV2, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFeaturesV2, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IPdpSettingsV2, IProductCardSettingsV2, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISMSConfig, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISiteSettingsV2, ISodiumWarning, ITimeslotModalSettings } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IDefaultRetailerSettings {
|
|
3
|
+
accountPage: IAccountPageSettings;
|
|
4
|
+
addressIntegration: IAddressIntegration;
|
|
5
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
6
|
+
addresses: IAddressesSettings;
|
|
3
7
|
adminPanelOnly: {
|
|
4
8
|
bannerName: string;
|
|
5
9
|
logoUrl: string;
|
|
6
10
|
};
|
|
7
|
-
accountPage: IAccountPageSettings;
|
|
8
|
-
addressValidationTypes: IAddressValidationTypes;
|
|
9
|
-
addresses: IAddressesSettings;
|
|
10
11
|
advertSettings: IAdvertSettings;
|
|
11
12
|
allowInStorePurchases: boolean;
|
|
12
13
|
allowPastPurchases: boolean;
|
|
@@ -49,6 +50,7 @@ export interface IDefaultRetailerSettings {
|
|
|
49
50
|
loggingLevelClient: ILoggingLevel;
|
|
50
51
|
loggingLevelServer: ILoggingLevel;
|
|
51
52
|
mainHeaderHeight: number;
|
|
53
|
+
maintainCustomerJourney: boolean;
|
|
52
54
|
mapZoom: number;
|
|
53
55
|
minimumCreditCardAmount: number;
|
|
54
56
|
nutritionZone: INutritionZone;
|
|
@@ -64,9 +66,9 @@ export interface IDefaultRetailerSettings {
|
|
|
64
66
|
retailerName: string;
|
|
65
67
|
searchPreview: ISearchPreviewVisibility;
|
|
66
68
|
secondTierAuthorization?: ISecondTierAuthorization;
|
|
67
|
-
siteSettings: ISiteSettings;
|
|
68
69
|
showCheckoutPromoCode: boolean;
|
|
69
70
|
showImgOnOrder: boolean;
|
|
71
|
+
siteSettings: ISiteSettings;
|
|
70
72
|
smsNotifications: ISMSConfig;
|
|
71
73
|
sodiumWarning: ISodiumWarning;
|
|
72
74
|
specialRequestItems: boolean;
|
|
@@ -74,3 +76,14 @@ export interface IDefaultRetailerSettings {
|
|
|
74
76
|
timeslotModalSettings: ITimeslotModalSettings;
|
|
75
77
|
useAddressValidation: boolean;
|
|
76
78
|
}
|
|
79
|
+
export interface IDefaultRetailerSettingsVersion2 {
|
|
80
|
+
accountPage: IAccountPageV2;
|
|
81
|
+
addressSettings: IAddressesSettingsV2;
|
|
82
|
+
adminPanelOnly: IAdminOnlyV2;
|
|
83
|
+
cartSummary: ICartSummaryV2;
|
|
84
|
+
checkout: ICheckoutSettingsV2;
|
|
85
|
+
features: IFeaturesV2;
|
|
86
|
+
pdpSettings: IPdpSettingsV2;
|
|
87
|
+
productCard: IProductCardSettingsV2;
|
|
88
|
+
siteSettings: ISiteSettingsV2;
|
|
89
|
+
}
|
|
@@ -13,7 +13,6 @@ export interface IRetailerSettings {
|
|
|
13
13
|
};
|
|
14
14
|
useAddressValidation?: boolean;
|
|
15
15
|
};
|
|
16
|
-
TimeslotModalSettings?: ITimeslotModalSettings;
|
|
17
16
|
addressValidationTypes?: IAddressValidationTypes;
|
|
18
17
|
advertSettings?: IAdvertSettings;
|
|
19
18
|
allowInStorePurchases?: boolean;
|
|
@@ -37,6 +36,8 @@ export interface IRetailerSettings {
|
|
|
37
36
|
enableGoogleTranslate?: boolean;
|
|
38
37
|
enableNewsletterSignup?: boolean;
|
|
39
38
|
enableNotifications?: boolean;
|
|
39
|
+
entryModalVersion?: IEntryModalVersion;
|
|
40
|
+
hideAlcoholRule?: IShoppingRuleControl;
|
|
40
41
|
errorLoggingLevel?: ILoggingLevel;
|
|
41
42
|
externalApps?: IExternalApps;
|
|
42
43
|
externalStoreSelectorUrl?: string | undefined;
|
|
@@ -58,6 +59,7 @@ export interface IRetailerSettings {
|
|
|
58
59
|
loggingLevelClient?: ILoggingLevel;
|
|
59
60
|
loggingLevelServer?: ILoggingLevel;
|
|
60
61
|
mainHeaderHeight?: number;
|
|
62
|
+
maintainCustomerJourney?: boolean;
|
|
61
63
|
mapZoom?: number;
|
|
62
64
|
minimumCreditCardAmount?: number;
|
|
63
65
|
nutritionZone?: INutritionZone;
|
|
@@ -77,11 +79,11 @@ export interface IRetailerSettings {
|
|
|
77
79
|
showImgOnOrder?: boolean;
|
|
78
80
|
siteSettings?: ISiteSettings;
|
|
79
81
|
smartBanner?: ISmartBanner;
|
|
80
|
-
entryModalVersion?: IEntryModalVersion;
|
|
81
82
|
smsNotifications?: ISMSConfig;
|
|
82
83
|
sodiumWarning?: ISodiumWarning;
|
|
83
84
|
specialRequestItems?: boolean;
|
|
84
85
|
subHeaderHeight?: number;
|
|
86
|
+
TimeslotModalSettings?: ITimeslotModalSettings;
|
|
85
87
|
useAddressValidation?: boolean;
|
|
86
88
|
}
|
|
87
89
|
export interface IFeatureSwitch {
|
|
@@ -92,6 +94,7 @@ export interface IFeatureSwitch {
|
|
|
92
94
|
smartbanner: ISmartBanner;
|
|
93
95
|
entryModalVersion: IEntryModalVersion;
|
|
94
96
|
addressIntegration: IAddressIntegration;
|
|
97
|
+
hideAlcoholRule: IShoppingRuleControl;
|
|
95
98
|
}
|
|
96
99
|
export interface ISiteSettings {
|
|
97
100
|
anonymousCart: boolean;
|
|
@@ -102,7 +105,7 @@ export interface IVouchers {
|
|
|
102
105
|
}
|
|
103
106
|
export interface IGiftCards {
|
|
104
107
|
enabled: boolean;
|
|
105
|
-
|
|
108
|
+
giftCardInputValidation: string;
|
|
106
109
|
pinInputValidation: string;
|
|
107
110
|
reCaptcha: boolean;
|
|
108
111
|
}
|
|
@@ -223,14 +226,117 @@ export interface ISodiumWarning {
|
|
|
223
226
|
}
|
|
224
227
|
export interface IAddressesSettings {
|
|
225
228
|
addressValidationTypes: IAddressValidationTypes;
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
eircode: {
|
|
230
|
+
enabled: boolean;
|
|
231
|
+
url: string;
|
|
232
|
+
};
|
|
233
|
+
integration: {
|
|
234
|
+
enabled: boolean;
|
|
235
|
+
addressFinderType: IAddressFinderType;
|
|
236
|
+
addNewAddressUrl: string;
|
|
237
|
+
editAddressUrl: string;
|
|
238
|
+
deleteAddressUrl: string;
|
|
239
|
+
getLocationUrl: string;
|
|
240
|
+
getAddressesUrl: string;
|
|
241
|
+
};
|
|
242
|
+
useAddressValidation: boolean;
|
|
243
|
+
disableAddressOnDelivery: boolean;
|
|
244
|
+
}
|
|
245
|
+
export interface IAddressesSettingsV2 {
|
|
246
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
247
|
+
eircode: {
|
|
248
|
+
enabled: boolean;
|
|
249
|
+
url: string;
|
|
250
|
+
};
|
|
228
251
|
integration: {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
252
|
+
enabled: boolean;
|
|
253
|
+
addressFinderType: IAddressFinderType;
|
|
254
|
+
useForNewAddresses: boolean;
|
|
255
|
+
addNewAddressUrl: string;
|
|
256
|
+
editAddressUrl: string;
|
|
257
|
+
deleteAddressUrl: string;
|
|
232
258
|
};
|
|
233
259
|
useAddressValidation: boolean;
|
|
260
|
+
disableAddressOnDelivery: boolean;
|
|
261
|
+
}
|
|
262
|
+
export interface ICartSummaryV2 {
|
|
263
|
+
showTaxTotal: boolean;
|
|
264
|
+
showTaxGroups: boolean;
|
|
265
|
+
hideTaxOnSummary: boolean;
|
|
266
|
+
}
|
|
267
|
+
export interface ICheckoutSettingsV2 {
|
|
268
|
+
numericPhonePayload: boolean;
|
|
269
|
+
houseAccountRegExValidation: string;
|
|
270
|
+
minimumCreditCardAmount: number;
|
|
271
|
+
paymentCards: IPaymentCards;
|
|
272
|
+
checkoutValidation: ICheckoutValidation;
|
|
273
|
+
}
|
|
274
|
+
export interface IFeaturesV2 {
|
|
275
|
+
additionalCharges: boolean;
|
|
276
|
+
clientCache: boolean;
|
|
277
|
+
vouchers: IVouchers;
|
|
278
|
+
giftCards: IGiftCards;
|
|
279
|
+
smartbanner: ISmartBanner;
|
|
280
|
+
entryModalVersion: IEntryModalVersion;
|
|
281
|
+
hideAlcoholRule: IShoppingRuleControl;
|
|
282
|
+
allowInStorePurchases: boolean;
|
|
283
|
+
allowPastPurchases: boolean;
|
|
284
|
+
advertSettings: IAdvertSettings;
|
|
285
|
+
enableGoogleTranslate: boolean;
|
|
286
|
+
enableNewsletterSignup: boolean;
|
|
287
|
+
enableNotifications: boolean;
|
|
288
|
+
externalStoreSelectorUrl: {
|
|
289
|
+
enabled: boolean;
|
|
290
|
+
url: string;
|
|
291
|
+
};
|
|
292
|
+
favoritesV1: boolean;
|
|
293
|
+
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
294
|
+
globalAnimations: IGlobalAnimations;
|
|
295
|
+
instacart: {
|
|
296
|
+
enabled: boolean;
|
|
297
|
+
url: string;
|
|
298
|
+
};
|
|
299
|
+
registrationFields: IRegistrationField[];
|
|
300
|
+
secondTierAuthorization?: ISecondTierAuthorization;
|
|
301
|
+
showCheckoutPromoCode: boolean;
|
|
302
|
+
showImgOnOrder: boolean;
|
|
303
|
+
smsNotifications: ISMSConfig;
|
|
304
|
+
specialRequestItems: boolean;
|
|
305
|
+
couponGallery: ICouponGalleryLayout;
|
|
306
|
+
}
|
|
307
|
+
export interface IPdpSettingsV2 {
|
|
308
|
+
nutritionZone: INutritionZone;
|
|
309
|
+
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
310
|
+
sodiumWarning: ISodiumWarning;
|
|
311
|
+
}
|
|
312
|
+
export interface IProductCardSettingsV2 {
|
|
313
|
+
limitProductCardTitleHeight: boolean;
|
|
314
|
+
productCardTitleHeight: number;
|
|
315
|
+
productCards: IProductCardsProps;
|
|
316
|
+
}
|
|
317
|
+
export interface ISiteSettingsV2 {
|
|
318
|
+
anonymousCart: boolean;
|
|
319
|
+
ctaButtons: ICtaButtons | null | undefined;
|
|
320
|
+
daysToRemainSignedIn: number;
|
|
321
|
+
defaultCountry: IDefaultCounty;
|
|
322
|
+
defaultSearchParams: IDefaultSearchParams;
|
|
323
|
+
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
324
|
+
defaultStoreLocation: IDefaultStoreLocation;
|
|
325
|
+
disableTprPrice: boolean;
|
|
326
|
+
footerVersion: IFooterTypes;
|
|
327
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
328
|
+
gtmId: string;
|
|
329
|
+
isPlanningOnly: boolean;
|
|
330
|
+
mainHeaderHeight: number;
|
|
331
|
+
maintainCustomerJourney: boolean;
|
|
332
|
+
mapZoom: number;
|
|
333
|
+
promoTemplateVersion: number;
|
|
334
|
+
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
335
|
+
retailerCountry: IRetailerCountry;
|
|
336
|
+
retailerName: string;
|
|
337
|
+
searchPreview: ISearchPreviewVisibility;
|
|
338
|
+
subHeaderHeight: number;
|
|
339
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
234
340
|
}
|
|
235
341
|
export interface IAccountPageSettings {
|
|
236
342
|
loyaltyTab: {
|
|
@@ -255,6 +361,7 @@ export interface IAddressValidationTypes {
|
|
|
255
361
|
instructions: IValidationType[];
|
|
256
362
|
phoneNumber: IValidationType[];
|
|
257
363
|
postCode: IValidationType[];
|
|
364
|
+
smsNumber: IValidationType[];
|
|
258
365
|
}
|
|
259
366
|
export interface IDefaultSearchParams {
|
|
260
367
|
q: string;
|
|
@@ -320,6 +427,24 @@ export interface ISearchPreviewVisibility {
|
|
|
320
427
|
export declare type IPaymentCards = {
|
|
321
428
|
[cardName in PaymentCards]: boolean;
|
|
322
429
|
};
|
|
430
|
+
export interface IAdminOnlyV2 {
|
|
431
|
+
bannerName: string;
|
|
432
|
+
logoUrl: string;
|
|
433
|
+
}
|
|
434
|
+
export interface IAccountPageV2 {
|
|
435
|
+
loyaltyTab: {
|
|
436
|
+
disabledEdit?: boolean;
|
|
437
|
+
enabled: boolean;
|
|
438
|
+
loyaltyNumberLength: number;
|
|
439
|
+
loyaltyNumberPrefix: string;
|
|
440
|
+
loyaltyValidationType: IValidationType[];
|
|
441
|
+
};
|
|
442
|
+
idp: {
|
|
443
|
+
enabled: boolean;
|
|
444
|
+
target: "_self" | "_blank";
|
|
445
|
+
url: string;
|
|
446
|
+
};
|
|
447
|
+
}
|
|
323
448
|
export interface IGlobalAnimations {
|
|
324
449
|
confetti: ILayoutAnimationsConfetti;
|
|
325
450
|
}
|
|
@@ -329,6 +454,10 @@ export interface ILayoutAnimationsConfetti {
|
|
|
329
454
|
export interface IGlobalCheckoutProps {
|
|
330
455
|
numericPhonePayload: boolean;
|
|
331
456
|
}
|
|
457
|
+
export interface IShoppingRuleControl {
|
|
458
|
+
modal: boolean;
|
|
459
|
+
pdp: boolean;
|
|
460
|
+
}
|
|
332
461
|
export interface IAddressIntegration {
|
|
333
462
|
enabled: boolean;
|
|
334
463
|
addressFinderType: IAddressFinderType;
|