@thryveai/theme-interfaces 1.4.8-beta3 → 1.4.8-beta7
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/admin-settings-interfaces.d.ts +12 -11
- package/admin-settings-template.js +317 -174
- package/admin-theme-template.d.ts +1104 -0
- package/admin-theme-template.js +306 -0
- package/index.d.ts +2 -1
- package/index.js +4 -1
- package/package.json +2 -2
|
@@ -1,20 +1,17 @@
|
|
|
1
1
|
import { IDefaultCounty, IValidationType } from "./retailer-settings.interfaces";
|
|
2
|
+
export declare type IAdminTemplateInputTypes = {
|
|
3
|
+
[key in IAdminControlType]: IAdminControlType;
|
|
4
|
+
};
|
|
2
5
|
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
|
-
};
|
|
6
|
+
accountPage: IAdminControl;
|
|
13
7
|
addressValidationTypes: IAdminControl;
|
|
14
8
|
allowInStorePurchases: IAdminControl;
|
|
15
9
|
allowPastPurchases: IAdminControl;
|
|
10
|
+
cacheTimeMins: IAdminControl;
|
|
16
11
|
checkoutV1: IAdminControl;
|
|
17
12
|
defaultCountry: IAdminControl;
|
|
13
|
+
defaultShoppingMode: IAdminControl;
|
|
14
|
+
defaultStoreLocation: IAdminControl;
|
|
18
15
|
disableTprPrice: IAdminControl;
|
|
19
16
|
documentTitle: IAdminControl;
|
|
20
17
|
enable3dSecure: IAdminControl;
|
|
@@ -23,6 +20,7 @@ export interface IAdminSettingsTemplate {
|
|
|
23
20
|
enableNotifications?: IAdminControl;
|
|
24
21
|
favoritesV1: IAdminControl;
|
|
25
22
|
flipp: IAdminControl;
|
|
23
|
+
gtmId: IAdminControl;
|
|
26
24
|
hideTaxOnSummary: IAdminControl;
|
|
27
25
|
houseAccountRegExValidation: IAdminControl;
|
|
28
26
|
isPlanningOnly: IAdminControl;
|
|
@@ -30,14 +28,17 @@ export interface IAdminSettingsTemplate {
|
|
|
30
28
|
mainHeaderHeight: IAdminControl;
|
|
31
29
|
mapZoom: IAdminControl;
|
|
32
30
|
minimumCreditCardAmount: IAdminControl;
|
|
31
|
+
nutritionZone: IAdminControl;
|
|
33
32
|
productCardTitleHeight: IAdminControl;
|
|
34
33
|
productCardv2: IAdminControl;
|
|
35
34
|
promoTemplateVersion: IAdminControl;
|
|
36
35
|
retailerCountry: IAdminControl;
|
|
37
36
|
retailerName: IAdminControl;
|
|
37
|
+
searchPreview: IAdminControl;
|
|
38
38
|
showCheckoutPromoCode: IAdminControl;
|
|
39
39
|
showImgOnOrder: IAdminControl;
|
|
40
40
|
subHeaderHeight: IAdminControl;
|
|
41
|
+
timeslotModalSettings: IAdminControl;
|
|
41
42
|
useAddressValidation: IAdminControl;
|
|
42
43
|
}
|
|
43
44
|
export interface IAdminControl {
|
|
@@ -50,4 +51,4 @@ export interface IAdminControl {
|
|
|
50
51
|
[key: string]: IAdminControl;
|
|
51
52
|
};
|
|
52
53
|
}
|
|
53
|
-
export declare type IAdminControlType = "checkbox" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object";
|
|
54
|
+
export declare type IAdminControlType = "checkbox" | "collapsableObject" | "color" | "dropdown" | "inputChar" | "inputNumber" | "multiDropdown" | "nullObject" | "object" | "string";
|
|
@@ -1,200 +1,247 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdminSettingsTemplate = void 0;
|
|
4
|
+
var admin_theme_template_1 = require("./admin-theme-template");
|
|
5
|
+
var addressValidationDescription = "Sets the validation types for user addresses";
|
|
6
|
+
var validationTypes = [
|
|
7
|
+
"luhnValidation",
|
|
8
|
+
"alphaNumeric",
|
|
9
|
+
"alphaOnly",
|
|
10
|
+
"numericOnly",
|
|
11
|
+
"anyPhone",
|
|
12
|
+
"email",
|
|
13
|
+
"password",
|
|
14
|
+
"required",
|
|
15
|
+
"usPhone",
|
|
16
|
+
"usMobileNumber",
|
|
17
|
+
"caPhone",
|
|
18
|
+
"auPhone",
|
|
19
|
+
"iePhone",
|
|
20
|
+
"caProvince",
|
|
21
|
+
"usState",
|
|
22
|
+
"auState",
|
|
23
|
+
"ieCounty",
|
|
24
|
+
"caPostCode",
|
|
25
|
+
"usPostCode",
|
|
26
|
+
"auPostCode",
|
|
27
|
+
"iePostCode",
|
|
28
|
+
"noSpecialChar",
|
|
29
|
+
"correctDate",
|
|
30
|
+
];
|
|
4
31
|
exports.AdminSettingsTemplate = {
|
|
5
32
|
accountPage: {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"email",
|
|
43
|
-
"password",
|
|
44
|
-
"required",
|
|
45
|
-
"usPhone",
|
|
46
|
-
"usMobileNumber",
|
|
47
|
-
"caPhone",
|
|
48
|
-
"auPhone",
|
|
49
|
-
"iePhone",
|
|
50
|
-
"caProvince",
|
|
51
|
-
"usState",
|
|
52
|
-
"auState",
|
|
53
|
-
"ieCounty",
|
|
54
|
-
"caPostCode",
|
|
55
|
-
"usPostCode",
|
|
56
|
-
"auPostCode",
|
|
57
|
-
"iePostCode",
|
|
58
|
-
"noSpecialChar",
|
|
59
|
-
"correctDate",
|
|
60
|
-
],
|
|
33
|
+
title: "Account Page",
|
|
34
|
+
description: "Account page settings",
|
|
35
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
36
|
+
value: {
|
|
37
|
+
loyaltyTab: {
|
|
38
|
+
title: "Loyalty Tab",
|
|
39
|
+
description: "Set up Loyalty Tab on account page",
|
|
40
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.object,
|
|
41
|
+
value: {
|
|
42
|
+
enabled: {
|
|
43
|
+
title: "Enable Loyalty Tab",
|
|
44
|
+
description: "Enable Loyalty tab section within My Account page",
|
|
45
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
46
|
+
},
|
|
47
|
+
disabledEdit: {
|
|
48
|
+
title: "Disable Loyalty edit",
|
|
49
|
+
description: "Prevent users to change their loyalty number",
|
|
50
|
+
type: admin_theme_template_1.AdminTemplateInputTypes.checkbox
|
|
51
|
+
},
|
|
52
|
+
loyaltyNumberLength: {
|
|
53
|
+
title: "Loyalty Number Length",
|
|
54
|
+
description: "Control the loyalty number length",
|
|
55
|
+
type: "inputNumber",
|
|
56
|
+
},
|
|
57
|
+
loyaltyNumberPrefix: {
|
|
58
|
+
title: "Loyalty Number Prefix",
|
|
59
|
+
description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
|
|
60
|
+
type: "inputChar",
|
|
61
|
+
},
|
|
62
|
+
loyaltyValidationType: {
|
|
63
|
+
title: "Loyalty Number Validation",
|
|
64
|
+
description: "Select loyalty validation types",
|
|
65
|
+
type: "multiDropdown",
|
|
66
|
+
options: validationTypes,
|
|
67
|
+
},
|
|
68
|
+
},
|
|
61
69
|
},
|
|
62
70
|
},
|
|
63
|
-
optional: true,
|
|
64
71
|
},
|
|
65
|
-
//
|
|
72
|
+
// accountPage: {
|
|
73
|
+
// loyaltyTab: {
|
|
74
|
+
// disabledEdit: {
|
|
75
|
+
// title: "Disable Edit",
|
|
76
|
+
// description: "Disable edit mode in loyalty tabs",
|
|
77
|
+
// helpLink:
|
|
78
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
79
|
+
// type: "checkbox",
|
|
80
|
+
// },
|
|
81
|
+
// enabled: {
|
|
82
|
+
// title: "Enable Loyalty",
|
|
83
|
+
// description: "Enable loyalty tab and functionality",
|
|
84
|
+
// helpLink:
|
|
85
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
86
|
+
// type: "checkbox",
|
|
87
|
+
// },
|
|
88
|
+
// loyaltyNumberLength: {
|
|
89
|
+
// title: "Loyalty Number Length",
|
|
90
|
+
// description: "Set the loyalty card character number length",
|
|
91
|
+
// helpLink:
|
|
92
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
93
|
+
// type: "inputNumber",
|
|
94
|
+
// },
|
|
95
|
+
// loyaltyNumberPrefix: {
|
|
96
|
+
// title: "Loyalty Number Prefix",
|
|
97
|
+
// description: "Set the loyalty card prefix",
|
|
98
|
+
// helpLink:
|
|
99
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
100
|
+
// type: "inputChar",
|
|
101
|
+
// },
|
|
102
|
+
// loyaltyValidationType: {
|
|
103
|
+
// title: "Loyalty Validation",
|
|
104
|
+
// description: "Select the loyalty validation types",
|
|
105
|
+
// helpLink:
|
|
106
|
+
// "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
107
|
+
// type: "multiDropdown",
|
|
108
|
+
// options: [
|
|
109
|
+
// "luhnValidation",
|
|
110
|
+
// "alphaNumeric",
|
|
111
|
+
// "alphaOnly",
|
|
112
|
+
// "numericOnly",
|
|
113
|
+
// "anyPhone",
|
|
114
|
+
// "email",
|
|
115
|
+
// "password",
|
|
116
|
+
// "required",
|
|
117
|
+
// "usPhone",
|
|
118
|
+
// "usMobileNumber",
|
|
119
|
+
// "caPhone",
|
|
120
|
+
// "auPhone",
|
|
121
|
+
// "iePhone",
|
|
122
|
+
// "caProvince",
|
|
123
|
+
// "usState",
|
|
124
|
+
// "auState",
|
|
125
|
+
// "ieCounty",
|
|
126
|
+
// "caPostCode",
|
|
127
|
+
// "usPostCode",
|
|
128
|
+
// "auPostCode",
|
|
129
|
+
// "iePostCode",
|
|
130
|
+
// "noSpecialChar",
|
|
131
|
+
// "correctDate",
|
|
132
|
+
// ],
|
|
133
|
+
// },
|
|
134
|
+
// },
|
|
135
|
+
// },
|
|
136
|
+
// advertSettings: {},
|
|
66
137
|
// addresses:{}
|
|
67
138
|
// addressIntegration
|
|
68
139
|
// TODO: fix required validation
|
|
140
|
+
allowInStorePurchases: {
|
|
141
|
+
title: "InStore Purchases",
|
|
142
|
+
description: "Show the purchases made in store in the order history (requires integration).",
|
|
143
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
144
|
+
type: "checkbox",
|
|
145
|
+
},
|
|
146
|
+
allowPastPurchases: {
|
|
147
|
+
title: "Display PastPurchases",
|
|
148
|
+
description: "Enable displaying past purchases functionality",
|
|
149
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
150
|
+
type: "checkbox",
|
|
151
|
+
},
|
|
152
|
+
// buildNumber: string;
|
|
153
|
+
cacheTimeMins: {
|
|
154
|
+
title: "Production Cache time",
|
|
155
|
+
description: "How long data will be cached to make the site faster. (1 = 1minute)",
|
|
156
|
+
type: "inputNumber",
|
|
157
|
+
},
|
|
69
158
|
addressValidationTypes: {
|
|
70
|
-
title: "Address Validation
|
|
71
|
-
description: "
|
|
72
|
-
|
|
159
|
+
title: "Address Validation",
|
|
160
|
+
description: "User address validation settings.",
|
|
161
|
+
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3178627073/Storefront+Address+Validation+in-progress",
|
|
162
|
+
type: "object",
|
|
73
163
|
value: {
|
|
164
|
+
firstName: {
|
|
165
|
+
title: "User's first name",
|
|
166
|
+
description: addressValidationDescription,
|
|
167
|
+
type: "multiDropdown",
|
|
168
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
169
|
+
},
|
|
170
|
+
familyName: {
|
|
171
|
+
title: "User's Surname",
|
|
172
|
+
description: addressValidationDescription,
|
|
173
|
+
type: "multiDropdown",
|
|
174
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
175
|
+
},
|
|
74
176
|
addressLine1: {
|
|
75
|
-
title: "
|
|
76
|
-
description:
|
|
77
|
-
type: "
|
|
78
|
-
options: [
|
|
79
|
-
"alphaNumeric",
|
|
80
|
-
"alphaOnly",
|
|
81
|
-
"usState",
|
|
82
|
-
"usPhone",
|
|
83
|
-
"usPostCode",
|
|
84
|
-
],
|
|
177
|
+
title: "Address Line 1",
|
|
178
|
+
description: addressValidationDescription,
|
|
179
|
+
type: "multiDropdown",
|
|
180
|
+
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
85
181
|
},
|
|
86
182
|
addressLine2: {
|
|
87
|
-
title: "
|
|
88
|
-
description:
|
|
89
|
-
type: "
|
|
90
|
-
options: [
|
|
91
|
-
"alphaNumeric",
|
|
92
|
-
"alphaOnly",
|
|
93
|
-
"usState",
|
|
94
|
-
"usPhone",
|
|
95
|
-
"usPostCode",
|
|
96
|
-
],
|
|
183
|
+
title: "Address Line 2",
|
|
184
|
+
description: addressValidationDescription,
|
|
185
|
+
type: "multiDropdown",
|
|
186
|
+
options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
|
|
97
187
|
},
|
|
98
188
|
city: {
|
|
99
|
-
title: "
|
|
100
|
-
description:
|
|
101
|
-
type: "
|
|
102
|
-
options: [
|
|
103
|
-
"alphaNumeric",
|
|
104
|
-
"alphaOnly",
|
|
105
|
-
"usState",
|
|
106
|
-
"usPhone",
|
|
107
|
-
"usPostCode",
|
|
108
|
-
],
|
|
189
|
+
title: "City",
|
|
190
|
+
description: addressValidationDescription,
|
|
191
|
+
type: "multiDropdown",
|
|
192
|
+
options: ["alphaNumeric", "alphaOnly", "required"],
|
|
109
193
|
},
|
|
110
194
|
countyProvinceState: {
|
|
111
|
-
title: "
|
|
112
|
-
description:
|
|
113
|
-
type: "
|
|
114
|
-
options: [
|
|
115
|
-
"alphaNumeric",
|
|
116
|
-
"alphaOnly",
|
|
117
|
-
"usState",
|
|
118
|
-
"usPhone",
|
|
119
|
-
"usPostCode",
|
|
120
|
-
],
|
|
121
|
-
},
|
|
122
|
-
familyName: {
|
|
123
|
-
title: "familyName",
|
|
124
|
-
description: "familyName",
|
|
125
|
-
type: "dropdown",
|
|
126
|
-
options: [
|
|
127
|
-
"alphaNumeric",
|
|
128
|
-
"alphaOnly",
|
|
129
|
-
"usState",
|
|
130
|
-
"usPhone",
|
|
131
|
-
"usPostCode",
|
|
132
|
-
],
|
|
133
|
-
},
|
|
134
|
-
firstName: {
|
|
135
|
-
title: "firstName",
|
|
136
|
-
description: "firstName",
|
|
137
|
-
type: "dropdown",
|
|
195
|
+
title: "County/Province/State",
|
|
196
|
+
description: addressValidationDescription,
|
|
197
|
+
type: "multiDropdown",
|
|
138
198
|
options: [
|
|
139
199
|
"alphaNumeric",
|
|
140
200
|
"alphaOnly",
|
|
201
|
+
"auState",
|
|
202
|
+
"ieCounty",
|
|
141
203
|
"usState",
|
|
142
|
-
"
|
|
143
|
-
"
|
|
204
|
+
"caProvince",
|
|
205
|
+
"required",
|
|
144
206
|
],
|
|
145
207
|
},
|
|
146
208
|
instructions: {
|
|
147
|
-
title: "
|
|
148
|
-
description: "instructions",
|
|
149
|
-
type: "
|
|
150
|
-
options: [
|
|
151
|
-
"alphaNumeric",
|
|
152
|
-
"alphaOnly",
|
|
153
|
-
"usState",
|
|
154
|
-
"usPhone",
|
|
155
|
-
"usPostCode",
|
|
156
|
-
],
|
|
209
|
+
title: "User Instructions Fields",
|
|
210
|
+
description: "Validation for the input fields for user instructions",
|
|
211
|
+
type: "multiDropdown",
|
|
212
|
+
options: ["alphaNumeric", "alphaOnly", "required", "numericOnly"],
|
|
157
213
|
},
|
|
158
|
-
|
|
159
|
-
title: "
|
|
160
|
-
description: "
|
|
161
|
-
type: "
|
|
214
|
+
phoneNumber: {
|
|
215
|
+
title: "Phone Number",
|
|
216
|
+
description: "The number to be used to contact the user",
|
|
217
|
+
type: "multiDropdown",
|
|
162
218
|
options: [
|
|
163
|
-
"alphaNumeric",
|
|
164
|
-
"alphaOnly",
|
|
165
|
-
"usState",
|
|
166
219
|
"usPhone",
|
|
167
|
-
"
|
|
220
|
+
"usMobileNumber",
|
|
221
|
+
"numericOnly",
|
|
222
|
+
"auPhone",
|
|
223
|
+
"caPhone",
|
|
224
|
+
"iePhone",
|
|
225
|
+
"anyPhone",
|
|
226
|
+
"required",
|
|
168
227
|
],
|
|
169
228
|
},
|
|
170
229
|
postCode: {
|
|
171
|
-
title: "
|
|
172
|
-
description:
|
|
173
|
-
type: "
|
|
230
|
+
title: "Post / zip code",
|
|
231
|
+
description: addressValidationDescription,
|
|
232
|
+
type: "multiDropdown",
|
|
174
233
|
options: [
|
|
175
234
|
"alphaNumeric",
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
235
|
+
"auPostCode",
|
|
236
|
+
"caPostCode",
|
|
237
|
+
"iePostCode",
|
|
179
238
|
"usPostCode",
|
|
239
|
+
"numericOnly",
|
|
240
|
+
"required",
|
|
180
241
|
],
|
|
181
242
|
},
|
|
182
243
|
},
|
|
183
244
|
},
|
|
184
|
-
allowInStorePurchases: {
|
|
185
|
-
title: "Allow InStore Purchases",
|
|
186
|
-
description: "Allow purchases made in store",
|
|
187
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
188
|
-
type: "checkbox",
|
|
189
|
-
},
|
|
190
|
-
allowPastPurchases: {
|
|
191
|
-
title: "Display PastPurchases",
|
|
192
|
-
description: "Enable displaying past purchases functionality",
|
|
193
|
-
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
194
|
-
type: "checkbox",
|
|
195
|
-
},
|
|
196
|
-
// buildNumber: string;
|
|
197
|
-
// cacheTimeMins?: number;
|
|
198
245
|
// canadianAddressCompleteKey?: string | undefined;
|
|
199
246
|
// checkout?: IGlobalCheckoutProps;
|
|
200
247
|
checkoutV1: {
|
|
@@ -208,13 +255,35 @@ exports.AdminSettingsTemplate = {
|
|
|
208
255
|
// daysToRemainSignedIn?: number;
|
|
209
256
|
defaultCountry: {
|
|
210
257
|
title: "Default Country",
|
|
211
|
-
description: "
|
|
258
|
+
description: "Used for address, phone validation & ui formating.",
|
|
212
259
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
213
260
|
type: "dropdown",
|
|
214
261
|
options: ["USA", "Canada", "Ireland", "Australia"],
|
|
215
262
|
},
|
|
216
263
|
// defaultSearchParams?: IDefaultSearchParams;
|
|
217
|
-
|
|
264
|
+
defaultShoppingMode: {
|
|
265
|
+
title: "Default Shopping Mode",
|
|
266
|
+
description: "Shopping mode the site defaults to when a user lands and has not registered.",
|
|
267
|
+
type: "dropdown",
|
|
268
|
+
options: ["pickup", "planning", "delivery"],
|
|
269
|
+
},
|
|
270
|
+
defaultStoreLocation: {
|
|
271
|
+
title: "Default Store Location",
|
|
272
|
+
description: "Used to center the store selector map to the retailers region. Without setting this, the map defaults to central Africa.",
|
|
273
|
+
type: "object",
|
|
274
|
+
value: {
|
|
275
|
+
latitude: {
|
|
276
|
+
title: "Latitude",
|
|
277
|
+
description: "",
|
|
278
|
+
type: "inputNumber",
|
|
279
|
+
},
|
|
280
|
+
longitude: {
|
|
281
|
+
title: "Longitude",
|
|
282
|
+
description: "",
|
|
283
|
+
type: "inputNumber",
|
|
284
|
+
},
|
|
285
|
+
},
|
|
286
|
+
},
|
|
218
287
|
// defaultStoreLocation?: IDefaultStoreLocation;
|
|
219
288
|
disableTprPrice: {
|
|
220
289
|
title: "Disable TPR Price",
|
|
@@ -224,7 +293,7 @@ exports.AdminSettingsTemplate = {
|
|
|
224
293
|
},
|
|
225
294
|
documentTitle: {
|
|
226
295
|
title: "Document Title",
|
|
227
|
-
description: "
|
|
296
|
+
description: "Fallback browser page Title if no SEO details are added to the page via the CMS.",
|
|
228
297
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
229
298
|
type: "inputChar",
|
|
230
299
|
},
|
|
@@ -255,7 +324,12 @@ exports.AdminSettingsTemplate = {
|
|
|
255
324
|
},
|
|
256
325
|
// errorLoggingLevel?: ILoggingLevel;
|
|
257
326
|
// externalApps?: IExternalApps;
|
|
258
|
-
// externalStoreSelectorUrl
|
|
327
|
+
// externalStoreSelectorUrl: {
|
|
328
|
+
// title: "External Store Selector Url",
|
|
329
|
+
// description:
|
|
330
|
+
// "Shows a link back to previous shoping platform, seen on store selection modal.This is generally used for an existing site that has not migrated all their stores to WynShop.",
|
|
331
|
+
// type: "inputChar",
|
|
332
|
+
// },
|
|
259
333
|
favoritesV1: {
|
|
260
334
|
title: "Favorites Version1",
|
|
261
335
|
description: "Enable version 1 of favorites functionality",
|
|
@@ -265,7 +339,7 @@ exports.AdminSettingsTemplate = {
|
|
|
265
339
|
flipp: {
|
|
266
340
|
title: "Flipp Circulars",
|
|
267
341
|
description: "Configure Flipp circulars integration",
|
|
268
|
-
type: "
|
|
342
|
+
type: "nullObject",
|
|
269
343
|
value: {
|
|
270
344
|
version: {
|
|
271
345
|
title: "Version",
|
|
@@ -291,7 +365,11 @@ exports.AdminSettingsTemplate = {
|
|
|
291
365
|
},
|
|
292
366
|
// globalAnimations?: IGlobalAnimations;
|
|
293
367
|
// googleAutocompleteSettings?: IGoogleAutocompleteSettings;
|
|
294
|
-
|
|
368
|
+
gtmId: {
|
|
369
|
+
title: "GTM ID",
|
|
370
|
+
description: "Google Tag Manager ID",
|
|
371
|
+
type: "inputChar",
|
|
372
|
+
},
|
|
295
373
|
hideTaxOnSummary: {
|
|
296
374
|
title: "Hide Summary Tax",
|
|
297
375
|
description: "Hide the tax displayed on the summary box",
|
|
@@ -305,7 +383,12 @@ exports.AdminSettingsTemplate = {
|
|
|
305
383
|
type: "inputChar",
|
|
306
384
|
},
|
|
307
385
|
// idpTarget?: "_self" | "_blank";
|
|
308
|
-
// idpUrl
|
|
386
|
+
// idpUrl: {
|
|
387
|
+
// title: 'External IDP url',
|
|
388
|
+
// description: 'Is the user using ther own IDP or will they be using the Mi9 My Account functionality for Sign-In / Register and managing the customer account. If Null then Mi9 My Account funcationality will be used.',
|
|
389
|
+
// type: "nullObject",
|
|
390
|
+
// value: {}
|
|
391
|
+
// },
|
|
309
392
|
// instacartUrl?: string | undefined;
|
|
310
393
|
isPlanningOnly: {
|
|
311
394
|
title: "Planning Only",
|
|
@@ -340,7 +423,12 @@ exports.AdminSettingsTemplate = {
|
|
|
340
423
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
341
424
|
type: "checkbox",
|
|
342
425
|
},
|
|
343
|
-
|
|
426
|
+
nutritionZone: {
|
|
427
|
+
title: "Nutrition Template",
|
|
428
|
+
description: "Show the correct nutrition format for the correct zone.",
|
|
429
|
+
type: "dropdown",
|
|
430
|
+
options: ["us", "eu", "au", "ca"],
|
|
431
|
+
},
|
|
344
432
|
// paymentCards?: IPaymentCards;
|
|
345
433
|
// pdpDetailsLayout?: IPdpDetailsLayout;
|
|
346
434
|
productCardTitleHeight: {
|
|
@@ -374,11 +462,51 @@ exports.AdminSettingsTemplate = {
|
|
|
374
462
|
},
|
|
375
463
|
retailerName: {
|
|
376
464
|
title: "Retailer Name",
|
|
377
|
-
description: "
|
|
465
|
+
description: "Retailers short code e.g the code used for the retailers environment.",
|
|
378
466
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
379
467
|
type: "inputChar",
|
|
380
468
|
},
|
|
381
|
-
|
|
469
|
+
searchPreview: {
|
|
470
|
+
title: "Search Previews",
|
|
471
|
+
description: "Toggle Products/Suggestions to appear on search preview",
|
|
472
|
+
type: "object",
|
|
473
|
+
value: {
|
|
474
|
+
desktop: {
|
|
475
|
+
title: "Desktop",
|
|
476
|
+
description: "",
|
|
477
|
+
type: "object",
|
|
478
|
+
value: {
|
|
479
|
+
products: {
|
|
480
|
+
title: "Show Products",
|
|
481
|
+
description: "",
|
|
482
|
+
type: "checkbox",
|
|
483
|
+
},
|
|
484
|
+
suggestions: {
|
|
485
|
+
title: "Snow Suggestions",
|
|
486
|
+
description: "",
|
|
487
|
+
type: "checkbox",
|
|
488
|
+
},
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
mobile: {
|
|
492
|
+
title: "Mobile",
|
|
493
|
+
description: "",
|
|
494
|
+
type: "object",
|
|
495
|
+
value: {
|
|
496
|
+
products: {
|
|
497
|
+
title: "Show Products",
|
|
498
|
+
description: "",
|
|
499
|
+
type: "checkbox",
|
|
500
|
+
},
|
|
501
|
+
suggestions: {
|
|
502
|
+
title: "Snow Suggestions",
|
|
503
|
+
description: "",
|
|
504
|
+
type: "checkbox",
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
},
|
|
508
|
+
},
|
|
509
|
+
},
|
|
382
510
|
// secondTierAuthorization?: ISecondTierAuthorization;
|
|
383
511
|
showCheckoutPromoCode: {
|
|
384
512
|
title: "Show Checkout Promo",
|
|
@@ -399,18 +527,33 @@ exports.AdminSettingsTemplate = {
|
|
|
399
527
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
400
528
|
type: "inputNumber",
|
|
401
529
|
},
|
|
402
|
-
|
|
530
|
+
timeslotModalSettings: {
|
|
531
|
+
title: "Timeslot Modal Settings",
|
|
532
|
+
description: "Force timeslot selection",
|
|
533
|
+
type: "object",
|
|
534
|
+
value: {
|
|
535
|
+
showOnAddToCart: {
|
|
536
|
+
title: "Timeslot on Add To Cart",
|
|
537
|
+
description: "Show timeslot popup when user clicks on AddToCart",
|
|
538
|
+
type: "checkbox",
|
|
539
|
+
},
|
|
540
|
+
timeslotRequiredToAddToCart: {
|
|
541
|
+
title: "Force Timeslot on Add To Cart",
|
|
542
|
+
description: "Force a timeslot selection in order to add item in cart",
|
|
543
|
+
type: "checkbox",
|
|
544
|
+
},
|
|
545
|
+
timeslotRequiredToViewCartReview: {
|
|
546
|
+
title: "Force Timeslot on Cart Page",
|
|
547
|
+
description: "Force a timeslot selection in order to view cart page",
|
|
548
|
+
type: "checkbox",
|
|
549
|
+
},
|
|
550
|
+
},
|
|
551
|
+
},
|
|
403
552
|
useAddressValidation: {
|
|
404
553
|
title: "Use Address Validation",
|
|
405
554
|
description: "Use to enable address validation",
|
|
406
555
|
helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
|
|
407
556
|
type: "checkbox",
|
|
408
557
|
},
|
|
409
|
-
// footerType: {
|
|
410
|
-
// title: "Footer Version",
|
|
411
|
-
// description: "Change your version of the checkout shown to users",
|
|
412
|
-
// type: "radio",
|
|
413
|
-
// options: [1, 2, 3, 4, 5],
|
|
414
|
-
// },
|
|
415
558
|
};
|
|
416
559
|
exports.default = exports.AdminSettingsTemplate;
|