@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.
@@ -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.18.0";
35
+ var apiClientVersion = "1.20.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
  }
@@ -1608,7 +1617,7 @@ function createIngestionClient({
1608
1617
  return transporter.request(request, requestOptions);
1609
1618
  },
1610
1619
  /**
1611
- * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: singer`.
1620
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
1612
1621
  *
1613
1622
  * Required API Key ACLs:
1614
1623
  * - addObject