@privateaim/core-http-kit 0.8.10 → 0.8.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -72,25 +72,22 @@ function _async_to_generator$f(fn) {
72
72
  }
73
73
  class MasterImageGroupAPI extends BaseAPI {
74
74
  getMany(data) {
75
- var _this = this;
76
- return _async_to_generator$f(function*() {
77
- const response = yield _this.client.get(`master-image-groups${rapiq.buildQuery(data)}`);
75
+ return /*#__PURE__*/ _async_to_generator$f(function*() {
76
+ const response = yield this.client.get(`master-image-groups${rapiq.buildQuery(data)}`);
78
77
  return response.data;
79
- })();
78
+ }).call(this);
80
79
  }
81
80
  getOne(id) {
82
- var _this = this;
83
- return _async_to_generator$f(function*() {
84
- const response = yield _this.client.delete(`master-image-groups/${id}`);
81
+ return /*#__PURE__*/ _async_to_generator$f(function*() {
82
+ const response = yield this.client.delete(`master-image-groups/${id}`);
85
83
  return response.data;
86
- })();
84
+ }).call(this);
87
85
  }
88
86
  delete(id) {
89
- var _this = this;
90
- return _async_to_generator$f(function*() {
91
- const response = yield _this.client.delete(`master-image-groups/${id}`);
87
+ return /*#__PURE__*/ _async_to_generator$f(function*() {
88
+ const response = yield this.client.delete(`master-image-groups/${id}`);
92
89
  return response.data;
93
- })();
90
+ }).call(this);
94
91
  }
95
92
  }
96
93
 
@@ -158,35 +155,31 @@ function _object_spread$3(target) {
158
155
  }
