@algolia/ingestion 1.37.0 → 1.38.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 +8 -3
- 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 +8 -3
- package/dist/node.d.cts +8 -3
- package/dist/node.d.ts +8 -3
- 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 +8 -3
- package/package.json +7 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/ingestionClient.ts
|
|
2
2
|
import { createAuth, createIterablePromise, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
3
|
-
var apiClientVersion = "1.
|
|
3
|
+
var apiClientVersion = "1.38.0";
|
|
4
4
|
var REGIONS = ["eu", "us"];
|
|
5
5
|
function getDefaultHosts(region) {
|
|
6
6
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1326,9 +1326,10 @@ function createIngestionClient({
|
|
|
1326
1326
|
* @param listTransformations.page - Page number of the paginated API response.
|
|
1327
1327
|
* @param listTransformations.sort - Property by which to sort the list of transformations.
|
|
1328
1328
|
* @param listTransformations.order - Sort order of the response, ascending or descending.
|
|
1329
|
+
* @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
|
|
1329
1330
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1330
1331
|
*/
|
|
1331
|
-
listTransformations({ itemsPerPage, page, sort, order } = {}, requestOptions = void 0) {
|
|
1332
|
+
listTransformations({ itemsPerPage, page, sort, order, type } = {}, requestOptions = void 0) {
|
|
1332
1333
|
const requestPath = "/1/transformations";
|
|
1333
1334
|
const headers = {};
|
|
1334
1335
|
const queryParameters = {};
|
|
@@ -1344,6 +1345,9 @@ function createIngestionClient({
|
|
|
1344
1345
|
if (order !== void 0) {
|
|
1345
1346
|
queryParameters["order"] = order.toString();
|
|
1346
1347
|
}
|
|
1348
|
+
if (type !== void 0) {
|
|
1349
|
+
queryParameters["type"] = type.toString();
|
|
1350
|
+
}
|
|
1347
1351
|
const request = {
|
|
1348
1352
|
method: "GET",
|
|
1349
1353
|
path: requestPath,
|
|
@@ -1406,7 +1410,7 @@ function createIngestionClient({
|
|
|
1406
1410
|
return transporter.request(request, requestOptions);
|
|
1407
1411
|
},
|
|
1408
1412
|
/**
|
|
1409
|
-
* Pushes records through the
|
|
1413
|
+
* 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`.
|
|
1410
1414
|
*
|
|
1411
1415
|
* Required API Key ACLs:
|
|
1412
1416
|
* - addObject
|