@algolia/client-search 5.4.1 → 5.5.0
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 +12 -11
package/dist/fetch.d.ts
CHANGED
|
@@ -996,7 +996,7 @@ type HighlightResultOption = {
|
|
|
996
996
|
fullyHighlighted?: boolean;
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
type HighlightResult =
|
|
999
|
+
type HighlightResult = HighlightResult[] | HighlightResultOption | {
|
|
1000
1000
|
[key: string]: HighlightResult;
|
|
1001
1001
|
};
|
|
1002
1002
|
|
|
@@ -1093,7 +1093,7 @@ type SnippetResultOption = {
|
|
|
1093
1093
|
matchLevel: MatchLevel;
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
type SnippetResult =
|
|
1096
|
+
type SnippetResult = SnippetResult[] | SnippetResultOption | {
|
|
1097
1097
|
[key: string]: SnippetResult;
|
|
1098
1098
|
};
|
|
1099
1099
|
|
|
@@ -1926,19 +1926,19 @@ type SearchPagination = {
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Page of search results to retrieve.
|
|
1928
1928
|
*/
|
|
1929
|
-
page
|
|
1929
|
+
page?: number;
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Number of results (hits).
|
|
1932
1932
|
*/
|
|
1933
|
-
nbHits
|
|
1933
|
+
nbHits?: number;
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Number of pages of results.
|
|
1936
1936
|
*/
|
|
1937
|
-
nbPages
|
|
1937
|
+
nbPages?: number;
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Number of hits per page.
|
|
1940
1940
|
*/
|
|
1941
|
-
hitsPerPage
|
|
1941
|
+
hitsPerPage?: number;
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
1944
|
type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
|
|
@@ -2980,7 +2980,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
2980
2980
|
batchSize?: number;
|
|
2981
2981
|
};
|
|
2982
2982
|
|
|
2983
|
-
declare const apiClientVersion = "5.
|
|
2983
|
+
declare const apiClientVersion = "5.5.0";
|
|
2984
2984
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
2985
2985
|
transporter: _algolia_client_common.Transporter;
|
|
2986
2986
|
/**
|
package/dist/node.d.cts
CHANGED
|
@@ -996,7 +996,7 @@ type HighlightResultOption = {
|
|
|
996
996
|
fullyHighlighted?: boolean;
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
type HighlightResult =
|
|
999
|
+
type HighlightResult = HighlightResult[] | HighlightResultOption | {
|
|
1000
1000
|
[key: string]: HighlightResult;
|
|
1001
1001
|
};
|
|
1002
1002
|
|
|
@@ -1093,7 +1093,7 @@ type SnippetResultOption = {
|
|
|
1093
1093
|
matchLevel: MatchLevel;
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
type SnippetResult =
|
|
1096
|
+
type SnippetResult = SnippetResult[] | SnippetResultOption | {
|
|
1097
1097
|
[key: string]: SnippetResult;
|
|
1098
1098
|
};
|
|
1099
1099
|
|
|
@@ -1926,19 +1926,19 @@ type SearchPagination = {
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Page of search results to retrieve.
|
|
1928
1928
|
*/
|
|
1929
|
-
page
|
|
1929
|
+
page?: number;
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Number of results (hits).
|
|
1932
1932
|
*/
|
|
1933
|
-
nbHits
|
|
1933
|
+
nbHits?: number;
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Number of pages of results.
|
|
1936
1936
|
*/
|
|
1937
|
-
nbPages
|
|
1937
|
+
nbPages?: number;
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Number of hits per page.
|
|
1940
1940
|
*/
|
|
1941
|
-
hitsPerPage
|
|
1941
|
+
hitsPerPage?: number;
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
1944
|
type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
|
|
@@ -2980,7 +2980,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
2980
2980
|
batchSize?: number;
|
|
2981
2981
|
};
|
|
2982
2982
|
|
|
2983
|
-
declare const apiClientVersion = "5.
|
|
2983
|
+
declare const apiClientVersion = "5.5.0";
|
|
2984
2984
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
2985
2985
|
transporter: _algolia_client_common.Transporter;
|
|
2986
2986
|
/**
|
package/dist/node.d.ts
CHANGED
|
@@ -996,7 +996,7 @@ type HighlightResultOption = {
|
|
|
996
996
|
fullyHighlighted?: boolean;
|
|
997
997
|
};
|
|
998
998
|
|
|
999
|
-
type HighlightResult =
|
|
999
|
+
type HighlightResult = HighlightResult[] | HighlightResultOption | {
|
|
1000
1000
|
[key: string]: HighlightResult;
|
|
1001
1001
|
};
|
|
1002
1002
|
|
|
@@ -1093,7 +1093,7 @@ type SnippetResultOption = {
|
|
|
1093
1093
|
matchLevel: MatchLevel;
|
|
1094
1094
|
};
|
|
1095
1095
|
|
|
1096
|
-
type SnippetResult =
|
|
1096
|
+
type SnippetResult = SnippetResult[] | SnippetResultOption | {
|
|
1097
1097
|
[key: string]: SnippetResult;
|
|
1098
1098
|
};
|
|
1099
1099
|
|
|
@@ -1926,19 +1926,19 @@ type SearchPagination = {
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
* Page of search results to retrieve.
|
|
1928
1928
|
*/
|
|
1929
|
-
page
|
|
1929
|
+
page?: number;
|
|
1930
1930
|
/**
|
|
1931
1931
|
* Number of results (hits).
|
|
1932
1932
|
*/
|
|
1933
|
-
nbHits
|
|
1933
|
+
nbHits?: number;
|
|
1934
1934
|
/**
|
|
1935
1935
|
* Number of pages of results.
|
|
1936
1936
|
*/
|
|
1937
|
-
nbPages
|
|
1937
|
+
nbPages?: number;
|
|
1938
1938
|
/**
|
|
1939
1939
|
* Number of hits per page.
|
|
1940
1940
|
*/
|
|
1941
|
-
hitsPerPage
|
|
1941
|
+
hitsPerPage?: number;
|
|
1942
1942
|
};
|
|
1943
1943
|
|
|
1944
1944
|
type SearchResponse<T = Record<string, any>> = BaseSearchResponse & SearchHits<T> & SearchPagination;
|
|
@@ -2980,7 +2980,7 @@ type ReplaceAllObjectsOptions = {
|
|
|
2980
2980
|
batchSize?: number;
|
|
2981
2981
|
};
|
|
2982
2982
|
|
|
2983
|
-
declare const apiClientVersion = "5.
|
|
2983
|
+
declare const apiClientVersion = "5.5.0";
|
|
2984
2984
|
declare function createSearchClient({ appId: appIdOption, apiKey: apiKeyOption, authMode, algoliaAgents, ...options }: CreateClientOptions): {
|
|
2985
2985
|
transporter: _algolia_client_common.Transporter;
|
|
2986
2986
|
/**
|
|
@@ -25,7 +25,7 @@ __export(searchClient_exports, {
|
|
|
25
25
|
});
|
|
26
26
|
module.exports = __toCommonJS(searchClient_exports);
|
|
27
27
|
var import_client_common = require("@algolia/client-common");
|
|
28
|
-
var apiClientVersion = "5.
|
|
28
|
+
var apiClientVersion = "5.5.0";
|
|
29
29
|
function getDefaultHosts(appId) {
|
|
30
30
|
return [
|
|
31
31
|
{
|