159
156
  class MasterImageAPI extends BaseAPI {
160
157
  getMany(data) {
161
- var _this = this;
162
- return _async_to_generator$e(function*() {
163
- const response = yield _this.client.get(`master-images${rapiq.buildQuery(data)}`);
158
+ return /*#__PURE__*/ _async_to_generator$e(function*() {
159
+ const response = yield this.client.get(`master-images${rapiq.buildQuery(data)}`);
164
160
  return response.data;
165
- })();
161
+ }).call(this);
166
162
  }
167
163
  getOne(id, data) {
168
- var _this = this;
169
- return _async_to_generator$e(function*() {
170
- const response = yield _this.client.get(`master-images/${id}${rapiq.buildQuery(data)}`);
164
+ return /*#__PURE__*/ _async_to_generator$e(function*() {
165
+ const response = yield this.client.get(`master-images/${id}${rapiq.buildQuery(data)}`);
171
166
  return response.data;
172
- })();
167
+ }).call(this);
173
168
  }
174
169
  delete(id) {
175
- var _this = this;
176
- return _async_to_generator$e(function*() {
177
- const response = yield _this.client.delete(`master-images/${id}`);
170
+ return /*#__PURE__*/ _async_to_generator$e(function*() {
171
+ const response = yield this.client.delete(`master-images/${id}`);
178
172
  return response.data;
179
- })();
173
+ }).call(this);
180
174
  }
181
- runCommand(command, data = {}) {
182
- var _this = this;
183
- return _async_to_generator$e(function*() {
175
+ runCommand(_0) {
176
+ return /*#__PURE__*/ _async_to_generator$e(function*(command, data = {}) {
184
177
  const actionData = _object_spread$3({
185
178
  command
186
179
  }, data);
187
- const { data: response } = yield _this.client.post('master-images/command', actionData);
180
+ const { data: response } = yield this.client.post('master-images/command', actionData);
188
181
  return response;
189
- })();
182
+ }).apply(this, arguments);
190
183
  }
191
184
  }
192
185
 
@@ -226,39 +219,34 @@ function _async_to_generator$d(fn) {
226
219
  }
227
220
  class MasterImageEventLogAPI extends BaseAPI {
228
221
  getMany(options) {
229
- var _this = this;
230
- return _async_to_generator$d(function*() {
231
- const { data: response } = yield _this.client.get(`master-image-event-logs${rapiq.buildQuery(options)}`);
222
+ return /*#__PURE__*/ _async_to_generator$d(function*() {
223
+ const { data: response } = yield this.client.get(`master-image-event-logs${rapiq.buildQuery(options)}`);
232
224
  return response;
233
- })();
225
+ }).call(this);
234
226
  }
235
227
  getOne(id) {
236
- var _this = this;
237
- return _async_to_generator$d(function*() {
238
- const { data: response } = yield _this.client.get(`master-image-event-logs/${id}`);
228
+ return /*#__PURE__*/ _async_to_generator$d(function*() {
229
+ const { data: response } = yield this.client.get(`master-image-event-logs/${id}`);
239
230
  return response;
240
- })();
231
+ }).call(this);
241
232
  }
242
233
  delete(id) {
243
- var _this = this;
244
- return _async_to_generator$d(function*() {
245
- const { data: response } = yield _this.client.delete(`master-image-event-logs/${id}`);
234
+ return /*#__PURE__*/ _async_to_generator$d(function*() {
235
+ const { data: response } = yield this.client.delete(`master-image-event-logs/${id}`);
246
236
  return response;
247
- })();
237
+ }).call(this);
248
238
  }
249
239
  update(id, data) {
250
- var _this = this;
251
- return _async_to_generator$d(function*() {
252
- const { data: response } = yield _this.client.post(`master-image-event-logs/${id}`, data);
240
+ return /*#__PURE__*/ _async_to_generator$d(function*() {
241
+ const { data: response } = yield this.client.post(`master-image-event-logs/${id}`, data);
253
242
  return response;
254
- })();
243
+ }).call(this);
255
244
  }
256
245
  create(data) {
257
- var _this = this;
258
- return _async_to_generator$d(function*() {
259
- const { data: response } = yield _this.client.post('master-image-event-logs', data);
246
+ return /*#__PURE__*/ _async_to_generator$d(function*() {
247
+ const { data: response } = yield this.client.post('master-image-event-logs', data);
260
248
  return response;
261
- })();
249
+ }).call(this);
262
250
  }
263
251
  }
264
252
 
@@ -308,39 +296,34 @@ function _async_to_generator$c(fn) {
308
296
  }
309
297
  class ProjectAPI extends BaseAPI {
310
298
  getMany(record) {
311
- var _this = this;
312
- return _async_to_generator$c(function*() {
313
- const response = yield _this.client.get(`projects${rapiq.buildQuery(record)}`);
299
+ return /*#__PURE__*/ _async_to_generator$c(function*() {
300
+ const response = yield this.client.get(`projects${rapiq.buildQuery(record)}`);
314
301
  return response.data;
315
- })();
302
+ }).call(this);
316
303
  }
317
304
  getOne(id, requestRecord) {
318
- var _this = this;
319
- return _async_to_generator$c(function*() {
320
- const response = yield _this.client.get(`projects/${id}${rapiq.buildQuery(requestRecord)}`);
305
+ return /*#__PURE__*/ _async_to_generator$c(function*() {
306
+ const response = yield this.client.get(`projects/${id}${rapiq.buildQuery(requestRecord)}`);
321
307
  return response.data;
322
- })();
308
+ }).call(this);
323
309
  }
324
310
  create(data) {
325
- var _this = this;
326
- return _async_to_generator$c(function*() {
327
- const response = yield _this.client.post('projects', nullifyEmptyObjectProperties(data));
311
+ return /*#__PURE__*/ _async_to_generator$c(function*() {
312
+ const response = yield this.client.post('projects', nullifyEmptyObjectProperties(data));
328
313
  return response.data;
329
- })();
314
+ }).call(this);
330
315
  }
331
316
  delete(id) {
332
- var _this = this;
333
- return _async_to_generator$c(function*() {
334
- const response = yield _this.client.delete(`projects/${id}`);
317
+ return /*#__PURE__*/ _async_to_generator$c(function*() {
318
+ const response = yield this.client.delete(`projects/${id}`);
335
319
  return response.data;
336
- })();
320
+ }).call(this);
337
321
  }
338
322
  update(id, data) {
339
- var _this = this;
340
- return _async_to_generator$c(function*() {
341
- const response = yield _this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
323
+ return /*#__PURE__*/ _async_to_generator$c(function*() {
324
+ const response = yield this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
342
325
  return response.data;
343
- })();
326
+ }).call(this);
344
327
  }
345
328
  }
346
329
 
@@ -380,39 +363,34 @@ function _async_to_generator$b(fn) {
380
363
  }
381
364
  class ProjectNodeAPI extends BaseAPI {
382
365
  getMany(data) {
383
- var _this = this;
384
- return _async_to_generator$b(function*() {
385
- const response = yield _this.client.get(`project-nodes${rapiq.buildQuery(data)}`);
366
+ return /*#__PURE__*/ _async_to_generator$b(function*() {
367
+ const response = yield this.client.get(`project-nodes${rapiq.buildQuery(data)}`);
386
368
  return response.data;
387
- })();
369
+ }).call(this);
388
370
  }
389
371
  getOne(id, data) {
390
- var _this = this;
391
- return _async_to_generator$b(function*() {
392
- const response = yield _this.client.get(`project-nodes/${id}${rapiq.buildQuery(data)}`);
372
+ return /*#__PURE__*/ _async_to_generator$b(function*() {
373
+ const response = yield this.client.get(`project-nodes/${id}${rapiq.buildQuery(data)}`);
393
374
  return response.data;
394
- })();
375
+ }).call(this);
395
376
  }
396
377
  create(data) {
397
- var _this = this;
398
- return _async_to_generator$b(function*() {
399
- const response = yield _this.client.post('project-nodes', data);
378
+ return /*#__PURE__*/ _async_to_generator$b(function*() {
379
+ const response = yield this.client.post('project-nodes', data);
400
380
  return response.data;
401
- })();
381
+ }).call(this);
402
382
  }
403
383
  update(id, data) {
404
- var _this = this;
405
- return _async_to_generator$b(function*() {
406
- const response = yield _this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
384
+ return /*#__PURE__*/ _async_to_generator$b(function*() {
385
+ const response = yield this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
407
386
  return response.data;
408
- })();
387
+ }).call(this);
409
388
  }
410
389
  delete(id) {
411
- var _this = this;
412
- return _async_to_generator$b(function*() {
413
- const response = yield _this.client.delete(`project-nodes/${id}`);
390
+ return /*#__PURE__*/ _async_to_generator$b(function*() {
391
+ const response = yield this.client.delete(`project-nodes/${id}`);
414
392
  return response.data;
415
- })();
393
+ }).call(this);
416
394
  }
417
395
  }
418
396
 
@@ -452,39 +430,34 @@ function _async_to_generator$a(fn) {
452
430
  }
453
431
  class RegistryAPI extends BaseAPI {
454
432
  getMany(options) {
455
- var _this = this;
456
- return _async_to_generator$a(function*() {
457
- const response = yield _this.client.get(`registries${rapiq.buildQuery(options)}`);
433
+ return /*#__PURE__*/ _async_to_generator$a(function*() {
434
+ const response = yield this.client.get(`registries${rapiq.buildQuery(options)}`);
458
435
  return response.data;
459
- })();
436
+ }).call(this);
460
437
  }
461
438
  getOne(id, options) {
462
- var _this = this;
463
- return _async_to_generator$a(function*() {
464
- const response = yield _this.client.get(`registries/${id}${rapiq.buildQuery(options)}`);
439
+ return /*#__PURE__*/ _async_to_generator$a(function*() {
440
+ const response = yield this.client.get(`registries/${id}${rapiq.buildQuery(options)}`);
465
441
  return response.data;
466
- })();
442
+ }).call(this);
467
443
  }
468
444
  create(data) {
469
- var _this = this;
470
- return _async_to_generator$a(function*() {
471
- const response = yield _this.client.post('registries', nullifyEmptyObjectProperties(data));
445
+ return /*#__PURE__*/ _async_to_generator$a(function*() {
446
+ const response = yield this.client.post('registries', nullifyEmptyObjectProperties(data));
472
447
  return response.data;
473
- })();
448
+ }).call(this);
474
449
  }
475
450
  update(id, data) {
476
- var _this = this;
477
- return _async_to_generator$a(function*() {
478
- const response = yield _this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
451
+ return /*#__PURE__*/ _async_to_generator$a(function*() {
452
+ const response = yield this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
479
453
  return response.data;
480
- })();
454
+ }).call(this);
481
455
  }
482
456
  delete(id) {
483
- var _this = this;
484
- return _async_to_generator$a(function*() {
485
- const response = yield _this.client.delete(`registries/${id}`);
457
+ return /*#__PURE__*/ _async_to_generator$a(function*() {
458
+ const response = yield this.client.delete(`registries/${id}`);
486
459
  return response.data;
487
- })();
460
+ }).call(this);
488
461
  }
489
462
  }
490
463
 
@@ -524,39 +497,34 @@ function _async_to_generator$9(fn) {
524
497
  }
525
498
  class RegistryProjectAPI extends BaseAPI {
526
499
  getMany(options) {
527
- var _this = this;
528
- return _async_to_generator$9(function*() {
529
- const response = yield _this.client.get(`registry-projects${rapiq.buildQuery(options)}`);
500
+ return /*#__PURE__*/ _async_to_generator$9(function*() {
501
+ const response = yield this.client.get(`registry-projects${rapiq.buildQuery(options)}`);
530
502
  return response.data;
531
- })();
503
+ }).call(this);
532
504
  }
533
505
  getOne(id, options) {
534
- var _this = this;
535
- return _async_to_generator$9(function*() {
536
- const response = yield _this.client.get(`registry-projects/${id}${rapiq.buildQuery(options)}`);
506
+ return /*#__PURE__*/ _async_to_generator$9(function*() {
507
+ const response = yield this.client.get(`registry-projects/${id}${rapiq.buildQuery(options)}`);
537
508
  return response.data;
538
- })();
509
+ }).call(this);
539
510
  }
540
511
  create(data) {
541
- var _this = this;
542
- return _async_to_generator$9(function*() {
543
- const response = yield _this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
512
+ return /*#__PURE__*/ _async_to_generator$9(function*() {
513
+ const response = yield this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
544
514
  return response.data;
545
- })();
515
+ }).call(this);
546
516
  }
547
517
  update(id, data) {
548
- var _this = this;
549
- return _async_to_generator$9(function*() {
550
- const response = yield _this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
518
+ return /*#__PURE__*/ _async_to_generator$9(function*() {
519
+ const response = yield this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
551
520
  return response.data;
552
- })();
521
+ }).call(this);
553
522
  }
554
523
  delete(id) {
555
- var _this = this;
556
- return _async_to_generator$9(function*() {
557
- const response = yield _this.client.delete(`registry-projects/${id}`);
524
+ return /*#__PURE__*/ _async_to_generator$9(function*() {
525
+ const response = yield this.client.delete(`registry-projects/${id}`);
558
526
  return response.data;
559
- })();
527
+ }).call(this);
560
528
  }
561
529
  }
562
530
 
@@ -624,48 +592,42 @@ function _object_spread$2(target) {
624
592
  }
625
593
  class NodeAPI extends BaseAPI {
626
594
  getMany(options) {
627
- var _this = this;
628
- return _async_to_generator$8(function*() {
629
- const response = yield _this.client.get(`nodes${rapiq.buildQuery(options)}`);
595
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
596
+ const response = yield this.client.get(`nodes${rapiq.buildQuery(options)}`);
630
597
  return response.data;
631
- })();
598
+ }).call(this);
632
599
  }
