@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/CHANGELOG.md +22 -0
- package/dist/index.cjs +233 -310
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +233 -310
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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
|
-
|
|
75
|
-
|
|
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
|
-
|
|
82
|
-
|
|
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
|
-
|
|
89
|
-
|
|
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
|
-
|
|
161
|
-
|
|
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
|
-
|
|
168
|
-
|
|
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
|
-
|
|
175
|
-
|
|
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(
|
|
181
|
-
|
|
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
|
|
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
|
-
|
|
229
|
-
|
|
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
|
-
|
|
236
|
-
|
|
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
|
-
|
|
243
|
-
|
|
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
|
-
|
|
250
|
-
|
|
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
|
-
|
|
257
|
-
|
|
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
|
-
|
|
311
|
-
|
|
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
|
-
|
|
318
|
-
|
|
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
|
-
|
|
325
|
-
|
|
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
|
-
|
|
332
|
-
|
|
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
|
-
|
|
339
|
-
|
|
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
|
-
|
|
383
|
-
|
|
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
|
-
|
|
390
|
-
|
|
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
|
-
|
|
397
|
-
|
|
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
|
-
|
|
404
|
-
|
|
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
|
-
|
|
411
|
-
|
|
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
|
-
|
|
455
|
-
|
|
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
|
-
|
|
462
|
-
|
|
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
|
-
|
|
469
|
-
|
|
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
|
-
|
|
476
|
-
|
|
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
|
-
|
|
483
|
-
|
|
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
|
-
|
|
527
|
-
|
|
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
|
-
|
|
534
|
-
|
|
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
|
-
|
|
541
|
-
|
|
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
|
-
|
|
548
|
-
|
|
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
|
-
|
|
555
|
-
|
|
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
|
-
|
|
627
|
-
|
|
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
|
-
|
|
634
|
-
|
|
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
|
-
|
|
641
|
-
|
|
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
|
-
|
|
648
|
-
|
|
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
|
-
|
|
655
|
-
|
|
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
|
-
|
|
662
|
-
|
|
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
|
-
|
|
749
|
-
|
|
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
|
-
|
|
756
|
-
|
|
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
|
-
|
|
763
|
-
|
|
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
|
-
|
|
770
|
-
|
|
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
|
-
|
|
777
|
-
|
|
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(
|
|
783
|
-
|
|
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
|
|
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
|
-
|
|
794
|
-
|
|
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
|
-
|
|
803
|
-
|
|
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
|
-
|
|
849
|
-
|
|
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
|
-
|
|
856
|
-
|
|
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
|
-
|
|
863
|
-
|
|
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
|
-
|
|
870
|
-
|
|
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
|
-
|
|
877
|
-
|
|
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
|
-
|
|
921
|
-
|
|
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
|
-
|
|
928
|
-
|
|
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
|
-
|
|
935
|
-
|
|
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
|
-
|
|
942
|
-
|
|
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
|
-
|
|
949
|
-
|
|
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
|
-
|
|
993
|
-
|
|
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
|
-
|
|
1000
|
-
|
|
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
|
-
|
|
1007
|
-
|
|
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
|
-
|
|
1014
|
-
|
|
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
|
-
|
|
1021
|
-
|
|
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
|
-
|
|
1065
|
-
|
|
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
|
-
|
|
1072
|
-
|
|
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
|
-
|
|
1079
|
-
|
|
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
|
-
|
|
1086
|
-
|
|
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
|
-
|
|
1093
|
-
|
|
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
|
-
|
|
1137
|
-
|
|
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
|
-
|
|
1144
|
-
|
|
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
|
-
|
|
1151
|
-
|
|
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
|
-
|
|
1158
|
-
|
|
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
|
-
|
|
1165
|
-
|
|
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
|
-
|
|
1237
|
-
return _async_to_generator$1(function*() {
|
|
1165
|
+
return /*#__PURE__*/ _async_to_generator$1(function*() {
|
|
1238
1166
|
data = data || {};
|
|
1239
|
-
const { data: resultData } = yield
|
|
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
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
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
|
-
|
|
1290
|
-
|
|
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
|
-
|
|
1297
|
-
|
|
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
|
-
|
|
1304
|
-
|
|
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
|
-
|
|
1311
|
-
|
|
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
|
|