@algolia/ingestion 1.18.0 → 1.20.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 +50 -34
- package/dist/builds/browser.js +11 -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 +11 -2
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +11 -2
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +11 -2
- package/dist/builds/node.js.map +1 -1
- package/dist/builds/worker.js +11 -2
- package/dist/builds/worker.js.map +1 -1
- package/dist/fetch.d.ts +50 -34
- package/dist/node.d.cts +50 -34
- package/dist/node.d.ts +50 -34
- package/dist/src/ingestionClient.cjs +11 -2
- package/dist/src/ingestionClient.cjs.map +1 -1
- package/dist/src/ingestionClient.js +15 -6
- package/dist/src/ingestionClient.js.map +1 -1
- package/dist/worker.d.ts +50 -34
- 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.20.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
|
}
|
|
@@ -1312,7 +1321,7 @@ function createIngestionClient({
|
|
|
1312
1321
|
connect: 18e4,
|
|
1313
1322
|
read: 18e4,
|
|
1314
1323
|
write: 18e4,
|
|
1315
|
-
...requestOptions
|
|
1324
|
+
...requestOptions?.timeouts
|
|
1316
1325
|
}
|
|
1317
1326
|
};
|
|
1318
1327
|
return transporter.request(request, requestOptions);
|
|
@@ -1576,7 +1585,7 @@ function createIngestionClient({
|
|
|
1576
1585
|
return transporter.request(request, requestOptions);
|
|
1577
1586
|
},
|
|
1578
1587
|
/**
|
|
1579
|
-
* 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`.
|
|
1580
1589
|
*
|
|
1581
1590
|
* Required API Key ACLs:
|
|
1582
1591
|
* - addObject
|
|
@@ -1604,7 +1613,7 @@ function createIngestionClient({
|
|
|
1604
1613
|
connect: 18e4,
|
|
1605
1614
|
read: 18e4,
|
|
1606
1615
|
write: 18e4,
|
|
1607
|
-
...requestOptions
|
|
1616
|
+
...requestOptions?.timeouts
|
|
1608
1617
|
}
|
|
1609
1618
|
};
|
|
1610
1619
|
return transporter.request(request, requestOptions);
|
|
@@ -1895,7 +1904,7 @@ function createIngestionClient({
|
|
|
1895
1904
|
connect: 18e4,
|
|
1896
1905
|
read: 18e4,
|
|
1897
1906
|
write: 18e4,
|
|
1898
|
-
...requestOptions
|
|
1907
|
+
...requestOptions?.timeouts
|
|
1899
1908
|
}
|
|
1900
1909
|
};
|
|
1901
1910
|
return transporter.request(request, requestOptions);
|
|
@@ -1934,7 +1943,7 @@ function createIngestionClient({
|
|
|
1934
1943
|
connect: 18e4,
|
|
1935
1944
|
read: 18e4,
|
|
1936
1945
|
write: 18e4,
|
|
1937
|
-
...requestOptions
|
|
1946
|
+
...requestOptions?.timeouts
|
|
1938
1947
|
}
|
|
1939
1948
|
};
|
|
1940
1949
|
return transporter.request(request, requestOptions);
|