@algolia/ingestion 1.18.0 → 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.
@@ -1,6 +1,6 @@
1
1
  // src/ingestionClient.ts
2
2
  import { createAuth, createTransporter, getAlgoliaAgent } from "@algolia/client-common";
3
- var apiClientVersion = "1.18.0";
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
  }
@@ -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: singer`.
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