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