@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.js
CHANGED
|
@@ -4,7 +4,7 @@ import { createMemoryCache, createNullCache, createNullLogger } from "@algolia/c
|
|
|
4
4
|
|
|
5
5
|
// src/ingestionClient.ts
|
|
6
6
|
import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
|
|
7
|
-
var apiClientVersion = "1.
|
|
7
|
+
var apiClientVersion = "1.19.0";
|
|
8
8
|
var REGIONS = ["eu", "us"];
|
|
9
9
|
function getDefaultHosts(region) {
|
|
10
10
|
const url = "data.{region}.algolia.com".replace("{region}", region);
|
|
@@ -52,6 +52,10 @@ function createIngestionClient({
|
|
|
52
52
|
* The `appId` currently in use.
|
|
53
53
|
*/
|
|
54
54
|
appId: appIdOption,
|
|
55
|
+
/**
|
|
56
|
+
* The `apiKey` currently in use.
|
|
57
|
+
*/
|
|
58
|
+
apiKey: apiKeyOption,
|
|
55
59
|
/**
|
|
56
60
|
* Clears the cache of the transporter for the `requestsCache` and `responsesCache` properties.
|
|
57
61
|
*/
|
|
@@ -1119,6 +1123,7 @@ function createIngestionClient({
|
|
|
1119
1123
|
* @param listTasks.sourceType - Filters the tasks with the specified source type.
|
|
1120
1124
|
* @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
|
|
1121
1125
|
* @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
|
|
1126
|
+
* @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
|
|
1122
1127
|
* @param listTasks.sort - Property by which to sort the list of tasks.
|
|
1123
1128
|
* @param listTasks.order - Sort order of the response, ascending or descending.
|
|
1124
1129
|
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
|
|
@@ -1132,6 +1137,7 @@ function createIngestionClient({
|
|
|
1132
1137
|
sourceType,
|
|
1133
1138
|
destinationID,
|
|
1134
1139
|
triggerType,
|
|
1140
|
+
withEmailNotifications,
|
|
1135
1141
|
sort,
|
|
1136
1142
|
order
|
|
1137
1143
|
} = {}, requestOptions = void 0) {
|
|
@@ -1162,6 +1168,9 @@ function createIngestionClient({
|
|
|
1162
1168
|
if (triggerType !== void 0) {
|
|
1163
1169
|
queryParameters["triggerType"] = triggerType.toString();
|
|
1164
1170
|
}
|
|
1171
|
+
if (withEmailNotifications !== void 0) {
|
|
1172
|
+
queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
|
|
1173
|
+
}
|
|
1165
1174
|
if (sort !== void 0) {
|
|
1166
1175
|
queryParameters["sort"] = sort.toString();
|
|
1167
1176
|
}
|
|
@@ -1311,6 +1320,14 @@ function createIngestionClient({
|
|
|
1311
1320
|
headers,
|
|
1312
1321
|
data: pushTaskPayload
|
|
1313
1322
|
};
|
|
1323
|
+
requestOptions = {
|
|
1324
|
+
timeouts: {
|
|
1325
|
+
connect: 18e4,
|
|
1326
|
+
read: 18e4,
|
|
1327
|
+
write: 18e4,
|
|
1328
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1329
|
+
}
|
|
1330
|
+
};
|
|
1314
1331
|
return transporter.request(request, requestOptions);
|
|
1315
1332
|
},
|
|
1316
1333
|
/**
|
|
@@ -1572,7 +1589,7 @@ function createIngestionClient({
|
|
|
1572
1589
|
return transporter.request(request, requestOptions);
|
|
1573
1590
|
},
|
|
1574
1591
|
/**
|
|
1575
|
-
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType:
|
|
1592
|
+
* Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
|
|
1576
1593
|
*
|
|
1577
1594
|
* Required API Key ACLs:
|
|
1578
1595
|
* - addObject
|
|
@@ -1595,6 +1612,14 @@ function createIngestionClient({
|
|
|
1595
1612
|
queryParameters,
|
|
1596
1613
|
headers
|
|
1597
1614
|
};
|
|
1615
|
+
requestOptions = {
|
|
1616
|
+
timeouts: {
|
|
1617
|
+
connect: 18e4,
|
|
1618
|
+
read: 18e4,
|
|
1619
|
+
write: 18e4,
|
|
1620
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1621
|
+
}
|
|
1622
|
+
};
|
|
1598
1623
|
return transporter.request(request, requestOptions);
|
|
1599
1624
|
},
|
|
1600
1625
|
/**
|
|
@@ -1878,6 +1903,14 @@ function createIngestionClient({
|
|
|
1878
1903
|
headers,
|
|
1879
1904
|
data: sourceCreate ? sourceCreate : {}
|
|
1880
1905
|
};
|
|
1906
|
+
requestOptions = {
|
|
1907
|
+
timeouts: {
|
|
1908
|
+
connect: 18e4,
|
|
1909
|
+
read: 18e4,
|
|
1910
|
+
write: 18e4,
|
|
1911
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1912
|
+
}
|
|
1913
|
+
};
|
|
1881
1914
|
return transporter.request(request, requestOptions);
|
|
1882
1915
|
},
|
|
1883
1916
|
/**
|
|
@@ -1909,6 +1942,14 @@ function createIngestionClient({
|
|
|
1909
1942
|
headers,
|
|
1910
1943
|
data: sourceUpdate
|
|
1911
1944
|
};
|
|
1945
|
+
requestOptions = {
|
|
1946
|
+
timeouts: {
|
|
1947
|
+
connect: 18e4,
|
|
1948
|
+
read: 18e4,
|
|
1949
|
+
write: 18e4,
|
|
1950
|
+
...requestOptions == null ? void 0 : requestOptions.timeouts
|
|
1951
|
+
}
|
|
1952
|
+
};
|
|
1912
1953
|
return transporter.request(request, requestOptions);
|
|
1913
1954
|
}
|
|
1914
1955
|
};
|