@thryveai/theme-interfaces 1.4.7 → 1.4.8-beta
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.
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
|
+
export interface IAdminSettingsTemplate {
|
|
3
|
+
accountPage: {
|
|
4
|
+
loyaltyTab: {
|
|
5
|
+
disabledEdit: IAdminControl;
|
|
6
|
+
enabled: IAdminControl;
|
|
7
|
+
loyaltyNumberLength: IAdminControl;
|
|
8
|
+
loyaltyNumberPrefix: IAdminControl;
|
|
9
|
+
loyaltyValidationType: IAdminControl;
|
|
10
|
+
};
|
|
11
|
+
optional: boolean;
|
|
12
|
+
};
|
|
13
|
+
addressValidationTypes: IAdminControl;
|
|
14
|
+
allowInStorePurchases: IAdminControl;
|
|
15
|
+
allowPastPurchases: IAdminControl;
|
|
16
|
+
checkoutV1: IAdminControl;
|
|
17
|
+
defaultCountry: IAdminControl;
|
|
18
|
+
disableTprPrice: IAdminControl;
|
|
19
|
+
documentTitle: IAdminControl;
|
|
20
|
+
enable3dSecure: IAdminControl;
|
|
21
|
+
enableGoogleTranslate: IAdminControl;
|
|
22
|
+
enableNewsletterSignup: IAdminControl;
|
|
23
|
+
enableNotifications?: IAdminControl;
|
|
24
|
+
favoritesV1: IAdminControl;
|
|
25
|
+
flipp: IAdminControl;
|
|
26
|
+
hideTaxOnSummary: IAdminControl;
|
|
27
|
+
houseAccountRegExValidation: IAdminControl;
|
|
28
|
+
isPlanningOnly: IAdminControl;
|
|
29
|
+
limitProductCardTitleHeight: IAdminControl;
|
|
30
|
+
mainHeaderHeight: IAdminControl;
|
|
31
|
+
mapZoom: IAdminControl;
|
|
32
|
+
minimumCreditCardAmount: IAdminControl;
|
|
33
|
+
retailerName: IAdminControl;
|
|
34
|
+
showCheckoutPromoCode: IAdminControl;
|
|
35
|
+
showImgOnOrder: IAdminControl;
|
|
36
|
+
subHeaderHeight: IAdminControl;
|
|
37
|
+
useAddressValidation: IAdminControl;
|
|
38
|
+
}
|
|
39
|
+
export interface IAdminControl {
|
|
40
|
+
title: string;
|
|
41
|
+
description: string;
|
|
42
|
+
helpLink?: string;
|
|
43
|
+
type: IAdminControlType;
|
|
44
|
+
options?: string[] | number[] | IDefaultCounty[] | IValidationType[];
|
|
45
|
+
value?: {
|
|
46
|
+
[key: string]: IAdminControl;
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
export declare type IAdminControlType = "checkbox" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thryveai/theme-interfaces",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.8-beta",
|
|
4
4
|
"description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "tsc",
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"typescript": "4.3.5"
|
|
13
13
|
}
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -25,6 +25,7 @@ export interface IRetailerSettings {
|
|
|
25
25
|
checkoutV1?: boolean;
|
|
26
26
|
checkoutValidation?: ICheckoutValidation;
|
|
27
27
|
ctaButtons?: ICtaButtons;
|
|
28
|
+
daysToRemainSignedIn?: number;
|
|
28
29
|
defaultCountry?: IDefaultCounty;
|
|
29
30
|
defaultSearchParams?: IDefaultSearchParams;
|
|
30
31
|
defaultShoppingMode?: "pickup" | "planning" | "delivery";
|
|
@@ -57,6 +58,7 @@ export interface IRetailerSettings {
|
|
|
57
58
|
minimumCreditCardAmount?: number;
|
|
58
59
|
nutritionZone?: INutritionZone;
|
|
59
60
|
paymentCards?: IPaymentCards;
|
|
61
|
+
pdpDetailsLayout?: IPdpDetailsLayout;
|
|
60
62
|
productCardTitleHeight?: number;
|
|
61
63
|
promoTemplateVersion?: number;
|
|
62
64
|
registrationFields?: IRegistrationField[];
|
|
@@ -72,6 +74,7 @@ export interface IRetailerSettings {
|
|
|
72
74
|
subHeaderHeight?: number;
|
|
73
75
|
useAddressValidation?: boolean;
|
|
74
76
|
externalApps?: IExternalApps;
|
|
77
|
+
productCardv2?: boolean;
|
|
75
78
|
}
|
|
76
79
|
export interface IExternalApps {
|
|
77
80
|
sts?: IExternalAppSTS;
|
|
@@ -156,6 +159,7 @@ export interface IDefaultRetailerSettings {
|
|
|
156
159
|
checkoutV1: boolean;
|
|
157
160
|
checkoutValidation: ICheckoutValidation;
|
|
158
161
|
ctaButtons: ICtaButtons | null | undefined;
|
|
162
|
+
daysToRemainSignedIn: number;
|
|
159
163
|
defaultCountry: IDefaultCounty;
|
|
160
164
|
defaultSearchParams: IDefaultSearchParams;
|
|
161
165
|
defaultShoppingMode: "pickup" | "planning" | "delivery";
|
|
@@ -188,6 +192,7 @@ export interface IDefaultRetailerSettings {
|
|
|
188
192
|
minimumCreditCardAmount: number;
|
|
189
193
|
nutritionZone: INutritionZone;
|
|
190
194
|
paymentCards: IPaymentCards;
|
|
195
|
+
pdpDetailsLayout: IPdpDetailsLayout;
|
|
191
196
|
productCardTitleHeight: number;
|
|
192
197
|
promoTemplateVersion: number;
|
|
193
198
|
registrationFields: IRegistrationField[];
|
|
@@ -202,6 +207,7 @@ export interface IDefaultRetailerSettings {
|
|
|
202
207
|
smsNotifications: ISMSConfig;
|
|
203
208
|
subHeaderHeight: number;
|
|
204
209
|
useAddressValidation: boolean;
|
|
210
|
+
productCardv2: boolean;
|
|
205
211
|
}
|
|
206
212
|
export interface IGoogleAutocompleteSettings {
|
|
207
213
|
types?: IGoogleAutocompleteTypes;
|
|
@@ -331,4 +337,9 @@ export interface IAddressIntegration {
|
|
|
331
337
|
addressFinderType: IAddressFinderType;
|
|
332
338
|
}
|
|
333
339
|
export declare type IAddressFinderType = "AUS" | "EU" | "IE" | "US" | "UK" | "CA";
|
|
340
|
+
export interface IPdpDetailsLayout {
|
|
341
|
+
desktop: string[];
|
|
342
|
+
mobileTab1: string[];
|
|
343
|
+
mobileTab2: string[];
|
|
344
|
+
}
|
|
334
345
|
export {};
|