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