@privateaim/core-http-kit 0.8.9 → 0.8.11

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