@algolia/ingestion 1.15.0 → 1.16.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 +21 -9
- 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 +6 -6
- package/dist/builds/fetch.js +21 -13
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +20 -5
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +21 -13
- package/dist/builds/node.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 +17 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +17 -2
- package/dist/src/ingestionClient.js.map +1 -1
- package/package.json +10 -9
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.16.0";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -1144,13 +1144,25 @@ function createIngestionClient({
|
|
|
1144
1144
|
* @param listTasks.action - Actions for filtering the list of tasks.
|
|
1145
1145
|
* @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
|
|
1146
1146
|
* @param listTasks.sourceID - Source IDs for filtering the list of tasks.
|
|
1147
|
+
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1147
1148
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1148
1149
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1149
1150
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1150
1151
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1151
1152
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
1152
1153
|
*/
|
|
1153
|
-
listTasks({
|
|
1154
|
+
listTasks({
|
|
1155
|
+
itemsPerPage,
|
|
1156
|
+
page,
|
|
1157
|
+
action,
|
|
1158
|
+
enabled,
|
|
1159
|
+
sourceID,
|
|
1160
|
+
sourceType,
|
|
1161
|
+
destinationID,
|
|
1162
|
+
triggerType,
|
|
1163
|
+
sort,
|
|
1164
|
+
order
|
|
1165
|
+
} = {}, requestOptions = void 0) {
|
|
1154
1166
|
const requestPath = "/2/tasks";
|
|
1155
1167
|
const headers = {};
|
|
1156
1168
|
const queryParameters = {};
|
|
@@ -1169,6 +1181,9 @@ function createIngestionClient({
|
|
|
1169
1181
|
if (sourceID !== void 0) {
|
|
1170
1182
|
queryParameters["sourceID"] = sourceID.toString();
|
|
1171
1183
|
}
|
|
1184
|
+
if (sourceType !== void 0) {
|
|
1185
|
+
queryParameters["sourceType"] = sourceType.toString();
|
|
1186
|
+
}
|
|
1172
1187
|
if (destinationID !== void 0) {
|
|
1173
1188
|
queryParameters["destinationID"] = destinationID.toString();
|
|
1174
1189
|
}
|
|
@@ -1940,9 +1955,9 @@ function ingestionClient(appId, apiKey, region, options) {
|
|
|
1940
1955
|
apiKey,
|
|
1941
1956
|
region,
|
|
1942
1957
|
timeouts: {
|
|
1943
|
-
connect:
|
|
1944
|
-
read:
|
|
1945
|
-
write:
|
|
1958
|
+
connect: 25e3,
|
|
1959
|
+
read: 25e3,
|
|
1960
|
+
write: 25e3
|
|
1946
1961
|
},
|
|
1947
1962
|
logger: (0, import_client_common2.createNullLogger)(),
|
|
1948
1963
|
requester: (0, import_requester_node_http.createHttpRequester)(),
|