633
600
  getOne(id, options) {
634
- var _this = this;
635
- return _async_to_generator$8(function*() {
636
- const response = yield _this.client.get(`nodes/${id}${rapiq.buildQuery(options)}`);
601
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
602
+ const response = yield this.client.get(`nodes/${id}${rapiq.buildQuery(options)}`);
637
603
  return response.data;
638
- })();
604
+ }).call(this);
639
605
  }
640
606
  create(data) {
641
- var _this = this;
642
- return _async_to_generator$8(function*() {
643
- const response = yield _this.client.post('nodes', nullifyEmptyObjectProperties(data));
607
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
608
+ const response = yield this.client.post('nodes', nullifyEmptyObjectProperties(data));
644
609
  return response.data;
645
- })();
610
+ }).call(this);
646
611
  }
647
612
  update(id, data) {
648
- var _this = this;
649
- return _async_to_generator$8(function*() {
650
- const response = yield _this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
613
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
614
+ const response = yield this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
651
615
  return response.data;
652
- })();
616
+ }).call(this);
653
617
  }
654
618
  delete(id) {
655
- var _this = this;
656
- return _async_to_generator$8(function*() {
657
- const response = yield _this.client.delete(`nodes/${id}`);
619
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
620
+ const response = yield this.client.delete(`nodes/${id}`);
658
621
  return response.data;
659
- })();
622
+ }).call(this);
660
623
  }
