@privateaim/client-vue 0.8.12 → 0.8.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/analysis/wizard/FAnalysisWizard.vue.d.ts +98 -312
- package/dist/components/analysis/wizard/FAnalysisWizard.vue.d.ts.map +1 -1
- package/dist/components/analysis/wizard/FAnalysisWizardLockModal.vue.d.ts +49 -156
- package/dist/components/analysis/wizard/FAnalysisWizardLockModal.vue.d.ts.map +1 -1
- package/dist/components/analysis/wizard/FAnalysisWizardStepFiles.vue.d.ts +49 -156
- package/dist/components/analysis/wizard/FAnalysisWizardStepFiles.vue.d.ts.map +1 -1
- package/dist/components/analysis/wizard/FAnalysisWizardStepNodes.vue.d.ts +49 -156
- package/dist/components/analysis/wizard/FAnalysisWizardStepNodes.vue.d.ts.map +1 -1
- package/dist/components/analysis-bucket-file/FAnalysisBucketFileManager.vue.d.ts +49 -156
- package/dist/components/analysis-bucket-file/FAnalysisBucketFileManager.vue.d.ts.map +1 -1
- package/dist/components/analysis-bucket-file/FAnalysisBucketFiles.d.ts +5 -4
- package/dist/components/analysis-bucket-file/FAnalysisBucketFiles.d.ts.map +1 -1
- package/dist/components/analysis-node/FAnalysisNodeManager.vue.d.ts +49 -156
- package/dist/components/analysis-node/FAnalysisNodeManager.vue.d.ts.map +1 -1
- package/dist/components/analysis-node/FAnalysisNodesProgress.vue.d.ts.map +1 -1
- package/dist/components/project-node/FProjectNodeInCard.vue.d.ts +49 -156
- package/dist/components/project-node/FProjectNodeInCard.vue.d.ts.map +1 -1
- package/dist/index.cjs +361 -237
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +361 -237
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.cjs
CHANGED
|
@@ -420,11 +420,6 @@ var FLoginForm = /* @__PURE__ */ _export_sfc(_sfc_main$q, [
|
|
|
420
420
|
return ActionCommandElementType;
|
|
421
421
|
}({});
|
|
422
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
423
|
const POOL_SIZE_MULTIPLIER = 128;
|
|
429
424
|
let pool, poolOffset;
|
|
430
425
|
let fillPool = (bytes)=>{
|
|
@@ -439,35 +434,18 @@ let fillPool = (bytes)=>{
|
|
|
439
434
|
poolOffset += bytes;
|
|
440
435
|
};
|
|
441
436
|
let random = (bytes)=>{
|
|
442
|
-
// `|=` convert `bytes` to number to prevent `valueOf` abusing and pool pollution
|
|
443
437
|
fillPool(bytes |= 0);
|
|
444
438
|
return pool.subarray(poolOffset - bytes, poolOffset);
|
|
445
439
|
};
|
|
446
440
|
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
441
|
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
442
|
let step = Math.ceil(1.6 * mask * defaultSize / alphabet.length);
|
|
463
443
|
return (size = defaultSize)=>{
|
|
464
444
|
let id = '';
|
|
465
445
|
while(true){
|
|
466
446
|
let bytes = getRandom(step);
|
|
467
|
-
// A compact alternative for `for (let i = 0; i < step; i++)`.
|
|
468
447
|
let i = step;
|
|
469
448
|
while(i--){
|
|
470
|
-
// Adding `|| ''` refuses a random byte that exceeds the alphabet size.
|
|
471
449
|
id += alphabet[bytes[i] & mask] || '';
|
|
472
450
|
if (id.length === size) return id;
|
|
473
451
|
}
|
|
@@ -524,13 +502,13 @@ function arrayBufferToBase64(arrayBuffer) {
|
|
|
524
502
|
return btoa(String.fromCharCode.apply(null, new Uint8Array(arrayBuffer)));
|
|
525
503
|
}
|
|
526
504
|
function exportAsymmetricPublicKey(key) {
|
|
527
|
-
return
|
|
505
|
+
return _async_to_generator$2$1(function*() {
|
|
528
506
|
const exported = yield crypto.subtle.exportKey('spki', key);
|
|
529
507
|
return `-----BEGIN PUBLIC KEY-----\n${arrayBufferToBase64(exported)}\n-----END PUBLIC KEY-----`;
|
|
530
508
|
})();
|
|
531
509
|
}
|
|
532
510
|
function exportAsymmetricPrivateKey(key) {
|
|
533
|
-
return
|
|
511
|
+
return _async_to_generator$2$1(function*() {
|
|
534
512
|
const exported = yield crypto.subtle.exportKey('pkcs8', key);
|
|
535
513
|
return `-----BEGIN PRIVATE KEY-----\n${arrayBufferToBase64(exported)}\n-----END PRIVATE KEY-----`;
|
|
536
514
|
})();
|
|
@@ -634,7 +612,7 @@ class CryptoAsymmetricAlgorithm {
|
|
|
634
612
|
throw new Error('Import params could not be created.');
|
|
635
613
|
}
|
|
636
614
|
generateKeyPair() {
|
|
637
|
-
return
|
|
615
|
+
return _async_to_generator$1$1(function*() {
|
|
638
616
|
if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
|
|
639
617
|
this.keyPair = yield crypto.subtle.generateKey(this.algorithm, true, [
|
|
640
618
|
'encrypt',
|
|
@@ -652,7 +630,7 @@ class CryptoAsymmetricAlgorithm {
|
|
|
652
630
|
}).call(this);
|
|
653
631
|
}
|
|
654
632
|
useKeyPair() {
|
|
655
|
-
return
|
|
633
|
+
return _async_to_generator$1$1(function*() {
|
|
656
634
|
if (typeof this.keyPair !== 'undefined') {
|
|
657
635
|
return this.keyPair;
|
|
658
636
|
}
|
|
@@ -660,19 +638,19 @@ class CryptoAsymmetricAlgorithm {
|
|
|
660
638
|
}).call(this);
|
|
661
639
|
}
|
|
662
640
|
exportPublicKey() {
|
|
663
|
-
return
|
|
641
|
+
return _async_to_generator$1$1(function*() {
|
|
664
642
|
const keyPair = yield this.useKeyPair();
|
|
665
643
|
return exportAsymmetricPublicKey(keyPair.publicKey);
|
|
666
644
|
}).call(this);
|
|
667
645
|
}
|
|
668
646
|
exportPrivateKey() {
|
|
669
|
-
return
|
|
647
|
+
return _async_to_generator$1$1(function*() {
|
|
670
648
|
const keyPair = yield this.useKeyPair();
|
|
671
649
|
return exportAsymmetricPrivateKey(keyPair.privateKey);
|
|
672
650
|
}).call(this);
|
|
673
651
|
}
|
|
674
652
|
encrypt(data, remoteKey) {
|
|
675
|
-
return
|
|
653
|
+
return _async_to_generator$1$1(function*() {
|
|
676
654
|
const keyPair = yield this.useKeyPair();
|
|
677
655
|
if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
|
|
678
656
|
return crypto.subtle.encrypt({
|
|
@@ -709,7 +687,7 @@ class CryptoAsymmetricAlgorithm {
|
|
|
709
687
|
}).call(this);
|
|
710
688
|
}
|
|
711
689
|
decrypt(data, remoteKey) {
|
|
712
|
-
return
|
|
690
|
+
return _async_to_generator$1$1(function*() {
|
|
713
691
|
const keyPair = yield this.useKeyPair();
|
|
714
692
|
if (this.algorithm.name === AsymmetricCryptoAlgorithmName.RSA_OAEP) {
|
|
715
693
|
return crypto.subtle.decrypt({
|
|
@@ -1316,7 +1294,7 @@ function stringifyParsedURL(parsed) {
|
|
|
1316
1294
|
return proto + auth + host + pathname + search + hash;
|
|
1317
1295
|
}
|
|
1318
1296
|
|
|
1319
|
-
const e$1 = globalThis.Blob, o$1 = globalThis.File, a$1 = globalThis.FormData, s = globalThis.Headers, i
|
|
1297
|
+
const e$1 = globalThis.Blob, o$1 = globalThis.File, a$1 = globalThis.FormData, s = globalThis.Headers, i = globalThis.AbortController, l = globalThis.fetch || (()=>{
|
|
1320
1298
|
throw new Error("[node-fetch-native] Failed to fetch: `globalThis.fetch` is not available!");
|
|
1321
1299
|
});
|
|
1322
1300
|
|
|
@@ -1405,26 +1383,26 @@ class BaseError extends Error {
|
|
|
1405
1383
|
}
|
|
1406
1384
|
}
|
|
1407
1385
|
|
|
1408
|
-
var
|
|
1409
|
-
var e = (t, r)=>
|
|
1386
|
+
var o = Object.defineProperty;
|
|
1387
|
+
var e = (t, r)=>o(t, "name", {
|
|
1410
1388
|
value: r,
|
|
1411
1389
|
configurable: true
|
|
1412
1390
|
});
|
|
1413
|
-
var
|
|
1391
|
+
var f = Object.defineProperty, c = e((t, r)=>f(t, "name", {
|
|
1414
1392
|
value: r,
|
|
1415
1393
|
configurable: true
|
|
1416
1394
|
}), "e");
|
|
1417
|
-
function
|
|
1395
|
+
function n() {
|
|
1418
1396
|
return {
|
|
1419
1397
|
agent: void 0,
|
|
1420
1398
|
dispatcher: void 0
|
|
1421
1399
|
};
|
|
1422
1400
|
}
|
|
1423
|
-
e(
|
|
1424
|
-
function
|
|
1401
|
+
e(n, "createProxy"), c(n, "createProxy");
|
|
1402
|
+
function a() {
|
|
1425
1403
|
return globalThis.fetch;
|
|
1426
1404
|
}
|
|
1427
|
-
e(
|
|
1405
|
+
e(a, "createFetch"), c(a, "createFetch");
|
|
1428
1406
|
const gT = (()=>{
|
|
1429
1407
|
if (typeof globalThis !== 'undefined') {
|
|
1430
1408
|
return globalThis;
|
|
@@ -1444,10 +1422,13 @@ const gT = (()=>{
|
|
|
1444
1422
|
})();
|
|
1445
1423
|
const File = gT.File || o$1;
|
|
1446
1424
|
const FormData$1 = gT.FormData || a$1;
|
|
1447
|
-
gT.AbortController || i
|
|
1425
|
+
gT.AbortController || i;
|
|
1448
1426
|
const fetch = gT.fetch || l;
|
|
1449
1427
|
const Headers = gT.Headers || s;
|
|
1450
1428
|
const Blob = gT.Blob || e$1;
|
|
1429
|
+
function createProxy(options) {
|
|
1430
|
+
return n();
|
|
1431
|
+
}
|
|
1451
1432
|
/*
|
|
1452
1433
|
* Copyright (c) 2023.
|
|
1453
1434
|
* Author Peter Placzek (tada5hi)
|
|
@@ -1535,22 +1516,25 @@ function verifyInstanceBySymbol(input, name) {
|
|
|
1535
1516
|
}
|
|
1536
1517
|
return input['@instanceof'] === Symbol.for(name);
|
|
1537
1518
|
}
|
|
1538
|
-
function
|
|
1519
|
+
function isSerializable(input) {
|
|
1539
1520
|
if (input === undefined) {
|
|
1540
1521
|
return false;
|
|
1541
1522
|
}
|
|
1542
1523
|
const t = typeof input;
|
|
1543
|
-
if (t === 'string' || t === 'number' || t === 'boolean' || t === null) {
|
|
1524
|
+
if (t === 'string' || t === 'number' || t === 'boolean' || t === null || t === 'bigint') {
|
|
1544
1525
|
return true;
|
|
1545
1526
|
}
|
|
1546
1527
|
if (t !== 'object') {
|
|
1547
|
-
return false; //
|
|
1528
|
+
return false; // function, symbol, undefined
|
|
1548
1529
|
}
|
|
1549
1530
|
if (Array.isArray(input)) {
|
|
1550
1531
|
return true;
|
|
1551
1532
|
}
|
|
1552
1533
|
return isObject$1(input) || typeof input === 'function' && input.toJSON === 'function';
|
|
1553
1534
|
}
|
|
1535
|
+
function serialize(input) {
|
|
1536
|
+
return JSON.stringify(input, (_key, value)=>typeof value === 'bigint' ? value.toString() : value);
|
|
1537
|
+
}
|
|
1554
1538
|
/*
|
|
1555
1539
|
* Copyright (c) 2023.
|
|
1556
1540
|
* Author Peter Placzek (tada5hi)
|
|
@@ -1561,6 +1545,33 @@ function isJSONSerializable(input) {
|
|
|
1561
1545
|
// @ts-ignore
|
|
1562
1546
|
typeof p.then === 'function');
|
|
1563
1547
|
}
|
|
1548
|
+
/**
|
|
1549
|
+
* Traverse object or array and provide the ability to replace values.
|
|
1550
|
+
*
|
|
1551
|
+
* @param input
|
|
1552
|
+
* @param fn
|
|
1553
|
+
*/ function traverse(input, fn) {
|
|
1554
|
+
if (Array.isArray(input)) {
|
|
1555
|
+
for(let i = 0; i < input.length; i++){
|
|
1556
|
+
if (isObject$1(input[i]) || Array.isArray(input[i])) {
|
|
1557
|
+
input[i] = fn(traverse(input[i], fn), `${i}`);
|
|
1558
|
+
continue;
|
|
1559
|
+
}
|
|
1560
|
+
input[i] = fn(input[i], `${i}`);
|
|
1561
|
+
}
|
|
1562
|
+
return input;
|
|
1563
|
+
}
|
|
1564
|
+
const keys = Object.keys(input);
|
|
1565
|
+
for(let i = 0; i < keys.length; i++){
|
|
1566
|
+
const value = input[keys[i]];
|
|
1567
|
+
if (isObject$1(value) || Array.isArray(value)) {
|
|
1568
|
+
input[keys[i]] = fn(traverse(value, fn), keys[i]);
|
|
1569
|
+
continue;
|
|
1570
|
+
}
|
|
1571
|
+
input[keys[i]] = fn(value, keys[i]);
|
|
1572
|
+
}
|
|
1573
|
+
return input;
|
|
1574
|
+
}
|
|
1564
1575
|
/*
|
|
1565
1576
|
* Copyright (c) 2022.
|
|
1566
1577
|
* Author Peter Placzek (tada5hi)
|
|
@@ -1588,7 +1599,9 @@ function isJSONSerializable(input) {
|
|
|
1588
1599
|
}({});
|
|
1589
1600
|
class ClientError extends BaseError {
|
|
1590
1601
|
constructor(ctx){
|
|
1591
|
-
super(
|
|
1602
|
+
super({
|
|
1603
|
+
cause: ctx.error
|
|
1604
|
+
}), this['@instanceof'] = Symbol.for('ClientError');
|
|
1592
1605
|
this.request = ctx.request;
|
|
1593
1606
|
this.response = ctx.response;
|
|
1594
1607
|
this.code = ctx.code;
|
|
@@ -1597,19 +1610,39 @@ class ClientError extends BaseError {
|
|
|
1597
1610
|
this.statusMessage = ctx.response && ctx.response.statusText;
|
|
1598
1611
|
this.statusText = ctx.response && ctx.response.statusText;
|
|
1599
1612
|
this.message = ctx.message;
|
|
1613
|
+
if (Error.captureStackTrace) {
|
|
1614
|
+
Error.captureStackTrace(this, ClientError);
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
function isClientError(error) {
|
|
1619
|
+
if (error instanceof ClientError) {
|
|
1620
|
+
return true;
|
|
1621
|
+
}
|
|
1622
|
+
return isObject$1(error) && verifyInstanceBySymbol(error, 'ClientError');
|
|
1623
|
+
}
|
|
1624
|
+
function isClientErrorWithStatusCode(error, statusCode) {
|
|
1625
|
+
if (!isClientError(error) || !isObject$1(error.response)) {
|
|
1626
|
+
return false;
|
|
1627
|
+
}
|
|
1628
|
+
const statusCodes = Array.isArray(statusCode) ? statusCode : [
|
|
1629
|
+
statusCode
|
|
1630
|
+
];
|
|
1631
|
+
for(let i = 0; i < statusCodes.length; i++){
|
|
1632
|
+
if (statusCodes[i] === error.response.status) {
|
|
1633
|
+
return true;
|
|
1634
|
+
}
|
|
1600
1635
|
}
|
|
1636
|
+
return false;
|
|
1601
1637
|
}
|
|
1602
1638
|
function formatRequestOptions(input) {
|
|
1603
1639
|
if (input.url) {
|
|
1604
|
-
|
|
1605
|
-
if (input.
|
|
1606
|
-
|
|
1607
|
-
const searchQuery = searchParams.toString();
|
|
1608
|
-
if (searchQuery.length > 0) {
|
|
1609
|
-
output += `?${searchQuery}`;
|
|
1610
|
-
}
|
|
1640
|
+
const parts = [];
|
|
1641
|
+
if (input.method) {
|
|
1642
|
+
parts.push(input.method);
|
|
1611
1643
|
}
|
|
1612
|
-
|
|
1644
|
+
parts.push(input.url);
|
|
1645
|
+
return parts.join(' ');
|
|
1613
1646
|
}
|
|
1614
1647
|
return input.toString();
|
|
1615
1648
|
}
|
|
@@ -1620,8 +1653,10 @@ function createClientError(context) {
|
|
|
1620
1653
|
} else if (context.request) {
|
|
1621
1654
|
message = `${formatRequestOptions(context.request)}`;
|
|
1622
1655
|
}
|
|
1623
|
-
if (context.error
|
|
1624
|
-
|
|
1656
|
+
if (context.error) {
|
|
1657
|
+
if (context.error.message) {
|
|
1658
|
+
message = `${context.error.message} (${message})`;
|
|
1659
|
+
}
|
|
1625
1660
|
}
|
|
1626
1661
|
if (!message) {
|
|
1627
1662
|
message = 'An unknown error occurred.';
|
|
@@ -1635,32 +1670,36 @@ function createClientError(context) {
|
|
|
1635
1670
|
code = ErrorCode.CONNECTION_CLOSED;
|
|
1636
1671
|
}
|
|
1637
1672
|
}
|
|
1638
|
-
const
|
|
1673
|
+
const error = new ClientError({
|
|
1639
1674
|
...context,
|
|
1640
1675
|
code,
|
|
1641
1676
|
message
|
|
1642
1677
|
});
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
function isClientError(error) {
|
|
1646
|
-
if (error instanceof ClientError) {
|
|
1647
|
-
return true;
|
|
1678
|
+
if (Error.captureStackTrace) {
|
|
1679
|
+
Error.captureStackTrace(error, createClientError);
|
|
1648
1680
|
}
|
|
1649
|
-
return
|
|
1681
|
+
return error;
|
|
1650
1682
|
}
|
|
1651
|
-
function
|
|
1652
|
-
if (
|
|
1653
|
-
return
|
|
1683
|
+
function toError(input) {
|
|
1684
|
+
if (input instanceof Error) {
|
|
1685
|
+
return input;
|
|
1654
1686
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
if (statusCodes[i] === error.response.status) {
|
|
1660
|
-
return true;
|
|
1687
|
+
if (isObject$1(input)) {
|
|
1688
|
+
if (input.constructor.name === 'TypeError') {
|
|
1689
|
+
Object.setPrototypeOf(input, TypeError.prototype);
|
|
1690
|
+
return input;
|
|
1661
1691
|
}
|
|
1692
|
+
const error = new Error(input.message);
|
|
1693
|
+
extendError(error, input);
|
|
1694
|
+
return input;
|
|
1695
|
+
}
|
|
1696
|
+
return undefined;
|
|
1697
|
+
}
|
|
1698
|
+
function extendError(error, data) {
|
|
1699
|
+
const keys = Object.getOwnPropertyNames(data);
|
|
1700
|
+
for(let i = 0; i < keys.length; i++){
|
|
1701
|
+
error[keys[i]] = data[keys[i]];
|
|
1662
1702
|
}
|
|
1663
|
-
return false;
|
|
1664
1703
|
}
|
|
1665
1704
|
function stringifyAuthorizationHeader(header) {
|
|
1666
1705
|
switch(header.type){
|
|
@@ -1702,8 +1741,8 @@ function createDefaultRequestTransformer() {
|
|
|
1702
1741
|
}
|
|
1703
1742
|
const contentType = headers.get(HeaderName.CONTENT_TYPE) || '';
|
|
1704
1743
|
const contentTypeIsJson = contentType.indexOf('application/json') !== -1;
|
|
1705
|
-
if (
|
|
1706
|
-
data = typeof data === 'string' ? data :
|
|
1744
|
+
if (isSerializable(data) || contentTypeIsJson) {
|
|
1745
|
+
data = typeof data === 'string' ? data : serialize(data);
|
|
1707
1746
|
if (!headers.has(HeaderName.CONTENT_TYPE)) {
|
|
1708
1747
|
headers.set(HeaderName.CONTENT_TYPE, 'application/json');
|
|
1709
1748
|
}
|
|
@@ -1720,6 +1759,9 @@ function extendRequestOptionsWithDefaults(options) {
|
|
|
1720
1759
|
createDefaultRequestTransformer()
|
|
1721
1760
|
];
|
|
1722
1761
|
}
|
|
1762
|
+
if (typeof options.proxy === 'undefined') {
|
|
1763
|
+
options.proxy = true;
|
|
1764
|
+
}
|
|
1723
1765
|
return options;
|
|
1724
1766
|
}
|
|
1725
1767
|
function isRequestPayloadSupported(method = 'GET') {
|
|
@@ -1938,10 +1980,15 @@ let Client$1 = class Client {
|
|
|
1938
1980
|
url: baseURL ? withBase(config.url, baseURL) : config.url
|
|
1939
1981
|
};
|
|
1940
1982
|
if (options.query || options.params) {
|
|
1941
|
-
options.url = withQuery(options.url, {
|
|
1983
|
+
options.url = withQuery(options.url, traverse({
|
|
1942
1984
|
...options.params,
|
|
1943
1985
|
...options.query
|
|
1944
|
-
})
|
|
1986
|
+
}, (value)=>{
|
|
1987
|
+
if (typeof value === 'bigint') {
|
|
1988
|
+
return value.toString();
|
|
1989
|
+
}
|
|
1990
|
+
return value;
|
|
1991
|
+
}));
|
|
1945
1992
|
}
|
|
1946
1993
|
options = await this.hookManager.triggerReqHook(options);
|
|
1947
1994
|
if (options.transform) {
|
|
@@ -1956,7 +2003,7 @@ let Client$1 = class Client {
|
|
|
1956
2003
|
const handleError = async (step, ctx)=>{
|
|
1957
2004
|
const error = createClientError(ctx);
|
|
1958
2005
|
if (Error.captureStackTrace) {
|
|
1959
|
-
Error.captureStackTrace(error);
|
|
2006
|
+
Error.captureStackTrace(error, this.request);
|
|
1960
2007
|
}
|
|
1961
2008
|
let output;
|
|
1962
2009
|
if (step === 'request') {
|
|
@@ -1987,15 +2034,13 @@ let Client$1 = class Client {
|
|
|
1987
2034
|
}
|
|
1988
2035
|
response = await fetch(url, {
|
|
1989
2036
|
...data,
|
|
1990
|
-
...
|
|
2037
|
+
...createProxy(proxyOptions)
|
|
1991
2038
|
});
|
|
1992
2039
|
}
|
|
1993
|
-
} catch (
|
|
2040
|
+
} catch (e) {
|
|
1994
2041
|
return handleError('request', {
|
|
1995
2042
|
request: options,
|
|
1996
|
-
|
|
1997
|
-
error
|
|
1998
|
-
} : {}
|
|
2043
|
+
error: toError(e)
|
|
1999
2044
|
});
|
|
2000
2045
|
}
|
|
2001
2046
|
const responseType = options.responseType || detectResponseType(response.headers.get(HeaderName.CONTENT_TYPE));
|
|
@@ -2201,7 +2246,7 @@ class BaseAPI {
|
|
|
2201
2246
|
* Author Peter Placzek (tada5hi)
|
|
2202
2247
|
* For the full copyright and license information,
|
|
2203
2248
|
* view the LICENSE file that was distributed with this source code.
|
|
2204
|
-
*/ function asyncGeneratorStep$
|
|
2249
|
+
*/ function asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2205
2250
|
try {
|
|
2206
2251
|
var info = gen[key](arg);
|
|
2207
2252
|
var value = info.value;
|
|
@@ -2215,16 +2260,16 @@ class BaseAPI {
|
|
|
2215
2260
|
Promise.resolve(value).then(_next, _throw);
|
|
2216
2261
|
}
|
|
2217
2262
|
}
|
|
2218
|
-
function _async_to_generator$
|
|
2263
|
+
function _async_to_generator$g(fn) {
|
|
2219
2264
|
return function() {
|
|
2220
2265
|
var self = this, args = arguments;
|
|
2221
2266
|
return new Promise(function(resolve, reject) {
|
|
2222
2267
|
var gen = fn.apply(self, args);
|
|
2223
2268
|
function _next(value) {
|
|
2224
|
-
asyncGeneratorStep$
|
|
2269
|
+
asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "next", value);
|
|
2225
2270
|
}
|
|
2226
2271
|
function _throw(err) {
|
|
2227
|
-
asyncGeneratorStep$
|
|
2272
|
+
asyncGeneratorStep$g(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2228
2273
|
}
|
|
2229
2274
|
_next(undefined);
|
|
2230
2275
|
});
|
|
@@ -2232,19 +2277,19 @@ function _async_to_generator$f(fn) {
|
|
|
2232
2277
|
}
|
|
2233
2278
|
class MasterImageGroupAPI extends BaseAPI {
|
|
2234
2279
|
getMany(data) {
|
|
2235
|
-
return
|
|
2280
|
+
return _async_to_generator$g(function*() {
|
|
2236
2281
|
const response = yield this.client.get(`master-image-groups${rapiq.buildQuery(data)}`);
|
|
2237
2282
|
return response.data;
|
|
2238
2283
|
}).call(this);
|
|
2239
2284
|
}
|
|
2240
2285
|
getOne(id) {
|
|
2241
|
-
return
|
|
2286
|
+
return _async_to_generator$g(function*() {
|
|
2242
2287
|
const response = yield this.client.delete(`master-image-groups/${id}`);
|
|
2243
2288
|
return response.data;
|
|
2244
2289
|
}).call(this);
|
|
2245
2290
|
}
|
|
2246
2291
|
delete(id) {
|
|
2247
|
-
return
|
|
2292
|
+
return _async_to_generator$g(function*() {
|
|
2248
2293
|
const response = yield this.client.delete(`master-image-groups/${id}`);
|
|
2249
2294
|
return response.data;
|
|
2250
2295
|
}).call(this);
|
|
@@ -2255,7 +2300,7 @@ class MasterImageGroupAPI extends BaseAPI {
|
|
|
2255
2300
|
* Author Peter Placzek (tada5hi)
|
|
2256
2301
|
* For the full copyright and license information,
|
|
2257
2302
|
* view the LICENSE file that was distributed with this source code.
|
|
2258
|
-
*/ function asyncGeneratorStep$
|
|
2303
|
+
*/ function asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2259
2304
|
try {
|
|
2260
2305
|
var info = gen[key](arg);
|
|
2261
2306
|
var value = info.value;
|
|
@@ -2269,16 +2314,16 @@ class MasterImageGroupAPI extends BaseAPI {
|
|
|
2269
2314
|
Promise.resolve(value).then(_next, _throw);
|
|
2270
2315
|
}
|
|
2271
2316
|
}
|
|
2272
|
-
function _async_to_generator$
|
|
2317
|
+
function _async_to_generator$f(fn) {
|
|
2273
2318
|
return function() {
|
|
2274
2319
|
var self = this, args = arguments;
|
|
2275
2320
|
return new Promise(function(resolve, reject) {
|
|
2276
2321
|
var gen = fn.apply(self, args);
|
|
2277
2322
|
function _next(value) {
|
|
2278
|
-
asyncGeneratorStep$
|
|
2323
|
+
asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "next", value);
|
|
2279
2324
|
}
|
|
2280
2325
|
function _throw(err) {
|
|
2281
|
-
asyncGeneratorStep$
|
|
2326
|
+
asyncGeneratorStep$f(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2282
2327
|
}
|
|
2283
2328
|
_next(undefined);
|
|
2284
2329
|
});
|
|
@@ -2314,25 +2359,25 @@ function _object_spread$3(target) {
|
|
|
2314
2359
|
}
|
|
2315
2360
|
class MasterImageAPI extends BaseAPI {
|
|
2316
2361
|
getMany(data) {
|
|
2317
|
-
return
|
|
2362
|
+
return _async_to_generator$f(function*() {
|
|
2318
2363
|
const response = yield this.client.get(`master-images${rapiq.buildQuery(data)}`);
|
|
2319
2364
|
return response.data;
|
|
2320
2365
|
}).call(this);
|
|
2321
2366
|
}
|
|
2322
2367
|
getOne(id, data) {
|
|
2323
|
-
return
|
|
2368
|
+
return _async_to_generator$f(function*() {
|
|
2324
2369
|
const response = yield this.client.get(`master-images/${id}${rapiq.buildQuery(data)}`);
|
|
2325
2370
|
return response.data;
|
|
2326
2371
|
}).call(this);
|
|
2327
2372
|
}
|
|
2328
2373
|
delete(id) {
|
|
2329
|
-
return
|
|
2374
|
+
return _async_to_generator$f(function*() {
|
|
2330
2375
|
const response = yield this.client.delete(`master-images/${id}`);
|
|
2331
2376
|
return response.data;
|
|
2332
2377
|
}).call(this);
|
|
2333
2378
|
}
|
|
2334
2379
|
runCommand(_0) {
|
|
2335
|
-
return
|
|
2380
|
+
return _async_to_generator$f(function*(command, data = {}) {
|
|
2336
2381
|
const actionData = _object_spread$3({
|
|
2337
2382
|
command
|
|
2338
2383
|
}, data);
|
|
@@ -2346,7 +2391,7 @@ class MasterImageAPI extends BaseAPI {
|
|
|
2346
2391
|
* Author Peter Placzek (tada5hi)
|
|
2347
2392
|
* For the full copyright and license information,
|
|
2348
2393
|
* view the LICENSE file that was distributed with this source code.
|
|
2349
|
-
*/ function asyncGeneratorStep$
|
|
2394
|
+
*/ function asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2350
2395
|
try {
|
|
2351
2396
|
var info = gen[key](arg);
|
|
2352
2397
|
var value = info.value;
|
|
@@ -2360,16 +2405,16 @@ class MasterImageAPI extends BaseAPI {
|
|
|
2360
2405
|
Promise.resolve(value).then(_next, _throw);
|
|
2361
2406
|
}
|
|
2362
2407
|
}
|
|
2363
|
-
function _async_to_generator$
|
|
2408
|
+
function _async_to_generator$e(fn) {
|
|
2364
2409
|
return function() {
|
|
2365
2410
|
var self = this, args = arguments;
|
|
2366
2411
|
return new Promise(function(resolve, reject) {
|
|
2367
2412
|
var gen = fn.apply(self, args);
|
|
2368
2413
|
function _next(value) {
|
|
2369
|
-
asyncGeneratorStep$
|
|
2414
|
+
asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "next", value);
|
|
2370
2415
|
}
|
|
2371
2416
|
function _throw(err) {
|
|
2372
|
-
asyncGeneratorStep$
|
|
2417
|
+
asyncGeneratorStep$e(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2373
2418
|
}
|
|
2374
2419
|
_next(undefined);
|
|
2375
2420
|
});
|
|
@@ -2377,31 +2422,31 @@ function _async_to_generator$d(fn) {
|
|
|
2377
2422
|
}
|
|
2378
2423
|
class MasterImageEventLogAPI extends BaseAPI {
|
|
2379
2424
|
getMany(options) {
|
|
2380
|
-
return
|
|
2425
|
+
return _async_to_generator$e(function*() {
|
|
2381
2426
|
const { data: response } = yield this.client.get(`master-image-event-logs${rapiq.buildQuery(options)}`);
|
|
2382
2427
|
return response;
|
|
2383
2428
|
}).call(this);
|
|
2384
2429
|
}
|
|
2385
2430
|
getOne(id) {
|
|
2386
|
-
return
|
|
2431
|
+
return _async_to_generator$e(function*() {
|
|
2387
2432
|
const { data: response } = yield this.client.get(`master-image-event-logs/${id}`);
|
|
2388
2433
|
return response;
|
|
2389
2434
|
}).call(this);
|
|
2390
2435
|
}
|
|
2391
2436
|
delete(id) {
|
|
2392
|
-
return
|
|
2437
|
+
return _async_to_generator$e(function*() {
|
|
2393
2438
|
const { data: response } = yield this.client.delete(`master-image-event-logs/${id}`);
|
|
2394
2439
|
return response;
|
|
2395
2440
|
}).call(this);
|
|
2396
2441
|
}
|
|
2397
2442
|
update(id, data) {
|
|
2398
|
-
return
|
|
2443
|
+
return _async_to_generator$e(function*() {
|
|
2399
2444
|
const { data: response } = yield this.client.post(`master-image-event-logs/${id}`, data);
|
|
2400
2445
|
return response;
|
|
2401
2446
|
}).call(this);
|
|
2402
2447
|
}
|
|
2403
2448
|
create(data) {
|
|
2404
|
-
return
|
|
2449
|
+
return _async_to_generator$e(function*() {
|
|
2405
2450
|
const { data: response } = yield this.client.post('master-image-event-logs', data);
|
|
2406
2451
|
return response;
|
|
2407
2452
|
}).call(this);
|
|
@@ -2421,7 +2466,7 @@ function nullifyEmptyObjectProperties(data) {
|
|
|
2421
2466
|
* Author Peter Placzek (tada5hi)
|
|
2422
2467
|
* For the full copyright and license information,
|
|
2423
2468
|
* view the LICENSE file that was distributed with this source code.
|
|
2424
|
-
*/ function asyncGeneratorStep$
|
|
2469
|
+
*/ function asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2425
2470
|
try {
|
|
2426
2471
|
var info = gen[key](arg);
|
|
2427
2472
|
var value = info.value;
|
|
@@ -2435,16 +2480,16 @@ function nullifyEmptyObjectProperties(data) {
|
|
|
2435
2480
|
Promise.resolve(value).then(_next, _throw);
|
|
2436
2481
|
}
|
|
2437
2482
|
}
|
|
2438
|
-
function _async_to_generator$
|
|
2483
|
+
function _async_to_generator$d(fn) {
|
|
2439
2484
|
return function() {
|
|
2440
2485
|
var self = this, args = arguments;
|
|
2441
2486
|
return new Promise(function(resolve, reject) {
|
|
2442
2487
|
var gen = fn.apply(self, args);
|
|
2443
2488
|
function _next(value) {
|
|
2444
|
-
asyncGeneratorStep$
|
|
2489
|
+
asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "next", value);
|
|
2445
2490
|
}
|
|
2446
2491
|
function _throw(err) {
|
|
2447
|
-
asyncGeneratorStep$
|
|
2492
|
+
asyncGeneratorStep$d(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2448
2493
|
}
|
|
2449
2494
|
_next(undefined);
|
|
2450
2495
|
});
|
|
@@ -2452,31 +2497,31 @@ function _async_to_generator$c(fn) {
|
|
|
2452
2497
|
}
|
|
2453
2498
|
class ProjectAPI extends BaseAPI {
|
|
2454
2499
|
getMany(record) {
|
|
2455
|
-
return
|
|
2500
|
+
return _async_to_generator$d(function*() {
|
|
2456
2501
|
const response = yield this.client.get(`projects${rapiq.buildQuery(record)}`);
|
|
2457
2502
|
return response.data;
|
|
2458
2503
|
}).call(this);
|
|
2459
2504
|
}
|
|
2460
2505
|
getOne(id, requestRecord) {
|
|
2461
|
-
return
|
|
2506
|
+
return _async_to_generator$d(function*() {
|
|
2462
2507
|
const response = yield this.client.get(`projects/${id}${rapiq.buildQuery(requestRecord)}`);
|
|
2463
2508
|
return response.data;
|
|
2464
2509
|
}).call(this);
|
|
2465
2510
|
}
|
|
2466
2511
|
create(data) {
|
|
2467
|
-
return
|
|
2512
|
+
return _async_to_generator$d(function*() {
|
|
2468
2513
|
const response = yield this.client.post('projects', nullifyEmptyObjectProperties(data));
|
|
2469
2514
|
return response.data;
|
|
2470
2515
|
}).call(this);
|
|
2471
2516
|
}
|
|
2472
2517
|
delete(id) {
|
|
2473
|
-
return
|
|
2518
|
+
return _async_to_generator$d(function*() {
|
|
2474
2519
|
const response = yield this.client.delete(`projects/${id}`);
|
|
2475
2520
|
return response.data;
|
|
2476
2521
|
}).call(this);
|
|
2477
2522
|
}
|
|
2478
2523
|
update(id, data) {
|
|
2479
|
-
return
|
|
2524
|
+
return _async_to_generator$d(function*() {
|
|
2480
2525
|
const response = yield this.client.post(`projects/${id}`, nullifyEmptyObjectProperties(data));
|
|
2481
2526
|
return response.data;
|
|
2482
2527
|
}).call(this);
|
|
@@ -2487,7 +2532,7 @@ class ProjectAPI extends BaseAPI {
|
|
|
2487
2532
|
* Author Peter Placzek (tada5hi)
|
|
2488
2533
|
* For the full copyright and license information,
|
|
2489
2534
|
* view the LICENSE file that was distributed with this source code.
|
|
2490
|
-
*/ function asyncGeneratorStep$
|
|
2535
|
+
*/ function asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2491
2536
|
try {
|
|
2492
2537
|
var info = gen[key](arg);
|
|
2493
2538
|
var value = info.value;
|
|
@@ -2501,16 +2546,16 @@ class ProjectAPI extends BaseAPI {
|
|
|
2501
2546
|
Promise.resolve(value).then(_next, _throw);
|
|
2502
2547
|
}
|
|
2503
2548
|
}
|
|
2504
|
-
function _async_to_generator$
|
|
2549
|
+
function _async_to_generator$c(fn) {
|
|
2505
2550
|
return function() {
|
|
2506
2551
|
var self = this, args = arguments;
|
|
2507
2552
|
return new Promise(function(resolve, reject) {
|
|
2508
2553
|
var gen = fn.apply(self, args);
|
|
2509
2554
|
function _next(value) {
|
|
2510
|
-
asyncGeneratorStep$
|
|
2555
|
+
asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "next", value);
|
|
2511
2556
|
}
|
|
2512
2557
|
function _throw(err) {
|
|
2513
|
-
asyncGeneratorStep$
|
|
2558
|
+
asyncGeneratorStep$c(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2514
2559
|
}
|
|
2515
2560
|
_next(undefined);
|
|
2516
2561
|
});
|
|
@@ -2518,31 +2563,31 @@ function _async_to_generator$b(fn) {
|
|
|
2518
2563
|
}
|
|
2519
2564
|
class ProjectNodeAPI extends BaseAPI {
|
|
2520
2565
|
getMany(data) {
|
|
2521
|
-
return
|
|
2566
|
+
return _async_to_generator$c(function*() {
|
|
2522
2567
|
const response = yield this.client.get(`project-nodes${rapiq.buildQuery(data)}`);
|
|
2523
2568
|
return response.data;
|
|
2524
2569
|
}).call(this);
|
|
2525
2570
|
}
|
|
2526
2571
|
getOne(id, data) {
|
|
2527
|
-
return
|
|
2572
|
+
return _async_to_generator$c(function*() {
|
|
2528
2573
|
const response = yield this.client.get(`project-nodes/${id}${rapiq.buildQuery(data)}`);
|
|
2529
2574
|
return response.data;
|
|
2530
2575
|
}).call(this);
|
|
2531
2576
|
}
|
|
2532
2577
|
create(data) {
|
|
2533
|
-
return
|
|
2578
|
+
return _async_to_generator$c(function*() {
|
|
2534
2579
|
const response = yield this.client.post('project-nodes', data);
|
|
2535
2580
|
return response.data;
|
|
2536
2581
|
}).call(this);
|
|
2537
2582
|
}
|
|
2538
2583
|
update(id, data) {
|
|
2539
|
-
return
|
|
2584
|
+
return _async_to_generator$c(function*() {
|
|
2540
2585
|
const response = yield this.client.post(`project-nodes/${id}`, nullifyEmptyObjectProperties(data));
|
|
2541
2586
|
return response.data;
|
|
2542
2587
|
}).call(this);
|
|
2543
2588
|
}
|
|
2544
2589
|
delete(id) {
|
|
2545
|
-
return
|
|
2590
|
+
return _async_to_generator$c(function*() {
|
|
2546
2591
|
const response = yield this.client.delete(`project-nodes/${id}`);
|
|
2547
2592
|
return response.data;
|
|
2548
2593
|
}).call(this);
|
|
@@ -2553,7 +2598,7 @@ class ProjectNodeAPI extends BaseAPI {
|
|
|
2553
2598
|
* Author Peter Placzek (tada5hi)
|
|
2554
2599
|
* For the full copyright and license information,
|
|
2555
2600
|
* view the LICENSE file that was distributed with this source code.
|
|
2556
|
-
*/ function asyncGeneratorStep$
|
|
2601
|
+
*/ function asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2557
2602
|
try {
|
|
2558
2603
|
var info = gen[key](arg);
|
|
2559
2604
|
var value = info.value;
|
|
@@ -2567,16 +2612,16 @@ class ProjectNodeAPI extends BaseAPI {
|
|
|
2567
2612
|
Promise.resolve(value).then(_next, _throw);
|
|
2568
2613
|
}
|
|
2569
2614
|
}
|
|
2570
|
-
function _async_to_generator$
|
|
2615
|
+
function _async_to_generator$b(fn) {
|
|
2571
2616
|
return function() {
|
|
2572
2617
|
var self = this, args = arguments;
|
|
2573
2618
|
return new Promise(function(resolve, reject) {
|
|
2574
2619
|
var gen = fn.apply(self, args);
|
|
2575
2620
|
function _next(value) {
|
|
2576
|
-
asyncGeneratorStep$
|
|
2621
|
+
asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "next", value);
|
|
2577
2622
|
}
|
|
2578
2623
|
function _throw(err) {
|
|
2579
|
-
asyncGeneratorStep$
|
|
2624
|
+
asyncGeneratorStep$b(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2580
2625
|
}
|
|
2581
2626
|
_next(undefined);
|
|
2582
2627
|
});
|
|
@@ -2584,31 +2629,31 @@ function _async_to_generator$a(fn) {
|
|
|
2584
2629
|
}
|
|
2585
2630
|
class RegistryAPI extends BaseAPI {
|
|
2586
2631
|
getMany(options) {
|
|
2587
|
-
return
|
|
2632
|
+
return _async_to_generator$b(function*() {
|
|
2588
2633
|
const response = yield this.client.get(`registries${rapiq.buildQuery(options)}`);
|
|
2589
2634
|
return response.data;
|
|
2590
2635
|
}).call(this);
|
|
2591
2636
|
}
|
|
2592
2637
|
getOne(id, options) {
|
|
2593
|
-
return
|
|
2638
|
+
return _async_to_generator$b(function*() {
|
|
2594
2639
|
const response = yield this.client.get(`registries/${id}${rapiq.buildQuery(options)}`);
|
|
2595
2640
|
return response.data;
|
|
2596
2641
|
}).call(this);
|
|
2597
2642
|
}
|
|
2598
2643
|
create(data) {
|
|
2599
|
-
return
|
|
2644
|
+
return _async_to_generator$b(function*() {
|
|
2600
2645
|
const response = yield this.client.post('registries', nullifyEmptyObjectProperties(data));
|
|
2601
2646
|
return response.data;
|
|
2602
2647
|
}).call(this);
|
|
2603
2648
|
}
|
|
2604
2649
|
update(id, data) {
|
|
2605
|
-
return
|
|
2650
|
+
return _async_to_generator$b(function*() {
|
|
2606
2651
|
const response = yield this.client.post(`registries/${id}`, nullifyEmptyObjectProperties(data));
|
|
2607
2652
|
return response.data;
|
|
2608
2653
|
}).call(this);
|
|
2609
2654
|
}
|
|
2610
2655
|
delete(id) {
|
|
2611
|
-
return
|
|
2656
|
+
return _async_to_generator$b(function*() {
|
|
2612
2657
|
const response = yield this.client.delete(`registries/${id}`);
|
|
2613
2658
|
return response.data;
|
|
2614
2659
|
}).call(this);
|
|
@@ -2619,7 +2664,7 @@ class RegistryAPI extends BaseAPI {
|
|
|
2619
2664
|
* Author Peter Placzek (tada5hi)
|
|
2620
2665
|
* For the full copyright and license information,
|
|
2621
2666
|
* view the LICENSE file that was distributed with this source code.
|
|
2622
|
-
*/ function asyncGeneratorStep$
|
|
2667
|
+
*/ function asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2623
2668
|
try {
|
|
2624
2669
|
var info = gen[key](arg);
|
|
2625
2670
|
var value = info.value;
|
|
@@ -2633,16 +2678,16 @@ class RegistryAPI extends BaseAPI {
|
|
|
2633
2678
|
Promise.resolve(value).then(_next, _throw);
|
|
2634
2679
|
}
|
|
2635
2680
|
}
|
|
2636
|
-
function _async_to_generator$
|
|
2681
|
+
function _async_to_generator$a(fn) {
|
|
2637
2682
|
return function() {
|
|
2638
2683
|
var self = this, args = arguments;
|
|
2639
2684
|
return new Promise(function(resolve, reject) {
|
|
2640
2685
|
var gen = fn.apply(self, args);
|
|
2641
2686
|
function _next(value) {
|
|
2642
|
-
asyncGeneratorStep$
|
|
2687
|
+
asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "next", value);
|
|
2643
2688
|
}
|
|
2644
2689
|
function _throw(err) {
|
|
2645
|
-
asyncGeneratorStep$
|
|
2690
|
+
asyncGeneratorStep$a(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2646
2691
|
}
|
|
2647
2692
|
_next(undefined);
|
|
2648
2693
|
});
|
|
@@ -2650,31 +2695,31 @@ function _async_to_generator$9(fn) {
|
|
|
2650
2695
|
}
|
|
2651
2696
|
class RegistryProjectAPI extends BaseAPI {
|
|
2652
2697
|
getMany(options) {
|
|
2653
|
-
return
|
|
2698
|
+
return _async_to_generator$a(function*() {
|
|
2654
2699
|
const response = yield this.client.get(`registry-projects${rapiq.buildQuery(options)}`);
|
|
2655
2700
|
return response.data;
|
|
2656
2701
|
}).call(this);
|
|
2657
2702
|
}
|
|
2658
2703
|
getOne(id, options) {
|
|
2659
|
-
return
|
|
2704
|
+
return _async_to_generator$a(function*() {
|
|
2660
2705
|
const response = yield this.client.get(`registry-projects/${id}${rapiq.buildQuery(options)}`);
|
|
2661
2706
|
return response.data;
|
|
2662
2707
|
}).call(this);
|
|
2663
2708
|
}
|
|
2664
2709
|
create(data) {
|
|
2665
|
-
return
|
|
2710
|
+
return _async_to_generator$a(function*() {
|
|
2666
2711
|
const response = yield this.client.post('registry-projects', nullifyEmptyObjectProperties(data));
|
|
2667
2712
|
return response.data;
|
|
2668
2713
|
}).call(this);
|
|
2669
2714
|
}
|
|
2670
2715
|
update(id, data) {
|
|
2671
|
-
return
|
|
2716
|
+
return _async_to_generator$a(function*() {
|
|
2672
2717
|
const response = yield this.client.post(`registry-projects/${id}`, nullifyEmptyObjectProperties(data));
|
|
2673
2718
|
return response.data;
|
|
2674
2719
|
}).call(this);
|
|
2675
2720
|
}
|
|
2676
2721
|
delete(id) {
|
|
2677
|
-
return
|
|
2722
|
+
return _async_to_generator$a(function*() {
|
|
2678
2723
|
const response = yield this.client.delete(`registry-projects/${id}`);
|
|
2679
2724
|
return response.data;
|
|
2680
2725
|
}).call(this);
|
|
@@ -2685,7 +2730,7 @@ class RegistryProjectAPI extends BaseAPI {
|
|
|
2685
2730
|
* Author Peter Placzek (tada5hi)
|
|
2686
2731
|
* For the full copyright and license information,
|
|
2687
2732
|
* view the LICENSE file that was distributed with this source code.
|
|
2688
|
-
*/ function asyncGeneratorStep$
|
|
2733
|
+
*/ function asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2689
2734
|
try {
|
|
2690
2735
|
var info = gen[key](arg);
|
|
2691
2736
|
var value = info.value;
|
|
@@ -2699,16 +2744,16 @@ class RegistryProjectAPI extends BaseAPI {
|
|
|
2699
2744
|
Promise.resolve(value).then(_next, _throw);
|
|
2700
2745
|
}
|
|
2701
2746
|
}
|
|
2702
|
-
function _async_to_generator$
|
|
2747
|
+
function _async_to_generator$9(fn) {
|
|
2703
2748
|
return function() {
|
|
2704
2749
|
var self = this, args = arguments;
|
|
2705
2750
|
return new Promise(function(resolve, reject) {
|
|
2706
2751
|
var gen = fn.apply(self, args);
|
|
2707
2752
|
function _next(value) {
|
|
2708
|
-
asyncGeneratorStep$
|
|
2753
|
+
asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "next", value);
|
|
2709
2754
|
}
|
|
2710
2755
|
function _throw(err) {
|
|
2711
|
-
asyncGeneratorStep$
|
|
2756
|
+
asyncGeneratorStep$9(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2712
2757
|
}
|
|
2713
2758
|
_next(undefined);
|
|
2714
2759
|
});
|
|
@@ -2744,37 +2789,37 @@ function _object_spread$2(target) {
|
|
|
2744
2789
|
}
|
|
2745
2790
|
class NodeAPI extends BaseAPI {
|
|
2746
2791
|
getMany(options) {
|
|
2747
|
-
return
|
|
2792
|
+
return _async_to_generator$9(function*() {
|
|
2748
2793
|
const response = yield this.client.get(`nodes${rapiq.buildQuery(options)}`);
|
|
2749
2794
|
return response.data;
|
|
2750
2795
|
}).call(this);
|
|
2751
2796
|
}
|
|
2752
2797
|
getOne(id, options) {
|
|
2753
|
-
return
|
|
2798
|
+
return _async_to_generator$9(function*() {
|
|
2754
2799
|
const response = yield this.client.get(`nodes/${id}${rapiq.buildQuery(options)}`);
|
|
2755
2800
|
return response.data;
|
|
2756
2801
|
}).call(this);
|
|
2757
2802
|
}
|
|
2758
2803
|
create(data) {
|
|
2759
|
-
return
|
|
2804
|
+
return _async_to_generator$9(function*() {
|
|
2760
2805
|
const response = yield this.client.post('nodes', nullifyEmptyObjectProperties(data));
|
|
2761
2806
|
return response.data;
|
|
2762
2807
|
}).call(this);
|
|
2763
2808
|
}
|
|
2764
2809
|
update(id, data) {
|
|
2765
|
-
return
|
|
2810
|
+
return _async_to_generator$9(function*() {
|
|
2766
2811
|
const response = yield this.client.post(`nodes/${id}`, nullifyEmptyObjectProperties(data));
|
|
2767
2812
|
return response.data;
|
|
2768
2813
|
}).call(this);
|
|
2769
2814
|
}
|
|
2770
2815
|
delete(id) {
|
|
2771
|
-
return
|
|
2816
|
+
return _async_to_generator$9(function*() {
|
|
2772
2817
|
const response = yield this.client.delete(`nodes/${id}`);
|
|
2773
2818
|
return response.data;
|
|
2774
2819
|
}).call(this);
|
|
2775
2820
|
}
|
|
2776
2821
|
runCommand(id, task, data) {
|
|
2777
|
-
return
|
|
2822
|
+
return _async_to_generator$9(function*() {
|
|
2778
2823
|
const response = yield this.client.post(`nodes/${id}/task`, _object_spread$2({
|
|
2779
2824
|
task
|
|
2780
2825
|
}, data));
|
|
@@ -2787,7 +2832,7 @@ class NodeAPI extends BaseAPI {
|
|
|
2787
2832
|
* Author Peter Placzek (tada5hi)
|
|
2788
2833
|
* For the full copyright and license information,
|
|
2789
2834
|
* view the LICENSE file that was distributed with this source code.
|
|
2790
|
-
*/ function asyncGeneratorStep$
|
|
2835
|
+
*/ function asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2791
2836
|
try {
|
|
2792
2837
|
var info = gen[key](arg);
|
|
2793
2838
|
var value = info.value;
|
|
@@ -2801,16 +2846,16 @@ class NodeAPI extends BaseAPI {
|
|
|
2801
2846
|
Promise.resolve(value).then(_next, _throw);
|
|
2802
2847
|
}
|
|
2803
2848
|
}
|
|
2804
|
-
function _async_to_generator$
|
|
2849
|
+
function _async_to_generator$8(fn) {
|
|
2805
2850
|
return function() {
|
|
2806
2851
|
var self = this, args = arguments;
|
|
2807
2852
|
return new Promise(function(resolve, reject) {
|
|
2808
2853
|
var gen = fn.apply(self, args);
|
|
2809
2854
|
function _next(value) {
|
|
2810
|
-
asyncGeneratorStep$
|
|
2855
|
+
asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "next", value);
|
|
2811
2856
|
}
|
|
2812
2857
|
function _throw(err) {
|
|
2813
|
-
asyncGeneratorStep$
|
|
2858
|
+
asyncGeneratorStep$8(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2814
2859
|
}
|
|
2815
2860
|
_next(undefined);
|
|
2816
2861
|
});
|
|
@@ -2859,37 +2904,37 @@ class AnalysisAPI extends BaseAPI {
|
|
|
2859
2904
|
return new URL(this.getFilesDownloadPath(id), this.client.getBaseURL()).href;
|
|
2860
2905
|
}
|
|
2861
2906
|
getMany(options) {
|
|
2862
|
-
return
|
|
2907
|
+
return _async_to_generator$8(function*() {
|
|
2863
2908
|
const { data: response } = yield this.client.get(`analyses${rapiq.buildQuery(options)}`);
|
|
2864
2909
|
return response;
|
|
2865
2910
|
}).call(this);
|
|
2866
2911
|
}
|
|
2867
2912
|
getOne(id, options, requestConfig) {
|
|
2868
|
-
return
|
|
2913
|
+
return _async_to_generator$8(function*() {
|
|
2869
2914
|
const { data: response } = yield this.client.get(`analyses/${id}${rapiq.buildQuery(options)}`, requestConfig);
|
|
2870
2915
|
return response;
|
|
2871
2916
|
}).call(this);
|
|
2872
2917
|
}
|
|
2873
2918
|
delete(id) {
|
|
2874
|
-
return
|
|
2919
|
+
return _async_to_generator$8(function*() {
|
|
2875
2920
|
const { data: response } = yield this.client.delete(`analyses/${id}`);
|
|
2876
2921
|
return response;
|
|
2877
2922
|
}).call(this);
|
|
2878
2923
|
}
|
|
2879
2924
|
update(id, data) {
|
|
2880
|
-
return
|
|
2925
|
+
return _async_to_generator$8(function*() {
|
|
2881
2926
|
const { data: response } = yield this.client.post(`analyses/${id}`, nullifyEmptyObjectProperties(data));
|
|
2882
2927
|
return response;
|
|
2883
2928
|
}).call(this);
|
|
2884
2929
|
}
|
|
2885
2930
|
create(data) {
|
|
2886
|
-
return
|
|
2931
|
+
return _async_to_generator$8(function*() {
|
|
2887
2932
|
const { data: response } = yield this.client.post('analyses', nullifyEmptyObjectProperties(data));
|
|
2888
2933
|
return response;
|
|
2889
2934
|
}).call(this);
|
|
2890
2935
|
}
|
|
2891
2936
|
runCommand(_0, _1) {
|
|
2892
|
-
return
|
|
2937
|
+
return _async_to_generator$8(function*(id, command, data = {}) {
|
|
2893
2938
|
const actionData = _object_spread$1({
|
|
2894
2939
|
command
|
|
2895
2940
|
}, data);
|
|
@@ -2898,7 +2943,7 @@ class AnalysisAPI extends BaseAPI {
|
|
|
2898
2943
|
}).apply(this, arguments);
|
|
2899
2944
|
}
|
|
2900
2945
|
streamFiles(id) {
|
|
2901
|
-
return
|
|
2946
|
+
return _async_to_generator$8(function*() {
|
|
2902
2947
|
const response = yield this.client.get(this.getFilesDownloadPath(id), {
|
|
2903
2948
|
responseType: 'stream'
|
|
2904
2949
|
});
|
|
@@ -2906,7 +2951,7 @@ class AnalysisAPI extends BaseAPI {
|
|
|
2906
2951
|
}).call(this);
|
|
2907
2952
|
}
|
|
2908
2953
|
downloadResult(id) {
|
|
2909
|
-
return
|
|
2954
|
+
return _async_to_generator$8(function*() {
|
|
2910
2955
|
const response = yield this.client.get(this.getResultDownloadPath(id), {
|
|
2911
2956
|
responseType: 'stream'
|
|
2912
2957
|
});
|
|
@@ -2919,7 +2964,7 @@ class AnalysisAPI extends BaseAPI {
|
|
|
2919
2964
|
* Author Peter Placzek (tada5hi)
|
|
2920
2965
|
* For the full copyright and license information,
|
|
2921
2966
|
* view the LICENSE file that was distributed with this source code.
|
|
2922
|
-
*/ function asyncGeneratorStep$
|
|
2967
|
+
*/ function asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2923
2968
|
try {
|
|
2924
2969
|
var info = gen[key](arg);
|
|
2925
2970
|
var value = info.value;
|
|
@@ -2933,16 +2978,16 @@ class AnalysisAPI extends BaseAPI {
|
|
|
2933
2978
|
Promise.resolve(value).then(_next, _throw);
|
|
2934
2979
|
}
|
|
2935
2980
|
}
|
|
2936
|
-
function _async_to_generator$
|
|
2981
|
+
function _async_to_generator$7(fn) {
|
|
2937
2982
|
return function() {
|
|
2938
2983
|
var self = this, args = arguments;
|
|
2939
2984
|
return new Promise(function(resolve, reject) {
|
|
2940
2985
|
var gen = fn.apply(self, args);
|
|
2941
2986
|
function _next(value) {
|
|
2942
|
-
asyncGeneratorStep$
|
|
2987
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "next", value);
|
|
2943
2988
|
}
|
|
2944
2989
|
function _throw(err) {
|
|
2945
|
-
asyncGeneratorStep$
|
|
2990
|
+
asyncGeneratorStep$7(gen, resolve, reject, _next, _throw, "throw", err);
|
|
2946
2991
|
}
|
|
2947
2992
|
_next(undefined);
|
|
2948
2993
|
});
|
|
@@ -2950,31 +2995,31 @@ function _async_to_generator$6(fn) {
|
|
|
2950
2995
|
}
|
|
2951
2996
|
class AnalysisBucketFileAPI extends BaseAPI {
|
|
2952
2997
|
getMany(options) {
|
|
2953
|
-
return
|
|
2998
|
+
return _async_to_generator$7(function*() {
|
|
2954
2999
|
const response = yield this.client.get(`analysis-bucket-files${rapiq.buildQuery(options)}`);
|
|
2955
3000
|
return response.data;
|
|
2956
3001
|
}).call(this);
|
|
2957
3002
|
}
|
|
2958
3003
|
getOne(id) {
|
|
2959
|
-
return
|
|
3004
|
+
return _async_to_generator$7(function*() {
|
|
2960
3005
|
const response = yield this.client.get(`analysis-bucket-files/${id}`);
|
|
2961
3006
|
return response.data;
|
|
2962
3007
|
}).call(this);
|
|
2963
3008
|
}
|
|
2964
3009
|
delete(id) {
|
|
2965
|
-
return
|
|
3010
|
+
return _async_to_generator$7(function*() {
|
|
2966
3011
|
const response = yield this.client.delete(`analysis-bucket-files/${id}`);
|
|
2967
3012
|
return response.data;
|
|
2968
3013
|
}).call(this);
|
|
2969
3014
|
}
|
|
2970
3015
|
update(id, data) {
|
|
2971
|
-
return
|
|
3016
|
+
return _async_to_generator$7(function*() {
|
|
2972
3017
|
const { data: response } = yield this.client.post(`analysis-bucket-files/${id}`, nullifyEmptyObjectProperties(data));
|
|
2973
3018
|
return response;
|
|
2974
3019
|
}).call(this);
|
|
2975
3020
|
}
|
|
2976
3021
|
create(data) {
|
|
2977
|
-
return
|
|
3022
|
+
return _async_to_generator$7(function*() {
|
|
2978
3023
|
const { data: response } = yield this.client.post('analysis-bucket-files', nullifyEmptyObjectProperties(data));
|
|
2979
3024
|
return response;
|
|
2980
3025
|
}).call(this);
|
|
@@ -2985,7 +3030,7 @@ class AnalysisBucketFileAPI extends BaseAPI {
|
|
|
2985
3030
|
* Author Peter Placzek (tada5hi)
|
|
2986
3031
|
* For the full copyright and license information,
|
|
2987
3032
|
* view the LICENSE file that was distributed with this source code.
|
|
2988
|
-
*/ function asyncGeneratorStep$
|
|
3033
|
+
*/ function asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, key, arg) {
|
|
2989
3034
|
try {
|
|
2990
3035
|
var info = gen[key](arg);
|
|
2991
3036
|
var value = info.value;
|
|
@@ -2999,16 +3044,16 @@ class AnalysisBucketFileAPI extends BaseAPI {
|
|
|
2999
3044
|
Promise.resolve(value).then(_next, _throw);
|
|
3000
3045
|
}
|
|
3001
3046
|
}
|
|
3002
|
-
function _async_to_generator$
|
|
3047
|
+
function _async_to_generator$6(fn) {
|
|
3003
3048
|
return function() {
|
|
3004
3049
|
var self = this, args = arguments;
|
|
3005
3050
|
return new Promise(function(resolve, reject) {
|
|
3006
3051
|
var gen = fn.apply(self, args);
|
|
3007
3052
|
function _next(value) {
|
|
3008
|
-
asyncGeneratorStep$
|
|
3053
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "next", value);
|
|
3009
3054
|
}
|
|
3010
3055
|
function _throw(err) {
|
|
3011
|
-
asyncGeneratorStep$
|
|
3056
|
+
asyncGeneratorStep$6(gen, resolve, reject, _next, _throw, "throw", err);
|
|
3012
3057
|
}
|
|
3013
3058
|
_next(undefined);
|
|
3014
3059
|
});
|
|
@@ -3016,31 +3061,31 @@ function _async_to_generator$5(fn) {
|
|
|
3016
3061
|
}
|
|
3017
3062
|
class AnalysisLogAPI extends BaseAPI {
|
|
3018
3063
|
getMany(options) {
|
|
3019
|
-
return
|
|
3064
|
+
return _async_to_generator$6(function*() {
|
|
3020
3065
|
const { data: response } = yield this.client.get(`analysis-logs${rapiq.buildQuery(options)}`);
|
|
3021
3066
|
return response;
|
|
3022
3067
|
}).call(this);
|
|
3023
3068
|
}
|
|
3024
3069
|
getOne(id) {
|
|
3025
|
-
return
|
|
3070
|
+
return _async_to_generator$6(function*() {
|
|
3026
3071
|
const { data: response } = yield this.client.get(`analysis-logs/${id}`);
|
|
3027
3072
|
return response;
|
|
3028
3073
|
}).call(this);
|
|
3029
3074
|
}
|
|
3030
3075
|
delete(id) {
|
|
3031
|
-
return
|
|
3076
|
+
return _async_to_generator$6(function*() {
|
|
3032
3077
|
const { data: response } = yield this.client.delete(`analysis-logs/${id}`);
|
|
3033
3078
|
return response;
|
|
3034
3079
|
}).call(this);
|
|
3035
3080
|
}
|
|
3036
3081
|
update(id, data) {
|
|
3037
|
-
return
|
|
3082
|
+
return _async_to_generator$6(function*() {
|
|
3038
3083
|
const { data: response } = yield this.client.post(`analysis-logs/${id}`, data);
|
|
3039
3084
|
return response;
|
|
3040
3085
|
}).call(this);
|
|
3041
3086
|
}
|
|
3042
3087
|
create(data) {
|
|
3043
|
-
return
|
|
3088
|
+
return _async_to_generator$6(function*() {
|
|
3044
3089
|
const { data: response } = yield this.client.post('analysis-logs', data);
|
|
3045
3090
|
return response;
|
|
3046
3091
|
}).call(this);
|
|
@@ -3051,7 +3096,7 @@ class AnalysisLogAPI extends BaseAPI {
|
|
|
3051
3096
|
* Author Peter Placzek (tada5hi)
|
|
3052
3097
|
* For the full copyright and license information,
|
|
3053
3098
|
* view the LICENSE file that was distributed with this source code.
|
|
3054
|
-
*/ function asyncGeneratorStep$
|
|
3099
|
+
*/ function asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
3055
3100
|
try {
|
|
3056
3101
|
var info = gen[key](arg);
|
|
3057
3102
|
var value = info.value;
|
|
@@ -3065,48 +3110,48 @@ class AnalysisLogAPI extends BaseAPI {
|
|
|
3065
3110
|
Promise.resolve(value).then(_next, _throw);
|
|
3066
3111
|
}
|
|
3067
3112
|
}
|
|
3068
|
-
function _async_to_generator$
|
|
3113
|
+
function _async_to_generator$5(fn) {
|
|
3069
3114
|
return function() {
|
|
3070
3115
|
var self = this, args = arguments;
|
|
3071
3116
|
return new Promise(function(resolve, reject) {
|
|
3072
3117
|
var gen = fn.apply(self, args);
|
|
3073
3118
|
function _next(value) {
|
|
3074
|
-
asyncGeneratorStep$
|
|
3119
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "next", value);
|
|
3075
3120
|
}
|
|
3076
3121
|
function _throw(err) {
|
|
3077
|
-
asyncGeneratorStep$
|
|
3122
|
+
asyncGeneratorStep$5(gen, resolve, reject, _next, _throw, "throw", err);
|
|
3078
3123
|
}
|
|
3079
3124
|
_next(undefined);
|
|
3080
3125
|
});
|
|
3081
3126
|
};
|
|
3082
3127
|
}
|
|
3083
|
-
class
|
|
3128
|
+
class AnalysisNodeAPI extends BaseAPI {
|
|
3084
3129
|
getMany(options) {
|
|
3085
|
-
return
|
|
3130
|
+
return _async_to_generator$5(function*() {
|
|
3086
3131
|
const { data: response } = yield this.client.get(`analysis-nodes${rapiq.buildQuery(options)}`);
|
|
3087
3132
|
return response;
|
|
3088
3133
|
}).call(this);
|
|
3089
3134
|
}
|
|
3090
3135
|
getOne(id) {
|
|
3091
|
-
return
|
|
3136
|
+
return _async_to_generator$5(function*() {
|
|
3092
3137
|
const { data: response } = yield this.client.get(`analysis-nodes/${id}`);
|
|
3093
3138
|
return response;
|
|
3094
3139
|
}).call(this);
|
|
3095
3140
|
}
|
|
3096
3141
|
delete(id) {
|
|
3097
|
-
return
|
|
3142
|
+
return _async_to_generator$5(function*() {
|
|
3098
3143
|
const { data: response } = yield this.client.delete(`analysis-nodes/${id}`);
|
|
3099
3144
|
return response;
|
|
3100
3145
|
}).call(this);
|
|
3101
3146
|
}
|
|
3102
3147
|
update(id, data) {
|
|
3103
|
-
return
|
|
3148
|
+
return _async_to_generator$5(function*() {
|
|
3104
3149
|
const { data: response } = yield this.client.post(`analysis-nodes/${id}`, data);
|
|
3105
3150
|
return response;
|
|
3106
3151
|
}).call(this);
|
|
3107
3152
|
}
|
|
3108
3153
|
create(data) {
|
|
3109
|
-
return
|
|
3154
|
+
return _async_to_generator$5(function*() {
|
|
3110
3155
|
const { data: response } = yield this.client.post('analysis-nodes', data);
|
|
3111
3156
|
return response;
|
|
3112
3157
|
}).call(this);
|
|
@@ -3117,7 +3162,7 @@ class TrainStationAPI extends BaseAPI {
|
|
|
3117
3162
|
* Author Peter Placzek (tada5hi)
|
|
3118
3163
|
* For the full copyright and license information,
|
|
3119
3164
|
* view the LICENSE file that was distributed with this source code.
|
|
3120
|
-
*/ function asyncGeneratorStep$
|
|
3165
|
+
*/ function asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
3121
3166
|
try {
|
|
3122
3167
|
var info = gen[key](arg);
|
|
3123
3168
|
var value = info.value;
|
|
@@ -3131,48 +3176,83 @@ class TrainStationAPI extends BaseAPI {
|
|
|
3131
3176
|
Promise.resolve(value).then(_next, _throw);
|
|
3132
3177
|
}
|
|
3133
3178
|
}
|
|
3134
|
-
function _async_to_generator$
|
|
3179
|
+
function _async_to_generator$4(fn) {
|
|
3135
3180
|
return function() {
|
|
3136
3181
|
var self = this, args = arguments;
|
|
3137
3182
|
return new Promise(function(resolve, reject) {
|
|
3138
3183
|
var gen = fn.apply(self, args);
|
|
3139
3184
|
function _next(value) {
|
|
3140
|
-
asyncGeneratorStep$
|
|
3185
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "next", value);
|
|
3141
3186
|
}
|
|
3142
3187
|
function _throw(err) {
|
|
3143
|
-
asyncGeneratorStep$
|
|
3188
|
+
asyncGeneratorStep$4(gen, resolve, reject, _next, _throw, "throw", err);
|
|
3144
3189
|
}
|
|
3145
3190
|
_next(undefined);
|
|
3146
3191
|
});
|
|
3147
3192
|
};
|
|
3148
3193
|
}
|
|
3149
|
-
class
|
|
3194
|
+
class AnalysisNodeEventAPI extends BaseAPI {
|
|
3150
3195
|
getMany(options) {
|
|
3151
|
-
return
|
|
3152
|
-
const { data: response } = yield this.client.get(`analysis-node-
|
|
3196
|
+
return _async_to_generator$4(function*() {
|
|
3197
|
+
const { data: response } = yield this.client.get(`analysis-node-events${rapiq.buildQuery(options)}`);
|
|
3153
3198
|
return response;
|
|
3154
3199
|
}).call(this);
|
|
3155
3200
|
}
|
|
3156
3201
|
getOne(id) {
|
|
3157
|
-
return
|
|
3158
|
-
const { data: response } = yield this.client.get(`analysis-node-
|
|
3202
|
+
return _async_to_generator$4(function*() {
|
|
3203
|
+
const { data: response } = yield this.client.get(`analysis-node-events/${id}`);
|
|
3159
3204
|
return response;
|
|
3160
3205
|
}).call(this);
|
|
3161
3206
|
}
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3207
|
+
}
|
|
3208
|
+
/*
|
|
3209
|
+
* Copyright (c) 2021-2024.
|
|
3210
|
+
* Author Peter Placzek (tada5hi)
|
|
3211
|
+
* For the full copyright and license information,
|
|
3212
|
+
* view the LICENSE file that was distributed with this source code.
|
|
3213
|
+
*/ function asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, key, arg) {
|
|
3214
|
+
try {
|
|
3215
|
+
var info = gen[key](arg);
|
|
3216
|
+
var value = info.value;
|
|
3217
|
+
} catch (error) {
|
|
3218
|
+
reject(error);
|
|
3219
|
+
return;
|
|
3167
3220
|
}
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3221
|
+
if (info.done) {
|
|
3222
|
+
resolve(value);
|
|
3223
|
+
} else {
|
|
3224
|
+
Promise.resolve(value).then(_next, _throw);
|
|
3225
|
+
}
|
|
3226
|
+
}
|
|
3227
|
+
function _async_to_generator$3(fn) {
|
|
3228
|
+
return function() {
|
|
3229
|
+
var self = this, args = arguments;
|
|
3230
|
+
return new Promise(function(resolve, reject) {
|
|
3231
|
+
var gen = fn.apply(self, args);
|
|
3232
|
+
function _next(value) {
|
|
3233
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "next", value);
|
|
3234
|
+
}
|
|
3235
|
+
function _throw(err) {
|
|
3236
|
+
asyncGeneratorStep$3(gen, resolve, reject, _next, _throw, "throw", err);
|
|
3237
|
+
}
|
|
3238
|
+
_next(undefined);
|
|
3239
|
+
});
|
|
3240
|
+
};
|
|
3241
|
+
}
|
|
3242
|
+
class AnalysisNodeLogAPI extends BaseAPI {
|
|
3243
|
+
getMany() {
|
|
3244
|
+
return _async_to_generator$3(function*(options = {}) {
|
|
3245
|
+
const { data: response } = yield this.client.get(`analysis-node-logs${rapiq.buildQuery(options)}`);
|
|
3171
3246
|
return response;
|
|
3172
|
-
}).
|
|
3247
|
+
}).apply(this, arguments);
|
|
3248
|
+
}
|
|
3249
|
+
delete() {
|
|
3250
|
+
return _async_to_generator$3(function*(options = {}) {
|
|
3251
|
+
yield this.client.delete(`analysis-node-logs${rapiq.buildQuery(options)}`);
|
|
3252
|
+
}).apply(this, arguments);
|
|
3173
3253
|
}
|
|
3174
3254
|
create(data) {
|
|
3175
|
-
return
|
|
3255
|
+
return _async_to_generator$3(function*() {
|
|
3176
3256
|
const { data: response } = yield this.client.post('analysis-node-logs', data);
|
|
3177
3257
|
return response;
|
|
3178
3258
|
}).call(this);
|
|
@@ -3214,31 +3294,31 @@ function _async_to_generator$2(fn) {
|
|
|
3214
3294
|
}
|
|
3215
3295
|
class AnalysisPermissionAPI extends BaseAPI {
|
|
3216
3296
|
getMany(options) {
|
|
3217
|
-
return
|
|
3297
|
+
return _async_to_generator$2(function*() {
|
|
3218
3298
|
const { data: response } = yield this.client.get(`analysis-permissions${rapiq.buildQuery(options)}`);
|
|
3219
3299
|
return response;
|
|
3220
3300
|
}).call(this);
|
|
3221
3301
|
}
|
|
3222
3302
|
getOne(id) {
|
|
3223
|
-
return
|
|
3303
|
+
return _async_to_generator$2(function*() {
|
|
3224
3304
|
const { data: response } = yield this.client.get(`analysis-permissions/${id}`);
|
|
3225
3305
|
return response;
|
|
3226
3306
|
}).call(this);
|
|
3227
3307
|
}
|
|
3228
3308
|
delete(id) {
|
|
3229
|
-
return
|
|
3309
|
+
return _async_to_generator$2(function*() {
|
|
3230
3310
|
const { data: response } = yield this.client.delete(`analysis-permissions/${id}`);
|
|
3231
3311
|
return response;
|
|
3232
3312
|
}).call(this);
|
|
3233
3313
|
}
|
|
3234
3314
|
update(id, data) {
|
|
3235
|
-
return
|
|
3315
|
+
return _async_to_generator$2(function*() {
|
|
3236
3316
|
const { data: response } = yield this.client.post(`analysis-permissions/${id}`, data);
|
|
3237
3317
|
return response;
|
|
3238
3318
|
}).call(this);
|
|
3239
3319
|
}
|
|
3240
3320
|
create(data) {
|
|
3241
|
-
return
|
|
3321
|
+
return _async_to_generator$2(function*() {
|
|
3242
3322
|
const { data: response } = yield this.client.post('analysis-permissions', data);
|
|
3243
3323
|
return response;
|
|
3244
3324
|
}).call(this);
|
|
@@ -3308,7 +3388,7 @@ function _object_spread(target) {
|
|
|
3308
3388
|
}
|
|
3309
3389
|
class ServiceAPI extends BaseAPI {
|
|
3310
3390
|
runCommand(id, command, data) {
|
|
3311
|
-
return
|
|
3391
|
+
return _async_to_generator$1(function*() {
|
|
3312
3392
|
data = data || {};
|
|
3313
3393
|
const { data: resultData } = yield this.client.post(`services/${id}/command`, nullifyEmptyObjectProperties(_object_spread({
|
|
3314
3394
|
command
|
|
@@ -3317,7 +3397,7 @@ class ServiceAPI extends BaseAPI {
|
|
|
3317
3397
|
}).call(this);
|
|
3318
3398
|
}
|
|
3319
3399
|
runRegistryCommand(command, data) {
|
|
3320
|
-
return
|
|
3400
|
+
return _async_to_generator$1(function*() {
|
|
3321
3401
|
return this.runCommand(coreKit.ServiceID.REGISTRY, command, data);
|
|
3322
3402
|
}).call(this);
|
|
3323
3403
|
}
|
|
@@ -3358,25 +3438,25 @@ function _async_to_generator(fn) {
|
|
|
3358
3438
|
}
|
|
3359
3439
|
class AnalysisBucketAPI extends BaseAPI {
|
|
3360
3440
|
getMany(options) {
|
|
3361
|
-
return
|
|
3441
|
+
return _async_to_generator(function*() {
|
|
3362
3442
|
const response = yield this.client.get(`analysis-buckets${rapiq.buildQuery(options)}`);
|
|
3363
3443
|
return response.data;
|
|
3364
3444
|
}).call(this);
|
|
3365
3445
|
}
|
|
3366
3446
|
getOne(id) {
|
|
3367
|
-
return
|
|
3447
|
+
return _async_to_generator(function*() {
|
|
3368
3448
|
const response = yield this.client.get(`analysis-buckets/${id}`);
|
|
3369
3449
|
return response.data;
|
|
3370
3450
|
}).call(this);
|
|
3371
3451
|
}
|
|
3372
3452
|
create(data) {
|
|
3373
|
-
return
|
|
3453
|
+
return _async_to_generator(function*() {
|
|
3374
3454
|
const { data: response } = yield this.client.post('analysis-buckets', data);
|
|
3375
3455
|
return response;
|
|
3376
3456
|
}).call(this);
|
|
3377
3457
|
}
|
|
3378
3458
|
delete(id) {
|
|
3379
|
-
return
|
|
3459
|
+
return _async_to_generator(function*() {
|
|
3380
3460
|
const response = yield this.client.delete(`analysis-buckets/${id}`);
|
|
3381
3461
|
return response.data;
|
|
3382
3462
|
}).call(this);
|
|
@@ -3402,7 +3482,7 @@ class AnalysisBucketAPI extends BaseAPI {
|
|
|
3402
3482
|
}
|
|
3403
3483
|
class Client extends Client$1 {
|
|
3404
3484
|
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);
|
|
3485
|
+
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, "analysisNodeEvent", void 0), _define_property(this, "analysisNodeLog", void 0), _define_property(this, "analysisPermission", void 0), _define_property(this, "service", void 0);
|
|
3406
3486
|
this.masterImage = new MasterImageAPI({
|
|
3407
3487
|
client: this
|
|
3408
3488
|
});
|
|
@@ -3439,7 +3519,10 @@ class Client extends Client$1 {
|
|
|
3439
3519
|
this.analysisLog = new AnalysisLogAPI({
|
|
3440
3520
|
client: this
|
|
3441
3521
|
});
|
|
3442
|
-
this.analysisNode = new
|
|
3522
|
+
this.analysisNode = new AnalysisNodeAPI({
|
|
3523
|
+
client: this
|
|
3524
|
+
});
|
|
3525
|
+
this.analysisNodeEvent = new AnalysisNodeEventAPI({
|
|
3443
3526
|
client: this
|
|
3444
3527
|
});
|
|
3445
3528
|
this.analysisNodeLog = new AnalysisNodeLogAPI({
|
|
@@ -6203,7 +6286,10 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6203
6286
|
class: "fa fa-bars"
|
|
6204
6287
|
}, null, -1)
|
|
6205
6288
|
])),
|
|
6206
|
-
_: 1
|
|
6289
|
+
_: 1,
|
|
6290
|
+
__: [
|
|
6291
|
+
3
|
|
6292
|
+
]
|
|
6207
6293
|
}, 8, [
|
|
6208
6294
|
"to",
|
|
6209
6295
|
"disabled"
|
|
@@ -6756,7 +6842,10 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6756
6842
|
class: "fa fa-bars"
|
|
6757
6843
|
}, null, -1)
|
|
6758
6844
|
])),
|
|
6759
|
-
_: 1
|
|
6845
|
+
_: 1,
|
|
6846
|
+
__: [
|
|
6847
|
+
1
|
|
6848
|
+
]
|
|
6760
6849
|
}, 8, [
|
|
6761
6850
|
"to",
|
|
6762
6851
|
"disabled"
|
|
@@ -7957,11 +8046,11 @@ function toArray(value) {
|
|
|
7957
8046
|
function useTimeoutFn(cb, interval, options = {}) {
|
|
7958
8047
|
const { immediate = true, immediateCallback = false } = options;
|
|
7959
8048
|
const isPending = vue.shallowRef(false);
|
|
7960
|
-
let timer
|
|
8049
|
+
let timer;
|
|
7961
8050
|
function clear() {
|
|
7962
8051
|
if (timer) {
|
|
7963
8052
|
clearTimeout(timer);
|
|
7964
|
-
timer =
|
|
8053
|
+
timer = void 0;
|
|
7965
8054
|
}
|
|
7966
8055
|
}
|
|
7967
8056
|
function stop() {
|
|
@@ -7974,7 +8063,7 @@ function useTimeoutFn(cb, interval, options = {}) {
|
|
|
7974
8063
|
isPending.value = true;
|
|
7975
8064
|
timer = setTimeout(()=>{
|
|
7976
8065
|
isPending.value = false;
|
|
7977
|
-
timer =
|
|
8066
|
+
timer = void 0;
|
|
7978
8067
|
cb(...args);
|
|
7979
8068
|
}, vue.toValue(interval));
|
|
7980
8069
|
}
|
|
@@ -10017,14 +10106,37 @@ const FAnalysisBucketFiles = vue.defineComponent({
|
|
|
10017
10106
|
default: undefined
|
|
10018
10107
|
}
|
|
10019
10108
|
},
|
|
10020
|
-
slots: Object,
|
|
10021
10109
|
emits: defineListEvents(),
|
|
10110
|
+
slots: Object,
|
|
10022
10111
|
setup (props, setup) {
|
|
10023
10112
|
// todo: include sort
|
|
10113
|
+
const filters = vue.computed(()=>{
|
|
10114
|
+
if (props.query) {
|
|
10115
|
+
return props.query.filters;
|
|
10116
|
+
}
|
|
10117
|
+
return {};
|
|
10118
|
+
});
|
|
10119
|
+
const canHandleEventData = (item)=>{
|
|
10120
|
+
if (filters.value.bucket_id) {
|
|
10121
|
+
return item.bucket_id === filters.value.bucket_id;
|
|
10122
|
+
}
|
|
10123
|
+
if (filters.value.analysis_id) {
|
|
10124
|
+
return item.analysis_id === filters.value.analysis_id;
|
|
10125
|
+
}
|
|
10126
|
+
if (filters.value.realm_id) {
|
|
10127
|
+
return item.realm_id === filters.value.realm_id;
|
|
10128
|
+
}
|
|
10129
|
+
return true;
|
|
10130
|
+
};
|
|
10024
10131
|
const { render, setDefaults } = createList({
|
|
10025
10132
|
type: `${coreKit.DomainType.ANALYSIS_BUCKET_FILE}`,
|
|
10026
10133
|
props,
|
|
10027
|
-
setup
|
|
10134
|
+
setup,
|
|
10135
|
+
socket: {
|
|
10136
|
+
processEvent (event) {
|
|
10137
|
+
return canHandleEventData(event.data);
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10028
10140
|
});
|
|
10029
10141
|
setDefaults({
|
|
10030
10142
|
noMore: {
|
|
@@ -11427,7 +11539,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11427
11539
|
default: vue.withCtx(()=>_cache[1] || (_cache[1] = [
|
|
11428
11540
|
vue.createTextVNode(" Back ")
|
|
11429
11541
|
])),
|
|
11430
|
-
_: 2
|
|
11542
|
+
_: 2,
|
|
11543
|
+
__: [
|
|
11544
|
+
1
|
|
11545
|
+
]
|
|
11431
11546
|
}, 1032, [
|
|
11432
11547
|
"disabled",
|
|
11433
11548
|
"style",
|
|
@@ -11445,7 +11560,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11445
11560
|
default: vue.withCtx(()=>_cache[2] || (_cache[2] = [
|
|
11446
11561
|
vue.createTextVNode(" Next ")
|
|
11447
11562
|
])),
|
|
11448
|
-
_: 2
|
|
11563
|
+
_: 2,
|
|
11564
|
+
__: [
|
|
11565
|
+
2
|
|
11566
|
+
]
|
|
11449
11567
|
}, 1032, [
|
|
11450
11568
|
"disabled",
|
|
11451
11569
|
"style",
|
|
@@ -11460,7 +11578,10 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11460
11578
|
default: vue.withCtx(()=>_cache[3] || (_cache[3] = [
|
|
11461
11579
|
vue.createTextVNode(" Finish ")
|
|
11462
11580
|
])),
|
|
11463
|
-
_: 2
|
|
11581
|
+
_: 2,
|
|
11582
|
+
__: [
|
|
11583
|
+
3
|
|
11584
|
+
]
|
|
11464
11585
|
}, 1032, [
|
|
11465
11586
|
"disabled",
|
|
11466
11587
|
"style",
|
|
@@ -12278,9 +12399,6 @@ var _sfc_main$2 = vue.defineComponent({
|
|
|
12278
12399
|
const query = {
|
|
12279
12400
|
filters: {
|
|
12280
12401
|
analysis_id: entity.value.id
|
|
12281
|
-
},
|
|
12282
|
-
sort: {
|
|
12283
|
-
index: 'ASC'
|
|
12284
12402
|
}
|
|
12285
12403
|
};
|
|
12286
12404
|
const progressPercentage = vue.computed(()=>{
|
|
@@ -12665,7 +12783,10 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12665
12783
|
class: "fa fa-bars"
|
|
12666
12784
|
}, null, -1)
|
|
12667
12785
|
])),
|
|
12668
|
-
_: 1
|
|
12786
|
+
_: 1,
|
|
12787
|
+
__: [
|
|
12788
|
+
2
|
|
12789
|
+
]
|
|
12669
12790
|
}, 8, [
|
|
12670
12791
|
"to",
|
|
12671
12792
|
"disabled"
|
|
@@ -13424,7 +13545,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
13424
13545
|
class: "fa fa-bars"
|
|
13425
13546
|
}, null, -1)
|
|
13426
13547
|
])),
|
|
13427
|
-
_: 1
|
|
13548
|
+
_: 1,
|
|
13549
|
+
__: [
|
|
13550
|
+
1
|
|
13551
|
+
]
|
|
13428
13552
|
}, 8, [
|
|
13429
13553
|
"to",
|
|
13430
13554
|
"disabled"
|