@algolia/client-search 5.4.0 → 5.4.3

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/browser.d.ts CHANGED
@@ -310,6 +310,10 @@ type BaseSearchResponse = Record<string, any> & {
310
310
  * Unique identifier for the query. This is used for [click analytics](https://www.algolia.com/doc/guides/analytics/click-analytics/).
311
311
  */
312
312
  queryID?: string;
313
+ /**
314
+ * Whether automatic events collection is enabled for the application.
315
+ */
316
+ _automaticInsights?: boolean;
313
317
  };
314
318
 
315
319
  type BrowsePagination = {
@@ -362,7 +366,7 @@ type HighlightResultOption = {
362
366
  fullyHighlighted?: boolean;
363
367
  };
364
368
 
365
- type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption> | {
369
+ type HighlightResult = HighlightResult[] | HighlightResultOption | {
366
370
  [key: string]: HighlightResult;
367
371
  };
368
372
 
@@ -459,7 +463,7 @@ type SnippetResultOption = {
459
463
  matchLevel: MatchLevel;
460
464
  };
461
465
 
462
- type SnippetResult = Record<string, SnippetResultOption> | SnippetResultOption | SnippetResultOption[] | {
466
+ type SnippetResult = SnippetResult[] | SnippetResultOption | {
463
467
  [key: string]: SnippetResult;
464
468
  };
465
469
 
@@ -2769,19 +2773,19 @@ type SearchPagination = {
2769
2773
  /**
2770
2774
  * Page of search results to retrieve.
2771
2775
  */
2772
- page: number;
2776
+ page?: number;
2773
2777
  /**
2774
2778
  * Number of results (hits).
2775
2779
  */
2776
- nbHits: number;
2780
+ nbHits?: number;
2777
2781
  /**
2778
2782
  * Number of pages of results.
2779
2783
  */
2780
- nbPages: number;
2784
+ nbPages?: number;
2781
2785
  /**
2782
2786
  * Number of hits per page.
2783
2787
  */
2784
- hitsPerPage: number;
2788
+ hitsPerPage?: number;
2785
2789
  };
2786
2790
 
2787
2791
  type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
@@ -2952,7 +2956,7 @@ type UpdatedRuleResponse = {
2952
2956
  taskID: number;
2953
2957
  };
2954
2958
 
2955
- declare const apiClientVersion = "5.4.0";
2959
+ declare const apiClientVersion = "5.4.3";
2956
2960
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
2957
2961
  transporter: _algolia_client_common.Transporter;
2958
2962
  /**
@@ -18,7 +18,7 @@ import {
18
18
  ApiError,
19
19
  createIterablePromise
20
20
  } from "@algolia/client-common";
21
- var apiClientVersion = "5.4.0";
21
+ var apiClientVersion = "5.4.3";
22
22
  function getDefaultHosts(appId) {
23
23
  return [
24
24
  {