661
624
  runCommand(id, task, data) {
662
- var _this = this;
663
- return _async_to_generator$8(function*() {
664
- const response = yield _this.client.post(`nodes/${id}/task`, _object_spread$2({
625
+ return /*#__PURE__*/ _async_to_generator$8(function*() {
626
+ const response = yield this.client.post(`nodes/${id}/task`, _object_spread$2({
665
627
  task
666
628
  }, data));
667
629
  return response.data;
668
- })();
630
+ }).call(this);
669
631
  }
670
632
  }
671
633
 
@@ -746,67 +708,59 @@ class AnalysisAPI extends BaseAPI {
746
708
  return new URL(this.getFilesDownloadPath(id), this.client.getBaseURL()).href;
747
709
  }
748
710
  getMany(options) {
749
- var _this = this;
750
- return _async_to_generator$7(function*() {
751
- const { data: response } = yield _this.client.get(`analyses${rapiq.buildQuery(options)}`);
711
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
712
+ const { data: response } = yield this.client.get(`analyses${rapiq.buildQuery(options)}`);
752
713
  return response;
753
- })();
714
+ }).call(this);
754
715
  }
755
716
  getOne(id, options, requestConfig) {
756
- var _this = this;
757
- return _async_to_generator$7(function*() {
758
- const { data: response } = yield _this.client.get(`analyses/${id}${rapiq.buildQuery(options)}`, requestConfig);
717
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
718
+ const { data: response } = yield this.client.get(`analyses/${id}${rapiq.buildQuery(options)}`, requestConfig);
759
719
  return response;
760
- })();
720
+ }).call(this);
761
721
  }
