@algolia/ingestion 1.0.0-alpha.73 → 1.0.0-alpha.75

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.
Files changed (37) hide show
  1. package/dist/ingestion.cjs +151 -38
  2. package/dist/ingestion.esm.browser.js +153 -40
  3. package/dist/ingestion.esm.node.js +151 -38
  4. package/dist/ingestion.umd.js +2 -2
  5. package/dist/model/authentication.d.ts +4 -4
  6. package/dist/model/authentication.d.ts.map +1 -1
  7. package/dist/model/authenticationCreate.d.ts +1 -1
  8. package/dist/model/authenticationCreate.d.ts.map +1 -1
  9. package/dist/model/authenticationUpdate.d.ts +1 -1
  10. package/dist/model/authenticationUpdate.d.ts.map +1 -1
  11. package/dist/model/commercetoolsCustomFields.d.ts +18 -0
  12. package/dist/model/commercetoolsCustomFields.d.ts.map +1 -0
  13. package/dist/model/destination.d.ts +3 -0
  14. package/dist/model/destination.d.ts.map +1 -1
  15. package/dist/model/destinationUpdate.d.ts +3 -0
  16. package/dist/model/destinationUpdate.d.ts.map +1 -1
  17. package/dist/model/index.d.ts +1 -0
  18. package/dist/model/index.d.ts.map +1 -1
  19. package/dist/model/sourceBigCommerce.d.ts +1 -1
  20. package/dist/model/sourceBigCommerce.d.ts.map +1 -1
  21. package/dist/model/sourceCommercetools.d.ts +2 -0
  22. package/dist/model/sourceCommercetools.d.ts.map +1 -1
  23. package/dist/model/sourceUpdateCommercetools.d.ts +2 -0
  24. package/dist/model/sourceUpdateCommercetools.d.ts.map +1 -1
  25. package/dist/src/ingestionClient.d.ts +151 -38
  26. package/dist/src/ingestionClient.d.ts.map +1 -1
  27. package/model/authentication.ts +4 -4
  28. package/model/authenticationCreate.ts +1 -1
  29. package/model/authenticationUpdate.ts +1 -1
  30. package/model/commercetoolsCustomFields.ts +21 -0
  31. package/model/destination.ts +3 -0
  32. package/model/destinationUpdate.ts +3 -0
  33. package/model/index.ts +1 -0
  34. package/model/sourceBigCommerce.ts +1 -1
  35. package/model/sourceCommercetools.ts +4 -0
  36. package/model/sourceUpdateCommercetools.ts +4 -0
  37. package/package.json +6 -6
@@ -4,7 +4,7 @@ var clientCommon = require('@algolia/client-common');
4
4
  var requesterNodeHttp = require('@algolia/requester-node-http');
5
5
 
6
6
  // Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
7
- const apiClientVersion = '1.0.0-alpha.73';
7
+ const apiClientVersion = '1.0.0-alpha.75';
8
8
  const REGIONS = ['eu', 'us'];
