@thryveai/theme-interfaces 2.7.115 → 2.7.117

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.
Files changed (62) hide show
  1. package/README.md +29 -29
  2. package/package.json +29 -29
  3. package/dist/index.d.ts +0 -38
  4. package/dist/index.js +0 -41
  5. package/dist/interfaces/admin-images-interfaces.d.ts +0 -11
  6. package/dist/interfaces/admin-images-interfaces.js +0 -2
  7. package/dist/interfaces/admin-settings-interfaces.d.ts +0 -73
  8. package/dist/interfaces/admin-settings-interfaces.js +0 -2
  9. package/dist/interfaces/default-settings.interfaces.d.ts +0 -92
  10. package/dist/interfaces/default-settings.interfaces.js +0 -3
  11. package/dist/interfaces/default-theme.interface.d.ts +0 -736
  12. package/dist/interfaces/default-theme.interface.js +0 -2
  13. package/dist/interfaces/icons.interfaces.d.ts +0 -7
  14. package/dist/interfaces/icons.interfaces.js +0 -2
  15. package/dist/interfaces/retailer-settings.interfaces.d.ts +0 -696
  16. package/dist/interfaces/retailer-settings.interfaces.js +0 -2
  17. package/dist/interfaces/shared-settings-interfaces.d.ts +0 -5
  18. package/dist/interfaces/shared-settings-interfaces.js +0 -2
  19. package/dist/interfaces/shared-settings.interfaces.d.ts +0 -31
  20. package/dist/interfaces/shared-settings.interfaces.js +0 -2
  21. package/dist/interfaces/sts-settings.interfaces.d.ts +0 -6
  22. package/dist/interfaces/sts-settings.interfaces.js +0 -2
  23. package/dist/interfaces/theme.interfaces.d.ts +0 -717
  24. package/dist/interfaces/theme.interfaces.js +0 -2
  25. package/dist/mobile/interfaces/mobile-admin-settings.interfaces.d.ts +0 -8
  26. package/dist/mobile/interfaces/mobile-admin-settings.interfaces.js +0 -2
  27. package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.d.ts +0 -58
  28. package/dist/mobile/interfaces/mobile-retailer-settings.interfaces.js +0 -2
  29. package/dist/mobile/reactnative/MobileDefaultSettings.d.ts +0 -6
  30. package/dist/mobile/reactnative/MobileDefaultSettings.js +0 -21
  31. package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.d.ts +0 -2
  32. package/dist/mobile/reactnative/MobileSettingsTemplate.AdminUi.js +0 -96
  33. package/dist/storefront/SFUIImagesTemplate.AdminUi.d.ts +0 -2
  34. package/dist/storefront/SFUIImagesTemplate.AdminUi.js +0 -112
  35. package/dist/storefront/SFUISettingsTemplate.AdminUi.d.ts +0 -16
  36. package/dist/storefront/SFUISettingsTemplate.AdminUi.js +0 -1110
  37. package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.d.ts +0 -4
  38. package/dist/storefront/SFUISharedSettingsTemplate.AdminUi.js +0 -132
  39. package/dist/storefront/SFUIThemesTemplate.AdminUi.d.ts +0 -3
  40. package/dist/storefront/SFUIThemesTemplate.AdminUi.js +0 -113
  41. package/dist/storefront/contentEngineComponents.d.ts +0 -25
  42. package/dist/storefront/contentEngineComponents.js +0 -27
  43. package/dist/storefront/defaultIconsStorefront.d.ts +0 -3
  44. package/dist/storefront/defaultIconsStorefront.js +0 -160
  45. package/dist/storefront/defaultImagesStorefront.d.ts +0 -3
  46. package/dist/storefront/defaultImagesStorefront.js +0 -100
  47. package/dist/storefront/defaultSettingsStorefront.d.ts +0 -3
  48. package/dist/storefront/defaultSettingsStorefront.js +0 -395
  49. package/dist/storefront/defaultSharedSettings.d.ts +0 -3
  50. package/dist/storefront/defaultSharedSettings.js +0 -29
  51. package/dist/storefront/defaultThemeStorefront.d.ts +0 -5
  52. package/dist/storefront/defaultThemeStorefront.js +0 -1207
  53. package/dist/storefront/productBadgeAttributes.d.ts +0 -6
  54. package/dist/storefront/productBadgeAttributes.js +0 -31
  55. package/dist/sts/STSImagesTemplate.AdminUi.d.ts +0 -2
  56. package/dist/sts/STSImagesTemplate.AdminUi.js +0 -72
  57. package/dist/sts/STSSettingsTemplate.AdminUi.d.ts +0 -2
  58. package/dist/sts/STSSettingsTemplate.AdminUi.js +0 -30
  59. package/dist/sts/defaultSettingsSts.d.ts +0 -3
  60. package/dist/sts/defaultSettingsSts.js +0 -9
  61. package/dist/theme-templates/index.d.ts +0 -3
  62. package/dist/theme-templates/index.js +0 -8
