@algolia/client-search 5.4.1 → 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
@@ -366,7 +366,7 @@ type HighlightResultOption = {
366
366
  fullyHighlighted?: boolean;
367
367
  };
368
368
 
369
- type HighlightResult = HighlightResultOption | HighlightResultOption[] | Record<string, HighlightResultOption> | {
369
+ type HighlightResult = HighlightResult[] | HighlightResultOption | {
370
370
  [key: string]: HighlightResult;
371
371
  };
372
372
 
@@ -463,7 +463,7 @@ type SnippetResultOption = {
463
463
  matchLevel: MatchLevel;
464
464
  };
465
465
 
466
- type SnippetResult = Record<string, SnippetResultOption> | SnippetResultOption | SnippetResultOption[] | {
466
+ type SnippetResult = SnippetResult[] | SnippetResultOption | {
467
467
  [key: string]: SnippetResult;
468
468
  };
469
469
 
@@ -2773,19 +2773,19 @@ type SearchPagination = {
2773
2773
  /**
2774
2774
  * Page of search results to retrieve.
2775
2775
  */
2776
- page: number;
2776
+ page?: number;
2777
2777
  /**
2778
2778
  * Number of results (hits).
2779
2779
  */
2780
- nbHits: number;
2780
+ nbHits?: number;
2781
2781
  /**
2782
2782
  * Number of pages of results.
2783
2783
  */
2784
- nbPages: number;
2784
+ nbPages?: number;
2785
2785
  /**
2786
2786
  * Number of hits per page.
2787
2787
  */
2788
- hitsPerPage: number;
2788
+ hitsPerPage?: number;
2789
2789
  };
2790
2790
 
2791
2791
  type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
@@ -2956,7 +2956,7 @@ type UpdatedRuleResponse = {
2956
2956
  taskID: number;
2957
2957
  };
2958
2958
 
2959
- declare const apiClientVersion = "5.4.1";
2959
+ declare const apiClientVersion = "5.4.3";
2960
2960
  declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
2961
2961
  transporter: _algolia_client_common.Transporter;
2962
2962
  /**
@@ -18,7 +18,7 @@ import {
18
18
  ApiError,
19
19
  createIterablePromise
20
20
  } from "@algolia/client-common";
21
- var apiClientVersion = "5.4.1";
21
+ var apiClientVersion = "5.4.3";
22
22
  function getDefaultHosts(appId) {
23
23
  return [
24
24
  {