@bridgeline-digital/hawksearch-handlebars-ui 4.0.0-beta.0 → 4.0.0-beta.2
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/dist/configuration/configuration.models.d.ts +27 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/autocomplete.models.d.ts +5 -0
- package/dist/models/raw/raw-autocomplete.models.d.ts +6 -2
- package/dist/services/autocomplete.service.d.ts +1 -0
- package/dist/services/base.service.d.ts +2 -0
- package/dist/services/search.service.d.ts +0 -2
- package/package.json +1 -1
- package/readme.md +1 -1
|
@@ -254,7 +254,33 @@ export interface HawkSearchConfig {
|
|
|
254
254
|
* `'https://searchapi-dev.hawksearch.net'`
|
|
255
255
|
*/
|
|
256
256
|
endpointUrl?: string;
|
|
257
|
+
/**
|
|
258
|
+
* Specifies whether autocomplete recommendations (autocomplete without entering a query) is enabled
|
|
259
|
+
*
|
|
260
|
+
* #### Default Value
|
|
261
|
+
* `false`
|
|
262
|
+
*/
|
|
257
263
|
recommendationsEnabled?: boolean;
|
|
264
|
+
/**
|
|
265
|
+
* Map item attributes to common object properties
|
|
266
|
+
*/
|
|
267
|
+
fieldMappings?: {
|
|
268
|
+
/**
|
|
269
|
+
* #### Default Value
|
|
270
|
+
* `'price'`
|
|
271
|
+
*/
|
|
272
|
+
price?: string;
|
|
273
|
+
/**
|
|
274
|
+
* #### Default Value
|
|
275
|
+
* `'rating'`
|
|
276
|
+
*/
|
|
277
|
+
rating?: string;
|
|
278
|
+
/**
|
|
279
|
+
* #### Default Value
|
|
280
|
+
* `'saleprice'`
|
|
281
|
+
*/
|
|
282
|
+
salePrice?: string;
|
|
283
|
+
};
|
|
258
284
|
};
|
|
259
285
|
search?: {
|
|
260
286
|
/**
|
|
@@ -328,7 +354,7 @@ export interface HawkSearchConfig {
|
|
|
328
354
|
*/
|
|
329
355
|
itemTypes?: {
|
|
330
356
|
/**
|
|
331
|
-
* If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.
|
|
357
|
+
* If the value a search result item is missing a value for the field mapped to {@link HawkSearchConfig.search | fieldMappings.type}, this value will be assumed.
|
|
332
358
|
*
|
|
333
359
|
* #### Default Value
|
|
334
360
|
* `'content'`
|