@@ -1,696 +0,0 @@
1
- import { CMSNames } from "../storefront/contentEngineComponents";
2
- import { ProductAttributes } from "../storefront/productBadgeAttributes";
3
- import { IconNames, PaymentCards } from "./icons.interfaces";
4
- import { NumberRange } from "./theme.interfaces";
5
- export interface IRetailerSettings {
6
- accountPage?: IAccountPageSettings;
7
- additionalCharges?: boolean;
8
- subscriptions?: boolean;
9
- creditBalance?: boolean;
10
- addresses?: {
11
- addressValidationTypes?: IAddressValidationTypes;
12
- canadianAddressCompleteKey?: string | undefined;
13
- eircodeUrl?: string | null;
14
- integration?: {
15
- addNewAddressUrl: string | undefined;
16
- editAddressUrl: string | undefined;
17
- deleteAddressUrl: string | undefined;
18
- };
19
- useAddressValidation?: boolean;
20
- };
21
- addressValidationTypes?: IAddressValidationTypes;
22
- advertSettings?: IAdvertSettings;
23
- allowInStorePurchases?: boolean;
24
- allowPastPurchases?: boolean;
25
- buildNumber: string;
26
- cacheTimeMins?: number;
27
- canadianAddressCompleteKey?: string | undefined;
28
- checkout?: IGlobalCheckoutProps;
29
- checkoutV1?: boolean;
30
- checkoutValidation?: ICheckoutValidation;
31
- ctaButtons?: ICtaButtons;
32
- daysToRemainSignedIn?: number;
33
- defaultCountry?: IDefaultCounty;
34
- defaultSearchParams?: IDefaultSearchParams;
35
- defaultShoppingMode?: "pickup" | "planning" | "delivery";
36
- defaultStoreLocation?: IDefaultStoreLocation;
37
- disableTprPrice?: boolean;
38
- documentTitle?: string;
39
- eircode?: string | null;
40
- enable3dSecure?: boolean;
41
- enableGoogleTranslate?: boolean;
42
- enableNewsletterSignup?: boolean;
43
- enableNotifications?: boolean;
44
- enableRecipeSearch?: boolean;
45
- entryModalVersion?: IEntryModalVersion;
46
- hideAlcoholRule?: IShoppingRuleControl;
47
- errorLoggingLevel?: ILoggingLevel;
48
- externalApps?: IExternalApps;
49
- externalStoreSelectorUrl?: string | undefined;
50
- favoritesV1?: boolean;
51
- featureSwitch?: IFeatureSwitch;
52
- flipp?: IFlippConfig | IFlippConfigV2 | null;
53
- globalAnimations?: IGlobalAnimations;
54
- googleAutocompleteSettings?: IGoogleAutocompleteSettings;
55
- gtmId?: undefined | string;
56
- hideTaxOnSummary?: boolean;
57
- houseAccountRegExValidation?: string;
58
- idpTarget?: "_self" | "_blank";
59
- idpUrl?: undefined | string;
60
- instacartUrl?: string | undefined;
61
- isPlanningOnly?: boolean;
62
- RemoveAllOutOfStock?: boolean;
63
- layout?: ILayoutSettings;
64
- layouts?: IGlobalLayouts;
65
- limitProductCardTitleHeight?: boolean;
66
- loggingLevelClient?: ILoggingLevel;
67
- loggingLevelServer?: ILoggingLevel;
68
- mainHeaderHeight?: number;
69
- maintainCustomerJourney?: boolean;
70
- maintainCustomerPreferences?: IMaintainCustomerPreferences;
71
- mapZoom?: number;
72
- minimumCreditCardAmount?: number;
73
- nutritionZone?: INutritionZone;
74
- paymentCards?: IPaymentCards;
75
- pdpDetailsLayout?: IProductDetailsPageLayout;
76
- productCardTitleHeight?: number;
77
- productCards?: IProductCardsProps;
78
- productCardv2?: boolean;
79
- promoTemplateVersion?: number;
80
- registrationFields?: IRegistrationField[];
81
- restrictMapPlacesResults?: IRestrictMapPlaces;
82
- retailerCountry?: IRetailerCountry;
83
- retailerName: string;
84
- searchPreview?: ISearchPreviewVisibility;
85
- secondTierAuthorization?: ISecondTierAuthorization;
86
- showCheckoutPromoCode?: boolean;
87
- showImgOnOrder?: boolean;
88
- siteSettings?: ISiteSettings;
89
- smartBanner?: ISmartBanner;
90
- smsNotifications?: ISMSConfig;
91
- sodiumWarning?: ISodiumWarning;
92
- specialRequestItems?: boolean;
93
- subHeaderHeight?: number;
94
- TimeslotModalSettings?: ITimeslotModalSettings;
95
- useAddressValidation?: boolean;
96
- }
97
- export interface IFeatureSwitch {
98
- additionalCharges: boolean;
99
- clientCache: boolean;
100
- vouchers: IVouchers;
101
- giftCards: IGiftCards;
102
- smartbanner: ISmartBanner;
103
- entryModalVersion: IEntryModalVersion;
104
- addressIntegration: IAddressIntegration;
105
- hideAlcoholRule: IShoppingRuleControl;
106
- addressIntegrationV2: boolean;
107
- }
108
- export interface ISiteSettings {
109
- anonymousCart: boolean;
110
- }
111
- export interface IVouchers {
112
- enabled: boolean;
113
- reCaptcha: boolean;
114
- manualVouchers: boolean;
115
- }
116
- export interface IPromotionCalculator {
117
- bundlePromotionCalculator: boolean;
118
- nonBundlePromotionCalculator: boolean;
119
- }
120
- export interface IGiftCards {
121
- enabled: boolean;
122
- giftCardInputValidation: string;
123
- pinInputValidation: string;
124
- reCaptcha: boolean;
125
- }
126
- export declare type IEntryModalVersion = "entry" | "geolocation" | "skipStoreSelection";
127
- export interface ISmartBanner {
128
- enabled: boolean;
129
- title: string;
130
- author: string;
131
- price: string;
132
- priceSuffixApple: string;
133
- priceSuffixGoogle: string;
134
- iconApple: string;
135
- iconGoogle: string;
136
- button: string;
137
- buttonUrlApple: string;
138
- buttonUrlGoogle: string;
139
- closeLabel: string;
140
- }
141
- export interface IGlobalLayouts {
142
- cartSummary: ICartSummaryLayout;
143
- couponGallery: ICouponGalleryLayout;
144
- }
145
- export interface ICouponGalleryLayout {
146
- enabled: boolean;
147
- galleryIsIframe: boolean;
148
- galleryHasNavLink: boolean;
149
- }
150
- export interface ICartSummaryLayout {
151
- showTaxTotal: boolean;
152
- showTaxGroups: boolean;
153
- }
154
- export interface IExternalApps {
155
- sts?: IExternalAppSTS;
156
- }
157
- export interface IExternalAppSTS {
158
- customTermPolicy?: string;
159
- }
160
- export interface ISecondTierAuthorization {
161
- time: undefined | null | number;
162
- pages: string[];
163
- }
164
- export interface IFlippConfig {
165
- version: 1;
166
- production: boolean;
167
- scriptUrl: IFlippScriptUrls;
168
- retailer: "wakefernpricerite" | "saveonfoods" | "unitedsupermarkets" | "dearbornmarket" | "saveonfoods";
169
- autoLocate: boolean;
170
- useRequestedDomain: boolean;
171
- }
172
- export interface IFlippConfigV2 {
173
- accessToken: string;
174
- hideHeader: boolean;
175
- locale: string;
176
- merchantId: string;
177
- retailer: string;
178
- slideOutView: boolean;
179
- version: 2;
180
- zoom: number;
181
- }
182
- export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
183
- export declare type IAllSettings = {
184
- [envName in IEnvNames]: IRetailerSettings;
185
- };
186
- export interface ISMSConfig {
187
- enabled: boolean;
188
- getEnrollmentUrl: string;
189
- postEnrollmentUrl: string;
190
- }
191
- export interface IPageAdvertsRow {
192
- [row: number]: IAdvertsData;
193
- }
194
- export declare type IScreenType = "mobile" | "tablet" | "desktop";
195
- export interface ITimeslotModalSettings {
196
- showOnAddToCart: boolean;
197
- timeslotRequiredToAddToCart: boolean;
198
- timeslotRequiredToViewCartReview: boolean;
199
- timeslotRequiredToViewCheckout: boolean;
200
- enableSelectToContinueText: boolean;
201
- }
202
- export declare type IAdvertsData = {
203
- [screen in IScreenType]?: string;
204
- };
205
- export declare type IAdvertSettings = {
206
- page_homepage?: IAdvertLeaderboards;
207
- page_search?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
208
- page_cart?: IAdvertLeaderboards & IAdvertSkyScrapers;
209
- "page_product-categories"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
210
- "page_product-listing"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
211
- };
212
- export declare type IPageNamesForAdverts = {
213
- [key in keyof IAdvertSettings]: string;
214
- };
215
- export interface IAdvertLeaderboards {
216
- leaderboards?: IPageAdvertsRow;
217
- }
218
- export interface IAdvertProductGrid {
219
- productGrid?: {
220
- leaderboards?: IPageAdvertsRow;
221
- productCardBanners?: IPageAdvertsRow;
222
- };
223
- }
224
- export interface IAdvertSkyScrapers {
225
- skyscrapers?: IAdvertsData;
226
- }
227
- export interface IBarcodeOptions {
228
- width?: number;
229
- height?: number;
230
- format?: "CODE39" | "CODE128" | "EAN13" | "ITF14" | "MSI" | "pharmacode" | "codabar" | "upc";
231
- displayValue?: boolean;
232
- fontOptions?: string;
233
- font?: string;
234
- textAlign?: string;
235
- textPosition?: string;
236
- textMargin?: number;
237
- fontSize?: number;
238
- background?: string;
239
- lineColor?: string;
240
- margin?: number;
241
- marginTop?: number;
242
- marginBottom?: number;
243
- marginLeft?: number;
244
- marginRight?: number;
245
- }
246
- export interface IBarcodeSettings {
247
- enabled: boolean;
248
- }
249
- export interface IGoogleAutocompleteSettings {
250
- types?: IGoogleAutocompleteTypes;
251
- bounds?: IGoogleAutocompleteBounds;
252
- strictBounds?: boolean;
253
- restrictCountries?: string[];
254
- }
255
- export interface IGoogleAutocompleteBounds {
256
- east_longitude: number;
257
- north_latitude: number;
258
- south_latitude: number;
259
- west_longitude: number;
260
- }
261
- export declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
262
- export interface ICtaButtons {
263
- iconAlignment: "left" | "right" | null;
264
- iconName: IconNames;
265
- }
266
- export interface IProductAttributesLayout {
267
- attributesRank: ProductAttributes[];
268
- excludedAttributes: ProductAttributes[];
269
- }
270
- export interface IPdpNutritionLink {
271
- href: string | null;
272
- target: LinkTarget;
273
- }
274
- export interface ISodiumWarning {
275
- isEnabled: boolean;
276
- threshold: number;
277
- }
278
- export interface IAddressesSettings {
279
- addressValidationTypes: IAddressValidationTypes;
280
- eircode: {
281
- enabled: boolean;
282
- url: string;
283
- };
284
- integration: {
285
- enabled: boolean;
286
- addressFinderType: IAddressFinderType;
287
- addNewAddressUrl: string;
288
- editAddressUrl: string;
289
- deleteAddressUrl: string;
290
- getLocationUrl: string;
291
- getAddressesUrl: string;
292
- };
293
- useAddressValidation: boolean;
294
- disableAddressOnDelivery: boolean;
295
- }
296
- export interface IAddressesSettingsV2 {
297
- addressValidationTypes: IAddressValidationTypes;
298
- eircode: {
299
- enabled: boolean;
300
- url: string;
301
- };
302
- integration: {
303
- enabled: boolean;
304
- addressFinderType: IAddressFinderType;
305
- useForNewAddresses: boolean;
306
- addNewAddressUrl: string;
307
- editAddressUrl: string;
308
- deleteAddressUrl: string;
309
- addressProfileName: string | null;
310
- };
311
- useAddressValidation: boolean;
312
- fixOldAddresses: boolean;
313
- }
314
- export interface ICartSummaryV2 {
315
- showTaxTotal: boolean;
316
- showTaxGroups: boolean;
317
- hideTaxOnSummary: boolean;
318
- }
319
- export interface ICheckoutSettingsV2 {
320
- numericPhonePayload: boolean;
321
- houseAccountRegExValidation: string;
322
- minimumCreditCardAmount: number;
323
- paymentCards: IPaymentCards;
324
- checkoutValidation: ICheckoutValidation;
325
- forceDeliverySection: boolean;
326
- enableInterimModal: boolean;
327
- smsOptIn: boolean;
328
- }
329
- export interface IFeaturesV2 {
330
- additionalCharges: boolean;
331
- creditBalance: boolean;
332
- subscriptions: boolean;
333
- clientCache: boolean;
334
- vouchers: IVouchers;
335
- promotionDetailsPage: IPromotionCalculator;
336
- giftCards: IGiftCards;
337
- smartbanner: ISmartBanner;
338
- entryModalVersion: IEntryModalVersion;
339
- hideAlcoholRule: IShoppingRuleControl;
340
- addressIntegrationV2: boolean;
341
- allowInStorePurchases: boolean;
342
- allowPastPurchases: boolean;
343
- advertSettings: IAdvertSettings;
344
- ebtPayments: boolean;
345
- emailCartOrShoppingList: boolean;
346
- enableGoogleTranslate: boolean;
347
- enableNewsletterSignup: boolean;
348
- enableNotifications: boolean;
349
- enableRecipeSearch: boolean;
350
- externalStoreSelectorUrl: {
351
- enabled: boolean;
352
- url: string;
353
- };
354
- favoritesV1: boolean;
355
- flipp: IFlippConfig | IFlippConfigV2 | null;
356
- globalAnimations: IGlobalAnimations;
357
- instacart: {
358
- enabled: boolean;
359
- url: string;
360
- };
361
- recipeLegacyShareLink: boolean;
362
- registrationFields: IRegistrationField[];
363
- secondTierAuthorization?: ISecondTierAuthorization;
364
- showCheckoutPromoCode: boolean;
365
- showImgOnOrder: boolean;
366
- smsNotifications: ISMSConfig;
367
- specialRequestItems: boolean;
368
- couponGallery: ICouponGalleryLayout;
369
- gsaSupportedBrowser: boolean;
370
- acquiaAuthService: boolean;
371
- }
372
- export interface IPdpSettingsV2 {
373
- externalContent: IExternalContentProps;
374
- nutritionZone: INutritionZone;
375
- nutritionLink: IPdpNutritionLink;
376
- pdpDetailsLayout: IProductDetailsPageLayout;
377
- sodiumWarning: ISodiumWarning;
378
- productAttributesLayout: IProductAttributesLayout;
379
- priceLoyaltyFlag: boolean;
380
- }
381
- export interface IProductCardSettingsV2 {
382
- limitProductCardTitleHeight: boolean;
383
- productCardTitleHeight: number;
384
- productCards: IProductCardsProps;
385
- }
386
- export interface ICookiePro {
387
- enabled: boolean;
388
- src: string;
389
- domain: string;
390
- }
391
- export interface ISiteSettingsV2 {
392
- clientSideOrderModify: boolean;
393
- cookiePro: ICookiePro;
394
- anonymousCart: boolean;
395
- ctaButtons: ICtaButtons | null | undefined;
396
- cmsLazyLoadRows: number;
397
- daysToRemainSignedIn: NumberRange<1, 999>;
398
- defaultCountry: IDefaultCounty;
399
- defaultLanguage: string;
400
- defaultSearchParams: IDefaultSearchParams;
401
- defaultShoppingMode: "pickup" | "planning" | "delivery";
402
- defaultStoreLocation: IDefaultStoreLocation;
403
- defaultTabView: "listView" | "mapView";
404
- showChangeCustomerEmail: boolean;
405
- disableTprPrice: boolean;
406
- mobileViewCardLayout: IMobileViewCardLayout;
407
- footerVersion: IFooterTypes;
408
- googleAutocompleteSettings: IGoogleAutocompleteSettings;
409
- gtmId: string;
410
- hideWelcomeModalOnCorporate: boolean;
411
- isPlanningOnly: boolean;
412
- RemoveAllOutOfStock: boolean;
413
- mainHeaderHeight: number;
414
- maintainCustomerJourney: boolean;
415
- maintainCustomerPreferences: IMaintainCustomerPreferences;
416
- mapZoom: number;
417
- promoTemplateVersion: number;
418
- restrictMapPlacesResults: IRestrictMapPlaces;
419
- retailerCountry: IRetailerCountry;
420
- retailerName: string;
421
- searchPreview: ISearchPreviewVisibility;
422
- subHeaderHeight: number;
423
- timeslotModalSettings: ITimeslotModalSettings;
424
- useContentEngineV2Components: IUseContentEngineV2Components;
425
- isLegacyProductURL: boolean;
426
- headerLinks: IHeaderLinksLayout;
427
- useAdsV1: boolean;
428
- advertProductView: boolean;
429
- showCartValueOnMobile: boolean;
430
- scrollToTopButton: IScrollToTopButton;
431
- clientRenderCoupons: boolean;
432
- showShopAllLink: IShowShopAllLink;
433
- }
434
- export interface IHeaderLinksLayout {
435
- enabled: boolean;
436
- dimension: number;
437
- }
438
- export interface IWelcomeModalV2 {
439
- label: string;
440
- href: string;
441
- target: LinkTarget;
442
- icon: string;
443
- }
444
- export interface IPerformanceSettingsV2 {
445
- vouchersLongTimeout: boolean;
446
- }
447
- export declare type IUseContentEngineV2Components = {
448
- [key in CMSNames]: boolean;
449
- };
450
- export interface IAccountPageSettings {
451
- loyaltyTab: {
452
- disabledEdit?: boolean;
453
- enabled: boolean;
454
- loyaltyNumberLength: number;
455
- loyaltyNumberPrefix: string;
456
- loyaltyValidationType: IValidationType[];
457
- };
458
- }
459
- export interface ILayoutSettings {
460
- footerVersion: IFooterTypes;
461
- }
462
- export declare type ILoggingLevel = "error" | "warning" | "info" | "debug";
463
- export interface IAddressValidationTypes {
464
- addressLine1: IValidationType[];
465
- addressLine2: IValidationType[];
466
- city: IValidationType[];
467
- countyProvinceState: IValidationType[];
468
- familyName: IValidationType[];
469
- firstName: IValidationType[];
470
- instructions: IValidationType[];
471
- phoneNumber: IValidationType[];
472
- postCode: IValidationType[];
473
- smsNumber: IValidationType[];
474
- deliveryModalZipCodeValidation: IValidationType[];
475
- }
476
- export interface IDefaultSearchParams {
477
- q: string;
478
- page: string;
479
- skip: string;
480
- take: string;
481
- }
482
- export interface IDefaultStoreLocation {
483
- latitude: number;
484
- longitude: number;
485
- }
486
- export declare type IDefaultCounty = "USA" | "Canada" | "Ireland" | "Australia" | string;
487
- export declare type IRetailerCountry = "us" | "ca" | "ie" | "au";
488
- export interface IRestrictMapPlaces {
489
- country?: string | string[];
490
- postalCode?: string;
491
- route?: string;
492
- locality?: string;
493
- administrativeArea?: string;
494
- fetchNearStoresSettings?: {
495
- kmRange: number;
496
- totalTake: number;
497
- };
498
- }
499
- export declare type IValidationType = IValidateDateRange | IValidateLength | IValidateMultipleLengths | "alphaNumeric" | "alphaOnly" | "alphaOnlyNoDots" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState" | "notWhiteSpacesOnly" | "NAPhone";
500
- export declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
501
- export interface IExternalContentProps {
502
- enabled: boolean;
503
- contentProviders: IDefaultExternal[];
504
- }
505
- export declare type INutritionZone = "us" | "eu" | "au" | "ca";
506
- export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5" | "version6";
507
- export declare type IValidateLength = {
508
- _type: "less" | "more" | "exact";
509
- length: number;
510
- };
511
- export declare type IValidateMultipleLengths = {
512
- _type: "multi";
513
- multiLength: number[];
514
- };
515
- export declare type IValidateDateRange = {
516
- _type: "overYears";
517
- overYears: number;
518
- };
519
- export declare type IRegistrationFieldTypes = "default" | "version2";
520
- export declare type IRegistrationFieldNames = "phone" | "loyaltyId" | "isAdultConfirmed" | "marketingConsent" | "dateOfBirth";
521
- export interface IRegistrationField {
522
- name: IRegistrationFieldNames;
523
- label: string;
524
- placeholder: string;
525
- designVersion: IRegistrationFieldTypes;
526
- validationTypes: IValidationType[];
527
- alwaysVisible?: boolean;
528
- editable?: boolean;
529
- }
530
- export interface ICheckoutValidation {
531
- instructions: IValidationType[];
532
- phoneNumber: IValidationType[];
533
- smsNumber: IValidationType[];
534
- }
535
- export interface ISearchPreview {
536
- suggestions: boolean;
537
- products: boolean;
538
- recipes: boolean;
539
- }
540
- export interface ISearchPreviewVisibility {
541
- desktop?: ISearchPreview;
542
- mobile?: ISearchPreview;
543
- }
544
- export declare type IPaymentCards = {
545
- [cardName in PaymentCards]: boolean;
546
- };
547
- export interface IAdminOnlyV2 {
548
- bannerName: string;
549
- logoUrl: string;
550
- }
551
- export interface IAccountPageV2 {
552
- loyaltyTab: {
553
- barcodeSettings: IBarcodeSettings;
554
- disabledEdit?: boolean;
555
- enabled: boolean;
556
- loyaltyNumberLength: number;
557
- loyaltyNumberPrefix: string;
558
- loyaltyValidationType: IValidationType[];
559
- };
560
- idp: {
561
- enabled: boolean;
562
- target: "_self" | "_blank";
563
- url: string;
564
- };
565
- profileTab: {
566
- deleteAccountButton: boolean;
567
- };
568
- secondStepRegistration: {
569
- businessAccount: IBusinessAccountObject;
570
- };
571
- }
572
- export interface IBusinessAccountObject {
573
- enabled: boolean;
574
- fields: {
575
- title: {
576
- enabled: boolean;
577
- validationTypes: IValidationType[];
578
- };
579
- company: {
580
- enabled: boolean;
581
- validationTypes: IValidationType[];
582
- };
583
- typeOfBusiness: {
584
- enabled: boolean;
585
- options: ITypesOfBusiness[];
586
- validationTypes: IValidationType[];
587
- };
588
- };
589
- }
590
- export declare type ITypesOfBusiness = "foodService" | "education" | "youthSports" | "administrationOffice" | "nonProfit";
591
- export interface IGlobalAnimations {
592
- confetti: ILayoutAnimationsConfetti;
593
- }
594
- export interface ILayoutAnimationsConfetti {
595
- enableConfettiAnimation: boolean;
596
- }
597
- export interface IGlobalCheckoutProps {
598
- numericPhonePayload: boolean;
599
- }
600
- export interface IShoppingRuleControl {
601
- modal: boolean;
602
- pdp: boolean;
603
- productCard: boolean;
604
- }
605
- export interface IAddressIntegration {
606
- enabled: boolean;
607
- addressFinderType: IAddressFinderType;
608
- useForNewAddresses: boolean;
609
- }
610
- export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
611
- export interface IProductCardsProps {
612
- gridRowLength: {
613
- [key in IScreenType]: number;
614
- };
615
- carouselsRowLength: {
616
- [key in IScreenType]: number;
617
- };
618
- productCard: {
619
- enabled: boolean;
620
- layouts: IProductCardLayouts;
621
- components: IProductCardV2ComponentProps;
622
- };
623
- }
624
- export interface IProductCardV2ComponentProps {
625
- promotionLabel: IProductCardV2PromotionLabelsSettings;
626
- recommendedLabel: IProductCardV2RecommendedLabelSettings;
627
- productAttributes: IProductCardV2ProductAttributes;
628
- }
629
- export interface IProductCardV2ProductAttributes {
630
- iconOpacity: number;
631
- }
632
- export interface IProductCardV2RecommendedLabelSettings {
633
- enabled: boolean;
634
- }
635
- export interface IProductCardV2PromotionLabelsSettings {
636
- showLines: number;
637
- labelSource: "name" | "description";
638
- labelsLimit: number;
639
- labelsPriority: ILabelConfig[];
640
- }
641
- export declare type ILabelConfig = {
642
- _type: "pointPromo" | "promo";
643
- limit: number;
644
- } | {
645
- _type: "tprPromo";
646
- };
647
- export declare type IProductCardLayouts = {
648
- ContainersGrid: "default" | "pce-centered" | "prs-labels";
649
- ContainersCarousel: "default" | "pce-centered" | "prs-labels";
650
- FlippSlideout: "default";
651
- };
652
- export declare type IProductCardLayoutObjects<T> = {
653
- [Place in keyof IProductCardLayouts]: {
654
- [key in IProductCardLayouts[Place]]: T;
655
- };
656
- };
657
- export declare type IProductCardILayoutTypes = keyof IProductCardLayouts;
658
- export declare type IProductCardILayoutVersions = IProductCardLayouts[IProductCardILayoutTypes];
659
- export interface IProductDetailsPageLayout {
660
- desktop: {
661
- left: PdpDetailsElementLayout[];
662
- right: PdpDetailsElementLayout[];
663
- };
664
- mobile: {
665
- left: PdpDetailsElementLayout[];
666
- right: PdpDetailsElementLayout[];
667
- };
668
- }
669
- export declare type PdpDetailsElementLayout = "productNutrition" | "productIngredients" | "productDescription" | "sodiumWarning" | "productNumber" | "recommendations" | "productSalesInfo" | string;
670
- export declare type IConfigurableCustomerPreference = "marketingPreferences";
671
- export declare type LinkTarget = "_blank" | "_self" | "_parent" | "_top";
672
- export interface IMaintainCustomerPreferences {
673
- enabled: boolean;
674
- sections: {
675
- [key in IConfigurableCustomerPreference]: string[];
676
- };
677
- optInMarketingPreferences: boolean;
678
- selectOptInMarketingPreferencesStore: boolean;
679
- }
680
- export interface IDefaultExternal {
681
- provider: "brandbank" | "syndigo";
682
- }
683
- export interface IMobileViewCardLayout {
684
- enabled: boolean;
685
- defaultView: "List" | "Grid";
686
- }
687
- export interface IScrollToTopButton {
688
- enabled: boolean;
689
- percentOffset: {
690
- right: number;
691
- bottom: number;
692
- };
693
- }
694
- export interface IShowShopAllLink {
695
- enabled: boolean;
696
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- import { IPartialKeys, ITemplateObject } from "./admin-settings-interfaces";
2
- import { ISharedSettings } from "./shared-settings.interfaces";
3
- declare type IAdminSharedSettings = IPartialKeys<ISharedSettings>;
4
- export declare type IAdminSharedSettingsTemplate = ITemplateObject<IAdminSharedSettings>;
5
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });