@dpuse/dpuse-development 1.0.125 → 1.0.127
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/README.md +4 -4
- package/dist/{apiReference-D4xooSV0.js → apiReference-C2-jo0bP.js} +1 -1
- package/dist/{apiReference-D4xooSV0.js.map → apiReference-C2-jo0bP.js.map} +1 -1
- package/dist/dpuse-development.es.js +3 -3
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/{utilities-CjhO3pxf.js → utilities-Bqc7DQXv.js} +79 -74
- package/dist/utilities-Bqc7DQXv.js.map +1 -0
- package/package.json +7 -7
- package/dist/utilities-CjhO3pxf.js.map +0 -1
|
@@ -384,7 +384,7 @@ function E(e, t) {
|
|
|
384
384
|
var D = /* @__PURE__ */ C({
|
|
385
385
|
en: /* @__PURE__ */ w(),
|
|
386
386
|
es: /* @__PURE__ */ w()
|
|
387
|
-
}),
|
|
387
|
+
}), O = {
|
|
388
388
|
id: /* @__PURE__ */ w(),
|
|
389
389
|
label: /* @__PURE__ */ C({
|
|
390
390
|
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
@@ -396,7 +396,7 @@ var D = /* @__PURE__ */ C({
|
|
|
396
396
|
}),
|
|
397
397
|
icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
398
398
|
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
|
|
399
|
-
},
|
|
399
|
+
}, k = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), re = k([
|
|
400
400
|
"app",
|
|
401
401
|
"connector",
|
|
402
402
|
"connectorConnection",
|
|
@@ -418,33 +418,33 @@ var D = /* @__PURE__ */ C({
|
|
|
418
418
|
"presenter",
|
|
419
419
|
"presenterPresentation",
|
|
420
420
|
"tool"
|
|
421
|
-
]),
|
|
421
|
+
]), ie = k([
|
|
422
422
|
"danger",
|
|
423
423
|
"success",
|
|
424
424
|
"warning"
|
|
425
|
-
]),
|
|
425
|
+
]), ae = k([
|
|
426
426
|
"alpha",
|
|
427
427
|
"beta",
|
|
428
428
|
"releaseCandidate",
|
|
429
429
|
"generalAvailability"
|
|
430
|
-
]),
|
|
431
|
-
color:
|
|
430
|
+
]), oe = /* @__PURE__ */ C({
|
|
431
|
+
color: ie,
|
|
432
432
|
label: /* @__PURE__ */ w()
|
|
433
|
-
}),
|
|
434
|
-
...
|
|
435
|
-
typeId:
|
|
436
|
-
},
|
|
437
|
-
...
|
|
433
|
+
}), A = {
|
|
434
|
+
...O,
|
|
435
|
+
typeId: re
|
|
436
|
+
}, se = /* @__PURE__ */ C({
|
|
437
|
+
...A,
|
|
438
438
|
order: /* @__PURE__ */ b(),
|
|
439
439
|
path: /* @__PURE__ */ w()
|
|
440
|
-
}),
|
|
441
|
-
...
|
|
440
|
+
}), j = {
|
|
441
|
+
...A,
|
|
442
442
|
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
443
443
|
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
444
|
-
status: /* @__PURE__ */ y(
|
|
445
|
-
statusId: /* @__PURE__ */ y(
|
|
444
|
+
status: /* @__PURE__ */ y(oe),
|
|
445
|
+
statusId: /* @__PURE__ */ y(ae)
|
|
446
446
|
};
|
|
447
|
-
({ ...
|
|
447
|
+
({ ...j }), c({ en: "Data Positioning Events" }), c({ en: "Delimited Text" }), c({ en: "JSON" }), c({ en: "SPSS" }), c({ en: "XLSX" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), k([
|
|
448
448
|
"app",
|
|
449
449
|
"engine",
|
|
450
450
|
"connector",
|
|
@@ -452,15 +452,15 @@ var D = /* @__PURE__ */ C({
|
|
|
452
452
|
"presenter",
|
|
453
453
|
"tool"
|
|
454
454
|
]);
|
|
455
|
-
var
|
|
456
|
-
...
|
|
455
|
+
var M = {
|
|
456
|
+
...j,
|
|
457
457
|
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
458
458
|
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
459
459
|
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
460
460
|
version: /* @__PURE__ */ w()
|
|
461
461
|
};
|
|
462
|
-
({ ...
|
|
463
|
-
var
|
|
462
|
+
({ ...M });
|
|
463
|
+
var ce = k([
|
|
464
464
|
"abortOperation",
|
|
465
465
|
"auditObjectContent",
|
|
466
466
|
"createObject",
|
|
@@ -476,18 +476,22 @@ var le = O([
|
|
|
476
476
|
"retrieveChunks",
|
|
477
477
|
"retrieveRecords",
|
|
478
478
|
"upsertRecords"
|
|
479
|
-
]),
|
|
479
|
+
]), le = k([
|
|
480
480
|
"application",
|
|
481
481
|
"curatedDataset",
|
|
482
482
|
"database",
|
|
483
483
|
"fileStore"
|
|
484
|
-
]),
|
|
484
|
+
]), ue = /* @__PURE__ */ C({ label: D }), de = k([
|
|
485
|
+
"apiEndpoint",
|
|
486
|
+
"file",
|
|
487
|
+
"table"
|
|
488
|
+
]), fe = k([
|
|
485
489
|
"bidirectional",
|
|
486
490
|
"destination",
|
|
487
491
|
"source",
|
|
488
492
|
"unknown"
|
|
489
493
|
]), pe = /* @__PURE__ */ C({ label: D }), me = /* @__PURE__ */ C({
|
|
490
|
-
authMethodId:
|
|
494
|
+
authMethodId: k([
|
|
491
495
|
"apiKey",
|
|
492
496
|
"disabled",
|
|
493
497
|
"oAuth2",
|
|
@@ -500,15 +504,16 @@ var le = O([
|
|
|
500
504
|
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
501
505
|
params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
502
506
|
}), he = /* @__PURE__ */ C({
|
|
503
|
-
...
|
|
507
|
+
...M,
|
|
504
508
|
typeId: /* @__PURE__ */ v("connector"),
|
|
505
|
-
actionNames: /* @__PURE__ */ g(
|
|
506
|
-
category: /* @__PURE__ */ y(
|
|
507
|
-
categoryId:
|
|
509
|
+
actionNames: /* @__PURE__ */ g(ce),
|
|
510
|
+
category: /* @__PURE__ */ y(ue),
|
|
511
|
+
categoryId: le,
|
|
508
512
|
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), me),
|
|
513
|
+
itemTypeId: de,
|
|
509
514
|
usage: /* @__PURE__ */ y(pe),
|
|
510
515
|
usageId: /* @__PURE__ */ y(fe)
|
|
511
|
-
}),
|
|
516
|
+
}), N = {
|
|
512
517
|
abortOperation: "Abort Operation",
|
|
513
518
|
auditObjectContent: "Audit Object Content",
|
|
514
519
|
createObject: "Create Object",
|
|
@@ -524,12 +529,12 @@ var le = O([
|
|
|
524
529
|
retrieveChunks: "Retrieve Chunks",
|
|
525
530
|
retrieveRecords: "Retrieve Records",
|
|
526
531
|
upsertRecords: "Upsert Records"
|
|
527
|
-
},
|
|
532
|
+
}, P = /* @__PURE__ */ new Set([
|
|
528
533
|
"createObject",
|
|
529
534
|
"dropObject",
|
|
530
535
|
"removeRecords",
|
|
531
536
|
"upsertRecords"
|
|
532
|
-
]),
|
|
537
|
+
]), F = /* @__PURE__ */ new Set([
|
|
533
538
|
"auditObjectContent",
|
|
534
539
|
"findObject",
|
|
535
540
|
"getInfo",
|
|
@@ -540,28 +545,28 @@ var le = O([
|
|
|
540
545
|
"retrieveChunks",
|
|
541
546
|
"retrieveRecords"
|
|
542
547
|
]);
|
|
543
|
-
function
|
|
548
|
+
function I(e) {
|
|
544
549
|
let t = !1, n = !1;
|
|
545
|
-
for (let r of e)
|
|
550
|
+
for (let r of e) F.has(r) && (t = !0), P.has(r) && (n = !0);
|
|
546
551
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
547
552
|
}
|
|
548
|
-
function
|
|
553
|
+
function L(e) {
|
|
549
554
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
550
555
|
n += "|:----|:-------:|\n";
|
|
551
|
-
for (let e of Object.keys(
|
|
556
|
+
for (let e of Object.keys(N)) n += `| ${N[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
552
557
|
return n;
|
|
553
558
|
}
|
|
554
|
-
|
|
555
|
-
var
|
|
559
|
+
k(["list"]), { ...M };
|
|
560
|
+
var R = k([
|
|
556
561
|
"list",
|
|
557
562
|
"render",
|
|
558
563
|
"setColorMode"
|
|
559
|
-
]),
|
|
560
|
-
...
|
|
564
|
+
]), ge = /* @__PURE__ */ C({
|
|
565
|
+
...M,
|
|
561
566
|
typeId: /* @__PURE__ */ v("presenter"),
|
|
562
|
-
actionNames: /* @__PURE__ */ g(
|
|
563
|
-
presentations: /* @__PURE__ */ g(
|
|
564
|
-
}),
|
|
567
|
+
actionNames: /* @__PURE__ */ g(R),
|
|
568
|
+
presentations: /* @__PURE__ */ g(se)
|
|
569
|
+
}), _e = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), z = "code-health-reports/fallow", ve = `${z}/badge.json`, ye = `${z}/index.md`, B = "<!-- CONTRIBUTING_LICENSE_END -->", V = "<!-- CONTRIBUTING_LICENSE_START -->", be = "<!-- GOVERNANCE_END -->", xe = "<!-- GOVERNANCE_START -->", H = "<!-- QUALITY_SECURITY_END -->", U = "<!-- QUALITY_SECURITY_START -->", Se = "rust/Cargo.toml", Ce = [
|
|
565
570
|
{
|
|
566
571
|
idPrefix: "dpuse-app",
|
|
567
572
|
typeId: "app",
|
|
@@ -646,8 +651,8 @@ var L = O([
|
|
|
646
651
|
publishedTo: "github",
|
|
647
652
|
uploadGroupName: void 0
|
|
648
653
|
}
|
|
649
|
-
],
|
|
650
|
-
async function
|
|
654
|
+
], we = n(r);
|
|
655
|
+
async function Te(n, r) {
|
|
651
656
|
n !== void 0 && Y(`${n} - clear(${r})`);
|
|
652
657
|
let i;
|
|
653
658
|
try {
|
|
@@ -668,15 +673,15 @@ async function we(n, r) {
|
|
|
668
673
|
}
|
|
669
674
|
}));
|
|
670
675
|
}
|
|
671
|
-
async function
|
|
676
|
+
async function Ee(t, n) {
|
|
672
677
|
return e.readdir(t, n);
|
|
673
678
|
}
|
|
674
|
-
async function
|
|
679
|
+
async function De(t, n, r, i) {
|
|
675
680
|
t !== void 0 && Y(`${t} - exec(${n} ${r.join(" ")})`);
|
|
676
|
-
let { stdout: a, stderr: o } = await
|
|
681
|
+
let { stdout: a, stderr: o } = await we(n, r);
|
|
677
682
|
i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
|
|
678
683
|
}
|
|
679
|
-
async function
|
|
684
|
+
async function Oe(e, t, n, r = !1, a = !1) {
|
|
680
685
|
return Y(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
681
686
|
i(t, n, {
|
|
682
687
|
shell: a,
|
|
@@ -686,7 +691,7 @@ async function De(e, t, n, r = !1, a = !1) {
|
|
|
686
691
|
});
|
|
687
692
|
});
|
|
688
693
|
}
|
|
689
|
-
async function
|
|
694
|
+
async function ke(e, t, n) {
|
|
690
695
|
return Y(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, r) => {
|
|
691
696
|
let a = i(t, n, {
|
|
692
697
|
shell: !1,
|
|
@@ -703,7 +708,7 @@ async function Oe(e, t, n) {
|
|
|
703
708
|
});
|
|
704
709
|
});
|
|
705
710
|
}
|
|
706
|
-
async function
|
|
711
|
+
async function Ae(n, r, a, o, s = !1) {
|
|
707
712
|
return Y(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
|
|
708
713
|
let l = i(r, a, {
|
|
709
714
|
shell: !1,
|
|
@@ -726,8 +731,8 @@ async function ke(n, r, a, o, s = !1) {
|
|
|
726
731
|
});
|
|
727
732
|
});
|
|
728
733
|
}
|
|
729
|
-
async function
|
|
730
|
-
let e = await G("./README.md"), t = e.indexOf(
|
|
734
|
+
async function je() {
|
|
735
|
+
let e = await G("./README.md"), t = e.indexOf(xe), n = e.indexOf(be);
|
|
731
736
|
if (t === -1 || n === -1) return;
|
|
732
737
|
let r = `${U}\n${H}\n\n${V}\n${B}`;
|
|
733
738
|
await J("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
|
|
@@ -749,27 +754,27 @@ async function K(t) {
|
|
|
749
754
|
async function q(n, r) {
|
|
750
755
|
await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
|
|
751
756
|
}
|
|
752
|
-
async function
|
|
753
|
-
await J("README.md",
|
|
757
|
+
async function Me(e, t, n) {
|
|
758
|
+
await J("README.md", He(await G("./README.md"), e, t, n));
|
|
754
759
|
}
|
|
755
760
|
async function J(t, n) {
|
|
756
761
|
await e.writeFile(t, n, "utf-8");
|
|
757
762
|
}
|
|
758
|
-
function
|
|
763
|
+
function Ne(e) {
|
|
759
764
|
console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}[0m`);
|
|
760
765
|
}
|
|
761
|
-
function
|
|
766
|
+
function Pe(e) {
|
|
762
767
|
console.info(`✅ ${e}`);
|
|
763
768
|
}
|
|
764
769
|
function Y(e) {
|
|
765
770
|
console.info(e);
|
|
766
771
|
}
|
|
767
|
-
function
|
|
768
|
-
let t =
|
|
772
|
+
function Fe(e) {
|
|
773
|
+
let t = Ce.find((t) => e.startsWith(t.idPrefix));
|
|
769
774
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
770
775
|
return t;
|
|
771
776
|
}
|
|
772
|
-
function
|
|
777
|
+
function Ie(e, t) {
|
|
773
778
|
let n = e.repository, r = typeof n == "string" ? n : n?.url;
|
|
774
779
|
if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
|
|
775
780
|
let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
|
|
@@ -779,17 +784,17 @@ function Fe(e, t) {
|
|
|
779
784
|
repository: a[2]
|
|
780
785
|
};
|
|
781
786
|
}
|
|
782
|
-
async function
|
|
787
|
+
async function Le(t) {
|
|
783
788
|
return await e.stat(t);
|
|
784
789
|
}
|
|
785
|
-
async function
|
|
790
|
+
async function Re(e, t, n) {
|
|
786
791
|
switch (n.typeId) {
|
|
787
|
-
case "connector": return await
|
|
788
|
-
case "presenter": return await
|
|
789
|
-
default: return await
|
|
792
|
+
case "connector": return await Z(e, t);
|
|
793
|
+
case "presenter": return await Be(e, t);
|
|
794
|
+
default: return await Ve(e, t);
|
|
790
795
|
}
|
|
791
796
|
}
|
|
792
|
-
async function
|
|
797
|
+
async function ze(e, t, n = "./") {
|
|
793
798
|
if (Y(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
794
799
|
else {
|
|
795
800
|
let e = t.version, n = t.version.split(".");
|
|
@@ -797,26 +802,26 @@ async function X(e, t, n = "./") {
|
|
|
797
802
|
}
|
|
798
803
|
await q(`${n}package.json`, t);
|
|
799
804
|
}
|
|
800
|
-
async function
|
|
805
|
+
async function X(e) {
|
|
801
806
|
let { default: t } = await import("typescript"), n = t.createSourceFile("index.ts", e, t.ScriptTarget.Latest, !0), r = [], i = (e) => {
|
|
802
807
|
t.isMethodDeclaration(e) && t.isClassLike(e.parent) && t.isIdentifier(e.name) && ((e.modifiers?.some((e) => e.kind === t.SyntaxKind.PrivateKeyword) ?? !1) || r.push(e.name.text)), t.forEachChild(e, i);
|
|
803
808
|
};
|
|
804
809
|
return i(n), r;
|
|
805
810
|
}
|
|
806
|
-
async function
|
|
811
|
+
async function Z(e, t) {
|
|
807
812
|
Y(`${e} Build connector project configuration`);
|
|
808
813
|
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ s(he, n);
|
|
809
814
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
810
|
-
let a = await
|
|
811
|
-
return await Q(t, n, a,
|
|
815
|
+
let a = await X(r);
|
|
816
|
+
return await Q(t, n, a, I(a));
|
|
812
817
|
}
|
|
813
|
-
async function
|
|
818
|
+
async function Be(e, t) {
|
|
814
819
|
Y(`${e} Build presenter project configuration`);
|
|
815
|
-
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ s(
|
|
820
|
+
let [n, r] = await Promise.all([W("config.json"), G("src/index.ts")]), i = /* @__PURE__ */ s(ge, n);
|
|
816
821
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
817
|
-
return await Q(t, n, await
|
|
822
|
+
return await Q(t, n, await X(r));
|
|
818
823
|
}
|
|
819
|
-
async function
|
|
824
|
+
async function Ve(e, t) {
|
|
820
825
|
Y(`${e} Build project configuration`);
|
|
821
826
|
let n = await W("config.json");
|
|
822
827
|
return t.name != null && (n.id = t.name.replace("@dpuse/", "")), t.version != null && (n.version = t.version), n.icon ??= await K("logo.svg"), n.iconDark ??= await K("logoDark.svg"), await q("config.json", $(n)), n;
|
|
@@ -832,11 +837,11 @@ function $(e) {
|
|
|
832
837
|
], n = Object.entries(e), r = t.flatMap((e) => n.filter(([t]) => t === e)), i = n.filter(([e]) => !t.includes(e)).toSorted(([e], [t]) => e.localeCompare(t, "en", { sensitivity: "base" }));
|
|
833
838
|
return Object.fromEntries([...r, ...i]);
|
|
834
839
|
}
|
|
835
|
-
function
|
|
840
|
+
function He(e, t, n, r) {
|
|
836
841
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
837
842
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
838
843
|
let o = t.trim();
|
|
839
844
|
return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
|
|
840
845
|
}
|
|
841
846
|
//#endregion
|
|
842
|
-
export { J as A, K as C,
|
|
847
|
+
export { J as A, K as C, Ae as D, ke as E, L as M, q as O, G as S, Oe as T, Ne as _, z as a, je as b, U as c, ze as d, Te as f, Le as g, Fe as h, ve as i, I as j, Me as k, Se as l, Ee as m, V as n, ye as o, De as p, _e as r, H as s, B as t, Re as u, Pe as v, Ie as w, W as x, Y as y };
|