@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 +11 -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 +11 -7
- package/dist/node.d.cts +11 -7
- package/dist/node.d.ts +11 -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/baseSearchResponse.ts +5 -0
- 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
|
@@ -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 =
|
|
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 =
|
|
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
|
|
2776
|
+
page?: number;
|
|
2773
2777
|
/**
|
|
2774
2778
|
* Number of results (hits).
|
|
2775
2779
|
*/
|
|
2776
|
-
nbHits
|
|
2780
|
+
nbHits?: number;
|
|
2777
2781
|
/**
|
|
2778
2782
|
* Number of pages of results.
|
|
2779
2783
|
*/
|
|
2780
|
-
nbPages
|
|
2784
|
+
nbPages?: number;
|
|
2781
2785
|
/**
|
|
2782
2786
|
* Number of hits per page.
|
|
2783
2787
|
*/
|
|
2784
|
-
hitsPerPage
|
|
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.
|
|
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
|
/**
|