@thryveai/theme-interfaces 2.3.14 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -29
- package/dist/index.d.ts +4 -4
- package/dist/interfaces/admin-settings-interfaces.d.ts +9 -3
- package/dist/interfaces/default-settings.interfaces.d.ts +13 -3
- package/dist/interfaces/default-settings.interfaces.js +1 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +128 -10
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +593 -594
- package/dist/storefront/defaultSettingsStorefront.d.ts +2 -2
- package/dist/storefront/defaultSettingsStorefront.js +195 -209
- package/package.json +5 -2
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, 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, 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;
|
|
@@ -34,7 +40,7 @@ export declare type IAdminImagesTemplateSFUI = {
|
|
|
34
40
|
export declare type IAdminThemeTemplateSFUI = {
|
|
35
41
|
[key in IAdminThemeKeys]: IAdminControl;
|
|
36
42
|
};
|
|
37
|
-
declare type IAdminThemeKeys =
|
|
43
|
+
declare type IAdminThemeKeys = "colors";
|
|
38
44
|
declare type IAdminImagesKeysSTS = "logos" | "stsCheckBox" | "stsFavicon";
|
|
39
45
|
declare type IAdminImagesKeys = "icons" | "logos" | "confirmationPageImage" | "stsCheckBox" | "stsFavicon" | "favicon" | "rewards" | "verifySiteImage" | "missingImg";
|
|
40
46
|
export interface IAdminThemeTemplateOptions {
|
|
@@ -46,6 +52,6 @@ export interface IAdminThemeTemplateOptions {
|
|
|
46
52
|
export declare type IAllThemeTemplates = {
|
|
47
53
|
[key in SupportThemeTemplates]: IThemeGenerator;
|
|
48
54
|
};
|
|
49
|
-
declare type SupportThemeTemplates =
|
|
55
|
+
declare type SupportThemeTemplates = "Default Storefront" | "Default STS";
|
|
50
56
|
export declare type IThemeGenerator = (colors: IDefaultColors) => IDefaultThemeInterface;
|
|
51
57
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { IAccountPageSettings,
|
|
1
|
+
import { IAccountPageSettings, IAddressIntegration, IAddressValidationTypes, IAdvertSettings, ICheckoutValidation, ICtaButtons, IDefaultCounty, IDefaultSearchParams, IDefaultStoreLocation, IFeatureSwitch, IFlippConfig, IFlippConfigV2, IGlobalAnimations, IGlobalCheckoutProps, IGlobalLayouts, IGoogleAutocompleteSettings, ILayoutSettings, ILoggingLevel, INutritionZone, IPaymentCards, IProductCardsProps, IProductDetailsPageLayout, IRegistrationField, IRestrictMapPlaces, IRetailerCountry, ISearchPreviewVisibility, ISecondTierAuthorization, ISiteSettings, ISMSConfig, ISodiumWarning, ITimeslotModalSettings, IAccountPageV2, IAdminOnlyV2, IAddressesSettingsV2, ICartSummaryV2, IFeaturesV2, ICheckoutSettingsV2, IPdpSettingsV2, IProductCardSettingsV2, ISiteSettingsV2, IAddressesSettings } from "./retailer-settings.interfaces";
|
|
2
2
|
export interface IDefaultRetailerSettings {
|
|
3
3
|
adminPanelOnly: {
|
|
4
4
|
bannerName: string;
|
|
5
5
|
logoUrl: string;
|
|
6
6
|
};
|
|
7
7
|
accountPage: IAccountPageSettings;
|
|
8
|
-
addressIntegration: IAddressIntegration;
|
|
9
8
|
addressValidationTypes: IAddressValidationTypes;
|
|
9
|
+
addressIntegration: IAddressIntegration;
|
|
10
10
|
addresses: IAddressesSettings;
|
|
11
11
|
advertSettings: IAdvertSettings;
|
|
12
12
|
allowInStorePurchases: boolean;
|
|
@@ -23,7 +23,6 @@ export interface IDefaultRetailerSettings {
|
|
|
23
23
|
defaultSearchParams: IDefaultSearchParams;
|
|
24
24
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
25
25
|
defaultStoreLocation: IDefaultStoreLocation;
|
|
26
|
-
disableAddressOnDelivery: boolean;
|
|
27
26
|
disableTprPrice: boolean;
|
|
28
27
|
documentTitle: string;
|
|
29
28
|
eircode: string | undefined;
|
|
@@ -76,3 +75,14 @@ export interface IDefaultRetailerSettings {
|
|
|
76
75
|
timeslotModalSettings: ITimeslotModalSettings;
|
|
77
76
|
useAddressValidation: boolean;
|
|
78
77
|
}
|
|
78
|
+
export interface IDefaultRetailerSettingsVersion2 {
|
|
79
|
+
adminPanelOnly: IAdminOnlyV2;
|
|
80
|
+
accountPage: IAccountPageV2;
|
|
81
|
+
addressSettings: IAddressesSettingsV2;
|
|
82
|
+
cartSummary: ICartSummaryV2;
|
|
83
|
+
checkout: ICheckoutSettingsV2;
|
|
84
|
+
features: IFeaturesV2;
|
|
85
|
+
pdpSettings: IPdpSettingsV2;
|
|
86
|
+
productCard: IProductCardSettingsV2;
|
|
87
|
+
siteSettings: ISiteSettingsV2;
|
|
88
|
+
}
|
|
@@ -14,7 +14,6 @@ export interface IRetailerSettings {
|
|
|
14
14
|
useAddressValidation?: boolean;
|
|
15
15
|
};
|
|
16
16
|
TimeslotModalSettings?: ITimeslotModalSettings;
|
|
17
|
-
addressIntegration?: IAddressIntegration;
|
|
18
17
|
addressValidationTypes?: IAddressValidationTypes;
|
|
19
18
|
advertSettings?: IAdvertSettings;
|
|
20
19
|
allowInStorePurchases?: boolean;
|
|
@@ -31,7 +30,6 @@ export interface IRetailerSettings {
|
|
|
31
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
32
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
33
32
|
defaultStoreLocation?: IDefaultStoreLocation;
|
|
34
|
-
disableAddressOnDelivery?: boolean;
|
|
35
33
|
disableTprPrice?: boolean;
|
|
36
34
|
documentTitle?: string;
|
|
37
35
|
eircode?: string | null;
|
|
@@ -93,6 +91,7 @@ export interface IFeatureSwitch {
|
|
|
93
91
|
giftCards: IGiftCards;
|
|
94
92
|
smartbanner: ISmartBanner;
|
|
95
93
|
entryModalVersion: IEntryModalVersion;
|
|
94
|
+
addressIntegration: IAddressIntegration;
|
|
96
95
|
}
|
|
97
96
|
export interface ISiteSettings {
|
|
98
97
|
anonymousCart: boolean;
|
|
@@ -103,7 +102,7 @@ export interface IVouchers {
|
|
|
103
102
|
}
|
|
104
103
|
export interface IGiftCards {
|
|
105
104
|
enabled: boolean;
|
|
106
|
-
|
|
105
|
+
giftCardInputValidation: string;
|
|
107
106
|
pinInputValidation: string;
|
|
108
107
|
reCaptcha: boolean;
|
|
109
108
|
}
|
|
@@ -224,14 +223,115 @@ export interface ISodiumWarning {
|
|
|
224
223
|
}
|
|
225
224
|
export interface IAddressesSettings {
|
|
226
225
|
addressValidationTypes: IAddressValidationTypes;
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
eircode: {
|
|
227
|
+
enabled: boolean;
|
|
228
|
+
url: string;
|
|
229
|
+
};
|
|
230
|
+
integration: {
|
|
231
|
+
enabled: boolean;
|
|
232
|
+
addressFinderType: IAddressFinderType;
|
|
233
|
+
addNewAddressUrl: string;
|
|
234
|
+
editAddressUrl: string;
|
|
235
|
+
deleteAddressUrl: string;
|
|
236
|
+
getLocationUrl: string;
|
|
237
|
+
getAddressesUrl: string;
|
|
238
|
+
};
|
|
239
|
+
useAddressValidation: boolean;
|
|
240
|
+
disableAddressOnDelivery: boolean;
|
|
241
|
+
}
|
|
242
|
+
export interface IAddressesSettingsV2 {
|
|
243
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
244
|
+
eircode: {
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
url: string;
|
|
247
|
+
};
|
|
229
248
|
integration: {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
addressFinderType: IAddressFinderType;
|
|
251
|
+
useForNewAddresses: boolean;
|
|
252
|
+
addNewAddressUrl: string;
|
|
253
|
+
editAddressUrl: string;
|
|
254
|
+
deleteAddressUrl: string;
|
|
233
255
|
};
|
|
234
256
|
useAddressValidation: boolean;
|
|
257
|
+
disableAddressOnDelivery: boolean;
|
|
258
|
+
}
|
|
259
|
+
export interface ICartSummaryV2 {
|
|
260
|
+
showTaxTotal: boolean;
|
|
261
|
+
showTaxGroups: boolean;
|
|
262
|
+
hideTaxOnSummary: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface ICheckoutSettingsV2 {
|
|
265
|
+
numericPhonePayload: boolean;
|
|
266
|
+
houseAccountRegExValidation: string;
|
|
267
|
+
minimumCreditCardAmount: number;
|
|
268
|
+
paymentCards: IPaymentCards;
|
|
269
|
+
checkoutValidation: ICheckoutValidation;
|
|
270
|
+
}
|
|
271
|
+
export interface IFeaturesV2 {
|
|
272
|
+
additionalCharges: boolean;
|
|
273
|
+
clientCache: boolean;
|
|
274
|
+
vouchers: IVouchers;
|
|
275
|
+
giftCards: IGiftCards;
|
|
276
|
+
smartbanner: ISmartBanner;
|
|
277
|
+
entryModalVersion: IEntryModalVersion;
|
|
278
|
+
allowInStorePurchases: boolean;
|
|
279
|
+
allowPastPurchases: boolean;
|
|
280
|
+
advertSettings: IAdvertSettings;
|
|
281
|
+
enableGoogleTranslate: boolean;
|
|
282
|
+
enableNewsletterSignup: boolean;
|
|
283
|
+
enableNotifications: boolean;
|
|
284
|
+
externalStoreSelectorUrl: {
|
|
285
|
+
enabled: boolean;
|
|
286
|
+
url: string;
|
|
287
|
+
};
|
|
288
|
+
favoritesV1: boolean;
|
|
289
|
+
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
290
|
+
globalAnimations: IGlobalAnimations;
|
|
291
|
+
instacart: {
|
|
292
|
+
enabled: boolean;
|
|
293
|
+
url: string;
|
|
294
|
+
};
|
|
295
|
+
registrationFields: IRegistrationField[];
|
|
296
|
+
secondTierAuthorization?: ISecondTierAuthorization;
|
|
297
|
+
showCheckoutPromoCode: boolean;
|
|
298
|
+
showImgOnOrder: boolean;
|
|
299
|
+
smsNotifications: ISMSConfig;
|
|
300
|
+
specialRequestItems: boolean;
|
|
301
|
+
couponGallery: ICouponGalleryLayout;
|
|
302
|
+
}
|
|
303
|
+
export interface IPdpSettingsV2 {
|
|
304
|
+
nutritionZone: INutritionZone;
|
|
305
|
+
pdpDetailsLayout: IProductDetailsPageLayout;
|
|
306
|
+
sodiumWarning: ISodiumWarning;
|
|
307
|
+
}
|
|
308
|
+
export interface IProductCardSettingsV2 {
|
|
309
|
+
limitProductCardTitleHeight: boolean;
|
|
310
|
+
productCardTitleHeight: number;
|
|
311
|
+
productCards: IProductCardsProps;
|
|
312
|
+
}
|
|
313
|
+
export interface ISiteSettingsV2 {
|
|
314
|
+
anonymousCart: boolean;
|
|
315
|
+
ctaButtons: ICtaButtons | null | undefined;
|
|
316
|
+
daysToRemainSignedIn: number;
|
|
317
|
+
defaultCountry: IDefaultCounty;
|
|
318
|
+
defaultSearchParams: IDefaultSearchParams;
|
|
319
|
+
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
320
|
+
defaultStoreLocation: IDefaultStoreLocation;
|
|
321
|
+
disableTprPrice: boolean;
|
|
322
|
+
footerVersion: IFooterTypes;
|
|
323
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
324
|
+
gtmId: string;
|
|
325
|
+
isPlanningOnly: boolean;
|
|
326
|
+
mainHeaderHeight: number;
|
|
327
|
+
mapZoom: number;
|
|
328
|
+
promoTemplateVersion: number;
|
|
329
|
+
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
330
|
+
retailerCountry: IRetailerCountry;
|
|
331
|
+
retailerName: string;
|
|
332
|
+
searchPreview: ISearchPreviewVisibility;
|
|
333
|
+
subHeaderHeight: number;
|
|
334
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
235
335
|
}
|
|
236
336
|
export interface IAccountPageSettings {
|
|
237
337
|
loyaltyTab: {
|
|
@@ -256,6 +356,7 @@ export interface IAddressValidationTypes {
|
|
|
256
356
|
instructions: IValidationType[];
|
|
257
357
|
phoneNumber: IValidationType[];
|
|
258
358
|
postCode: IValidationType[];
|
|
359
|
+
smsNumber: IValidationType[];
|
|
259
360
|
}
|
|
260
361
|
export interface IDefaultSearchParams {
|
|
261
362
|
q: string;
|
|
@@ -321,6 +422,24 @@ export interface ISearchPreviewVisibility {
|
|
|
321
422
|
export declare type IPaymentCards = {
|
|
322
423
|
[cardName in PaymentCards]: boolean;
|
|
323
424
|
};
|
|
425
|
+
export interface IAdminOnlyV2 {
|
|
426
|
+
bannerName: string;
|
|
427
|
+
logoUrl: string;
|
|
428
|
+
}
|
|
429
|
+
export interface IAccountPageV2 {
|
|
430
|
+
loyaltyTab: {
|
|
431
|
+
disabledEdit?: boolean;
|
|
432
|
+
enabled: boolean;
|
|
433
|
+
loyaltyNumberLength: number;
|
|
434
|
+
loyaltyNumberPrefix: string;
|
|
435
|
+
loyaltyValidationType: IValidationType[];
|
|
436
|
+
};
|
|
437
|
+
idp: {
|
|
438
|
+
enabled: boolean;
|
|
439
|
+
target: "_self" | "_blank";
|
|
440
|
+
url: string;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
324
443
|
export interface IGlobalAnimations {
|
|
325
444
|
confetti: ILayoutAnimationsConfetti;
|
|
326
445
|
}
|
|
@@ -332,9 +451,8 @@ export interface IGlobalCheckoutProps {
|
|
|
332
451
|
}
|
|
333
452
|
export interface IAddressIntegration {
|
|
334
453
|
enabled: boolean;
|
|
335
|
-
getAddressesUrl: string;
|
|
336
|
-
getLocationUrl: string;
|
|
337
454
|
addressFinderType: IAddressFinderType;
|
|
455
|
+
useForNewAddresses: boolean;
|
|
338
456
|
}
|
|
339
457
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
340
458
|
export interface IProductCardsProps {
|