@privateaim/client-vue 0.8.13 → 0.8.15

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.
Files changed (94) hide show
  1. package/dist/components/FEntityDelete.d.ts +1 -1
  2. package/dist/components/analysis/FAnalyses.d.ts +1 -1
  3. package/dist/components/analysis/FAnalysis.d.ts +1 -1
  4. package/dist/components/analysis/FAnalysisBasicForm.vue.d.ts +2 -2
  5. package/dist/components/analysis/FAnalysisBuildStatusText.vue.d.ts +1 -1
  6. package/dist/components/analysis/FAnalysisCommand.d.ts +1 -1
  7. package/dist/components/analysis/FAnalysisImageCommandArguments.vue.d.ts +1 -1
  8. package/dist/components/analysis/FAnalysisItem.d.ts +5 -5
  9. package/dist/components/analysis/FAnalysisItemCard.vue.d.ts +6 -6
  10. package/dist/components/analysis/FAnalysisName.d.ts +1 -1
  11. package/dist/components/analysis/FAnalysisPipeline.vue.d.ts +3 -3
  12. package/dist/components/analysis/wizard/FAnalysisWizard.vue.d.ts +58 -56
  13. package/dist/components/analysis/wizard/FAnalysisWizard.vue.d.ts.map +1 -1
  14. package/dist/components/analysis/wizard/FAnalysisWizardLockModal.vue.d.ts +18 -18
  15. package/dist/components/analysis/wizard/FAnalysisWizardLockModal.vue.d.ts.map +1 -1
  16. package/dist/components/analysis/wizard/FAnalysisWizardStepFiles.vue.d.ts +25 -25
  17. package/dist/components/analysis/wizard/FAnalysisWizardStepFiles.vue.d.ts.map +1 -1
  18. package/dist/components/analysis/wizard/FAnalysisWizardStepImage.vue.d.ts +3 -3
  19. package/dist/components/analysis/wizard/FAnalysisWizardStepNodes.vue.d.ts +22 -22
  20. package/dist/components/analysis/wizard/FAnalysisWizardStepNodes.vue.d.ts.map +1 -1
  21. package/dist/components/analysis/wizard/FAnalysisWizardStepSecurity.vue.d.ts +3 -3
  22. package/dist/components/analysis/wizard/FAnalysisWizardStepSecurity.vue.d.ts.map +1 -1
  23. package/dist/components/analysis-bucket/FAnalysisBucket.d.ts +1 -1
  24. package/dist/components/analysis-bucket-file/FAnalysisBucketFile.vue.d.ts +1 -1
  25. package/dist/components/analysis-bucket-file/FAnalysisBucketFileManager.vue.d.ts +22 -22
  26. package/dist/components/analysis-bucket-file/FAnalysisBucketFileManager.vue.d.ts.map +1 -1
  27. package/dist/components/analysis-bucket-file/FAnalysisBucketFiles.d.ts +1 -1
  28. package/dist/components/analysis-log/FAnalysisLog.d.ts +2 -2
  29. package/dist/components/analysis-log/FAnalysisLog.d.ts.map +1 -1
  30. package/dist/components/analysis-log/FAnalysisLogs.d.ts.map +1 -1
  31. package/dist/components/analysis-node/FAnalsisNodeApprovalCommand.d.ts +1 -1
  32. package/dist/components/analysis-node/FAnalysisNode.d.ts +1 -1
  33. package/dist/components/analysis-node/FAnalysisNodeAssignAction.d.ts +1 -1
  34. package/dist/components/analysis-node/FAnalysisNodeInCard.vue.d.ts +4 -4
  35. package/dist/components/analysis-node/FAnalysisNodeManager.vue.d.ts +21 -21
  36. package/dist/components/analysis-node/FAnalysisNodeManager.vue.d.ts.map +1 -1
  37. package/dist/components/analysis-node/FAnalysisNodesProgress.vue.d.ts.map +1 -1
  38. package/dist/components/analysis-permission/FAnalysisPermissionAssignment.d.ts +1 -1
  39. package/dist/components/analysis-permission/FAnalysisPermissionAssignments.d.ts +1 -1
  40. package/dist/components/{master-image-event-log/FMasterImageEventLog.d.ts → event/FEvent.d.ts} +4 -4
  41. package/dist/components/event/FEvent.d.ts.map +1 -0
  42. package/dist/components/event/FEventActor.vue.d.ts +15 -0
  43. package/dist/components/event/FEventActor.vue.d.ts.map +1 -0
  44. package/dist/components/event/FEventExpiring.vue.d.ts +25 -0
  45. package/dist/components/event/FEventExpiring.vue.d.ts.map +1 -0
  46. package/dist/components/event/FEventRef.vue.d.ts +25 -0
  47. package/dist/components/event/FEventRef.vue.d.ts.map +1 -0
  48. package/dist/components/event/FEvents.d.ts +14 -0
  49. package/dist/components/event/FEvents.d.ts.map +1 -0
  50. package/dist/components/event/index.d.ts +6 -0
  51. package/dist/components/event/index.d.ts.map +1 -0
  52. package/dist/components/index.d.ts +2 -1
  53. package/dist/components/index.d.ts.map +1 -1
  54. package/dist/components/log/FLog.d.ts +27 -0
  55. package/dist/components/log/FLog.d.ts.map +1 -0
  56. package/dist/components/log/index.d.ts +2 -0
  57. package/dist/components/log/index.d.ts.map +1 -0
  58. package/dist/components/master-image/FMasterImage.d.ts +1 -1
  59. package/dist/components/master-image/FMasterImagePicker.d.ts +1 -1
  60. package/dist/components/master-image/FMasterImages.d.ts +1 -1
  61. package/dist/components/master-image/FMasterImagesSync.d.ts +2 -2
  62. package/dist/components/master-image-group/FMasterImageGroups.d.ts +1 -1
  63. package/dist/components/node/FNodeCrypto.vue.d.ts +1 -1
  64. package/dist/components/node/FNodeForm.d.ts +2 -2
  65. package/dist/components/node/FNodeRegistryProject.d.ts +1 -1
  66. package/dist/components/node/FNodeRobot.d.ts +1 -1
  67. package/dist/components/node/FNodes.d.ts +1 -1
  68. package/dist/components/project/FProject.d.ts +1 -1
  69. package/dist/components/project/FProjectForm.d.ts +1 -1
  70. package/dist/components/project/FProjectItem.d.ts +1 -1
  71. package/dist/components/project/FProjectItemCard.vue.d.ts +1 -1
  72. package/dist/components/project/FProjects.d.ts +1 -1
  73. package/dist/components/project-node/FProjectNode.d.ts +1 -1
  74. package/dist/components/project-node/FProjectNodeApprovalCommand.d.ts +1 -1
  75. package/dist/components/project-node/FProjectNodeAssignAction.d.ts +1 -1
  76. package/dist/components/project-node/FProjectNodeInCard.vue.d.ts +19 -19
  77. package/dist/components/project-node/FProjectNodeInCard.vue.d.ts.map +1 -1
  78. package/dist/components/registry/FRegistries.d.ts +1 -1
  79. package/dist/components/registry/FRegistryCleanup.d.ts +2 -2
  80. package/dist/components/registry/FRegistryForm.d.ts +1 -1
  81. package/dist/components/registry/FRegistrySetup.d.ts +2 -2
  82. package/dist/components/registry-project/FRegistryProject.d.ts +1 -1
  83. package/dist/components/registry-project/FRegistryProjects.d.ts +1 -1
  84. package/dist/core/entity-socket/module.d.ts.map +1 -1
  85. package/dist/index.cjs +995 -724
  86. package/dist/index.cjs.map +1 -1
  87. package/dist/index.mjs +991 -724
  88. package/dist/index.mjs.map +1 -1
  89. package/package.json +22 -22
  90. package/dist/components/master-image-event-log/FMasterImageEventLog.d.ts.map +0 -1
  91. package/dist/components/master-image-event-log/FMasterImageEventLogs.d.ts +0 -5
  92. package/dist/components/master-image-event-log/FMasterImageEventLogs.d.ts.map +0 -1
  93. package/dist/components/master-image-event-log/index.d.ts +0 -3
  94. package/dist/components/master-image-event-log/index.d.ts.map +0 -1
package/dist/index.cjs CHANGED
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var smob = require('smob');
6
6
  var vue = require('vue');
7
+ var timeago = require('@vuecs/timeago');
8
+ var kit = require('@authup/kit');
9
+ var coreKit$1 = require('@authup/core-kit');
10
+ var crypto$1 = require('crypto');
7
11
  var clientWebKit = require('@authup/client-web-kit');
8
12
  var vuelidate = require('@ilingo/vuelidate');
9
13
  var useVuelidate = require('@vuelidate/core');
10
14
  var validators = require('@vuelidate/validators');
11
15
  var formControls = require('@vuecs/form-controls');
12
16
  var coreKit = require('@privateaim/core-kit');
13
- var coreKit$1 = require('@authup/core-kit');
14
- var crypto$1 = require('crypto');
15
17
  var listControls = require('@vuecs/list-controls');
16
18
  var rapiq = require('rapiq');
17
- require('@authup/kit');
18
19
  var storageKit = require('@privateaim/storage-kit');
19
20
  var coreRealtimeKit = require('@authup/core-realtime-kit');
20
- var timeago = require('@vuecs/timeago');
21
21
  var link = require('@vuecs/link');
22
22
  var bootstrapVueNext = require('bootstrap-vue-next');
23
23
  var vue3FormWizard = require('vue3-form-wizard');
@@ -238,193 +238,6 @@ function installStoreManager(instance, key) {
238
238
  return manager;
239
239
  }
240
240
 
241
- var _sfc_main$q = vue.defineComponent({
242
- components: {
243
- IVuelidate: vuelidate.IVuelidate,
244
- VCFormInput: formControls.VCFormInput,
245
- VCFormSubmit: formControls.VCFormSubmit
246
- },
247
- props: {
248
- realmId: {
249
- type: String
250
- }
251
- },
252
- emits: [
253
- 'done',
254
- 'failed'
255
- ],
256
- setup (props, { emit }) {
257
- const store = clientWebKit.injectStore();
258
- const realmId = vue.toRef(props, 'realmId');
259
- const form = vue.reactive({
260
- name: '',
261
- password: '',
262
- realm_id: ''
263
- });
264
- if (realmId.value) {
265
- form.realm_id = realmId.value;
266
- }
267
- vue.watch(realmId, (val)=>{
268
- form.realm_id = val ?? '';
269
- });
270
- const vuelidate = useVuelidate({
271
- name: {
272
- required: validators.required,
273
- minLength: validators.minLength(3),
274
- maxLength: validators.maxLength(255)
275
- },
276
- password: {
277
- required: validators.required,
278
- minLength: validators.minLength(3),
279
- maxLength: validators.maxLength(255)
280
- },
281
- realm_id: {}
282
- }, form);
283
- const busy = vue.ref(false);
284
- const submit = async ()=>{
285
- try {
286
- await store.login({
287
- name: form.name,
288
- password: form.password,
289
- realmId: form.realm_id
290
- });
291
- emit('done');
292
- } catch (e) {
293
- if (e instanceof Error) {
294
- emit('failed', e);
295
- }
296
- }
297
- };
298
- return {
299
- vuelidate,
300
- form,
301
- submit,
302
- busy
303
- };
304
- }
305
- });
306
-
307
- var _export_sfc = ((sfc, props)=>{
308
- const target = sfc.__vccOpts || sfc;
309
- for (const [key, val] of props){
310
- target[key] = val;
311
- }
312
- return target;
313
- });
314
-
315
- function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
316
- const _component_VCFormInput = vue.resolveComponent("VCFormInput");
317
- const _component_VCFormGroup = vue.resolveComponent("VCFormGroup");
318
- const _component_IVuelidate = vue.resolveComponent("IVuelidate");
319
- const _component_VCFormSubmit = vue.resolveComponent("VCFormSubmit");
320
- return vue.openBlock(), vue.createElementBlock("form", {
321
- onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args)=>_ctx.submit && _ctx.submit(...args), [
322
- "prevent"
323
- ]))
324
- }, [
325
- vue.createVNode(_component_IVuelidate, {
326
- validation: _ctx.vuelidate.name
327
- }, {
328
- default: vue.withCtx((props)=>[
329
- vue.createVNode(_component_VCFormGroup, {
330
- "validation-messages": props.data,
331
- "validation-severity": props.severity
332
- }, {
333
- label: vue.withCtx(()=>_cache[4] || (_cache[4] = [
334
- vue.createTextVNode(" Name ")
335
- ])),
336
- default: vue.withCtx(()=>[
337
- vue.createVNode(_component_VCFormInput, {
338
- modelValue: _ctx.vuelidate.name.$model,
339
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>_ctx.vuelidate.name.$model = $event)
340
- }, null, 8, [
341
- "modelValue"
342
- ])
343
- ]),
344
- _: 2
345
- }, 1032, [
346
- "validation-messages",
347
- "validation-severity"
348
- ])
349
- ]),
350
- _: 1
351
- }, 8, [
352
- "validation"
353
- ]),
354
- vue.createVNode(_component_IVuelidate, {
355
- validation: _ctx.vuelidate.password
356
- }, {
357
- default: vue.withCtx((props)=>[
358
- vue.createVNode(_component_VCFormGroup, {
359
- "validation-messages": props.data,
360
- "validation-severity": props.severity
361
- }, {
362
- label: vue.withCtx(()=>_cache[5] || (_cache[5] = [
363
- vue.createTextVNode(" Password ")
364
- ])),
365
- default: vue.withCtx(()=>[
366
- vue.createVNode(_component_VCFormInput, {
367
- modelValue: _ctx.vuelidate.password.$model,
368
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>_ctx.vuelidate.password.$model = $event),
369
- type: "password"
370
- }, null, 8, [
371
- "modelValue"
372
- ])
373
- ]),
374
- _: 2
375
- }, 1032, [
376
- "validation-messages",
377
- "validation-severity"
378
- ])
379
- ]),
380
- _: 1
381
- }, 8, [
382
- "validation"
383
- ]),
384
- vue.createVNode(_component_VCFormSubmit, {
385
- modelValue: _ctx.busy,
386
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event)=>_ctx.busy = $event),
387
- invalid: _ctx.vuelidate.$invalid,
388
- "create-text": "Login",
389
- "create-button-class": {
390
- value: "btn btn-sm btn-dark btn-block",
391
- presets: {
392
- bootstrap: false
393
- }
394
- },
395
- "create-icon-class": "fa-solid fa-right-to-bracket",
396
- submit: _ctx.submit
397
- }, null, 8, [
398
- "modelValue",
399
- "invalid",
400
- "submit"
401
- ])
402
- ], 32);
403
- }
404
- var FLoginForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [
405
- [
406
- "render",
407
- _sfc_render$q
408
- ]
409
- ]);
410
-
411
- /*
412
- * Copyright (c) 2024.
413
- * Author Peter Placzek (tada5hi)
414
- * For the full copyright and license information,
415
- * view the LICENSE file that was distributed with this source code.
416
- */ var ActionCommandElementType = /*#__PURE__*/ function(ActionCommandElementType) {
417
- ActionCommandElementType["BUTTON"] = "button";
418
- ActionCommandElementType["LINK"] = "link";
419
- ActionCommandElementType["DROPDOWN_ITEM"] = "dropDownItem";
420
- return ActionCommandElementType;
421
- }({});
422
-
423
- // It is best to make fewer, larger requests to the crypto module to
424
- // avoid system call overhead. So, random numbers are generated in a
425
- // pool. The pool is a Buffer that is larger than the initial random
426
- // request size by this multiplier. The pool is enlarged if subsequent
427
- // requests exceed the maximum buffer size.
428
241
  const POOL_SIZE_MULTIPLIER = 128;
