@privateaim/core-http-kit 0.8.5 → 0.8.7

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
@@ -1,4 +1,5 @@
1
- import { isClient, createClient, Client as Client$1, HookName, isClientError } from 'hapic';
1
+ import { createClient, isClient, Client as Client$1, HookName, isClientError } from 'hapic';
2
+ export { isClientError, isClientErrorWithStatusCode } from 'hapic';
2
3
  import { buildQuery } from 'rapiq';
3
4
  import '@authup/kit';
4
5
  import { ServiceID } from '@privateaim/core-kit';
@@ -28,7 +29,7 @@ class BaseAPI {
28
29
  }
29
30
  // -----------------------------------------------------------------------------------
30
31
  constructor(context){
31
- _define_property$5(this, "client", undefined);
32
+ _define_property$5(this, "client", void 0);
32
33
  context = context || {};
33
34
  this.setClient(context.client);
34
35
  }
@@ -39,7 +40,7 @@ class BaseAPI {
39
40
  * Author Peter Placzek (tada5hi)
40
41
  * For the full copyright and license information,
41
42
  * view the LICENSE file that was distributed with this source code.
42
- */ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
43
+ */ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
43
44
  try {
44
45
  var info = gen[key](arg);
45
46
  var value = info.value;
@@ -53,16 +54,16 @@ class BaseAPI {
53
54
  Promise.resolve(value).then(_next, _throw);
54
55
  }
55
56
  }
56
- function _async_to_generator$e(fn) {
57
+ function _async_to_generator$f(fn) {
57
58
  return function() {
58
59
  var self = this, args = arguments;
59
60
  return new Promise(function(resolve, reject) {
60
61
  var gen = fn.apply(self, args);
61
62
  function _next(value) {
62
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
63
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
63
64
  }
64
65
  function _throw(err) {
65
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
66
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
66
67
  }
67
68
  _next(undefined);
68
69
  });
@@ -71,21 +72,21 @@ function _async_to_generator$e(fn) {
71
72
  class MasterImageGroupAPI extends BaseAPI {
72
73
  getMany(data) {
73
74
  var _this = this;
74
- return _async_to_generator$e(function*() {
75
+ return _async_to_generator$f(function*() {
75
76
  const response = yield _this.client.get(`master-image-groups${buildQuery(data)}`);
76
77
  return response.data;
77
78
  })();
78
79
  }
79
80
  getOne(id) {
80
81
  var _this = this;
81
- return _async_to_generator$e(function*() {
82
+ return _async_to_generator$f(function*() {
82
83
  const response = yield _this.client.delete(`master-image-groups/${id}`);
83
84
  return response.data;
84
85
  })();
85
86
  }
86
87
  delete(id) {
87
88
  var _this = this;
88
- return _async_to_generator$e(function*() {
89
+ return _async_to_generator$f(function*() {
89
90
  const response = yield _this.client.delete(`master-image-groups/${id}`);
90
91
  return response.data;
91
92
  })();
@@ -97,7 +98,7 @@ class MasterImageGroupAPI extends BaseAPI {
97
98
  * Author Peter Placzek (tada5hi)
98
99
  * For the full copyright and license information,
99
100
  * view the LICENSE file that was distributed with this source code.
100
- */ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
101
+ */ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
101
102
  try {
102
103
  var info = gen[key](arg);
103
104
  var value = info.value;
@@ -111,16 +112,16 @@ class MasterImageGroupAPI extends BaseAPI {
111
112
  Promise.resolve(value).then(_next, _throw);
112
113
  }
113
114
  }
114
- function _async_to_generator$d(fn) {
115
+ function _async_to_generator$e(fn) {
115
116
  return function() {
116
117
  var self = this, args = arguments;
117
118
  return new Promise(function(resolve, reject) {
118
119
  var gen = fn.apply(self, args);
119
120
  function _next(value) {
120
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
121
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
121
122
  }
122
123
  function _throw(err) {
123
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
124
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
124
125
  }
125
126
  _next(undefined);
126
127
  });
@@ -157,28 +158,28 @@ function _object_spread$3(target) {
157
158
  class MasterImageAPI extends BaseAPI {
158
159
  getMany(data) {
159
160
  var _this = this;
160
- return _async_to_generator$d(function*() {
161
+ return _async_to_generator$e(function*() {
161
162
  const response = yield _this.client.get(`master-images${buildQuery(data)}`);
162
163
  return response.data;
163
164
  })();
164
165
  }
165
166
  getOne(id, data) {
166
167
  var _this = this;
167
- return _async_to_generator$d(function*() {
168
+ return _async_to_generator$e(function*() {
168
169
  const response = yield _this.client.get(`master-images/${id}${buildQuery(data)}`);
169
170
  return response.data;
170
171
  })();
171
172
  }
172
173
  delete(id) {
173
174
  var _this = this;
174
- return _async_to_generator$d(function*() {
175
+ return _async_to_generator$e(function*() {
175
176
  const response = yield _this.client.delete(`master-images/${id}`);
176
177
  return response.data;
177
178
  })();
178
179
  }
179
180
  runCommand(command, data = {}) {
180
181
  var _this = this;
181
- return _async_to_generator$d(function*() {
182
+ return _async_to_generator$e(function*() {
182
183
  const actionData = _object_spread$3({
183
184
  command
184
185
  }, data);
@@ -193,7 +194,7 @@ class MasterImageAPI extends BaseAPI {
193
194
  * Author Peter Placzek (tada5hi)
194
195
  * For the full copyright and license information,
195
196
  * view the LICENSE file that was distributed with this source code.
196
- */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
197
+ */ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
197
198
  try {
198
199
  var info = gen[key](arg);
199
200
  var value = info.value;
@@ -207,16 +208,16 @@ class MasterImageAPI extends BaseAPI {
207
208
  Promise.resolve(value).then(_next, _throw);
208
209
  }
209
210
  }
210
- function _async_to_generator$c(fn) {
211
+ function _async_to_generator$d(fn) {
211
212
  return function() {
212
213
  var self = this, args = arguments;
213
214
  return new Promise(function(resolve, reject) {
214
215
  var gen = fn.apply(self, args);
215
216
  function _next(value) {
216
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
217
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
217
218
  }
218
219
  function _throw(err) {
219
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
220
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
220
221
  }
221
222
  _next(undefined);
222
223
  });
@@ -225,35 +226,35 @@ function _async_to_generator$c(fn) {
225
226
  class MasterImageEventLogAPI extends BaseAPI {
226
227
  getMany(options) {
227
228
  var _this = this;
228
- return _async_to_generator$c(function*() {
229
+ return _async_to_generator$d(function*() {
229
230
  const { data: response } = yield _this.client.get(`master-image-event-logs${buildQuery(options)}`);
230
231
  return response;
231
232
  })();
232
233
  }
233
234
  getOne(id) {
234
235
  var _this = this;
235
- return _async_to_generator$c(function*() {
236
+ return _async_to_generator$d(function*() {
236
237
  const { data: response } = yield _this.client.get(`master-image-event-logs/${id}`);
237
238
  return response;
238
239
  })();
239
240
  }
240
241
  delete(id) {
241
242
  var _this = this;
242
- return _async_to_generator$c(function*() {
243
+ return _async_to_generator$d(function*() {
243
244
  const { data: response } = yield _this.client.delete(`master-image-event-logs/${id}`);
244
245
  return response;
245
246
  })();
246
247
  }
247
248
  update(id, data) {
248
249
  var _this = this;
249
- return _async_to_generator$c(function*() {
250
+ return _async_to_generator$d(function*() {
250
251
  const { data: response } = yield _this.client.post(`master-image-event-logs/${id}`, data);
251
252
  return response;
252
253
  })();
253
254
  }
254
255
  create(data) {
255
256
  var _this = this;
256
- return _async_to_generator$c(function*() {
257
+ return _async_to_generator$d(function*() {
257
258
  const { data: response } = yield _this.client.post('master-image-event-logs', data);
258
259
  return response;
259
260
  })();
@@ -275,7 +276,7 @@ function nullifyEmptyObjectProperties(data) {
275
276
  * Author Peter Placzek (tada5hi)
276
277
  * For the full copyright and license information,
277
278
  * view the LICENSE file that was distributed with this source code.
278
- */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
279
+ */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
279
280
  try {
280
281
  var info = gen[key](arg);
281
282
  var value = info.value;
@@ -289,16 +290,16 @@ function nullifyEmptyObjectProperties(data) {
289
290
  Promise.resolve(value).then(_next, _throw);
290
291
  }
291
292
  }
292
- function _async_to_generator$b(fn) {
293
+ function _async_to_generator$c(fn) {
293
294
  return function() {
294
295
  var self = this, args = arguments;
295
296
  return new Promise(function(resolve, reject) {
296
297
  var gen = fn.apply(self, args);
297
298
  function _next(value) {
298
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
299
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
299
300
  }
300
301
  function _throw(err) {
301
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
302
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
302
303
  }
303
304
  _next(undefined);
304
305
  });
@@ -307,35 +308,35 @@ function _async_to_generator$b(fn) {
307
308
  class ProjectAPI extends BaseAPI {
308
309
  getMany(record) {
309
310
  var _this = this;
310
- return _async_to_generator$b(function*() {
311
+ return _async_to_generator$c(function*() {
311
312
  const response = yield _this.client.get(`projects${buildQuery(record)}`);
312
313
  return response.data;
313
314
  })();
314
315
  }
315
316
  getOne(id, requestRecord) {
316
317
  var _this = this;
317
- return _async_to_generator$b(function*() {
318
+ return _async_to_generator$c(function*() {
318
319
  const response = yield _this.client.get(`projects/${id}${buildQuery(requestRecord)}`);
319
320
  return response.data;
320
321
  })();
321
322
  }
322
323
  create(data) {
323
324
  var _this = this;
324
- return _async_to_generator$b(function*() {
325
+ return _async_to_generator$c(function*() {
325
326
  const response = yield _this.client.post('projects', nullifyEmptyObjectProperties(data));
326
327
  return response.data;
327
328
  })();
328
329
  }
329
330
  delete(id) {
330
331
  var _this = this;
331
- return _async_to_generator$b(function*() {
332
+ return _async_to_generator$c(function*() {
332
333
  const response = yield _this.client.delete(`projects/${id}`);
333
334
  return response.data;
334
335
  })();
335
336
  }
336
337
  update(id, data) {
337
338
  var _this = this;
338
- return _async_to_generator$b(function*() {
339
+ return _async_to_generator$c(function*() {
339
340
  const response = yield _this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
340
341
  return response.data;
341
342
  })();
@@ -347,7 +348,7 @@ class ProjectAPI extends BaseAPI {
347
348
  * Author Peter Placzek (tada5hi)
348
349
  * For the full copyright and license information,
349
350
  * view the LICENSE file that was distributed with this source code.
350
- */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
351
+ */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
351
352
  try {
352
353
  var info = gen[key](arg);
353
354
  var value = info.value;
@@ -361,16 +362,16 @@ class ProjectAPI extends BaseAPI {
361
362
  Promise.resolve(value).then(_next, _throw);
362
363
  }
363
364
  }
364
- function _async_to_generator$a(fn) {
365
+ function _async_to_generator$b(fn) {
365
366
  return function() {
366
367
  var self = this, args = arguments;
367
368
  return new Promise(function(resolve, reject) {
368
369
  var gen = fn.apply(self, args);
369
370
  function _next(value) {
370
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
371
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
371
372
  }
372
373
  function _throw(err) {
373
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
374
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
374
375
  }
375
376
  _next(undefined);
376
377
  });
@@ -379,35 +380,35 @@ function _async_to_generator$a(fn) {
379
380
  class ProjectNodeAPI extends BaseAPI {
380
381
  getMany(data) {
381
382
  var _this = this;
382
- return _async_to_generator$a(function*() {
383
+ return _async_to_generator$b(function*() {
383
384
  const response = yield _this.client.get(`project-nodes${buildQuery(data)}`);
384
385
  return response.data;
385
386
  })();
386
387
  }
387
388
  getOne(id, data) {
388
389
  var _this = this;
389
- return _async_to_generator$a(function*() {
390
+ return _async_to_generator$b(function*() {
390
391
  const response = yield _this.client.get(`project-nodes/${id}${buildQuery(data)}`);
391
392
  return response.data;
392
393
  })();
393
394
  }
394
395
  create(data) {
395
396
  var _this = this;
396
- return _async_to_generator$a(function*() {
397
+ return _async_to_generator$b(function*() {
397
398
  const response = yield _this.client.post('project-nodes', data);
398
399
  return response.data;
399
400
  })();
400
401
  }
401
402
  update(id, data) {
402
403
  var _this = this;
403
- return _async_to_generator$a(function*() {
404
+ return _async_to_generator$b(function*() {
404
405
  const response = yield _this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
405
406
  return response.data;
406
407
  })();
407
408
  }
408
409
  delete(id) {
409
410
  var _this = this;
410
- return _async_to_generator$a(function*() {
411
+ return _async_to_generator$b(function*() {
411
412
  const response = yield _this.client.delete(`project-nodes/${id}`);
412
413
  return response.data;
413
414
  })();
@@ -419,7 +420,7 @@ class ProjectNodeAPI extends BaseAPI {
419
420
  * Author Peter Placzek (tada5hi)
420
421
  * For the full copyright and license information,
421
422
  * view the LICENSE file that was distributed with this source code.
422
- */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
423
+ */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
423
424
  try {
424
425
  var info = gen[key](arg);
425
426
  var value = info.value;
@@ -433,16 +434,16 @@ class ProjectNodeAPI extends BaseAPI {
433
434
  Promise.resolve(value).then(_next, _throw);
434
435
  }
435
436
  }
436
- function _async_to_generator$9(fn) {
437
+ function _async_to_generator$a(fn) {
437
438
  return function() {
438
439
  var self = this, args = arguments;
439
440
  return new Promise(function(resolve, reject) {
440
441
  var gen = fn.apply(self, args);
441
442
  function _next(value) {
442
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
443
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
443
444
  }
444
445
  function _throw(err) {
445
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
446
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
446
447
  }
447
448
  _next(undefined);
448
449
  });
@@ -451,35 +452,35 @@ function _async_to_generator$9(fn) {
451
452
  class RegistryAPI extends BaseAPI {
452
453
  getMany(options) {
453
454
  var _this = this;
454
- return _async_to_generator$9(function*() {
455
+ return _async_to_generator$a(function*() {
455
456
  const response = yield _this.client.get(`registries${buildQuery(options)}`);
456
457
  return response.data;
457
458
  })();
458
459
  }
459
460
  getOne(id, options) {
460
461
  var _this = this;
461
- return _async_to_generator$9(function*() {
462
+ return _async_to_generator$a(function*() {
462
463
  const response = yield _this.client.get(`registries/${id}${buildQuery(options)}`);
463
464
  return response.data;
464
465
  })();
465
466
  }
466
467
  create(data) {
467
468
  var _this = this;
468
- return _async_to_generator$9(function*() {
469
+ return _async_to_generator$a(function*() {
469
470
  const response = yield _this.client.post('registries', nullifyEmptyObjectProperties(data));
470
471
  return response.data;
471
472
  })();
472
473
  }
473
474
  update(id, data) {
474
475
  var _this = this;
475
- return _async_to_generator$9(function*() {
476
+ return _async_to_generator$a(function*() {
476
477
  const response = yield _this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
477
478
  return response.data;
478
479
  })();
479
480
  }
480
481
  delete(id) {
481
482
  var _this = this;
482
- return _async_to_generator$9(function*() {
483
+ return _async_to_generator$a(function*() {
483
484
  const response = yield _this.client.delete(`registries/${id}`);
484
485
  return response.data;
485
486
  })();
@@ -491,7 +492,7 @@ class RegistryAPI extends BaseAPI {
491
492
  * Author Peter Placzek (tada5hi)
492
493
  * For the full copyright and license information,
493
494
  * view the LICENSE file that was distributed with this source code.
494
- */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
495
+ */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
495
496
  try {
496
497
  var info = gen[key](arg);
497
498
  var value = info.value;
@@ -505,16 +506,16 @@ class RegistryAPI extends BaseAPI {
505
506
  Promise.resolve(value).then(_next, _throw);
506
507
  }
507
508
  }
508
- function _async_to_generator$8(fn) {
509
+ function _async_to_generator$9(fn) {
509
510
  return function() {
510
511
  var self = this, args = arguments;
511
512
  return new Promise(function(resolve, reject) {
512
513
  var gen = fn.apply(self, args);
513
514
  function _next(value) {
514
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
515
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
515
516
  }
516
517
  function _throw(err) {
517
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
518
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
518
519
  }
519
520
  _next(undefined);
520
521
  });
@@ -523,35 +524,35 @@ function _async_to_generator$8(fn) {
523
524
  class RegistryProjectAPI extends BaseAPI {
524
525
  getMany(options) {
525
526
  var _this = this;
526
- return _async_to_generator$8(function*() {
527
+ return _async_to_generator$9(function*() {
527
528
  const response = yield _this.client.get(`registry-projects${buildQuery(options)}`);
528
529
  return response.data;
529
530
  })();
530
531
  }
531
532
  getOne(id, options) {
532
533
  var _this = this;
533
- return _async_to_generator$8(function*() {
534
+ return _async_to_generator$9(function*() {
534
535
  const response = yield _this.client.get(`registry-projects/${id}${buildQuery(options)}`);
535
536
  return response.data;
536
537
  })();
537
538
  }
538
539
  create(data) {
539
540
  var _this = this;
540
- return _async_to_generator$8(function*() {
541
+ return _async_to_generator$9(function*() {
541
542
  const response = yield _this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
542
543
  return response.data;
543
544
  })();
544
545
  }
545
546
  update(id, data) {
546
547
  var _this = this;
547
- return _async_to_generator$8(function*() {
548
+ return _async_to_generator$9(function*() {
548
549
  const response = yield _this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
549
550
  return response.data;
550
551
  })();
551
552
  }
552
553
  delete(id) {
553
554
  var _this = this;
554
- return _async_to_generator$8(function*() {
555
+ return _async_to_generator$9(function*() {
555
556
  const response = yield _this.client.delete(`registry-projects/${id}`);
556
557
  return response.data;
557
558
  })();
@@ -563,7 +564,7 @@ class RegistryProjectAPI extends BaseAPI {
563
564
  * Author Peter Placzek (tada5hi)
564
565
  * For the full copyright and license information,
565
566
  * view the LICENSE file that was distributed with this source code.
566
- */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
567
+ */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
567
568
  try {
568
569
  var info = gen[key](arg);
569
570
  var value = info.value;
@@ -577,16 +578,16 @@ class RegistryProjectAPI extends BaseAPI {
577
578
  Promise.resolve(value).then(_next, _throw);
578
579
  }
579
580
  }
580
- function _async_to_generator$7(fn) {
581
+ function _async_to_generator$8(fn) {
581
582
  return function() {
582
583
  var self = this, args = arguments;
583
584
  return new Promise(function(resolve, reject) {
584
585
  var gen = fn.apply(self, args);
585
586
  function _next(value) {
586
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
587
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
587
588
  }
588
589
  function _throw(err) {
589
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
590
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
590
591
  }
591
592
  _next(undefined);
592
593
  });
@@ -623,42 +624,42 @@ function _object_spread$2(target) {
623
624
  class NodeAPI extends BaseAPI {
624
625
  getMany(options) {
625
626
  var _this = this;
626
- return _async_to_generator$7(function*() {
627
+ return _async_to_generator$8(function*() {
627
628
  const response = yield _this.client.get(`nodes${buildQuery(options)}`);
628
629
  return response.data;
629
630
  })();
630
631
  }
631
632
  getOne(id, options) {
632
633
  var _this = this;
633
- return _async_to_generator$7(function*() {
634
+ return _async_to_generator$8(function*() {
634
635
  const response = yield _this.client.get(`nodes/${id}${buildQuery(options)}`);
635
636
  return response.data;
636
637
  })();
637
638
  }
638
639
  create(data) {
639
640
  var _this = this;
640
- return _async_to_generator$7(function*() {
641
+ return _async_to_generator$8(function*() {
641
642
  const response = yield _this.client.post('nodes', nullifyEmptyObjectProperties(data));
642
643
  return response.data;
643
644
  })();
644
645
  }
645
646
  update(id, data) {
646
647
  var _this = this;
647
- return _async_to_generator$7(function*() {
648
+ return _async_to_generator$8(function*() {
648
649
  const response = yield _this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
649
650
  return response.data;
650
651
  })();
651
652
  }
652
653
  delete(id) {
653
654
  var _this = this;
654
- return _async_to_generator$7(function*() {
655
+ return _async_to_generator$8(function*() {
655
656
  const response = yield _this.client.delete(`nodes/${id}`);
656
657
  return response.data;
657
658
  })();
658
659
  }
659
660
  runCommand(id, task, data) {
660
661
  var _this = this;
661
- return _async_to_generator$7(function*() {
662
+ return _async_to_generator$8(function*() {
662
663
  const response = yield _this.client.post(`nodes/${id}/task`, _object_spread$2({
663
664
  task
664
665
  }, data));
@@ -672,7 +673,7 @@ class NodeAPI extends BaseAPI {
672
673
  * Author Peter Placzek (tada5hi)
673
674
  * For the full copyright and license information,
674
675
  * view the LICENSE file that was distributed with this source code.
675
- */ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
676
+ */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
676
677
  try {
677
678
  var info = gen[key](arg);
678
679
  var value = info.value;
@@ -686,16 +687,16 @@ class NodeAPI extends BaseAPI {
686
687
  Promise.resolve(value).then(_next, _throw);
687
688
  }
688
689
  }
689
- function _async_to_generator$6(fn) {
690
+ function _async_to_generator$7(fn) {
690
691
  return function() {
691
692
  var self = this, args = arguments;
692
693
  return new Promise(function(resolve, reject) {
693
694
  var gen = fn.apply(self, args);
694
695
  function _next(value) {
695
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
696
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
696
697
  }
697
698
  function _throw(err) {
698
- asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
699
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
699
700
  }
700
701
  _next(undefined);
701
702
  });
@@ -745,42 +746,42 @@ class AnalysisAPI extends BaseAPI {
745
746
  }
746
747
  getMany(options) {
747
748
  var _this = this;
748
- return _async_to_generator$6(function*() {
749
+ return _async_to_generator$7(function*() {
749
750
  const { data: response } = yield _this.client.get(`analyses${buildQuery(options)}`);
750
751
  return response;
751
752
  })();
752
753
  }
753
754
  getOne(id, options, requestConfig) {
754
755
  var _this = this;
755
- return _async_to_generator$6(function*() {
756
+ return _async_to_generator$7(function*() {
756
757
  const { data: response } = yield _this.client.get(`analyses/${id}${buildQuery(options)}`, requestConfig);
757
758
  return response;
758
759
  })();
759
760
  }
760
761
  delete(id) {
761
762
  var _this = this;
762
- return _async_to_generator$6(function*() {
763
+ return _async_to_generator$7(function*() {
763
764
  const { data: response } = yield _this.client.delete(`analyses/${id}`);
764
765
  return response;
765
766
  })();
766
767
  }
767
768
  update(id, data) {
768
769
  var _this = this;
769
- return _async_to_generator$6(function*() {
770
+ return _async_to_generator$7(function*() {
770
771
  const { data: response } = yield _this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
771
772
  return response;
772
773
  })();
773
774
  }
774
775
  create(data) {
775
776
  var _this = this;
776
- return _async_to_generator$6(function*() {
777
+ return _async_to_generator$7(function*() {
777
778
  const { data: response } = yield _this.client.post('analyses', nullifyEmptyObjectProperties(data));
778
779
  return response;
779
780
  })();
780
781
  }
781
782
  runCommand(id, command, data = {}) {
782
783
  var _this = this;
783
- return _async_to_generator$6(function*() {
784
+ return _async_to_generator$7(function*() {
784
785
  const actionData = _object_spread$1({
785
786
  command
786
787
  }, data);
@@ -790,7 +791,7 @@ class AnalysisAPI extends BaseAPI {
790
791
  }
791
792
  streamFiles(id) {
792
793
  var _this = this;
793
- return _async_to_generator$6(function*() {
794
+ return _async_to_generator$7(function*() {
794
795
  const response = yield _this.client.get(_this.getFilesDownloadPath(id), {
795
796
  responseType: 'stream'
796
797
  });
@@ -799,7 +800,7 @@ class AnalysisAPI extends BaseAPI {
799
800
  }
800
801
  downloadResult(id) {
801
802
  var _this = this;
802
- return _async_to_generator$6(function*() {
803
+ return _async_to_generator$7(function*() {
803
804
  const response = yield _this.client.get(_this.getResultDownloadPath(id), {
804
805
  responseType: 'stream'
805
806
  });
@@ -813,7 +814,7 @@ class AnalysisAPI extends BaseAPI {
813
814
  * Author Peter Placzek (tada5hi)
814
815
  * For the full copyright and license information,
815
816
  * view the LICENSE file that was distributed with this source code.
816
- */ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
817
+ */ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
817
818
  try {
818
819
  var info = gen[key](arg);
819
820
  var value = info.value;
@@ -827,16 +828,16 @@ class AnalysisAPI extends BaseAPI {
827
828
  Promise.resolve(value).then(_next, _throw);
828
829
  }
829
830
  }
830
- function _async_to_generator$5(fn) {
831
+ function _async_to_generator$6(fn) {
831
832
  return function() {
832
833
  var self = this, args = arguments;
833
834
  return new Promise(function(resolve, reject) {
834
835
  var gen = fn.apply(self, args);
835
836
  function _next(value) {
836
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
837
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
837
838
  }
838
839
  function _throw(err) {
839
- asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
840
+ asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
840
841
  }
841
842
  _next(undefined);
842
843
  });
@@ -845,41 +846,113 @@ function _async_to_generator$5(fn) {
845
846
  class AnalysisBucketFileAPI extends BaseAPI {
846
847
  getMany(options) {
847
848
  var _this = this;
848
- return _async_to_generator$5(function*() {
849
+ return _async_to_generator$6(function*() {
849
850
  const response = yield _this.client.get(`analysis-bucket-files${buildQuery(options)}`);
850
851
  return response.data;
851
852
  })();
852
853
  }
853
854
  getOne(id) {
854
855
  var _this = this;
855
- return _async_to_generator$5(function*() {
856
+ return _async_to_generator$6(function*() {
856
857
  const response = yield _this.client.get(`analysis-bucket-files/${id}`);
857
858
  return response.data;
858
859
  })();
859
860
  }
860
861
  delete(id) {
861
862
  var _this = this;
862
- return _async_to_generator$5(function*() {
863
+ return _async_to_generator$6(function*() {
863
864
  const response = yield _this.client.delete(`analysis-bucket-files/${id}`);
864
865
  return response.data;
865
866
  })();
866
867
  }
867
868
  update(id, data) {
868
869
  var _this = this;
869
- return _async_to_generator$5(function*() {
870
+ return _async_to_generator$6(function*() {
870
871
  const { data: response } = yield _this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
871
872
  return response;
872
873
  })();
873
874
  }
874
875
  create(data) {
875
876
  var _this = this;
876
- return _async_to_generator$5(function*() {
877
+ return _async_to_generator$6(function*() {
877
878
  const { data: response } = yield _this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
878
879
  return response;
879
880
  })();
880
881
  }
881
882
  }
882
883
 
884
+ /*
885
+ * Copyright (c) 2021-2024.
886
+ * Author Peter Placzek (tada5hi)
887
+ * For the full copyright and license information,
888
+ * view the LICENSE file that was distributed with this source code.
889
+ */ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
890
+ try {
891
+ var info = gen[key](arg);
892
+ var value = info.value;
893
+ } catch (error) {
894
+ reject(error);
895
+ return;
896
+ }
897
+ if (info.done) {
898
+ resolve(value);
899
+ } else {
900
+ Promise.resolve(value).then(_next, _throw);
901
+ }
902
+ }
903
+ function _async_to_generator$5(fn) {
904
+ return function() {
905
+ var self = this, args = arguments;
906
+ return new Promise(function(resolve, reject) {
907
+ var gen = fn.apply(self, args);
908
+ function _next(value) {
909
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
910
+ }
911
+ function _throw(err) {
912
+ asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
913
+ }
914
+ _next(undefined);
915
+ });
916
+ };
917
+ }
918
+ class AnalysisLogAPI extends BaseAPI {
919
+ getMany(options) {
920
+ var _this = this;
921
+ return _async_to_generator$5(function*() {
922
+ const { data: response } = yield _this.client.get(`analysis-logs${buildQuery(options)}`);
923
+ return response;
924
+ })();
925
+ }
926
+ getOne(id) {
927
+ var _this = this;
928
+ return _async_to_generator$5(function*() {
929
+ const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
930
+ return response;
931
+ })();
932
+ }
933
+ delete(id) {
934
+ var _this = this;
935
+ return _async_to_generator$5(function*() {
936
+ const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
937
+ return response;
938
+ })();
939
+ }
940
+ update(id, data) {
941
+ var _this = this;
942
+ return _async_to_generator$5(function*() {
943
+ const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
944
+ return response;
945
+ })();
946
+ }
947
+ create(data) {
948
+ var _this = this;
949
+ return _async_to_generator$5(function*() {
950
+ const { data: response } = yield _this.client.post('analysis-logs', data);
951
+ return response;
952
+ })();
953
+ }
954
+ }
955
+
883
956
  /*
884
957
  * Copyright (c) 2021-2024.
885
958
  * Author Peter Placzek (tada5hi)
@@ -914,39 +987,39 @@ function _async_to_generator$4(fn) {
914
987
  });
915
988
  };
916
989
  }
917
- class AnalysisLogAPI extends BaseAPI {
990
+ class TrainStationAPI extends BaseAPI {
918
991
  getMany(options) {
919
992
  var _this = this;
920
993
  return _async_to_generator$4(function*() {
921
- const { data: response } = yield _this.client.get(`analysis-logs${buildQuery(options)}`);
994
+ const { data: response } = yield _this.client.get(`analysis-nodes${buildQuery(options)}`);
922
995
  return response;
923
996
  })();
924
997
  }
925
998
  getOne(id) {
926
999
  var _this = this;
927
1000
  return _async_to_generator$4(function*() {
928
- const { data: response } = yield _this.client.get(`analysis-logs/${id}`);
1001
+ const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
929
1002
  return response;
930
1003
  })();
931
1004
  }
932
1005
  delete(id) {
933
1006
  var _this = this;
934
1007
  return _async_to_generator$4(function*() {
935
- const { data: response } = yield _this.client.delete(`analysis-logs/${id}`);
1008
+ const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
936
1009
  return response;
937
1010
  })();
938
1011
  }
939
1012
  update(id, data) {
940
1013
  var _this = this;
941
1014
  return _async_to_generator$4(function*() {
942
- const { data: response } = yield _this.client.post(`analysis-logs/${id}`, data);
1015
+ const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
943
1016
  return response;
944
1017
  })();
945
1018
  }
946
1019
  create(data) {
947
1020
  var _this = this;
948
1021
  return _async_to_generator$4(function*() {
949
- const { data: response } = yield _this.client.post('analysis-logs', data);
1022
+ const { data: response } = yield _this.client.post('analysis-nodes', data);
950
1023
  return response;
951
1024
  })();
952
1025
  }
@@ -986,39 +1059,39 @@ function _async_to_generator$3(fn) {
986
1059
  });
987
1060
  };
988
1061
  }
989
- class TrainStationAPI extends BaseAPI {
1062
+ class AnalysisNodeLogAPI extends BaseAPI {
990
1063
  getMany(options) {
991
1064
  var _this = this;
992
1065
  return _async_to_generator$3(function*() {
993
- const { data: response } = yield _this.client.get(`analysis-nodes${buildQuery(options)}`);
1066
+ const { data: response } = yield _this.client.get(`analysis-node-logs${buildQuery(options)}`);
994
1067
  return response;
995
1068
  })();
996
1069
  }
997
1070
  getOne(id) {
998
1071
  var _this = this;
999
1072
  return _async_to_generator$3(function*() {
1000
- const { data: response } = yield _this.client.get(`analysis-nodes/${id}`);
1073
+ const { data: response } = yield _this.client.get(`analysis-node-logs/${id}`);
1001
1074
  return response;
1002
1075
  })();
1003
1076
  }
1004
1077
  delete(id) {
1005
1078
  var _this = this;
1006
1079
  return _async_to_generator$3(function*() {
1007
- const { data: response } = yield _this.client.delete(`analysis-nodes/${id}`);
1080
+ const { data: response } = yield _this.client.delete(`analysis-node-logs/${id}`);
1008
1081
  return response;
1009
1082
  })();
1010
1083
  }
1011
1084
  update(id, data) {
1012
1085
  var _this = this;
1013
1086
  return _async_to_generator$3(function*() {
1014
- const { data: response } = yield _this.client.post(`analysis-nodes/${id}`, data);
1087
+ const { data: response } = yield _this.client.post(`analysis-node-logs/${id}`, data);
1015
1088
  return response;
1016
1089
  })();
1017
1090
  }
1018
1091
  create(data) {
1019
1092
  var _this = this;
1020
1093
  return _async_to_generator$3(function*() {
1021
- const { data: response } = yield _this.client.post('analysis-nodes', data);
1094
+ const { data: response } = yield _this.client.post('analysis-node-logs', data);
1022
1095
  return response;
1023
1096
  })();
1024
1097
  }
@@ -1262,7 +1335,7 @@ class AnalysisBucketAPI extends BaseAPI {
1262
1335
  }
1263
1336
  class Client extends Client$1 {
1264
1337
  constructor(config){
1265
- super(config), _define_property(this, "masterImage", undefined), _define_property(this, "masterImageGroup", undefined), _define_property(this, "masterImageEventLog", undefined), _define_property(this, "project", undefined), _define_property(this, "projectNode", undefined), _define_property(this, "registry", undefined), _define_property(this, "registryProject", undefined), _define_property(this, "node", undefined), _define_property(this, "analysis", undefined), _define_property(this, "analysisBucket", undefined), _define_property(this, "analysisBucketFile", undefined), _define_property(this, "analysisLog", undefined), _define_property(this, "analysisNode", undefined), _define_property(this, "analysisPermission", undefined), _define_property(this, "service", undefined);
1338
+ super(config), _define_property(this, "masterImage", void 0), _define_property(this, "masterImageGroup", void 0), _define_property(this, "masterImageEventLog", void 0), _define_property(this, "project", void 0), _define_property(this, "projectNode", void 0), _define_property(this, "registry", void 0), _define_property(this, "registryProject", void 0), _define_property(this, "node", void 0), _define_property(this, "analysis", void 0), _define_property(this, "analysisBucket", void 0), _define_property(this, "analysisBucketFile", void 0), _define_property(this, "analysisLog", void 0), _define_property(this, "analysisNode", void 0), _define_property(this, "analysisNodeLog", void 0), _define_property(this, "analysisPermission", void 0), _define_property(this, "service", void 0);
1266
1339
  this.masterImage = new MasterImageAPI({
1267
1340
  client: this
1268
1341
  });
@@ -1302,6 +1375,9 @@ class Client extends Client$1 {
1302
1375
  this.analysisNode = new TrainStationAPI({
1303
1376
  client: this
1304
1377
  });
1378
+ this.analysisNodeLog = new AnalysisNodeLogAPI({
1379
+ client: this
1380
+ });
1305
1381
  this.analysisPermission = new AnalysisPermissionAPI({
1306
1382
  client: this
1307
1383
  });
@@ -1317,5 +1393,5 @@ class Client extends Client$1 {
1317
1393
  }
1318
1394
  }
1319
1395
 
1320
- export { AnalysisAPI, AnalysisBucketFileAPI, AnalysisLogAPI, AnalysisPermissionAPI, Client, MasterImageAPI, MasterImageEventLogAPI, MasterImageGroupAPI, NodeAPI, ProjectAPI, ProjectNodeAPI, RegistryAPI, RegistryProjectAPI, ServiceAPI, TrainStationAPI };
1396
+ export { AnalysisAPI, AnalysisBucketFileAPI, AnalysisLogAPI, AnalysisNodeLogAPI, AnalysisPermissionAPI, Client, MasterImageAPI, MasterImageEventLogAPI, MasterImageGroupAPI, NodeAPI, ProjectAPI, ProjectNodeAPI, RegistryAPI, RegistryProjectAPI, ServiceAPI, TrainStationAPI };
1321
1397
  //# sourceMappingURL=index.mjs.map