@thryveai/theme-interfaces 2.3.15 → 2.3.16
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/index.d.ts +25 -0
- package/dist/index.js +29 -0
- package/dist/interfaces/admin-images-interfaces.d.ts +11 -0
- package/dist/interfaces/admin-images-interfaces.js +2 -0
- package/dist/interfaces/admin-settings-interfaces.d.ts +51 -0
- package/dist/interfaces/admin-settings-interfaces.js +2 -0
- package/dist/interfaces/default-settings.interfaces.d.ts +76 -0
- package/dist/interfaces/default-settings.interfaces.js +2 -0
- package/dist/interfaces/default-theme.interface.d.ts +694 -0
- package/dist/interfaces/default-theme.interface.js +2 -0
- package/dist/interfaces/icons.interfaces.d.ts +7 -0
- package/dist/interfaces/icons.interfaces.js +124 -0
- package/dist/interfaces/retailer-settings.interfaces.d.ts +371 -0
- package/dist/interfaces/retailer-settings.interfaces.js +2 -0
- package/dist/interfaces/sts-settings.interfaces.d.ts +6 -0
- package/dist/interfaces/sts-settings.interfaces.js +2 -0
- package/dist/interfaces/theme.interfaces.d.ts +695 -0
- package/dist/interfaces/theme.interfaces.js +2 -0
- package/dist/storefront/SFUIImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/storefront/SFUIImagesTemplate.AdminUi.js +112 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +3 -0
- package/dist/storefront/SFUISettingsTemplate.AdminUi.js +862 -0
- package/dist/storefront/SFUIThemesTemplate.AdminUi.d.ts +3 -0
- package/dist/storefront/SFUIThemesTemplate.AdminUi.js +113 -0
- package/dist/storefront/defaultImagesStorefront.d.ts +3 -0
- package/dist/storefront/defaultImagesStorefront.js +96 -0
- package/dist/storefront/defaultSettingsStorefront.d.ts +3 -0
- package/dist/storefront/defaultSettingsStorefront.js +255 -0
- package/dist/storefront/defaultThemeStorefront.d.ts +5 -0
- package/dist/storefront/defaultThemeStorefront.js +1155 -0
- package/dist/sts/STSImagesTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSImagesTemplate.AdminUi.js +50 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.d.ts +2 -0
- package/dist/sts/STSSettingsTemplate.AdminUi.js +30 -0
- package/dist/sts/defaultSettingsSts.d.ts +3 -0
- package/dist/sts/defaultSettingsSts.js +9 -0
- package/dist/theme-templates/index.d.ts +3 -0
- package/dist/theme-templates/index.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IconNamesToFiles = void 0;
|
|
4
|
+
exports.IconNamesToFiles = {
|
|
5
|
+
AccountOutline: "account-outline",
|
|
6
|
+
AccountSolid: "account-solid",
|
|
7
|
+
Addresses: "addresses",
|
|
8
|
+
ArrowDown: "arrow-down",
|
|
9
|
+
ArrowRight: "arrow-right",
|
|
10
|
+
ArrowUpdown: "arrow-updown",
|
|
11
|
+
BarScan: "bar-scan",
|
|
12
|
+
Bell: "bell",
|
|
13
|
+
Blog: "blog",
|
|
14
|
+
Cart: "cart",
|
|
15
|
+
Check: "check",
|
|
16
|
+
ChevronDown: "chevron-down",
|
|
17
|
+
ChevronLeft: "chevron-left",
|
|
18
|
+
ChevronRight: "chevron-right",
|
|
19
|
+
ChevronUp: "chevron-up",
|
|
20
|
+
Circular: "circular",
|
|
21
|
+
Clear: "clear",
|
|
22
|
+
Close: "close",
|
|
23
|
+
Coupon: "coupon",
|
|
24
|
+
Dashboard: "dashboard",
|
|
25
|
+
DeliveryOutline: "delivery-outline",
|
|
26
|
+
DeliverySolid: "delivery-solid",
|
|
27
|
+
Dietary: "dietary",
|
|
28
|
+
DoubleArrows: "double-arrows",
|
|
29
|
+
Download: "download",
|
|
30
|
+
Dropship: "dropship",
|
|
31
|
+
Eco: "eco",
|
|
32
|
+
Edit: "edit",
|
|
33
|
+
Error: "error",
|
|
34
|
+
FaceHappy: "face-happy",
|
|
35
|
+
FaceSad: "face-sad",
|
|
36
|
+
Facebook: "facebook",
|
|
37
|
+
Fav: "fav",
|
|
38
|
+
FavSolid: "fav-solid",
|
|
39
|
+
Filter: "filter",
|
|
40
|
+
Flag: "flag",
|
|
41
|
+
Geolocate: "geolocate",
|
|
42
|
+
Hamburger: "hamburger",
|
|
43
|
+
Help: "help",
|
|
44
|
+
Home: "home",
|
|
45
|
+
Info: "info",
|
|
46
|
+
Instacart: "instacart",
|
|
47
|
+
Instagram: "instagram",
|
|
48
|
+
ItemLocation: "item-location",
|
|
49
|
+
ListCheck: "list-check",
|
|
50
|
+
ListItems: "list-items",
|
|
51
|
+
ListLarge: "list-large",
|
|
52
|
+
ListRemove: "list-remove",
|
|
53
|
+
ListSave: "list-save",
|
|
54
|
+
ListSearch: "list-search",
|
|
55
|
+
LocationPin: "location-pin",
|
|
56
|
+
LocationDistance: "location-distance",
|
|
57
|
+
LoyaltyCard: "loyaltycard",
|
|
58
|
+
Mail: "mail",
|
|
59
|
+
Minus: "minus",
|
|
60
|
+
MoreOptionsH: "more-options-h",
|
|
61
|
+
MoreOptionsV: "more-options-v",
|
|
62
|
+
Note: "note",
|
|
63
|
+
Notifications: "notifications",
|
|
64
|
+
NoteFilled: "note-filled",
|
|
65
|
+
Orders: "orders",
|
|
66
|
+
PastPurchases: "past-purchases",
|
|
67
|
+
Pause: "pause",
|
|
68
|
+
PaymentOutline: "payment-outline",
|
|
69
|
+
PaymentSolid: "payment-solid",
|
|
70
|
+
Phone: "phone",
|
|
71
|
+
PhoneMobile: "phone-mobile",
|
|
72
|
+
Pickup: "pickup",
|
|
73
|
+
PickupInfo: "pickup-info",
|
|
74
|
+
Pinterest: "pinterest",
|
|
75
|
+
Plus: "plus",
|
|
76
|
+
Print: "print",
|
|
77
|
+
PromoOutline: "promo-outline",
|
|
78
|
+
PromoSolid: "promo-solid",
|
|
79
|
+
RadioActive: "radio-active",
|
|
80
|
+
RadioEmpty: "radio-empty",
|
|
81
|
+
RecipeCalories: "recipe-calories",
|
|
82
|
+
RecipeCooktime: "recipe-cooktime",
|
|
83
|
+
RecipeIngredients: "recipe-ingredients",
|
|
84
|
+
RecipePreptime: "recipe-preptime",
|
|
85
|
+
RecipeServings: "recipe-servings",
|
|
86
|
+
Remove: "remove",
|
|
87
|
+
Reserve: "reserve",
|
|
88
|
+
ReserveTime: "reserve-time",
|
|
89
|
+
Search: "search",
|
|
90
|
+
SelectCheck: "select-check",
|
|
91
|
+
SelectEmpty: "select-empty",
|
|
92
|
+
SelectMark: "select-mark",
|
|
93
|
+
Send: "send",
|
|
94
|
+
Settings: "settings",
|
|
95
|
+
Share: "share",
|
|
96
|
+
SortGrid: "sort-grid",
|
|
97
|
+
SortList: "sort-list",
|
|
98
|
+
StarOutline: "star-outline",
|
|
99
|
+
StarSolid: "star-solid",
|
|
100
|
+
Substitute: "subtitute",
|
|
101
|
+
SubstituteBestmatch: "subtitute-bestmatch",
|
|
102
|
+
SubstituteNone: "subtitute-none",
|
|
103
|
+
SubstituteProduct: "subtitute-product",
|
|
104
|
+
Trash: "trash",
|
|
105
|
+
Twitter: "twitter",
|
|
106
|
+
Unavailable: "unavailable",
|
|
107
|
+
Voice: "voice",
|
|
108
|
+
Warning: "warning",
|
|
109
|
+
Youtube: "youtube",
|
|
110
|
+
YourLocation: "your-location",
|
|
111
|
+
GlutenFree: "Gluten-Free",
|
|
112
|
+
Local: "Local",
|
|
113
|
+
Organic: "Organic",
|
|
114
|
+
None: "None",
|
|
115
|
+
VisaLogo: "visa-logo",
|
|
116
|
+
MasterLogo: "master-card-logo",
|
|
117
|
+
VisaCard: "visa-card",
|
|
118
|
+
MasterCard: "master-card-card",
|
|
119
|
+
AmExpCard: "american-express-card",
|
|
120
|
+
DiscoverCard: "discover-card",
|
|
121
|
+
VisaVerified: "visa-verified",
|
|
122
|
+
MasterSecure: "master-card-secure",
|
|
123
|
+
Comodo: "comodo",
|
|
124
|
+
};
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import { IconNames, PaymentCards } from "./icons.interfaces";
|
|
2
|
+
export interface IRetailerSettings {
|
|
3
|
+
accountPage?: IAccountPageSettings;
|
|
4
|
+
additionalCharges?: boolean;
|
|
5
|
+
addresses?: {
|
|
6
|
+
addressValidationTypes?: IAddressValidationTypes;
|
|
7
|
+
canadianAddressCompleteKey?: string | undefined;
|
|
8
|
+
eircodeUrl?: string | null;
|
|
9
|
+
integration?: {
|
|
10
|
+
addNewAddressUrl: string | undefined;
|
|
11
|
+
editAddressUrl: string | undefined;
|
|
12
|
+
deleteAddressUrl: string | undefined;
|
|
13
|
+
};
|
|
14
|
+
useAddressValidation?: boolean;
|
|
15
|
+
};
|
|
16
|
+
TimeslotModalSettings?: ITimeslotModalSettings;
|
|
17
|
+
addressValidationTypes?: IAddressValidationTypes;
|
|
18
|
+
advertSettings?: IAdvertSettings;
|
|
19
|
+
allowInStorePurchases?: boolean;
|
|
20
|
+
allowPastPurchases?: boolean;
|
|
21
|
+
buildNumber: string;
|
|
22
|
+
cacheTimeMins?: number;
|
|
23
|
+
canadianAddressCompleteKey?: string | undefined;
|
|
24
|
+
checkout?: IGlobalCheckoutProps;
|
|
25
|
+
checkoutV1?: boolean;
|
|
26
|
+
checkoutValidation?: ICheckoutValidation;
|
|
27
|
+
ctaButtons?: ICtaButtons;
|
|
28
|
+
daysToRemainSignedIn?: number;
|
|
29
|
+
defaultCountry?: IDefaultCounty;
|
|
30
|
+
defaultSearchParams?: IDefaultSearchParams;
|
|
31
|
+
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
32
|
+
defaultStoreLocation?: IDefaultStoreLocation;
|
|
33
|
+
disableTprPrice?: boolean;
|
|
34
|
+
documentTitle?: string;
|
|
35
|
+
eircode?: string | null;
|
|
36
|
+
enable3dSecure?: boolean;
|
|
37
|
+
enableGoogleTranslate?: boolean;
|
|
38
|
+
enableNewsletterSignup?: boolean;
|
|
39
|
+
enableNotifications?: boolean;
|
|
40
|
+
errorLoggingLevel?: ILoggingLevel;
|
|
41
|
+
externalApps?: IExternalApps;
|
|
42
|
+
externalStoreSelectorUrl?: string | undefined;
|
|
43
|
+
favoritesV1?: boolean;
|
|
44
|
+
featureSwitch?: IFeatureSwitch;
|
|
45
|
+
flipp?: IFlippConfig | IFlippConfigV2 | null;
|
|
46
|
+
globalAnimations?: IGlobalAnimations;
|
|
47
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
48
|
+
gtmId?: undefined | string;
|
|
49
|
+
hideTaxOnSummary?: boolean;
|
|
50
|
+
houseAccountRegExValidation?: string;
|
|
51
|
+
idpTarget?: "_self" | "_blank";
|
|
52
|
+
idpUrl?: undefined | string;
|
|
53
|
+
instacartUrl?: string | undefined;
|
|
54
|
+
isPlanningOnly?: boolean;
|
|
55
|
+
layout?: ILayoutSettings;
|
|
56
|
+
layouts?: IGlobalLayouts;
|
|
57
|
+
limitProductCardTitleHeight?: boolean;
|
|
58
|
+
loggingLevelClient?: ILoggingLevel;
|
|
59
|
+
loggingLevelServer?: ILoggingLevel;
|
|
60
|
+
mainHeaderHeight?: number;
|
|
61
|
+
mapZoom?: number;
|
|
62
|
+
minimumCreditCardAmount?: number;
|
|
63
|
+
nutritionZone?: INutritionZone;
|
|
64
|
+
paymentCards?: IPaymentCards;
|
|
65
|
+
pdpDetailsLayout?: IProductDetailsPageLayout;
|
|
66
|
+
productCardTitleHeight?: number;
|
|
67
|
+
productCards?: IProductCardsProps;
|
|
68
|
+
productCardv2?: boolean;
|
|
69
|
+
promoTemplateVersion?: number;
|
|
70
|
+
registrationFields?: IRegistrationField[];
|
|
71
|
+
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
72
|
+
retailerCountry?: IRetailerCountry;
|
|
73
|
+
retailerName: string;
|
|
74
|
+
searchPreview?: ISearchPreviewVisibility;
|
|
75
|
+
secondTierAuthorization?: ISecondTierAuthorization;
|
|
76
|
+
showCheckoutPromoCode?: boolean;
|
|
77
|
+
showImgOnOrder?: boolean;
|
|
78
|
+
siteSettings?: ISiteSettings;
|
|
79
|
+
smartBanner?: ISmartBanner;
|
|
80
|
+
entryModalVersion?: IEntryModalVersion;
|
|
81
|
+
smsNotifications?: ISMSConfig;
|
|
82
|
+
sodiumWarning?: ISodiumWarning;
|
|
83
|
+
specialRequestItems?: boolean;
|
|
84
|
+
subHeaderHeight?: number;
|
|
85
|
+
useAddressValidation?: boolean;
|
|
86
|
+
}
|
|
87
|
+
export interface IFeatureSwitch {
|
|
88
|
+
additionalCharges: boolean;
|
|
89
|
+
clientCache: boolean;
|
|
90
|
+
vouchers: IVouchers;
|
|
91
|
+
giftCards: IGiftCards;
|
|
92
|
+
smartbanner: ISmartBanner;
|
|
93
|
+
entryModalVersion: IEntryModalVersion;
|
|
94
|
+
addressIntegration: IAddressIntegration;
|
|
95
|
+
}
|
|
96
|
+
export interface ISiteSettings {
|
|
97
|
+
anonymousCart: boolean;
|
|
98
|
+
}
|
|
99
|
+
export interface IVouchers {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
reCaptcha: boolean;
|
|
102
|
+
}
|
|
103
|
+
export interface IGiftCards {
|
|
104
|
+
enabled: boolean;
|
|
105
|
+
gitfCardInputValidation: string;
|
|
106
|
+
pinInputValidation: string;
|
|
107
|
+
reCaptcha: boolean;
|
|
108
|
+
}
|
|
109
|
+
export declare type IEntryModalVersion = "entry" | "geolocation";
|
|
110
|
+
export interface ISmartBanner {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
title: string;
|
|
113
|
+
author: string;
|
|
114
|
+
price: string;
|
|
115
|
+
priceSuffixApple: string;
|
|
116
|
+
priceSuffixGoogle: string;
|
|
117
|
+
iconApple: string;
|
|
118
|
+
iconGoogle: string;
|
|
119
|
+
button: string;
|
|
120
|
+
buttonUrlApple: string;
|
|
121
|
+
buttonUrlGoogle: string;
|
|
122
|
+
closeLabel: string;
|
|
123
|
+
}
|
|
124
|
+
export interface IGlobalLayouts {
|
|
125
|
+
cartSummary: ICartSummaryLayout;
|
|
126
|
+
couponGallery: ICouponGalleryLayout;
|
|
127
|
+
}
|
|
128
|
+
export interface ICouponGalleryLayout {
|
|
129
|
+
enabled: boolean;
|
|
130
|
+
galleryIsIframe: boolean;
|
|
131
|
+
}
|
|
132
|
+
export interface ICartSummaryLayout {
|
|
133
|
+
showTaxTotal: boolean;
|
|
134
|
+
showTaxGroups: boolean;
|
|
135
|
+
}
|
|
136
|
+
export interface IExternalApps {
|
|
137
|
+
sts?: IExternalAppSTS;
|
|
138
|
+
}
|
|
139
|
+
export interface IExternalAppSTS {
|
|
140
|
+
customTermPolicy?: string;
|
|
141
|
+
}
|
|
142
|
+
export interface ISecondTierAuthorization {
|
|
143
|
+
time: undefined | null | number;
|
|
144
|
+
pages: string[];
|
|
145
|
+
}
|
|
146
|
+
export interface IFlippConfig {
|
|
147
|
+
version: 1;
|
|
148
|
+
production: boolean;
|
|
149
|
+
scriptUrl: IFlippScriptUrls;
|
|
150
|
+
retailer: "wakefernpricerite" | "saveonfoods" | "unitedsupermarkets" | "dearbornmarket" | "saveonfoods";
|
|
151
|
+
autoLocate: boolean;
|
|
152
|
+
useRequestedDomain: boolean;
|
|
153
|
+
}
|
|
154
|
+
export interface IFlippConfigV2 {
|
|
155
|
+
version: 2;
|
|
156
|
+
retailer: string;
|
|
157
|
+
merchantId: string;
|
|
158
|
+
accessToken: string;
|
|
159
|
+
}
|
|
160
|
+
export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
|
|
161
|
+
export declare type IAllSettings = {
|
|
162
|
+
[envName in IEnvNames]: IRetailerSettings;
|
|
163
|
+
};
|
|
164
|
+
export interface ISMSConfig {
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
getEnrollmentUrl: string;
|
|
167
|
+
postEnrollmentUrl: string;
|
|
168
|
+
}
|
|
169
|
+
export interface IPageAdvertsRow {
|
|
170
|
+
[row: number]: IAdvertsData;
|
|
171
|
+
}
|
|
172
|
+
export declare type IScreenType = "mobile" | "tablet" | "desktop";
|
|
173
|
+
export interface ITimeslotModalSettings {
|
|
174
|
+
showOnAddToCart: boolean;
|
|
175
|
+
timeslotRequiredToAddToCart: boolean;
|
|
176
|
+
timeslotRequiredToViewCartReview: boolean;
|
|
177
|
+
}
|
|
178
|
+
export declare type IAdvertsData = {
|
|
179
|
+
[screen in IScreenType]?: string;
|
|
180
|
+
};
|
|
181
|
+
export declare type IAdvertSettings = {
|
|
182
|
+
page_homepage?: IAdvertLeaderboards;
|
|
183
|
+
page_search?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
|
|
184
|
+
page_cart?: IAdvertLeaderboards & IAdvertSkyScrapers;
|
|
185
|
+
"page_product-categories"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
|
|
186
|
+
"page_product-listing"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
|
|
187
|
+
};
|
|
188
|
+
export declare type IPageNamesForAdverts = {
|
|
189
|
+
[key in keyof IAdvertSettings]: string;
|
|
190
|
+
};
|
|
191
|
+
export interface IAdvertLeaderboards {
|
|
192
|
+
leaderboards?: IPageAdvertsRow;
|
|
193
|
+
}
|
|
194
|
+
export interface IAdvertProductGrid {
|
|
195
|
+
productGrid?: {
|
|
196
|
+
leaderboards?: IPageAdvertsRow;
|
|
197
|
+
productCardBanners?: IPageAdvertsRow;
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
export interface IAdvertSkyScrapers {
|
|
201
|
+
skyscrapers?: IAdvertsData;
|
|
202
|
+
}
|
|
203
|
+
export interface IGoogleAutocompleteSettings {
|
|
204
|
+
types?: IGoogleAutocompleteTypes;
|
|
205
|
+
bounds?: IGoogleAutocompleteBounds;
|
|
206
|
+
strictBounds?: boolean;
|
|
207
|
+
restrictCountries?: string[];
|
|
208
|
+
}
|
|
209
|
+
export interface IGoogleAutocompleteBounds {
|
|
210
|
+
east_longitude: number;
|
|
211
|
+
north_latitude: number;
|
|
212
|
+
south_latitude: number;
|
|
213
|
+
west_longitude: number;
|
|
214
|
+
}
|
|
215
|
+
export declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
216
|
+
export interface ICtaButtons {
|
|
217
|
+
iconAlignment: "left" | "right" | null;
|
|
218
|
+
iconName: IconNames;
|
|
219
|
+
}
|
|
220
|
+
export interface ISodiumWarning {
|
|
221
|
+
isEnabled: boolean;
|
|
222
|
+
threshold: number;
|
|
223
|
+
}
|
|
224
|
+
export interface IAddressesSettings {
|
|
225
|
+
addressValidationTypes: IAddressValidationTypes;
|
|
226
|
+
canadianAddressCompleteKey: string | undefined;
|
|
227
|
+
eircodeUrl: string | undefined;
|
|
228
|
+
integration: {
|
|
229
|
+
addNewAddressUrl: string | undefined;
|
|
230
|
+
editAddressUrl: string | undefined;
|
|
231
|
+
deleteAddressUrl: string | undefined;
|
|
232
|
+
};
|
|
233
|
+
useAddressValidation: boolean;
|
|
234
|
+
}
|
|
235
|
+
export interface IAccountPageSettings {
|
|
236
|
+
loyaltyTab: {
|
|
237
|
+
disabledEdit?: boolean;
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
loyaltyNumberLength: number;
|
|
240
|
+
loyaltyNumberPrefix: string;
|
|
241
|
+
loyaltyValidationType: IValidationType[];
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
export interface ILayoutSettings {
|
|
245
|
+
footerVersion: IFooterTypes;
|
|
246
|
+
}
|
|
247
|
+
export declare type ILoggingLevel = "error" | "warning" | "info" | "debug";
|
|
248
|
+
export interface IAddressValidationTypes {
|
|
249
|
+
addressLine1: IValidationType[];
|
|
250
|
+
addressLine2: IValidationType[];
|
|
251
|
+
city: IValidationType[];
|
|
252
|
+
countyProvinceState: IValidationType[];
|
|
253
|
+
familyName: IValidationType[];
|
|
254
|
+
firstName: IValidationType[];
|
|
255
|
+
instructions: IValidationType[];
|
|
256
|
+
phoneNumber: IValidationType[];
|
|
257
|
+
postCode: IValidationType[];
|
|
258
|
+
}
|
|
259
|
+
export interface IDefaultSearchParams {
|
|
260
|
+
q: string;
|
|
261
|
+
page: string;
|
|
262
|
+
skip: string;
|
|
263
|
+
take: string;
|
|
264
|
+
}
|
|
265
|
+
export interface IDefaultStoreLocation {
|
|
266
|
+
latitude: number;
|
|
267
|
+
longitude: number;
|
|
268
|
+
}
|
|
269
|
+
export declare type IDefaultCounty = "USA" | "Canada" | "Ireland" | "Australia" | string;
|
|
270
|
+
export declare type IRetailerCountry = "us" | "ca" | "ie" | "au";
|
|
271
|
+
export interface IRestrictMapPlaces {
|
|
272
|
+
country?: string | string[];
|
|
273
|
+
postalCode?: string;
|
|
274
|
+
route?: string;
|
|
275
|
+
locality?: string;
|
|
276
|
+
administrativeArea?: string;
|
|
277
|
+
fetchNearStoresSettings?: {
|
|
278
|
+
kmRange: number;
|
|
279
|
+
totalTake: number;
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly";
|
|
283
|
+
export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
|
|
284
|
+
export declare type INutritionZone = "us" | "eu" | "au" | "ca";
|
|
285
|
+
export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
|
|
286
|
+
export declare type IValidateLength = {
|
|
287
|
+
_type: "less" | "more" | "exact";
|
|
288
|
+
length: number;
|
|
289
|
+
};
|
|
290
|
+
export declare type IValidateMultipleLengths = {
|
|
291
|
+
_type: "multi";
|
|
292
|
+
multiLength: number[];
|
|
293
|
+
};
|
|
294
|
+
export declare type IValidateDateRange = {
|
|
295
|
+
_type: "overYears";
|
|
296
|
+
overYears: number;
|
|
297
|
+
};
|
|
298
|
+
export declare type IRegistrationFieldTypes = "default" | "version2";
|
|
299
|
+
export declare type IRegistrationFieldNames = "phone" | "loyaltyId" | "isAdultConfirmed" | "marketingConsent" | "dateOfBirth";
|
|
300
|
+
export interface IRegistrationField {
|
|
301
|
+
name: IRegistrationFieldNames;
|
|
302
|
+
label: string;
|
|
303
|
+
placeholder: string;
|
|
304
|
+
designVersion: IRegistrationFieldTypes;
|
|
305
|
+
validationTypes: IValidationType[];
|
|
306
|
+
}
|
|
307
|
+
export interface ICheckoutValidation {
|
|
308
|
+
instructions: IValidationType[];
|
|
309
|
+
phoneNumber: IValidationType[];
|
|
310
|
+
smsNumber: IValidationType[];
|
|
311
|
+
}
|
|
312
|
+
export interface ISearchPreview {
|
|
313
|
+
suggestions: boolean;
|
|
314
|
+
products: boolean;
|
|
315
|
+
}
|
|
316
|
+
export interface ISearchPreviewVisibility {
|
|
317
|
+
desktop?: ISearchPreview;
|
|
318
|
+
mobile?: ISearchPreview;
|
|
319
|
+
}
|
|
320
|
+
export declare type IPaymentCards = {
|
|
321
|
+
[cardName in PaymentCards]: boolean;
|
|
322
|
+
};
|
|
323
|
+
export interface IGlobalAnimations {
|
|
324
|
+
confetti: ILayoutAnimationsConfetti;
|
|
325
|
+
}
|
|
326
|
+
export interface ILayoutAnimationsConfetti {
|
|
327
|
+
enableConfettiAnimation: boolean;
|
|
328
|
+
}
|
|
329
|
+
export interface IGlobalCheckoutProps {
|
|
330
|
+
numericPhonePayload: boolean;
|
|
331
|
+
}
|
|
332
|
+
export interface IAddressIntegration {
|
|
333
|
+
enabled: boolean;
|
|
334
|
+
addressFinderType: IAddressFinderType;
|
|
335
|
+
useForNewAddresses: boolean;
|
|
336
|
+
}
|
|
337
|
+
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
338
|
+
export interface IProductCardsProps {
|
|
339
|
+
gridRowLength: {
|
|
340
|
+
[key in IScreenType]: number;
|
|
341
|
+
};
|
|
342
|
+
carouselsRowLength: {
|
|
343
|
+
[key in IScreenType]: number;
|
|
344
|
+
};
|
|
345
|
+
productCard: {
|
|
346
|
+
enabled: boolean;
|
|
347
|
+
layouts: IProductCardLayouts;
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
export declare type IProductCardLayouts = {
|
|
351
|
+
ContainersGrid: "default";
|
|
352
|
+
ContainersCarousel: "default";
|
|
353
|
+
};
|
|
354
|
+
export declare type IProductCardLayoutObjects<T> = {
|
|
355
|
+
[Place in keyof IProductCardLayouts]: {
|
|
356
|
+
[key in IProductCardLayouts[Place]]: T;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
|
|
360
|
+
export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
|
|
361
|
+
export interface IProductDetailsPageLayout {
|
|
362
|
+
desktop: {
|
|
363
|
+
left: PdpDetailsElementLayout[];
|
|
364
|
+
right: PdpDetailsElementLayout[];
|
|
365
|
+
};
|
|
366
|
+
mobile: {
|
|
367
|
+
left: PdpDetailsElementLayout[];
|
|
368
|
+
right: PdpDetailsElementLayout[];
|
|
369
|
+
};
|
|
370
|
+
}
|
|
371
|
+
export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
|