9
9
  function getDefaultHosts(region) {
10
10
  const url = 'data.{region}.algolia.com'.replace('{region}', region);
@@ -91,7 +91,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
91
91
  /**
92
92
  * Create a authentication.
93
93
  *
94
- * @summary Create a authentication.
94
+ * Required API Key ACLs:
95
+ * - addObject
96
+ * - deleteIndex
97
+ * - editSettings.
98
+ *
95
99
  * @param authenticationCreate -.
96
100
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
97
101
  */
@@ -123,7 +127,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
123
127
  /**
124
128
  * Create a destination.
125
129
  *
126
- * @summary Create a destination.
130
+ * Required API Key ACLs:
131
+ * - addObject
132
+ * - deleteIndex
133
+ * - editSettings.
134
+ *
127
135
  * @param destinationCreate -.
128
136
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
129
137
  */
@@ -155,7 +163,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
155
163
  /**
156
164
  * Create a source.
157
165
  *
158
- * @summary Create a source.
166
+ * Required API Key ACLs:
167
+ * - addObject
168
+ * - deleteIndex
169
+ * - editSettings.
170
+ *
159
171
  * @param sourceCreate -.
160
172
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
161
173
  */
@@ -187,7 +199,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
187
199
  /**
188
200
  * Create a task.
189
201
  *
190
- * @summary Create a task.
191
202
  * @param taskCreate -.
192
203
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
193
204
  */
@@ -222,7 +233,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
222
233
  /**
223
234
  * This method allow you to send requests to the Algolia REST API.
224
235
  *
225
- * @summary Send requests to the Algolia REST API.
226
236
  * @param customDelete - The customDelete object.
227
237
  * @param customDelete.path - Path of the endpoint, anything after \"/1\" must be specified.
228
238
  * @param customDelete.parameters - Query parameters to apply to the current query.
@@ -246,7 +256,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
246
256
  /**
247
257
  * This method allow you to send requests to the Algolia REST API.
248
258
  *
249
- * @summary Send requests to the Algolia REST API.
250
259
  * @param customGet - The customGet object.
251
260
  * @param customGet.path - Path of the endpoint, anything after \"/1\" must be specified.
252
261
  * @param customGet.parameters - Query parameters to apply to the current query.
@@ -270,7 +279,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
270
279
  /**
271
280
  * This method allow you to send requests to the Algolia REST API.
272
281
  *
273
- * @summary Send requests to the Algolia REST API.
274
282
  * @param customPost - The customPost object.
275
283
  * @param customPost.path - Path of the endpoint, anything after \"/1\" must be specified.
276
284
  * @param customPost.parameters - Query parameters to apply to the current query.
@@ -296,7 +304,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
296
304
  /**
297
305
  * This method allow you to send requests to the Algolia REST API.
298
306
  *
299
- * @summary Send requests to the Algolia REST API.
300
307
  * @param customPut - The customPut object.
301
308
  * @param customPut.path - Path of the endpoint, anything after \"/1\" must be specified.
302
309
  * @param customPut.parameters - Query parameters to apply to the current query.
@@ -322,7 +329,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
322
329
  /**
323
330
  * Soft delete the authentication of the given authenticationID.
324
331
  *
325
- * @summary Delete a authentication.
332
+ * Required API Key ACLs:
333
+ * - addObject
334
+ * - deleteIndex
335
+ * - editSettings.
336
+ *
326
337
  * @param deleteAuthentication - The deleteAuthentication object.
327
338
  * @param deleteAuthentication.authenticationID - The authentication UUID.
328
339
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -345,7 +356,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
345
356
  /**
346
357
  * Soft delete the destination of the given destinationID.
347
358
  *
348
- * @summary Delete a destination.
359
+ * Required API Key ACLs:
360
+ * - addObject
361
+ * - deleteIndex
362
+ * - editSettings.
363
+ *
349
364
  * @param deleteDestination - The deleteDestination object.
350
365
  * @param deleteDestination.destinationID - The destination UUID.
351
366
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -368,7 +383,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
368
383
  /**
369
384
  * Soft delete the source of the given sourceID.
370
385
  *
371
- * @summary Delete a source.
386
+ * Required API Key ACLs:
387
+ * - addObject
388
+ * - deleteIndex
389
+ * - editSettings.
390
+ *
372
391
  * @param deleteSource - The deleteSource object.
373
392
  * @param deleteSource.sourceID - The source UUID.
374
393
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -391,7 +410,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
391
410
  /**
392
411
  * Soft delete the task of the given taskID.
393
412
  *
394
- * @summary Delete a task.
395
413
  * @param deleteTask - The deleteTask object.
396
414
  * @param deleteTask.taskID - The task UUID.
397
415
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -414,7 +432,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
414
432
  /**
415
433
  * Disable the task of the given taskID.
416
434
  *
417
- * @summary Disable a task.
435
+ * Required API Key ACLs:
436
+ * - addObject
437
+ * - deleteIndex
438
+ * - editSettings.
439
+ *
418
440
  * @param disableTask - The disableTask object.
419
441
  * @param disableTask.taskID - The task UUID.
420
442
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -437,7 +459,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
437
459
  /**
438
460
  * Enable the task of the given taskID.
439
461
  *
440
- * @summary Enable a task.
462
+ * Required API Key ACLs:
463
+ * - addObject
464
+ * - deleteIndex
465
+ * - editSettings.
466
+ *
441
467
  * @param enableTask - The enableTask object.
442
468
  * @param enableTask.taskID - The task UUID.
443
469
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -460,7 +486,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
460
486
  /**
461
487
  * Get the authentication of the given authenticationID.
462
488
  *
463
- * @summary Get a authentication.
489
+ * Required API Key ACLs:
490
+ * - addObject
491
+ * - deleteIndex
492
+ * - editSettings.
493
+ *
464
494
  * @param getAuthentication - The getAuthentication object.
465
495
  * @param getAuthentication.authenticationID - The authentication UUID.
466
496
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -483,7 +513,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
483
513
  /**
484
514
  * Get a list of authentications for the given query parameters, with pagination details.
485
515
  *
486
- * @summary Get a list of authentications.
516
+ * Required API Key ACLs:
517
+ * - addObject
518
+ * - deleteIndex
519
+ * - editSettings.
520
+ *
487
521
  * @param getAuthentications - The getAuthentications object.
488
522
  * @param getAuthentications.itemsPerPage - The number of items per page to return.
489
523
  * @param getAuthentications.page - The page number to fetch, starting at 1.
@@ -526,7 +560,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
526
560
  /**
527
561
  * Get the destination of the given destinationID.
528
562
  *
529
- * @summary Get a destination.
563
+ * Required API Key ACLs:
564
+ * - addObject
565
+ * - deleteIndex
566
+ * - editSettings.
567
+ *
530
568
  * @param getDestination - The getDestination object.
531
569
  * @param getDestination.destinationID - The destination UUID.
532
570
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -549,7 +587,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
549
587
  /**
550
588
  * Get a list of destinations for the given query parameters, with pagination details.
551
589
  *
552
- * @summary Get a list of destinations.
590
+ * Required API Key ACLs:
591
+ * - addObject
592
+ * - deleteIndex
593
+ * - editSettings.
594
+ *
553
595
  * @param getDestinations - The getDestinations object.
554
596
  * @param getDestinations.itemsPerPage - The number of items per page to return.
555
597
  * @param getDestinations.page - The page number to fetch, starting at 1.
@@ -592,7 +634,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
592
634
  /**
593
635
  * Retrieve a stream listing for a given Singer specification compatible docker type source ID.
594
636
  *
595
- * @summary Retrieve a stream listing.
637
+ * Required API Key ACLs:
638
+ * - addObject
639
+ * - deleteIndex
640
+ * - editSettings.
641
+ *
596
642
  * @param getDockerSourceStreams - The getDockerSourceStreams object.
597
643
  * @param getDockerSourceStreams.sourceID - The source UUID.
598
644
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -615,7 +661,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
615
661
  /**
616
662
  * Get a single event for a specific runID.
617
663
  *
618
- * @summary Get an event.
664
+ * Required API Key ACLs:
665
+ * - addObject
666
+ * - deleteIndex
667
+ * - editSettings.
668
+ *
619
669
  * @param getEvent - The getEvent object.
620
670
  * @param getEvent.runID - The run UUID.
621
671
  * @param getEvent.eventID - The event UUID.
@@ -644,7 +694,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
644
694
  /**
645
695
  * Get a list of events associated to the given runID, for the given query parameters.
646
696
  *
647
- * @summary Get a list of events.
697
+ * Required API Key ACLs:
698
+ * - addObject
699
+ * - deleteIndex
700
+ * - editSettings.
701
+ *
648
702
  * @param getEvents - The getEvents object.
649
703
  * @param getEvents.runID - The run UUID.
650
704
  * @param getEvents.itemsPerPage - The number of items per page to return.
@@ -699,7 +753,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
699
753
  /**
700
754
  * Get a single run for the given ID.
701
755
  *
702
- * @summary Get a run.
756
+ * Required API Key ACLs:
757
+ * - addObject
758
+ * - deleteIndex
759
+ * - editSettings.
760
+ *
703
761
  * @param getRun - The getRun object.
704
762
  * @param getRun.runID - The run UUID.
705
763
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -722,7 +780,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
722
780
  /**
723
781
  * Get a list of runs for the given query parameters, with pagination details.
724
782
  *
725
- * @summary Get a list of runs.
783
+ * Required API Key ACLs:
784
+ * - addObject
785
+ * - deleteIndex
786
+ * - editSettings.
787
+ *
726
788
  * @param getRuns - The getRuns object.
727
789
  * @param getRuns.itemsPerPage - The number of items per page to return.
728
790
  * @param getRuns.page - The page number to fetch, starting at 1.
@@ -773,7 +835,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
773
835
  /**
774
836
  * Get the source of the given sourceID.
775
837
  *
776
- * @summary Get a source.
838
+ * Required API Key ACLs:
839
+ * - addObject
840
+ * - deleteIndex
841
+ * - editSettings.
842
+ *
777
843
  * @param getSource - The getSource object.
778
844
  * @param getSource.sourceID - The source UUID.
779
845
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -796,7 +862,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
796
862
  /**
797
863
  * Get a list of sources for the given query parameters, with pagination details.
798
864
  *
799
- * @summary Get a list of sources.
865
+ * Required API Key ACLs:
866
+ * - addObject
867
+ * - deleteIndex
868
+ * - editSettings.
869
+ *
800
870
  * @param getSources - The getSources object.
801
871
  * @param getSources.itemsPerPage - The number of items per page to return.
802
872
  * @param getSources.page - The page number to fetch, starting at 1.
@@ -839,7 +909,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
839
909
  /**
840
910
  * Get the task of the given taskID.
841
911
  *
842
- * @summary Get a task.
912
+ * Required API Key ACLs:
913
+ * - addObject
914
+ * - deleteIndex
915
+ * - editSettings.
916
+ *
843
917
  * @param getTask - The getTask object.
844
918
  * @param getTask.taskID - The task UUID.
845
919
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -862,7 +936,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
862
936
  /**
863
937
  * Get a list of tasks for the given query parameters, with pagination details.
864
938
  *
865
- * @summary Get a list of tasks.
939
+ * Required API Key ACLs:
940
+ * - addObject
941
+ * - deleteIndex
942
+ * - editSettings.
943
+ *
866
944
  * @param getTasks - The getTasks object.
867
945
  * @param getTasks.itemsPerPage - The number of items per page to return.
868
946
  * @param getTasks.page - The page number to fetch, starting at 1.
@@ -917,7 +995,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
917
995
  /**
918
996
  * Run the task of the given taskID.
919
997
  *
920
- * @summary Run a task.
998
+ * Required API Key ACLs:
999
+ * - addObject
1000
+ * - deleteIndex
1001
+ * - editSettings.
1002
+ *
921
1003
  * @param runTask - The runTask object.
922
1004
  * @param runTask.taskID - The task UUID.
923
1005
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -940,7 +1022,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
940
1022
  /**
941
1023
  * Search among authentications with a defined set of parameters.
942
1024
  *
943
- * @summary Search among authentications.
1025
+ * Required API Key ACLs:
1026
+ * - addObject
1027
+ * - deleteIndex
1028
+ * - editSettings.
1029
+ *
944
1030
  * @param authenticationSearch - The authenticationSearch object.
945
1031
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
946
1032
  */
@@ -966,7 +1052,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
966
1052
  /**
967
1053
  * Search among destinations with a defined set of parameters.
968
1054
  *
969
- * @summary Search among destinations.
1055
+ * Required API Key ACLs:
1056
+ * - addObject
1057
+ * - deleteIndex
1058
+ * - editSettings.
1059
+ *
970
1060
  * @param destinationSearch - The destinationSearch object.
971
1061
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
972
1062
  */
@@ -992,7 +1082,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
992
1082
  /**
993
1083
  * Search among sources with a defined set of parameters.
994
1084
  *
995
- * @summary Search among sources.
1085
+ * Required API Key ACLs:
1086
+ * - addObject
1087
+ * - deleteIndex
1088
+ * - editSettings.
1089
+ *
996
1090
  * @param sourceSearch - The sourceSearch object.
997
1091
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
998
1092
  */
@@ -1018,7 +1112,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1018
1112
  /**
1019
1113
  * Search among tasks with a defined set of parameters.
1020
1114
  *
1021
- * @summary Search among tasks.
1115
+ * Required API Key ACLs:
1116
+ * - addObject
1117
+ * - deleteIndex
1118
+ * - editSettings.
1119
+ *
1022
1120
  * @param taskSearch - The taskSearch object.
1023
1121
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
1024
1122
  */
@@ -1044,7 +1142,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1044
1142
  /**
1045
1143
  * Trigger a stream listing request for a Singer specification compatible docker type source.
1046
1144
  *
1047
- * @summary Trigger a stream listing request.
1145
+ * Required API Key ACLs:
1146
+ * - addObject
1147
+ * - deleteIndex
1148
+ * - editSettings.
1149
+ *
1048
1150
  * @param triggerDockerSourceDiscover - The triggerDockerSourceDiscover object.
1049
1151
  * @param triggerDockerSourceDiscover.sourceID - The source UUID.
1050
1152
  * @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
@@ -1067,7 +1169,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1067
1169
  /**
1068
1170
  * Update the authentication of the given authenticationID.
1069
1171
  *
1070
- * @summary Update a authentication.
1172
+ * Required API Key ACLs:
1173
+ * - addObject
1174
+ * - deleteIndex
1175
+ * - editSettings.
1176
+ *
1071
1177
  * @param updateAuthentication - The updateAuthentication object.
1072
1178
  * @param updateAuthentication.authenticationID - The authentication UUID.
1073
1179
  * @param updateAuthentication.authenticationUpdate - The authenticationUpdate object.
@@ -1095,7 +1201,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1095
1201
  /**
1096
1202
  * Update the destination of the given destinationID.
1097
1203
  *
1098
- * @summary Update a destination.
1204
+ * Required API Key ACLs:
1205
+ * - addObject
1206
+ * - deleteIndex
1207
+ * - editSettings.
1208
+ *
1099
1209
  * @param updateDestination - The updateDestination object.
1100
1210
  * @param updateDestination.destinationID - The destination UUID.
1101
1211
  * @param updateDestination.destinationUpdate - The destinationUpdate object.
@@ -1123,7 +1233,11 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1123
1233
  /**
1124
1234
  * Update the source of the given sourceID.
1125
1235
  *
1126
- * @summary Update a source.
1236
+ * Required API Key ACLs:
1237
+ * - addObject
1238
+ * - deleteIndex
1239
+ * - editSettings.
1240
+ *
1127
1241
  * @param updateSource - The updateSource object.
1128
1242
  * @param updateSource.sourceID - The source UUID.
1129
1243
  * @param updateSource.sourceUpdate - The sourceUpdate object.
@@ -1151,7 +1265,6 @@ function createIngestionClient({ appId: appIdOption, apiKey: apiKeyOption, authM
1151
1265
  /**
1152
1266
  * Update the task of the given taskID.
1153
1267
  *
1154
- * @summary Update a task.
1155
1268
  * @param updateTask - The updateTask object.
1156
1269
  * @param updateTask.taskID - The task UUID.
1157
1270
  * @param updateTask.taskUpdate - The taskUpdate object.