@algolia/ingestion 1.55.1 → 1.56.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.
@@ -6,7 +6,7 @@ import {
6
6
  getAlgoliaAgent,
7
7
  validateRequired
8
8
  } from "@algolia/client-common";
9
- var apiClientVersion = "1.55.1";
9
+ var apiClientVersion = "1.56.0";
10
10
  var REGIONS = ["eu", "us"];
11
11
  function getDefaultHosts(region) {
12
12
  const url = "data.{region}.algolia.com".replace("{region}", region);
@@ -115,10 +115,41 @@ function createIngestionClient({
115
115
  referenceIndexName,
116
116
  maxRetries = 100
117
117
  }, requestOptions) {
118
+ if (batchSize < 1) {
119
+ throw new Error("`batchSize` must be at least 1.");
120
+ }
118
121
  let records = [];
119
122
  let offset = 0;
120
123
  const responses = [];
121
124
  const waitBatchSize = Math.floor(batchSize / 10) || batchSize;
125
+ const waitForBatch = async (start, end) => {
126
+ for (const resp of responses.slice(start, end)) {
127
+ if (!resp.eventID) {
128
+ throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");
129
+ }
130
+ let retryCount = 0;
131
+ await createIterablePromise({
132
+ func: async () => {
133
+ if (resp.eventID === void 0 || !resp.eventID) {
134
+ throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");
135
+ }
136
+ return this.getEvent({ runID: resp.runID, eventID: resp.eventID }).catch((error) => {
137
+ if (error.status === 404) {
138
+ return void 0;
139
+ }
140
+ throw error;
141
+ });
142
+ },
143
+ validate: (response) => response !== void 0,
144
+ aggregator: () => retryCount += 1,
145
+ error: {
146
+ validate: () => retryCount >= maxRetries,
147
+ message: () => `Stopped waiting for the task after ${maxRetries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`
148
+ },
149
+ timeout: () => Math.min(retryCount * 1500, 5e3)
150
+ });
151
+ }
152
+ };
122
153
  const objectEntries = objects.entries();
123
154
  for (const [i, obj] of objectEntries) {
124
155
  records.push(obj);
@@ -128,36 +159,14 @@ function createIngestionClient({
128
159
  );
129
160
  records = [];
130
161
  }
131
- if (waitForTasks && responses.length > 0 && (responses.length % waitBatchSize === 0 || i === objects.length - 1)) {
132
- for (const resp of responses.slice(offset, offset + waitBatchSize)) {
133
- if (!resp.eventID) {
134
- throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");
135
- }
136
- let retryCount = 0;
137
- await createIterablePromise({
138
- func: async () => {
139
- if (resp.eventID === void 0 || !resp.eventID) {
140
- throw new Error("received unexpected response from the push endpoint, eventID must not be undefined");
141
- }
142
- return this.getEvent({ runID: resp.runID, eventID: resp.eventID }).catch((error) => {
143
- if (error.status === 404) {
144
- return void 0;
145
- }
146
- throw error;
147
- });
148
- },
149
- validate: (response) => response !== void 0,
150
- aggregator: () => retryCount += 1,
151
- error: {
152
- validate: () => retryCount >= maxRetries,
153
- message: () => `Stopped waiting for the task after ${maxRetries} retries. This does not mean the operation failed; it may still complete. If you need to keep polling, retry with a higher maxRetries.`
154
- },
155
- timeout: () => Math.min(retryCount * 1500, 5e3)
156
- });
157
- }
162
+ if (waitForTasks && responses.length - offset >= waitBatchSize) {
163
+ await waitForBatch(offset, offset + waitBatchSize);
158
164
  offset += waitBatchSize;
159
165
  }
160
166
  }
167
+ if (waitForTasks) {
168
+ await waitForBatch(offset, responses.length);
169
+ }
161
170
  return responses;
162
171
  },
163
172
  /**
@@ -187,6 +196,36 @@ function createIngestionClient({
187
196
  };
188
197
  return transporter.request(request, requestOptions);
189
198
  },
199
+ /**
200
+ * Creates a new authentication resource.
201
+ *
202
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
203
+ *
204
+ * Required API Key ACLs:
205
+ * - addObject
206
+ * - deleteIndex
207
+ * - editSettings
208
+ * @param authenticationCreate -
209
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
210
+ * @see createAuthentication for the plain version.
211
+ */
212
+ createAuthenticationWithHTTPInfo(authenticationCreate, requestOptions) {
213
+ validateRequired("authenticationCreate", "createAuthenticationWithHTTPInfo", authenticationCreate);
214
+ validateRequired("authenticationCreate.type", "createAuthenticationWithHTTPInfo", authenticationCreate.type);
215
+ validateRequired("authenticationCreate.name", "createAuthenticationWithHTTPInfo", authenticationCreate.name);
216
+ validateRequired("authenticationCreate.input", "createAuthenticationWithHTTPInfo", authenticationCreate.input);
217
+ const requestPath = "/1/authentications";
218
+ const headers = {};
219
+ const queryParameters = {};
220
+ const request = {
221
+ method: "POST",
222
+ path: requestPath,
223
+ queryParameters,
224
+ headers,
225
+ data: authenticationCreate
226
+ };
227
+ return transporter.requestWithHttpInfo(request, requestOptions);
228
+ },
190
229
  /**
191
230
  * Creates a new destination.
192
231
  *
@@ -214,6 +253,36 @@ function createIngestionClient({
214
253
  };
215
254
  return transporter.request(request, requestOptions);
216
255
  },
256
+ /**
257
+ * Creates a new destination.
258
+ *
259
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
260
+ *
261
+ * Required API Key ACLs:
262
+ * - addObject
263
+ * - deleteIndex
264
+ * - editSettings
265
+ * @param destinationCreate -
266
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
267
+ * @see createDestination for the plain version.
268
+ */
269
+ createDestinationWithHTTPInfo(destinationCreate, requestOptions) {
270
+ validateRequired("destinationCreate", "createDestinationWithHTTPInfo", destinationCreate);
271
+ validateRequired("destinationCreate.type", "createDestinationWithHTTPInfo", destinationCreate.type);
272
+ validateRequired("destinationCreate.name", "createDestinationWithHTTPInfo", destinationCreate.name);
273
+ validateRequired("destinationCreate.input", "createDestinationWithHTTPInfo", destinationCreate.input);
274
+ const requestPath = "/1/destinations";
275
+ const headers = {};
276
+ const queryParameters = {};
277
+ const request = {
278
+ method: "POST",
279
+ path: requestPath,
280
+ queryParameters,
281
+ headers,
282
+ data: destinationCreate
283
+ };
284
+ return transporter.requestWithHttpInfo(request, requestOptions);
285
+ },
217
286
  /**
218
287
  * Creates a new source.
219
288
  *
@@ -240,6 +309,35 @@ function createIngestionClient({
240
309
  };
241
310
  return transporter.request(request, requestOptions);
242
311
  },
312
+ /**
313
+ * Creates a new source.
314
+ *
315
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
316
+ *
317
+ * Required API Key ACLs:
318
+ * - addObject
319
+ * - deleteIndex
320
+ * - editSettings
321
+ * @param sourceCreate -
322
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
323
+ * @see createSource for the plain version.
324
+ */
325
+ createSourceWithHTTPInfo(sourceCreate, requestOptions) {
326
+ validateRequired("sourceCreate", "createSourceWithHTTPInfo", sourceCreate);
327
+ validateRequired("sourceCreate.type", "createSourceWithHTTPInfo", sourceCreate.type);
328
+ validateRequired("sourceCreate.name", "createSourceWithHTTPInfo", sourceCreate.name);
329
+ const requestPath = "/1/sources";
330
+ const headers = {};
331
+ const queryParameters = {};
332
+ const request = {
333
+ method: "POST",
334
+ path: requestPath,
335
+ queryParameters,
336
+ headers,
337
+ data: sourceCreate
338
+ };
339
+ return transporter.requestWithHttpInfo(request, requestOptions);
340
+ },
243
341
  /**
244
342
  * Creates a new task.
245
343
  *
@@ -267,6 +365,36 @@ function createIngestionClient({
267
365
  };
268
366
  return transporter.request(request, requestOptions);
269
367
  },
368
+ /**
369
+ * Creates a new task.
370
+ *
371
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
372
+ *
373
+ * Required API Key ACLs:
374
+ * - addObject
375
+ * - deleteIndex
376
+ * - editSettings
377
+ * @param taskCreate - Request body for creating a task.
378
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
379
+ * @see createTask for the plain version.
380
+ */
381
+ createTaskWithHTTPInfo(taskCreate, requestOptions) {
382
+ validateRequired("taskCreate", "createTaskWithHTTPInfo", taskCreate);
383
+ validateRequired("taskCreate.sourceID", "createTaskWithHTTPInfo", taskCreate.sourceID);
384
+ validateRequired("taskCreate.destinationID", "createTaskWithHTTPInfo", taskCreate.destinationID);
385
+ validateRequired("taskCreate.action", "createTaskWithHTTPInfo", taskCreate.action);
386
+ const requestPath = "/2/tasks";
387
+ const headers = {};
388
+ const queryParameters = {};
389
+ const request = {
390
+ method: "POST",
391
+ path: requestPath,
392
+ queryParameters,
393
+ headers,
394
+ data: taskCreate
395
+ };
396
+ return transporter.requestWithHttpInfo(request, requestOptions);
397
+ },
270
398
  /**
271
399
  * Creates a new task using the v1 endpoint. Use `createTask` instead.
272
400
  *
@@ -297,6 +425,39 @@ function createIngestionClient({
297
425
  };
298
426
  return transporter.request(request, requestOptions);
299
427
  },
428
+ /**
429
+ * Creates a new task using the v1 endpoint. Use `createTask` instead.
430
+ *
431
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
432
+ *
433
+ * Required API Key ACLs:
434
+ * - addObject
435
+ * - deleteIndex
436
+ * - editSettings
437
+ *
438
+ * @deprecated
439
+ * @param taskCreate - Request body for creating a task.
440
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
441
+ * @see createTaskV1 for the plain version.
442
+ */
443
+ createTaskV1WithHTTPInfo(taskCreate, requestOptions) {
444
+ validateRequired("taskCreate", "createTaskV1WithHTTPInfo", taskCreate);
445
+ validateRequired("taskCreate.sourceID", "createTaskV1WithHTTPInfo", taskCreate.sourceID);
446
+ validateRequired("taskCreate.destinationID", "createTaskV1WithHTTPInfo", taskCreate.destinationID);
447
+ validateRequired("taskCreate.trigger", "createTaskV1WithHTTPInfo", taskCreate.trigger);
448
+ validateRequired("taskCreate.action", "createTaskV1WithHTTPInfo", taskCreate.action);
449
+ const requestPath = "/1/tasks";
450
+ const headers = {};
451
+ const queryParameters = {};
452
+ const request = {
453
+ method: "POST",
454
+ path: requestPath,
455
+ queryParameters,
456
+ headers,
457
+ data: taskCreate
458
+ };
459
+ return transporter.requestWithHttpInfo(request, requestOptions);
460
+ },
300
461
  /**
301
462
  * Creates a new transformation.
302
463
  *
@@ -322,6 +483,34 @@ function createIngestionClient({
322
483
  };
323
484
  return transporter.request(request, requestOptions);
324
485
  },
486
+ /**
487
+ * Creates a new transformation.
488
+ *
489
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
490
+ *
491
+ * Required API Key ACLs:
492
+ * - addObject
493
+ * - deleteIndex
494
+ * - editSettings
495
+ * @param transformationCreate - Request body for creating a transformation.
496
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
497
+ * @see createTransformation for the plain version.
498
+ */
499
+ createTransformationWithHTTPInfo(transformationCreate, requestOptions) {
500
+ validateRequired("transformationCreate", "createTransformationWithHTTPInfo", transformationCreate);
501
+ validateRequired("transformationCreate.name", "createTransformationWithHTTPInfo", transformationCreate.name);
502
+ const requestPath = "/1/transformations";
503
+ const headers = {};
504
+ const queryParameters = {};
505
+ const request = {
506
+ method: "POST",
507
+ path: requestPath,
508
+ queryParameters,
509
+ headers,
510
+ data: transformationCreate
511
+ };
512
+ return transporter.requestWithHttpInfo(request, requestOptions);
513
+ },
325
514
  /**
326
515
  * This method lets you send requests to the Algolia REST API.
327
516
  * @param customDelete - The customDelete object.
@@ -342,6 +531,29 @@ function createIngestionClient({
342
531
  };
343
532
  return transporter.request(request, requestOptions);
344
533
  },
534
+ /**
535
+ * This method lets you send requests to the Algolia REST API.
536
+ *
537
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
538
+ * @param customDelete - The customDelete object.
539
+ * @param customDelete.path - Path of the endpoint, for example `1/newFeature`.
540
+ * @param customDelete.parameters - Query parameters to apply to the current query.
541
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
542
+ * @see customDelete for the plain version.
543
+ */
544
+ customDeleteWithHTTPInfo({ path, parameters }, requestOptions) {
545
+ validateRequired("path", "customDeleteWithHTTPInfo", path);
546
+ const requestPath = "/{path}".replace("{path}", path);
547
+ const headers = {};
548
+ const queryParameters = parameters ? parameters : {};
549
+ const request = {
550
+ method: "DELETE",
551
+ path: requestPath,
552
+ queryParameters,
553
+ headers
554
+ };
555
+ return transporter.requestWithHttpInfo(request, requestOptions);
556
+ },
345
557
  /**
346
558
  * This method lets you send requests to the Algolia REST API.
347
559
  * @param customGet - The customGet object.
@@ -362,6 +574,29 @@ function createIngestionClient({
362
574
  };
363
575
  return transporter.request(request, requestOptions);
364
576
  },
577
+ /**
578
+ * This method lets you send requests to the Algolia REST API.
579
+ *
580
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
581
+ * @param customGet - The customGet object.
582
+ * @param customGet.path - Path of the endpoint, for example `1/newFeature`.
583
+ * @param customGet.parameters - Query parameters to apply to the current query.
584
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
585
+ * @see customGet for the plain version.
586
+ */
587
+ customGetWithHTTPInfo({ path, parameters }, requestOptions) {
588
+ validateRequired("path", "customGetWithHTTPInfo", path);
589
+ const requestPath = "/{path}".replace("{path}", path);
590
+ const headers = {};
591
+ const queryParameters = parameters ? parameters : {};
592
+ const request = {
593
+ method: "GET",
594
+ path: requestPath,
595
+ queryParameters,
596
+ headers
597
+ };
598
+ return transporter.requestWithHttpInfo(request, requestOptions);
599
+ },
365
600
  /**
366
601
  * This method lets you send requests to the Algolia REST API.
367
602
  * @param customPost - The customPost object.
@@ -384,6 +619,31 @@ function createIngestionClient({
384
619
  };
385
620
  return transporter.request(request, requestOptions);
386
621
  },
622
+ /**
623
+ * This method lets you send requests to the Algolia REST API.
624
+ *
625
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
626
+ * @param customPost - The customPost object.
627
+ * @param customPost.path - Path of the endpoint, for example `1/newFeature`.
628
+ * @param customPost.parameters - Query parameters to apply to the current query.
629
+ * @param customPost.body - Parameters to send with the custom request.
630
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
631
+ * @see customPost for the plain version.
632
+ */
633
+ customPostWithHTTPInfo({ path, parameters, body }, requestOptions) {
634
+ validateRequired("path", "customPostWithHTTPInfo", path);
635
+ const requestPath = "/{path}".replace("{path}", path);
636
+ const headers = {};
637
+ const queryParameters = parameters ? parameters : {};
638
+ const request = {
639
+ method: "POST",
640
+ path: requestPath,
641
+ queryParameters,
642
+ headers,
643
+ data: body ? body : {}
644
+ };
645
+ return transporter.requestWithHttpInfo(request, requestOptions);
646
+ },
387
647
  /**
388
648
  * This method lets you send requests to the Algolia REST API.
389
649
  * @param customPut - The customPut object.
@@ -406,6 +666,31 @@ function createIngestionClient({
406
666
  };
407
667
  return transporter.request(request, requestOptions);
408
668
  },
669
+ /**
670
+ * This method lets you send requests to the Algolia REST API.
671
+ *
672
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
673
+ * @param customPut - The customPut object.
674
+ * @param customPut.path - Path of the endpoint, for example `1/newFeature`.
675
+ * @param customPut.parameters - Query parameters to apply to the current query.
676
+ * @param customPut.body - Parameters to send with the custom request.
677
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
678
+ * @see customPut for the plain version.
679
+ */
680
+ customPutWithHTTPInfo({ path, parameters, body }, requestOptions) {
681
+ validateRequired("path", "customPutWithHTTPInfo", path);
682
+ const requestPath = "/{path}".replace("{path}", path);
683
+ const headers = {};
684
+ const queryParameters = parameters ? parameters : {};
685
+ const request = {
686
+ method: "PUT",
687
+ path: requestPath,
688
+ queryParameters,
689
+ headers,
690
+ data: body ? body : {}
691
+ };
692
+ return transporter.requestWithHttpInfo(request, requestOptions);
693
+ },
409
694
  /**
410
695
  * Deletes an authentication resource. You can\'t delete authentication resources that are used by a source or a destination.
411
696
  *
@@ -434,21 +719,24 @@ function createIngestionClient({
434
719
  return transporter.request(request, requestOptions);
435
720
  },
436
721
  /**
437
- * Deletes a destination by its ID. You can\'t delete destinations that are referenced in tasks.
722
+ * Deletes an authentication resource. You can\'t delete authentication resources that are used by a source or a destination.
723
+ *
724
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
438
725
  *
439
726
  * Required API Key ACLs:
440
727
  * - addObject
441
728
  * - deleteIndex
442
729
  * - editSettings
443
- * @param deleteDestination - The deleteDestination object.
444
- * @param deleteDestination.destinationID - Unique identifier of a destination.
730
+ * @param deleteAuthentication - The deleteAuthentication object.
731
+ * @param deleteAuthentication.authenticationID - Unique identifier of an authentication resource.
445
732
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
733
+ * @see deleteAuthentication for the plain version.
446
734
  */
447
- deleteDestination({ destinationID }, requestOptions) {
448
- validateRequired("destinationID", "deleteDestination", destinationID);
449
- const requestPath = "/1/destinations/{destinationID}".replace(
450
- "{destinationID}",
451
- encodeURIComponent(destinationID)
735
+ deleteAuthenticationWithHTTPInfo({ authenticationID }, requestOptions) {
736
+ validateRequired("authenticationID", "deleteAuthenticationWithHTTPInfo", authenticationID);
737
+ const requestPath = "/1/authentications/{authenticationID}".replace(
738
+ "{authenticationID}",
739
+ encodeURIComponent(authenticationID)
452
740
  );
453
741
  const headers = {};
454
742
  const queryParameters = {};
@@ -458,22 +746,25 @@ function createIngestionClient({
458
746
  queryParameters,
459
747
  headers
460
748
  };
461
- return transporter.request(request, requestOptions);
749
+ return transporter.requestWithHttpInfo(request, requestOptions);
462
750
  },
463
751
  /**
464
- * Deletes a source by its ID. You can\'t delete sources that are referenced in tasks.
752
+ * Deletes a destination by its ID. You can\'t delete destinations that are referenced in tasks.
465
753
  *
466
754
  * Required API Key ACLs:
467
755
  * - addObject
468
756
  * - deleteIndex
469
757
  * - editSettings
470
- * @param deleteSource - The deleteSource object.
471
- * @param deleteSource.sourceID - Unique identifier of a source.
758
+ * @param deleteDestination - The deleteDestination object.
759
+ * @param deleteDestination.destinationID - Unique identifier of a destination.
472
760
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
473
761
  */
474
- deleteSource({ sourceID }, requestOptions) {
475
- validateRequired("sourceID", "deleteSource", sourceID);
476
- const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
762
+ deleteDestination({ destinationID }, requestOptions) {
763
+ validateRequired("destinationID", "deleteDestination", destinationID);
764
+ const requestPath = "/1/destinations/{destinationID}".replace(
765
+ "{destinationID}",
766
+ encodeURIComponent(destinationID)
767
+ );
477
768
  const headers = {};
478
769
  const queryParameters = {};
479
770
  const request = {
@@ -485,19 +776,25 @@ function createIngestionClient({
485
776
  return transporter.request(request, requestOptions);
486
777
  },
487
778
  /**
488
- * Deletes a task by its ID.
779
+ * Deletes a destination by its ID. You can\'t delete destinations that are referenced in tasks.
780
+ *
781
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
489
782
  *
490
783
  * Required API Key ACLs:
491
784
  * - addObject
492
785
  * - deleteIndex
493
786
  * - editSettings
494
- * @param deleteTask - The deleteTask object.
495
- * @param deleteTask.taskID - Unique identifier of a task.
787
+ * @param deleteDestination - The deleteDestination object.
788
+ * @param deleteDestination.destinationID - Unique identifier of a destination.
496
789
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
790
+ * @see deleteDestination for the plain version.
497
791
  */
498
- deleteTask({ taskID }, requestOptions) {
499
- validateRequired("taskID", "deleteTask", taskID);
500
- const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
792
+ deleteDestinationWithHTTPInfo({ destinationID }, requestOptions) {
793
+ validateRequired("destinationID", "deleteDestinationWithHTTPInfo", destinationID);
794
+ const requestPath = "/1/destinations/{destinationID}".replace(
795
+ "{destinationID}",
796
+ encodeURIComponent(destinationID)
797
+ );
501
798
  const headers = {};
502
799
  const queryParameters = {};
503
800
  const request = {
@@ -506,24 +803,22 @@ function createIngestionClient({
506
803
  queryParameters,
507
804
  headers
508
805
  };
509
- return transporter.request(request, requestOptions);
806
+ return transporter.requestWithHttpInfo(request, requestOptions);
510
807
  },
511
808
  /**
512
- * Deletes a task by its ID using the v1 endpoint. Use `deleteTask` instead.
809
+ * Deletes a source by its ID. You can\'t delete sources that are referenced in tasks.
513
810
  *
514
811
  * Required API Key ACLs:
515
812
  * - addObject
516
813
  * - deleteIndex
517
814
  * - editSettings
518
- *
519
- * @deprecated
520
- * @param deleteTaskV1 - The deleteTaskV1 object.
521
- * @param deleteTaskV1.taskID - Unique identifier of a task.
815
+ * @param deleteSource - The deleteSource object.
816
+ * @param deleteSource.sourceID - Unique identifier of a source.
522
817
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
523
818
  */
524
- deleteTaskV1({ taskID }, requestOptions) {
525
- validateRequired("taskID", "deleteTaskV1", taskID);
526
- const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
819
+ deleteSource({ sourceID }, requestOptions) {
820
+ validateRequired("sourceID", "deleteSource", sourceID);
821
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
527
822
  const headers = {};
528
823
  const queryParameters = {};
529
824
  const request = {
@@ -535,22 +830,22 @@ function createIngestionClient({
535
830
  return transporter.request(request, requestOptions);
536
831
  },
537
832
  /**
538
- * Deletes a transformation by its ID.
833
+ * Deletes a source by its ID. You can\'t delete sources that are referenced in tasks.
834
+ *
835
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
539
836
  *
540
837
  * Required API Key ACLs:
541
838
  * - addObject
542
839
  * - deleteIndex
543
840
  * - editSettings
544
- * @param deleteTransformation - The deleteTransformation object.
545
- * @param deleteTransformation.transformationID - Unique identifier of a transformation.
841
+ * @param deleteSource - The deleteSource object.
842
+ * @param deleteSource.sourceID - Unique identifier of a source.
546
843
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
844
+ * @see deleteSource for the plain version.
547
845
  */
548
- deleteTransformation({ transformationID }, requestOptions) {
549
- validateRequired("transformationID", "deleteTransformation", transformationID);
550
- const requestPath = "/1/transformations/{transformationID}".replace(
551
- "{transformationID}",
552
- encodeURIComponent(transformationID)
553
- );
846
+ deleteSourceWithHTTPInfo({ sourceID }, requestOptions) {
847
+ validateRequired("sourceID", "deleteSourceWithHTTPInfo", sourceID);
848
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
554
849
  const headers = {};
555
850
  const queryParameters = {};
556
851
  const request = {
@@ -559,26 +854,26 @@ function createIngestionClient({
559
854
  queryParameters,
560
855
  headers
561
856
  };
562
- return transporter.request(request, requestOptions);
857
+ return transporter.requestWithHttpInfo(request, requestOptions);
563
858
  },
564
859
  /**
565
- * Disables a task.
860
+ * Deletes a task by its ID.
566
861
  *
567
862
  * Required API Key ACLs:
568
863
  * - addObject
569
864
  * - deleteIndex
570
865
  * - editSettings
571
- * @param disableTask - The disableTask object.
572
- * @param disableTask.taskID - Unique identifier of a task.
866
+ * @param deleteTask - The deleteTask object.
867
+ * @param deleteTask.taskID - Unique identifier of a task.
573
868
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
574
869
  */
575
- disableTask({ taskID }, requestOptions) {
576
- validateRequired("taskID", "disableTask", taskID);
577
- const requestPath = "/2/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
870
+ deleteTask({ taskID }, requestOptions) {
871
+ validateRequired("taskID", "deleteTask", taskID);
872
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
578
873
  const headers = {};
579
874
  const queryParameters = {};
580
875
  const request = {
581
- method: "PUT",
876
+ method: "DELETE",
582
877
  path: requestPath,
583
878
  queryParameters,
584
879
  headers
@@ -586,49 +881,52 @@ function createIngestionClient({
586
881
  return transporter.request(request, requestOptions);
587
882
  },
588
883
  /**
589
- * Disables a task using the v1 endpoint. Use `disableTask` instead.
884
+ * Deletes a task by its ID.
885
+ *
886
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
590
887
  *
591
888
  * Required API Key ACLs:
592
889
  * - addObject
593
890
  * - deleteIndex
594
891
  * - editSettings
595
- *
596
- * @deprecated
597
- * @param disableTaskV1 - The disableTaskV1 object.
598
- * @param disableTaskV1.taskID - Unique identifier of a task.
892
+ * @param deleteTask - The deleteTask object.
893
+ * @param deleteTask.taskID - Unique identifier of a task.
599
894
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
895
+ * @see deleteTask for the plain version.
600
896
  */
601
- disableTaskV1({ taskID }, requestOptions) {
602
- validateRequired("taskID", "disableTaskV1", taskID);
603
- const requestPath = "/1/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
897
+ deleteTaskWithHTTPInfo({ taskID }, requestOptions) {
898
+ validateRequired("taskID", "deleteTaskWithHTTPInfo", taskID);
899
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
604
900
  const headers = {};
605
901
  const queryParameters = {};
606
902
  const request = {
607
- method: "PUT",
903
+ method: "DELETE",
608
904
  path: requestPath,
609
905
  queryParameters,
610
906
  headers
611
907
  };
612
- return transporter.request(request, requestOptions);
908
+ return transporter.requestWithHttpInfo(request, requestOptions);
613
909
  },
614
910
  /**
615
- * Enables a task.
911
+ * Deletes a task by its ID using the v1 endpoint. Use `deleteTask` instead.
616
912
  *
617
913
  * Required API Key ACLs:
618
914
  * - addObject
619
915
  * - deleteIndex
620
916
  * - editSettings
621
- * @param enableTask - The enableTask object.
622
- * @param enableTask.taskID - Unique identifier of a task.
917
+ *
918
+ * @deprecated
919
+ * @param deleteTaskV1 - The deleteTaskV1 object.
920
+ * @param deleteTaskV1.taskID - Unique identifier of a task.
623
921
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
624
922
  */
625
- enableTask({ taskID }, requestOptions) {
626
- validateRequired("taskID", "enableTask", taskID);
627
- const requestPath = "/2/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
923
+ deleteTaskV1({ taskID }, requestOptions) {
924
+ validateRequired("taskID", "deleteTaskV1", taskID);
925
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
628
926
  const headers = {};
629
927
  const queryParameters = {};
630
928
  const request = {
631
- method: "PUT",
929
+ method: "DELETE",
632
930
  path: requestPath,
633
931
  queryParameters,
634
932
  headers
@@ -636,7 +934,9 @@ function createIngestionClient({
636
934
  return transporter.request(request, requestOptions);
637
935
  },
638
936
  /**
639
- * Enables a task using the v1 endpoint. Use `enableTask` instead.
937
+ * Deletes a task by its ID using the v1 endpoint. Use `deleteTask` instead.
938
+ *
939
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
640
940
  *
641
941
  * Required API Key ACLs:
642
942
  * - addObject
@@ -644,44 +944,45 @@ function createIngestionClient({
644
944
  * - editSettings
645
945
  *
646
946
  * @deprecated
647
- * @param enableTaskV1 - The enableTaskV1 object.
648
- * @param enableTaskV1.taskID - Unique identifier of a task.
947
+ * @param deleteTaskV1 - The deleteTaskV1 object.
948
+ * @param deleteTaskV1.taskID - Unique identifier of a task.
649
949
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
950
+ * @see deleteTaskV1 for the plain version.
650
951
  */
651
- enableTaskV1({ taskID }, requestOptions) {
652
- validateRequired("taskID", "enableTaskV1", taskID);
653
- const requestPath = "/1/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
952
+ deleteTaskV1WithHTTPInfo({ taskID }, requestOptions) {
953
+ validateRequired("taskID", "deleteTaskV1WithHTTPInfo", taskID);
954
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
654
955
  const headers = {};
655
956
  const queryParameters = {};
656
957
  const request = {
657
- method: "PUT",
958
+ method: "DELETE",
658
959
  path: requestPath,
659
960
  queryParameters,
660
961
  headers
661
962
  };
662
- return transporter.request(request, requestOptions);
963
+ return transporter.requestWithHttpInfo(request, requestOptions);
663
964
  },
664
965
  /**
665
- * Retrieves an authentication resource by its ID.
966
+ * Deletes a transformation by its ID.
666
967
  *
667
968
  * Required API Key ACLs:
668
969
  * - addObject
669
970
  * - deleteIndex
670
971
  * - editSettings
671
- * @param getAuthentication - The getAuthentication object.
672
- * @param getAuthentication.authenticationID - Unique identifier of an authentication resource.
972
+ * @param deleteTransformation - The deleteTransformation object.
973
+ * @param deleteTransformation.transformationID - Unique identifier of a transformation.
673
974
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
674
975
  */
675
- getAuthentication({ authenticationID }, requestOptions) {
676
- validateRequired("authenticationID", "getAuthentication", authenticationID);
677
- const requestPath = "/1/authentications/{authenticationID}".replace(
678
- "{authenticationID}",
679
- encodeURIComponent(authenticationID)
976
+ deleteTransformation({ transformationID }, requestOptions) {
977
+ validateRequired("transformationID", "deleteTransformation", transformationID);
978
+ const requestPath = "/1/transformations/{transformationID}".replace(
979
+ "{transformationID}",
980
+ encodeURIComponent(transformationID)
680
981
  );
681
982
  const headers = {};
682
983
  const queryParameters = {};
683
984
  const request = {
684
- method: "GET",
985
+ method: "DELETE",
685
986
  path: requestPath,
686
987
  queryParameters,
687
988
  headers
@@ -689,52 +990,53 @@ function createIngestionClient({
689
990
  return transporter.request(request, requestOptions);
690
991
  },
691
992
  /**
692
- * Retrieves a destination by its ID.
993
+ * Deletes a transformation by its ID.
994
+ *
995
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
693
996
  *
694
997
  * Required API Key ACLs:
695
998
  * - addObject
696
999
  * - deleteIndex
697
1000
  * - editSettings
698
- * @param getDestination - The getDestination object.
699
- * @param getDestination.destinationID - Unique identifier of a destination.
1001
+ * @param deleteTransformation - The deleteTransformation object.
1002
+ * @param deleteTransformation.transformationID - Unique identifier of a transformation.
700
1003
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1004
+ * @see deleteTransformation for the plain version.
701
1005
  */
702
- getDestination({ destinationID }, requestOptions) {
703
- validateRequired("destinationID", "getDestination", destinationID);
704
- const requestPath = "/1/destinations/{destinationID}".replace(
705
- "{destinationID}",
706
- encodeURIComponent(destinationID)
1006
+ deleteTransformationWithHTTPInfo({ transformationID }, requestOptions) {
1007
+ validateRequired("transformationID", "deleteTransformationWithHTTPInfo", transformationID);
1008
+ const requestPath = "/1/transformations/{transformationID}".replace(
1009
+ "{transformationID}",
1010
+ encodeURIComponent(transformationID)
707
1011
  );
708
1012
  const headers = {};
709
1013
  const queryParameters = {};
710
1014
  const request = {
711
- method: "GET",
1015
+ method: "DELETE",
712
1016
  path: requestPath,
713
1017
  queryParameters,
714
1018
  headers
715
1019
  };
716
- return transporter.request(request, requestOptions);
1020
+ return transporter.requestWithHttpInfo(request, requestOptions);
717
1021
  },
718
1022
  /**
719
- * Retrieves a single task run event by its ID.
1023
+ * Disables a task.
720
1024
  *
721
1025
  * Required API Key ACLs:
722
1026
  * - addObject
723
1027
  * - deleteIndex
724
1028
  * - editSettings
725
- * @param getEvent - The getEvent object.
726
- * @param getEvent.runID - Unique identifier of a task run.
727
- * @param getEvent.eventID - Unique identifier of an event.
1029
+ * @param disableTask - The disableTask object.
1030
+ * @param disableTask.taskID - Unique identifier of a task.
728
1031
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
729
1032
  */
730
- getEvent({ runID, eventID }, requestOptions) {
731
- validateRequired("runID", "getEvent", runID);
732
- validateRequired("eventID", "getEvent", eventID);
733
- const requestPath = "/1/runs/{runID}/events/{eventID}".replace("{runID}", encodeURIComponent(runID)).replace("{eventID}", encodeURIComponent(eventID));
1033
+ disableTask({ taskID }, requestOptions) {
1034
+ validateRequired("taskID", "disableTask", taskID);
1035
+ const requestPath = "/2/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
734
1036
  const headers = {};
735
1037
  const queryParameters = {};
736
1038
  const request = {
737
- method: "GET",
1039
+ method: "PUT",
738
1040
  path: requestPath,
739
1041
  queryParameters,
740
1042
  headers
@@ -742,47 +1044,52 @@ function createIngestionClient({
742
1044
  return transporter.request(request, requestOptions);
743
1045
  },
744
1046
  /**
745
- * Retrieve a single task run by its ID.
1047
+ * Disables a task.
1048
+ *
1049
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
746
1050
  *
747
1051
  * Required API Key ACLs:
748
1052
  * - addObject
749
1053
  * - deleteIndex
750
1054
  * - editSettings
751
- * @param getRun - The getRun object.
752
- * @param getRun.runID - Unique identifier of a task run.
1055
+ * @param disableTask - The disableTask object.
1056
+ * @param disableTask.taskID - Unique identifier of a task.
753
1057
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1058
+ * @see disableTask for the plain version.
754
1059
  */
755
- getRun({ runID }, requestOptions) {
756
- validateRequired("runID", "getRun", runID);
757
- const requestPath = "/1/runs/{runID}".replace("{runID}", encodeURIComponent(runID));
1060
+ disableTaskWithHTTPInfo({ taskID }, requestOptions) {
1061
+ validateRequired("taskID", "disableTaskWithHTTPInfo", taskID);
1062
+ const requestPath = "/2/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
758
1063
  const headers = {};
759
1064
  const queryParameters = {};
760
1065
  const request = {
761
- method: "GET",
1066
+ method: "PUT",
762
1067
  path: requestPath,
763
1068
  queryParameters,
764
1069
  headers
765
1070
  };
766
- return transporter.request(request, requestOptions);
1071
+ return transporter.requestWithHttpInfo(request, requestOptions);
767
1072
  },
768
1073
  /**
769
- * Retrieve a source by its ID.
1074
+ * Disables a task using the v1 endpoint. Use `disableTask` instead.
770
1075
  *
771
1076
  * Required API Key ACLs:
772
1077
  * - addObject
773
1078
  * - deleteIndex
774
1079
  * - editSettings
775
- * @param getSource - The getSource object.
776
- * @param getSource.sourceID - Unique identifier of a source.
1080
+ *
1081
+ * @deprecated
1082
+ * @param disableTaskV1 - The disableTaskV1 object.
1083
+ * @param disableTaskV1.taskID - Unique identifier of a task.
777
1084
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
778
1085
  */
779
- getSource({ sourceID }, requestOptions) {
780
- validateRequired("sourceID", "getSource", sourceID);
781
- const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
1086
+ disableTaskV1({ taskID }, requestOptions) {
1087
+ validateRequired("taskID", "disableTaskV1", taskID);
1088
+ const requestPath = "/1/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
782
1089
  const headers = {};
783
1090
  const queryParameters = {};
784
1091
  const request = {
785
- method: "GET",
1092
+ method: "PUT",
786
1093
  path: requestPath,
787
1094
  queryParameters,
788
1095
  headers
@@ -790,49 +1097,52 @@ function createIngestionClient({
790
1097
  return transporter.request(request, requestOptions);
791
1098
  },
792
1099
  /**
793
- * Retrieves a task by its ID.
1100
+ * Disables a task using the v1 endpoint. Use `disableTask` instead.
1101
+ *
1102
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
794
1103
  *
795
1104
  * Required API Key ACLs:
796
1105
  * - addObject
797
1106
  * - deleteIndex
798
1107
  * - editSettings
799
- * @param getTask - The getTask object.
800
- * @param getTask.taskID - Unique identifier of a task.
1108
+ *
1109
+ * @deprecated
1110
+ * @param disableTaskV1 - The disableTaskV1 object.
1111
+ * @param disableTaskV1.taskID - Unique identifier of a task.
801
1112
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1113
+ * @see disableTaskV1 for the plain version.
802
1114
  */
803
- getTask({ taskID }, requestOptions) {
804
- validateRequired("taskID", "getTask", taskID);
805
- const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1115
+ disableTaskV1WithHTTPInfo({ taskID }, requestOptions) {
1116
+ validateRequired("taskID", "disableTaskV1WithHTTPInfo", taskID);
1117
+ const requestPath = "/1/tasks/{taskID}/disable".replace("{taskID}", encodeURIComponent(taskID));
806
1118
  const headers = {};
807
1119
  const queryParameters = {};
808
1120
  const request = {
809
- method: "GET",
1121
+ method: "PUT",
810
1122
  path: requestPath,
811
1123
  queryParameters,
812
1124
  headers
813
1125
  };
814
- return transporter.request(request, requestOptions);
1126
+ return transporter.requestWithHttpInfo(request, requestOptions);
815
1127
  },
816
1128
  /**
817
- * Retrieves a task by its ID using the v1 endpoint. Use `getTask` instead.
1129
+ * Enables a task.
818
1130
  *
819
1131
  * Required API Key ACLs:
820
1132
  * - addObject
821
1133
  * - deleteIndex
822
1134
  * - editSettings
823
- *
824
- * @deprecated
825
- * @param getTaskV1 - The getTaskV1 object.
826
- * @param getTaskV1.taskID - Unique identifier of a task.
1135
+ * @param enableTask - The enableTask object.
1136
+ * @param enableTask.taskID - Unique identifier of a task.
827
1137
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
828
1138
  */
829
- getTaskV1({ taskID }, requestOptions) {
830
- validateRequired("taskID", "getTaskV1", taskID);
831
- const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1139
+ enableTask({ taskID }, requestOptions) {
1140
+ validateRequired("taskID", "enableTask", taskID);
1141
+ const requestPath = "/2/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
832
1142
  const headers = {};
833
1143
  const queryParameters = {};
834
1144
  const request = {
835
- method: "GET",
1145
+ method: "PUT",
836
1146
  path: requestPath,
837
1147
  queryParameters,
838
1148
  headers
@@ -840,63 +1150,651 @@ function createIngestionClient({
840
1150
  return transporter.request(request, requestOptions);
841
1151
  },
842
1152
  /**
843
- * Retrieves a transformation by its ID.
1153
+ * Enables a task.
1154
+ *
1155
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
844
1156
  *
845
1157
  * Required API Key ACLs:
846
1158
  * - addObject
847
1159
  * - deleteIndex
848
1160
  * - editSettings
849
- * @param getTransformation - The getTransformation object.
850
- * @param getTransformation.transformationID - Unique identifier of a transformation.
1161
+ * @param enableTask - The enableTask object.
1162
+ * @param enableTask.taskID - Unique identifier of a task.
851
1163
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1164
+ * @see enableTask for the plain version.
852
1165
  */
853
- getTransformation({ transformationID }, requestOptions) {
854
- validateRequired("transformationID", "getTransformation", transformationID);
855
- const requestPath = "/1/transformations/{transformationID}".replace(
856
- "{transformationID}",
857
- encodeURIComponent(transformationID)
858
- );
1166
+ enableTaskWithHTTPInfo({ taskID }, requestOptions) {
1167
+ validateRequired("taskID", "enableTaskWithHTTPInfo", taskID);
1168
+ const requestPath = "/2/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
859
1169
  const headers = {};
860
1170
  const queryParameters = {};
861
1171
  const request = {
862
- method: "GET",
1172
+ method: "PUT",
863
1173
  path: requestPath,
864
1174
  queryParameters,
865
1175
  headers
866
1176
  };
867
- return transporter.request(request, requestOptions);
1177
+ return transporter.requestWithHttpInfo(request, requestOptions);
868
1178
  },
869
1179
  /**
870
- * Retrieves a list of all authentication resources.
1180
+ * Enables a task using the v1 endpoint. Use `enableTask` instead.
871
1181
  *
872
1182
  * Required API Key ACLs:
873
1183
  * - addObject
874
1184
  * - deleteIndex
875
1185
  * - editSettings
876
- * @param listAuthentications - The listAuthentications object.
877
- * @param listAuthentications.itemsPerPage - Number of items per page.
878
- * @param listAuthentications.page - Page number of the paginated API response.
879
- * @param listAuthentications.type - Type of authentication resource to retrieve.
880
- * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
881
- * @param listAuthentications.sort - Property by which to sort the list of authentications.
882
- * @param listAuthentications.order - Sort order of the response, ascending or descending.
1186
+ *
1187
+ * @deprecated
1188
+ * @param enableTaskV1 - The enableTaskV1 object.
1189
+ * @param enableTaskV1.taskID - Unique identifier of a task.
883
1190
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
884
1191
  */
885
- listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = void 0) {
886
- const requestPath = "/1/authentications";
1192
+ enableTaskV1({ taskID }, requestOptions) {
1193
+ validateRequired("taskID", "enableTaskV1", taskID);
1194
+ const requestPath = "/1/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
887
1195
  const headers = {};
888
1196
  const queryParameters = {};
889
- if (itemsPerPage !== void 0) {
890
- queryParameters["itemsPerPage"] = itemsPerPage.toString();
891
- }
892
- if (page !== void 0) {
893
- queryParameters["page"] = page.toString();
894
- }
895
- if (type !== void 0) {
896
- queryParameters["type"] = type.toString();
897
- }
898
- if (platform !== void 0) {
899
- queryParameters["platform"] = platform.toString();
1197
+ const request = {
1198
+ method: "PUT",
1199
+ path: requestPath,
1200
+ queryParameters,
1201
+ headers
1202
+ };
1203
+ return transporter.request(request, requestOptions);
1204
+ },
1205
+ /**
1206
+ * Enables a task using the v1 endpoint. Use `enableTask` instead.
1207
+ *
1208
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1209
+ *
1210
+ * Required API Key ACLs:
1211
+ * - addObject
1212
+ * - deleteIndex
1213
+ * - editSettings
1214
+ *
1215
+ * @deprecated
1216
+ * @param enableTaskV1 - The enableTaskV1 object.
1217
+ * @param enableTaskV1.taskID - Unique identifier of a task.
1218
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1219
+ * @see enableTaskV1 for the plain version.
1220
+ */
1221
+ enableTaskV1WithHTTPInfo({ taskID }, requestOptions) {
1222
+ validateRequired("taskID", "enableTaskV1WithHTTPInfo", taskID);
1223
+ const requestPath = "/1/tasks/{taskID}/enable".replace("{taskID}", encodeURIComponent(taskID));
1224
+ const headers = {};
1225
+ const queryParameters = {};
1226
+ const request = {
1227
+ method: "PUT",
1228
+ path: requestPath,
1229
+ queryParameters,
1230
+ headers
1231
+ };
1232
+ return transporter.requestWithHttpInfo(request, requestOptions);
1233
+ },
1234
+ /**
1235
+ * Retrieves an authentication resource by its ID.
1236
+ *
1237
+ * Required API Key ACLs:
1238
+ * - addObject
1239
+ * - deleteIndex
1240
+ * - editSettings
1241
+ * @param getAuthentication - The getAuthentication object.
1242
+ * @param getAuthentication.authenticationID - Unique identifier of an authentication resource.
1243
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1244
+ */
1245
+ getAuthentication({ authenticationID }, requestOptions) {
1246
+ validateRequired("authenticationID", "getAuthentication", authenticationID);
1247
+ const requestPath = "/1/authentications/{authenticationID}".replace(
1248
+ "{authenticationID}",
1249
+ encodeURIComponent(authenticationID)
1250
+ );
1251
+ const headers = {};
1252
+ const queryParameters = {};
1253
+ const request = {
1254
+ method: "GET",
1255
+ path: requestPath,
1256
+ queryParameters,
1257
+ headers
1258
+ };
1259
+ return transporter.request(request, requestOptions);
1260
+ },
1261
+ /**
1262
+ * Retrieves an authentication resource by its ID.
1263
+ *
1264
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1265
+ *
1266
+ * Required API Key ACLs:
1267
+ * - addObject
1268
+ * - deleteIndex
1269
+ * - editSettings
1270
+ * @param getAuthentication - The getAuthentication object.
1271
+ * @param getAuthentication.authenticationID - Unique identifier of an authentication resource.
1272
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1273
+ * @see getAuthentication for the plain version.
1274
+ */
1275
+ getAuthenticationWithHTTPInfo({ authenticationID }, requestOptions) {
1276
+ validateRequired("authenticationID", "getAuthenticationWithHTTPInfo", authenticationID);
1277
+ const requestPath = "/1/authentications/{authenticationID}".replace(
1278
+ "{authenticationID}",
1279
+ encodeURIComponent(authenticationID)
1280
+ );
1281
+ const headers = {};
1282
+ const queryParameters = {};
1283
+ const request = {
1284
+ method: "GET",
1285
+ path: requestPath,
1286
+ queryParameters,
1287
+ headers
1288
+ };
1289
+ return transporter.requestWithHttpInfo(request, requestOptions);
1290
+ },
1291
+ /**
1292
+ * Retrieves a destination by its ID.
1293
+ *
1294
+ * Required API Key ACLs:
1295
+ * - addObject
1296
+ * - deleteIndex
1297
+ * - editSettings
1298
+ * @param getDestination - The getDestination object.
1299
+ * @param getDestination.destinationID - Unique identifier of a destination.
1300
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1301
+ */
1302
+ getDestination({ destinationID }, requestOptions) {
1303
+ validateRequired("destinationID", "getDestination", destinationID);
1304
+ const requestPath = "/1/destinations/{destinationID}".replace(
1305
+ "{destinationID}",
1306
+ encodeURIComponent(destinationID)
1307
+ );
1308
+ const headers = {};
1309
+ const queryParameters = {};
1310
+ const request = {
1311
+ method: "GET",
1312
+ path: requestPath,
1313
+ queryParameters,
1314
+ headers
1315
+ };
1316
+ return transporter.request(request, requestOptions);
1317
+ },
1318
+ /**
1319
+ * Retrieves a destination by its ID.
1320
+ *
1321
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1322
+ *
1323
+ * Required API Key ACLs:
1324
+ * - addObject
1325
+ * - deleteIndex
1326
+ * - editSettings
1327
+ * @param getDestination - The getDestination object.
1328
+ * @param getDestination.destinationID - Unique identifier of a destination.
1329
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1330
+ * @see getDestination for the plain version.
1331
+ */
1332
+ getDestinationWithHTTPInfo({ destinationID }, requestOptions) {
1333
+ validateRequired("destinationID", "getDestinationWithHTTPInfo", destinationID);
1334
+ const requestPath = "/1/destinations/{destinationID}".replace(
1335
+ "{destinationID}",
1336
+ encodeURIComponent(destinationID)
1337
+ );
1338
+ const headers = {};
1339
+ const queryParameters = {};
1340
+ const request = {
1341
+ method: "GET",
1342
+ path: requestPath,
1343
+ queryParameters,
1344
+ headers
1345
+ };
1346
+ return transporter.requestWithHttpInfo(request, requestOptions);
1347
+ },
1348
+ /**
1349
+ * Retrieves a single task run event by its ID.
1350
+ *
1351
+ * Required API Key ACLs:
1352
+ * - addObject
1353
+ * - deleteIndex
1354
+ * - editSettings
1355
+ * @param getEvent - The getEvent object.
1356
+ * @param getEvent.runID - Unique identifier of a task run.
1357
+ * @param getEvent.eventID - Unique identifier of an event.
1358
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1359
+ */
1360
+ getEvent({ runID, eventID }, requestOptions) {
1361
+ validateRequired("runID", "getEvent", runID);
1362
+ validateRequired("eventID", "getEvent", eventID);
1363
+ const requestPath = "/1/runs/{runID}/events/{eventID}".replace("{runID}", encodeURIComponent(runID)).replace("{eventID}", encodeURIComponent(eventID));
1364
+ const headers = {};
1365
+ const queryParameters = {};
1366
+ const request = {
1367
+ method: "GET",
1368
+ path: requestPath,
1369
+ queryParameters,
1370
+ headers
1371
+ };
1372
+ return transporter.request(request, requestOptions);
1373
+ },
1374
+ /**
1375
+ * Retrieves a single task run event by its ID.
1376
+ *
1377
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1378
+ *
1379
+ * Required API Key ACLs:
1380
+ * - addObject
1381
+ * - deleteIndex
1382
+ * - editSettings
1383
+ * @param getEvent - The getEvent object.
1384
+ * @param getEvent.runID - Unique identifier of a task run.
1385
+ * @param getEvent.eventID - Unique identifier of an event.
1386
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1387
+ * @see getEvent for the plain version.
1388
+ */
1389
+ getEventWithHTTPInfo({ runID, eventID }, requestOptions) {
1390
+ validateRequired("runID", "getEventWithHTTPInfo", runID);
1391
+ validateRequired("eventID", "getEventWithHTTPInfo", eventID);
1392
+ const requestPath = "/1/runs/{runID}/events/{eventID}".replace("{runID}", encodeURIComponent(runID)).replace("{eventID}", encodeURIComponent(eventID));
1393
+ const headers = {};
1394
+ const queryParameters = {};
1395
+ const request = {
1396
+ method: "GET",
1397
+ path: requestPath,
1398
+ queryParameters,
1399
+ headers
1400
+ };
1401
+ return transporter.requestWithHttpInfo(request, requestOptions);
1402
+ },
1403
+ /**
1404
+ * Retrieve a single task run by its ID.
1405
+ *
1406
+ * Required API Key ACLs:
1407
+ * - addObject
1408
+ * - deleteIndex
1409
+ * - editSettings
1410
+ * @param getRun - The getRun object.
1411
+ * @param getRun.runID - Unique identifier of a task run.
1412
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1413
+ */
1414
+ getRun({ runID }, requestOptions) {
1415
+ validateRequired("runID", "getRun", runID);
1416
+ const requestPath = "/1/runs/{runID}".replace("{runID}", encodeURIComponent(runID));
1417
+ const headers = {};
1418
+ const queryParameters = {};
1419
+ const request = {
1420
+ method: "GET",
1421
+ path: requestPath,
1422
+ queryParameters,
1423
+ headers
1424
+ };
1425
+ return transporter.request(request, requestOptions);
1426
+ },
1427
+ /**
1428
+ * Retrieve a single task run by its ID.
1429
+ *
1430
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1431
+ *
1432
+ * Required API Key ACLs:
1433
+ * - addObject
1434
+ * - deleteIndex
1435
+ * - editSettings
1436
+ * @param getRun - The getRun object.
1437
+ * @param getRun.runID - Unique identifier of a task run.
1438
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1439
+ * @see getRun for the plain version.
1440
+ */
1441
+ getRunWithHTTPInfo({ runID }, requestOptions) {
1442
+ validateRequired("runID", "getRunWithHTTPInfo", runID);
1443
+ const requestPath = "/1/runs/{runID}".replace("{runID}", encodeURIComponent(runID));
1444
+ const headers = {};
1445
+ const queryParameters = {};
1446
+ const request = {
1447
+ method: "GET",
1448
+ path: requestPath,
1449
+ queryParameters,
1450
+ headers
1451
+ };
1452
+ return transporter.requestWithHttpInfo(request, requestOptions);
1453
+ },
1454
+ /**
1455
+ * Retrieve a source by its ID.
1456
+ *
1457
+ * Required API Key ACLs:
1458
+ * - addObject
1459
+ * - deleteIndex
1460
+ * - editSettings
1461
+ * @param getSource - The getSource object.
1462
+ * @param getSource.sourceID - Unique identifier of a source.
1463
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1464
+ */
1465
+ getSource({ sourceID }, requestOptions) {
1466
+ validateRequired("sourceID", "getSource", sourceID);
1467
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
1468
+ const headers = {};
1469
+ const queryParameters = {};
1470
+ const request = {
1471
+ method: "GET",
1472
+ path: requestPath,
1473
+ queryParameters,
1474
+ headers
1475
+ };
1476
+ return transporter.request(request, requestOptions);
1477
+ },
1478
+ /**
1479
+ * Retrieve a source by its ID.
1480
+ *
1481
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1482
+ *
1483
+ * Required API Key ACLs:
1484
+ * - addObject
1485
+ * - deleteIndex
1486
+ * - editSettings
1487
+ * @param getSource - The getSource object.
1488
+ * @param getSource.sourceID - Unique identifier of a source.
1489
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1490
+ * @see getSource for the plain version.
1491
+ */
1492
+ getSourceWithHTTPInfo({ sourceID }, requestOptions) {
1493
+ validateRequired("sourceID", "getSourceWithHTTPInfo", sourceID);
1494
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
1495
+ const headers = {};
1496
+ const queryParameters = {};
1497
+ const request = {
1498
+ method: "GET",
1499
+ path: requestPath,
1500
+ queryParameters,
1501
+ headers
1502
+ };
1503
+ return transporter.requestWithHttpInfo(request, requestOptions);
1504
+ },
1505
+ /**
1506
+ * Retrieves a task by its ID.
1507
+ *
1508
+ * Required API Key ACLs:
1509
+ * - addObject
1510
+ * - deleteIndex
1511
+ * - editSettings
1512
+ * @param getTask - The getTask object.
1513
+ * @param getTask.taskID - Unique identifier of a task.
1514
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1515
+ */
1516
+ getTask({ taskID }, requestOptions) {
1517
+ validateRequired("taskID", "getTask", taskID);
1518
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1519
+ const headers = {};
1520
+ const queryParameters = {};
1521
+ const request = {
1522
+ method: "GET",
1523
+ path: requestPath,
1524
+ queryParameters,
1525
+ headers
1526
+ };
1527
+ return transporter.request(request, requestOptions);
1528
+ },
1529
+ /**
1530
+ * Retrieves a task by its ID.
1531
+ *
1532
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1533
+ *
1534
+ * Required API Key ACLs:
1535
+ * - addObject
1536
+ * - deleteIndex
1537
+ * - editSettings
1538
+ * @param getTask - The getTask object.
1539
+ * @param getTask.taskID - Unique identifier of a task.
1540
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1541
+ * @see getTask for the plain version.
1542
+ */
1543
+ getTaskWithHTTPInfo({ taskID }, requestOptions) {
1544
+ validateRequired("taskID", "getTaskWithHTTPInfo", taskID);
1545
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1546
+ const headers = {};
1547
+ const queryParameters = {};
1548
+ const request = {
1549
+ method: "GET",
1550
+ path: requestPath,
1551
+ queryParameters,
1552
+ headers
1553
+ };
1554
+ return transporter.requestWithHttpInfo(request, requestOptions);
1555
+ },
1556
+ /**
1557
+ * Retrieves a task by its ID using the v1 endpoint. Use `getTask` instead.
1558
+ *
1559
+ * Required API Key ACLs:
1560
+ * - addObject
1561
+ * - deleteIndex
1562
+ * - editSettings
1563
+ *
1564
+ * @deprecated
1565
+ * @param getTaskV1 - The getTaskV1 object.
1566
+ * @param getTaskV1.taskID - Unique identifier of a task.
1567
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1568
+ */
1569
+ getTaskV1({ taskID }, requestOptions) {
1570
+ validateRequired("taskID", "getTaskV1", taskID);
1571
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1572
+ const headers = {};
1573
+ const queryParameters = {};
1574
+ const request = {
1575
+ method: "GET",
1576
+ path: requestPath,
1577
+ queryParameters,
1578
+ headers
1579
+ };
1580
+ return transporter.request(request, requestOptions);
1581
+ },
1582
+ /**
1583
+ * Retrieves a task by its ID using the v1 endpoint. Use `getTask` instead.
1584
+ *
1585
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1586
+ *
1587
+ * Required API Key ACLs:
1588
+ * - addObject
1589
+ * - deleteIndex
1590
+ * - editSettings
1591
+ *
1592
+ * @deprecated
1593
+ * @param getTaskV1 - The getTaskV1 object.
1594
+ * @param getTaskV1.taskID - Unique identifier of a task.
1595
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1596
+ * @see getTaskV1 for the plain version.
1597
+ */
1598
+ getTaskV1WithHTTPInfo({ taskID }, requestOptions) {
1599
+ validateRequired("taskID", "getTaskV1WithHTTPInfo", taskID);
1600
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
1601
+ const headers = {};
1602
+ const queryParameters = {};
1603
+ const request = {
1604
+ method: "GET",
1605
+ path: requestPath,
1606
+ queryParameters,
1607
+ headers
1608
+ };
1609
+ return transporter.requestWithHttpInfo(request, requestOptions);
1610
+ },
1611
+ /**
1612
+ * Retrieves a transformation by its ID.
1613
+ *
1614
+ * Required API Key ACLs:
1615
+ * - addObject
1616
+ * - deleteIndex
1617
+ * - editSettings
1618
+ * @param getTransformation - The getTransformation object.
1619
+ * @param getTransformation.transformationID - Unique identifier of a transformation.
1620
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1621
+ */
1622
+ getTransformation({ transformationID }, requestOptions) {
1623
+ validateRequired("transformationID", "getTransformation", transformationID);
1624
+ const requestPath = "/1/transformations/{transformationID}".replace(
1625
+ "{transformationID}",
1626
+ encodeURIComponent(transformationID)
1627
+ );
1628
+ const headers = {};
1629
+ const queryParameters = {};
1630
+ const request = {
1631
+ method: "GET",
1632
+ path: requestPath,
1633
+ queryParameters,
1634
+ headers
1635
+ };
1636
+ return transporter.request(request, requestOptions);
1637
+ },
1638
+ /**
1639
+ * Retrieves a transformation by its ID.
1640
+ *
1641
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1642
+ *
1643
+ * Required API Key ACLs:
1644
+ * - addObject
1645
+ * - deleteIndex
1646
+ * - editSettings
1647
+ * @param getTransformation - The getTransformation object.
1648
+ * @param getTransformation.transformationID - Unique identifier of a transformation.
1649
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1650
+ * @see getTransformation for the plain version.
1651
+ */
1652
+ getTransformationWithHTTPInfo({ transformationID }, requestOptions) {
1653
+ validateRequired("transformationID", "getTransformationWithHTTPInfo", transformationID);
1654
+ const requestPath = "/1/transformations/{transformationID}".replace(
1655
+ "{transformationID}",
1656
+ encodeURIComponent(transformationID)
1657
+ );
1658
+ const headers = {};
1659
+ const queryParameters = {};
1660
+ const request = {
1661
+ method: "GET",
1662
+ path: requestPath,
1663
+ queryParameters,
1664
+ headers
1665
+ };
1666
+ return transporter.requestWithHttpInfo(request, requestOptions);
1667
+ },
1668
+ /**
1669
+ * Retrieves a list of all authentication resources.
1670
+ *
1671
+ * Required API Key ACLs:
1672
+ * - addObject
1673
+ * - deleteIndex
1674
+ * - editSettings
1675
+ * @param listAuthentications - The listAuthentications object.
1676
+ * @param listAuthentications.itemsPerPage - Number of items per page.
1677
+ * @param listAuthentications.page - Page number of the paginated API response.
1678
+ * @param listAuthentications.type - Type of authentication resource to retrieve.
1679
+ * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
1680
+ * @param listAuthentications.sort - Property by which to sort the list of authentications.
1681
+ * @param listAuthentications.order - Sort order of the response, ascending or descending.
1682
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1683
+ */
1684
+ listAuthentications({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = void 0) {
1685
+ const requestPath = "/1/authentications";
1686
+ const headers = {};
1687
+ const queryParameters = {};
1688
+ if (itemsPerPage !== void 0) {
1689
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
1690
+ }
1691
+ if (page !== void 0) {
1692
+ queryParameters["page"] = page.toString();
1693
+ }
1694
+ if (type !== void 0) {
1695
+ queryParameters["type"] = type.toString();
1696
+ }
1697
+ if (platform !== void 0) {
1698
+ queryParameters["platform"] = platform.toString();
1699
+ }
1700
+ if (sort !== void 0) {
1701
+ queryParameters["sort"] = sort.toString();
1702
+ }
1703
+ if (order !== void 0) {
1704
+ queryParameters["order"] = order.toString();
1705
+ }
1706
+ const request = {
1707
+ method: "GET",
1708
+ path: requestPath,
1709
+ queryParameters,
1710
+ headers
1711
+ };
1712
+ return transporter.request(request, requestOptions);
1713
+ },
1714
+ /**
1715
+ * Retrieves a list of all authentication resources.
1716
+ *
1717
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1718
+ *
1719
+ * Required API Key ACLs:
1720
+ * - addObject
1721
+ * - deleteIndex
1722
+ * - editSettings
1723
+ * @param listAuthentications - The listAuthentications object.
1724
+ * @param listAuthentications.itemsPerPage - Number of items per page.
1725
+ * @param listAuthentications.page - Page number of the paginated API response.
1726
+ * @param listAuthentications.type - Type of authentication resource to retrieve.
1727
+ * @param listAuthentications.platform - Ecommerce platform for which to retrieve authentications.
1728
+ * @param listAuthentications.sort - Property by which to sort the list of authentications.
1729
+ * @param listAuthentications.order - Sort order of the response, ascending or descending.
1730
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1731
+ * @see listAuthentications for the plain version.
1732
+ */
1733
+ listAuthenticationsWithHTTPInfo({ itemsPerPage, page, type, platform, sort, order } = {}, requestOptions = void 0) {
1734
+ const requestPath = "/1/authentications";
1735
+ const headers = {};
1736
+ const queryParameters = {};
1737
+ if (itemsPerPage !== void 0) {
1738
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
1739
+ }
1740
+ if (page !== void 0) {
1741
+ queryParameters["page"] = page.toString();
1742
+ }
1743
+ if (type !== void 0) {
1744
+ queryParameters["type"] = type.toString();
1745
+ }
1746
+ if (platform !== void 0) {
1747
+ queryParameters["platform"] = platform.toString();
1748
+ }
1749
+ if (sort !== void 0) {
1750
+ queryParameters["sort"] = sort.toString();
1751
+ }
1752
+ if (order !== void 0) {
1753
+ queryParameters["order"] = order.toString();
1754
+ }
1755
+ const request = {
1756
+ method: "GET",
1757
+ path: requestPath,
1758
+ queryParameters,
1759
+ headers
1760
+ };
1761
+ return transporter.requestWithHttpInfo(request, requestOptions);
1762
+ },
1763
+ /**
1764
+ * Retrieves a list of destinations.
1765
+ *
1766
+ * Required API Key ACLs:
1767
+ * - addObject
1768
+ * - deleteIndex
1769
+ * - editSettings
1770
+ * @param listDestinations - The listDestinations object.
1771
+ * @param listDestinations.itemsPerPage - Number of items per page.
1772
+ * @param listDestinations.page - Page number of the paginated API response.
1773
+ * @param listDestinations.type - Destination type.
1774
+ * @param listDestinations.authenticationID - Authentication ID used by destinations.
1775
+ * @param listDestinations.transformationID - Get the list of destinations used by a transformation.
1776
+ * @param listDestinations.sort - Property by which to sort the destinations.
1777
+ * @param listDestinations.order - Sort order of the response, ascending or descending.
1778
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1779
+ */
1780
+ listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
1781
+ const requestPath = "/1/destinations";
1782
+ const headers = {};
1783
+ const queryParameters = {};
1784
+ if (itemsPerPage !== void 0) {
1785
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
1786
+ }
1787
+ if (page !== void 0) {
1788
+ queryParameters["page"] = page.toString();
1789
+ }
1790
+ if (type !== void 0) {
1791
+ queryParameters["type"] = type.toString();
1792
+ }
1793
+ if (authenticationID !== void 0) {
1794
+ queryParameters["authenticationID"] = authenticationID.toString();
1795
+ }
1796
+ if (transformationID !== void 0) {
1797
+ queryParameters["transformationID"] = transformationID.toString();
900
1798
  }
901
1799
  if (sort !== void 0) {
902
1800
  queryParameters["sort"] = sort.toString();
@@ -915,6 +1813,8 @@ function createIngestionClient({
915
1813
  /**
916
1814
  * Retrieves a list of destinations.
917
1815
  *
1816
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1817
+ *
918
1818
  * Required API Key ACLs:
919
1819
  * - addObject
920
1820
  * - deleteIndex
@@ -928,8 +1828,9 @@ function createIngestionClient({
928
1828
  * @param listDestinations.sort - Property by which to sort the destinations.
929
1829
  * @param listDestinations.order - Sort order of the response, ascending or descending.
930
1830
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1831
+ * @see listDestinations for the plain version.
931
1832
  */
932
- listDestinations({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
1833
+ listDestinationsWithHTTPInfo({ itemsPerPage, page, type, authenticationID, transformationID, sort, order } = {}, requestOptions = void 0) {
933
1834
  const requestPath = "/1/destinations";
934
1835
  const headers = {};
935
1836
  const queryParameters = {};
@@ -960,7 +1861,7 @@ function createIngestionClient({
960
1861
  queryParameters,
961
1862
  headers
962
1863
  };
963
- return transporter.request(request, requestOptions);
1864
+ return transporter.requestWithHttpInfo(request, requestOptions);
964
1865
  },
965
1866
  /**
966
1867
  * Retrieves a list of events for a task run, identified by its ID.
@@ -1018,6 +1919,65 @@ function createIngestionClient({
1018
1919
  };
1019
1920
  return transporter.request(request, requestOptions);
1020
1921
  },
1922
+ /**
1923
+ * Retrieves a list of events for a task run, identified by its ID.
1924
+ *
1925
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
1926
+ *
1927
+ * Required API Key ACLs:
1928
+ * - addObject
1929
+ * - deleteIndex
1930
+ * - editSettings
1931
+ * @param listEvents - The listEvents object.
1932
+ * @param listEvents.runID - Unique identifier of a task run.
1933
+ * @param listEvents.itemsPerPage - Number of items per page.
1934
+ * @param listEvents.page - Page number of the paginated API response.
1935
+ * @param listEvents.status - Event status for filtering the list of task runs.
1936
+ * @param listEvents.type - Event type for filtering the list of task runs.
1937
+ * @param listEvents.sort - Property by which to sort the list of task run events.
1938
+ * @param listEvents.order - Sort order of the response, ascending or descending.
1939
+ * @param listEvents.startDate - Date and time in RFC 3339 format for the earliest events to retrieve. By default, the current time minus three hours is used.
1940
+ * @param listEvents.endDate - Date and time in RFC 3339 format for the latest events to retrieve. By default, the current time is used.
1941
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1942
+ * @see listEvents for the plain version.
1943
+ */
1944
+ listEventsWithHTTPInfo({ runID, itemsPerPage, page, status, type, sort, order, startDate, endDate }, requestOptions) {
1945
+ validateRequired("runID", "listEventsWithHTTPInfo", runID);
1946
+ const requestPath = "/1/runs/{runID}/events".replace("{runID}", encodeURIComponent(runID));
1947
+ const headers = {};
1948
+ const queryParameters = {};
1949
+ if (itemsPerPage !== void 0) {
1950
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
1951
+ }
1952
+ if (page !== void 0) {
1953
+ queryParameters["page"] = page.toString();
1954
+ }
1955
+ if (status !== void 0) {
1956
+ queryParameters["status"] = status.toString();
1957
+ }
1958
+ if (type !== void 0) {
1959
+ queryParameters["type"] = type.toString();
1960
+ }
1961
+ if (sort !== void 0) {
1962
+ queryParameters["sort"] = sort.toString();
1963
+ }
1964
+ if (order !== void 0) {
1965
+ queryParameters["order"] = order.toString();
1966
+ }
1967
+ if (startDate !== void 0) {
1968
+ queryParameters["startDate"] = startDate.toString();
1969
+ }
1970
+ if (endDate !== void 0) {
1971
+ queryParameters["endDate"] = endDate.toString();
1972
+ }
1973
+ const request = {
1974
+ method: "GET",
1975
+ path: requestPath,
1976
+ queryParameters,
1977
+ headers
1978
+ };
1979
+ return transporter.requestWithHttpInfo(request, requestOptions);
1980
+ },
1021
1981
  /**
1022
1982
  * Retrieve a list of task runs.
1023
1983
  *
@@ -1076,6 +2036,67 @@ function createIngestionClient({
1076
2036
  };
1077
2037
  return transporter.request(request, requestOptions);
1078
2038
  },
2039
+ /**
2040
+ * Retrieve a list of task runs.
2041
+ *
2042
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2043
+ *
2044
+ * Required API Key ACLs:
2045
+ * - addObject
2046
+ * - deleteIndex
2047
+ * - editSettings
2048
+ * @param listRuns - The listRuns object.
2049
+ * @param listRuns.itemsPerPage - Number of items per page.
2050
+ * @param listRuns.page - Page number of the paginated API response.
2051
+ * @param listRuns.status - Run status for filtering the list of task runs.
2052
+ * @param listRuns.type - Run type for filtering the list of task runs.
2053
+ * @param listRuns.taskID - Task ID for filtering the list of task runs.
2054
+ * @param listRuns.sort - Property by which to sort the list of task runs.
2055
+ * @param listRuns.order - Sort order of the response, ascending or descending.
2056
+ * @param listRuns.startDate - Date and time for the earliest run to retrieve, in RFC 3339 format. By default, the current day minus seven days is used.
2057
+ * @param listRuns.endDate - Date and time for the latest run to retrieve, in RFC 3339 format. By default, the current day is used.
2058
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2059
+ * @see listRuns for the plain version.
2060
+ */
2061
+ listRunsWithHTTPInfo({ itemsPerPage, page, status, type, taskID, sort, order, startDate, endDate } = {}, requestOptions = void 0) {
2062
+ const requestPath = "/1/runs";
2063
+ const headers = {};
2064
+ const queryParameters = {};
2065
+ if (itemsPerPage !== void 0) {
2066
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
2067
+ }
2068
+ if (page !== void 0) {
2069
+ queryParameters["page"] = page.toString();
2070
+ }
2071
+ if (status !== void 0) {
2072
+ queryParameters["status"] = status.toString();
2073
+ }
2074
+ if (type !== void 0) {
2075
+ queryParameters["type"] = type.toString();
2076
+ }
2077
+ if (taskID !== void 0) {
2078
+ queryParameters["taskID"] = taskID.toString();
2079
+ }
2080
+ if (sort !== void 0) {
2081
+ queryParameters["sort"] = sort.toString();
2082
+ }
2083
+ if (order !== void 0) {
2084
+ queryParameters["order"] = order.toString();
2085
+ }
2086
+ if (startDate !== void 0) {
2087
+ queryParameters["startDate"] = startDate.toString();
2088
+ }
2089
+ if (endDate !== void 0) {
2090
+ queryParameters["endDate"] = endDate.toString();
2091
+ }
2092
+ const request = {
2093
+ method: "GET",
2094
+ path: requestPath,
2095
+ queryParameters,
2096
+ headers
2097
+ };
2098
+ return transporter.requestWithHttpInfo(request, requestOptions);
2099
+ },
1079
2100
  /**
1080
2101
  * Retrieves a list of sources.
1081
2102
  *
@@ -1102,11 +2123,138 @@ function createIngestionClient({
1102
2123
  if (page !== void 0) {
1103
2124
  queryParameters["page"] = page.toString();
1104
2125
  }
1105
- if (type !== void 0) {
1106
- queryParameters["type"] = type.toString();
2126
+ if (type !== void 0) {
2127
+ queryParameters["type"] = type.toString();
2128
+ }
2129
+ if (authenticationID !== void 0) {
2130
+ queryParameters["authenticationID"] = authenticationID.toString();
2131
+ }
2132
+ if (sort !== void 0) {
2133
+ queryParameters["sort"] = sort.toString();
2134
+ }
2135
+ if (order !== void 0) {
2136
+ queryParameters["order"] = order.toString();
2137
+ }
2138
+ const request = {
2139
+ method: "GET",
2140
+ path: requestPath,
2141
+ queryParameters,
2142
+ headers
2143
+ };
2144
+ return transporter.request(request, requestOptions);
2145
+ },
2146
+ /**
2147
+ * Retrieves a list of sources.
2148
+ *
2149
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2150
+ *
2151
+ * Required API Key ACLs:
2152
+ * - addObject
2153
+ * - deleteIndex
2154
+ * - editSettings
2155
+ * @param listSources - The listSources object.
2156
+ * @param listSources.itemsPerPage - Number of items per page.
2157
+ * @param listSources.page - Page number of the paginated API response.
2158
+ * @param listSources.type - Source type. Some sources require authentication.
2159
+ * @param listSources.authenticationID - Authentication IDs of the sources to retrieve. \'none\' returns sources that doesn\'t have an authentication.
2160
+ * @param listSources.sort - Property by which to sort the list of sources.
2161
+ * @param listSources.order - Sort order of the response, ascending or descending.
2162
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2163
+ * @see listSources for the plain version.
2164
+ */
2165
+ listSourcesWithHTTPInfo({ itemsPerPage, page, type, authenticationID, sort, order } = {}, requestOptions = void 0) {
2166
+ const requestPath = "/1/sources";
2167
+ const headers = {};
2168
+ const queryParameters = {};
2169
+ if (itemsPerPage !== void 0) {
2170
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
2171
+ }
2172
+ if (page !== void 0) {
2173
+ queryParameters["page"] = page.toString();
2174
+ }
2175
+ if (type !== void 0) {
2176
+ queryParameters["type"] = type.toString();
2177
+ }
2178
+ if (authenticationID !== void 0) {
2179
+ queryParameters["authenticationID"] = authenticationID.toString();
2180
+ }
2181
+ if (sort !== void 0) {
2182
+ queryParameters["sort"] = sort.toString();
2183
+ }
2184
+ if (order !== void 0) {
2185
+ queryParameters["order"] = order.toString();
2186
+ }
2187
+ const request = {
2188
+ method: "GET",
2189
+ path: requestPath,
2190
+ queryParameters,
2191
+ headers
2192
+ };
2193
+ return transporter.requestWithHttpInfo(request, requestOptions);
2194
+ },
2195
+ /**
2196
+ * Retrieves a list of tasks.
2197
+ *
2198
+ * Required API Key ACLs:
2199
+ * - addObject
2200
+ * - deleteIndex
2201
+ * - editSettings
2202
+ * @param listTasks - The listTasks object.
2203
+ * @param listTasks.itemsPerPage - Number of items per page.
2204
+ * @param listTasks.page - Page number of the paginated API response.
2205
+ * @param listTasks.action - Actions for filtering the list of tasks.
2206
+ * @param listTasks.enabled - Whether to filter the list of tasks by the `enabled` status.
2207
+ * @param listTasks.sourceID - Source IDs for filtering the list of tasks.
2208
+ * @param listTasks.sourceType - Filters the tasks with the specified source type.
2209
+ * @param listTasks.destinationID - Destination IDs for filtering the list of tasks.
2210
+ * @param listTasks.triggerType - Type of task trigger for filtering the list of tasks.
2211
+ * @param listTasks.withEmailNotifications - If specified, the response only includes tasks with notifications.email.enabled set to this value.
2212
+ * @param listTasks.sort - Property by which to sort the list of tasks.
2213
+ * @param listTasks.order - Sort order of the response, ascending or descending.
2214
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2215
+ */
2216
+ listTasks({
2217
+ itemsPerPage,
2218
+ page,
2219
+ action,
2220
+ enabled,
2221
+ sourceID,
2222
+ sourceType,
2223
+ destinationID,
2224
+ triggerType,
2225
+ withEmailNotifications,
2226
+ sort,
2227
+ order
2228
+ } = {}, requestOptions = void 0) {
2229
+ const requestPath = "/2/tasks";
2230
+ const headers = {};
2231
+ const queryParameters = {};
2232
+ if (itemsPerPage !== void 0) {
2233
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
2234
+ }
2235
+ if (page !== void 0) {
2236
+ queryParameters["page"] = page.toString();
2237
+ }
2238
+ if (action !== void 0) {
2239
+ queryParameters["action"] = action.toString();
1107
2240
  }
1108
- if (authenticationID !== void 0) {
1109
- queryParameters["authenticationID"] = authenticationID.toString();
2241
+ if (enabled !== void 0) {
2242
+ queryParameters["enabled"] = enabled.toString();
2243
+ }
2244
+ if (sourceID !== void 0) {
2245
+ queryParameters["sourceID"] = sourceID.toString();
2246
+ }
2247
+ if (sourceType !== void 0) {
2248
+ queryParameters["sourceType"] = sourceType.toString();
2249
+ }
2250
+ if (destinationID !== void 0) {
2251
+ queryParameters["destinationID"] = destinationID.toString();
2252
+ }
2253
+ if (triggerType !== void 0) {
2254
+ queryParameters["triggerType"] = triggerType.toString();
2255
+ }
2256
+ if (withEmailNotifications !== void 0) {
2257
+ queryParameters["withEmailNotifications"] = withEmailNotifications.toString();
1110
2258
  }
1111
2259
  if (sort !== void 0) {
1112
2260
  queryParameters["sort"] = sort.toString();
@@ -1125,6 +2273,8 @@ function createIngestionClient({
1125
2273
  /**
1126
2274
  * Retrieves a list of tasks.
1127
2275
  *
2276
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2277
+ *
1128
2278
  * Required API Key ACLs:
1129
2279
  * - addObject
1130
2280
  * - deleteIndex
@@ -1142,8 +2292,9 @@ function createIngestionClient({
1142
2292
  * @param listTasks.sort - Property by which to sort the list of tasks.
1143
2293
  * @param listTasks.order - Sort order of the response, ascending or descending.
1144
2294
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2295
+ * @see listTasks for the plain version.
1145
2296
  */
1146
- listTasks({
2297
+ listTasksWithHTTPInfo({
1147
2298
  itemsPerPage,
1148
2299
  page,
1149
2300
  action,
@@ -1198,7 +2349,7 @@ function createIngestionClient({
1198
2349
  queryParameters,
1199
2350
  headers
1200
2351
  };
1201
- return transporter.request(request, requestOptions);
2352
+ return transporter.requestWithHttpInfo(request, requestOptions);
1202
2353
  },
1203
2354
  /**
1204
2355
  * Retrieves a list of tasks using the v1 endpoint. Use `getTasks` instead.
@@ -1260,6 +2411,69 @@ function createIngestionClient({
1260
2411
  };
1261
2412
  return transporter.request(request, requestOptions);
1262
2413
  },
2414
+ /**
2415
+ * Retrieves a list of tasks using the v1 endpoint. Use `getTasks` instead.
2416
+ *
2417
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2418
+ *
2419
+ * Required API Key ACLs:
2420
+ * - addObject
2421
+ * - deleteIndex
2422
+ * - editSettings
2423
+ *
2424
+ * @deprecated
2425
+ * @param listTasksV1 - The listTasksV1 object.
2426
+ * @param listTasksV1.itemsPerPage - Number of items per page.
2427
+ * @param listTasksV1.page - Page number of the paginated API response.
2428
+ * @param listTasksV1.action - Actions for filtering the list of tasks.
2429
+ * @param listTasksV1.enabled - Whether to filter the list of tasks by the `enabled` status.
2430
+ * @param listTasksV1.sourceID - Source IDs for filtering the list of tasks.
2431
+ * @param listTasksV1.destinationID - Destination IDs for filtering the list of tasks.
2432
+ * @param listTasksV1.triggerType - Type of task trigger for filtering the list of tasks.
2433
+ * @param listTasksV1.sort - Property by which to sort the list of tasks.
2434
+ * @param listTasksV1.order - Sort order of the response, ascending or descending.
2435
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2436
+ * @see listTasksV1 for the plain version.
2437
+ */
2438
+ listTasksV1WithHTTPInfo({ itemsPerPage, page, action, enabled, sourceID, destinationID, triggerType, sort, order } = {}, requestOptions = void 0) {
2439
+ const requestPath = "/1/tasks";
2440
+ const headers = {};
2441
+ const queryParameters = {};
2442
+ if (itemsPerPage !== void 0) {
2443
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
2444
+ }
2445
+ if (page !== void 0) {
2446
+ queryParameters["page"] = page.toString();
2447
+ }
2448
+ if (action !== void 0) {
2449
+ queryParameters["action"] = action.toString();
2450
+ }
2451
+ if (enabled !== void 0) {
2452
+ queryParameters["enabled"] = enabled.toString();
2453
+ }
2454
+ if (sourceID !== void 0) {
2455
+ queryParameters["sourceID"] = sourceID.toString();
2456
+ }
2457
+ if (destinationID !== void 0) {
2458
+ queryParameters["destinationID"] = destinationID.toString();
2459
+ }
2460
+ if (triggerType !== void 0) {
2461
+ queryParameters["triggerType"] = triggerType.toString();
2462
+ }
2463
+ if (sort !== void 0) {
2464
+ queryParameters["sort"] = sort.toString();
2465
+ }
2466
+ if (order !== void 0) {
2467
+ queryParameters["order"] = order.toString();
2468
+ }
2469
+ const request = {
2470
+ method: "GET",
2471
+ path: requestPath,
2472
+ queryParameters,
2473
+ headers
2474
+ };
2475
+ return transporter.requestWithHttpInfo(request, requestOptions);
2476
+ },
1263
2477
  /**
1264
2478
  * Retrieves a list of transformations.
1265
2479
  *
@@ -1302,6 +2516,51 @@ function createIngestionClient({
1302
2516
  };
1303
2517
  return transporter.request(request, requestOptions);
1304
2518
  },
2519
+ /**
2520
+ * Retrieves a list of transformations.
2521
+ *
2522
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2523
+ *
2524
+ * Required API Key ACLs:
2525
+ * - addObject
2526
+ * - deleteIndex
2527
+ * - editSettings
2528
+ * @param listTransformations - The listTransformations object.
2529
+ * @param listTransformations.itemsPerPage - Number of items per page.
2530
+ * @param listTransformations.page - Page number of the paginated API response.
2531
+ * @param listTransformations.sort - Property by which to sort the list of transformations.
2532
+ * @param listTransformations.order - Sort order of the response, ascending or descending.
2533
+ * @param listTransformations.type - Whether to filter the list of transformations by the type of transformation.
2534
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2535
+ * @see listTransformations for the plain version.
2536
+ */
2537
+ listTransformationsWithHTTPInfo({ itemsPerPage, page, sort, order, type } = {}, requestOptions = void 0) {
2538
+ const requestPath = "/1/transformations";
2539
+ const headers = {};
2540
+ const queryParameters = {};
2541
+ if (itemsPerPage !== void 0) {
2542
+ queryParameters["itemsPerPage"] = itemsPerPage.toString();
2543
+ }
2544
+ if (page !== void 0) {
2545
+ queryParameters["page"] = page.toString();
2546
+ }
2547
+ if (sort !== void 0) {
2548
+ queryParameters["sort"] = sort.toString();
2549
+ }
2550
+ if (order !== void 0) {
2551
+ queryParameters["order"] = order.toString();
2552
+ }
2553
+ if (type !== void 0) {
2554
+ queryParameters["type"] = type.toString();
2555
+ }
2556
+ const request = {
2557
+ method: "GET",
2558
+ path: requestPath,
2559
+ queryParameters,
2560
+ headers
2561
+ };
2562
+ return transporter.requestWithHttpInfo(request, requestOptions);
2563
+ },
1305
2564
  /**
1306
2565
  * Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
1307
2566
  *
@@ -1338,6 +2597,7 @@ function createIngestionClient({
1338
2597
  data: pushTaskPayload
1339
2598
  };
1340
2599
  requestOptions = {
2600
+ ...requestOptions,
1341
2601
  timeouts: {
1342
2602
  connect: 18e4,
1343
2603
  read: 18e4,
@@ -1347,6 +2607,55 @@ function createIngestionClient({
1347
2607
  };
1348
2608
  return transporter.request(request, requestOptions);
1349
2609
  },
2610
+ /**
2611
+ * Pushes records through the Pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints and/or debugger dashboard to see the status of your task. If you want to leverage the [pre-indexing data transformation](https://www.algolia.com/doc/guides/sending-and-managing-data/send-and-update-your-data/how-to/transform-your-data), this is the recommended way of ingesting your records. This method is similar to `pushTask`, but requires an `indexName` instead of a `taskID`. If zero or many tasks are found, an error will be returned.
2612
+ *
2613
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2614
+ *
2615
+ * Required API Key ACLs:
2616
+ * - addObject
2617
+ * - deleteIndex
2618
+ * - editSettings
2619
+ * @param push - The push object.
2620
+ * @param push.indexName - Name of the index on which to perform the operation.
2621
+ * @param push.pushTaskPayload - The pushTaskPayload object.
2622
+ * @param push.watch - When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2623
+ * @param push.referenceIndexName - This is required when targeting an index that does not have a push connector setup (e.g. a tmp index), but you wish to attach another index\'s transformation to it (e.g. the source index name).
2624
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2625
+ * @see push for the plain version.
2626
+ */
2627
+ pushWithHTTPInfo({ indexName, pushTaskPayload, watch, referenceIndexName }, requestOptions) {
2628
+ validateRequired("indexName", "pushWithHTTPInfo", indexName);
2629
+ validateRequired("pushTaskPayload", "pushWithHTTPInfo", pushTaskPayload);
2630
+ validateRequired("pushTaskPayload.action", "pushWithHTTPInfo", pushTaskPayload.action);
2631
+ validateRequired("pushTaskPayload.records", "pushWithHTTPInfo", pushTaskPayload.records);
2632
+ const requestPath = "/1/push/{indexName}".replace("{indexName}", encodeURIComponent(indexName));
2633
+ const headers = {};
2634
+ const queryParameters = {};
2635
+ if (watch !== void 0) {
2636
+ queryParameters["watch"] = watch.toString();
2637
+ }
2638
+ if (referenceIndexName !== void 0) {
2639
+ queryParameters["referenceIndexName"] = referenceIndexName.toString();
2640
+ }
2641
+ const request = {
2642
+ method: "POST",
2643
+ path: requestPath,
2644
+ queryParameters,
2645
+ headers,
2646
+ data: pushTaskPayload
2647
+ };
2648
+ requestOptions = {
2649
+ ...requestOptions,
2650
+ timeouts: {
2651
+ connect: 18e4,
2652
+ read: 18e4,
2653
+ write: 18e4,
2654
+ ...requestOptions == null ? void 0 : requestOptions.timeouts
2655
+ }
2656
+ };
2657
+ return transporter.requestWithHttpInfo(request, requestOptions);
2658
+ },
1350
2659
  /**
1351
2660
  * Pushes records through the pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints or the debugger dashboard to see the status of your task. If you want to transform your data before indexing, this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
1352
2661
  *
@@ -1379,6 +2688,7 @@ function createIngestionClient({
1379
2688
  data: pushTaskPayload
1380
2689
  };
1381
2690
  requestOptions = {
2691
+ ...requestOptions,
1382
2692
  timeouts: {
1383
2693
  connect: 18e4,
1384
2694
  read: 18e4,
@@ -1388,6 +2698,51 @@ function createIngestionClient({
1388
2698
  };
1389
2699
  return transporter.request(request, requestOptions);
1390
2700
  },
2701
+ /**
2702
+ * Pushes records through the pipeline, directly to an index. You can make the call synchronous by providing the `watch` parameter, for asynchronous calls, you can use the observability endpoints or the debugger dashboard to see the status of your task. If you want to transform your data before indexing, this is the recommended way of ingesting your records. This method is similar to `push`, but requires a `taskID` instead of a `indexName`, which is useful when many `destinations` target the same `indexName`.
2703
+ *
2704
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2705
+ *
2706
+ * Required API Key ACLs:
2707
+ * - addObject
2708
+ * - deleteIndex
2709
+ * - editSettings
2710
+ * @param pushTask - The pushTask object.
2711
+ * @param pushTask.taskID - Unique identifier of a task.
2712
+ * @param pushTask.pushTaskPayload - The pushTaskPayload object.
2713
+ * @param pushTask.watch - When provided, the push operation will be synchronous and the API will wait for the ingestion to be finished before responding.
2714
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2715
+ * @see pushTask for the plain version.
2716
+ */
2717
+ pushTaskWithHTTPInfo({ taskID, pushTaskPayload, watch }, requestOptions) {
2718
+ validateRequired("taskID", "pushTaskWithHTTPInfo", taskID);
2719
+ validateRequired("pushTaskPayload", "pushTaskWithHTTPInfo", pushTaskPayload);
2720
+ validateRequired("pushTaskPayload.action", "pushTaskWithHTTPInfo", pushTaskPayload.action);
2721
+ validateRequired("pushTaskPayload.records", "pushTaskWithHTTPInfo", pushTaskPayload.records);
2722
+ const requestPath = "/2/tasks/{taskID}/push".replace("{taskID}", encodeURIComponent(taskID));
2723
+ const headers = {};
2724
+ const queryParameters = {};
2725
+ if (watch !== void 0) {
2726
+ queryParameters["watch"] = watch.toString();
2727
+ }
2728
+ const request = {
2729
+ method: "POST",
2730
+ path: requestPath,
2731
+ queryParameters,
2732
+ headers,
2733
+ data: pushTaskPayload
2734
+ };
2735
+ requestOptions = {
2736
+ ...requestOptions,
2737
+ timeouts: {
2738
+ connect: 18e4,
2739
+ read: 18e4,
2740
+ write: 18e4,
2741
+ ...requestOptions == null ? void 0 : requestOptions.timeouts
2742
+ }
2743
+ };
2744
+ return transporter.requestWithHttpInfo(request, requestOptions);
2745
+ },
1391
2746
  /**
1392
2747
  * Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields.
1393
2748
  *
@@ -1413,13 +2768,73 @@ function createIngestionClient({
1413
2768
  path: requestPath,
1414
2769
  queryParameters,
1415
2770
  headers,
1416
- data: taskReplace
2771
+ data: taskReplace
2772
+ };
2773
+ return transporter.request(request, requestOptions);
2774
+ },
2775
+ /**
2776
+ * Fully updates a task by its ID, use partialUpdateTask if you only want to update a subset of fields.
2777
+ *
2778
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2779
+ *
2780
+ * Required API Key ACLs:
2781
+ * - addObject
2782
+ * - deleteIndex
2783
+ * - editSettings
2784
+ * @param replaceTask - The replaceTask object.
2785
+ * @param replaceTask.taskID - Unique identifier of a task.
2786
+ * @param replaceTask.taskReplace - The taskReplace object.
2787
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2788
+ * @see replaceTask for the plain version.
2789
+ */
2790
+ replaceTaskWithHTTPInfo({ taskID, taskReplace }, requestOptions) {
2791
+ validateRequired("taskID", "replaceTaskWithHTTPInfo", taskID);
2792
+ validateRequired("taskReplace", "replaceTaskWithHTTPInfo", taskReplace);
2793
+ validateRequired("taskReplace.destinationID", "replaceTaskWithHTTPInfo", taskReplace.destinationID);
2794
+ validateRequired("taskReplace.action", "replaceTaskWithHTTPInfo", taskReplace.action);
2795
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
2796
+ const headers = {};
2797
+ const queryParameters = {};
2798
+ const request = {
2799
+ method: "PUT",
2800
+ path: requestPath,
2801
+ queryParameters,
2802
+ headers,
2803
+ data: taskReplace
2804
+ };
2805
+ return transporter.requestWithHttpInfo(request, requestOptions);
2806
+ },
2807
+ /**
2808
+ * Runs all tasks linked to a source, only available for Shopify, BigCommerce and commercetools sources. Creates one run per task.
2809
+ *
2810
+ * Required API Key ACLs:
2811
+ * - addObject
2812
+ * - deleteIndex
2813
+ * - editSettings
2814
+ * @param runSource - The runSource object.
2815
+ * @param runSource.sourceID - Unique identifier of a source.
2816
+ * @param runSource.runSourcePayload -
2817
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2818
+ */
2819
+ runSource({ sourceID, runSourcePayload }, requestOptions) {
2820
+ validateRequired("sourceID", "runSource", sourceID);
2821
+ const requestPath = "/1/sources/{sourceID}/run".replace("{sourceID}", encodeURIComponent(sourceID));
2822
+ const headers = {};
2823
+ const queryParameters = {};
2824
+ const request = {
2825
+ method: "POST",
2826
+ path: requestPath,
2827
+ queryParameters,
2828
+ headers,
2829
+ data: runSourcePayload ? runSourcePayload : {}
1417
2830
  };
1418
2831
  return transporter.request(request, requestOptions);
1419
2832
  },
1420
2833
  /**
1421
2834
  * Runs all tasks linked to a source, only available for Shopify, BigCommerce and commercetools sources. Creates one run per task.
1422
2835
  *
2836
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2837
+ *
1423
2838
  * Required API Key ACLs:
1424
2839
  * - addObject
1425
2840
  * - deleteIndex
@@ -1428,9 +2843,10 @@ function createIngestionClient({
1428
2843
  * @param runSource.sourceID - Unique identifier of a source.
1429
2844
  * @param runSource.runSourcePayload -
1430
2845
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2846
+ * @see runSource for the plain version.
1431
2847
  */
1432
- runSource({ sourceID, runSourcePayload }, requestOptions) {
1433
- validateRequired("sourceID", "runSource", sourceID);
2848
+ runSourceWithHTTPInfo({ sourceID, runSourcePayload }, requestOptions) {
2849
+ validateRequired("sourceID", "runSourceWithHTTPInfo", sourceID);
1434
2850
  const requestPath = "/1/sources/{sourceID}/run".replace("{sourceID}", encodeURIComponent(sourceID));
1435
2851
  const headers = {};
1436
2852
  const queryParameters = {};
@@ -1441,7 +2857,7 @@ function createIngestionClient({
1441
2857
  headers,
1442
2858
  data: runSourcePayload ? runSourcePayload : {}
1443
2859
  };
1444
- return transporter.request(request, requestOptions);
2860
+ return transporter.requestWithHttpInfo(request, requestOptions);
1445
2861
  },
1446
2862
  /**
1447
2863
  * Runs a task. You can check the status of task runs with the observability endpoints.
@@ -1469,6 +2885,35 @@ function createIngestionClient({
1469
2885
  };
1470
2886
  return transporter.request(request, requestOptions);
1471
2887
  },
2888
+ /**
2889
+ * Runs a task. You can check the status of task runs with the observability endpoints.
2890
+ *
2891
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2892
+ *
2893
+ * Required API Key ACLs:
2894
+ * - addObject
2895
+ * - deleteIndex
2896
+ * - editSettings
2897
+ * @param runTask - The runTask object.
2898
+ * @param runTask.taskID - Unique identifier of a task.
2899
+ * @param runTask.runTaskPayload -
2900
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2901
+ * @see runTask for the plain version.
2902
+ */
2903
+ runTaskWithHTTPInfo({ taskID, runTaskPayload }, requestOptions) {
2904
+ validateRequired("taskID", "runTaskWithHTTPInfo", taskID);
2905
+ const requestPath = "/2/tasks/{taskID}/run".replace("{taskID}", encodeURIComponent(taskID));
2906
+ const headers = {};
2907
+ const queryParameters = {};
2908
+ const request = {
2909
+ method: "POST",
2910
+ path: requestPath,
2911
+ queryParameters,
2912
+ headers,
2913
+ data: runTaskPayload ? runTaskPayload : {}
2914
+ };
2915
+ return transporter.requestWithHttpInfo(request, requestOptions);
2916
+ },
1472
2917
  /**
1473
2918
  * Runs a task using the v1 endpoint. Use `runTask` instead. You can check the status of task runs with the observability endpoints.
1474
2919
  *
@@ -1497,6 +2942,37 @@ function createIngestionClient({
1497
2942
  };
1498
2943
  return transporter.request(request, requestOptions);
1499
2944
  },
2945
+ /**
2946
+ * Runs a task using the v1 endpoint. Use `runTask` instead. You can check the status of task runs with the observability endpoints.
2947
+ *
2948
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
2949
+ *
2950
+ * Required API Key ACLs:
2951
+ * - addObject
2952
+ * - deleteIndex
2953
+ * - editSettings
2954
+ *
2955
+ * @deprecated
2956
+ * @param runTaskV1 - The runTaskV1 object.
2957
+ * @param runTaskV1.taskID - Unique identifier of a task.
2958
+ * @param runTaskV1.runTaskPayload -
2959
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
2960
+ * @see runTaskV1 for the plain version.
2961
+ */
2962
+ runTaskV1WithHTTPInfo({ taskID, runTaskPayload }, requestOptions) {
2963
+ validateRequired("taskID", "runTaskV1WithHTTPInfo", taskID);
2964
+ const requestPath = "/1/tasks/{taskID}/run".replace("{taskID}", encodeURIComponent(taskID));
2965
+ const headers = {};
2966
+ const queryParameters = {};
2967
+ const request = {
2968
+ method: "POST",
2969
+ path: requestPath,
2970
+ queryParameters,
2971
+ headers,
2972
+ data: runTaskPayload ? runTaskPayload : {}
2973
+ };
2974
+ return transporter.requestWithHttpInfo(request, requestOptions);
2975
+ },
1500
2976
  /**
1501
2977
  * Searches for authentication resources.
1502
2978
  *
@@ -1526,6 +3002,38 @@ function createIngestionClient({
1526
3002
  };
1527
3003
  return transporter.request(request, requestOptions);
1528
3004
  },
3005
+ /**
3006
+ * Searches for authentication resources.
3007
+ *
3008
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3009
+ *
3010
+ * Required API Key ACLs:
3011
+ * - addObject
3012
+ * - deleteIndex
3013
+ * - editSettings
3014
+ * @param authenticationSearch - The authenticationSearch object.
3015
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3016
+ * @see searchAuthentications for the plain version.
3017
+ */
3018
+ searchAuthenticationsWithHTTPInfo(authenticationSearch, requestOptions) {
3019
+ validateRequired("authenticationSearch", "searchAuthenticationsWithHTTPInfo", authenticationSearch);
3020
+ validateRequired(
3021
+ "authenticationSearch.authenticationIDs",
3022
+ "searchAuthenticationsWithHTTPInfo",
3023
+ authenticationSearch.authenticationIDs
3024
+ );
3025
+ const requestPath = "/1/authentications/search";
3026
+ const headers = {};
3027
+ const queryParameters = {};
3028
+ const request = {
3029
+ method: "POST",
3030
+ path: requestPath,
3031
+ queryParameters,
3032
+ headers,
3033
+ data: authenticationSearch
3034
+ };
3035
+ return transporter.requestWithHttpInfo(request, requestOptions);
3036
+ },
1529
3037
  /**
1530
3038
  * Searches for destinations.
1531
3039
  *
@@ -1551,6 +3059,38 @@ function createIngestionClient({
1551
3059
  };
1552
3060
  return transporter.request(request, requestOptions);
1553
3061
  },
3062
+ /**
3063
+ * Searches for destinations.
3064
+ *
3065
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3066
+ *
3067
+ * Required API Key ACLs:
3068
+ * - addObject
3069
+ * - deleteIndex
3070
+ * - editSettings
3071
+ * @param destinationSearch - The destinationSearch object.
3072
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3073
+ * @see searchDestinations for the plain version.
3074
+ */
3075
+ searchDestinationsWithHTTPInfo(destinationSearch, requestOptions) {
3076
+ validateRequired("destinationSearch", "searchDestinationsWithHTTPInfo", destinationSearch);
3077
+ validateRequired(
3078
+ "destinationSearch.destinationIDs",
3079
+ "searchDestinationsWithHTTPInfo",
3080
+ destinationSearch.destinationIDs
3081
+ );
3082
+ const requestPath = "/1/destinations/search";
3083
+ const headers = {};
3084
+ const queryParameters = {};
3085
+ const request = {
3086
+ method: "POST",
3087
+ path: requestPath,
3088
+ queryParameters,
3089
+ headers,
3090
+ data: destinationSearch
3091
+ };
3092
+ return transporter.requestWithHttpInfo(request, requestOptions);
3093
+ },
1554
3094
  /**
1555
3095
  * Searches for sources.
1556
3096
  *
@@ -1576,6 +3116,34 @@ function createIngestionClient({
1576
3116
  };
1577
3117
  return transporter.request(request, requestOptions);
1578
3118
  },
3119
+ /**
3120
+ * Searches for sources.
3121
+ *
3122
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3123
+ *
3124
+ * Required API Key ACLs:
3125
+ * - addObject
3126
+ * - deleteIndex
3127
+ * - editSettings
3128
+ * @param sourceSearch - The sourceSearch object.
3129
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3130
+ * @see searchSources for the plain version.
3131
+ */
3132
+ searchSourcesWithHTTPInfo(sourceSearch, requestOptions) {
3133
+ validateRequired("sourceSearch", "searchSourcesWithHTTPInfo", sourceSearch);
3134
+ validateRequired("sourceSearch.sourceIDs", "searchSourcesWithHTTPInfo", sourceSearch.sourceIDs);
3135
+ const requestPath = "/1/sources/search";
3136
+ const headers = {};
3137
+ const queryParameters = {};
3138
+ const request = {
3139
+ method: "POST",
3140
+ path: requestPath,
3141
+ queryParameters,
3142
+ headers,
3143
+ data: sourceSearch
3144
+ };
3145
+ return transporter.requestWithHttpInfo(request, requestOptions);
3146
+ },
1579
3147
  /**
1580
3148
  * Searches for tasks.
1581
3149
  *
@@ -1601,6 +3169,34 @@ function createIngestionClient({
1601
3169
  };
1602
3170
  return transporter.request(request, requestOptions);
1603
3171
  },
3172
+ /**
3173
+ * Searches for tasks.
3174
+ *
3175
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3176
+ *
3177
+ * Required API Key ACLs:
3178
+ * - addObject
3179
+ * - deleteIndex
3180
+ * - editSettings
3181
+ * @param taskSearch - The taskSearch object.
3182
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3183
+ * @see searchTasks for the plain version.
3184
+ */
3185
+ searchTasksWithHTTPInfo(taskSearch, requestOptions) {
3186
+ validateRequired("taskSearch", "searchTasksWithHTTPInfo", taskSearch);
3187
+ validateRequired("taskSearch.taskIDs", "searchTasksWithHTTPInfo", taskSearch.taskIDs);
3188
+ const requestPath = "/2/tasks/search";
3189
+ const headers = {};
3190
+ const queryParameters = {};
3191
+ const request = {
3192
+ method: "POST",
3193
+ path: requestPath,
3194
+ queryParameters,
3195
+ headers,
3196
+ data: taskSearch
3197
+ };
3198
+ return transporter.requestWithHttpInfo(request, requestOptions);
3199
+ },
1604
3200
  /**
1605
3201
  * Searches for tasks using the v1 endpoint. Use `searchTasks` instead.
1606
3202
  *
@@ -1628,6 +3224,36 @@ function createIngestionClient({
1628
3224
  };
1629
3225
  return transporter.request(request, requestOptions);
1630
3226
  },
3227
+ /**
3228
+ * Searches for tasks using the v1 endpoint. Use `searchTasks` instead.
3229
+ *
3230
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3231
+ *
3232
+ * Required API Key ACLs:
3233
+ * - addObject
3234
+ * - deleteIndex
3235
+ * - editSettings
3236
+ *
3237
+ * @deprecated
3238
+ * @param taskSearch - The taskSearch object.
3239
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3240
+ * @see searchTasksV1 for the plain version.
3241
+ */
3242
+ searchTasksV1WithHTTPInfo(taskSearch, requestOptions) {
3243
+ validateRequired("taskSearch", "searchTasksV1WithHTTPInfo", taskSearch);
3244
+ validateRequired("taskSearch.taskIDs", "searchTasksV1WithHTTPInfo", taskSearch.taskIDs);
3245
+ const requestPath = "/1/tasks/search";
3246
+ const headers = {};
3247
+ const queryParameters = {};
3248
+ const request = {
3249
+ method: "POST",
3250
+ path: requestPath,
3251
+ queryParameters,
3252
+ headers,
3253
+ data: taskSearch
3254
+ };
3255
+ return transporter.requestWithHttpInfo(request, requestOptions);
3256
+ },
1631
3257
  /**
1632
3258
  * Searches for transformations.
1633
3259
  *
@@ -1657,6 +3283,38 @@ function createIngestionClient({
1657
3283
  };
1658
3284
  return transporter.request(request, requestOptions);
1659
3285
  },
3286
+ /**
3287
+ * Searches for transformations.
3288
+ *
3289
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3290
+ *
3291
+ * Required API Key ACLs:
3292
+ * - addObject
3293
+ * - deleteIndex
3294
+ * - editSettings
3295
+ * @param transformationSearch - The transformationSearch object.
3296
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3297
+ * @see searchTransformations for the plain version.
3298
+ */
3299
+ searchTransformationsWithHTTPInfo(transformationSearch, requestOptions) {
3300
+ validateRequired("transformationSearch", "searchTransformationsWithHTTPInfo", transformationSearch);
3301
+ validateRequired(
3302
+ "transformationSearch.transformationIDs",
3303
+ "searchTransformationsWithHTTPInfo",
3304
+ transformationSearch.transformationIDs
3305
+ );
3306
+ const requestPath = "/1/transformations/search";
3307
+ const headers = {};
3308
+ const queryParameters = {};
3309
+ const request = {
3310
+ method: "POST",
3311
+ path: requestPath,
3312
+ queryParameters,
3313
+ headers,
3314
+ data: transformationSearch
3315
+ };
3316
+ return transporter.requestWithHttpInfo(request, requestOptions);
3317
+ },
1660
3318
  /**
1661
3319
  * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
1662
3320
  *
@@ -1680,6 +3338,43 @@ function createIngestionClient({
1680
3338
  headers
1681
3339
  };
1682
3340
  requestOptions = {
3341
+ ...requestOptions,
3342
+ timeouts: {
3343
+ connect: 18e4,
3344
+ read: 18e4,
3345
+ write: 18e4,
3346
+ ...requestOptions == null ? void 0 : requestOptions.timeouts
3347
+ }
3348
+ };
3349
+ return transporter.request(request, requestOptions);
3350
+ },
3351
+ /**
3352
+ * Triggers a stream-listing request for a source. Triggering stream-listing requests only works with sources with `type: docker` and `imageType: airbyte`.
3353
+ *
3354
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3355
+ *
3356
+ * Required API Key ACLs:
3357
+ * - addObject
3358
+ * - deleteIndex
3359
+ * - editSettings
3360
+ * @param triggerDockerSourceDiscover - The triggerDockerSourceDiscover object.
3361
+ * @param triggerDockerSourceDiscover.sourceID - Unique identifier of a source.
3362
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3363
+ * @see triggerDockerSourceDiscover for the plain version.
3364
+ */
3365
+ triggerDockerSourceDiscoverWithHTTPInfo({ sourceID }, requestOptions) {
3366
+ validateRequired("sourceID", "triggerDockerSourceDiscoverWithHTTPInfo", sourceID);
3367
+ const requestPath = "/1/sources/{sourceID}/discover".replace("{sourceID}", encodeURIComponent(sourceID));
3368
+ const headers = {};
3369
+ const queryParameters = {};
3370
+ const request = {
3371
+ method: "POST",
3372
+ path: requestPath,
3373
+ queryParameters,
3374
+ headers
3375
+ };
3376
+ requestOptions = {
3377
+ ...requestOptions,
1683
3378
  timeouts: {
1684
3379
  connect: 18e4,
1685
3380
  read: 18e4,
@@ -1687,21 +3382,53 @@ function createIngestionClient({
1687
3382
  ...requestOptions == null ? void 0 : requestOptions.timeouts
1688
3383
  }
1689
3384
  };
3385
+ return transporter.requestWithHttpInfo(request, requestOptions);
3386
+ },
3387
+ /**
3388
+ * Try a transformation before creating it.
3389
+ *
3390
+ * Required API Key ACLs:
3391
+ * - addObject
3392
+ * - deleteIndex
3393
+ * - editSettings
3394
+ * @param transformationTry - The transformationTry object.
3395
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3396
+ */
3397
+ tryTransformation(transformationTry, requestOptions) {
3398
+ validateRequired("transformationTry", "tryTransformation", transformationTry);
3399
+ validateRequired("transformationTry.sampleRecord", "tryTransformation", transformationTry.sampleRecord);
3400
+ const requestPath = "/1/transformations/try";
3401
+ const headers = {};
3402
+ const queryParameters = {};
3403
+ const request = {
3404
+ method: "POST",
3405
+ path: requestPath,
3406
+ queryParameters,
3407
+ headers,
3408
+ data: transformationTry
3409
+ };
1690
3410
  return transporter.request(request, requestOptions);
1691
3411
  },
1692
3412
  /**
1693
3413
  * Try a transformation before creating it.
1694
3414
  *
3415
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3416
+ *
1695
3417
  * Required API Key ACLs:
1696
3418
  * - addObject
1697
3419
  * - deleteIndex
1698
3420
  * - editSettings
1699
3421
  * @param transformationTry - The transformationTry object.
1700
3422
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3423
+ * @see tryTransformation for the plain version.
1701
3424
  */
1702
- tryTransformation(transformationTry, requestOptions) {
1703
- validateRequired("transformationTry", "tryTransformation", transformationTry);
1704
- validateRequired("transformationTry.sampleRecord", "tryTransformation", transformationTry.sampleRecord);
3425
+ tryTransformationWithHTTPInfo(transformationTry, requestOptions) {
3426
+ validateRequired("transformationTry", "tryTransformationWithHTTPInfo", transformationTry);
3427
+ validateRequired(
3428
+ "transformationTry.sampleRecord",
3429
+ "tryTransformationWithHTTPInfo",
3430
+ transformationTry.sampleRecord
3431
+ );
1705
3432
  const requestPath = "/1/transformations/try";
1706
3433
  const headers = {};
1707
3434
  const queryParameters = {};
@@ -1712,7 +3439,7 @@ function createIngestionClient({
1712
3439
  headers,
1713
3440
  data: transformationTry
1714
3441
  };
1715
- return transporter.request(request, requestOptions);
3442
+ return transporter.requestWithHttpInfo(request, requestOptions);
1716
3443
  },
1717
3444
  /**
1718
3445
  * Try a transformation before updating it.
@@ -1749,6 +3476,44 @@ function createIngestionClient({
1749
3476
  };
1750
3477
  return transporter.request(request, requestOptions);
1751
3478
  },
3479
+ /**
3480
+ * Try a transformation before updating it.
3481
+ *
3482
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3483
+ *
3484
+ * Required API Key ACLs:
3485
+ * - addObject
3486
+ * - deleteIndex
3487
+ * - editSettings
3488
+ * @param tryTransformationBeforeUpdate - The tryTransformationBeforeUpdate object.
3489
+ * @param tryTransformationBeforeUpdate.transformationID - Unique identifier of a transformation.
3490
+ * @param tryTransformationBeforeUpdate.transformationTry - The transformationTry object.
3491
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3492
+ * @see tryTransformationBeforeUpdate for the plain version.
3493
+ */
3494
+ tryTransformationBeforeUpdateWithHTTPInfo({ transformationID, transformationTry }, requestOptions) {
3495
+ validateRequired("transformationID", "tryTransformationBeforeUpdateWithHTTPInfo", transformationID);
3496
+ validateRequired("transformationTry", "tryTransformationBeforeUpdateWithHTTPInfo", transformationTry);
3497
+ validateRequired(
3498
+ "transformationTry.sampleRecord",
3499
+ "tryTransformationBeforeUpdateWithHTTPInfo",
3500
+ transformationTry.sampleRecord
3501
+ );
3502
+ const requestPath = "/1/transformations/{transformationID}/try".replace(
3503
+ "{transformationID}",
3504
+ encodeURIComponent(transformationID)
3505
+ );
3506
+ const headers = {};
3507
+ const queryParameters = {};
3508
+ const request = {
3509
+ method: "POST",
3510
+ path: requestPath,
3511
+ queryParameters,
3512
+ headers,
3513
+ data: transformationTry
3514
+ };
3515
+ return transporter.requestWithHttpInfo(request, requestOptions);
3516
+ },
1752
3517
  /**
1753
3518
  * Updates an authentication resource.
1754
3519
  *
@@ -1779,6 +3544,39 @@ function createIngestionClient({
1779
3544
  };
1780
3545
  return transporter.request(request, requestOptions);
1781
3546
  },
3547
+ /**
3548
+ * Updates an authentication resource.
3549
+ *
3550
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3551
+ *
3552
+ * Required API Key ACLs:
3553
+ * - addObject
3554
+ * - deleteIndex
3555
+ * - editSettings
3556
+ * @param updateAuthentication - The updateAuthentication object.
3557
+ * @param updateAuthentication.authenticationID - Unique identifier of an authentication resource.
3558
+ * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.
3559
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3560
+ * @see updateAuthentication for the plain version.
3561
+ */
3562
+ updateAuthenticationWithHTTPInfo({ authenticationID, authenticationUpdate }, requestOptions) {
3563
+ validateRequired("authenticationID", "updateAuthenticationWithHTTPInfo", authenticationID);
3564
+ validateRequired("authenticationUpdate", "updateAuthenticationWithHTTPInfo", authenticationUpdate);
3565
+ const requestPath = "/1/authentications/{authenticationID}".replace(
3566
+ "{authenticationID}",
3567
+ encodeURIComponent(authenticationID)
3568
+ );
3569
+ const headers = {};
3570
+ const queryParameters = {};
3571
+ const request = {
3572
+ method: "PATCH",
3573
+ path: requestPath,
3574
+ queryParameters,
3575
+ headers,
3576
+ data: authenticationUpdate
3577
+ };
3578
+ return transporter.requestWithHttpInfo(request, requestOptions);
3579
+ },
1782
3580
  /**
1783
3581
  * Updates the destination by its ID.
1784
3582
  *
@@ -1809,6 +3607,39 @@ function createIngestionClient({
1809
3607
  };
1810
3608
  return transporter.request(request, requestOptions);
1811
3609
  },
3610
+ /**
3611
+ * Updates the destination by its ID.
3612
+ *
3613
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3614
+ *
3615
+ * Required API Key ACLs:
3616
+ * - addObject
3617
+ * - deleteIndex
3618
+ * - editSettings
3619
+ * @param updateDestination - The updateDestination object.
3620
+ * @param updateDestination.destinationID - Unique identifier of a destination.
3621
+ * @param updateDestination.destinationUpdate - The destinationUpdate object.
3622
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3623
+ * @see updateDestination for the plain version.
3624
+ */
3625
+ updateDestinationWithHTTPInfo({ destinationID, destinationUpdate }, requestOptions) {
3626
+ validateRequired("destinationID", "updateDestinationWithHTTPInfo", destinationID);
3627
+ validateRequired("destinationUpdate", "updateDestinationWithHTTPInfo", destinationUpdate);
3628
+ const requestPath = "/1/destinations/{destinationID}".replace(
3629
+ "{destinationID}",
3630
+ encodeURIComponent(destinationID)
3631
+ );
3632
+ const headers = {};
3633
+ const queryParameters = {};
3634
+ const request = {
3635
+ method: "PATCH",
3636
+ path: requestPath,
3637
+ queryParameters,
3638
+ headers,
3639
+ data: destinationUpdate
3640
+ };
3641
+ return transporter.requestWithHttpInfo(request, requestOptions);
3642
+ },
1812
3643
  /**
1813
3644
  * Updates a source by its ID.
1814
3645
  *
@@ -1836,6 +3667,36 @@ function createIngestionClient({
1836
3667
  };
1837
3668
  return transporter.request(request, requestOptions);
1838
3669
  },
3670
+ /**
3671
+ * Updates a source by its ID.
3672
+ *
3673
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3674
+ *
3675
+ * Required API Key ACLs:
3676
+ * - addObject
3677
+ * - deleteIndex
3678
+ * - editSettings
3679
+ * @param updateSource - The updateSource object.
3680
+ * @param updateSource.sourceID - Unique identifier of a source.
3681
+ * @param updateSource.sourceUpdate - The sourceUpdate object.
3682
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3683
+ * @see updateSource for the plain version.
3684
+ */
3685
+ updateSourceWithHTTPInfo({ sourceID, sourceUpdate }, requestOptions) {
3686
+ validateRequired("sourceID", "updateSourceWithHTTPInfo", sourceID);
3687
+ validateRequired("sourceUpdate", "updateSourceWithHTTPInfo", sourceUpdate);
3688
+ const requestPath = "/1/sources/{sourceID}".replace("{sourceID}", encodeURIComponent(sourceID));
3689
+ const headers = {};
3690
+ const queryParameters = {};
3691
+ const request = {
3692
+ method: "PATCH",
3693
+ path: requestPath,
3694
+ queryParameters,
3695
+ headers,
3696
+ data: sourceUpdate
3697
+ };
3698
+ return transporter.requestWithHttpInfo(request, requestOptions);
3699
+ },
1839
3700
  /**
1840
3701
  * Partially updates a task by its ID.
1841
3702
  *
@@ -1863,6 +3724,36 @@ function createIngestionClient({
1863
3724
  };
1864
3725
  return transporter.request(request, requestOptions);
1865
3726
  },
3727
+ /**
3728
+ * Partially updates a task by its ID.
3729
+ *
3730
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3731
+ *
3732
+ * Required API Key ACLs:
3733
+ * - addObject
3734
+ * - deleteIndex
3735
+ * - editSettings
3736
+ * @param updateTask - The updateTask object.
3737
+ * @param updateTask.taskID - Unique identifier of a task.
3738
+ * @param updateTask.taskUpdate - The taskUpdate object.
3739
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3740
+ * @see updateTask for the plain version.
3741
+ */
3742
+ updateTaskWithHTTPInfo({ taskID, taskUpdate }, requestOptions) {
3743
+ validateRequired("taskID", "updateTaskWithHTTPInfo", taskID);
3744
+ validateRequired("taskUpdate", "updateTaskWithHTTPInfo", taskUpdate);
3745
+ const requestPath = "/2/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
3746
+ const headers = {};
3747
+ const queryParameters = {};
3748
+ const request = {
3749
+ method: "PATCH",
3750
+ path: requestPath,
3751
+ queryParameters,
3752
+ headers,
3753
+ data: taskUpdate
3754
+ };
3755
+ return transporter.requestWithHttpInfo(request, requestOptions);
3756
+ },
1866
3757
  /**
1867
3758
  * Updates a task by its ID using the v1 endpoint. Use `updateTask` instead.
1868
3759
  *
@@ -1892,6 +3783,38 @@ function createIngestionClient({
1892
3783
  };
1893
3784
  return transporter.request(request, requestOptions);
1894
3785
  },
3786
+ /**
3787
+ * Updates a task by its ID using the v1 endpoint. Use `updateTask` instead.
3788
+ *
3789
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3790
+ *
3791
+ * Required API Key ACLs:
3792
+ * - addObject
3793
+ * - deleteIndex
3794
+ * - editSettings
3795
+ *
3796
+ * @deprecated
3797
+ * @param updateTaskV1 - The updateTaskV1 object.
3798
+ * @param updateTaskV1.taskID - Unique identifier of a task.
3799
+ * @param updateTaskV1.taskUpdate - The taskUpdate object.
3800
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3801
+ * @see updateTaskV1 for the plain version.
3802
+ */
3803
+ updateTaskV1WithHTTPInfo({ taskID, taskUpdate }, requestOptions) {
3804
+ validateRequired("taskID", "updateTaskV1WithHTTPInfo", taskID);
3805
+ validateRequired("taskUpdate", "updateTaskV1WithHTTPInfo", taskUpdate);
3806
+ const requestPath = "/1/tasks/{taskID}".replace("{taskID}", encodeURIComponent(taskID));
3807
+ const headers = {};
3808
+ const queryParameters = {};
3809
+ const request = {
3810
+ method: "PATCH",
3811
+ path: requestPath,
3812
+ queryParameters,
3813
+ headers,
3814
+ data: taskUpdate
3815
+ };
3816
+ return transporter.requestWithHttpInfo(request, requestOptions);
3817
+ },
1895
3818
  /**
1896
3819
  * Updates a transformation by its ID.
1897
3820
  *
@@ -1923,6 +3846,40 @@ function createIngestionClient({
1923
3846
  };
1924
3847
  return transporter.request(request, requestOptions);
1925
3848
  },
3849
+ /**
3850
+ * Updates a transformation by its ID.
3851
+ *
3852
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3853
+ *
3854
+ * Required API Key ACLs:
3855
+ * - addObject
3856
+ * - deleteIndex
3857
+ * - editSettings
3858
+ * @param updateTransformation - The updateTransformation object.
3859
+ * @param updateTransformation.transformationID - Unique identifier of a transformation.
3860
+ * @param updateTransformation.transformationCreate - The transformationCreate object.
3861
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3862
+ * @see updateTransformation for the plain version.
3863
+ */
3864
+ updateTransformationWithHTTPInfo({ transformationID, transformationCreate }, requestOptions) {
3865
+ validateRequired("transformationID", "updateTransformationWithHTTPInfo", transformationID);
3866
+ validateRequired("transformationCreate", "updateTransformationWithHTTPInfo", transformationCreate);
3867
+ validateRequired("transformationCreate.name", "updateTransformationWithHTTPInfo", transformationCreate.name);
3868
+ const requestPath = "/1/transformations/{transformationID}".replace(
3869
+ "{transformationID}",
3870
+ encodeURIComponent(transformationID)
3871
+ );
3872
+ const headers = {};
3873
+ const queryParameters = {};
3874
+ const request = {
3875
+ method: "PUT",
3876
+ path: requestPath,
3877
+ queryParameters,
3878
+ headers,
3879
+ data: transformationCreate
3880
+ };
3881
+ return transporter.requestWithHttpInfo(request, requestOptions);
3882
+ },
1926
3883
  /**
1927
3884
  * Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
1928
3885
  *
@@ -1945,6 +3902,7 @@ function createIngestionClient({
1945
3902
  data: sourceCreate ? sourceCreate : {}
1946
3903
  };
1947
3904
  requestOptions = {
3905
+ ...requestOptions,
1948
3906
  timeouts: {
1949
3907
  connect: 18e4,
1950
3908
  read: 18e4,
@@ -1954,6 +3912,41 @@ function createIngestionClient({
1954
3912
  };
1955
3913
  return transporter.request(request, requestOptions);
1956
3914
  },
3915
+ /**
3916
+ * Validates a source payload to ensure it can be created and that the data source can be reached by Algolia.
3917
+ *
3918
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3919
+ *
3920
+ * Required API Key ACLs:
3921
+ * - addObject
3922
+ * - deleteIndex
3923
+ * - editSettings
3924
+ * @param sourceCreate -
3925
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3926
+ * @see validateSource for the plain version.
3927
+ */
3928
+ validateSourceWithHTTPInfo(sourceCreate, requestOptions = void 0) {
3929
+ const requestPath = "/1/sources/validate";
3930
+ const headers = {};
3931
+ const queryParameters = {};
3932
+ const request = {
3933
+ method: "POST",
3934
+ path: requestPath,
3935
+ queryParameters,
3936
+ headers,
3937
+ data: sourceCreate ? sourceCreate : {}
3938
+ };
3939
+ requestOptions = {
3940
+ ...requestOptions,
3941
+ timeouts: {
3942
+ connect: 18e4,
3943
+ read: 18e4,
3944
+ write: 18e4,
3945
+ ...requestOptions == null ? void 0 : requestOptions.timeouts
3946
+ }
3947
+ };
3948
+ return transporter.requestWithHttpInfo(request, requestOptions);
3949
+ },
1957
3950
  /**
1958
3951
  * Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
1959
3952
  *
@@ -1980,6 +3973,7 @@ function createIngestionClient({
1980
3973
  data: sourceUpdate
1981
3974
  };
1982
3975
  requestOptions = {
3976
+ ...requestOptions,
1983
3977
  timeouts: {
1984
3978
  connect: 18e4,
1985
3979
  read: 18e4,
@@ -1988,6 +3982,45 @@ function createIngestionClient({
1988
3982
  }
1989
3983
  };
1990
3984
  return transporter.request(request, requestOptions);
3985
+ },
3986
+ /**
3987
+ * Validates an update of a source payload to ensure it can be created and that the data source can be reached by Algolia.
3988
+ *
3989
+ * Resolves with the full HTTP response information: status code, headers (when the requester captures them), raw body and deserialized data. Bypasses the requests and responses caches: always performs the API call.
3990
+ *
3991
+ * Required API Key ACLs:
3992
+ * - addObject
3993
+ * - deleteIndex
3994
+ * - editSettings
3995
+ * @param validateSourceBeforeUpdate - The validateSourceBeforeUpdate object.
3996
+ * @param validateSourceBeforeUpdate.sourceID - Unique identifier of a source.
3997
+ * @param validateSourceBeforeUpdate.sourceUpdate - The sourceUpdate object.
3998
+ * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
3999
+ * @see validateSourceBeforeUpdate for the plain version.
4000
+ */
4001
+ validateSourceBeforeUpdateWithHTTPInfo({ sourceID, sourceUpdate }, requestOptions) {
4002
+ validateRequired("sourceID", "validateSourceBeforeUpdateWithHTTPInfo", sourceID);
4003
+ validateRequired("sourceUpdate", "validateSourceBeforeUpdateWithHTTPInfo", sourceUpdate);
4004
+ const requestPath = "/1/sources/{sourceID}/validate".replace("{sourceID}", encodeURIComponent(sourceID));
4005
+ const headers = {};
4006
+ const queryParameters = {};
4007
+ const request = {
4008
+ method: "POST",
4009
+ path: requestPath,
4010
+ queryParameters,
4011
+ headers,
4012
+ data: sourceUpdate
4013
+ };
4014
+ requestOptions = {
4015
+ ...requestOptions,
4016
+ timeouts: {
4017
+ connect: 18e4,
4018
+ read: 18e4,
4019
+ write: 18e4,
4020
+ ...requestOptions == null ? void 0 : requestOptions.timeouts
4021
+ }
4022
+ };
4023
+ return transporter.requestWithHttpInfo(request, requestOptions);
1991
4024
  }
1992
4025
  };
1993
4026
  }