@algolia/ingestion 1.37.0 → 1.39.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 +9 -4
- 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 +7 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +7 -3
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +7 -3
- 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 +9 -4
- package/dist/node.d.cts +9 -4
- package/dist/node.d.ts +9 -4
- package/dist/src/ingestionClient.cjs +7 -3
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +7 -3
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +9 -4
- package/package.json +7 -7
package/dist/builds/node.cjs
CHANGED
|
@@ -32,7 +32,7 @@ var import_client_common2 = require("@algolia/client-common");
|
|
|
32
32
|
|
|
33
33
|
// src/ingestionClient.ts
|
|
34
34
|
var import_client_common = require("@algolia/client-common");
|
|
35
|
-
var apiClientVersion = "1.
|
|
35
|
+
var apiClientVersion = "1.39.0";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1358,9 +1358,10 @@ function createIngestionClient({
|
|
|
1358
1358
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1359
1359
|
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1360
1360
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1361
|
+
* @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
|
|
1361
1362
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1362
1363
|
*/
|
|
1363
|
-
listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = void 0) {
|
|
1364
|
+
listTransformations({ itemsPerPage, page, sort, order, type } = {}, requestOptions = void 0) {
|
|
1364
1365
|
const requestPath = "/1/transformations";
|
|
1365
1366
|
const headers = {};
|
|
1366
1367
|
const queryParameters = {};
|
|
@@ -1376,6 +1377,9 @@ function createIngestionClient({
|
|
|
1376
1377
|
if (order !== void 0) {
|
|
1377
1378
|
queryParameters["order"] = order.toString();
|
|
1378
1379
|
}
|
|
1380
|
+
if (type !== void 0) {
|
|
1381
|
+
queryParameters["type"] = type.toString();
|
|
1382
|
+
}
|
|
1379
1383
|
const request = {
|
|
1380
1384
|
method: "GET",
|
|
1381
1385
|
path: requestPath,
|
|
@@ -1438,7 +1442,7 @@ function createIngestionClient({
|
|
|
1438
1442
|
return transporter.request(request, requestOptions);
|
|
1439
1443
|
},
|
|
1440
1444
|
/**
|
|
1441
|
-
* Pushes records through the
|
|
1445
|
+
* Pushes records through the pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints or the debugger dashboard to see the status of your task. If you want to transform your data before indexing, this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
|
|
1442
1446
|
*
|
|
1443
1447
|
* Required API Key ACLs:
|
|
1444
1448
|
* - addObject
|