@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.
@@ -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
- }), re = {
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
- }, O = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), ie = O([
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
- ]), ae = O([
421
+ ]), ie = k([
422
422
  "danger",
423
423
  "success",
424
424
  "warning"
425
- ]), oe = O([
425
+ ]), ae = k([
426
426
  "alpha",
427
427
  "beta",
428
428
  "releaseCandidate",
429
429
  "generalAvailability"
430
- ]), se = /* @__PURE__ */ C({
431
- color: ae,
430
+ ]), oe = /* @__PURE__ */ C({
431
+ color: ie,
432
432
  label: /* @__PURE__ */ w()
433
- }), k = {
434
- ...re,
435
- typeId: ie
436
- }, ce = /* @__PURE__ */ C({
437
- ...k,
433
+ }), A = {
434
+ ...O,
435
+ typeId: re
436
+ }, se = /* @__PURE__ */ C({
437
+ ...A,
438
438
  order: /* @__PURE__ */ b(),
439
439
  path: /* @__PURE__ */ w()
440
- }), A = {
441
- ...k,
440
+ }), j = {
441
+ ...A,
442
442
  firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
443
443
  lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
444
- status: /* @__PURE__ */ y(se),
445
- statusId: /* @__PURE__ */ y(oe)
444
+ status: /* @__PURE__ */ y(oe),
445
+ statusId: /* @__PURE__ */ y(ae)
446
446
  };
447
- ({ ...A }), 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" }), O([
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 j = {
456
- ...A,
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
- ({ ...j });
463
- var le = O([
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
- ]), ue = O([
479
+ ]), le = k([
480
480
  "application",
481
481
  "curatedDataset",
482
482
  "database",
483
483
  "fileStore"
484
- ]), de = /* @__PURE__ */ C({ label: D }), fe = O([
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: O([
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
- ...j,
507
+ ...M,
504
508
  typeId: /* @__PURE__ */ v("connector"),
505
- actionNames: /* @__PURE__ */ g(le),
506
- category: /* @__PURE__ */ y(de),
507
- categoryId: ue,
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
- }), M = {
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
- }, N = /* @__PURE__ */ new Set([
532
+ }, P = /* @__PURE__ */ new Set([
528
533
  "createObject",
529
534
  "dropObject",
530
535
  "removeRecords",
531
536
  "upsertRecords"
532
- ]), P = /* @__PURE__ */ new Set([
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 F(e) {
548
+ function I(e) {
544
549
  let t = !1, n = !1;
545
- for (let r of e) P.has(r) && (t = !0), N.has(r) && (n = !0);
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 I(e) {
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(M)) n += `| ${M[e]} | ${t.has(e) ? "✓" : ""} |\n`;
556
+ for (let e of Object.keys(N)) n += `| ${N[e]} | ${t.has(e) ? "✓" : ""} |\n`;
552
557
  return n;
553
558
  }
554
- O(["list"]), { ...j };
555
- var L = O([
559
+ k(["list"]), { ...M };
560
+ var R = k([
556
561
  "list",
557
562
  "render",
558
563
  "setColorMode"
559
- ]), R = /* @__PURE__ */ C({
560
- ...j,
564
+ ]), ge = /* @__PURE__ */ C({
565
+ ...M,
561
566
  typeId: /* @__PURE__ */ v("presenter"),
562
- actionNames: /* @__PURE__ */ g(L),
563
- presentations: /* @__PURE__ */ g(ce)
564
- }), ge = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), z = "code-health-reports/fallow", _e = `${z}/badge.json`, ve = `${z}/index.md`, B = "<!-- CONTRIBUTING_LICENSE_END -->", V = "<!-- CONTRIBUTING_LICENSE_START -->", ye = "<!-- GOVERNANCE_END -->", be = "<!-- GOVERNANCE_START -->", H = "<!-- QUALITY_SECURITY_END -->", U = "<!-- QUALITY_SECURITY_START -->", xe = "rust/Cargo.toml", Se = [
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
- ], Ce = n(r);
650
- async function we(n, r) {
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 Te(t, n) {
676
+ async function Ee(t, n) {
672
677
  return e.readdir(t, n);
673
678
  }
674
- async function Ee(t, n, r, i) {
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 Ce(n, r);
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 De(e, t, n, r = !1, a = !1) {
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 Oe(e, t, n) {
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 ke(n, r, a, o, s = !1) {
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 Ae() {
730
- let e = await G("./README.md"), t = e.indexOf(be), n = e.indexOf(ye);
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 je(e, t, n) {
753
- await J("README.md", Ve(await G("./README.md"), e, t, n));
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 Me(e) {
763
+ function Ne(e) {
759
764
  console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}`);
760
765
  }
761
- function Ne(e) {
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 Pe(e) {
768
- let t = Se.find((t) => e.startsWith(t.idPrefix));
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 Fe(e, t) {
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 Ie(t) {
787
+ async function Le(t) {
783
788
  return await e.stat(t);
784
789
  }
785
- async function Le(e, t, n) {
790
+ async function Re(e, t, n) {
786
791
  switch (n.typeId) {
787
- case "connector": return await Re(e, t);
788
- case "presenter": return await ze(e, t);
789
- default: return await Be(e, t);
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 X(e, t, n = "./") {
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 Z(e) {
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 Re(e, t) {
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 Z(r);
811
- return await Q(t, n, a, F(a));
815
+ let a = await X(r);
816
+ return await Q(t, n, a, I(a));
812
817
  }
813
- async function ze(e, t) {
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(R, n);
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 Z(r));
822
+ return await Q(t, n, await X(r));
818
823
  }
819
- async function Be(e, t) {
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 Ve(e, t, n, r) {
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, ke as D, Oe as E, F as M, q as O, G as S, De as T, Me as _, z as a, Ae as b, U as c, X as d, we as f, Ie as g, Pe as h, _e as i, I as j, je as k, xe as l, Te as m, V as n, ve as o, Ee as p, ge as r, H as s, B as t, Le as u, Ne as v, Fe as w, W as x, Y as y };
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 };