@algolia/ingestion 1.17.1 → 1.19.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 +47 -6
- package/dist/builds/browser.js +43 -2
- 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 +44 -3
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +43 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +43 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +1996 -0
- package/dist/builds/worker.js.map +1 -0
- package/dist/fetch.d.ts +47 -6
- package/dist/node.d.cts +47 -6
- package/dist/node.d.ts +47 -6
- package/dist/src/ingestionClient.cjs +43 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +43 -2
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +3056 -0
- package/package.json +10 -10
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.19.0";
|
|
36
36
|
var REGIONS = ["eu", "us"];
|
|
37
37
|
function getDefaultHosts(region) {
|
|
38
38
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -80,6 +80,10 @@ function createIngestionClient({
|
|
|
80
80
|
* The `appId` currently in use.
|
|
81
81
|
*/
|
|
82
82
|
appId: appIdOption,
|
|
83
|
+
/**
|
|
84
|
+
* The `apiKey` currently in use.
|
|
85
|
+
*/
|
|
86
|
+
apiKey: apiKeyOption,
|
|
83
87
|
/**
|
|
84
88
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
85
89
|
*/
|
|
@@ -1147,6 +1151,7 @@ function createIngestionClient({
|
|
|
1147
1151
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1148
1152
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1149
1153
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1154
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
1150
1155
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1151
1156
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1152
1157
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1160,6 +1165,7 @@ function createIngestionClient({
|
|
|
1160
1165
|
sourceType,
|
|
1161
1166
|
destinationID,
|
|
1162
1167
|
triggerType,
|
|
1168
|
+
withEmailNotifications,
|
|
1163
1169
|
sort,
|
|
1164
1170
|
order
|
|
1165
1171
|
} = {}, requestOptions = void 0) {
|
|
@@ -1190,6 +1196,9 @@ function createIngestionClient({
|
|
|
1190
1196
|
if (triggerType !== void 0) {
|
|
1191
1197
|
queryParameters["triggerType"] = triggerType.toString();
|
|
1192
1198
|
}
|
|
1199
|
+
if (withEmailNotifications !== void 0) {
|
|
1200
|
+
queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
|
|
1201
|
+
}
|
|
1193
1202
|
if (sort !== void 0) {
|
|
1194
1203
|
queryParameters["sort"] = sort.toString();
|
|
1195
1204
|
}
|
|
@@ -1339,6 +1348,14 @@ function createIngestionClient({
|
|
|
1339
1348
|
headers,
|
|
1340
1349
|
data: pushTaskPayload
|
|
1341
1350
|
};
|
|
1351
|
+
requestOptions = {
|
|
1352
|
+
timeouts: {
|
|
1353
|
+
connect: 18e4,
|
|
1354
|
+
read: 18e4,
|
|
1355
|
+
write: 18e4,
|
|
1356
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1357
|
+
}
|
|
1358
|
+
};
|
|
1342
1359
|
return transporter.request(request, requestOptions);
|
|
1343
1360
|
},
|
|
1344
1361
|
/**
|
|
@@ -1600,7 +1617,7 @@ function createIngestionClient({
|
|
|
1600
1617
|
return transporter.request(request, requestOptions);
|
|
1601
1618
|
},
|
|
1602
1619
|
/**
|
|
1603
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
1620
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
1604
1621
|
*
|
|
1605
1622
|
* Required API Key ACLs:
|
|
1606
1623
|
* - addObject
|
|
@@ -1623,6 +1640,14 @@ function createIngestionClient({
|
|
|
1623
1640
|
queryParameters,
|
|
1624
1641
|
headers
|
|
1625
1642
|
};
|
|
1643
|
+
requestOptions = {
|
|
1644
|
+
timeouts: {
|
|
1645
|
+
connect: 18e4,
|
|
1646
|
+
read: 18e4,
|
|
1647
|
+
write: 18e4,
|
|
1648
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1649
|
+
}
|
|
1650
|
+
};
|
|
1626
1651
|
return transporter.request(request, requestOptions);
|
|
1627
1652
|
},
|
|
1628
1653
|
/**
|
|
@@ -1906,6 +1931,14 @@ function createIngestionClient({
|
|
|
1906
1931
|
headers,
|
|
1907
1932
|
data: sourceCreate ? sourceCreate : {}
|
|
1908
1933
|
};
|
|
1934
|
+
requestOptions = {
|
|
1935
|
+
timeouts: {
|
|
1936
|
+
connect: 18e4,
|
|
1937
|
+
read: 18e4,
|
|
1938
|
+
write: 18e4,
|
|
1939
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1940
|
+
}
|
|
1941
|
+
};
|
|
1909
1942
|
return transporter.request(request, requestOptions);
|
|
1910
1943
|
},
|
|
1911
1944
|
/**
|
|
@@ -1937,6 +1970,14 @@ function createIngestionClient({
|
|
|
1937
1970
|
headers,
|
|
1938
1971
|
data: sourceUpdate
|
|
1939
1972
|
};
|
|
1973
|
+
requestOptions = {
|
|
1974
|
+
timeouts: {
|
|
1975
|
+
connect: 18e4,
|
|
1976
|
+
read: 18e4,
|
|
1977
|
+
write: 18e4,
|
|
1978
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1979
|
+
}
|
|
1980
|
+
};
|
|
1940
1981
|
return transporter.request(request, requestOptions);
|
|
1941
1982
|
}
|
|
1942
1983
|
};
|