@bridgeline-digital/hawksearch-handlebars-ui 2.0.0 → 2.1.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.
@@ -2,7 +2,7 @@
2
2
  * @category Autocomplete
3
3
  */
4
4
  export interface AutocompleteRequest {
5
- query: string;
5
+ query?: string;
6
6
  }
7
7
  /**
8
8
  * @category Autocomplete
@@ -78,7 +78,7 @@ export interface AutocompleteProducts {
78
78
  * @category Autocomplete
79
79
  */
80
80
  export interface AutocompleteResponse {
81
- query: string;
81
+ query?: string;
82
82
  categories: AutocompleteCategories;
83
83
  content: AutocompleteContent;
84
84
  products: AutocompleteProducts;
@@ -2,7 +2,7 @@ import { RawSearchResultsItem } from './raw-search.models';
2
2
  export interface RawAutocompleteRequest {
3
3
  ClientGuid: string;
4
4
  IndexName?: string;
5
- Keyword: string;
5
+ Keyword?: string;
6
6
  DisplayFullResponse?: boolean;
7
7
  }
8
8
  export interface RawAutocompleteCategory {
@@ -2,7 +2,7 @@ import { AutocompleteResponse } from '@models';
2
2
  import { BaseService } from './base.service';
3
3
  export declare class AutocompleteService extends BaseService {
4
4
  protected baseUrl: string;
5
- query(query: string): Promise<AutocompleteResponse>;
5
+ query(query?: string): Promise<AutocompleteResponse>;
6
6
  private executeAutocomplete;
7
7
  private convertResponse;
8
8
  bindComponent(autocompleteResponse: AutocompleteResponse): void;
@@ -9,7 +9,7 @@ export declare class TrackingService extends BaseService {
9
9
  price: number;
10
10
  currencyIsoCode: string;
11
11
  }>): Promise<void>;
12
- trackAutocompleteClick(query: string, itemType: AutocompleteItemType, title: string, url: string): Promise<void>;
12
+ trackAutocompleteClick(query: string | undefined, itemType: AutocompleteItemType, title: string, url: string): Promise<void>;
13
13
  trackBannerClick(bannerId: number, campaignId: number): Promise<void>;
14
14
  trackBannerImpression(bannerId: number, campaignId: number): Promise<void>;
15
15
  trackOrder(orderId: string, items: Array<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridgeline-digital/hawksearch-handlebars-ui",
3
- "version": "2.0.0",
3
+ "version": "2.1.0-beta.2",
4
4
  "description": "The HawkSearch Handlebars UI package allows you to add a highly-customizable search results page to your website powered by HawkSearch.",
5
5
  "private": false,
6
6
  "publishConfig": {
package/readme.md CHANGED
@@ -36,4 +36,4 @@ To display a landing page or recommendations instead of search results, simply r
36
36
 
37
37
  ## Documentation
38
38
 
39
- Documentation is available at http://handlebars-ui.hawksearch.com/2.0.0/.
39
+ Documentation is available at http://handlebars-ui.hawksearch.com/2.1.0-beta.2/.