@thryveai/theme-interfaces 1.5.3 → 1.5.4
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/package.json +14 -14
- package/retailer-settings.interfaces.d.ts +11 -9
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"build": "tsc",
|
|
7
|
-
"push": "npm run build && npm publish"
|
|
8
|
-
},
|
|
9
|
-
"author": "Simon Markey",
|
|
10
|
-
"license": "ISC",
|
|
11
|
-
"devDependencies": {
|
|
12
|
-
"typescript": "^4.5.4"
|
|
13
|
-
}
|
|
14
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@thryveai/theme-interfaces",
|
|
3
|
+
"version": "1.5.4",
|
|
4
|
+
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "tsc",
|
|
7
|
+
"push": "npm run build && npm publish"
|
|
8
|
+
},
|
|
9
|
+
"author": "Simon Markey",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"devDependencies": {
|
|
12
|
+
"typescript": "^4.5.4"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -30,6 +30,7 @@ export interface IRetailerSettings {
|
|
|
30
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
31
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
32
32
|
defaultStoreLocation?: IDefaultStoreLocation;
|
|
33
|
+
disableAddressOnDelivery?: boolean;
|
|
33
34
|
disableTprPrice?: boolean;
|
|
34
35
|
documentTitle?: string;
|
|
35
36
|
eircode?: string | null;
|
|
@@ -39,10 +40,12 @@ export interface IRetailerSettings {
|
|
|
39
40
|
enableNotifications?: boolean;
|
|
40
41
|
enableVouchers?: boolean;
|
|
41
42
|
errorLoggingLevel?: ILoggingLevel;
|
|
43
|
+
externalApps?: IExternalApps;
|
|
42
44
|
externalStoreSelectorUrl?: string | undefined;
|
|
43
45
|
favoritesV1?: boolean;
|
|
44
46
|
flipp?: IFlippConfig | IFlippConfigV2 | null;
|
|
45
47
|
globalAnimations?: IGlobalAnimations;
|
|
48
|
+
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
46
49
|
gtmId?: undefined | string;
|
|
47
50
|
hideTaxOnSummary?: boolean;
|
|
48
51
|
houseAccountRegExValidation?: string;
|
|
@@ -64,7 +67,6 @@ export interface IRetailerSettings {
|
|
|
64
67
|
promoTemplateVersion?: number;
|
|
65
68
|
registrationFields?: IRegistrationField[];
|
|
66
69
|
restrictMapPlacesResults?: IRestrictMapPlaces;
|
|
67
|
-
googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
68
70
|
retailerCountry?: IRetailerCountry;
|
|
69
71
|
retailerName: string;
|
|
70
72
|
searchPreview?: ISearchPreviewVisibility;
|
|
@@ -72,10 +74,9 @@ export interface IRetailerSettings {
|
|
|
72
74
|
showCheckoutPromoCode?: boolean;
|
|
73
75
|
showImgOnOrder?: boolean;
|
|
74
76
|
smsNotifications?: ISMSConfig;
|
|
77
|
+
sodiumWarning?: ISodiumWarning;
|
|
75
78
|
subHeaderHeight?: number;
|
|
76
79
|
useAddressValidation?: boolean;
|
|
77
|
-
externalApps?: IExternalApps;
|
|
78
|
-
sodiumWarning?: ISodiumWarning;
|
|
79
80
|
}
|
|
80
81
|
export interface IExternalApps {
|
|
81
82
|
sts?: IExternalAppSTS;
|
|
@@ -150,7 +151,6 @@ export interface IDefaultRetailerSettings {
|
|
|
150
151
|
addressValidationTypes: IAddressValidationTypes;
|
|
151
152
|
addresses: IAddressesSettings;
|
|
152
153
|
advertSettings: IAdvertSettings;
|
|
153
|
-
timeslotModalSettings: ITimeslotModalSettings;
|
|
154
154
|
allowInStorePurchases: boolean;
|
|
155
155
|
allowPastPurchases: boolean;
|
|
156
156
|
buildNumber: string;
|
|
@@ -165,6 +165,7 @@ export interface IDefaultRetailerSettings {
|
|
|
165
165
|
defaultSearchParams: IDefaultSearchParams;
|
|
166
166
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
167
167
|
defaultStoreLocation: IDefaultStoreLocation;
|
|
168
|
+
disableAddressOnDelivery: boolean;
|
|
168
169
|
disableTprPrice: boolean;
|
|
169
170
|
documentTitle: string;
|
|
170
171
|
eircode: string | undefined;
|
|
@@ -178,6 +179,7 @@ export interface IDefaultRetailerSettings {
|
|
|
178
179
|
favoritesV1: boolean;
|
|
179
180
|
flipp: IFlippConfig | IFlippConfigV2 | null;
|
|
180
181
|
globalAnimations: IGlobalAnimations;
|
|
182
|
+
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
181
183
|
gtmId: undefined | string;
|
|
182
184
|
hideTaxOnSummary: boolean;
|
|
183
185
|
houseAccountRegExValidation: string;
|
|
@@ -199,7 +201,6 @@ export interface IDefaultRetailerSettings {
|
|
|
199
201
|
promoTemplateVersion: number;
|
|
200
202
|
registrationFields: IRegistrationField[];
|
|
201
203
|
restrictMapPlacesResults: IRestrictMapPlaces;
|
|
202
|
-
googleAutocompleteSettings: IGoogleAutocompleteSettings;
|
|
203
204
|
retailerCountry: IRetailerCountry;
|
|
204
205
|
retailerName: string;
|
|
205
206
|
searchPreview: ISearchPreviewVisibility;
|
|
@@ -207,9 +208,10 @@ export interface IDefaultRetailerSettings {
|
|
|
207
208
|
showCheckoutPromoCode: boolean;
|
|
208
209
|
showImgOnOrder: boolean;
|
|
209
210
|
smsNotifications: ISMSConfig;
|
|
211
|
+
sodiumWarning?: ISodiumWarning;
|
|
210
212
|
subHeaderHeight: number;
|
|
213
|
+
timeslotModalSettings: ITimeslotModalSettings;
|
|
211
214
|
useAddressValidation: boolean;
|
|
212
|
-
sodiumWarning?: ISodiumWarning;
|
|
213
215
|
}
|
|
214
216
|
export interface IGoogleAutocompleteSettings {
|
|
215
217
|
types?: IGoogleAutocompleteTypes;
|
|
@@ -218,10 +220,10 @@ export interface IGoogleAutocompleteSettings {
|
|
|
218
220
|
restrictCountries?: string[];
|
|
219
221
|
}
|
|
220
222
|
interface IGoogleAutocompleteBounds {
|
|
223
|
+
east_longitude: number;
|
|
224
|
+
north_latitude: number;
|
|
221
225
|
south_latitude: number;
|
|
222
226
|
west_longitude: number;
|
|
223
|
-
north_latitude: number;
|
|
224
|
-
east_longitude: number;
|
|
225
227
|
}
|
|
226
228
|
declare type IGoogleAutocompleteTypes = "geocode" | "address" | "establishment" | "(regions)" | "(cities)";
|
|
227
229
|
export interface ICtaButtons {
|
|
@@ -290,7 +292,7 @@ export interface IRestrictMapPlaces {
|
|
|
290
292
|
totalTake: number;
|
|
291
293
|
};
|
|
292
294
|
}
|
|
293
|
-
export declare type IValidationType = IValidateDateRange | IValidateLength | "
|
|
295
|
+
export declare type IValidationType = IValidateDateRange | IValidateLength | "alphaNumeric" | "alphaOnly" | "anyPhone" | "auPhone" | "auPostCode" | "auState" | "caPhone" | "caPostCode" | "caProvince" | "correctDate" | "email" | "ieCounty" | "iePhone" | "iePostCode" | "luhnValidation" | "noSpecialChar" | "numericOnly" | "password" | "required" | "usMobileNumber" | "usPhone" | "usPhone10Digits" | "usPostCode" | "usState";
|
|
294
296
|
declare type IEnvNames = "dev" | "de2" | "qat" | "qa2" | "int" | "in2" | "lod" | "lo2" | "stg" | "st2" | "stagingConfig" | "productionConfig";
|
|
295
297
|
export declare type INutritionZone = "us" | "eu" | "au" | "ca";
|
|
296
298
|
export declare type IFooterTypes = "default" | "version2" | "version3" | "version4" | "version5";
|