@algolia/client-search 5.27.0 → 5.29.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/README.md +4 -4
- package/dist/browser.d.ts +377 -368
- package/dist/builds/browser.js +8 -8
- 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 +8 -8
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +8 -8
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +8 -8
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +8 -8
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +377 -368
- package/dist/node.d.cts +377 -368
- package/dist/node.d.ts +377 -368
- package/dist/src/searchClient.cjs +8 -8
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +8 -8
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +377 -368
- package/package.json +7 -7
|
@@ -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.29.0";
|
|
29
29
|
function getDefaultHosts(appId) {
|
|
30
30
|
return [
|
|
31
31
|
{
|
|
@@ -289,8 +289,8 @@ function createSearchClient({
|
|
|
289
289
|
*/
|
|
290
290
|
browseRules({ indexName, searchRulesParams, ...browseRulesOptions }, requestOptions) {
|
|
291
291
|
const params = {
|
|
292
|
-
|
|
293
|
-
|
|
292
|
+
...searchRulesParams,
|
|
293
|
+
hitsPerPage: (searchRulesParams == null ? void 0 : searchRulesParams.hitsPerPage) || 1e3
|
|
294
294
|
};
|
|
295
295
|
return (0, import_client_common.createIterablePromise)({
|
|
296
296
|
func: (previousResponse) => {
|
|
@@ -326,8 +326,8 @@ function createSearchClient({
|
|
|
326
326
|
...browseSynonymsOptions
|
|
327
327
|
}, requestOptions) {
|
|
328
328
|
const params = {
|
|
329
|
-
page: 0,
|
|
330
329
|
...searchSynonymsParams,
|
|
330
|
+
page: (searchSynonymsParams == null ? void 0 : searchSynonymsParams.page) || 0,
|
|
331
331
|
hitsPerPage: 1e3
|
|
332
332
|
};
|
|
333
333
|
return (0, import_client_common.createIterablePromise)({
|
|
@@ -886,7 +886,7 @@ function createSearchClient({
|
|
|
886
886
|
/**
|
|
887
887
|
* This method lets you send requests to the Algolia REST API.
|
|
888
888
|
* @param customDelete - The customDelete object.
|
|
889
|
-
* @param customDelete.path - Path of the endpoint,
|
|
889
|
+
* @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
|
|
890
890
|
* @param customDelete.parameters - Query parameters to apply to the current query.
|
|
891
891
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
892
892
|
*/
|
|
@@ -908,7 +908,7 @@ function createSearchClient({
|
|
|
908
908
|
/**
|
|
909
909
|
* This method lets you send requests to the Algolia REST API.
|
|
910
910
|
* @param customGet - The customGet object.
|
|
911
|
-
* @param customGet.path - Path of the endpoint,
|
|
911
|
+
* @param customGet.path - Path of the endpoint, for example `1/newFeature`.
|
|
912
912
|
* @param customGet.parameters - Query parameters to apply to the current query.
|
|
913
913
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
914
914
|
*/
|
|
@@ -930,7 +930,7 @@ function createSearchClient({
|
|
|
930
930
|
/**
|
|
931
931
|
* This method lets you send requests to the Algolia REST API.
|
|
932
932
|
* @param customPost - The customPost object.
|
|
933
|
-
* @param customPost.path - Path of the endpoint,
|
|
933
|
+
* @param customPost.path - Path of the endpoint, for example `1/newFeature`.
|
|
934
934
|
* @param customPost.parameters - Query parameters to apply to the current query.
|
|
935
935
|
* @param customPost.body - Parameters to send with the custom request.
|
|
936
936
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -954,7 +954,7 @@ function createSearchClient({
|
|
|
954
954
|
/**
|
|
955
955
|
* This method lets you send requests to the Algolia REST API.
|
|
956
956
|
* @param customPut - The customPut object.
|
|
957
|
-
* @param customPut.path - Path of the endpoint,
|
|
957
|
+
* @param customPut.path - Path of the endpoint, for example `1/newFeature`.
|
|
958
958
|
* @param customPut.parameters - Query parameters to apply to the current query.
|
|
959
959
|
* @param customPut.body - Parameters to send with the custom request.
|
|
960
960
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|