429
242
  let pool, poolOffset;
430
243
  let fillPool = (bytes)=>{
@@ -439,35 +252,18 @@ let fillPool = (bytes)=>{
439
252
  poolOffset += bytes;
440
253
  };
441
254
  let random = (bytes)=>{
442
- // `|=` convert `bytes` to number to prevent `valueOf` abusing and pool pollution
443
255
  fillPool(bytes |= 0);
444
256
  return pool.subarray(poolOffset - bytes, poolOffset);
445
257
  };
446
258
  let customRandom = (alphabet, defaultSize, getRandom)=>{
447
- // First, a bitmask is necessary to generate the ID. The bitmask makes bytes
448
- // values closer to the alphabet size. The bitmask calculates the closest
449
- // `2^31 - 1` number, which exceeds the alphabet size.
450
- // For example, the bitmask for the alphabet size 30 is 31 (00011111).
451
259
  let mask = (2 << 31 - Math.clz32(alphabet.length - 1 | 1)) - 1;
452
- // Though, the bitmask solution is not perfect since the bytes exceeding
453
- // the alphabet size are refused. Therefore, to reliably generate the ID,
454
- // the random bytes redundancy has to be satisfied.
455
- // Note: every hardware random generator call is performance expensive,
456
- // because the system call for entropy collection takes a lot of time.
457
- // So, to avoid additional system calls, extra bytes are requested in advance.
458
- // Next, a step determines how many random bytes to generate.
459
- // The number of random bytes gets decided upon the ID size, mask,
460
- // alphabet size, and magic number 1.6 (using 1.6 peaks at performance
461
- // according to benchmarks).
462
260
  let step = Math.ceil(1.6 * mask * defaultSize / alphabet.length);
463
261
  return (size = defaultSize)=>{
464
262
  let id = '';
465
263
  while(true){
466
264
  let bytes = getRandom(step);
467
- // A compact alternative for `for (let i = 0; i < step; i++)`.
468
265
  let i = step;
469
266
  while(i--){
470
- // Adding `|| ''` refuses a random byte that exceeds the alphabet size.
471
267
  id += alphabet[bytes[i] & mask] || '';
472
268
  if (id.length === size) return id;
473
269
  }
@@ -491,7 +287,7 @@ let customAlphabet = (alphabet, size = 21)=>customRandom(alphabet, size, random)
491
287
  * Author Peter Placzek (tada5hi)
492
288
  * For the full copyright and license information,
493
289
  * view the LICENSE file that was distributed with this source code.
494
- */ function asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, key, arg) {
290
+ */ function asyncGeneratorStep$3$1(gen, resolve, reject, _next, _throw, key, arg) {
495
291
  try {
496
292
  var info = gen[key](arg);
497
293
  var value = info.value;
@@ -505,16 +301,16 @@ let customAlphabet = (alphabet, size = 21)=>customRandom(alphabet, size, random)
505
301
  Promise.resolve(value).then(_next, _throw);
506
302
  }
507
303
  }
508
- function _async_to_generator$2$1(fn) {
304
+ function _async_to_generator$3$1(fn) {
509
305
  return function() {
510
306
  var self = this, args = arguments;
511
307
  return new Promise(function(resolve, reject) {
512
308
  var gen = fn.apply(self, args);
513
309
  function _next(value) {
514
- asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, "next", value);
310
+ asyncGeneratorStep$3$1(gen, resolve, reject, _next, _throw, "next", value);
515
311
  }
516
312
  function _throw(err) {
517
- asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, "throw", err);
313
+ asyncGeneratorStep$3$1(gen, resolve, reject, _next, _throw, "throw", err);
518
314
  }
519
315
  _next(undefined);
520
316
  });
@@ -524,13 +320,13 @@ function arrayBufferToBase64(arrayBuffer) {
524
320
  return btoa(String.fromCharCode.apply(null, new Uint8Array(arrayBuffer)));
525
321
  }
526
322
  function exportAsymmetricPublicKey(key) {
527
- return _async_to_generator$2$1(function*() {
323
+ return _async_to_generator$3$1(function*() {
528
324
  const exported = yield crypto.subtle.exportKey('spki', key);
529
325
  return `-----BEGIN PUBLIC KEY-----\n${arrayBufferToBase64(exported)}\n-----END PUBLIC KEY-----`;
530
326
  })();
531
327
  }
532
328
  function exportAsymmetricPrivateKey(key) {
533
- return _async_to_generator$2$1(function*() {
329
+ return _async_to_generator$3$1(function*() {
534
330
  const exported = yield crypto.subtle.exportKey('pkcs8', key);
535
331
  return `-----BEGIN PRIVATE KEY-----\n${arrayBufferToBase64(exported)}\n-----END PRIVATE KEY-----`;
536
332
  })();
@@ -540,7 +336,7 @@ function exportAsymmetricPrivateKey(key) {
540
336
  * Author Peter Placzek (tada5hi)
541
337
  * For the full copyright and license information,
542
338
  * view the LICENSE file that was distributed with this source code.
543
- */ function asyncGeneratorStep$1$1(gen, resolve, reject, _next, _throw, key, arg) {
339
+ */ function asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, key, arg) {
544
340
  try {
545
341
  var info = gen[key](arg);
546
342
  var value = info.value;
@@ -554,16 +350,16 @@ function exportAsymmetricPrivateKey(key) {
554
350
  Promise.resolve(value).then(_next, _throw);
555
351
  }
556
352
  }
557
- function _async_to_generator$1$1(fn) {
353
+ function _async_to_generator$2$1(fn) {
558
354
  return function() {
559
355
  var self = this, args = arguments;
560
356
  return new Promise(function(resolve, reject) {
561
357
  var gen = fn.apply(self, args);
562
358
  function _next(value) {
563
- asyncGeneratorStep$1$1(gen, resolve, reject, _next, _throw, "next", value);
359
+ asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, "next", value);
564
360
  }
565
361
  function _throw(err) {
566
- asyncGeneratorStep$1$1(gen, resolve, reject, _next, _throw, "throw", err);
362
+ asyncGeneratorStep$2$1(gen, resolve, reject, _next, _throw, "throw", err);
567
363
  }
568
364
  _next(undefined);
569
365
  });
@@ -634,7 +430,7 @@ class CryptoAsymmetricAlgorithm {
634
430
  throw new Error('Import params could not be created.');
635
431
  }
636
432
  generateKeyPair() {
637
- return _async_to_generator$1$1(function*() {
433
+ return _async_to_generator$2$1(function*() {
638
434
  if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
639
435
  this.keyPair = yield crypto.subtle.generateKey(this.algorithm, true, [
640
436
  'encrypt',
@@ -652,7 +448,7 @@ class CryptoAsymmetricAlgorithm {
652
448
  }).call(this);
653
449
  }
654
450
  useKeyPair() {
655
- return _async_to_generator$1$1(function*() {
451
+ return _async_to_generator$2$1(function*() {
656
452
  if (typeof this.keyPair !== 'undefined') {
657
453
  return this.keyPair;
658
454
  }
@@ -660,19 +456,19 @@ class CryptoAsymmetricAlgorithm {
660
456
  }).call(this);
661
457
  }
662
458
  exportPublicKey() {
663
- return _async_to_generator$1$1(function*() {
459
+ return _async_to_generator$2$1(function*() {
664
460
  const keyPair = yield this.useKeyPair();
665
461
  return exportAsymmetricPublicKey(keyPair.publicKey);
666
462
  }).call(this);
667
463
  }
668
464
  exportPrivateKey() {
669
- return _async_to_generator$1$1(function*() {
465
+ return _async_to_generator$2$1(function*() {
670
466
  const keyPair = yield this.useKeyPair();
671
467
  return exportAsymmetricPrivateKey(keyPair.privateKey);
672
468
  }).call(this);
673
469
  }
674
470
  encrypt(data, remoteKey) {
675
- return _async_to_generator$1$1(function*() {
471
+ return _async_to_generator$2$1(function*() {
676
472
  const keyPair = yield this.useKeyPair();
677
473
  if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
678
474
  return crypto.subtle.encrypt({
@@ -709,7 +505,7 @@ class CryptoAsymmetricAlgorithm {
709
505
  }).call(this);
710
506
  }
711
507
  decrypt(data, remoteKey) {
712
- return _async_to_generator$1$1(function*() {
508
+ return _async_to_generator$2$1(function*() {
713
509
  const keyPair = yield this.useKeyPair();
714
510
  if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
715
511
  return crypto.subtle.decrypt({
@@ -754,12 +550,70 @@ class CryptoAsymmetricAlgorithm {
754
550
  this.algorithm = algorithm;
755
551
  }
756
552
  }
553
+ /*
554
+ * Copyright (c) 2025.
555
+ * Author Peter Placzek (tada5hi)
556
+ * For the full copyright and license information,
557
+ * view the LICENSE file that was distributed with this source code.
558
+ */ var LogLevel = /*#__PURE__*/ function(LogLevel) {
559
+ /**
560
+ * indicates that the system is unusable
561
+ * and requires immediate attention
562
+ */ LogLevel["EMERGENCE"] = "emerg";
563
+ /**
564
+ * indicates that immediate action is necessary
565
+ * to resolve a critical issue.
566
+ */ LogLevel["ALERT"] = "alert";
567
+ /**
568
+ * signifies critical conditions in the program that demand
569
+ * intervention to prevent system failure.
570
+ */ LogLevel["CRITICAL"] = "crit";
571
+ /**
572
+ * indicates error conditions that impair
573
+ * some operation but are less severe than critical situations.
574
+ */ LogLevel["ERROR"] = "error";
575
+ /**
576
+ * signifies potential issues that may lead to errors
577
+ * or unexpected behavior in the future if not addressed.
578
+ */ LogLevel["WARNING"] = "warn";
579
+ /**
580
+ * applies to normal but significant
581
+ * conditions that may require monitoring
582
+ */ LogLevel["NOTICE"] = "notice";
583
+ /**
584
+ * includes messages that provide a record
585
+ * of the normal operation of the system.
586
+ */ LogLevel["INFORMATIONAL"] = "info";
587
+ /**
588
+ * intended for logging detailed information about the system
589
+ * for debugging purposes.
590
+ */ LogLevel["DEBUG"] = "debug";
591
+ return LogLevel;
592
+ }({});
593
+ function omitLogProperties(input) {
594
+ return kit.omitRecord(input, [
595
+ 'message',
596
+ 'time',
597
+ 'labels',
598
+ 'level'
599
+ ]);
600
+ }
601
+ function pickLogProperties(input) {
602
+ return kit.pickRecord(input, [
603
+ 'message',
604
+ 'time',
605
+ 'labels',
606
+ 'level'
607
+ ]);
608
+ }
757
609
  /*
758
610
  * Copyright (c) 2021-2024.
759
611
  * Author Peter Placzek (tada5hi)
760
612
  * For the full copyright and license information,
761
613
  * view the LICENSE file that was distributed with this source code.
762
614
  */ var PermissionName = /*#__PURE__*/ function(PermissionName) {
615
+ PermissionName["EVENT_READ"] = "event_read";
616
+ PermissionName["EVENT_DELETE"] = "event_delete";
763
617
  PermissionName["BUCKET_CREATE"] = "bucket_create";
764
618
  PermissionName["BUCKET_UPDATE"] = "bucket_update";
765
619
  PermissionName["BUCKET_DELETE"] = "bucket_delete";
@@ -840,46 +694,300 @@ function createNanoID(alphabetOrLen, len) {
840
694
  return type + eventCapitalized;
841
695
  }
842
696
 
843
- /**
844
- * Returns true if either scoped or unscoped named slot exists
845
- *
846
- * @returns {Array|undefined} VNodes
847
- *
848
- * @param name
849
- * @param $slots
850
- */ function hasNormalizedSlot(name, $slots = {}) {
851
- return hasOwnProperty($slots, name);
852
- }
853
- /**
854
- * Returns VNodes for named slot either scoped or unscoped
855
- *
856
- * @param name
857
- * @param scope
858
- * @param $slots
859
- *
860
- * @returns {Array} VNodes
861
- */ function normalizeSlot(name, scope = {}, $slots = {}) {
862
- if (hasOwnProperty($slots, name)) {
863
- return $slots[name](scope);
864
- }
865
- return [];
866
- }
867
-
868
- function renderActionCommand(ctx) {
869
- if (!ctx.isAllowed) {
870
- return vue.h('span', {}, [
871
- ''
872
- ]);
873
- }
874
- const attributes = {
875
- onClick (event) {
876
- event.preventDefault();
877
- return ctx.execute();
697
+ var FLog = vue.defineComponent({
698
+ props: {
699
+ index: {
700
+ type: Number,
701
+ default: 0
878
702
  },
879
- disabled: ctx.isDisabled
880
- };
881
- const iconClasses = [
882
- ctx.iconClass
703
+ entity: {
704
+ type: Object,
705
+ required: true
706
+ }
707
+ },
708
+ setup (props) {
709
+ const entity = vue.toRef(props, 'entity');
710
+ const index = vue.toRef(props, 'index');
711
+ const isError = vue.computed(()=>[
712
+ LogLevel.ERROR,
713
+ LogLevel.CRITICAL,
714
+ LogLevel.EMERGENCE,
715
+ LogLevel.ALERT,
716
+ LogLevel.WARNING
717
+ ].indexOf(entity.value.level) !== -1);
718
+ const isoDate = vue.computed(()=>{
719
+ let date;
720
+ if (typeof entity.value.time === 'string') {
721
+ date = new Date(Math.floor(Number(BigInt(entity.value.time) / 1000000n)));
722
+ } else {
723
+ date = new Date(Math.floor(Number(entity.value.time / 1000000n)));
724
+ }
725
+ return date.toISOString();
726
+ });
727
+ return ()=>vue.h('div', {
728
+ class: `line line-${index.value + 1}`
729
+ }, [
730
+ vue.h('div', {
731
+ class: 'd-flex flex-row'
732
+ }, [
733
+ vue.h('div', {
734
+ class: 'line-number'
735
+ }, [
736
+ index.value + 1
737
+ ]),
738
+ vue.h('div', {
739
+ class: 'line-content d-flex flex-row'
740
+ }, [
741
+ vue.h('div', {
742
+ class: 'line-component'
743
+ }, [
744
+ `[${entity.value.level}]`
745
+ ]),
746
+ vue.h('div', {
747
+ class: [
748
+ 'line-message',
749
+ {
750
+ error: isError.value
751
+ }
752
+ ]
753
+ }, [
754
+ entity.value.message
755
+ ]),
756
+ vue.h('div', {
757
+ class: 'ms-auto'
758
+ }, [
759
+ vue.h(timeago.VCTimeago, {
760
+ datetime: isoDate.value
761
+ })
762
+ ])
763
+ ])
764
+ ])
765
+ ]);
766
+ }
767
+ });
768
+
769
+ var _sfc_main$t = vue.defineComponent({
770
+ components: {
771
+ IVuelidate: vuelidate.IVuelidate,
772
+ VCFormInput: formControls.VCFormInput,
773
+ VCFormSubmit: formControls.VCFormSubmit
774
+ },
775
+ props: {
776
+ realmId: {
777
+ type: String
778
+ }
779
+ },
780
+ emits: [
781
+ 'done',
782
+ 'failed'
783
+ ],
784
+ setup (props, { emit }) {
785
+ const store = clientWebKit.injectStore();
786
+ const realmId = vue.toRef(props, 'realmId');
787
+ const form = vue.reactive({
788
+ name: '',
789
+ password: '',
790
+ realm_id: ''
791
+ });
792
+ if (realmId.value) {
793
+ form.realm_id = realmId.value;
794
+ }
795
+ vue.watch(realmId, (val)=>{
796
+ form.realm_id = val ?? '';
797
+ });
798
+ const vuelidate = useVuelidate({
799
+ name: {
800
+ required: validators.required,
801
+ minLength: validators.minLength(3),
802
+ maxLength: validators.maxLength(255)
803
+ },
804
+ password: {
805
+ required: validators.required,
806
+ minLength: validators.minLength(3),
807
+ maxLength: validators.maxLength(255)
808
+ },
809
+ realm_id: {}
810
+ }, form);
811
+ const busy = vue.ref(false);
812
+ const submit = async ()=>{
813
+ try {
814
+ await store.login({
815
+ name: form.name,
816
+ password: form.password,
817
+ realmId: form.realm_id
818
+ });
819
+ emit('done');
820
+ } catch (e) {
821
+ if (e instanceof Error) {
822
+ emit('failed', e);
823
+ }
824
+ }
825
+ };
826
+ return {
827
+ vuelidate,
828
+ form,
829
+ submit,
830
+ busy
831
+ };
832
+ }
833
+ });
834
+
835
+ var _export_sfc = ((sfc, props)=>{
836
+ const target = sfc.__vccOpts || sfc;
837
+ for (const [key, val] of props){
838
+ target[key] = val;
839
+ }
840
+ return target;
841
+ });
842
+
843
+ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
844
+ const _component_VCFormInput = vue.resolveComponent("VCFormInput");
845
+ const _component_VCFormGroup = vue.resolveComponent("VCFormGroup");
846
+ const _component_IVuelidate = vue.resolveComponent("IVuelidate");
847
+ const _component_VCFormSubmit = vue.resolveComponent("VCFormSubmit");
848
+ return vue.openBlock(), vue.createElementBlock("form", {
849
+ onSubmit: _cache[3] || (_cache[3] = vue.withModifiers((...args)=>_ctx.submit && _ctx.submit(...args), [
850
+ "prevent"
851
+ ]))
852
+ }, [
853
+ vue.createVNode(_component_IVuelidate, {
854
+ validation: _ctx.vuelidate.name
855
+ }, {
856
+ default: vue.withCtx((props)=>[
857
+ vue.createVNode(_component_VCFormGroup, {
858
+ "validation-messages": props.data,
859
+ "validation-severity": props.severity
860
+ }, {
861
+ label: vue.withCtx(()=>_cache[4] || (_cache[4] = [
862
+ vue.createTextVNode(" Name ")
863
+ ])),
864
+ default: vue.withCtx(()=>[
865
+ vue.createVNode(_component_VCFormInput, {
866
+ modelValue: _ctx.vuelidate.name.$model,
867
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event)=>_ctx.vuelidate.name.$model = $event)
868
+ }, null, 8, [
869
+ "modelValue"
870
+ ])
871
+ ]),
872
+ _: 2
873
+ }, 1032, [
874
+ "validation-messages",
875
+ "validation-severity"
876
+ ])
877
+ ]),
878
+ _: 1
879
+ }, 8, [
880
+ "validation"
881
+ ]),
882
+ vue.createVNode(_component_IVuelidate, {
883
+ validation: _ctx.vuelidate.password
884
+ }, {
885
+ default: vue.withCtx((props)=>[
886
+ vue.createVNode(_component_VCFormGroup, {
887
+ "validation-messages": props.data,
888
+ "validation-severity": props.severity
889
+ }, {
890
+ label: vue.withCtx(()=>_cache[5] || (_cache[5] = [
891
+ vue.createTextVNode(" Password ")
892
+ ])),
893
+ default: vue.withCtx(()=>[
894
+ vue.createVNode(_component_VCFormInput, {
895
+ modelValue: _ctx.vuelidate.password.$model,
896
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event)=>_ctx.vuelidate.password.$model = $event),
897
+ type: "password"
898
+ }, null, 8, [
899
+ "modelValue"
900
+ ])
901
+ ]),
902
+ _: 2
903
+ }, 1032, [
904
+ "validation-messages",
905
+ "validation-severity"
906
+ ])
907
+ ]),
908
+ _: 1
909
+ }, 8, [
910
+ "validation"
911
+ ]),
912
+ vue.createVNode(_component_VCFormSubmit, {
913
+ modelValue: _ctx.busy,
914
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event)=>_ctx.busy = $event),
915
+ invalid: _ctx.vuelidate.$invalid,
916
+ "create-text": "Login",
917
+ "create-button-class": {
918
+ value: "btn btn-sm btn-dark btn-block",
919
+ presets: {
920
+ bootstrap: false
921
+ }
922
+ },
923
+ "create-icon-class": "fa-solid fa-right-to-bracket",
924
+ submit: _ctx.submit
925
+ }, null, 8, [
926
+ "modelValue",
927
+ "invalid",
928
+ "submit"
929
+ ])
930
+ ], 32);
931
+ }
932
+ var FLoginForm = /* @__PURE__ */ _export_sfc(_sfc_main$t, [
933
+ [
934
+ "render",
935
+ _sfc_render$t
936
+ ]
937
+ ]);
938
+
939
+ /*
940
+ * Copyright (c) 2024.
941
+ * Author Peter Placzek (tada5hi)
942
+ * For the full copyright and license information,
943
+ * view the LICENSE file that was distributed with this source code.
944
+ */ var ActionCommandElementType = /*#__PURE__*/ function(ActionCommandElementType) {
945
+ ActionCommandElementType["BUTTON"] = "button";
946
+ ActionCommandElementType["LINK"] = "link";
947
+ ActionCommandElementType["DROPDOWN_ITEM"] = "dropDownItem";
948
+ return ActionCommandElementType;
949
+ }({});
950
+
951
+ /**
952
+ * Returns true if either scoped or unscoped named slot exists
953
+ *
954
+ * @returns {Array|undefined} VNodes
955
+ *
956
+ * @param name
957
+ * @param $slots
958
+ */ function hasNormalizedSlot(name, $slots = {}) {
959
+ return hasOwnProperty($slots, name);
960
+ }
961
+ /**
962
+ * Returns VNodes for named slot either scoped or unscoped
963
+ *
964
+ * @param name
965
+ * @param scope
966
+ * @param $slots
967
+ *
968
+ * @returns {Array} VNodes
969
+ */ function normalizeSlot(name, scope = {}, $slots = {}) {
970
+ if (hasOwnProperty($slots, name)) {
971
+ return $slots[name](scope);
972
+ }
973
+ return [];
974
+ }
975
+
976
+ function renderActionCommand(ctx) {
977
+ if (!ctx.isAllowed) {
978
+ return vue.h('span', {}, [
979
+ ''
980
+ ]);
981
+ }
982
+ const attributes = {
983
+ onClick (event) {
984
+ event.preventDefault();
985
+ return ctx.execute();
986
+ },
987
+ disabled: ctx.isDisabled
988
+ };
989
+ const iconClasses = [
990
+ ctx.iconClass
883
991
  ];
884
992
  if (ctx.withIcon && ctx.withText) {
885
993
  iconClasses.push('pe-1');
@@ -1316,7 +1424,7 @@ function stringifyParsedURL(parsed) {
1316
1424
  return proto + auth + host + pathname + search + hash;
1317
1425
  }
1318
1426
 
1319
- const e$1 = globalThis.Blob, o$1 = globalThis.File, a$1 = globalThis.FormData, s = globalThis.Headers, i$1 = globalThis.AbortController, l = globalThis.fetch || (()=>{
1427
+ const e$1 = globalThis.Blob, o$1 = globalThis.File, a$1 = globalThis.FormData, s = globalThis.Headers, i = globalThis.AbortController, l = globalThis.fetch || (()=>{
1320
1428
  throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!");
1321
1429
  });
1322
1430
 
@@ -1405,26 +1513,26 @@ class BaseError extends Error {
1405
1513
  }
1406
1514
  }
1407
1515
 
1408
- var n = Object.defineProperty;
1409
- var e = (t, r)=>n(t, "name", {
1516
+ var o = Object.defineProperty;
1517
+ var e = (t, r)=>o(t, "name", {
1410
1518
  value: r,
1411
1519
  configurable: true
1412
1520
  });
1413
- var i = Object.defineProperty, c = e((t, r)=>i(t, "name", {
1521
+ var f = Object.defineProperty, c = e((t, r)=>f(t, "name", {
1414
1522
  value: r,
1415
1523
  configurable: true
1416
1524
  }), "e");
1417
- function a() {
1525
+ function n() {
1418
1526
  return {
1419
1527
  agent: void 0,
1420
1528
  dispatcher: void 0
1421
1529
  };
1422
1530
  }
1423
- e(a, "createProxy"), c(a, "createProxy");
1424
- function o() {
1531
+ e(n, "createProxy"), c(n, "createProxy");
1532
+ function a() {
1425
1533
  return globalThis.fetch;
1426
1534
  }
1427
- e(o, "createFetch"), c(o, "createFetch");
1535
+ e(a, "createFetch"), c(a, "createFetch");
1428
1536
  const gT = (()=>{
1429
1537
  if (typeof globalThis !== 'undefined') {
1430
1538
  return globalThis;
@@ -1444,10 +1552,13 @@ const gT = (()=>{
1444
1552
  })();
1445
1553
  const File = gT.File || o$1;
1446
1554
  const FormData$1 = gT.FormData || a$1;
1447
- gT.AbortController || i$1;
1555
+ gT.AbortController || i;
1448
1556
  const fetch = gT.fetch || l;
1449
1557
  const Headers = gT.Headers || s;
1450
1558
  const Blob = gT.Blob || e$1;
1559
+ function createProxy(options) {
1560
+ return n();
1561
+ }
1451
1562
  /*
1452
1563
  * Copyright (c) 2023.
1453
1564
  * Author Peter Placzek (tada5hi)
@@ -1535,22 +1646,25 @@ function verifyInstanceBySymbol(input, name) {
1535
1646
  }
1536
1647
  return input['@instanceof'] === Symbol.for(name);
1537
1648
  }
1538
- function isJSONSerializable(input) {
1649
+ function isSerializable(input) {
1539
1650
  if (input === undefined) {
1540
1651
  return false;
1541
1652
  }
1542
1653
  const t = typeof input;
1543
- if (t === 'string' || t === 'number' || t === 'boolean' || t === null) {
1654
+ if (t === 'string' || t === 'number' || t === 'boolean' || t === null || t === 'bigint') {
1544
1655
  return true;
1545
1656
  }
1546
1657
  if (t !== 'object') {
1547
- return false; // bigint, function, symbol, undefined
1658
+ return false; // function, symbol, undefined
1548
1659
  }
1549
1660
  if (Array.isArray(input)) {
1550
1661
  return true;
1551
1662
  }
1552
1663
  return isObject$1(input) || typeof input === 'function' && input.toJSON === 'function';
1553
1664
  }
1665
+ function serialize(input) {
1666
+ return JSON.stringify(input, (_key, value)=>typeof value === 'bigint' ? value.toString() : value);
1667
+ }
1554
1668
  /*
1555
1669
  * Copyright (c) 2023.
1556
1670
  * Author Peter Placzek (tada5hi)
@@ -1561,6 +1675,33 @@ function isJSONSerializable(input) {
1561
1675
  // @ts-ignore
1562
1676
  typeof p.then === 'function');
1563
1677
  }
1678
+ /**
1679
+ * Traverse object or array and provide the ability to replace values.
1680
+ *
1681
+ * @param input
1682
+ * @param fn
1683
+ */ function traverse(input, fn) {
1684
+ if (Array.isArray(input)) {
1685
+ for(let i = 0; i < input.length; i++){
1686
+ if (isObject$1(input[i]) || Array.isArray(input[i])) {
1687
+ input[i] = fn(traverse(input[i], fn), `${i}`);
1688
+ continue;
1689
+ }
1690
+ input[i] = fn(input[i], `${i}`);
1691
+ }
1692
+ return input;
1693
+ }
1694
+ const keys = Object.keys(input);
1695
+ for(let i = 0; i < keys.length; i++){
1696
+ const value = input[keys[i]];
1697
+ if (isObject$1(value) || Array.isArray(value)) {
1698
+ input[keys[i]] = fn(traverse(value, fn), keys[i]);
1699
+ continue;
1700
+ }
1701
+ input[keys[i]] = fn(value, keys[i]);
1702
+ }
1703
+ return input;
1704
+ }
1564
1705
  /*
1565
1706
  * Copyright (c) 2022.
1566
1707
  * Author Peter Placzek (tada5hi)
@@ -1588,7 +1729,9 @@ function isJSONSerializable(input) {
1588
1729
  }({});
1589
1730
  class ClientError extends BaseError {
1590
1731
  constructor(ctx){
1591
- super(), this['@instanceof'] = Symbol.for('ClientError');
1732
+ super({
1733
+ cause: ctx.error
1734
+ }), this['@instanceof'] = Symbol.for('ClientError');
1592
1735
  this.request = ctx.request;
1593
1736
  this.response = ctx.response;
1594
1737
  this.code = ctx.code;
@@ -1597,19 +1740,39 @@ class ClientError extends BaseError {
1597
1740
  this.statusMessage = ctx.response && ctx.response.statusText;
1598
1741
  this.statusText = ctx.response && ctx.response.statusText;
1599
1742
  this.message = ctx.message;
1743
+ if (Error.captureStackTrace) {
1744
+ Error.captureStackTrace(this, ClientError);
1745
+ }
1746
+ }
1747
+ }
1748
+ function isClientError(error) {
1749
+ if (error instanceof ClientError) {
1750
+ return true;
1751
+ }
1752
+ return isObject$1(error) && verifyInstanceBySymbol(error, 'ClientError');
1753
+ }
1754
+ function isClientErrorWithStatusCode(error, statusCode) {
1755
+ if (!isClientError(error) || !isObject$1(error.response)) {
1756
+ return false;
1757
+ }
1758
+ const statusCodes = Array.isArray(statusCode) ? statusCode : [
1759
+ statusCode
1760
+ ];
1761
+ for(let i = 0; i < statusCodes.length; i++){
1762
+ if (statusCodes[i] === error.response.status) {
1763
+ return true;
1764
+ }
1600
1765
  }
1766
+ return false;
1601
1767
  }
1602
1768
  function formatRequestOptions(input) {
1603
1769
  if (input.url) {
1604
- let output = input.url;
1605
- if (input.query) {
1606
- const searchParams = new URLSearchParams(input.query);
1607
- const searchQuery = searchParams.toString();
1608
- if (searchQuery.length > 0) {
1609
- output += `?${searchQuery}`;
1610
- }
1770
+ const parts = [];
1771
+ if (input.method) {
1772
+ parts.push(input.method);
1611
1773
  }
1612
- return output;
1774
+ parts.push(input.url);
1775
+ return parts.join(' ');
1613
1776
  }
1614
1777
  return input.toString();
1615
1778
  }
@@ -1620,8 +1783,10 @@ function createClientError(context) {
1620
1783
  } else if (context.request) {
1621
1784
  message = `${formatRequestOptions(context.request)}`;
1622
1785
  }
1623
- if (context.error && context.error.message) {
1624
- message = `${context.error.message} (${message})`;
1786
+ if (context.error) {
1787
+ if (context.error.message) {
1788
+ message = `${context.error.message} (${message})`;
1789
+ }
1625
1790
  }
1626
1791
  if (!message) {
1627
1792
  message = 'An unknown error occurred.';
@@ -1635,32 +1800,36 @@ function createClientError(context) {
1635
1800
  code = ErrorCode.CONNECTION_CLOSED;
1636
1801
  }
1637
1802
  }
1638
- const output = new ClientError({
1803
+ const error = new ClientError({
1639
1804
  ...context,
1640
1805
  code,
1641
1806
  message
1642
1807
  });
1643
- return output;
1644
- }
1645
- function isClientError(error) {
1646
- if (error instanceof ClientError) {
1647
- return true;
1808
+ if (Error.captureStackTrace) {
1809
+ Error.captureStackTrace(error, createClientError);
1648
1810
  }
1649
- return isObject$1(error) && verifyInstanceBySymbol(error, 'ClientError');
1811
+ return error;
1650
1812
  }
1651
- function isClientErrorWithStatusCode(error, statusCode) {
1652
- if (!isClientError(error) || !isObject$1(error.response)) {
1653
- return false;
1813
+ function toError(input) {
1814
+ if (input instanceof Error) {
1815
+ return input;
1654
1816
  }
1655
- const statusCodes = Array.isArray(statusCode) ? statusCode : [
1656
- statusCode
1657
- ];
1658
- for(let i = 0; i < statusCodes.length; i++){
1659
- if (statusCodes[i] === error.response.status) {
1660
- return true;
1817
+ if (isObject$1(input)) {
1818
+ if (input.constructor.name === 'TypeError') {
1819
+ Object.setPrototypeOf(input, TypeError.prototype);
1820
+ return input;
1661
1821
  }
1822
+ const error = new Error(input.message);
1823
+ extendError(error, input);
1824
+ return input;
1825
+ }
1826
+ return undefined;
1827
+ }
1828
+ function extendError(error, data) {
1829
+ const keys = Object.getOwnPropertyNames(data);
1830
+ for(let i = 0; i < keys.length; i++){
1831
+ error[keys[i]] = data[keys[i]];
1662
1832
  }
1663
- return false;
1664
1833
  }
1665
1834
  function stringifyAuthorizationHeader(header) {
1666
1835
  switch(header.type){
@@ -1702,8 +1871,8 @@ function createDefaultRequestTransformer() {
1702
1871
  }
1703
1872
  const contentType = headers.get(HeaderName.CONTENT_TYPE) || '';
1704
1873
  const contentTypeIsJson = contentType.indexOf('application/json') !== -1;
1705
- if (isJSONSerializable(data) || contentTypeIsJson) {
1706
- data = typeof data === 'string' ? data : JSON.stringify(data);
1874
+ if (isSerializable(data) || contentTypeIsJson) {
1875
+ data = typeof data === 'string' ? data : serialize(data);
1707
1876
  if (!headers.has(HeaderName.CONTENT_TYPE)) {
1708
1877
  headers.set(HeaderName.CONTENT_TYPE, 'application/json');
1709
1878
  }
@@ -1720,6 +1889,9 @@ function extendRequestOptionsWithDefaults(options) {
1720
1889
  createDefaultRequestTransformer()
1721
1890
  ];
1722
1891
  }
1892
+ if (typeof options.proxy === 'undefined') {
1893
+ options.proxy = true;
1894
+ }
1723
1895
  return options;
1724
1896
  }
1725
1897
  function isRequestPayloadSupported(method = 'GET') {
@@ -1938,10 +2110,15 @@ let Client$1 = class Client {
1938
2110
  url: baseURL ? withBase(config.url, baseURL) : config.url
1939
2111
  };
1940
2112
  if (options.query || options.params) {
1941
- options.url = withQuery(options.url, {
2113
+ options.url = withQuery(options.url, traverse({
1942
2114
  ...options.params,
1943
2115
  ...options.query
1944
- });
2116
+ }, (value)=>{
2117
+ if (typeof value === 'bigint') {
2118
+ return value.toString();
2119
+ }
2120
+ return value;
2121
+ }));
1945
2122
  }
1946
2123
  options = await this.hookManager.triggerReqHook(options);
1947
2124
  if (options.transform) {
@@ -1956,7 +2133,7 @@ let Client$1 = class Client {
1956
2133
  const handleError = async (step, ctx)=>{
1957
2134
  const error = createClientError(ctx);
1958
2135
  if (Error.captureStackTrace) {
1959
- Error.captureStackTrace(error);
2136
+ Error.captureStackTrace(error, this.request);
1960
2137
  }
1961
2138
  let output;
1962
2139
  if (step === 'request') {
@@ -1987,15 +2164,13 @@ let Client$1 = class Client {
1987
2164
  }
1988
2165
  response = await fetch(url, {
1989
2166
  ...data,
1990
- ...a(proxyOptions)
2167
+ ...createProxy(proxyOptions)
1991
2168
  });
1992
2169
  }
1993
- } catch (error) {
2170
+ } catch (e) {
1994
2171
  return handleError('request', {
1995
2172
  request: options,
1996
- ...error instanceof Error ? {
1997
- error
1998
- } : {}
2173
+ error: toError(e)
1999
2174
  });
2000
2175
  }
2001
2176
  const responseType = options.responseType || detectResponseType(response.headers.get(HeaderName.CONTENT_TYPE));
@@ -2201,7 +2376,7 @@ class BaseAPI {
2201
2376
  * Author Peter Placzek (tada5hi)
2202
2377
  * For the full copyright and license information,
2203
2378
  * view the LICENSE file that was distributed with this source code.
2204
- */ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
2379
+ */ function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
2205
2380
  try {
2206
2381
  var info = gen[key](arg);
2207
2382
  var value = info.value;
@@ -2215,16 +2390,16 @@ class BaseAPI {
2215
2390
  Promise.resolve(value).then(_next, _throw);
2216
2391
  }
2217
2392
  }
2218
- function _async_to_generator$f(fn) {
2393
+ function _async_to_generator$g(fn) {
2219
2394
  return function() {
2220
2395
  var self = this, args = arguments;
2221
2396
  return new Promise(function(resolve, reject) {
2222
2397
  var gen = fn.apply(self, args);
2223
2398
  function _next(value) {
2224
- asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
2399
+ asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "next", value);
2225
2400
  }
2226
2401
  function _throw(err) {
2227
- asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
2402
+ asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "throw", err);
2228
2403
  }
2229
2404
  _next(undefined);
2230
2405
  });
@@ -2232,19 +2407,19 @@ function _async_to_generator$f(fn) {
2232
2407
  }
2233
2408
  class MasterImageGroupAPI extends BaseAPI {
2234
2409
  getMany(data) {
2235
- return _async_to_generator$f(function*() {
2410
+ return _async_to_generator$g(function*() {
2236
2411
  const response = yield this.client.get(`master-image-groups${rapiq.buildQuery(data)}`);
2237
2412
  return response.data;
2238
2413
  }).call(this);
2239
2414
  }
2240
2415
  getOne(id) {
2241
- return _async_to_generator$f(function*() {
2416
+ return _async_to_generator$g(function*() {
2242
2417
  const response = yield this.client.delete(`master-image-groups/${id}`);
2243
2418
  return response.data;
2244
2419
  }).call(this);
2245
2420
  }
2246
2421
  delete(id) {
2247
- return _async_to_generator$f(function*() {
2422
+ return _async_to_generator$g(function*() {
2248
2423
  const response = yield this.client.delete(`master-image-groups/${id}`);
2249
2424
  return response.data;
2250
2425
  }).call(this);
@@ -2255,7 +2430,7 @@ class MasterImageGroupAPI extends BaseAPI {
2255
2430
  * Author Peter Placzek (tada5hi)
2256
2431
  * For the full copyright and license information,
2257
2432
  * view the LICENSE file that was distributed with this source code.
2258
- */ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
2433
+ */ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
2259
2434
  try {
2260
2435
  var info = gen[key](arg);
2261
2436
  var value = info.value;
@@ -2269,16 +2444,16 @@ class MasterImageGroupAPI extends BaseAPI {
2269
2444
  Promise.resolve(value).then(_next, _throw);
2270
2445
  }
2271
2446
  }
2272
- function _async_to_generator$e(fn) {
2447
+ function _async_to_generator$f(fn) {
2273
2448
  return function() {
2274
2449
  var self = this, args = arguments;
2275
2450
  return new Promise(function(resolve, reject) {
2276
2451
  var gen = fn.apply(self, args);
2277
2452
  function _next(value) {
2278
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
2453
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
2279
2454
  }
2280
2455
  function _throw(err) {
2281
- asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
2456
+ asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
2282
2457
  }
2283
2458
  _next(undefined);
2284
2459
  });
@@ -2314,25 +2489,25 @@ function _object_spread$3(target) {
2314
2489
  }
2315
2490
  class MasterImageAPI extends BaseAPI {
2316
2491
  getMany(data) {
2317
- return _async_to_generator$e(function*() {
2492
+ return _async_to_generator$f(function*() {
2318
2493
  const response = yield this.client.get(`master-images${rapiq.buildQuery(data)}`);
2319
2494
  return response.data;
2320
2495
  }).call(this);
2321
2496
  }
2322
2497
  getOne(id, data) {
2323
- return _async_to_generator$e(function*() {
2498
+ return _async_to_generator$f(function*() {
2324
2499
  const response = yield this.client.get(`master-images/${id}${rapiq.buildQuery(data)}`);
2325
2500
  return response.data;
2326
2501
  }).call(this);
2327
2502
  }
2328
2503
  delete(id) {
2329
- return _async_to_generator$e(function*() {
2504
+ return _async_to_generator$f(function*() {
2330
2505
  const response = yield this.client.delete(`master-images/${id}`);
2331
2506
  return response.data;
2332
2507
  }).call(this);
2333
2508
  }
2334
2509
  runCommand(_0) {
2335
- return _async_to_generator$e(function*(command, data = {}) {
2510
+ return _async_to_generator$f(function*(command, data = {}) {
2336
2511
  const actionData = _object_spread$3({
2337
2512
  command
2338
2513
  }, data);
@@ -2346,7 +2521,7 @@ class MasterImageAPI extends BaseAPI {
2346
2521
  * Author Peter Placzek (tada5hi)
2347
2522
  * For the full copyright and license information,
2348
2523
  * view the LICENSE file that was distributed with this source code.
2349
- */ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
2524
+ */ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
2350
2525
  try {
2351
2526
  var info = gen[key](arg);
2352
2527
  var value = info.value;
@@ -2360,49 +2535,49 @@ class MasterImageAPI extends BaseAPI {
2360
2535
  Promise.resolve(value).then(_next, _throw);
2361
2536
  }
2362
2537
  }
2363
- function _async_to_generator$d(fn) {
2538
+ function _async_to_generator$e(fn) {
2364
2539
  return function() {
2365
2540
  var self = this, args = arguments;
2366
2541
  return new Promise(function(resolve, reject) {
2367
2542
  var gen = fn.apply(self, args);
2368
2543
  function _next(value) {
2369
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
2544
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
2370
2545
  }
2371
2546
  function _throw(err) {
2372
- asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
2547
+ asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
2373
2548
  }
2374
2549
  _next(undefined);
2375
2550
  });
2376
2551
  };
2377
2552
  }
2378
- class MasterImageEventLogAPI extends BaseAPI {
2553
+ class EventAPI extends BaseAPI {
2379
2554
  getMany(options) {
2380
- return _async_to_generator$d(function*() {
2381
- const { data: response } = yield this.client.get(`master-image-event-logs${rapiq.buildQuery(options)}`);
2555
+ return _async_to_generator$e(function*() {
2556
+ const { data: response } = yield this.client.get(`events${rapiq.buildQuery(options)}`);
2382
2557
  return response;
2383
2558
  }).call(this);
2384
2559
  }
2385
2560
  getOne(id) {
2386
- return _async_to_generator$d(function*() {
2387
- const { data: response } = yield this.client.get(`master-image-event-logs/${id}`);
2561
+ return _async_to_generator$e(function*() {
2562
+ const { data: response } = yield this.client.get(`events/${id}`);
2388
2563
  return response;
2389
2564
  }).call(this);
2390
2565
  }
2391
2566
  delete(id) {
2392
- return _async_to_generator$d(function*() {
2393
- const { data: response } = yield this.client.delete(`master-image-event-logs/${id}`);
2567
+ return _async_to_generator$e(function*() {
2568
+ const { data: response } = yield this.client.delete(`events/${id}`);
2394
2569
  return response;
2395
2570
  }).call(this);
2396
2571
  }
2397
2572
  update(id, data) {
2398
- return _async_to_generator$d(function*() {
2399
- const { data: response } = yield this.client.post(`master-image-event-logs/${id}`, data);
2573
+ return _async_to_generator$e(function*() {
2574
+ const { data: response } = yield this.client.post(`events/${id}`, data);
2400
2575
  return response;
2401
2576
  }).call(this);
2402
2577
  }
2403
2578
  create(data) {
2404
- return _async_to_generator$d(function*() {
2405
- const { data: response } = yield this.client.post('master-image-event-logs', data);
2579
+ return _async_to_generator$e(function*() {
2580
+ const { data: response } = yield this.client.post('events', data);
2406
2581
  return response;
2407
2582
  }).call(this);
2408
2583
  }
@@ -2421,7 +2596,7 @@ function nullifyEmptyObjectProperties(data) {
2421
2596
  * Author Peter Placzek (tada5hi)
2422
2597
  * For the full copyright and license information,
2423
2598
  * view the LICENSE file that was distributed with this source code.
2424
- */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
2599
+ */ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
2425
2600
  try {
2426
2601
  var info = gen[key](arg);
2427
2602
  var value = info.value;
@@ -2435,16 +2610,16 @@ function nullifyEmptyObjectProperties(data) {
2435
2610
  Promise.resolve(value).then(_next, _throw);
2436
2611
  }
2437
2612
  }
2438
- function _async_to_generator$c(fn) {
2613
+ function _async_to_generator$d(fn) {
2439
2614
  return function() {
2440
2615
  var self = this, args = arguments;
2441
2616
  return new Promise(function(resolve, reject) {
2442
2617
  var gen = fn.apply(self, args);
2443
2618
  function _next(value) {
2444
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
2619
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
2445
2620
  }
2446
2621
  function _throw(err) {
2447
- asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
2622
+ asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
2448
2623
  }
2449
2624
  _next(undefined);
2450
2625
  });
@@ -2452,31 +2627,31 @@ function _async_to_generator$c(fn) {
2452
2627
  }
2453
2628
  class ProjectAPI extends BaseAPI {
2454
2629
  getMany(record) {
2455
- return _async_to_generator$c(function*() {
2630
+ return _async_to_generator$d(function*() {
2456
2631
  const response = yield this.client.get(`projects${rapiq.buildQuery(record)}`);
2457
2632
  return response.data;
2458
2633
  }).call(this);
2459
2634
  }
2460
2635
  getOne(id, requestRecord) {
2461
- return _async_to_generator$c(function*() {
2636
+ return _async_to_generator$d(function*() {
2462
2637
  const response = yield this.client.get(`projects/${id}${rapiq.buildQuery(requestRecord)}`);
2463
2638
  return response.data;
2464
2639
  }).call(this);
2465
2640
  }
2466
2641
  create(data) {
2467
- return _async_to_generator$c(function*() {
2642
+ return _async_to_generator$d(function*() {
2468
2643
  const response = yield this.client.post('projects', nullifyEmptyObjectProperties(data));
2469
2644
  return response.data;
2470
2645
  }).call(this);
2471
2646
  }
2472
2647
  delete(id) {
2473
- return _async_to_generator$c(function*() {
2648
+ return _async_to_generator$d(function*() {
2474
2649
  const response = yield this.client.delete(`projects/${id}`);
2475
2650
  return response.data;
2476
2651
  }).call(this);
2477
2652
  }
2478
2653
  update(id, data) {
2479
- return _async_to_generator$c(function*() {
2654
+ return _async_to_generator$d(function*() {
2480
2655
  const response = yield this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
2481
2656
  return response.data;
2482
2657
  }).call(this);
@@ -2487,7 +2662,7 @@ class ProjectAPI extends BaseAPI {
2487
2662
  * Author Peter Placzek (tada5hi)
2488
2663
  * For the full copyright and license information,
2489
2664
  * view the LICENSE file that was distributed with this source code.
2490
- */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
2665
+ */ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
2491
2666
  try {
2492
2667
  var info = gen[key](arg);
2493
2668
  var value = info.value;
@@ -2501,16 +2676,16 @@ class ProjectAPI extends BaseAPI {
2501
2676
  Promise.resolve(value).then(_next, _throw);
2502
2677
  }
2503
2678
  }
2504
- function _async_to_generator$b(fn) {
2679
+ function _async_to_generator$c(fn) {
2505
2680
  return function() {
2506
2681
  var self = this, args = arguments;
2507
2682
  return new Promise(function(resolve, reject) {
2508
2683
  var gen = fn.apply(self, args);
2509
2684
  function _next(value) {
2510
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
2685
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
2511
2686
  }
2512
2687
  function _throw(err) {
2513
- asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
2688
+ asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
2514
2689
  }
2515
2690
  _next(undefined);
2516
2691
  });
@@ -2518,31 +2693,31 @@ function _async_to_generator$b(fn) {
2518
2693
  }
2519
2694
  class ProjectNodeAPI extends BaseAPI {
2520
2695
  getMany(data) {
2521
- return _async_to_generator$b(function*() {
2696
+ return _async_to_generator$c(function*() {
2522
2697
  const response = yield this.client.get(`project-nodes${rapiq.buildQuery(data)}`);
2523
2698
  return response.data;
2524
2699
  }).call(this);
2525
2700
  }
2526
2701
  getOne(id, data) {
2527
- return _async_to_generator$b(function*() {
2702
+ return _async_to_generator$c(function*() {
2528
2703
  const response = yield this.client.get(`project-nodes/${id}${rapiq.buildQuery(data)}`);
2529
2704
  return response.data;
2530
2705
  }).call(this);
2531
2706
  }
2532
2707
  create(data) {
2533
- return _async_to_generator$b(function*() {
2708
+ return _async_to_generator$c(function*() {
2534
2709
  const response = yield this.client.post('project-nodes', data);
2535
2710
  return response.data;
2536
2711
  }).call(this);
2537
2712
  }
2538
2713
  update(id, data) {
2539
- return _async_to_generator$b(function*() {
2714
+ return _async_to_generator$c(function*() {
2540
2715
  const response = yield this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
2541
2716
  return response.data;
2542
2717
  }).call(this);
2543
2718
  }
2544
2719
  delete(id) {
2545
- return _async_to_generator$b(function*() {
2720
+ return _async_to_generator$c(function*() {
2546
2721
  const response = yield this.client.delete(`project-nodes/${id}`);
2547
2722
  return response.data;
2548
2723
  }).call(this);
@@ -2553,7 +2728,7 @@ class ProjectNodeAPI extends BaseAPI {
2553
2728
  * Author Peter Placzek (tada5hi)
2554
2729
  * For the full copyright and license information,
2555
2730
  * view the LICENSE file that was distributed with this source code.
2556
- */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
2731
+ */ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
2557
2732
  try {
2558
2733
  var info = gen[key](arg);
2559
2734
  var value = info.value;
@@ -2567,16 +2742,16 @@ class ProjectNodeAPI extends BaseAPI {
2567
2742
  Promise.resolve(value).then(_next, _throw);
2568
2743
  }
2569
2744
  }
2570
- function _async_to_generator$a(fn) {
2745
+ function _async_to_generator$b(fn) {
2571
2746
  return function() {
2572
2747
  var self = this, args = arguments;
2573
2748
  return new Promise(function(resolve, reject) {
2574
2749
  var gen = fn.apply(self, args);
2575
2750
  function _next(value) {
2576
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
2751
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
2577
2752
  }
2578
2753
  function _throw(err) {
2579
- asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
2754
+ asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
2580
2755
  }
2581
2756
  _next(undefined);
2582
2757
  });
@@ -2584,31 +2759,31 @@ function _async_to_generator$a(fn) {
2584
2759
  }
2585
2760
  class RegistryAPI extends BaseAPI {
2586
2761
  getMany(options) {
2587
- return _async_to_generator$a(function*() {
2762
+ return _async_to_generator$b(function*() {
2588
2763
  const response = yield this.client.get(`registries${rapiq.buildQuery(options)}`);
2589
2764
  return response.data;
2590
2765
  }).call(this);
2591
2766
  }
2592
2767
  getOne(id, options) {
2593
- return _async_to_generator$a(function*() {
2768
+ return _async_to_generator$b(function*() {
2594
2769
  const response = yield this.client.get(`registries/${id}${rapiq.buildQuery(options)}`);
2595
2770
  return response.data;
2596
2771
  }).call(this);
2597
2772
  }
2598
2773
  create(data) {
2599
- return _async_to_generator$a(function*() {
2774
+ return _async_to_generator$b(function*() {
2600
2775
  const response = yield this.client.post('registries', nullifyEmptyObjectProperties(data));
2601
2776
  return response.data;
2602
2777
  }).call(this);
2603
2778
  }
2604
2779
  update(id, data) {
2605
- return _async_to_generator$a(function*() {
2780
+ return _async_to_generator$b(function*() {
2606
2781
  const response = yield this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
2607
2782
  return response.data;
2608
2783
  }).call(this);
2609
2784
  }
2610
2785
  delete(id) {
2611
- return _async_to_generator$a(function*() {
2786
+ return _async_to_generator$b(function*() {
2612
2787
  const response = yield this.client.delete(`registries/${id}`);
2613
2788
  return response.data;
2614
2789
  }).call(this);
@@ -2619,7 +2794,7 @@ class RegistryAPI extends BaseAPI {
2619
2794
  * Author Peter Placzek (tada5hi)
2620
2795
  * For the full copyright and license information,
2621
2796
  * view the LICENSE file that was distributed with this source code.
2622
- */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
2797
+ */ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
2623
2798
  try {
2624
2799
  var info = gen[key](arg);
2625
2800
  var value = info.value;
@@ -2633,16 +2808,16 @@ class RegistryAPI extends BaseAPI {
2633
2808
  Promise.resolve(value).then(_next, _throw);
2634
2809
  }
2635
2810
  }
2636
- function _async_to_generator$9(fn) {
2811
+ function _async_to_generator$a(fn) {
2637
2812
  return function() {
2638
2813
  var self = this, args = arguments;
2639
2814
  return new Promise(function(resolve, reject) {
2640
2815
  var gen = fn.apply(self, args);
2641
2816
  function _next(value) {
2642
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
2817
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
2643
2818
  }
2644
2819
  function _throw(err) {
2645
- asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
2820
+ asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
2646
2821
  }
2647
2822
  _next(undefined);
2648
2823
  });
@@ -2650,31 +2825,31 @@ function _async_to_generator$9(fn) {
2650
2825
  }
2651
2826
  class RegistryProjectAPI extends BaseAPI {
2652
2827
  getMany(options) {
2653
- return _async_to_generator$9(function*() {
2828
+ return _async_to_generator$a(function*() {
2654
2829
  const response = yield this.client.get(`registry-projects${rapiq.buildQuery(options)}`);
2655
2830
  return response.data;
2656
2831
  }).call(this);
2657
2832
  }
2658
2833
  getOne(id, options) {
2659
- return _async_to_generator$9(function*() {
2834
+ return _async_to_generator$a(function*() {
2660
2835
  const response = yield this.client.get(`registry-projects/${id}${rapiq.buildQuery(options)}`);
2661
2836
  return response.data;
2662
2837
  }).call(this);
2663
2838
  }
2664
2839
  create(data) {
2665
- return _async_to_generator$9(function*() {
2840
+ return _async_to_generator$a(function*() {
2666
2841
  const response = yield this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
2667
2842
  return response.data;
2668
2843
  }).call(this);
2669
2844
  }
2670
2845
  update(id, data) {
2671
- return _async_to_generator$9(function*() {
2846
+ return _async_to_generator$a(function*() {
2672
2847
  const response = yield this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
2673
2848
  return response.data;
2674
2849
  }).call(this);
2675
2850
  }
2676
2851
  delete(id) {
2677
- return _async_to_generator$9(function*() {
2852
+ return _async_to_generator$a(function*() {
2678
2853
  const response = yield this.client.delete(`registry-projects/${id}`);
2679
2854
  return response.data;
2680
2855
  }).call(this);
@@ -2685,7 +2860,7 @@ class RegistryProjectAPI extends BaseAPI {
2685
2860
  * Author Peter Placzek (tada5hi)
2686
2861
  * For the full copyright and license information,
2687
2862
  * view the LICENSE file that was distributed with this source code.
2688
- */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
2863
+ */ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
2689
2864
  try {
2690
2865
  var info = gen[key](arg);
2691
2866
  var value = info.value;
@@ -2699,16 +2874,16 @@ class RegistryProjectAPI extends BaseAPI {
2699
2874
  Promise.resolve(value).then(_next, _throw);
2700
2875
  }
2701
2876
  }
2702
- function _async_to_generator$8(fn) {
2877
+ function _async_to_generator$9(fn) {
2703
2878
  return function() {
2704
2879
  var self = this, args = arguments;
2705
2880
  return new Promise(function(resolve, reject) {
2706
2881
  var gen = fn.apply(self, args);
2707
2882
  function _next(value) {
2708
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
2883
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
2709
2884
  }
2710
2885
  function _throw(err) {
2711
- asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
2886
+ asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
2712
2887
  }
2713
2888
  _next(undefined);
2714
2889
  });
@@ -2744,37 +2919,37 @@ function _object_spread$2(target) {
2744
2919
  }
2745
2920
  class NodeAPI extends BaseAPI {
2746
2921
  getMany(options) {
2747
- return _async_to_generator$8(function*() {
2922
+ return _async_to_generator$9(function*() {
2748
2923
  const response = yield this.client.get(`nodes${rapiq.buildQuery(options)}`);
2749
2924
  return response.data;
2750
2925
  }).call(this);
2751
2926
  }
2752
2927
  getOne(id, options) {
2753
- return _async_to_generator$8(function*() {
2928
+ return _async_to_generator$9(function*() {
2754
2929
  const response = yield this.client.get(`nodes/${id}${rapiq.buildQuery(options)}`);
2755
2930
  return response.data;
2756
2931
  }).call(this);
2757
2932
  }
2758
2933
  create(data) {
2759
- return _async_to_generator$8(function*() {
2934
+ return _async_to_generator$9(function*() {
2760
2935
  const response = yield this.client.post('nodes', nullifyEmptyObjectProperties(data));
2761
2936
  return response.data;
2762
2937
  }).call(this);
2763
2938
  }
2764
2939
  update(id, data) {
2765
- return _async_to_generator$8(function*() {
2940
+ return _async_to_generator$9(function*() {
2766
2941
  const response = yield this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
2767
2942
  return response.data;
2768
2943
  }).call(this);
2769
2944
  }
2770
2945
  delete(id) {
2771
- return _async_to_generator$8(function*() {
2946
+ return _async_to_generator$9(function*() {
2772
2947
  const response = yield this.client.delete(`nodes/${id}`);
2773
2948
  return response.data;
2774
2949
  }).call(this);
2775
2950
  }
2776
2951
  runCommand(id, task, data) {
2777
- return _async_to_generator$8(function*() {
2952
+ return _async_to_generator$9(function*() {
2778
2953
  const response = yield this.client.post(`nodes/${id}/task`, _object_spread$2({
2779
2954
  task
2780
2955
  }, data));
@@ -2787,7 +2962,7 @@ class NodeAPI extends BaseAPI {
2787
2962
  * Author Peter Placzek (tada5hi)
2788
2963
  * For the full copyright and license information,
2789
2964
  * view the LICENSE file that was distributed with this source code.
2790
- */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
2965
+ */ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
2791
2966
  try {
2792
2967
  var info = gen[key](arg);
2793
2968
  var value = info.value;
@@ -2801,16 +2976,16 @@ class NodeAPI extends BaseAPI {
2801
2976
  Promise.resolve(value).then(_next, _throw);
2802
2977
  }
2803
2978
  }
2804
- function _async_to_generator$7(fn) {
2979
+ function _async_to_generator$8(fn) {
2805
2980
  return function() {
2806
2981
  var self = this, args = arguments;
2807
2982
  return new Promise(function(resolve, reject) {
2808
2983
  var gen = fn.apply(self, args);
2809
2984
  function _next(value) {
2810
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
2985
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
2811
2986
  }
2812
2987
  function _throw(err) {
2813
- asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
2988
+ asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
2814
2989
  }
2815
2990
  _next(undefined);
2816
2991
  });
@@ -2859,37 +3034,37 @@ class AnalysisAPI extends BaseAPI {
2859
3034
  return new URL(this.getFilesDownloadPath(id), this.client.getBaseURL()).href;
2860
3035
  }
2861
3036
  getMany(options) {
2862
- return _async_to_generator$7(function*() {
3037
+ return _async_to_generator$8(function*() {
2863
3038
  const { data: response } = yield this.client.get(`analyses${rapiq.buildQuery(options)}`);
2864
3039
  return response;
2865
3040
  }).call(this);
2866
3041
  }
2867
3042
  getOne(id, options, requestConfig) {
2868
- return _async_to_generator$7(function*() {
3043
+ return _async_to_generator$8(function*() {
2869
3044
  const { data: response } = yield this.client.get(`analyses/${id}${rapiq.buildQuery(options)}`, requestConfig);
2870
3045
  return response;
2871
3046
  }).call(this);
2872
3047
  }
2873
3048
  delete(id) {
2874
- return _async_to_generator$7(function*() {
3049
+ return _async_to_generator$8(function*() {
2875
3050
  const { data: response } = yield this.client.delete(`analyses/${id}`);
2876
3051
  return response;
2877
3052
  }).call(this);
2878
3053
  }
2879
3054
  update(id, data) {
2880
- return _async_to_generator$7(function*() {
3055
+ return _async_to_generator$8(function*() {
2881
3056
  const { data: response } = yield this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
2882
3057
  return response;
2883
3058
  }).call(this);
2884
3059
  }
2885
3060
  create(data) {
2886
- return _async_to_generator$7(function*() {
3061
+ return _async_to_generator$8(function*() {
2887
3062
  const { data: response } = yield this.client.post('analyses', nullifyEmptyObjectProperties(data));
2888
3063
  return response;
2889
3064
  }).call(this);
2890
3065
  }
2891
3066
  runCommand(_0, _1) {
2892
- return _async_to_generator$7(function*(id, command, data = {}) {
3067
+ return _async_to_generator$8(function*(id, command, data = {}) {
2893
3068
  const actionData = _object_spread$1({
2894
3069
  command
2895
3070
  }, data);
@@ -2898,7 +3073,7 @@ class AnalysisAPI extends BaseAPI {
2898
3073
  }).apply(this, arguments);
2899
3074
  }
2900
3075
  streamFiles(id) {
2901
- return _async_to_generator$7(function*() {
3076
+ return _async_to_generator$8(function*() {
2902
3077
  const response = yield this.client.get(this.getFilesDownloadPath(id), {
2903
3078
  responseType: 'stream'
2904
3079
  });
@@ -2906,7 +3081,7 @@ class AnalysisAPI extends BaseAPI {
2906
3081
  }).call(this);
2907
3082
  }
2908
3083
  downloadResult(id) {
2909
- return _async_to_generator$7(function*() {
3084
+ return _async_to_generator$8(function*() {
2910
3085
  const response = yield this.client.get(this.getResultDownloadPath(id), {
2911
3086
  responseType: 'stream'
2912
3087
  });
@@ -2914,6 +3089,66 @@ class AnalysisAPI extends BaseAPI {
2914
3089
  }).call(this);
2915
3090
  }
2916
3091
  }
3092
+ /*
3093
+ * Copyright (c) 2021-2024.
3094
+ * Author Peter Placzek (tada5hi)
3095
+ * For the full copyright and license information,
3096
+ * view the LICENSE file that was distributed with this source code.
3097
+ */ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
3098
+ try {
3099
+ var info = gen[key](arg);
3100
+ var value = info.value;
3101
+ } catch (error) {
3102
+ reject(error);
3103
+ return;
3104
+ }
3105
+ if (info.done) {
3106
+ resolve(value);
3107
+ } else {
3108
+ Promise.resolve(value).then(_next, _throw);
3109
+ }
3110
+ }
3111
+ function _async_to_generator$7(fn) {
3112
+ return function() {
3113
+ var self = this, args = arguments;
3114
+ return new Promise(function(resolve, reject) {
3115
+ var gen = fn.apply(self, args);
3116
+ function _next(value) {
3117
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
3118
+ }
3119
+ function _throw(err) {
3120
+ asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
3121
+ }
3122
+ _next(undefined);
3123
+ });
3124
+ };
3125
+ }
3126
+ class AnalysisBucketAPI extends BaseAPI {
3127
+ getMany(options) {
3128
+ return _async_to_generator$7(function*() {
3129
+ const response = yield this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
3130
+ return response.data;
3131
+ }).call(this);
3132
+ }
3133
+ getOne(id) {
3134
+ return _async_to_generator$7(function*() {
3135
+ const response = yield this.client.get(`analysis-buckets/${id}`);
3136
+ return response.data;
3137
+ }).call(this);
3138
+ }
3139
+ create(data) {
3140
+ return _async_to_generator$7(function*() {
3141
+ const { data: response } = yield this.client.post('analysis-buckets', data);
3142
+ return response;
3143
+ }).call(this);
3144
+ }
3145
+ delete(id) {
3146
+ return _async_to_generator$7(function*() {
3147
+ const response = yield this.client.delete(`analysis-buckets/${id}`);
3148
+ return response.data;
3149
+ }).call(this);
3150
+ }
3151
+ }
2917
3152
  /*
2918
3153
  * Copyright (c) 2021-2024.
2919
3154
  * Author Peter Placzek (tada5hi)
@@ -3021,28 +3256,9 @@ class AnalysisLogAPI extends BaseAPI {
3021
3256
  return response;
3022
3257
  }).call(this);
3023
3258
  }
3024
- getOne(id) {
3025
- return _async_to_generator$5(function*() {
3026
- const { data: response } = yield this.client.get(`analysis-logs/${id}`);
3027
- return response;
3028
- }).call(this);
3029
- }
3030
- delete(id) {
3031
- return _async_to_generator$5(function*() {
3032
- const { data: response } = yield this.client.delete(`analysis-logs/${id}`);
3033
- return response;
3034
- }).call(this);
3035
- }
3036
- update(id, data) {
3037
- return _async_to_generator$5(function*() {
3038
- const { data: response } = yield this.client.post(`analysis-logs/${id}`, data);
3039
- return response;
3040
- }).call(this);
3041
- }
3042
- create(data) {
3259
+ delete(options) {
3043
3260
  return _async_to_generator$5(function*() {
3044
- const { data: response } = yield this.client.post('analysis-logs', data);
3045
- return response;
3261
+ yield this.client.delete(`analysis-logs${rapiq.buildQuery(options)}`);
3046
3262
  }).call(this);
3047
3263
  }
3048
3264
  }
@@ -3080,7 +3296,7 @@ function _async_to_generator$4(fn) {
3080
3296
  });
3081
3297
  };
3082
3298
  }
3083
- class TrainStationAPI extends BaseAPI {
3299
+ class AnalysisNodeAPI extends BaseAPI {
3084
3300
  getMany(options) {
3085
3301
  return _async_to_generator$4(function*() {
3086
3302
  const { data: response } = yield this.client.get(`analysis-nodes${rapiq.buildQuery(options)}`);
@@ -3146,33 +3362,68 @@ function _async_to_generator$3(fn) {
3146
3362
  });
3147
3363
  };
3148
3364
  }
3149
- class AnalysisNodeLogAPI extends BaseAPI {
3365
+ class AnalysisNodeEventAPI extends BaseAPI {
3150
3366
  getMany(options) {
3151
3367
  return _async_to_generator$3(function*() {
3152
- const { data: response } = yield this.client.get(`analysis-node-logs${rapiq.buildQuery(options)}`);
3368
+ const { data: response } = yield this.client.get(`analysis-node-events${rapiq.buildQuery(options)}`);
3153
3369
  return response;
3154
3370
  }).call(this);
3155
3371
  }
3156
3372
  getOne(id) {
3157
3373
  return _async_to_generator$3(function*() {
3158
- const { data: response } = yield this.client.get(`analysis-node-logs/${id}`);
3374
+ const { data: response } = yield this.client.get(`analysis-node-events/${id}`);
3159
3375
  return response;
3160
3376
  }).call(this);
3161
3377
  }
3162
- delete(id) {
3163
- return _async_to_generator$3(function*() {
3164
- const { data: response } = yield this.client.delete(`analysis-node-logs/${id}`);
3165
- return response;
3166
- }).call(this);
3378
+ }
3379
+ /*
3380
+ * Copyright (c) 2021-2024.
3381
+ * Author Peter Placzek (tada5hi)
3382
+ * For the full copyright and license information,
3383
+ * view the LICENSE file that was distributed with this source code.
3384
+ */ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
3385
+ try {
3386
+ var info = gen[key](arg);
3387
+ var value = info.value;
3388
+ } catch (error) {
3389
+ reject(error);
3390
+ return;
3167
3391
  }
3168
- update(id, data) {
3169
- return _async_to_generator$3(function*() {
3170
- const { data: response } = yield this.client.post(`analysis-node-logs/${id}`, data);
3392
+ if (info.done) {
3393
+ resolve(value);
3394
+ } else {
3395
+ Promise.resolve(value).then(_next, _throw);
3396
+ }
3397
+ }
3398
+ function _async_to_generator$2(fn) {
3399
+ return function() {
3400
+ var self = this, args = arguments;
3401
+ return new Promise(function(resolve, reject) {
3402
+ var gen = fn.apply(self, args);
3403
+ function _next(value) {
3404
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
3405
+ }
3406
+ function _throw(err) {
3407
+ asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
3408
+ }
3409
+ _next(undefined);
3410
+ });
3411
+ };
3412
+ }
3413
+ class AnalysisNodeLogAPI extends BaseAPI {
3414
+ getMany() {
3415
+ return _async_to_generator$2(function*(options = {}) {
3416
+ const { data: response } = yield this.client.get(`analysis-node-logs${rapiq.buildQuery(options)}`);
3171
3417
  return response;
3172
- }).call(this);
3418
+ }).apply(this, arguments);
3419
+ }
3420
+ delete() {
3421
+ return _async_to_generator$2(function*(options = {}) {
3422
+ yield this.client.delete(`analysis-node-logs${rapiq.buildQuery(options)}`);
3423
+ }).apply(this, arguments);
3173
3424
  }
3174
3425
  create(data) {
3175
- return _async_to_generator$3(function*() {
3426
+ return _async_to_generator$2(function*() {
3176
3427
  const { data: response } = yield this.client.post('analysis-node-logs', data);
3177
3428
  return response;
3178
3429
  }).call(this);
@@ -3183,7 +3434,7 @@ class AnalysisNodeLogAPI extends BaseAPI {
3183
3434
  * Author Peter Placzek (tada5hi)
3184
3435
  * For the full copyright and license information,
3185
3436
  * view the LICENSE file that was distributed with this source code.
3186
- */ function asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, key, arg) {
3437
+ */ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
3187
3438
  try {
3188
3439
  var info = gen[key](arg);
3189
3440
  var value = info.value;
@@ -3197,16 +3448,16 @@ class AnalysisNodeLogAPI extends BaseAPI {
3197
3448
  Promise.resolve(value).then(_next, _throw);
3198
3449
  }
3199
3450
  }
3200
- function _async_to_generator$2(fn) {
3451
+ function _async_to_generator$1(fn) {
3201
3452
  return function() {
3202
3453
  var self = this, args = arguments;
3203
3454
  return new Promise(function(resolve, reject) {
3204
3455
  var gen = fn.apply(self, args);
3205
3456
  function _next(value) {
3206
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "next", value);
3457
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
3207
3458
  }
3208
3459
  function _throw(err) {
3209
- asyncGeneratorStep$2(gen, resolve, reject, _next, _throw, "throw", err);
3460
+ asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
3210
3461
  }
3211
3462
  _next(undefined);
3212
3463
  });
@@ -3214,31 +3465,31 @@ function _async_to_generator$2(fn) {
3214
3465
  }
3215
3466
  class AnalysisPermissionAPI extends BaseAPI {
3216
3467
  getMany(options) {
3217
- return _async_to_generator$2(function*() {
3468
+ return _async_to_generator$1(function*() {
3218
3469
  const { data: response } = yield this.client.get(`analysis-permissions${rapiq.buildQuery(options)}`);
3219
3470
  return response;
3220
3471
  }).call(this);
3221
3472
  }
3222
3473
  getOne(id) {
3223
- return _async_to_generator$2(function*() {
3474
+ return _async_to_generator$1(function*() {
3224
3475
  const { data: response } = yield this.client.get(`analysis-permissions/${id}`);
3225
3476
  return response;
3226
3477
  }).call(this);
3227
3478
  }
3228
3479
  delete(id) {
3229
- return _async_to_generator$2(function*() {
3480
+ return _async_to_generator$1(function*() {
3230
3481
  const { data: response } = yield this.client.delete(`analysis-permissions/${id}`);
3231
3482
  return response;
3232
3483
  }).call(this);
3233
3484
  }
3234
3485
  update(id, data) {
3235
- return _async_to_generator$2(function*() {
3486
+ return _async_to_generator$1(function*() {
3236
3487
  const { data: response } = yield this.client.post(`analysis-permissions/${id}`, data);
3237
3488
  return response;
3238
3489
  }).call(this);
3239
3490
  }
3240
3491
  create(data) {
3241
- return _async_to_generator$2(function*() {
3492
+ return _async_to_generator$1(function*() {
3242
3493
  const { data: response } = yield this.client.post('analysis-permissions', data);
3243
3494
  return response;
3244
3495
  }).call(this);
@@ -3249,7 +3500,7 @@ class AnalysisPermissionAPI extends BaseAPI {
3249
3500
  * Author Peter Placzek (tada5hi)
3250
3501
  * For the full copyright and license information,
3251
3502
  * view the LICENSE file that was distributed with this source code.
3252
- */ function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
3503
+ */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3253
3504
  try {
3254
3505
  var info = gen[key](arg);
3255
3506
  var value = info.value;
@@ -3263,16 +3514,16 @@ class AnalysisPermissionAPI extends BaseAPI {
3263
3514
  Promise.resolve(value).then(_next, _throw);
3264
3515
  }
3265
3516
  }
3266
- function _async_to_generator$1(fn) {
3517
+ function _async_to_generator(fn) {
3267
3518
  return function() {
3268
3519
  var self = this, args = arguments;
3269
3520
  return new Promise(function(resolve, reject) {
3270
3521
  var gen = fn.apply(self, args);
3271
3522
  function _next(value) {
3272
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "next", value);
3523
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
3273
3524
  }
3274
3525
  function _throw(err) {
3275
- asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, "throw", err);
3526
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
3276
3527
  }
3277
3528
  _next(undefined);
3278
3529
  });
@@ -3308,77 +3559,17 @@ function _object_spread(target) {
3308
3559
  }
3309
3560
  class ServiceAPI extends BaseAPI {
3310
3561
  runCommand(id, command, data) {
3311
- return _async_to_generator$1(function*() {
3562
+ return _async_to_generator(function*() {
3312
3563
  data = data || {};
3313
3564
  const { data: resultData } = yield this.client.post(`services/${id}/command`, nullifyEmptyObjectProperties(_object_spread({
3314
- command
3315
- }, data)));
3316
- return resultData;
3317
- }).call(this);
3318
- }
3319
- runRegistryCommand(command, data) {
3320
- return _async_to_generator$1(function*() {
3321
- return this.runCommand(coreKit.ServiceID.REGISTRY, command, data);
3322
- }).call(this);
3323
- }
3324
- }
3325
- /*
3326
- * Copyright (c) 2021-2024.
3327
- * Author Peter Placzek (tada5hi)
3328
- * For the full copyright and license information,
3329
- * view the LICENSE file that was distributed with this source code.
3330
- */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
3331
- try {
3332
- var info = gen[key](arg);
3333
- var value = info.value;
3334
- } catch (error) {
3335
- reject(error);
3336
- return;
3337
- }
3338
- if (info.done) {
3339
- resolve(value);
3340
- } else {
3341
- Promise.resolve(value).then(_next, _throw);
3342
- }
3343
- }
3344
- function _async_to_generator(fn) {
3345
- return function() {
3346
- var self = this, args = arguments;
3347
- return new Promise(function(resolve, reject) {
3348
- var gen = fn.apply(self, args);
3349
- function _next(value) {
3350
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
3351
- }
3352
- function _throw(err) {
3353
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
3354
- }
3355
- _next(undefined);
3356
- });
3357
- };
3358
- }
3359
- class AnalysisBucketAPI extends BaseAPI {
3360
- getMany(options) {
3361
- return _async_to_generator(function*() {
3362
- const response = yield this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
3363
- return response.data;
3364
- }).call(this);
3365
- }
3366
- getOne(id) {
3367
- return _async_to_generator(function*() {
3368
- const response = yield this.client.get(`analysis-buckets/${id}`);
3369
- return response.data;
3370
- }).call(this);
3371
- }
3372
- create(data) {
3373
- return _async_to_generator(function*() {
3374
- const { data: response } = yield this.client.post('analysis-buckets', data);
3375
- return response;
3565
+ command
3566
+ }, data)));
3567
+ return resultData;
3376
3568
  }).call(this);
3377
3569
  }
3378
- delete(id) {
3570
+ runRegistryCommand(command, data) {
3379
3571
  return _async_to_generator(function*() {
3380
- const response = yield this.client.delete(`analysis-buckets/${id}`);
3381
- return response.data;
3572
+ return this.runCommand(coreKit.ServiceID.REGISTRY, command, data);
3382
3573
  }).call(this);
3383
3574
  }
3384
3575
  }
@@ -3402,14 +3593,14 @@ class AnalysisBucketAPI extends BaseAPI {
3402
3593
  }
3403
3594
  class Client extends Client$1 {
3404
3595
  constructor(config){
3405
- 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);
3596
+ super(config), _define_property(this, "masterImage", void 0), _define_property(this, "masterImageGroup", void 0), _define_property(this, "event", 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, "analysisNodeEvent", void 0), _define_property(this, "analysisNodeLog", void 0), _define_property(this, "analysisPermission", void 0), _define_property(this, "service", void 0);
3406
3597
  this.masterImage = new MasterImageAPI({
3407
3598
  client: this
3408
3599
  });
3409
3600
  this.masterImageGroup = new MasterImageGroupAPI({
3410
3601
  client: this
3411
3602
  });
3412
- this.masterImageEventLog = new MasterImageEventLogAPI({
3603
+ this.event = new EventAPI({
3413
3604
  client: this
3414
3605
  });
3415
3606
  this.project = new ProjectAPI({
@@ -3439,7 +3630,10 @@ class Client extends Client$1 {
3439
3630
  this.analysisLog = new AnalysisLogAPI({
3440
3631
  client: this
3441
3632
  });
3442
- this.analysisNode = new TrainStationAPI({
3633
+ this.analysisNode = new AnalysisNodeAPI({
3634
+ client: this
3635
+ });
3636
+ this.analysisNodeEvent = new AnalysisNodeEventAPI({
3443
3637
  client: this
3444
3638
  });
3445
3639
  this.analysisNodeLog = new AnalysisNodeLogAPI({
@@ -3582,10 +3776,22 @@ function createEntitySocket(ctx) {
3582
3776
  if (event.meta.roomName !== channelName) {
3583
3777
  return false;
3584
3778
  }
3585
- if (ctx.target && (!targetId.value || targetId.value !== event.data.id)) {
3779
+ if (ctx.target && !targetId.value) {
3586
3780
  return false;
3587
3781
  }
3588
- return event.data.id !== lockId.value;
3782
+ if (ctx.target) {
3783
+ if (hasOwnProperty(event.data, 'id')) {
3784
+ if (targetId.value !== event.data.id) {
3785
+ return false;
3786
+ }
3787
+ } else {
3788
+ return false;
3789
+ }
3790
+ }
3791
+ if (hasOwnProperty(event.data, 'id')) {
3792
+ return event.data.id !== lockId.value;
3793
+ }
3794
+ return true;
3589
3795
  };
3590
3796
  const handleCreated = (event)=>{
3591
3797
  if (!processEvent(event)) {
@@ -4843,7 +5049,142 @@ var FMasterImagesSync = vue.defineComponent({
4843
5049
  }
4844
5050
  });
4845
5051
 
4846
- var FMasterImageEventLog = vue.defineComponent({
5052
+ var _sfc_main$s = vue.defineComponent({
5053
+ props: {
5054
+ entity: {
5055
+ type: Object,
5056
+ required: true
5057
+ }
5058
+ }
5059
+ });
5060
+
5061
+ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
5062
+ return vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(_ctx.entity)), ()=>[
5063
+ _ctx.entity.actor_type ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
5064
+ key: 0
5065
+ }, [
5066
+ vue.createElementVNode("strong", null, vue.toDisplayString(_ctx.entity.actor_type), 1),
5067
+ _cache[0] || (_cache[0] = vue.createElementVNode("br", null, null, -1)),
5068
+ vue.createTextVNode(" " + vue.toDisplayString(_ctx.entity.actor_id), 1)
5069
+ ], 64)) : vue.renderSlot(_ctx.$slots, "fallback", {
5070
+ key: 1
5071
+ }, ()=>[
5072
+ _cache[1] || (_cache[1] = vue.createTextVNode(" - "))
5073
+ ])
5074
+ ]);
5075
+ }
5076
+ var FEventActor = /* @__PURE__ */ _export_sfc(_sfc_main$s, [
5077
+ [
5078
+ "render",
5079
+ _sfc_render$s
5080
+ ]
5081
+ ]);
5082
+
5083
+ var _sfc_main$r = vue.defineComponent({
5084
+ props: {
5085
+ entity: {
5086
+ type: Object,
5087
+ required: true
5088
+ },
5089
+ direction: {
5090
+ type: String,
5091
+ default: 'column'
5092
+ }
5093
+ }
5094
+ });
5095
+
5096
+ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
5097
+ return vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(_ctx.entity)), ()=>[
5098
+ vue.createElementVNode("div", {
5099
+ class: vue.normalizeClass([
5100
+ "d-flex gap-1 justify-content-center",
5101
+ {
5102
+ "flex-row": _ctx.direction === "row",
5103
+ "flex-column": _ctx.direction === "column"
5104
+ }
5105
+ ])
5106
+ }, [
5107
+ vue.createElementVNode("div", null, [
5108
+ vue.createElementVNode("strong", null, vue.toDisplayString(_ctx.entity.ref_type), 1)
5109
+ ]),
5110
+ vue.createElementVNode("div", null, [
5111
+ _ctx.entity.ref_id ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
5112
+ key: 0
5113
+ }, [
5114
+ vue.createTextVNode(vue.toDisplayString(_ctx.entity.ref_id), 1)
5115
+ ], 64)) : vue.createCommentVNode("", true)
5116
+ ])
5117
+ ], 2)
5118
+ ]);
5119
+ }
5120
+ var FEventRef = /* @__PURE__ */ _export_sfc(_sfc_main$r, [
5121
+ [
5122
+ "render",
5123
+ _sfc_render$r
5124
+ ]
5125
+ ]);
5126
+
5127
+ var _sfc_main$q = vue.defineComponent({
5128
+ props: {
5129
+ entity: {
5130
+ type: Object,
5131
+ required: true
5132
+ },
5133
+ direction: {
5134
+ type: String,
5135
+ default: 'column'
5136
+ }
5137
+ }
5138
+ });
5139
+
5140
+ const _hoisted_1$l = {
5141
+ key: 0
5142
+ };
5143
+ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
5144
+ const _component_VCTimeago = vue.resolveComponent("VCTimeago");
5145
+ return vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(_ctx.entity)), ()=>[
5146
+ vue.createElementVNode("div", {
5147
+ class: vue.normalizeClass([
5148
+ "d-flex justify-content-center gap-1",
5149
+ {
5150
+ "flex-row": _ctx.direction === "row",
5151
+ "flex-column": _ctx.direction === "column"
5152
+ }
5153
+ ])
5154
+ }, [
5155
+ vue.createElementVNode("div", null, [
5156
+ vue.createElementVNode("i", {
5157
+ class: vue.normalizeClass([
5158
+ "fa",
5159
+ {
5160
+ "fa-check text-success": _ctx.entity.expiring,
5161
+ "fa-times text-danger": !_ctx.entity.expiring
5162
+ }
5163
+ ])
5164
+ }, null, 2)
5165
+ ]),
5166
+ _ctx.entity.expiring ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$l, [
5167
+ vue.createElementVNode("small", null, [
5168
+ _cache[0] || (_cache[0] = vue.createTextVNode(" (")),
5169
+ vue.createVNode(_component_VCTimeago, {
5170
+ datetime: _ctx.entity.expires_at
5171
+ }, null, 8, [
5172
+ "datetime"
5173
+ ]),
5174
+ _cache[1] || (_cache[1] = vue.createTextVNode(") "))
5175
+ ])
5176
+ ])) : vue.createCommentVNode("", true)
5177
+ ], 2)
5178
+ ]);
5179
+ }
5180
+ var FEventExpiring = /* @__PURE__ */ _export_sfc(_sfc_main$q, [
5181
+ [
5182
+ "render",
5183
+ _sfc_render$q
5184
+ ]
5185
+ ]);
5186
+
5187
+ var FEvent = vue.defineComponent({
4847
5188
  props: {
4848
5189
  index: {
4849
5190
  type: Number,
@@ -4859,12 +5200,12 @@ var FMasterImageEventLog = vue.defineComponent({
4859
5200
  const message = [
4860
5201
  'Event '
4861
5202
  ];
4862
- message.push(vue.h('strong', `${entity.value.name}`));
4863
- if (entity.value.master_image) {
5203
+ message.push(vue.h('strong', `${entity.value.name} (${entity.value.scope})`));
5204
+ if (entity.value.ref_id) {
4864
5205
  message.push(vue.h('span', {
4865
5206
  class: 'ms-1'
4866
5207
  }, [
4867
- `(${entity.value.master_image.virtual_path})`
5208
+ `(${entity.value.ref_id})`
4868
5209
  ]));
4869
5210
  }
4870
5211
  message.push(' triggered.');
@@ -4903,80 +5244,35 @@ var FMasterImageEventLog = vue.defineComponent({
4903
5244
  }
4904
5245
  });
4905
5246
 
4906
- var FMasterImageEventLogs = vue.defineComponent({
5247
+ var FEvents = vue.defineComponent({
5248
+ props: {
5249
+ query: {
5250
+ type: Object
5251
+ }
5252
+ },
4907
5253
  setup (props, setup) {
4908
- const rootNode = vue.ref(null);
4909
- const scrollToLastLine = (meta)=>{
4910
- if (!rootNode.value) {
4911
- return;
4912
- }
4913
- const el = rootNode.value.getElementsByClassName(`line-${meta.total}`)[0];
4914
- if (el) {
4915
- el.scrollIntoView({
4916
- behavior: 'smooth'
4917
- });
4918
- }
4919
- };
4920
5254
  const { render, setDefaults } = createList({
4921
- type: `${coreKit.DomainType.MASTER_IMAGE_EVENT_LOG}`,
4922
- onCreated (_entity, meta) {
4923
- scrollToLastLine(meta);
4924
- },
4925
- onLoaded (meta) {
4926
- vue.nextTick(()=>{
4927
- scrollToLastLine(meta);
4928
- });
4929
- },
5255
+ type: `${coreKit.DomainType.EVENT}`,
4930
5256
  socket: {
4931
5257
  processEvent (event) {
4932
- return event.meta.roomName !== coreKit.buildDomainChannelName(coreKit.DomainType.MASTER_IMAGE_EVENT_LOG);
5258
+ return event.meta.roomName !== coreKit.buildDomainChannelName(coreKit.DomainType.EVENT);
4933
5259
  }
4934
5260
  },
4935
5261
  props,
4936
5262
  setup,
4937
- loadAll: true,
4938
- query: {
4939
- sort: {
4940
- created_at: 'ASC'
4941
- },
4942
- relations: {
4943
- master_image: true
4944
- }
4945
- }
5263
+ query: ()=>({
5264
+ ...props.query,
5265
+ sort: {
5266
+ created_at: 'ASC'
5267
+ }
5268
+ })
4946
5269
  });
4947
5270
  setDefaults({
4948
5271
  noMore: {
4949
- content: 'No more logs available...'
4950
- },
4951
- item: {
4952
- content (item, slotProps) {
4953
- return vue.h(FMasterImageEventLog, {
4954
- entity: item,
4955
- index: slotProps.index,
4956
- onDeleted () {
4957
- if (slotProps && slotProps.deleted) {
4958
- slotProps.deleted(item);
4959
- }
4960
- },
4961
- onUpdated: (e)=>{
4962
- if (slotProps && slotProps.updated) {
4963
- slotProps.updated(e);
4964
- }
4965
- }
4966
- });
4967
- }
5272
+ content: 'No more events available...'
4968
5273
  }
4969
5274
  });
4970
- return ()=>vue.h('div', {
4971
- ref: rootNode,
4972
- class: 'log-container'
4973
- }, [
4974
- vue.h('div', {
4975
- class: 'log-body'
4976
- }, [
4977
- render()
4978
- ])
4979
- ]);
5275
+ return ()=>render();
4980
5276
  }
4981
5277
  });
4982
5278
 
@@ -6203,7 +6499,10 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
6203
6499
  class: "fa fa-bars"
6204
6500
  }, null, -1)
6205
6501
  ])),
6206
- _: 1
6502
+ _: 1,
6503
+ __: [
6504
+ 3
6505
+ ]
6207
6506
  }, 8, [
6208
6507
  "to",
6209
6508
  "disabled"
@@ -6756,7 +7055,10 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
6756
7055
  class: "fa fa-bars"
6757
7056
  }, null, -1)
6758
7057
  ])),
6759
- _: 1
7058
+ _: 1,
7059
+ __: [
7060
+ 1
7061
+ ]
6760
7062
  }, 8, [
6761
7063
  "to",
6762
7064
  "disabled"
@@ -7957,11 +8259,11 @@ function toArray(value) {
7957
8259
  function useTimeoutFn(cb, interval, options = {}) {
7958
8260
  const { immediate = true, immediateCallback = false } = options;
7959
8261
  const isPending = vue.shallowRef(false);
7960
- let timer = null;
8262
+ let timer;
7961
8263
  function clear() {
7962
8264
  if (timer) {
7963
8265
  clearTimeout(timer);
7964
- timer = null;
8266
+ timer = void 0;
7965
8267
  }
7966
8268
  }
7967
8269
  function stop() {
@@ -7974,7 +8276,7 @@ function useTimeoutFn(cb, interval, options = {}) {
7974
8276
  isPending.value = true;
7975
8277
  timer = setTimeout(()=>{
7976
8278
  isPending.value = false;
7977
- timer = null;
8279
+ timer = void 0;
7978
8280
  cb(...args);
7979
8281
  }, vue.toValue(interval));
7980
8282
  }
@@ -11450,7 +11752,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
11450
11752
  default: vue.withCtx(()=>_cache[1] || (_cache[1] = [
11451
11753
  vue.createTextVNode(" Back ")
11452
11754
  ])),
11453
- _: 2
11755
+ _: 2,
11756
+ __: [
11757
+ 1
11758
+ ]
11454
11759
  }, 1032, [
11455
11760
  "disabled",
11456
11761
  "style",
@@ -11468,7 +11773,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
11468
11773
  default: vue.withCtx(()=>_cache[2] || (_cache[2] = [
11469
11774
  vue.createTextVNode(" Next ")
11470
11775
  ])),
11471
- _: 2
11776
+ _: 2,
11777
+ __: [
11778
+ 2
11779
+ ]
11472
11780
  }, 1032, [
11473
11781
  "disabled",
11474
11782
  "style",
@@ -11483,7 +11791,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
11483
11791
  default: vue.withCtx(()=>_cache[3] || (_cache[3] = [
11484
11792
  vue.createTextVNode(" Finish ")
11485
11793
  ])),
11486
- _: 2
11794
+ _: 2,
11795
+ __: [
11796
+ 3
11797
+ ]
11487
11798
  }, 1032, [
11488
11799
  "disabled",
11489
11800
  "style",
@@ -12301,9 +12612,6 @@ var _sfc_main$2 = vue.defineComponent({
12301
12612
  const query = {
12302
12613
  filters: {
12303
12614
  analysis_id: entity.value.id
12304
- },
12305
- sort: {
12306
- index: 'ASC'
12307
12615
  }
12308
12616
  };
12309
12617
  const progressPercentage = vue.computed(()=>{
@@ -12688,7 +12996,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
12688
12996
  class: "fa fa-bars"
12689
12997
  }, null, -1)
12690
12998
  ])),
12691
- _: 1
12999
+ _: 1,
13000
+ __: [
13001
+ 2
13002
+ ]
12692
13003
  }, 8, [
12693
13004
  "to",
12694
13005
  "disabled"
@@ -12954,83 +13265,18 @@ var FAnalysisLog = vue.defineComponent({
12954
13265
  }
12955
13266
  },
12956
13267
  setup (props) {
12957
- const refs = vue.toRefs(props);
12958
- let message;
12959
- if (refs.entity.value.error) {
12960
- const parts = [
12961
- 'An error '
12962
- ];
12963
- if (refs.entity.value.error_code) {
12964
- parts.push('with error code ');
12965
- parts.push(vue.h('strong', refs.entity.value.error_code));
12966
- parts.push(' ');
12967
- }
12968
- parts.push('occurred');
12969
- message = vue.h('span', parts);
12970
- } else if (refs.entity.value.status) {
12971
- message = vue.h('span', [
12972
- 'Event ',
12973
- vue.h('strong', refs.entity.value.event),
12974
- ' triggered and status changed to ',
12975
- vue.h('strong', refs.entity.value.status)
12976
- ]);
12977
- } else {
12978
- message = vue.h('span', [
12979
- 'Event ',
12980
- vue.h('strong', refs.entity.value.event),
12981
- ' triggered'
12982
- ]);
12983
- }
12984
- return ()=>{
12985
- let statusMessage;
12986
- if (refs.entity.value.status_message) {
12987
- statusMessage = vue.h('div', {
12988
- class: 'line-status-message'
12989
- }, [
12990
- refs.entity.value.status_message.replace(/\n/g, '\t')
12991
- ]);
12992
- }
12993
- return vue.h('div', {
12994
- class: `line line-${refs.index.value + 1}`
12995
- }, [
12996
- vue.h('div', {
12997
- class: 'd-flex flex-row'
12998
- }, [
12999
- vue.h('div', {
13000
- class: 'line-number'
13001
- }, [
13002
- refs.index.value + 1
13003
- ]),
13004
- vue.h('div', {
13005
- class: 'line-content d-flex flex-row'
13006
- }, [
13007
- vue.h('div', {
13008
- class: `line-component ${refs.entity.value.component}`
13009
- }, [
13010
- `${refs.entity.value.component}/${refs.entity.value.command}`
13011
- ]),
13012
- vue.h('div', {
13013
- class: [
13014
- 'line-message',
13015
- {
13016
- error: refs.entity.value.error
13017
- }
13018
- ]
13019
- }, [
13020
- message
13021
- ]),
13022
- vue.h('div', {
13023
- class: 'ms-auto'
13024
- }, [
13025
- vue.h(timeago.VCTimeago, {
13026
- datetime: refs.entity.value.created_at
13027
- })
13028
- ])
13029
- ])
13030
- ]),
13031
- statusMessage
13032
- ]);
13033
- };
13268
+ const entity = vue.toRef(props, 'entity');
13269
+ const entityNormalized = vue.computed(()=>{
13270
+ const labels = omitLogProperties(entity.value);
13271
+ return {
13272
+ ...pickLogProperties(entity.value),
13273
+ labels
13274
+ };
13275
+ });
13276
+ return ()=>vue.h(FLog, {
13277
+ entity: entityNormalized.value,
13278
+ index: props.index
13279
+ });
13034
13280
  }
13035
13281
  });
13036
13282
 
@@ -13047,61 +13293,44 @@ var FAnalysisLogs = vue.defineComponent({
13047
13293
  },
13048
13294
  setup (props, setup) {
13049
13295
  const rootNode = vue.ref(null);
13050
- const scrollToLastLine = (meta)=>{
13296
+ const scrollToLastLine = (total)=>{
13051
13297
  if (!rootNode.value) {
13052
13298
  return;
13053
13299
  }
13054
- const el = rootNode.value.getElementsByClassName(`line-${meta.total}`)[0];
13300
+ const el = rootNode.value.getElementsByClassName(`line-${total}`)[0];
13055
13301
  if (el) {
13056
13302
  el.scrollIntoView({
13057
13303
  behavior: 'smooth'
13058
13304
  });
13059
13305
  }
13060
13306
  };
13061
- const { render, setDefaults } = createList({
13062
- type: `${coreKit.DomainType.ANALYSIS_LOG}`,
13063
- onCreated (_entity, meta) {
13064
- scrollToLastLine(meta);
13065
- },
13066
- socket: {
13067
- processEvent (event) {
13068
- return event.meta.roomName !== coreKit.buildDomainChannelName(coreKit.DomainType.ANALYSIS_LOG) || event.data.analysis_id !== props.entityId;
13069
- }
13070
- },
13071
- props,
13072
- setup,
13073
- loadAll: true,
13074
- query: {
13075
- filters: {
13076
- analysis_id: props.entityId
13077
- },
13078
- sort: {
13079
- created_at: 'ASC'
13080
- }
13081
- }
13082
- });
13083
- setDefaults({
13084
- noMore: {
13085
- content: 'No more logs available...'
13086
- },
13087
- item: {
13088
- content (item, slotProps) {
13089
- return vue.h(FAnalysisLog, {
13090
- entity: item,
13091
- index: slotProps.index,
13092
- onDeleted () {
13093
- if (slotProps && slotProps.deleted) {
13094
- slotProps.deleted(item);
13095
- }
13096
- },
13097
- onUpdated: (e)=>{
13098
- if (slotProps && slotProps.updated) {
13099
- slotProps.updated(e);
13100
- }
13101
- }
13102
- });
13307
+ const httpClient = injectCoreHTTPClient();
13308
+ const busy = vue.ref(false);
13309
+ const total = vue.ref(0);
13310
+ const items = vue.ref([]);
13311
+ const load = async (time)=>{
13312
+ const response = await httpClient.analysisLog.getMany({
13313
+ filter: {
13314
+ analysis_id: props.entityId,
13315
+ ...time ? {
13316
+ time: `>${time}`
13317
+ } : {}
13103
13318
  }
13319
+ });
13320
+ items.value.push(...response.data);
13321
+ if (response.meta.total > items.value.length) {
13322
+ return load(items.value[items.value.length - 1].time);
13104
13323
  }
13324
+ total.value = response.meta.total;
13325
+ vue.nextTick(()=>{
13326
+ scrollToLastLine(items.value.length);
13327
+ });
13328
+ return Promise.resolve();
13329
+ };
13330
+ Promise.resolve().then(()=>{
13331
+ busy.value = true;
13332
+ }).then(()=>load()).then(()=>{
13333
+ busy.value = false;
13105
13334
  });
13106
13335
  return ()=>vue.h('div', {
13107
13336
  ref: rootNode,
@@ -13110,7 +13339,38 @@ var FAnalysisLogs = vue.defineComponent({
13110
13339
  vue.h('div', {
13111
13340
  class: 'log-body'
13112
13341
  }, [
13113
- render()
13342
+ listControls.buildList({
13343
+ busy: busy.value,
13344
+ data: items.value,
13345
+ slotItems: setup.slots,
13346
+ noMore: {
13347
+ content: 'No more logs available...'
13348
+ },
13349
+ total: total.value,
13350
+ meta: {
13351
+ total: total.value
13352
+ },
13353
+ body: {
13354
+ item: {
13355
+ content (item, slotProps) {
13356
+ return vue.h(FAnalysisLog, {
13357
+ entity: item,
13358
+ index: slotProps.index,
13359
+ onDeleted () {
13360
+ if (slotProps && slotProps.deleted) {
13361
+ slotProps.deleted(item);
13362
+ }
13363
+ },
13364
+ onUpdated: (e)=>{
13365
+ if (slotProps && slotProps.updated) {
13366
+ slotProps.updated(e);
13367
+ }
13368
+ }
13369
+ });
13370
+ }
13371
+ }
13372
+ }
13373
+ })
13114
13374
  ])
13115
13375
  ]);
13116
13376
  }
@@ -13447,7 +13707,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
13447
13707
  class: "fa fa-bars"
13448
13708
  }, null, -1)
13449
13709
  ])),
13450
- _: 1
13710
+ _: 1,
13711
+ __: [
13712
+ 1
13713
+ ]
13451
13714
  }, 8, [
13452
13715
  "to",
13453
13716
  "disabled"
@@ -13626,12 +13889,16 @@ var components = /*#__PURE__*/Object.freeze({
13626
13889
  FAnalysisPipeline: TrainPipeline,
13627
13890
  FAnalysisWizard: FAnalysisWizard,
13628
13891
  FEntityDelete: FEntityDelete,
13892
+ FEvent: FEvent,
13893
+ FEventActor: FEventActor,
13894
+ FEventExpiring: FEventExpiring,
13895
+ FEventRef: FEventRef,
13896
+ FEvents: FEvents,
13629
13897
  FFromInputList: FFormInputList,
13630
13898
  FFromInputListItem: FFormInputListItem,
13631
13899
  FItemToggle: FItemToggle,
13900
+ FLog: FLog,
13632
13901
  FMasterImage: FMasterImage,
13633
- FMasterImageEventLog: FMasterImageEventLog,
13634
- FMasterImageEventLogs: FMasterImageEventLogs,
13635
13902
  FNodeCrypto: FNodeCrypto,
13636
13903
  FNodeForm: FNodeForm,
13637
13904
  FNodeRegistryProject: FNodeRegistryProject,
@@ -13738,12 +14005,16 @@ exports.FAnalysisPermissionAssignments = FAnalysisPermissionAssignments;
13738
14005
  exports.FAnalysisPipeline = TrainPipeline;
13739
14006
  exports.FAnalysisWizard = FAnalysisWizard;
13740
14007
  exports.FEntityDelete = FEntityDelete;
14008
+ exports.FEvent = FEvent;
14009
+ exports.FEventActor = FEventActor;
14010
+ exports.FEventExpiring = FEventExpiring;
14011
+ exports.FEventRef = FEventRef;
14012
+ exports.FEvents = FEvents;
13741
14013
  exports.FFromInputList = FFormInputList;
13742
14014
  exports.FFromInputListItem = FFormInputListItem;
13743
14015
  exports.FItemToggle = FItemToggle;
14016
+ exports.FLog = FLog;
13744
14017
  exports.FMasterImage = FMasterImage;
13745
- exports.FMasterImageEventLog = FMasterImageEventLog;
13746
- exports.FMasterImageEventLogs = FMasterImageEventLogs;
13747
14018
  exports.FNodeCrypto = FNodeCrypto;
13748
14019
  exports.FNodeForm = FNodeForm;
13749
14020
  exports.FNodeRegistryProject = FNodeRegistryProject;