@algolia/ingestion 1.32.0 → 1.34.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 +29 -4
- package/dist/builds/browser.js +9 -5
- 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 +9 -5
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +9 -5
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +9 -5
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +9 -5
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +29 -4
- package/dist/node.d.cts +29 -4
- package/dist/node.d.ts +29 -4
- package/dist/src/ingestionClient.cjs +9 -5
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +9 -5
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +29 -4
- package/package.json +6 -6
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.34.0";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1520,9 +1520,10 @@ function createIngestionClient({
|
|
|
1520
1520
|
* - editSettings
|
|
1521
1521
|
* @param runTask - The runTask object.
|
|
1522
1522
|
* @param runTask.taskID - Unique identifier of a task.
|
|
1523
|
+
* @param runTask.runTaskPayload -
|
|
1523
1524
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1524
1525
|
*/
|
|
1525
|
-
runTask({ taskID }, requestOptions) {
|
|
1526
|
+
runTask({ taskID, runTaskPayload }, requestOptions) {
|
|
1526
1527
|
if (!taskID) {
|
|
1527
1528
|
throw new Error("Parameter `taskID` is required when calling `runTask`.");
|
|
1528
1529
|
}
|
|
@@ -1533,7 +1534,8 @@ function createIngestionClient({
|
|
|
1533
1534
|
method: "POST",
|
|
1534
1535
|
path: requestPath,
|
|
1535
1536
|
queryParameters,
|
|
1536
|
-
headers
|
|
1537
|
+
headers,
|
|
1538
|
+
data: runTaskPayload ? runTaskPayload : {}
|
|
1537
1539
|
};
|
|
1538
1540
|
return transporter.request(request, requestOptions);
|
|
1539
1541
|
},
|
|
@@ -1548,9 +1550,10 @@ function createIngestionClient({
|
|
|
1548
1550
|
* @deprecated
|
|
1549
1551
|
* @param runTaskV1 - The runTaskV1 object.
|
|
1550
1552
|
* @param runTaskV1.taskID - Unique identifier of a task.
|
|
1553
|
+
* @param runTaskV1.runTaskPayload -
|
|
1551
1554
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1552
1555
|
*/
|
|
1553
|
-
runTaskV1({ taskID }, requestOptions) {
|
|
1556
|
+
runTaskV1({ taskID, runTaskPayload }, requestOptions) {
|
|
1554
1557
|
if (!taskID) {
|
|
1555
1558
|
throw new Error("Parameter `taskID` is required when calling `runTaskV1`.");
|
|
1556
1559
|
}
|
|
@@ -1561,7 +1564,8 @@ function createIngestionClient({
|
|
|
1561
1564
|
method: "POST",
|
|
1562
1565
|
path: requestPath,
|
|
1563
1566
|
queryParameters,
|
|
1564
|
-
headers
|
|
1567
|
+
headers,
|
|
1568
|
+
data: runTaskPayload ? runTaskPayload : {}
|
|
1565
1569
|
};
|
|
1566
1570
|
return transporter.request(request, requestOptions);
|
|
1567
1571
|
},
|