@algolia/client-search 5.35.0 → 5.37.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 +36 -31
- package/dist/builds/browser.js +7 -3
- 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 +1 -1
- package/dist/builds/fetch.js +8 -4
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +8 -4
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +8 -4
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +7 -3
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +36 -31
- package/dist/node.d.cts +36 -31
- package/dist/node.d.ts +36 -31
- package/dist/src/searchClient.cjs +7 -3
- package/dist/src/searchClient.cjs.map +1 -1
- package/dist/src/searchClient.js +7 -3
- package/dist/src/searchClient.js.map +1 -1
- package/dist/worker.d.ts +36 -31
- package/package.json +7 -7
package/dist/builds/worker.js
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
getAlgoliaAgent,
|
|
12
12
|
shuffle
|
|
13
13
|
} from "@algolia/client-common";
|
|
14
|
-
var apiClientVersion = "5.
|
|
14
|
+
var apiClientVersion = "5.37.0";
|
|
15
15
|
function getDefaultHosts(appId) {
|
|
16
16
|
return [
|
|
17
17
|
{
|
|
@@ -431,7 +431,7 @@ function createSearchClient({
|
|
|
431
431
|
},
|
|
432
432
|
/**
|
|
433
433
|
* Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
|
|
434
|
-
* See https://api-clients-automation.netlify.app/docs/
|
|
434
|
+
* See https://api-clients-automation.netlify.app/docs/custom-helpers/#replaceallobjects for implementation details.
|
|
435
435
|
*
|
|
436
436
|
* @summary Helper: Replaces all objects (records) in the given `index_name` with the given `objects`. A temporary index is created during this process in order to backup your data.
|
|
437
437
|
* @param replaceAllObjects - The `replaceAllObjects` object.
|
|
@@ -1369,15 +1369,19 @@ function createSearchClient({
|
|
|
1369
1369
|
* - settings
|
|
1370
1370
|
* @param getSettings - The getSettings object.
|
|
1371
1371
|
* @param getSettings.indexName - Name of the index on which to perform the operation.
|
|
1372
|
+
* @param getSettings.getVersion - When set to 2, the endpoint will not include `synonyms` in the response. This parameter is here for backward compatibility.
|
|
1372
1373
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1373
1374
|
*/
|
|
1374
|
-
getSettings({ indexName }, requestOptions) {
|
|
1375
|
+
getSettings({ indexName, getVersion }, requestOptions) {
|
|
1375
1376
|
if (!indexName) {
|
|
1376
1377
|
throw new Error("Parameter `indexName` is required when calling `getSettings`.");
|
|
1377
1378
|
}
|
|
1378
1379
|
const requestPath = "/1/indexes/{indexName}/settings".replace("{indexName}", encodeURIComponent(indexName));
|
|
1379
1380
|
const headers = {};
|
|
1380
1381
|
const queryParameters = {};
|
|
1382
|
+
if (getVersion !== void 0) {
|
|
1383
|
+
queryParameters["getVersion"] = getVersion.toString();
|
|
1384
|
+
}
|
|
1381
1385
|
const request = {
|
|
1382
1386
|
method: "GET",
|
|
1383
1387
|
path: requestPath,
|