@thryveai/theme-interfaces 1.5.27 → 1.5.30

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/README.md CHANGED
@@ -1,29 +1,29 @@
1
- #V8 Theme Interfaces
2
-
3
- interfaces for all MI9 Retailer Themes.
4
-
5
- ###icons.interfaces
6
- List of all icons used inside the ui projects.
7
-
8
- ###retailer-settings.interfaces
9
- more info here
10
- https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
- ###theme.interfaces
12
- The interface for each theme, colors, fonts, sizes and other css properties.
13
-
14
- #To Build Project
15
-
16
- ```
17
- npm install
18
- npm run build
19
- ```
20
-
21
- #To Publish npm package
22
- ```
23
- npm login
24
- npm publish
25
- ```
26
- or
27
- ```
28
- npm run push
29
- ```
1
+ #V8 Theme Interfaces
2
+
3
+ interfaces for all MI9 Retailer Themes.
4
+
5
+ ###icons.interfaces
6
+ List of all icons used inside the ui projects.
7
+
8
+ ###retailer-settings.interfaces
9
+ more info here
10
+ https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo
11
+ ###theme.interfaces
12
+ The interface for each theme, colors, fonts, sizes and other css properties.
13
+
14
+ #To Build Project
15
+
16
+ ```
17
+ npm install
18
+ npm run build
19
+ ```
20
+
21
+ #To Publish npm package
22
+ ```
23
+ npm login
24
+ npm publish
25
+ ```
26
+ or
27
+ ```
28
+ npm run push
29
+ ```
@@ -6,11 +6,13 @@ export interface IAdminSettingsTemplate {
6
6
  adminPanelOnly: IAdminControl;
7
7
  accountPage: IAdminControl;
8
8
  additionalCharges: IAdminControl;
9
+ addressIntegration: IAdminControl;
9
10
  addressValidationTypes: IAdminControl;
10
11
  allowInStorePurchases: IAdminControl;
11
12
  allowPastPurchases: IAdminControl;
12
13
  cacheTimeMins: IAdminControl;
13
14
  checkoutV1: IAdminControl;
15
+ daysToRemainSignedIn?: IAdminControl;
14
16
  defaultCountry: IAdminControl;
15
17
  defaultShoppingMode: IAdminControl;
16
18
  defaultStoreLocation: IAdminControl;
@@ -21,6 +23,7 @@ export interface IAdminSettingsTemplate {
21
23
  enableNewsletterSignup: IAdminControl;
22
24
  enableNotifications?: IAdminControl;
23
25
  favoritesV1: IAdminControl;
26
+ features: IAdminControl;
24
27
  flipp: IAdminControl;
25
28
  gtmId: IAdminControl;
26
29
  hideTaxOnSummary: IAdminControl;
@@ -39,6 +42,8 @@ export interface IAdminSettingsTemplate {
39
42
  searchPreview: IAdminControl;
40
43
  showCheckoutPromoCode: IAdminControl;
41
44
  showImgOnOrder: IAdminControl;
45
+ smartbanner: IAdminControl;
46
+ smsNotifications: IAdminControl;
42
47
  subHeaderHeight: IAdminControl;
43
48
  timeslotModalSettings: IAdminControl;
44
49
  useAddressValidation: IAdminControl;
@@ -37,78 +37,107 @@ exports.AdminSettingsTemplate = {
37
37
  bannerName: {
38
38
  title: "Name of the Retailer",
39
39
  description: "Only used to identify the banner in the admin panel",
40
- type: "inputChar",
40
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
41
41
  },
42
42
  logoUrl: {
43
43
  title: "Name of the Retailer",
44
44
  description: "Only used to identify the banner in the admin panel",
45
- type: "inputChar",
45
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
46
46
  },
47
47
  },
48
48
  },
49
49
  additionalCharges: {
50
50
  title: "Additional Charges",
51
51
  description: "Enables additional charging such as tipping, donations etc.",
52
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274571877/Additional+Charges",
53
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
54
+ },
55
+ addressIntegration: {
56
+ title: "Address Integration",
57
+ description: "Use external address integration",
52
58
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
53
- type: "checkbox",
59
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
60
+ value: {
61
+ enabled: {
62
+ title: "Enabled",
63
+ description: "Enables external address integration",
64
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
65
+ },
66
+ getAddressesUrl: {
67
+ title: "Get Address Url",
68
+ description: "Set the get address url",
69
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
70
+ },
71
+ getLocationUrl: {
72
+ title: "Get Location Url",
73
+ description: "Set the get location url",
74
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
75
+ },
76
+ addressFinderType: {
77
+ title: "Address Finder Type",
78
+ description: "Select the address finder type",
79
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
80
+ options: ["AUS", "EU", "IE", "US", "UK", "CA"],
81
+ },
82
+ },
54
83
  },
55
84
  allowInStorePurchases: {
56
85
  title: "InStore Purchases",
57
86
  description: "Show the purchases made in store in the order history (requires integration).",
58
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
59
- type: "checkbox",
87
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274375221/AllowInStorePurchases",
88
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
60
89
  },
61
90
  allowPastPurchases: {
62
91
  title: "Display PastPurchases",
63
92
  description: "Enable displaying past purchases functionality",
64
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
65
- type: "checkbox",
93
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274637365/AllowPastPurchases",
94
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
66
95
  },
67
96
  cacheTimeMins: {
68
97
  title: "Production Cache time",
69
98
  description: "How long data will be cached to make the site faster. (1 = 1minute)",
70
- type: "inputNumber",
99
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
71
100
  },
72
101
  addressValidationTypes: {
73
102
  title: "Address Validation",
74
103
  description: "User address validation settings.",
75
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3178627073/Storefront+Address+Validation+in-progress",
76
- type: "object",
104
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274670143/Address+Validation",
105
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
77
106
  value: {
78
107
  firstName: {
79
108
  title: "User's first name",
80
109
  description: addressValidationDescription,
81
- type: "multiDropdown",
110
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
82
111
  options: ["alphaNumeric", "alphaOnly", "required"],
83
112
  },
84
113
  familyName: {
85
114
  title: "User's Surname",
86
115
  description: addressValidationDescription,
87
- type: "multiDropdown",
116
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
88
117
  options: ["alphaNumeric", "alphaOnly", "required"],
89
118
  },
90
119
  addressLine1: {
91
120
  title: "Address Line 1",
92
121
  description: addressValidationDescription,
93
- type: "multiDropdown",
122
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
94
123
  options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
95
124
  },
96
125
  addressLine2: {
97
126
  title: "Address Line 2",
98
127
  description: addressValidationDescription,
99
- type: "multiDropdown",
128
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
100
129
  options: ["alphaNumeric", "alphaOnly", "numericOnly", "required"],
101
130
  },
102
131
  city: {
103
132
  title: "City",
104
133
  description: addressValidationDescription,
105
- type: "multiDropdown",
134
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
106
135
  options: ["alphaNumeric", "alphaOnly", "required"],
107
136
  },
108
137
  countyProvinceState: {
109
138
  title: "County/Province/State",
110
139
  description: addressValidationDescription,
111
- type: "multiDropdown",
140
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
112
141
  options: [
113
142
  "alphaNumeric",
114
143
  "alphaOnly",
@@ -122,13 +151,13 @@ exports.AdminSettingsTemplate = {
122
151
  instructions: {
123
152
  title: "User Instructions Fields",
124
153
  description: "Validation for the input fields for user instructions",
125
- type: "multiDropdown",
154
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
126
155
  options: ["alphaNumeric", "alphaOnly", "required", "numericOnly"],
127
156
  },
128
157
  phoneNumber: {
129
158
  title: "Phone Number",
130
159
  description: "The number to be used to contact the user",
131
- type: "multiDropdown",
160
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
132
161
  options: [
133
162
  "usPhone",
134
163
  "usMobileNumber",
@@ -143,7 +172,7 @@ exports.AdminSettingsTemplate = {
143
172
  postCode: {
144
173
  title: "Post / zip code",
145
174
  description: addressValidationDescription,
146
- type: "multiDropdown",
175
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
147
176
  options: [
148
177
  "alphaNumeric",
149
178
  "auPostCode",
@@ -160,6 +189,7 @@ exports.AdminSettingsTemplate = {
160
189
  title: "Account Page",
161
190
  description: "Account page settings",
162
191
  type: admin_interfaces_1.AdminTemplateInputTypes.object,
192
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784302/Account+Page",
163
193
  value: {
164
194
  loyaltyTab: {
165
195
  title: "Loyalty Tab",
@@ -179,17 +209,17 @@ exports.AdminSettingsTemplate = {
179
209
  loyaltyNumberLength: {
180
210
  title: "Loyalty Number Length",
181
211
  description: "Control the loyalty number length",
182
- type: "inputNumber",
212
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
183
213
  },
184
214
  loyaltyNumberPrefix: {
185
215
  title: "Loyalty Number Prefix",
186
216
  description: "Add hardcoded prefix for loyalty numbers (this will affect the length)",
187
- type: "inputChar",
217
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
188
218
  },
189
219
  loyaltyValidationType: {
190
220
  title: "Loyalty Number Validation",
191
221
  description: "Select loyalty validation types",
192
- type: "multiDropdown",
222
+ type: admin_interfaces_1.AdminTemplateInputTypes.multiDropdown,
193
223
  options: validationTypes,
194
224
  },
195
225
  },
@@ -201,40 +231,47 @@ exports.AdminSettingsTemplate = {
201
231
  checkoutV1: {
202
232
  title: "Checkout Version",
203
233
  description: "Change your version of the checkout shown to users",
204
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
205
- type: "checkbox",
234
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276111878/Checkout+Version",
235
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
206
236
  },
207
237
  // checkoutValidation?: ICheckoutValidation;
208
238
  // ctaButtons?: ICtaButtons;
209
- // daysToRemainSignedIn?: number;
239
+ daysToRemainSignedIn: {
240
+ title: "Sign In Days",
241
+ description: "Time in days to remain signed in in the app",
242
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
243
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
244
+ },
210
245
  defaultCountry: {
211
246
  title: "Default Country",
212
247
  description: "Used for address, phone validation & ui formating.",
213
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
214
- type: "dropdown",
248
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3273752757/Default+Country",
249
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
215
250
  options: ["USA", "Canada", "Ireland", "Australia"],
216
251
  },
217
252
  // defaultSearchParams?: IDefaultSearchParams;
218
253
  defaultShoppingMode: {
219
254
  title: "Default Shopping Mode",
220
255
  description: "Shopping mode the site defaults to when a user lands and has not registered.",
221
- type: "dropdown",
256
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3272999110/Default+Shopping+Mode",
257
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
222
258
  options: ["pickup", "planning", "delivery"],
223
259
  },
224
260
  defaultStoreLocation: {
225
261
  title: "Default Store Location",
226
262
  description: "Used to center the store selector map to the retailers region. Without setting this, the map defaults to central Africa.",
227
- type: "object",
263
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
264
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275784259/Default+Store+Location",
228
265
  value: {
229
266
  latitude: {
230
267
  title: "Latitude",
231
268
  description: "",
232
- type: "inputNumber",
269
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
233
270
  },
234
271
  longitude: {
235
272
  title: "Longitude",
236
273
  description: "",
237
- type: "inputNumber",
274
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
238
275
  },
239
276
  },
240
277
  },
@@ -242,39 +279,39 @@ exports.AdminSettingsTemplate = {
242
279
  disableTprPrice: {
243
280
  title: "Disable TPR Price",
244
281
  description: "Disable the display of tpr pricing",
245
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
246
- type: "checkbox",
282
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276177413/Disable+TPR+Price",
283
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
247
284
  },
248
285
  documentTitle: {
249
286
  title: "Document Title",
250
287
  description: "Fallback browser page Title if no SEO details are added to the page via the CMS.",
251
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
252
- type: "inputChar",
288
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3275685918/Document+Title",
289
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
253
290
  },
254
291
  // eircode?: string | null;
255
292
  enable3dSecure: {
256
293
  title: "Enable 3DSecure",
257
294
  description: "Enable 3d secure validation for payment",
258
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
259
- type: "checkbox",
295
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144647/Enable+3DSecure",
296
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
260
297
  },
261
298
  enableGoogleTranslate: {
262
299
  title: "Enable Google Translate",
263
300
  description: "Enable google translation display and functionality",
264
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
265
- type: "checkbox",
301
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276275734/Enable+Google+Translate",
302
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
266
303
  },
267
304
  enableNewsletterSignup: {
268
305
  title: "Enable Newsletter",
269
306
  description: "Enable newsletter signup functionality",
270
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
271
- type: "checkbox",
307
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144678/Enable+Newsletter",
308
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
272
309
  },
273
310
  enableNotifications: {
274
311
  title: "Enable Notifications",
275
312
  description: "Enable notifications functionality",
276
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
277
- type: "checkbox",
313
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276177422/Enable+Notifications",
314
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
278
315
  },
279
316
  // errorLoggingLevel?: ILoggingLevel;
280
317
  // externalApps?: IExternalApps;
@@ -287,33 +324,112 @@ exports.AdminSettingsTemplate = {
287
324
  favoritesV1: {
288
325
  title: "Favorites Version1",
289
326
  description: "Enable version 1 of favorites functionality",
290
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
291
- type: "checkbox",
327
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144744/Favorites+Version1",
328
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
329
+ },
330
+ features: {
331
+ title: "Features",
332
+ description: "Enable features",
333
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
334
+ value: {
335
+ clientCache: {
336
+ title: "Client Cache",
337
+ description: "Enable cache for clients",
338
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
339
+ },
340
+ },
292
341
  },
293
342
  flipp: {
294
343
  title: "Flipp Circulars",
295
344
  description: "Configure Flipp circulars integration",
296
- type: "nullObject",
345
+ type: admin_interfaces_1.AdminTemplateInputTypes.nullObject,
297
346
  value: {
298
347
  version: {
299
348
  title: "Version",
300
349
  description: "Will you use version 1 or version 2?",
301
- type: "checkbox",
350
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
302
351
  },
303
352
  retailer: {
304
353
  title: "Retailer Name",
305
354
  description: "The retailer setting from flipp",
306
- type: "inputChar",
355
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
307
356
  },
308
357
  merchantId: {
309
358
  title: "Merchant Id",
310
359
  description: "The merchant Id setting from flipp",
311
- type: "inputChar",
360
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
312
361
  },
313
362
  accessToken: {
314
363
  title: "Access Token",
315
364
  description: "The access token setting from flipp",
316
- type: "inputChar",
365
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
366
+ },
367
+ },
368
+ },
369
+ smartbanner: {
370
+ title: "Smart Banner",
371
+ description: "Render smart banner on mobile views",
372
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
373
+ value: {
374
+ enabled: {
375
+ title: "Enable",
376
+ description: "Enable smart banner",
377
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
378
+ },
379
+ title: {
380
+ title: "Title",
381
+ description: "Smart banner title",
382
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
383
+ },
384
+ author: {
385
+ title: "Author",
386
+ description: "Smart banner author",
387
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
388
+ },
389
+ price: {
390
+ title: "Price",
391
+ description: "Smart banner price",
392
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
393
+ },
394
+ priceSuffixApple: {
395
+ title: "Apple Price Suffix",
396
+ description: "Smart banner price suffix for Apple devices",
397
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
398
+ },
399
+ priceSuffixGoogle: {
400
+ title: "Google Price Suffix",
401
+ description: "Smart banner price suffix for Google devices",
402
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
403
+ },
404
+ iconApple: {
405
+ title: "Apple Icon",
406
+ description: "Smart banner icon for Apple devices",
407
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
408
+ },
409
+ iconGoogle: {
410
+ title: "Google Icon",
411
+ description: "Smart banner icon for Google devices",
412
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
413
+ },
414
+ button: {
415
+ title: "Button",
416
+ description: "Smart banner button text",
417
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
418
+ },
419
+ buttonUrlApple: {
420
+ title: "Apple Button Url",
421
+ description: "Smart banner url for Apple button",
422
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
423
+ },
424
+ buttonUrlGoogle: {
425
+ title: "Google Button Url",
426
+ description: "Smart banner url for Google button",
427
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
428
+ },
429
+ closeLabel: {
430
+ title: "Close Label",
431
+ description: "Smart banner label text",
432
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
317
433
  },
318
434
  },
319
435
  },
@@ -322,21 +438,26 @@ exports.AdminSettingsTemplate = {
322
438
  gtmId: {
323
439
  title: "GTM ID",
324
440
  description: "Google Tag Manager ID",
325
- type: "inputChar",
441
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
326
442
  },
327
443
  hideTaxOnSummary: {
328
444
  title: "Hide Summary Tax",
329
445
  description: "Hide the tax displayed on the summary box",
330
446
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
331
- type: "checkbox",
447
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
332
448
  },
333
449
  houseAccountRegExValidation: {
334
450
  title: "House Account Validation",
335
451
  description: "Regular expression to validate house accounts",
336
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
337
- type: "inputChar",
338
- },
339
- // idpTarget?: "_self" | "_blank";
452
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144701/House+Account+Validation",
453
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
454
+ },
455
+ // idpTarget:{
456
+ // title: "Idp Target",
457
+ // description: "Idp opens on the same or a new tab",
458
+ // type: AdminTemplateInputTypes.dropdown,
459
+ // options: ["_self", "_blank"],
460
+ // },
340
461
  // idpUrl: {
341
462
  // title: 'External IDP url',
342
463
  // 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.',
@@ -348,39 +469,45 @@ exports.AdminSettingsTemplate = {
348
469
  title: "Planning Only",
349
470
  description: "Enable if planning mode is the only available shopping method",
350
471
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
351
- type: "checkbox",
472
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
352
473
  },
353
474
  // layout?: ILayoutSettings;
354
475
  limitProductCardTitleHeight: {
355
476
  title: "Limit Product Card Title",
356
477
  description: "Restricts the product card title height display",
357
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
358
- type: "checkbox",
359
- },
360
- // loggingLevelClient?: ILoggingLevel;
478
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3276144711/Limit+Product+Card+Title",
479
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
480
+ },
481
+ // loggingLevelClient: {
482
+ // title: "Client logging Level",
483
+ // description: "Sets client's logging detail level",
484
+ // helpLink:
485
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
486
+ // type: AdminTemplateInputTypes.checkbox,
487
+ // },
361
488
  // loggingLevelServer?: ILoggingLevel;
362
489
  mainHeaderHeight: {
363
490
  title: "Main Header Height",
364
491
  description: "Use to set the main header height in pixels",
365
492
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
366
- type: "inputNumber",
493
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
367
494
  },
368
495
  mapZoom: {
369
496
  title: "Map Zoom",
370
497
  description: "Use to change the google maps zoom level",
371
498
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
372
- type: "inputNumber",
499
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
373
500
  },
374
501
  minimumCreditCardAmount: {
375
502
  title: "Minimum Credit Card Amount",
376
503
  description: "Use to set the minimum credit card amount",
377
504
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
378
- type: "checkbox",
505
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
379
506
  },
380
507
  nutritionZone: {
381
508
  title: "Nutrition Template",
382
509
  description: "Show the correct nutrition format for the correct zone.",
383
- type: "dropdown",
510
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
384
511
  options: ["us", "eu", "au", "ca"],
385
512
  },
386
513
  // paymentCards?: IPaymentCards;
@@ -389,20 +516,20 @@ exports.AdminSettingsTemplate = {
389
516
  title: "Product Card Title Height",
390
517
  description: "Set the product card title height in pixels",
391
518
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
392
- type: "inputNumber",
519
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
393
520
  },
394
521
  productCardv2: {
395
522
  title: "use product card v2",
396
523
  description: "use product card v2",
397
524
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
398
- type: "checkbox",
525
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
399
526
  },
400
527
  // TODO: this is set to number in main interface, should be fixed numbers
401
528
  promoTemplateVersion: {
402
529
  title: "Promo Template Version",
403
530
  description: "Select a template version to show promotions",
404
531
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
405
- type: "dropdown",
532
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
406
533
  options: [1, 2, 3],
407
534
  },
408
535
  // registrationFields?: IRegistrationField[];
@@ -411,109 +538,139 @@ exports.AdminSettingsTemplate = {
411
538
  title: "Retailer country",
412
539
  description: "Select the retailer country",
413
540
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
414
- type: "dropdown",
541
+ type: admin_interfaces_1.AdminTemplateInputTypes.dropdown,
415
542
  options: ["us", "ca", "ie", "au"],
416
543
  },
417
544
  retailerName: {
418
545
  title: "Retailer Name",
419
546
  description: "Retailers short code e.g the code used for the retailers environment.",
420
547
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
421
- type: "inputChar",
548
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
422
549
  },
423
550
  searchPreview: {
424
551
  title: "Search Previews",
425
552
  description: "Toggle Products/Suggestions to appear on search preview",
426
- type: "object",
553
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
427
554
  value: {
428
555
  desktop: {
429
556
  title: "Desktop",
430
557
  description: "",
431
- type: "object",
558
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
432
559
  value: {
433
560
  products: {
434
561
  title: "Show Products",
435
562
  description: "",
436
- type: "checkbox",
563
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
437
564
  },
438
565
  suggestions: {
439
- title: "Snow Suggestions",
566
+ title: "Show Suggestions",
440
567
  description: "",
441
- type: "checkbox",
568
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
442
569
  },
443
570
  },
444
571
  },
445
572
  mobile: {
446
573
  title: "Mobile",
447
574
  description: "",
448
- type: "object",
575
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
449
576
  value: {
450
577
  products: {
451
578
  title: "Show Products",
452
579
  description: "",
453
- type: "checkbox",
580
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
454
581
  },
455
582
  suggestions: {
456
583
  title: "Snow Suggestions",
457
584
  description: "",
458
- type: "checkbox",
585
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
459
586
  },
460
587
  },
461
588
  },
462
589
  },
463
590
  },
464
- // secondTierAuthorization?: ISecondTierAuthorization;
591
+ // secondTierAuthorization: {
592
+ // title: "Second Tier Authorization",
593
+ // description: "Enable second tier authorization",
594
+ // helpLink:
595
+ // "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
596
+ // type: AdminTemplateInputTypes.nullObject,
597
+ // value: {
598
+ // time: {
599
+ // title: "Time",
600
+ // description: "Time selection",
601
+ // type: AdminTemplateInputTypes.dropdown,
602
+ // value: [undefined, null, number]
603
+ // },
604
+ // },
605
+ // },
465
606
  showCheckoutPromoCode: {
466
607
  title: "Show Checkout Promo",
467
608
  description: "Show checkout promotion code",
468
609
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
469
- type: "checkbox",
610
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
470
611
  },
471
612
  showImgOnOrder: {
472
613
  title: "Show Image On Order",
473
614
  description: "Show images on order",
474
615
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
475
- type: "checkbox",
616
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
617
+ },
618
+ smsNotifications: {
619
+ title: "SMS Notifications",
620
+ description: "Configure SMS Notifications integration",
621
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
622
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
623
+ value: {
624
+ enabled: {
625
+ title: "Enable",
626
+ description: "Enable SMS Notifications integration",
627
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
628
+ },
629
+ getEnrollmentUrl: {
630
+ title: "Get Url",
631
+ description: "Get enrollment url",
632
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
633
+ },
634
+ postEnrollmentUrl: {
635
+ title: "Post Url",
636
+ description: "Post enrollment url",
637
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputChar,
638
+ },
639
+ },
476
640
  },
477
- // smsNotifications?: ISMSConfig;
478
641
  subHeaderHeight: {
479
642
  title: "Subheader Height",
480
643
  description: "Use to set the sub header height in pixels",
481
644
  helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
482
- type: "inputNumber",
645
+ type: admin_interfaces_1.AdminTemplateInputTypes.inputNumber,
483
646
  },
484
647
  timeslotModalSettings: {
485
648
  title: "Timeslot Modal Settings",
486
649
  description: "Force timeslot selection",
487
- type: "object",
650
+ type: admin_interfaces_1.AdminTemplateInputTypes.object,
488
651
  value: {
489
652
  showOnAddToCart: {
490
653
  title: "Timeslot on Add To Cart",
491
654
  description: "Show timeslot popup when user clicks on AddToCart",
492
- type: "checkbox",
655
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
493
656
  },
494
657
  timeslotRequiredToAddToCart: {
495
658
  title: "Force Timeslot on Add To Cart",
496
659
  description: "Force a timeslot selection in order to add item in cart",
497
- type: "checkbox",
660
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
498
661
  },
499
662
  timeslotRequiredToViewCartReview: {
500
663
  title: "Force Timeslot on Cart Page",
501
664
  description: "Force a timeslot selection in order to view cart page",
502
- type: "checkbox",
665
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
503
666
  },
504
667
  },
505
668
  },
506
669
  useAddressValidation: {
507
670
  title: "Use Address Validation",
508
671
  description: "Use to enable address validation",
509
- helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/1594065051/Storefront+configuration+-+from+theme+repo",
510
- type: "checkbox",
672
+ helpLink: "https://mi9retail.atlassian.net/wiki/spaces/FDS/pages/3274670143/useAddressValidation",
673
+ type: admin_interfaces_1.AdminTemplateInputTypes.checkbox,
511
674
  },
512
- // footerType: {
513
- // title: "Footer Version",
514
- // description: "Change your version of the checkout shown to users",
515
- // type: "radio",
516
- // options: [1, 2, 3, 4, 5],
517
- // },
518
675
  };
519
676
  exports.default = exports.AdminSettingsTemplate;
@@ -7,7 +7,7 @@ exports.AdminTemplateInputTypes = {
7
7
  color: "color",
8
8
  dropdown: "dropdown",
9
9
  inputChar: "inputChar",
10
- inputNumber: "inputChar",
10
+ inputNumber: "inputNumber",
11
11
  multiDropdown: "multiDropdown",
12
12
  nullObject: "nullObject",
13
13
  object: "object",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thryveai/theme-interfaces",
3
- "version": "1.5.27",
3
+ "version": "1.5.30",
4
4
  "description": "Shared Interfaces for all ThryveAi storefront retailer themes.",
5
5
  "scripts": {
6
6
  "build": "tsc",