@thryveai/theme-interfaces 1.4.8-beta8 → 1.4.11

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/default.config.js DELETED
@@ -1,167 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var defaultConfig = {
4
- adminPanelOnly: {
5
- bannerName: 'Wynshop New Retailer',
6
- logoUrl: 'https://wynshop.com/wp-content/uploads/2021/08/xWynshop_Font_logo_150x39.png.pagespeed.ic.3j0jIxPBvP.webp 1x',
7
- },
8
- advertSettings: {},
9
- timeslotModalSettings: {
10
- showOnAddToCart: false,
11
- timeslotRequiredToAddToCart: false,
12
- timeslotRequiredToViewCartReview: false,
13
- },
14
- accountPage: {
15
- loyaltyTab: {
16
- disabledEdit: false,
17
- enabled: false,
18
- loyaltyNumberLength: 11,
19
- loyaltyNumberPrefix: "",
20
- loyaltyValidationType: [],
21
- },
22
- },
23
- addresses: {
24
- addressValidationTypes: {
25
- addressLine1: ["alphaNumeric", "required"],
26
- addressLine2: ["alphaNumeric"],
27
- city: ["alphaNumeric", "required"],
28
- countyProvinceState: ["usState", "required"],
29
- familyName: ["alphaOnly", "required"],
30
- firstName: ["alphaOnly", "required"],
31
- instructions: ["alphaNumeric"],
32
- phoneNumber: ["usPhone", "required"],
33
- postCode: ["usPostCode", "required"],
34
- },
35
- canadianAddressCompleteKey: undefined,
36
- eircodeUrl: undefined,
37
- integration: {
38
- addNewAddressUrl: undefined,
39
- deleteAddressUrl: undefined,
40
- editAddressUrl: undefined,
41
- },
42
- useAddressValidation: true,
43
- },
44
- addressValidationTypes: {
45
- addressLine1: ["alphaNumeric", "required"],
46
- addressLine2: ["alphaNumeric"],
47
- city: ["alphaNumeric", "required"],
48
- countyProvinceState: ["usState", "required"],
49
- familyName: ["alphaOnly", "required"],
50
- firstName: ["alphaOnly", "required"],
51
- instructions: ["alphaNumeric"],
52
- phoneNumber: ["usPhone", "required"],
53
- postCode: ["usPostCode", "required"],
54
- },
55
- addressIntegration: {
56
- enabled: false,
57
- addressFinderType: "AUS",
58
- getAddressesUrl: "https://api.addressfinder.io/api/au/address/autocomplete/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&q={searchQuery}&format=json&gnaf=1",
59
- getLocationUrl: "https://api.addressfinder.io/api/au/address/metadata/?key={AUS_ADDRESS_SERVICE_KEY}&secret={AUS_ADDRESS_SERVICE_SECRET}&format=json&id={id}&au_paf=0&gps=0",
60
- },
61
- allowInStorePurchases: false,
62
- allowPastPurchases: true,
63
- buildNumber: "default",
64
- cacheTimeMins: 1,
65
- canadianAddressCompleteKey: undefined,
66
- checkoutV1: false,
67
- favoritesV1: false,
68
- checkout: {
69
- numericPhonePayload: false,
70
- },
71
- checkoutValidation: {
72
- instructions: ["alphaNumeric"],
73
- phoneNumber: ["usPhone", "required"],
74
- smsNumber: [],
75
- },
76
- ctaButtons: null,
77
- defaultCountry: "USA",
78
- defaultSearchParams: {
79
- page: "1",
80
- q: "*",
81
- skip: "0",
82
- take: "30",
83
- },
84
- defaultShoppingMode: "pickup",
85
- defaultStoreLocation: {
86
- latitude: 0,
87
- longitude: 0,
88
- },
89
- disableTprPrice: false,
90
- documentTitle: "ThryveAI Commerce",
91
- eircode: undefined,
92
- enable3dSecure: false,
93
- enableGoogleTranslate: false,
94
- enableNewsletterSignup: false,
95
- enableNotifications: false,
96
- errorLoggingLevel: "error",
97
- externalStoreSelectorUrl: undefined,
98
- flipp: null,
99
- gtmId: undefined,
100
- hideTaxOnSummary: false,
101
- houseAccountRegExValidation: ".",
102
- idpTarget: "_self",
103
- idpUrl: undefined,
104
- instacartUrl: undefined,
105
- isPlanningOnly: false,
106
- layout: {
107
- footerVersion: "default",
108
- },
109
- limitProductCardTitleHeight: true,
110
- loggingLevelClient: "error",
111
- loggingLevelServer: "error",
112
- mainHeaderHeight: 110,
113
- mapZoom: 8,
114
- minimumCreditCardAmount: 1.0,
115
- nutritionZone: "us",
116
- paymentCards: {
117
- AmExpCard: true,
118
- DiscoverCard: true,
119
- MasterCard: true,
120
- VisaCard: true,
121
- },
122
- pdpDetailsLayout: {
123
- desktop: [],
124
- mobileTab1: [],
125
- mobileTab2: [],
126
- },
127
- productCardTitleHeight: 40,
128
- registrationFields: [],
129
- retailerCountry: "us",
130
- retailerName: "default",
131
- daysToRemainSignedIn: 30,
132
- searchPreview: {
133
- desktop: {
134
- products: true,
135
- suggestions: true,
136
- },
137
- mobile: {
138
- products: true,
139
- suggestions: true,
140
- },
141
- },
142
- secondTierAuthorization: undefined,
143
- showCheckoutPromoCode: true,
144
- showImgOnOrder: false,
145
- smsNotifications: {
146
- enabled: false,
147
- getEnrollmentUrl: "",
148
- postEnrollmentUrl: "",
149
- },
150
- subHeaderHeight: 0,
151
- promoTemplateVersion: 1,
152
- useAddressValidation: true,
153
- restrictMapPlacesResults: {
154
- fetchNearStoresSettings: {
155
- kmRange: 20,
156
- totalTake: 30,
157
- },
158
- },
159
- globalAnimations: {
160
- confetti: {
161
- enableConfettiAnimation: true,
162
- },
163
- },
164
- googleAutocompleteSettings: {},
165
- productCardv2: false,
166
- };
167
- exports.default = defaultConfig;
@@ -1,7 +0,0 @@
1
- export declare type IIconsObject = {
2
- [iconName in IconNames]: string;
3
- };
4
- export declare type PaymentTypesLogos = "VisaLogo" | "MasterLogo" | "DiscoverCard" | "AmExpCard" | "VisaVerified" | "MasterSecure" | "Comodo";
5
- export declare type PaymentCards = "VisaCard" | "MasterCard" | "DiscoverCard" | "AmExpCard";
6
- export declare type IconNames = "AccountOutline" | "AccountSolid" | "Addresses" | "ArrowDown" | "ArrowRight" | "ArrowUpdown" | "BarScan" | "Bell" | "Blog" | "Cart" | "Check" | "ChevronDown" | "ChevronLeft" | "ChevronRight" | "ChevronUp" | "Circular" | "Clear" | "Close" | "Coupon" | "Dashboard" | "DeliveryOutline" | "DeliverySolid" | "Dietary" | "DoubleArrows" | "Download" | "Dropship" | "Eco" | "Edit" | "Error" | "FaceHappy" | "FaceSad" | "Facebook" | "Fav" | "FavSolid" | "Filter" | "Flag" | "Geolocate" | "Hamburger" | "Help" | "Home" | "Info" | "Instacart" | "Instagram" | "ItemLocation" | "ListCheck" | "ListItems" | "ListLarge" | "ListRemove" | "ListSave" | "ListSearch" | "LocationPin" | "LocationDistance" | "LoyaltyCard" | "Mail" | "Minus" | "MoreOptionsH" | "MoreOptionsV" | "Note" | "Notifications" | "NoteFilled" | "Orders" | "PastPurchases" | "Pause" | "PaymentOutline" | "PaymentSolid" | "Phone" | "PhoneMobile" | "Pickup" | "PickupInfo" | "Pinterest" | "Plus" | "Print" | "PromoOutline" | "PromoSolid" | "RadioActive" | "RadioEmpty" | "RecipeCalories" | "RecipeCooktime" | "RecipeIngredients" | "RecipePreptime" | "RecipeServings" | "Remove" | "Reserve" | "ReserveTime" | "Search" | "SelectCheck" | "SelectEmpty" | "SelectMark" | "Send" | "Settings" | "Share" | "SortGrid" | "SortList" | "StarOutline" | "StarSolid" | "Substitute" | "SubstituteBestmatch" | "SubstituteNone" | "SubstituteProduct" | "Trash" | "Twitter" | "Unavailable" | "Voice" | "Warning" | "Youtube" | "YourLocation" | "GlutenFree" | "Local" | "Organic" | "None" | PaymentTypesLogos | PaymentCards;
7
- export declare const IconNamesToFiles: IIconsObject;
@@ -1,124 +0,0 @@
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
- };
package/index.d.ts DELETED
@@ -1,12 +0,0 @@
1
- import { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, IDefaultRetailerSettings, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType } from "./retailer-settings.interfaces";
2
- import { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles } from "./icons.interfaces";
3
- import { ITheme, IThemeScripts, IThemeImages, IThemeMetadata, IThemeFavicons, IThemeLogoPosition, IThemeLogoHeightsProps, IThemeLogoHeights, ISTSThemeInterface, IThemeFavicon, IThemeMetadataItem, IThemeInterface, IGlobalTheme, IColors, IInitializedEmptyTheme, IThemeAnimationConfettiPlaces, IThemeGlobalAnimations, IThemeAnimationsConfettiPlacesTypes, IThemeAnimationsConfettiProps, IEmbeddedFont, IEmbeddedFontSource } from "./theme.interfaces";
4
- import { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, IInitializedEmptyDefaultTheme, IDefaultThemeAnimationConfettiPlaces, IDefaultThemeGlobalAnimations, IDefaultThemeAnimationsConfettiPlacesTypes, IDefaultThemeAnimationsConfettiProps, IDefaultEmbeddedFont, IDefaultEmbeddedFontSource } from "./default-theme.interface";
5
- import AdminSettingsTemplate from "./admin-settings-template";
6
- import AdminThemeTemplate, { AdminTemplateInputTypes } from "./admin-theme-template";
7
- import defaultConfig from "./default.config";
8
- export { IDefaultTheme, IDefaultThemeScripts, IDefaultThemeImages, IDefaultThemeMetadata, IDefaultThemeFavicons, IDefaultThemeLogoPosition, IDefaultThemeLogoHeightsProps, IDefaultThemeLogoHeights, ISTSDefaultThemeInterface, IDefaultThemeFavicon, IDefaultThemeMetadataItem, IDefaultThemeInterface, IGlobalDefaultTheme, IDefaultColors, 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, };
9
- export { IIconsObject, PaymentTypesLogos, PaymentCards, IconNames, IconNamesToFiles, };
10
- export { IRetailerSettings, ISecondTierAuthorization, IFlippConfig, IFlippConfigV2, IFlippScriptUrls, IAllSettings, ISMSConfig, IDefaultRetailerSettings, ICtaButtons, IAddressesSettings, IAccountPageSettings, ILayoutSettings, ILoggingLevel, IDefaultSearchParams, IDefaultStoreLocation, IDefaultCounty, IRetailerCountry, IRestrictMapPlaces, IValidationType, INutritionZone, IFooterTypes, IRegistrationFieldTypes, IRegistrationFieldNames, IValidateLength, IValidateDateRange, IRegistrationField, ICheckoutValidation, ISearchPreviewVisibility, IPaymentCards, IGlobalAnimations, ILayoutAnimationsConfetti, IGlobalCheckoutProps, IAddressIntegration, IAddressFinderType, };
11
- export { AdminSettingsTemplate, AdminThemeTemplate, AdminTemplateInputTypes };
12
- export { defaultConfig };
package/index.js DELETED
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultConfig = exports.AdminTemplateInputTypes = exports.AdminThemeTemplate = exports.AdminSettingsTemplate = exports.IconNamesToFiles = void 0;
4
- var icons_interfaces_1 = require("./icons.interfaces");
5
- Object.defineProperty(exports, "IconNamesToFiles", { enumerable: true, get: function () { return icons_interfaces_1.IconNamesToFiles; } });
6
- var admin_settings_template_1 = require("./admin-settings-template");
7
- exports.AdminSettingsTemplate = admin_settings_template_1.default;
8
- var admin_theme_template_1 = require("./admin-theme-template");
9
- exports.AdminThemeTemplate = admin_theme_template_1.default;
10
- Object.defineProperty(exports, "AdminTemplateInputTypes", { enumerable: true, get: function () { return admin_theme_template_1.AdminTemplateInputTypes; } });
11
- var default_config_1 = require("./default.config");
12
- exports.defaultConfig = default_config_1.default;
@@ -1,349 +0,0 @@
1
- import { IconNames, PaymentCards } from "./icons.interfaces";
2
- export interface IRetailerSettings {
3
- accountPage?: IAccountPageSettings;
4
- advertSettings?: IAdvertSettings;
5
- TimeslotModalSettings?: ITimeslotModalSettings;
6
- addresses?: {
7
- addressValidationTypes?: IAddressValidationTypes;
8
- canadianAddressCompleteKey?: string | undefined;
9
- eircodeUrl?: string | null;
10
- integration?: {
11
- addNewAddressUrl: string | undefined;
12
- editAddressUrl: string | undefined;
13
- deleteAddressUrl: string | undefined;
14
- };
15
- useAddressValidation?: boolean;
16
- };
17
- addressIntegration?: IAddressIntegration;
18
- addressValidationTypes?: IAddressValidationTypes;
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
- externalStoreSelectorUrl?: string | undefined;
42
- favoritesV1?: boolean;
43
- flipp?: IFlippConfig | IFlippConfigV2 | null;
44
- globalAnimations?: IGlobalAnimations;
45
- gtmId?: undefined | string;
46
- hideTaxOnSummary?: boolean;
47
- houseAccountRegExValidation?: string;
48
- idpTarget?: "_self" | "_blank";
49
- idpUrl?: undefined | string;
50
- instacartUrl?: string | undefined;
51
- isPlanningOnly?: boolean;
52
- layout?: ILayoutSettings;
53
- limitProductCardTitleHeight?: boolean;
54
- loggingLevelClient?: ILoggingLevel;
55
- loggingLevelServer?: ILoggingLevel;
56
- mainHeaderHeight?: number;
57
- mapZoom?: number;
58
- minimumCreditCardAmount?: number;
59
- nutritionZone?: INutritionZone;
60
- paymentCards?: IPaymentCards;
61
- pdpDetailsLayout?: IPdpDetailsLayout;
62
- productCardTitleHeight?: number;
63
- promoTemplateVersion?: number;
64
- registrationFields?: IRegistrationField[];
65
- restrictMapPlacesResults?: IRestrictMapPlaces;
66
- googleAutocompleteSettings?: IGoogleAutocompleteSettings;
67
- retailerCountry?: IRetailerCountry;
68
- retailerName: string;
69
- searchPreview?: ISearchPreviewVisibility;
70
- secondTierAuthorization?: ISecondTierAuthorization;
71
- showCheckoutPromoCode?: boolean;
72
- showImgOnOrder?: boolean;
73
- smsNotifications?: ISMSConfig;
74
- subHeaderHeight?: number;
75
- useAddressValidation?: boolean;
76
- externalApps?: IExternalApps;
77
- productCardv2?: boolean;
78
- }
79
- export interface IExternalApps {
80
- sts?: IExternalAppSTS;
81
- }
82
- export interface IExternalAppSTS {
83
- customTermPolicy?: string;
84
- }
85
- export interface ISecondTierAuthorization {
86
- time: undefined | null | number;
87
- pages: string[];
88
- }
89
- export interface IFlippConfig {
90
- version: 1;
91
- production: boolean;
92
- scriptUrl: IFlippScriptUrls;
93
- retailer: "wakefernpricerite" | "saveonfoods" | "unitedsupermarkets" | "dearbornmarket" | "saveonfoods";
94
- autoLocate: boolean;
95
- useRequestedDomain: boolean;
96
- }
97
- export interface IFlippConfigV2 {
98
- version: 2;
99
- retailer: string;
100
- merchantId: string;
101
- accessToken: string;
102
- }
103
- export declare type IFlippScriptUrls = "circulars.priceritemarketplace" | "circulars.dearbornmarket" | "flyers.v8.commerce.mi9cloud" | "flyers.stg.v8.mywebgrocer" | "flyers.saveonfoods";
104
- export declare type IAllSettings = {
105
- [envName in IEnvNames]: IRetailerSettings;
106
- };
107
- export interface ISMSConfig {
108
- enabled: boolean;
109
- getEnrollmentUrl: string;
110
- postEnrollmentUrl: string;
111
- }
112
- export interface IPageAdvertsRow {
113
- [row: number]: IAdvertsData;
114
- }
115
- export declare type IScreenType = "mobile" | "tablet" | "desktop";
116
- export interface ITimeslotModalSettings {
117
- showOnAddToCart: boolean;
118
- timeslotRequiredToAddToCart: boolean;
119
- timeslotRequiredToViewCartReview: boolean;
120
- }
121
- export declare type IAdvertsData = {
122
- [screen in IScreenType]?: string;
123
- };
124
- export declare type IAdvertSettings = {
125
- page_homepage?: IAdvertLeaderboards;
126
- page_search?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
127
- page_cart?: IAdvertLeaderboards & IAdvertSkyScrapers;
128
- "page_product-categories"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
129
- "page_product-listing"?: IAdvertLeaderboards & IAdvertProductGrid & IAdvertSkyScrapers;
130
- };
131
- export declare type IPageNamesForAdverts = {
132
- [key in keyof IAdvertSettings]: string;
133
- };
134
- export interface IAdvertLeaderboards {
135
- leaderboards?: IPageAdvertsRow;
136
- }
137
- export interface IAdvertProductGrid {
138
- productGrid?: {
139
- leaderboards?: IPageAdvertsRow;
140
- productCardBanners?: IPageAdvertsRow;
141
- };
142
- }
143
- export interface IAdvertSkyScrapers {
144
- skyscrapers?: IAdvertsData;
145
- }
146
- export interface IDefaultRetailerSettings {
147
- adminPanelOnly: {
148
- bannerName: string;
149
- logoUrl: string;
150
- };
151
- accountPage: IAccountPageSettings;
152
- addressIntegration: IAddressIntegration;
153
- addressValidationTypes: IAddressValidationTypes;
154
- addresses: IAddressesSettings;
155
- advertSettings: IAdvertSettings;
156
- timeslotModalSettings: ITimeslotModalSettings;
157
- allowInStorePurchases: boolean;
158
- allowPastPurchases: boolean;
159
- buildNumber: string;
160
- cacheTimeMins: number;
161
- canadianAddressCompleteKey: string | undefined;
162
- checkout: IGlobalCheckoutProps;
163
- checkoutV1: boolean;
164
- checkoutValidation: ICheckoutValidation;
165
- ctaButtons: ICtaButtons | null | undefined;
166
- daysToRemainSignedIn: number;
167
- defaultCountry: IDefaultCounty;
168
- defaultSearchParams: IDefaultSearchParams;
169
- defaultShoppingMode: "pickup" | "planning" | "delivery";
170
- defaultStoreLocation: IDefaultStoreLocation;
171
- disableTprPrice: boolean;
172
- documentTitle: string;
173
- eircode: string | undefined;
174
- enable3dSecure: boolean;
175
- enableGoogleTranslate: boolean;
176
- enableNewsletterSignup: boolean;
177
- enableNotifications: boolean;
178
- errorLoggingLevel: ILoggingLevel;
179
- externalStoreSelectorUrl: string | undefined;
180
- favoritesV1: boolean;
181
- flipp: IFlippConfig | IFlippConfigV2 | null;
182
- globalAnimations: IGlobalAnimations;
183
- gtmId: undefined | string;
184
- hideTaxOnSummary: boolean;
185
- houseAccountRegExValidation: string;
186
- idpTarget: "_self" | "_blank";
187
- idpUrl: undefined | string;
188
- instacartUrl: string | undefined;
189
- isPlanningOnly: boolean;
190
- layout: ILayoutSettings;
191
- limitProductCardTitleHeight: boolean;
192
- loggingLevelClient: ILoggingLevel;
193
- loggingLevelServer: ILoggingLevel;
194
- mainHeaderHeight: number;
195
- mapZoom: number;
196
- minimumCreditCardAmount: number;
197
- nutritionZone: INutritionZone;
198
- paymentCards: IPaymentCards;
199
- pdpDetailsLayout: IPdpDetailsLayout;
200
- productCardTitleHeight: number;
201
- promoTemplateVersion: number;
202
- registrationFields: IRegistrationField[];
203
- restrictMapPlacesResults: IRestrictMapPlaces;
204
- googleAutocompleteSettings: IGoogleAutocompleteSettings;
205
- retailerCountry: IRetailerCountry;
206
- retailerName: string;
207
- searchPreview: ISearchPreviewVisibility;
208
- secondTierAuthorization?: ISecondTierAuthorization;
209
- showCheckoutPromoCode: boolean;
210
- showImgOnOrder: boolean;
211
- smsNotifications: ISMSConfig;
212
- subHeaderHeight: number;
213
- useAddressValidation: boolean;
214
- productCardv2: boolean;
215
- }
216
- export interface IGoogleAutocompleteSettings {
217
- types?: IGoogleAutocompleteTypes;
218
- bounds?: IGoogleAutocompleteBounds;
219
- strictBounds?: boolean;
220
- restrictCountries?: string[];
221
- }
222
- interface IGoogleAutocompleteBounds {
223
- south_latitude: number;
224
- west_longitude: number;
225
- north_latitude: number;
226
- east_longitude: number;
227
- }
228
- declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
229
- export interface ICtaButtons {
230
- iconAlignment: "left" | "right" | null;
231
- iconName: IconNames;
232
- }
233
- export interface IAddressesSettings {
234
- addressValidationTypes: IAddressValidationTypes;
235
- canadianAddressCompleteKey: string | undefined;
236
- eircodeUrl: string | undefined;
237
- integration: {
238
- addNewAddressUrl: string | undefined;
239
- editAddressUrl: string | undefined;
240
- deleteAddressUrl: string | undefined;
241
- };
242
- useAddressValidation: boolean;
243
- }
244
- export interface IAccountPageSettings {
245
- loyaltyTab: {
246
- disabledEdit?: boolean;
247
- enabled: boolean;
248
- loyaltyNumberLength: number;
249
- loyaltyNumberPrefix: string;
250
- loyaltyValidationType: IValidationType[];
251
- };
252
- }
253
- export interface ILayoutSettings {
254
- footerVersion: IFooterTypes;
255
- }
256
- export declare type ILoggingLevel = "error" | "warning" | "info" | "debug";
257
- export interface IAddressValidationTypes {
258
- addressLine1: IValidationType[];
259
- addressLine2: IValidationType[];
260
- city: IValidationType[];
261
- countyProvinceState: IValidationType[];
262
- familyName: IValidationType[];
263
- firstName: IValidationType[];
264
- instructions: IValidationType[];
265
- phoneNumber: IValidationType[];
266
- postCode: IValidationType[];
267
- }
268
- export interface IDefaultSearchParams {
269
- q: string;
270
- page: string;
271
- skip: string;
272
- take: string;
273
- }
274
- export interface IDefaultStoreLocation {
275
- latitude: number;
276
- longitude: number;
277
- }
278
- export declare type IDefaultCounty = "USA" | "Canada" | "Ireland" | "Australia" | string;
279
- export declare type IRetailerCountry = "us" | "ca" | "ie" | "au";
280
- export interface IRestrictMapPlaces {
281
- country?: string | string[];
282
- postalCode?: string;
283
- route?: string;
284
- locality?: string;
285
- administrativeArea?: string;
286
- fetchNearStoresSettings?: {
287
- kmRange: number;
288
- totalTake: number;
289
- };
290
- }
291
- export declare type IValidationType = IValidateDateRange | IValidateLength | "luhnValidation" | "alphaNumeric" | "alphaOnly" | "numericOnly" | "anyPhone" | "email" | "password" | "required" | "usPhone" | "usMobileNumber" | "caPhone" | "auPhone" | "iePhone" | "caProvince" | "usState" | "auState" | "ieCounty" | "caPostCode" | "usPostCode" | "auPostCode" | "iePostCode" | "noSpecialChar" | "correctDate";
292
- declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
293
- export declare type INutritionZone = "us" | "eu" | "au" | "ca";
294
- export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
295
- export declare type IValidateLength = {
296
- _type: "less" | "more" | "exact";
297
- length: number;
298
- };
299
- export declare type IValidateDateRange = {
300
- _type: "overYears";
301
- overYears: number;
302
- };
303
- export declare type IRegistrationFieldTypes = "default" | "version2";
304
- export declare type IRegistrationFieldNames = "phone" | "loyaltyId" | "isAdultConfirmed" | "marketingConsent" | "dateOfBirth";
305
- export interface IRegistrationField {
306
- name: IRegistrationFieldNames;
307
- label: string;
308
- placeholder: string;
309
- designVersion: IRegistrationFieldTypes;
310
- validationTypes: IValidationType[];
311
- }
312
- export interface ICheckoutValidation {
313
- instructions: IValidationType[];
314
- phoneNumber: IValidationType[];
315
- smsNumber: IValidationType[];
316
- }
317
- interface ISearchPreview {
318
- suggestions: boolean;
319
- products: boolean;
320
- }
321
- export interface ISearchPreviewVisibility {
322
- desktop?: ISearchPreview;
323
- mobile?: ISearchPreview;
324
- }
325
- export declare type IPaymentCards = {
326
- [cardName in PaymentCards]: boolean;
327
- };
328
- export interface IGlobalAnimations {
329
- confetti: ILayoutAnimationsConfetti;
330
- }
331
- export interface ILayoutAnimationsConfetti {
332
- enableConfettiAnimation: boolean;
333
- }
334
- export interface IGlobalCheckoutProps {
335
- numericPhonePayload: boolean;
336
- }
337
- export interface IAddressIntegration {
338
- enabled: boolean;
339
- getAddressesUrl: string;
340
- getLocationUrl: string;
341
- addressFinderType: IAddressFinderType;
342
- }
343
- export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
344
- export interface IPdpDetailsLayout {
345
- desktop: string[];
346
- mobileTab1: string[];
347
- mobileTab2: string[];
348
- }
349
- export {};
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });