@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
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.20.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
|
}
|
|
@@ -1580,7 +1589,7 @@ function createIngestionClient({
|
|
|
1580
1589
|
return transporter.request(request, requestOptions);
|
|
1581
1590
|
},
|
|
1582
1591
|
/**
|
|
1583
|
-
* 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`.
|
|
1584
1593
|
*
|
|
1585
1594
|
* Required API Key ACLs:
|
|
1586
1595
|
* - addObject
|