@privateaim/core-http-kit 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -39,7 +39,7 @@ class BaseAPI {
39
39
  * Author Peter Placzek (tada5hi)
40
40
  * For the full copyright and license information,
41
41
  * view the LICENSE file that was distributed with this source code.
42
- */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
42
+ */ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
43
43
  try {
44
44
  var info = gen[key](arg);
45
45
  var value = info.value;
@@ -53,16 +53,16 @@ class BaseAPI {
53
53
  Promise.resolve(value).then(_next, _throw);
54
54
  }
55
55
  }
56
- function _async_to_generator$c(fn) {
56
+ function _async_to_generator$d(fn) {
57
57
  return function() {
58
58
  var self = this, args = arguments;
59
59
  return new Promise(function(resolve, reject) {
60
60
  var gen = fn.apply(self, args);
61
61
  function _next(value) {
62
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
62
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
63
63
  }
64
64
  function _throw(err) {
65
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
65
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
66
66
  }
67
67
  _next(undefined);
68
68
  });
@@ -71,14 +71,21 @@ function _async_to_generator$c(fn) {
71
71
  class MasterImageGroupAPI extends BaseAPI {
72
72
  getMany(data) {
73
73
  var _this = this;
74
- return _async_to_generator$c(function*() {
74
+ return _async_to_generator$d(function*() {
75
75
  const response = yield _this.client.get(`master-image-groups${buildQuery(data)}`);
76
76
  return response.data;
77
77
  })();
78
78
  }
79
79
  getOne(id) {
80
80
  var _this = this;
81
- return _async_to_generator$c(function*() {
81
+ return _async_to_generator$d(function*() {
82
+ const response = yield _this.client.delete(`master-image-groups/${id}`);
83
+ return response.data;
84
+ })();
85
+ }
86
+ delete(id) {
87
+ var _this = this;
88
+ return _async_to_generator$d(function*() {
82
89
  const response = yield _this.client.delete(`master-image-groups/${id}`);
83
90
  return response.data;
84
91
  })();
@@ -90,7 +97,7 @@ class MasterImageGroupAPI extends BaseAPI {
90
97
  * Author Peter Placzek (tada5hi)
91
98
  * For the full copyright and license information,
92
99
  * view the LICENSE file that was distributed with this source code.
93
- */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
100
+ */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
94
101
  try {
95
102
  var info = gen[key](arg);
96
103
  var value = info.value;
@@ -104,16 +111,16 @@ class MasterImageGroupAPI extends BaseAPI {
104
111
  Promise.resolve(value).then(_next, _throw);
105
112
  }
106
113
  }
107
- function _async_to_generator$b(fn) {
114
+ function _async_to_generator$c(fn) {
108
115
  return function() {
109
116
  var self = this, args = arguments;
110
117
  return new Promise(function(resolve, reject) {
111
118
  var gen = fn.apply(self, args);
112
119
  function _next(value) {
113
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
120
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
114
121
  }
115
122
  function _throw(err) {
116
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
123
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
117
124
  }
118
125
  _next(undefined);
119
126
  });
@@ -150,28 +157,28 @@ function _object_spread$3(target) {
150
157
  class MasterImageAPI extends BaseAPI {
151
158
  getMany(data) {
152
159
  var _this = this;
153
- return _async_to_generator$b(function*() {
160
+ return _async_to_generator$c(function*() {
154
161
  const response = yield _this.client.get(`master-images${buildQuery(data)}`);
155
162
  return response.data;
156
163
  })();
157
164
  }
158
165
  getOne(id, data) {
159
166
  var _this = this;
160
- return _async_to_generator$b(function*() {
167
+ return _async_to_generator$c(function*() {
161
168
  const response = yield _this.client.get(`master-images/${id}${buildQuery(data)}`);
162
169
  return response.data;
163
170
  })();
164
171
  }
165
172
  delete(id) {
166
173
  var _this = this;
167
- return _async_to_generator$b(function*() {
174
+ return _async_to_generator$c(function*() {
168
175
  const response = yield _this.client.delete(`master-images/${id}`);
169
176
  return response.data;
170
177
  })();
171
178
  }
172
179
  runCommand(command, data = {}) {
173
180
  var _this = this;
174
- return _async_to_generator$b(function*() {
181
+ return _async_to_generator$c(function*() {
175
182
  const actionData = _object_spread$3({
176
183
  command
177
184
  }, data);
@@ -196,7 +203,7 @@ function nullifyEmptyObjectProperties(data) {
196
203
  * Author Peter Placzek (tada5hi)
197
204
  * For the full copyright and license information,
198
205
  * view the LICENSE file that was distributed with this source code.
199
- */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
206
+ */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
200
207
  try {
201
208
  var info = gen[key](arg);
202
209
  var value = info.value;
@@ -210,16 +217,16 @@ function nullifyEmptyObjectProperties(data) {
210
217
  Promise.resolve(value).then(_next, _throw);
211
218
  }
212
219
  }
213
- function _async_to_generator$a(fn) {
220
+ function _async_to_generator$b(fn) {
214
221
  return function() {
215
222
  var self = this, args = arguments;
216
223
  return new Promise(function(resolve, reject) {
217
224
  var gen = fn.apply(self, args);
218
225
  function _next(value) {
219
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
226
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
220
227
  }
221
228
  function _throw(err) {
222
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
229
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
223
230
  }
224
231
  _next(undefined);
225
232
  });
@@ -228,35 +235,35 @@ function _async_to_generator$a(fn) {
228
235
  class ProjectAPI extends BaseAPI {
229
236
  getMany(record) {
230
237
  var _this = this;
231
- return _async_to_generator$a(function*() {
238
+ return _async_to_generator$b(function*() {
232
239
  const response = yield _this.client.get(`projects${buildQuery(record)}`);
233
240
  return response.data;
234
241
  })();
235
242
  }
236
243
  getOne(id, requestRecord) {
237
244
  var _this = this;
238
- return _async_to_generator$a(function*() {
245
+ return _async_to_generator$b(function*() {
239
246
  const response = yield _this.client.get(`projects/${id}${buildQuery(requestRecord)}`);
240
247
  return response.data;
241
248
  })();
242
249
  }
243
250
  create(data) {
244
251
  var _this = this;
245
- return _async_to_generator$a(function*() {
252
+ return _async_to_generator$b(function*() {
246
253
  const response = yield _this.client.post('projects', nullifyEmptyObjectProperties(data));
247
254
  return response.data;
248
255
  })();
249
256
  }
250
257
  delete(id) {
251
258
  var _this = this;
252
- return _async_to_generator$a(function*() {
259
+ return _async_to_generator$b(function*() {
253
260
  const response = yield _this.client.delete(`projects/${id}`);
254
261
  return response.data;
255
262
  })();
256
263
  }
257
264
  update(id, data) {
258
265
  var _this = this;
259
- return _async_to_generator$a(function*() {
266
+ return _async_to_generator$b(function*() {
260
267
  const response = yield _this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
261
268
  return response.data;
262
269
  })();
@@ -268,7 +275,7 @@ class ProjectAPI extends BaseAPI {
268
275
  * Author Peter Placzek (tada5hi)
269
276
  * For the full copyright and license information,
270
277
  * view the LICENSE file that was distributed with this source code.
271
- */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
278
+ */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
272
279
  try {
273
280
  var info = gen[key](arg);
274
281
  var value = info.value;
@@ -282,16 +289,16 @@ class ProjectAPI extends BaseAPI {
282
289
  Promise.resolve(value).then(_next, _throw);
283
290
  }
284
291
  }
285
- function _async_to_generator$9(fn) {
292
+ function _async_to_generator$a(fn) {
286
293
  return function() {
287
294
  var self = this, args = arguments;
288
295
  return new Promise(function(resolve, reject) {
289
296
  var gen = fn.apply(self, args);
290
297
  function _next(value) {
291
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
298
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
292
299
  }
293
300
  function _throw(err) {
294
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
301
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
295
302
  }
296
303
  _next(undefined);
297
304
  });
@@ -300,35 +307,35 @@ function _async_to_generator$9(fn) {
300
307
  class ProjectNodeAPI extends BaseAPI {
301
308
  getMany(data) {
302
309
  var _this = this;
303
- return _async_to_generator$9(function*() {
310
+ return _async_to_generator$a(function*() {
304
311
  const response = yield _this.client.get(`project-nodes${buildQuery(data)}`);
305
312
  return response.data;
306
313
  })();
307
314
  }
308
315
  getOne(id, data) {
309
316
  var _this = this;
310
- return _async_to_generator$9(function*() {
317
+ return _async_to_generator$a(function*() {
311
318
  const response = yield _this.client.get(`project-nodes/${id}${buildQuery(data)}`);
312
319
  return response.data;
313
320
  })();
314
321
  }
315
322
  create(data) {
316
323
  var _this = this;
317
- return _async_to_generator$9(function*() {
324
+ return _async_to_generator$a(function*() {
318
325
  const response = yield _this.client.post('project-nodes', data);
319
326
  return response.data;
320
327
  })();
321
328
  }
322
329
  update(id, data) {
323
330
  var _this = this;
324
- return _async_to_generator$9(function*() {
331
+ return _async_to_generator$a(function*() {
325
332
  const response = yield _this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
326
333
  return response.data;
327
334
  })();
328
335
  }
329
336
  delete(id) {
330
337
  var _this = this;
331
- return _async_to_generator$9(function*() {
338
+ return _async_to_generator$a(function*() {
332
339
  const response = yield _this.client.delete(`project-nodes/${id}`);
333
340
  return response.data;
334
341
  })();
@@ -340,7 +347,7 @@ class ProjectNodeAPI extends BaseAPI {
340
347
  * Author Peter Placzek (tada5hi)
341
348
  * For the full copyright and license information,
342
349
  * view the LICENSE file that was distributed with this source code.
343
- */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
350
+ */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
344
351
  try {
345
352
  var info = gen[key](arg);
346
353
  var value = info.value;
@@ -354,16 +361,16 @@ class ProjectNodeAPI extends BaseAPI {
354
361
  Promise.resolve(value).then(_next, _throw);
355
362
  }
356
363
  }
357
- function _async_to_generator$8(fn) {
364
+ function _async_to_generator$9(fn) {
358
365
  return function() {
359
366
  var self = this, args = arguments;
360
367
  return new Promise(function(resolve, reject) {
361
368
  var gen = fn.apply(self, args);
362
369
  function _next(value) {
363
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
370
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
364
371
  }
365
372
  function _throw(err) {
366
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
373
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
367
374
  }
368
375
  _next(undefined);
369
376
  });
@@ -372,35 +379,35 @@ function _async_to_generator$8(fn) {
372
379
  class RegistryAPI extends BaseAPI {
373
380
  getMany(options) {
374
381
  var _this = this;
375
- return _async_to_generator$8(function*() {
382
+ return _async_to_generator$9(function*() {
376
383
  const response = yield _this.client.get(`registries${buildQuery(options)}`);
377
384
  return response.data;
378
385
  })();
379
386
  }
380
387
  getOne(id, options) {
381
388
  var _this = this;
382
- return _async_to_generator$8(function*() {
389
+ return _async_to_generator$9(function*() {
383
390
  const response = yield _this.client.get(`registries/${id}${buildQuery(options)}`);
384
391
  return response.data;
385
392
  })();
386
393
  }
387
394
  create(data) {
388
395
  var _this = this;
389
- return _async_to_generator$8(function*() {
396
+ return _async_to_generator$9(function*() {
390
397
  const response = yield _this.client.post('registries', nullifyEmptyObjectProperties(data));
391
398
  return response.data;
392
399
  })();
393
400
  }
394
401
  update(id, data) {
395
402
  var _this = this;
396
- return _async_to_generator$8(function*() {
403
+ return _async_to_generator$9(function*() {
397
404
  const response = yield _this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
398
405
  return response.data;
399
406
  })();
400
407
  }
401
408
  delete(id) {
402
409
  var _this = this;
403
- return _async_to_generator$8(function*() {
410
+ return _async_to_generator$9(function*() {
404
411
  const response = yield _this.client.delete(`registries/${id}`);
405
412
  return response.data;
406
413
  })();
@@ -412,7 +419,7 @@ class RegistryAPI extends BaseAPI {
412
419
  * Author Peter Placzek (tada5hi)
413
420
  * For the full copyright and license information,
414
421
  * view the LICENSE file that was distributed with this source code.
415
- */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
422
+ */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
416
423
  try {
417
424
  var info = gen[key](arg);
418
425
  var value = info.value;
@@ -426,16 +433,16 @@ class RegistryAPI extends BaseAPI {
426
433
  Promise.resolve(value).then(_next, _throw);
427
434
  }
428
435
  }
429
- function _async_to_generator$7(fn) {
436
+ function _async_to_generator$8(fn) {
430
437
  return function() {
431
438
  var self = this, args = arguments;
432
439
  return new Promise(function(resolve, reject) {
433
440
  var gen = fn.apply(self, args);
434
441
  function _next(value) {
435
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
442
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
436
443
  }
437
444
  function _throw(err) {
438
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
445
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
439
446
  }
440
447
  _next(undefined);
441
448
  });
@@ -444,35 +451,35 @@ function _async_to_generator$7(fn) {
444
451
  class RegistryProjectAPI extends BaseAPI {
445
452
  getMany(options) {
446
453
  var _this = this;
447
- return _async_to_generator$7(function*() {
454
+ return _async_to_generator$8(function*() {
448
455
  const response = yield _this.client.get(`registry-projects${buildQuery(options)}`);
449
456
  return response.data;
450
457
  })();
451
458
  }
452
459
  getOne(id, options) {
453
460
  var _this = this;
454
- return _async_to_generator$7(function*() {
461
+ return _async_to_generator$8(function*() {
455
462
  const response = yield _this.client.get(`registry-projects/${id}${buildQuery(options)}`);
456
463
  return response.data;
457
464
  })();
458
465
  }
459
466
  create(data) {
460
467
  var _this = this;
461
- return _async_to_generator$7(function*() {
468
+ return _async_to_generator$8(function*() {
462
469
  const response = yield _this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
463
470
  return response.data;
464
471
  })();
465
472
  }
466
473
  update(id, data) {
467
474
  var _this = this;
468
- return _async_to_generator$7(function*() {
475
+ return _async_to_generator$8(function*() {
469
476
  const response = yield _this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
470
477
  return response.data;
471
478
  })();
472
479
  }
473
480
  delete(id) {
474
481
  var _this = this;
475
- return _async_to_generator$7(function*() {
482
+ return _async_to_generator$8(function*() {
476
483
  const response = yield _this.client.delete(`registry-projects/${id}`);
477
484
  return response.data;
478
485
  })();
@@ -484,7 +491,7 @@ class RegistryProjectAPI extends BaseAPI {
484
491
  * Author Peter Placzek (tada5hi)
485
492
  * For the full copyright and license information,
486
493
  * view the LICENSE file that was distributed with this source code.
487
- */ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
494
+ */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
488
495
  try {
489
496
  var info = gen[key](arg);
490
497
  var value = info.value;
@@ -498,16 +505,16 @@ class RegistryProjectAPI extends BaseAPI {
498
505
  Promise.resolve(value).then(_next, _throw);
499
506
  }
500
507
  }
501
- function _async_to_generator$6(fn) {
508
+ function _async_to_generator$7(fn) {
502
509
  return function() {
503
510
  var self = this, args = arguments;
504
511
  return new Promise(function(resolve, reject) {
505
512
  var gen = fn.apply(self, args);
506
513
  function _next(value) {
507
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
514
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
508
515
  }
509
516
  function _throw(err) {
510
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
517
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
511
518
  }
512
519
  _next(undefined);
513
520
  });
@@ -544,42 +551,42 @@ function _object_spread$2(target) {
544
551
  class NodeAPI extends BaseAPI {
545
552
  getMany(options) {
546
553
  var _this = this;
547
- return _async_to_generator$6(function*() {
554
+ return _async_to_generator$7(function*() {
548
555
  const response = yield _this.client.get(`nodes${buildQuery(options)}`);
549
556
  return response.data;
550
557
  })();
551
558
  }
552
559
  getOne(id, options) {
553
560
  var _this = this;
554
- return _async_to_generator$6(function*() {
561
+ return _async_to_generator$7(function*() {
555
562
  const response = yield _this.client.get(`nodes/${id}${buildQuery(options)}`);
556
563
  return response.data;
557
564
  })();
558
565
  }
559
566
  create(data) {
560
567
  var _this = this;
561
- return _async_to_generator$6(function*() {
568
+ return _async_to_generator$7(function*() {
562
569
  const response = yield _this.client.post('nodes', nullifyEmptyObjectProperties(data));
563
570
  return response.data;
564
571
  })();
565
572
  }
566
573
  update(id, data) {
567
574
  var _this = this;
568
- return _async_to_generator$6(function*() {
575
+ return _async_to_generator$7(function*() {
569
576
  const response = yield _this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
570
577
  return response.data;
571
578
  })();
572
579
  }
573
580
  delete(id) {
574
581
  var _this = this;
575
- return _async_to_generator$6(function*() {
582
+ return _async_to_generator$7(function*() {
576
583
  const response = yield _this.client.delete(`nodes/${id}`);
577
584
  return response.data;
578
585
  })();
579
586
  }
580
587
  runCommand(id, task, data) {
581
588
  var _this = this;
582
- return _async_to_generator$6(function*() {
589
+ return _async_to_generator$7(function*() {
583
590
  const response = yield _this.client.post(`nodes/${id}/task`, _object_spread$2({
584
591
  task
585
592
  }, data));
@@ -593,7 +600,7 @@ class NodeAPI extends BaseAPI {
593
600
  * Author Peter Placzek (tada5hi)
594
601
  * For the full copyright and license information,
595
602
  * view the LICENSE file that was distributed with this source code.
596
- */ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
603
+ */ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
597
604
  try {
598
605
  var info = gen[key](arg);
599
606
  var value = info.value;
@@ -607,16 +614,16 @@ class NodeAPI extends BaseAPI {
607
614
  Promise.resolve(value).then(_next, _throw);
608
615
  }
609
616
  }
610
- function _async_to_generator$5(fn) {
617
+ function _async_to_generator$6(fn) {
611
618
  return function() {
612
619
  var self = this, args = arguments;
613
620
  return new Promise(function(resolve, reject) {
614
621
  var gen = fn.apply(self, args);
615
622
  function _next(value) {
616
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
623
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
617
624
  }
618
625
  function _throw(err) {
619
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
626
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
620
627
  }
621
628
  _next(undefined);
622
629
  });
@@ -666,42 +673,42 @@ class AnalysisAPI extends BaseAPI {
666
673
  }
667
674
  getMany(options) {
668
675
  var _this = this;
669
- return _async_to_generator$5(function*() {
676
+ return _async_to_generator$6(function*() {
670
677
  const { data: response } = yield _this.client.get(`analyses${buildQuery(options)}`);
671
678
  return response;
672
679
  })();
673
680
  }
674
681
  getOne(id, options, requestConfig) {
675
682
  var _this = this;
676
- return _async_to_generator$5(function*() {
683
+ return _async_to_generator$6(function*() {
677
684
  const { data: response } = yield _this.client.get(`analyses/${id}${buildQuery(options)}`, requestConfig);
678
685
  return response;
679
686
  })();
680
687
  }
681
688
  delete(id) {
682
689
  var _this = this;
683
- return _async_to_generator$5(function*() {
690
+ return _async_to_generator$6(function*() {
684
691
  const { data: response } = yield _this.client.delete(`analyses/${id}`);
685
692
  return response;
686
693
  })();
687
694
  }
688
695
  update(id, data) {
689
696
  var _this = this;
690
- return _async_to_generator$5(function*() {
697
+ return _async_to_generator$6(function*() {
691
698
  const { data: response } = yield _this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
692
699
  return response;
693
700
  })();
694
701
  }
695
702
  create(data) {
696
703
  var _this = this;
697
- return _async_to_generator$5(function*() {
704
+ return _async_to_generator$6(function*() {
698
705
  const { data: response } = yield _this.client.post('analyses', nullifyEmptyObjectProperties(data));
699
706
  return response;
700
707
  })();
701
708
  }
702
709
  runCommand(id, command, data = {}) {
703
710
  var _this = this;
704
- return _async_to_generator$5(function*() {
711
+ return _async_to_generator$6(function*() {
705
712
  const actionData = _object_spread$1({
706
713
  command
707
714
  }, data);
@@ -711,7 +718,7 @@ class AnalysisAPI extends BaseAPI {
711
718
  }
712
719
  streamFiles(id) {
713
720
  var _this = this;
714
- return _async_to_generator$5(function*() {
721
+ return _async_to_generator$6(function*() {
715
722
  const response = yield _this.client.get(_this.getFilesDownloadPath(id), {
716
723
  responseType: 'stream'
717
724
  });
@@ -720,7 +727,7 @@ class AnalysisAPI extends BaseAPI {
720
727
  }
721
728
  downloadResult(id) {
722
729
  var _this = this;
723
- return _async_to_generator$5(function*() {
730
+ return _async_to_generator$6(function*() {
724
731
  const response = yield _this.client.get(_this.getResultDownloadPath(id), {
725
732
  responseType: 'stream'
726
733
  });
@@ -734,7 +741,7 @@ class AnalysisAPI extends BaseAPI {
734
741
  * Author Peter Placzek (tada5hi)
735
742
  * For the full copyright and license information,
736
743
  * view the LICENSE file that was distributed with this source code.
737
- */ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
744
+ */ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
738
745
  try {
739
746
  var info = gen[key](arg);
740
747
  var value = info.value;
@@ -748,16 +755,16 @@ class AnalysisAPI extends BaseAPI {
748
755
  Promise.resolve(value).then(_next, _throw);
749
756
  }
750
757
  }
751
- function _async_to_generator$4(fn) {
758
+ function _async_to_generator$5(fn) {
752
759
  return function() {
753
760
  var self = this, args = arguments;
754
761
  return new Promise(function(resolve, reject) {
755
762
  var gen = fn.apply(self, args);
756
763
  function _next(value) {
757
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
764
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
758
765
  }
759
766
  function _throw(err) {
760
- asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
767
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
761
768
  }
762
769
  _next(undefined);
763
770
  });
@@ -766,41 +773,113 @@ function _async_to_generator$4(fn) {
766
773
  class AnalysisBucketFileAPI extends BaseAPI {
767
774
  getMany(options) {
768
775
  var _this = this;
769
- return _async_to_generator$4(function*() {
776
+ return _async_to_generator$5(function*() {
770
777
  const response = yield _this.client.get(`analysis-bucket-files${buildQuery(options)}`);
771
778
  return response.data;
772
779
  })();
773
780
  }
774
781
  getOne(id) {
775
782
  var _this = this;
776
- return _async_to_generator$4(function*() {
783
+ return _async_to_generator$5(function*() {
777
784
  const response = yield _this.client.get(`analysis-bucket-files/${id}`);
778
785
  return response.data;
779
786
  })();
780
787
  }
781
788
  delete(id) {
782
789
  var _this = this;
783
- return _async_to_generator$4(function*() {
790
+ return _async_to_generator$5(function*() {
784
791
  const response = yield _this.client.delete(`analysis-bucket-files/${id}`);
785
792
  return response.data;
786
793
  })();
787
794
  }
788
795
  update(id, data) {
789
796
  var _this = this;
790
- return _async_to_generator$4(function*() {
797
+ return _async_to_generator$5(function*() {
791
798
  const { data: response } = yield _this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
792
799
  return response;
793
800
  })();
794
801
  }
795
802
  create(data) {
796
803
  var _this = this;
797
- return _async_to_generator$4(function*() {
804
+ return _async_to_generator$5(function*() {
798
805
  const { data: response } = yield _this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
799
806
  return response;
800
807
  })();
801
808
  }
802
809
  }
803
810
 
811
+ /*
812
+ * Copyright (c) 2021-2024.
813
+ * Author Peter Placzek (tada5hi)
814
+ * For the full copyright and license information,
815
+ * view the LICENSE file that was distributed with this source code.
816
+ */ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
817
+ try {
818
+ var info = gen[key](arg);
819
+ var value = info.value;
820
+ } catch (error) {
821
+ reject(error);
822
+ return;
823
+ }
824
+ if (info.done) {
825
+ resolve(value);
826
+ } else {
827
+ Promise.resolve(value).then(_next, _throw);
828
+ }
829
+ }
830
+ function _async_to_generator$4(fn) {
831
+ return function() {
832
+ var self = this, args = arguments;
833
+ return new Promise(function(resolve, reject) {
834
+ var gen = fn.apply(self, args);
835
+ function _next(value) {
836
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
837
+ }
838
+ function _throw(err) {
839
+ asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
840
+ }
841
+ _next(undefined);
842
+ });
843
+ };
844
+ }
845
+ class AnalysisLogAPI extends BaseAPI {
846
+ getMany(options) {
847
+ var _this = this;
848
+ return _async_to_generator$4(function*() {
849
+ const { data: response } = yield _this.client.get(`analysis-logs${buildQuery(options)}`);
850
+ return response;
851
+ })();
852
+ }
853
+ getOne(id) {
854
+ var _this = this;
855
+ return _async_to_generator$4(function*() {
856
+ const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
857
+ return response;
858
+ })();
859
+ }
860
+ delete(id) {
861
+ var _this = this;
862
+ return _async_to_generator$4(function*() {
863
+ const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
864
+ return response;
865
+ })();
866
+ }
867
+ update(id, data) {
868
+ var _this = this;
869
+ return _async_to_generator$4(function*() {
870
+ const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
871
+ return response;
872
+ })();
873
+ }
874
+ create(data) {
875
+ var _this = this;
876
+ return _async_to_generator$4(function*() {
877
+ const { data: response } = yield _this.client.post('analysis-logs', data);
878
+ return response;
879
+ })();
880
+ }
881
+ }
882
+
804
883
  /*
805
884
  * Copyright (c) 2021-2024.
806
885
  * Author Peter Placzek (tada5hi)
@@ -835,39 +914,39 @@ function _async_to_generator$3(fn) {
835
914
  });
836
915
  };
837
916
  }
838
- class AnalysisLogAPI extends BaseAPI {
917
+ class TrainStationAPI extends BaseAPI {
839
918
  getMany(options) {
840
919
  var _this = this;
841
920
  return _async_to_generator$3(function*() {
842
- const { data: response } = yield _this.client.get(`analysis-logs${buildQuery(options)}`);
921
+ const { data: response } = yield _this.client.get(`analysis-nodes${buildQuery(options)}`);
843
922
  return response;
844
923
  })();
845
924
  }
846
925
  getOne(id) {
847
926
  var _this = this;
848
927
  return _async_to_generator$3(function*() {
849
- const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
928
+ const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
850
929
  return response;
851
930
  })();
852
931
  }
853
932
  delete(id) {
854
933
  var _this = this;
855
934
  return _async_to_generator$3(function*() {
856
- const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
935
+ const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
857
936
  return response;
858
937
  })();
859
938
  }
860
939
  update(id, data) {
861
940
  var _this = this;
862
941
  return _async_to_generator$3(function*() {
863
- const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
942
+ const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
864
943
  return response;
865
944
  })();
866
945
  }
867
946
  create(data) {
868
947
  var _this = this;
869
948
  return _async_to_generator$3(function*() {
870
- const { data: response } = yield _this.client.post('analysis-logs', data);
949
+ const { data: response } = yield _this.client.post('analysis-nodes', data);
871
950
  return response;
872
951
  })();
873
952
  }
@@ -907,39 +986,39 @@ function _async_to_generator$2(fn) {
907
986
  });
908
987
  };
909
988
  }
910
- class TrainStationAPI extends BaseAPI {
989
+ class AnalysisPermissionAPI extends BaseAPI {
911
990
  getMany(options) {
912
991
  var _this = this;
913
992
  return _async_to_generator$2(function*() {
914
- const { data: response } = yield _this.client.get(`analysis-nodes${buildQuery(options)}`);
993
+ const { data: response } = yield _this.client.get(`analysis-permissions${buildQuery(options)}`);
915
994
  return response;
916
995
  })();
917
996
  }
918
997
  getOne(id) {
919
998
  var _this = this;
920
999
  return _async_to_generator$2(function*() {
921
- const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
1000
+ const { data: response } = yield _this.client.get(`analysis-permissions/${id}`);
922
1001
  return response;
923
1002
  })();
924
1003
  }
925
1004
  delete(id) {
926
1005
  var _this = this;
927
1006
  return _async_to_generator$2(function*() {
928
- const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
1007
+ const { data: response } = yield _this.client.delete(`analysis-permissions/${id}`);
929
1008
  return response;
930
1009
  })();
931
1010
  }
932
1011
  update(id, data) {
933
1012
  var _this = this;
934
1013
  return _async_to_generator$2(function*() {
935
- const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
1014
+ const { data: response } = yield _this.client.post(`analysis-permissions/${id}`, data);
936
1015
  return response;
937
1016
  })();
938
1017
  }
939
1018
  create(data) {
940
1019
  var _this = this;
941
1020
  return _async_to_generator$2(function*() {
942
- const { data: response } = yield _this.client.post('analysis-nodes', data);
1021
+ const { data: response } = yield _this.client.post('analysis-permissions', data);
943
1022
  return response;
944
1023
  })();
945
1024
  }
@@ -1075,6 +1154,20 @@ class AnalysisBucketAPI extends BaseAPI {
1075
1154
  return response.data;
1076
1155
  })();
1077
1156
  }
1157
+ create(data) {
1158
+ var _this = this;
1159
+ return _async_to_generator(function*() {
1160
+ const { data: response } = yield _this.client.post('analysis-buckets', data);
1161
+ return response;
1162
+ })();
1163
+ }
1164
+ delete(id) {
1165
+ var _this = this;
1166
+ return _async_to_generator(function*() {
1167
+ const response = yield _this.client.delete(`analysis-buckets/${id}`);
1168
+ return response.data;
1169
+ })();
1170
+ }
1078
1171
  }
1079
1172
 
1080
1173
  /*
@@ -1110,6 +1203,7 @@ class Client extends Client$1 {
1110
1203
  _define_property(this, "analysisBucketFile", void 0);
1111
1204
  _define_property(this, "analysisLog", void 0);
1112
1205
  _define_property(this, "analysisNode", void 0);
1206
+ _define_property(this, "analysisPermission", void 0);
1113
1207
  _define_property(this, "service", void 0);
1114
1208
  this.masterImage = new MasterImageAPI({
1115
1209
  client: this
@@ -1147,6 +1241,9 @@ class Client extends Client$1 {
1147
1241
  this.analysisNode = new TrainStationAPI({
1148
1242
  client: this
1149
1243
  });
1244
+ this.analysisPermission = new AnalysisPermissionAPI({
1245
+ client: this
1246
+ });
1150
1247
  this.service = new ServiceAPI({
1151
1248
  client: this
1152
1249
  });
@@ -1159,5 +1256,5 @@ class Client extends Client$1 {
1159
1256
  }
1160
1257
  }
1161
1258
 
1162
- export { AnalysisAPI, AnalysisBucketFileAPI, AnalysisLogAPI, Client, MasterImageAPI, MasterImageGroupAPI, NodeAPI, ProjectAPI, ProjectNodeAPI, RegistryAPI, RegistryProjectAPI, ServiceAPI, TrainStationAPI };
1259
+ export { AnalysisAPI, AnalysisBucketFileAPI, AnalysisLogAPI, AnalysisPermissionAPI, Client, MasterImageAPI, MasterImageGroupAPI, NodeAPI, ProjectAPI, ProjectNodeAPI, RegistryAPI, RegistryProjectAPI, ServiceAPI, TrainStationAPI };
1163
1260
  //# sourceMappingURL=index.mjs.map