@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// src/ingestionClient.ts
|
|
2
2
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
3
|
-
var apiClientVersion = "1.
|
|
3
|
+
var apiClientVersion = "1.19.0";
|
|
4
4
|
var REGIONS = ["eu", "us"];
|
|
5
5
|
function getDefaultHosts(region) {
|
|
6
6
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -48,6 +48,10 @@ function createIngestionClient({
|
|
|
48
48
|
* The `appId` currently in use.
|
|
49
49
|
*/
|
|
50
50
|
appId: appIdOption,
|
|
51
|
+
/**
|
|
52
|
+
* The `apiKey` currently in use.
|
|
53
|
+
*/
|
|
54
|
+
apiKey: apiKeyOption,
|
|
51
55
|
/**
|
|
52
56
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
53
57
|
*/
|
|
@@ -1115,6 +1119,7 @@ function createIngestionClient({
|
|
|
1115
1119
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1116
1120
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1117
1121
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1122
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
1118
1123
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1119
1124
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1120
1125
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1128,6 +1133,7 @@ function createIngestionClient({
|
|
|
1128
1133
|
sourceType,
|
|
1129
1134
|
destinationID,
|
|
1130
1135
|
triggerType,
|
|
1136
|
+
withEmailNotifications,
|
|
1131
1137
|
sort,
|
|
1132
1138
|
order
|
|
1133
1139
|
} = {}, requestOptions = void 0) {
|
|
@@ -1158,6 +1164,9 @@ function createIngestionClient({
|
|
|
1158
1164
|
if (triggerType !== void 0) {
|
|
1159
1165
|
queryParameters["triggerType"] = triggerType.toString();
|
|
1160
1166
|
}
|
|
1167
|
+
if (withEmailNotifications !== void 0) {
|
|
1168
|
+
queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
|
|
1169
|
+
}
|
|
1161
1170
|
if (sort !== void 0) {
|
|
1162
1171
|
queryParameters["sort"] = sort.toString();
|
|
1163
1172
|
}
|
|
@@ -1307,6 +1316,14 @@ function createIngestionClient({
|
|
|
1307
1316
|
headers,
|
|
1308
1317
|
data: pushTaskPayload
|
|
1309
1318
|
};
|
|
1319
|
+
requestOptions = {
|
|
1320
|
+
timeouts: {
|
|
1321
|
+
connect: 18e4,
|
|
1322
|
+
read: 18e4,
|
|
1323
|
+
write: 18e4,
|
|
1324
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1325
|
+
}
|
|
1326
|
+
};
|
|
1310
1327
|
return transporter.request(request, requestOptions);
|
|
1311
1328
|
},
|
|
1312
1329
|
/**
|
|
@@ -1568,7 +1585,7 @@ function createIngestionClient({
|
|
|
1568
1585
|
return transporter.request(request, requestOptions);
|
|
1569
1586
|
},
|
|
1570
1587
|
/**
|
|
1571
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
1588
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
1572
1589
|
*
|
|
1573
1590
|
* Required API Key ACLs:
|
|
1574
1591
|
* - addObject
|
|
@@ -1591,6 +1608,14 @@ function createIngestionClient({
|
|
|
1591
1608
|
queryParameters,
|
|
1592
1609
|
headers
|
|
1593
1610
|
};
|
|
1611
|
+
requestOptions = {
|
|
1612
|
+
timeouts: {
|
|
1613
|
+
connect: 18e4,
|
|
1614
|
+
read: 18e4,
|
|
1615
|
+
write: 18e4,
|
|
1616
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1617
|
+
}
|
|
1618
|
+
};
|
|
1594
1619
|
return transporter.request(request, requestOptions);
|
|
1595
1620
|
},
|
|
1596
1621
|
/**
|
|
@@ -1874,6 +1899,14 @@ function createIngestionClient({
|
|
|
1874
1899
|
headers,
|
|
1875
1900
|
data: sourceCreate ? sourceCreate : {}
|
|
1876
1901
|
};
|
|
1902
|
+
requestOptions = {
|
|
1903
|
+
timeouts: {
|
|
1904
|
+
connect: 18e4,
|
|
1905
|
+
read: 18e4,
|
|
1906
|
+
write: 18e4,
|
|
1907
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1908
|
+
}
|
|
1909
|
+
};
|
|
1877
1910
|
return transporter.request(request, requestOptions);
|
|
1878
1911
|
},
|
|
1879
1912
|
/**
|
|
@@ -1905,6 +1938,14 @@ function createIngestionClient({
|
|
|
1905
1938
|
headers,
|
|
1906
1939
|
data: sourceUpdate
|
|
1907
1940
|
};
|
|
1941
|
+
requestOptions = {
|
|
1942
|
+
timeouts: {
|
|
1943
|
+
connect: 18e4,
|
|
1944
|
+
read: 18e4,
|
|
1945
|
+
write: 18e4,
|
|
1946
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1947
|
+
}
|
|
1948
|
+
};
|
|
1908
1949
|
return transporter.request(request, requestOptions);
|
|
1909
1950
|
}
|
|
1910
1951
|
};
|