@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 +7 -7
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +7 -7
- package/dist/node.d.cts +7 -7
- package/dist/node.d.ts +7 -7
- package/dist/src/searchClient.cjs +1 -1
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +1 -1
- package/dist/src/searchClient.js.map +1 -1
- package/model/highlightResult.ts +1 -5
- package/model/searchPagination.ts +4 -4
- package/model/snippetResult.ts +1 -5
- package/package.json +11 -11
package/dist/browser.d.ts
CHANGED
|
@@ -366,7 +366,7 @@ type HighlightResultOption = {
|
|
|
366
366
|
fullyHighlighted?: boolean;
|
|
367
367
|
};
|
|
368
368
|
|
|
369
|
-
type HighlightResult =
|
|
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 =
|
|
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
|
|
2776
|
+
page?: number;
|
|
2777
2777
|
/**
|
|
2778
2778
|
* Number of results (hits).
|
|
2779
2779
|
*/
|
|
2780
|
-
nbHits
|
|
2780
|
+
nbHits?: number;
|
|
2781
2781
|
/**
|
|
2782
2782
|
* Number of pages of results.
|
|
2783
2783
|
*/
|
|
2784
|
-
nbPages
|
|
2784
|
+
nbPages?: number;
|
|
2785
2785
|
/**
|
|
2786
2786
|
* Number of hits per page.
|
|
2787
2787
|
*/
|
|
2788
|
-
hitsPerPage
|
|
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.
|
|
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
|
/**
|