@algolia/ingestion 1.20.3 → 1.21.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/dist/fetch.d.ts CHANGED
@@ -865,6 +865,7 @@ type Task = {
865
865
  */
866
866
  failureThreshold?: number;
867
867
  action?: ActionType;
868
+ subscriptionAction?: ActionType;
868
869
  /**
869
870
  * Date of the last cursor in RFC 3339 format.
870
871
  */
@@ -1203,6 +1204,7 @@ type TaskCreate = {
1203
1204
  */
1204
1205
  destinationID: string;
1205
1206
  action: ActionType;
1207
+ subscriptionAction?: ActionType;
1206
1208
  /**
1207
1209
  * Cron expression for the task\'s schedule.
1208
1210
  */
@@ -1574,6 +1576,7 @@ type TaskUpdate = {
1574
1576
  * Whether the task is enabled.
1575
1577
  */
1576
1578
  enabled?: boolean;
1579
+ subscriptionAction?: ActionType;
1577
1580
  /**
1578
1581
  * Maximum accepted percentage of failures for a task run to finish successfully.
1579
1582
  */
@@ -2278,7 +2281,7 @@ type ValidateSourceBeforeUpdateProps = {
2278
2281
  sourceUpdate: SourceUpdate;
2279
2282
  };
2280
2283
 
2281
- declare const apiClientVersion = "1.20.3";
2284
+ declare const apiClientVersion = "1.21.0";
2282
2285
  declare const REGIONS: readonly ["eu", "us"];
2283
2286
  type Region = (typeof REGIONS)[number];
2284
2287
  type RegionOptions = {
@@ -2391,7 +2394,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2391
2394
  */
2392
2395
  createTransformation(transformationCreate: TransformationCreate, requestOptions?: RequestOptions): Promise<TransformationCreateResponse>;
2393
2396
  /**
2394
- * This method allow you to send requests to the Algolia REST API.
2397
+ * This method lets you send requests to the Algolia REST API.
2395
2398
  * @param customDelete - The customDelete object.
2396
2399
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
2397
2400
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -2399,7 +2402,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2399
2402
  */
2400
2403
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2401
2404
  /**
2402
- * This method allow you to send requests to the Algolia REST API.
2405
+ * This method lets you send requests to the Algolia REST API.
2403
2406
  * @param customGet - The customGet object.
2404
2407
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
2405
2408
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -2407,7 +2410,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2407
2410
  */
2408
2411
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2409
2412
  /**
2410
- * This method allow you to send requests to the Algolia REST API.
2413
+ * This method lets you send requests to the Algolia REST API.
2411
2414
  * @param customPost - The customPost object.
2412
2415
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
2413
2416
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -2416,7 +2419,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2416
2419
  */
2417
2420
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2418
2421
  /**
2419
- * This method allow you to send requests to the Algolia REST API.
2422
+ * This method lets you send requests to the Algolia REST API.
2420
2423
  * @param customPut - The customPut object.
2421
2424
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
2422
2425
  * @param customPut.parameters - Query parameters to apply to the current query.
package/dist/node.d.cts CHANGED
@@ -865,6 +865,7 @@ type Task = {
865
865
  */
866
866
  failureThreshold?: number;
867
867
  action?: ActionType;
868
+ subscriptionAction?: ActionType;
868
869
  /**
869
870
  * Date of the last cursor in RFC 3339 format.
870
871
  */
@@ -1203,6 +1204,7 @@ type TaskCreate = {
1203
1204
  */
1204
1205
  destinationID: string;
1205
1206
  action: ActionType;
1207
+ subscriptionAction?: ActionType;
1206
1208
  /**
1207
1209
  * Cron expression for the task\'s schedule.
1208
1210
  */
@@ -1574,6 +1576,7 @@ type TaskUpdate = {
1574
1576
  * Whether the task is enabled.
1575
1577
  */
1576
1578
  enabled?: boolean;
1579
+ subscriptionAction?: ActionType;
1577
1580
  /**
1578
1581
  * Maximum accepted percentage of failures for a task run to finish successfully.
1579
1582
  */
@@ -2278,7 +2281,7 @@ type ValidateSourceBeforeUpdateProps = {
2278
2281
  sourceUpdate: SourceUpdate;
2279
2282
  };
2280
2283
 
2281
- declare const apiClientVersion = "1.20.3";
2284
+ declare const apiClientVersion = "1.21.0";
2282
2285
  declare const REGIONS: readonly ["eu", "us"];
2283
2286
  type Region = (typeof REGIONS)[number];
2284
2287
  type RegionOptions = {
@@ -2391,7 +2394,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2391
2394
  */
2392
2395
  createTransformation(transformationCreate: TransformationCreate, requestOptions?: RequestOptions): Promise<TransformationCreateResponse>;
2393
2396
  /**
2394
- * This method allow you to send requests to the Algolia REST API.
2397
+ * This method lets you send requests to the Algolia REST API.
2395
2398
  * @param customDelete - The customDelete object.
2396
2399
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
2397
2400
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -2399,7 +2402,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2399
2402
  */
2400
2403
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2401
2404
  /**
2402
- * This method allow you to send requests to the Algolia REST API.
2405
+ * This method lets you send requests to the Algolia REST API.
2403
2406
  * @param customGet - The customGet object.
2404
2407
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
2405
2408
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -2407,7 +2410,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2407
2410
  */
2408
2411
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2409
2412
  /**
2410
- * This method allow you to send requests to the Algolia REST API.
2413
+ * This method lets you send requests to the Algolia REST API.
2411
2414
  * @param customPost - The customPost object.
2412
2415
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
2413
2416
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -2416,7 +2419,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2416
2419
  */
2417
2420
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2418
2421
  /**
2419
- * This method allow you to send requests to the Algolia REST API.
2422
+ * This method lets you send requests to the Algolia REST API.
2420
2423
  * @param customPut - The customPut object.
2421
2424
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
2422
2425
  * @param customPut.parameters - Query parameters to apply to the current query.
package/dist/node.d.ts CHANGED
@@ -865,6 +865,7 @@ type Task = {
865
865
  */
866
866
  failureThreshold?: number;
867
867
  action?: ActionType;
868
+ subscriptionAction?: ActionType;
868
869
  /**
869
870
  * Date of the last cursor in RFC 3339 format.
870
871
  */
@@ -1203,6 +1204,7 @@ type TaskCreate = {
1203
1204
  */
1204
1205
  destinationID: string;
1205
1206
  action: ActionType;
1207
+ subscriptionAction?: ActionType;
1206
1208
  /**
1207
1209
  * Cron expression for the task\'s schedule.
1208
1210
  */
@@ -1574,6 +1576,7 @@ type TaskUpdate = {
1574
1576
  * Whether the task is enabled.
1575
1577
  */
1576
1578
  enabled?: boolean;
1579
+ subscriptionAction?: ActionType;
1577
1580
  /**
1578
1581
  * Maximum accepted percentage of failures for a task run to finish successfully.
1579
1582
  */
@@ -2278,7 +2281,7 @@ type ValidateSourceBeforeUpdateProps = {
2278
2281
  sourceUpdate: SourceUpdate;
2279
2282
  };
2280
2283
 
2281
- declare const apiClientVersion = "1.20.3";
2284
+ declare const apiClientVersion = "1.21.0";
2282
2285
  declare const REGIONS: readonly ["eu", "us"];
2283
2286
  type Region = (typeof REGIONS)[number];
2284
2287
  type RegionOptions = {
@@ -2391,7 +2394,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2391
2394
  */
2392
2395
  createTransformation(transformationCreate: TransformationCreate, requestOptions?: RequestOptions): Promise<TransformationCreateResponse>;
2393
2396
  /**
2394
- * This method allow you to send requests to the Algolia REST API.
2397
+ * This method lets you send requests to the Algolia REST API.
2395
2398
  * @param customDelete - The customDelete object.
2396
2399
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
2397
2400
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -2399,7 +2402,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2399
2402
  */
2400
2403
  customDelete({ path, parameters }: CustomDeleteProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2401
2404
  /**
2402
- * This method allow you to send requests to the Algolia REST API.
2405
+ * This method lets you send requests to the Algolia REST API.
2403
2406
  * @param customGet - The customGet object.
2404
2407
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
2405
2408
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -2407,7 +2410,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2407
2410
  */
2408
2411
  customGet({ path, parameters }: CustomGetProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2409
2412
  /**
2410
- * This method allow you to send requests to the Algolia REST API.
2413
+ * This method lets you send requests to the Algolia REST API.
2411
2414
  * @param customPost - The customPost object.
2412
2415
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
2413
2416
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -2416,7 +2419,7 @@ declare function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOptio
2416
2419
  */
2417
2420
  customPost({ path, parameters, body }: CustomPostProps, requestOptions?: RequestOptions): Promise<Record<string, unknown>>;
2418
2421
  /**
2419
- * This method allow you to send requests to the Algolia REST API.
2422
+ * This method lets you send requests to the Algolia REST API.
2420
2423
  * @param customPut - The customPut object.
2421
2424
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
2422
2425
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -29,7 +29,7 @@ __export(ingestionClient_exports, {
29
29
  });
30
30
  module.exports = __toCommonJS(ingestionClient_exports);
31
31
  var import_client_common = require("@algolia/client-common");
32
- var apiClientVersion = "1.20.3";
32
+ var apiClientVersion = "1.21.0";
33
33
  var REGIONS = ["eu", "us"];
34
34
  function getDefaultHosts(region) {
35
35
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -308,7 +308,7 @@ function createIngestionClient({
308
308
  return transporter.request(request, requestOptions);
309
309
  },
310
310
  /**
311
- * This method allow you to send requests to the Algolia REST API.
311
+ * This method lets you send requests to the Algolia REST API.
312
312
  * @param customDelete - The customDelete object.
313
313
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
314
314
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -330,7 +330,7 @@ function createIngestionClient({
330
330
  return transporter.request(request, requestOptions);
331
331
  },
332
332
  /**
333
- * This method allow you to send requests to the Algolia REST API.
333
+ * This method lets you send requests to the Algolia REST API.
334
334
  * @param customGet - The customGet object.
335
335
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
336
336
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -352,7 +352,7 @@ function createIngestionClient({
352
352
  return transporter.request(request, requestOptions);
353
353
  },
354
354
  /**
355
- * This method allow you to send requests to the Algolia REST API.
355
+ * This method lets you send requests to the Algolia REST API.
356
356
  * @param customPost - The customPost object.
357
357
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
358
358
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -376,7 +376,7 @@ function createIngestionClient({
376
376
  return transporter.request(request, requestOptions);
377
377
  },
378
378
  /**
379
- * This method allow you to send requests to the Algolia REST API.
379
+ * This method lets you send requests to the Algolia REST API.
380
380
  * @param customPut - The customPut object.
381
381
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
382
382
  * @param customPut.parameters - Query parameters to apply to the current query.