762
722
  delete(id) {
763
- var _this = this;
764
- return _async_to_generator$7(function*() {
765
- const { data: response } = yield _this.client.delete(`analyses/${id}`);
723
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
724
+ const { data: response } = yield this.client.delete(`analyses/${id}`);
766
725
  return response;
767
- })();
726
+ }).call(this);
768
727
  }
769
728
  update(id, data) {
770
- var _this = this;
771
- return _async_to_generator$7(function*() {
772
- const { data: response } = yield _this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
729
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
730
+ const { data: response } = yield this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
773
731
  return response;
774
- })();
732
+ }).call(this);
775
733
  }
776
734
  create(data) {
777
- var _this = this;
778
- return _async_to_generator$7(function*() {
779
- const { data: response } = yield _this.client.post('analyses', nullifyEmptyObjectProperties(data));
735
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
736
+ const { data: response } = yield this.client.post('analyses', nullifyEmptyObjectProperties(data));
780
737
  return response;
781
- })();
738
+ }).call(this);
782
739
  }
783
- runCommand(id, command, data = {}) {
784
- var _this = this;
785
- return _async_to_generator$7(function*() {
740
+ runCommand(_0, _1) {
741
+ return /*#__PURE__*/ _async_to_generator$7(function*(id, command, data = {}) {
786
742
  const actionData = _object_spread$1({
787
743
  command
788
744
  }, data);
789
- const { data: response } = yield _this.client.post(`analyses/${id}/command`, actionData);
745
+ const { data: response } = yield this.client.post(`analyses/${id}/command`, actionData);
790
746
  return response;
791
- })();
747
+ }).apply(this, arguments);
792
748
  }
793
749
  streamFiles(id) {
794
- var _this = this;
795
- return _async_to_generator$7(function*() {
796
- const response = yield _this.client.get(_this.getFilesDownloadPath(id), {
750
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
751
+ const response = yield this.client.get(this.getFilesDownloadPath(id), {
797
752
  responseType: 'stream'
798
753
  });
799
754
  return response.data;
800
- })();
755
+ }).call(this);
801
756
  }
802
757
  downloadResult(id) {
803
- var _this = this;
804
- return _async_to_generator$7(function*() {
805
- const response = yield _this.client.get(_this.getResultDownloadPath(id), {
758
+ return /*#__PURE__*/ _async_to_generator$7(function*() {
759
+ const response = yield this.client.get(this.getResultDownloadPath(id), {
806
760
  responseType: 'stream'
807
761
  });
808
762
  return response.data;
809
- })();
763
+ }).call(this);
810
764
  }
811
765
  }
812
766
 
@@ -846,39 +800,34 @@ function _async_to_generator$6(fn) {
846
800
  }
847
801
  class AnalysisBucketFileAPI extends BaseAPI {
848
802
  getMany(options) {
849
- var _this = this;
850
- return _async_to_generator$6(function*() {
851
- const response = yield _this.client.get(`analysis-bucket-files${rapiq.buildQuery(options)}`);
803
+ return /*#__PURE__*/ _async_to_generator$6(function*() {
804
+ const response = yield this.client.get(`analysis-bucket-files${rapiq.buildQuery(options)}`);
852
805
  return response.data;
853
- })();
806
+ }).call(this);
854
807
  }
855
808
  getOne(id) {
856
- var _this = this;
857
- return _async_to_generator$6(function*() {
858
- const response = yield _this.client.get(`analysis-bucket-files/${id}`);
809
+ return /*#__PURE__*/ _async_to_generator$6(function*() {
810
+ const response = yield this.client.get(`analysis-bucket-files/${id}`);
859
811
  return response.data;
860
- })();
812
+ }).call(this);
861
813
  }
862
814
  delete(id) {
863
- var _this = this;
864
- return _async_to_generator$6(function*() {
865
- const response = yield _this.client.delete(`analysis-bucket-files/${id}`);
815
+ return /*#__PURE__*/ _async_to_generator$6(function*() {
816
+ const response = yield this.client.delete(`analysis-bucket-files/${id}`);
866
817
  return response.data;
867
- })();
818
+ }).call(this);
868
819
  }
869
820
  update(id, data) {
870
- var _this = this;
871
- return _async_to_generator$6(function*() {
872
- const { data: response } = yield _this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
821
+ return /*#__PURE__*/ _async_to_generator$6(function*() {
822
+ const { data: response } = yield this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
873
823
  return response;
874
- })();
824
+ }).call(this);
875
825
  }
876
826
  create(data) {
877
- var _this = this;
878
- return _async_to_generator$6(function*() {
879
- const { data: response } = yield _this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
827
+ return /*#__PURE__*/ _async_to_generator$6(function*() {
828
+ const { data: response } = yield this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
880
829
  return response;
881
- })();
830
+ }).call(this);
882
831
  }
883
832
  }
884
833
 
@@ -918,39 +867,34 @@ function _async_to_generator$5(fn) {
918
867
  }
919
868
  class AnalysisLogAPI extends BaseAPI {
920
869
  getMany(options) {
921
- var _this = this;
922
- return _async_to_generator$5(function*() {
923
- const { data: response } = yield _this.client.get(`analysis-logs${rapiq.buildQuery(options)}`);
870
+ return /*#__PURE__*/ _async_to_generator$5(function*() {
871
+ const { data: response } = yield this.client.get(`analysis-logs${rapiq.buildQuery(options)}`);
924
872
  return response;
925
- })();
873
+ }).call(this);
926
874
  }
927
875
  getOne(id) {
928
- var _this = this;
929
- return _async_to_generator$5(function*() {
930
- const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
876
+ return /*#__PURE__*/ _async_to_generator$5(function*() {
877
+ const { data: response } = yield this.client.get(`analysis-logs/${id}`);
931
878
  return response;
932
- })();
879
+ }).call(this);
933
880
  }
934
881
  delete(id) {
935
- var _this = this;
936
- return _async_to_generator$5(function*() {
937
- const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
882
+ return /*#__PURE__*/ _async_to_generator$5(function*() {
883
+ const { data: response } = yield this.client.delete(`analysis-logs/${id}`);
938
884
  return response;
939
- })();
885
+ }).call(this);
940
886
  }
941
887
  update(id, data) {
942
- var _this = this;
943
- return _async_to_generator$5(function*() {
944
- const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
888
+ return /*#__PURE__*/ _async_to_generator$5(function*() {
889
+ const { data: response } = yield this.client.post(`analysis-logs/${id}`, data);
945
890
  return response;
946
- })();
891
+ }).call(this);
947
892
  }
948
893
  create(data) {
949
- var _this = this;
950
- return _async_to_generator$5(function*() {
951
- const { data: response } = yield _this.client.post('analysis-logs', data);
894
+ return /*#__PURE__*/ _async_to_generator$5(function*() {
895
+ const { data: response } = yield this.client.post('analysis-logs', data);
952
896
  return response;
953
- })();
897
+ }).call(this);
954
898
  }
955
899
  }
956
900
 
@@ -990,39 +934,34 @@ function _async_to_generator$4(fn) {
990
934
  }
991
935
  class TrainStationAPI extends BaseAPI {
992
936
  getMany(options) {
993
- var _this = this;
994
- return _async_to_generator$4(function*() {
995
- const { data: response } = yield _this.client.get(`analysis-nodes${rapiq.buildQuery(options)}`);
937
+ return /*#__PURE__*/ _async_to_generator$4(function*() {
938
+ const { data: response } = yield this.client.get(`analysis-nodes${rapiq.buildQuery(options)}`);
996
939
  return response;
997
- })();
940
+ }).call(this);
998
941
  }
999
942
  getOne(id) {
1000
- var _this = this;
1001
- return _async_to_generator$4(function*() {
1002
- const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
943
+ return /*#__PURE__*/ _async_to_generator$4(function*() {
944
+ const { data: response } = yield this.client.get(`analysis-nodes/${id}`);
1003
945
  return response;
1004
- })();
946
+ }).call(this);
1005
947
  }
1006
948
  delete(id) {
1007
- var _this = this;
1008
- return _async_to_generator$4(function*() {
1009
- const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
949
+ return /*#__PURE__*/ _async_to_generator$4(function*() {
950
+ const { data: response } = yield this.client.delete(`analysis-nodes/${id}`);
1010
951
  return response;
1011
- })();
952
+ }).call(this);
1012
953
  }
1013
954
  update(id, data) {
1014
- var _this = this;
1015
- return _async_to_generator$4(function*() {
1016
- const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
955
+ return /*#__PURE__*/ _async_to_generator$4(function*() {
956
+ const { data: response } = yield this.client.post(`analysis-nodes/${id}`, data);
1017
957
  return response;
1018
- })();
958
+ }).call(this);
1019
959
  }
1020
960
  create(data) {
1021
- var _this = this;
1022
- return _async_to_generator$4(function*() {
1023
- const { data: response } = yield _this.client.post('analysis-nodes', data);
961
+ return /*#__PURE__*/ _async_to_generator$4(function*() {
962
+ const { data: response } = yield this.client.post('analysis-nodes', data);
1024
963
  return response;
1025
- })();
964
+ }).call(this);
1026
965
  }
1027
966
  }
1028
967
 
@@ -1062,39 +1001,34 @@ function _async_to_generator$3(fn) {
1062
1001
  }
1063
1002
  class AnalysisNodeLogAPI extends BaseAPI {
1064
1003
  getMany(options) {
1065
- var _this = this;
1066
- return _async_to_generator$3(function*() {
1067
- const { data: response } = yield _this.client.get(`analysis-node-logs${rapiq.buildQuery(options)}`);
1004
+ return /*#__PURE__*/ _async_to_generator$3(function*() {
1005
+ const { data: response } = yield this.client.get(`analysis-node-logs${rapiq.buildQuery(options)}`);
1068
1006
  return response;
1069
- })();
1007
+ }).call(this);
1070
1008
  }
1071
1009
  getOne(id) {
1072
- var _this = this;
1073
- return _async_to_generator$3(function*() {
1074
- const { data: response } = yield _this.client.get(`analysis-node-logs/${id}`);
1010
+ return /*#__PURE__*/ _async_to_generator$3(function*() {
1011
+ const { data: response } = yield this.client.get(`analysis-node-logs/${id}`);
1075
1012
  return response;
1076
- })();
1013
+ }).call(this);
1077
1014
  }
1078
1015
  delete(id) {
1079
- var _this = this;
1080
- return _async_to_generator$3(function*() {
1081
- const { data: response } = yield _this.client.delete(`analysis-node-logs/${id}`);
1016
+ return /*#__PURE__*/ _async_to_generator$3(function*() {
1017
+ const { data: response } = yield this.client.delete(`analysis-node-logs/${id}`);
1082
1018
  return response;
1083
- })();
1019
+ }).call(this);
1084
1020
  }
1085
1021
  update(id, data) {
1086
- var _this = this;
1087
- return _async_to_generator$3(function*() {
1088
- const { data: response } = yield _this.client.post(`analysis-node-logs/${id}`, data);
1022
+ return /*#__PURE__*/ _async_to_generator$3(function*() {
1023
+ const { data: response } = yield this.client.post(`analysis-node-logs/${id}`, data);
1089
1024
  return response;
1090
- })();
1025
+ }).call(this);
1091
1026
  }
1092
1027
  create(data) {
1093
- var _this = this;
1094
- return _async_to_generator$3(function*() {
1095
- const { data: response } = yield _this.client.post('analysis-node-logs', data);
1028
+ return /*#__PURE__*/ _async_to_generator$3(function*() {
1029
+ const { data: response } = yield this.client.post('analysis-node-logs', data);
1096
1030
  return response;
1097
- })();
1031
+ }).call(this);
1098
1032
  }
1099
1033
  }
1100
1034
 
@@ -1134,39 +1068,34 @@ function _async_to_generator$2(fn) {
1134
1068
  }
1135
1069
  class AnalysisPermissionAPI extends BaseAPI {
1136
1070
  getMany(options) {
1137
- var _this = this;
1138
- return _async_to_generator$2(function*() {
1139
- const { data: response } = yield _this.client.get(`analysis-permissions${rapiq.buildQuery(options)}`);
1071
+ return /*#__PURE__*/ _async_to_generator$2(function*() {
1072
+ const { data: response } = yield this.client.get(`analysis-permissions${rapiq.buildQuery(options)}`);
1140
1073
  return response;
1141
- })();
1074
+ }).call(this);
1142
1075
  }
1143
1076
  getOne(id) {
1144
- var _this = this;
1145
- return _async_to_generator$2(function*() {
1146
- const { data: response } = yield _this.client.get(`analysis-permissions/${id}`);
1077
+ return /*#__PURE__*/ _async_to_generator$2(function*() {
1078
+ const { data: response } = yield this.client.get(`analysis-permissions/${id}`);
1147
1079
  return response;
1148
- })();
1080
+ }).call(this);
1149
1081
  }
1150
1082
  delete(id) {
1151
- var _this = this;
1152
- return _async_to_generator$2(function*() {
1153
- const { data: response } = yield _this.client.delete(`analysis-permissions/${id}`);
1083
+ return /*#__PURE__*/ _async_to_generator$2(function*() {
1084
+ const { data: response } = yield this.client.delete(`analysis-permissions/${id}`);
1154
1085
  return response;
1155
- })();
1086
+ }).call(this);
1156
1087
  }
1157
1088
  update(id, data) {
1158
- var _this = this;
1159
- return _async_to_generator$2(function*() {
1160
- const { data: response } = yield _this.client.post(`analysis-permissions/${id}`, data);
1089
+ return /*#__PURE__*/ _async_to_generator$2(function*() {
1090
+ const { data: response } = yield this.client.post(`analysis-permissions/${id}`, data);
1161
1091
  return response;
1162
- })();
1092
+ }).call(this);
1163
1093
  }
1164
1094
  create(data) {
1165
- var _this = this;
1166
- return _async_to_generator$2(function*() {
1167
- const { data: response } = yield _this.client.post('analysis-permissions', data);
1095
+ return /*#__PURE__*/ _async_to_generator$2(function*() {
1096
+ const { data: response } = yield this.client.post('analysis-permissions', data);
1168
1097
  return response;
1169
- })();
1098
+ }).call(this);
1170
1099
  }
1171
1100
  }
1172
1101
 
@@ -1234,20 +1163,18 @@ function _object_spread(target) {
1234
1163
  }
1235
1164
  class ServiceAPI extends BaseAPI {
1236
1165
  runCommand(id, command, data) {
1237
- var _this = this;
1238
- return _async_to_generator$1(function*() {
1166
+ return /*#__PURE__*/ _async_to_generator$1(function*() {
1239
1167
  data = data || {};
1240
- const { data: resultData } = yield _this.client.post(`services/${id}/command`, nullifyEmptyObjectProperties(_object_spread({
1168
+ const { data: resultData } = yield this.client.post(`services/${id}/command`, nullifyEmptyObjectProperties(_object_spread({
1241
1169
  command
1242
1170
  }, data)));
1243
1171
  return resultData;
1244
- })();
1172
+ }).call(this);
1245
1173
  }
1246
1174
  runRegistryCommand(command, data) {
1247
- var _this = this;
1248
- return _async_to_generator$1(function*() {
1249
- return _this.runCommand(coreKit.ServiceID.REGISTRY, command, data);
1250
- })();
1175
+ return /*#__PURE__*/ _async_to_generator$1(function*() {
1176
+ return this.runCommand(coreKit.ServiceID.REGISTRY, command, data);
1177
+ }).call(this);
1251
1178
  }
1252
1179
  }
1253
1180
 
@@ -1287,32 +1214,28 @@ function _async_to_generator(fn) {
1287
1214
  }
1288
1215
  class AnalysisBucketAPI extends BaseAPI {
1289
1216
  getMany(options) {
1290
- var _this = this;
1291
- return _async_to_generator(function*() {
1292
- const response = yield _this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
1217
+ return /*#__PURE__*/ _async_to_generator(function*() {
1218
+ const response = yield this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
1293
1219
  return response.data;
1294
- })();
1220
+ }).call(this);
1295
1221
  }
1296
1222
  getOne(id) {
1297
- var _this = this;
1298
- return _async_to_generator(function*() {
1299
- const response = yield _this.client.get(`analysis-buckets/${id}`);
1223
+ return /*#__PURE__*/ _async_to_generator(function*() {
1224
+ const response = yield this.client.get(`analysis-buckets/${id}`);
1300
1225
  return response.data;
1301
- })();
1226
+ }).call(this);
1302
1227
  }
1303
1228
  create(data) {
1304
- var _this = this;
1305
- return _async_to_generator(function*() {
1306
- const { data: response } = yield _this.client.post('analysis-buckets', data);
1229
+ return /*#__PURE__*/ _async_to_generator(function*() {
1230
+ const { data: response } = yield this.client.post('analysis-buckets', data);
1307
1231
  return response;
1308
- })();
1232
+ }).call(this);
1309
1233
  }
1310
1234
  delete(id) {
1311
- var _this = this;
1312
- return _async_to_generator(function*() {
1313
- const response = yield _this.client.delete(`analysis-buckets/${id}`);
1235
+ return /*#__PURE__*/ _async_to_generator(function*() {
1236
+ const response = yield this.client.delete(`analysis-buckets/${id}`);
1314
1237
  return response.data;
1315
- })();
1238
+ }).call(this);
1316
1239
  }
1317
1240
  }
1318
1241