@datapos/datapos-shared 0.3.331 → 0.3.333
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/datapos-shared.es.js +111 -112
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +8 -7
- package/dist/types/src/component/connector/index.d.ts +39 -19
- package/dist/types/src/component/context/index.d.ts +1 -1
- package/dist/types/src/component/dataView/index.d.ts +6 -6
- package/dist/types/src/component/index.d.ts +1 -1
- package/dist/types/src/composables/useCytoscapeJS.d.ts +1 -1
- package/dist/types/src/composables/useDataTable.d.ts +1 -1
- package/dist/types/src/index.d.ts +3 -4
- package/dist/types/src/locales.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
const D = "en-gb";
|
|
1
2
|
let j;
|
|
2
3
|
// @__NO_SIDE_EFFECTS__
|
|
3
4
|
function H(e) {
|
|
@@ -131,11 +132,11 @@ function B(e) {
|
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
134
|
// @__NO_SIDE_EFFECTS__
|
|
134
|
-
function
|
|
135
|
+
function w(e, r) {
|
|
135
136
|
return {
|
|
136
137
|
kind: "schema",
|
|
137
138
|
type: "literal",
|
|
138
|
-
reference:
|
|
139
|
+
reference: w,
|
|
139
140
|
expects: /* @__PURE__ */ U(e),
|
|
140
141
|
async: !1,
|
|
141
142
|
literal: e,
|
|
@@ -167,11 +168,11 @@ function y(e, r) {
|
|
|
167
168
|
};
|
|
168
169
|
}
|
|
169
170
|
// @__NO_SIDE_EFFECTS__
|
|
170
|
-
function
|
|
171
|
+
function k(e) {
|
|
171
172
|
return {
|
|
172
173
|
kind: "schema",
|
|
173
174
|
type: "number",
|
|
174
|
-
reference:
|
|
175
|
+
reference: k,
|
|
175
176
|
expects: "number",
|
|
176
177
|
async: !1,
|
|
177
178
|
message: e,
|
|
@@ -374,12 +375,12 @@ function G(e, r) {
|
|
|
374
375
|
}
|
|
375
376
|
};
|
|
376
377
|
}
|
|
377
|
-
const v = (e) => /* @__PURE__ */ G(e.map((r) => /* @__PURE__ */
|
|
378
|
+
const v = (e) => /* @__PURE__ */ G(e.map((r) => /* @__PURE__ */ w(r))), te = /* @__PURE__ */ b({
|
|
378
379
|
"en-au": /* @__PURE__ */ l(),
|
|
379
380
|
"en-gb": /* @__PURE__ */ l(),
|
|
380
381
|
"en-us": /* @__PURE__ */ l(),
|
|
381
382
|
"es-es": /* @__PURE__ */ l()
|
|
382
|
-
}),
|
|
383
|
+
}), C = /* @__PURE__ */ b({
|
|
383
384
|
"en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
384
385
|
"en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
385
386
|
"en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
@@ -426,15 +427,15 @@ const oe = /* @__PURE__ */ b({
|
|
|
426
427
|
label: /* @__PURE__ */ l()
|
|
427
428
|
}), T = {
|
|
428
429
|
id: /* @__PURE__ */ l(),
|
|
429
|
-
label:
|
|
430
|
-
description:
|
|
431
|
-
firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */
|
|
430
|
+
label: C,
|
|
431
|
+
description: C,
|
|
432
|
+
firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ k()),
|
|
432
433
|
icon: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
433
434
|
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
434
|
-
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */
|
|
435
|
+
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ k()),
|
|
435
436
|
status: /* @__PURE__ */ y(oe),
|
|
436
437
|
statusId: ne
|
|
437
|
-
},
|
|
438
|
+
}, Se = /* @__PURE__ */ b({
|
|
438
439
|
...T,
|
|
439
440
|
typeId: se
|
|
440
441
|
}), $ = {
|
|
@@ -442,16 +443,16 @@ const oe = /* @__PURE__ */ b({
|
|
|
442
443
|
version: /* @__PURE__ */ l()
|
|
443
444
|
}, P = /* @__PURE__ */ b({
|
|
444
445
|
id: /* @__PURE__ */ l(),
|
|
445
|
-
label:
|
|
446
|
-
description:
|
|
446
|
+
label: C,
|
|
447
|
+
description: C,
|
|
447
448
|
icon: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
448
449
|
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
449
|
-
order: /* @__PURE__ */
|
|
450
|
+
order: /* @__PURE__ */ k(),
|
|
450
451
|
path: /* @__PURE__ */ l()
|
|
451
452
|
}), E = (e) => {
|
|
452
453
|
const r = Object.entries(e).filter((t) => typeof t[1] == "string");
|
|
453
454
|
return new Map(r);
|
|
454
|
-
}, ie = (e, r, t =
|
|
455
|
+
}, ie = (e, r, t = D) => {
|
|
455
456
|
const n = e.get(r);
|
|
456
457
|
if (n !== void 0) return n;
|
|
457
458
|
if (t !== r)
|
|
@@ -466,14 +467,14 @@ const oe = /* @__PURE__ */ b({
|
|
|
466
467
|
{ id: "releaseCandidate", color: "green", labels: E({ "en-gb": "release-candidate" }) },
|
|
467
468
|
{ id: "unavailable", color: "other", labels: E({ "en-gb": "unavailable" }) },
|
|
468
469
|
{ id: "underReview", color: "other", labels: E({ "en-gb": "under-review" }) }
|
|
469
|
-
], ke = (e, r =
|
|
470
|
+
], ke = (e, r = D) => {
|
|
470
471
|
const t = ae.find((n) => n.id === e);
|
|
471
472
|
if (t) {
|
|
472
473
|
const n = ie(t.labels, r);
|
|
473
474
|
return { id: t.id, color: t.color, label: n ?? t.id };
|
|
474
475
|
}
|
|
475
476
|
return { id: e, color: "other", label: e };
|
|
476
|
-
}, le = v(["application", "curatedDataset", "database", "fileStore"]),
|
|
477
|
+
}, le = v(["apiKey", "disabled", "oAuth2", "none"]), ce = v(["application", "curatedDataset", "database", "fileStore"]), ue = v([
|
|
477
478
|
"abortOperation",
|
|
478
479
|
"authenticateConnection",
|
|
479
480
|
"createObject",
|
|
@@ -485,45 +486,43 @@ const oe = /* @__PURE__ */ b({
|
|
|
485
486
|
"listNodes",
|
|
486
487
|
"previewObject",
|
|
487
488
|
"removeRecords",
|
|
489
|
+
"retrieveChunks",
|
|
488
490
|
"retrieveRecords",
|
|
489
491
|
"upsertRecords"
|
|
490
|
-
]),
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}), fe = /* @__PURE__ */ b({
|
|
494
|
-
authMethodId: pe,
|
|
495
|
-
activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ D()),
|
|
492
|
+
]), pe = v(["bidirectional", "destination", "source", "unknown"]), de = /* @__PURE__ */ b({
|
|
493
|
+
authMethodId: le,
|
|
494
|
+
activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ k()),
|
|
496
495
|
canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ B()),
|
|
497
496
|
id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
498
497
|
label: /* @__PURE__ */ f(te),
|
|
499
|
-
maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */
|
|
498
|
+
maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ k()),
|
|
500
499
|
params: /* @__PURE__ */ f(/* @__PURE__ */ x(/* @__PURE__ */ R(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
|
|
501
|
-
}),
|
|
500
|
+
}), De = /* @__PURE__ */ b({
|
|
502
501
|
...$,
|
|
503
|
-
typeId: /* @__PURE__ */
|
|
504
|
-
category: /* @__PURE__ */ y(
|
|
505
|
-
categoryId:
|
|
506
|
-
implementations: /* @__PURE__ */ R(/* @__PURE__ */ l(),
|
|
507
|
-
operations: /* @__PURE__ */ x(
|
|
508
|
-
usageId:
|
|
502
|
+
typeId: /* @__PURE__ */ w("connector"),
|
|
503
|
+
category: /* @__PURE__ */ y(/* @__PURE__ */ b({ id: /* @__PURE__ */ l(), label: /* @__PURE__ */ l() })),
|
|
504
|
+
categoryId: ce,
|
|
505
|
+
implementations: /* @__PURE__ */ R(/* @__PURE__ */ l(), de),
|
|
506
|
+
operations: /* @__PURE__ */ x(ue),
|
|
507
|
+
usageId: pe,
|
|
509
508
|
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
510
509
|
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ l()),
|
|
511
510
|
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ l())
|
|
512
|
-
}),
|
|
511
|
+
}), we = ["createObject", "dropObject", "removeRecords", "upsertRecords"], Ie = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], O = (e) => {
|
|
513
512
|
const r = Object.entries(e).filter((t) => typeof t[1] == "string");
|
|
514
513
|
return new Map(r);
|
|
515
514
|
};
|
|
516
|
-
|
|
517
|
-
const
|
|
515
|
+
O({ "en-gb": "Application" }), O({ "en-gb": "Curated Dataset" }), O({ "en-gb": "Database" }), O({ "en-gb": "File Store" });
|
|
516
|
+
const fe = v(["list"]), me = /* @__PURE__ */ b({
|
|
518
517
|
...T,
|
|
519
|
-
typeId: /* @__PURE__ */
|
|
518
|
+
typeId: /* @__PURE__ */ w("contextModelGroup"),
|
|
520
519
|
modelRefs: /* @__PURE__ */ x(P),
|
|
521
|
-
order: /* @__PURE__ */
|
|
520
|
+
order: /* @__PURE__ */ k()
|
|
522
521
|
}), Oe = /* @__PURE__ */ b({
|
|
523
522
|
...$,
|
|
524
|
-
typeId: /* @__PURE__ */
|
|
525
|
-
models: /* @__PURE__ */ x(
|
|
526
|
-
operations: /* @__PURE__ */ x(
|
|
523
|
+
typeId: /* @__PURE__ */ w("context"),
|
|
524
|
+
models: /* @__PURE__ */ x(me),
|
|
525
|
+
operations: /* @__PURE__ */ x(fe)
|
|
527
526
|
});
|
|
528
527
|
class F extends Error {
|
|
529
528
|
locator;
|
|
@@ -531,57 +530,57 @@ class F extends Error {
|
|
|
531
530
|
super(r, n), this.name = "DataPosError", this.locator = t;
|
|
532
531
|
}
|
|
533
532
|
}
|
|
534
|
-
class
|
|
533
|
+
class I extends F {
|
|
535
534
|
constructor(r, t, n) {
|
|
536
535
|
super(r, t, n), this.name = "ApplicationError";
|
|
537
536
|
}
|
|
538
537
|
}
|
|
539
|
-
class Ce extends
|
|
538
|
+
class Ce extends I {
|
|
540
539
|
constructor(r, t, n) {
|
|
541
540
|
super(r, t, n), this.name = "APIError";
|
|
542
541
|
}
|
|
543
542
|
}
|
|
544
|
-
class
|
|
543
|
+
class Me extends I {
|
|
545
544
|
constructor(r, t, n) {
|
|
546
545
|
super(r, t, n), this.name = "EngineError";
|
|
547
546
|
}
|
|
548
547
|
}
|
|
549
|
-
class z extends
|
|
548
|
+
class z extends I {
|
|
550
549
|
body;
|
|
551
550
|
constructor(r, t, n, s) {
|
|
552
551
|
super(r, t, s), this.name = "FetchError", this.body = n;
|
|
553
552
|
}
|
|
554
553
|
}
|
|
555
|
-
class
|
|
554
|
+
class be extends I {
|
|
556
555
|
componentName;
|
|
557
556
|
info;
|
|
558
557
|
constructor(r, t, n, s, o) {
|
|
559
558
|
super(r, t, o), this.name = "VueHandledError", this.info = n, this.componentName = s;
|
|
560
559
|
}
|
|
561
560
|
}
|
|
562
|
-
class
|
|
561
|
+
class Ne extends I {
|
|
563
562
|
constructor(r, t, n) {
|
|
564
563
|
super(r, t, n), this.name = "WindowHandledRuntimeError";
|
|
565
564
|
}
|
|
566
565
|
}
|
|
567
|
-
class
|
|
566
|
+
class je extends I {
|
|
568
567
|
constructor(r, t, n) {
|
|
569
568
|
super(r, t, n), this.name = "WindowHandledPromiseRejectionError";
|
|
570
569
|
}
|
|
571
570
|
}
|
|
572
|
-
class
|
|
571
|
+
class Ae extends F {
|
|
573
572
|
constructor(r, t, n) {
|
|
574
573
|
super(r, t, n), this.name = "OperationalError";
|
|
575
574
|
}
|
|
576
575
|
}
|
|
577
|
-
async function
|
|
576
|
+
async function Re(e, r, t) {
|
|
578
577
|
const n = ` - ${e.statusText}`, s = `${r} Response status '${e.status}${e.statusText ? n : ""}' received.`, o = await e.text();
|
|
579
578
|
return new z(s, t, o);
|
|
580
579
|
}
|
|
581
|
-
function
|
|
580
|
+
function Te(e) {
|
|
582
581
|
return e.map((r) => r.message).join(" ");
|
|
583
582
|
}
|
|
584
|
-
function
|
|
583
|
+
function $e(e) {
|
|
585
584
|
if (e instanceof Error) return e;
|
|
586
585
|
if (typeof e == "string") return new Error(e);
|
|
587
586
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return new Error(String(e));
|
|
@@ -594,7 +593,7 @@ function Fe(e) {
|
|
|
594
593
|
}
|
|
595
594
|
return new Error("Unknown error");
|
|
596
595
|
}
|
|
597
|
-
function
|
|
596
|
+
function Fe(e) {
|
|
598
597
|
const r = /* @__PURE__ */ new Set(), t = [];
|
|
599
598
|
let n = e;
|
|
600
599
|
for (; n && !r.has(n); ) {
|
|
@@ -602,7 +601,7 @@ function Le(e) {
|
|
|
602
601
|
let s;
|
|
603
602
|
if (n instanceof z)
|
|
604
603
|
s = { body: n.body, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
605
|
-
else if (n instanceof
|
|
604
|
+
else if (n instanceof be)
|
|
606
605
|
s = { componentName: n.componentName, info: n.info, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
607
606
|
else if (n instanceof F)
|
|
608
607
|
s = { locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
@@ -615,26 +614,26 @@ function Le(e) {
|
|
|
615
614
|
}
|
|
616
615
|
return t;
|
|
617
616
|
}
|
|
618
|
-
const
|
|
617
|
+
const ye = v(["list", "render", "setColorMode"]), Le = /* @__PURE__ */ b({
|
|
619
618
|
...$,
|
|
620
|
-
typeId: /* @__PURE__ */
|
|
619
|
+
typeId: /* @__PURE__ */ w("presenter"),
|
|
621
620
|
presentations: /* @__PURE__ */ x(P),
|
|
622
|
-
operations: /* @__PURE__ */ x(
|
|
621
|
+
operations: /* @__PURE__ */ x(ye)
|
|
623
622
|
});
|
|
624
|
-
function
|
|
625
|
-
return { render:
|
|
623
|
+
function _e() {
|
|
624
|
+
return { render: ge };
|
|
626
625
|
}
|
|
627
|
-
function
|
|
626
|
+
function ge(e, r, t) {
|
|
628
627
|
t.textContent = "Cytoscape.js diagram goes here...";
|
|
629
628
|
}
|
|
630
|
-
function
|
|
631
|
-
return { render:
|
|
629
|
+
function Ue() {
|
|
630
|
+
return { render: he };
|
|
632
631
|
}
|
|
633
|
-
function
|
|
632
|
+
function he(e, r) {
|
|
634
633
|
console.log(1111, e), console.log(2222, r), console.log(3333, r.childNodes), console.log(4444, r.children);
|
|
635
634
|
}
|
|
636
|
-
const V = "en-US",
|
|
637
|
-
function
|
|
635
|
+
const V = "en-US", M = /* @__PURE__ */ new Map();
|
|
636
|
+
function Be(e) {
|
|
638
637
|
switch (e) {
|
|
639
638
|
case "Edm.Binary":
|
|
640
639
|
return "unknown";
|
|
@@ -674,13 +673,13 @@ function Ge(e) {
|
|
|
674
673
|
return "unknown";
|
|
675
674
|
}
|
|
676
675
|
}
|
|
677
|
-
function
|
|
676
|
+
function Ge(e) {
|
|
678
677
|
if (e) {
|
|
679
678
|
const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r === -1 ? e.length : r);
|
|
680
679
|
return t === -1 ? e : e.slice(0, Math.max(0, t));
|
|
681
680
|
}
|
|
682
681
|
}
|
|
683
|
-
function
|
|
682
|
+
function Pe(e) {
|
|
684
683
|
if (e) {
|
|
685
684
|
const r = e.lastIndexOf(".");
|
|
686
685
|
if (r !== -1) return e.slice(Math.max(0, r + 1));
|
|
@@ -689,7 +688,7 @@ function ze(e) {
|
|
|
689
688
|
function m(e, r = 2, t = r, n = V) {
|
|
690
689
|
if (e == null) return "";
|
|
691
690
|
const s = `${n}decimal${r}.${t}`;
|
|
692
|
-
let o =
|
|
691
|
+
let o = M.get(s);
|
|
693
692
|
return o || (o = new Intl.NumberFormat(n, {
|
|
694
693
|
localeMatcher: "best fit",
|
|
695
694
|
maximumFractionDigits: r,
|
|
@@ -697,21 +696,21 @@ function m(e, r = 2, t = r, n = V) {
|
|
|
697
696
|
minimumIntegerDigits: 1,
|
|
698
697
|
style: "decimal",
|
|
699
698
|
useGrouping: !0
|
|
700
|
-
}),
|
|
699
|
+
}), M.set(s, o)), o.format(e);
|
|
701
700
|
}
|
|
702
|
-
function
|
|
701
|
+
function ze(e) {
|
|
703
702
|
return e == null ? "" : e < 1e3 ? N(e) : e < 1e6 ? `${m(e / 1e3, 2, 0)}K` : e < 1e9 ? `${m(e / 1e6, 2, 0)}M` : e < 1e12 ? `${m(e / 1e9, 2, 0)}B` : `${m(e / 1e12, 2, 0)}T`;
|
|
704
703
|
}
|
|
705
|
-
function
|
|
704
|
+
function Ve(e) {
|
|
706
705
|
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${N(e)} bytes` : e < 1048576 ? `${m(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${m(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${m(e / 1073741824, 2, 0)} GB` : `${m(e / 1099511627776, 2, 0)} TB`;
|
|
707
706
|
}
|
|
708
|
-
function
|
|
707
|
+
function He(e) {
|
|
709
708
|
return e == null ? "" : e < 1e3 ? `${N(e)} ms` : e === 1e3 ? `${N(e)} sec` : e < 6e4 ? `${m(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${m(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${m(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${m(e / 864e5, 2, 0)} days`;
|
|
710
709
|
}
|
|
711
710
|
function N(e, r = V) {
|
|
712
711
|
if (e == null) return "";
|
|
713
712
|
const t = `${r}decimal0.0`;
|
|
714
|
-
let n =
|
|
713
|
+
let n = M.get(t);
|
|
715
714
|
return n || (n = new Intl.NumberFormat(r, {
|
|
716
715
|
localeMatcher: "best fit",
|
|
717
716
|
maximumFractionDigits: 0,
|
|
@@ -719,9 +718,9 @@ function N(e, r = V) {
|
|
|
719
718
|
minimumIntegerDigits: 1,
|
|
720
719
|
style: "decimal",
|
|
721
720
|
useGrouping: !0
|
|
722
|
-
}),
|
|
721
|
+
}), M.set(t, n)), n.format(e);
|
|
723
722
|
}
|
|
724
|
-
function
|
|
723
|
+
function Ke(e) {
|
|
725
724
|
switch (e) {
|
|
726
725
|
case "csv":
|
|
727
726
|
return "text/csv";
|
|
@@ -736,12 +735,12 @@ function We(e) {
|
|
|
736
735
|
return "application/octet-stream";
|
|
737
736
|
}
|
|
738
737
|
}
|
|
739
|
-
const c = (e) => new Map(Object.entries(e)), L = (e, r, t =
|
|
738
|
+
const c = (e) => new Map(Object.entries(e)), L = (e, r, t = D) => {
|
|
740
739
|
const n = e.get(r);
|
|
741
740
|
if (n !== void 0) return n;
|
|
742
741
|
if (t !== r)
|
|
743
742
|
return e.get(t);
|
|
744
|
-
},
|
|
743
|
+
}, ve = [
|
|
745
744
|
{ id: "dtv", labels: c({ "en-gb": "Delimited Text" }) },
|
|
746
745
|
{ id: "e/e", labels: c({ "en-gb": "Entity/Event" }) },
|
|
747
746
|
{ id: "jsonArray", labels: c({ "en-gb": "JSON Array" }) },
|
|
@@ -749,27 +748,27 @@ const c = (e) => new Map(Object.entries(e)), L = (e, r, t = I) => {
|
|
|
749
748
|
{ id: "xls", labels: c({ "en-gb": "XLS" }) },
|
|
750
749
|
{ id: "xlsx", labels: c({ "en-gb": "XLSX" }) },
|
|
751
750
|
{ id: "xml", labels: c({ "en-gb": "XML" }) }
|
|
752
|
-
],
|
|
751
|
+
], We = (e = D) => {
|
|
753
752
|
const r = [];
|
|
754
|
-
for (const t of
|
|
753
|
+
for (const t of ve) {
|
|
755
754
|
const n = L(t.labels, e);
|
|
756
755
|
r.push({ id: t.id, label: n ?? t.id });
|
|
757
756
|
}
|
|
758
757
|
return r;
|
|
759
|
-
},
|
|
758
|
+
}, Ee = [
|
|
760
759
|
{ id: `
|
|
761
760
|
`, labels: c({ "en-gb": "Newline" }) },
|
|
762
761
|
{ id: "\r", labels: c({ "en-gb": "Carriage Return" }) },
|
|
763
762
|
{ id: `\r
|
|
764
763
|
`, labels: c({ "en-gb": "Carriage Return/Newline" }) }
|
|
765
|
-
],
|
|
764
|
+
], Xe = (e = D) => {
|
|
766
765
|
const r = [];
|
|
767
|
-
for (const t of
|
|
766
|
+
for (const t of Ee) {
|
|
768
767
|
const n = L(t.labels, e);
|
|
769
768
|
r.push({ id: t.id, label: n ?? t.id });
|
|
770
769
|
}
|
|
771
770
|
return r;
|
|
772
|
-
},
|
|
771
|
+
}, xe = [
|
|
773
772
|
{ id: ":", labels: c({ "en-gb": "Colon" }) },
|
|
774
773
|
{ id: ",", labels: c({ "en-gb": "Comma" }) },
|
|
775
774
|
{ id: "!", labels: c({ "en-gb": "Exclamation Mark" }) },
|
|
@@ -781,47 +780,47 @@ const c = (e) => new Map(Object.entries(e)), L = (e, r, t = I) => {
|
|
|
781
780
|
{ id: "_", labels: c({ "en-gb": "Underscore" }) },
|
|
782
781
|
{ id: "0x1F", labels: c({ "en-gb": "Unit Separator" }) },
|
|
783
782
|
{ id: "|", labels: c({ "en-gb": "Vertical Bar" }) }
|
|
784
|
-
],
|
|
783
|
+
], Je = (e = D) => {
|
|
785
784
|
const r = [];
|
|
786
|
-
for (const t of
|
|
785
|
+
for (const t of xe) {
|
|
787
786
|
const n = L(t.labels, e);
|
|
788
787
|
r.push({ id: t.id, label: n ?? t.id });
|
|
789
788
|
}
|
|
790
789
|
return r;
|
|
791
|
-
}
|
|
790
|
+
};
|
|
792
791
|
export {
|
|
793
792
|
Ce as APIError,
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
793
|
+
I as ApplicationError,
|
|
794
|
+
we as CONNECTOR_DESTINATION_OPERATIONS,
|
|
795
|
+
Ie as CONNECTOR_SOURCE_OPERATIONS,
|
|
796
|
+
D as DEFAULT_LOCALE_CODE,
|
|
797
|
+
Me as EngineError,
|
|
799
798
|
z as FetchError,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
799
|
+
Ae as OperationalError,
|
|
800
|
+
be as VueError,
|
|
801
|
+
je as WindowPromiseRejectionError,
|
|
802
|
+
Ne as WindowRuntimeError,
|
|
803
|
+
Re as buildFetchError,
|
|
804
|
+
Se as componentConfigSchema,
|
|
805
|
+
Te as concatenateSerialisedErrorMessages,
|
|
806
|
+
De as connectorConfigSchema,
|
|
808
807
|
Oe as contextConfigSchema,
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
808
|
+
Be as convertODataTypeIdToUsageTypeId,
|
|
809
|
+
Pe as extractExtensionFromPath,
|
|
810
|
+
Ge as extractNameFromPath,
|
|
812
811
|
m as formatNumberAsDecimalNumber,
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
812
|
+
He as formatNumberAsDuration,
|
|
813
|
+
ze as formatNumberAsSize,
|
|
814
|
+
Ve as formatNumberAsStorageSize,
|
|
816
815
|
N as formatNumberAsWholeNumber,
|
|
817
816
|
ke as getComponentStatus,
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
817
|
+
We as getDataFormats,
|
|
818
|
+
Xe as getRecordDelimiters,
|
|
819
|
+
Je as getValueDelimiters,
|
|
820
|
+
Ke as lookupMimeTypeForExtension,
|
|
821
|
+
$e as normalizeToError,
|
|
822
|
+
Le as presenterConfigSchema,
|
|
823
|
+
Fe as serialiseError,
|
|
824
|
+
_e as useCytoscapeJS,
|
|
825
|
+
Ue as useDataTable
|
|
827
826
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Connector schema (drafted by Copilot).
|
|
3
3
|
*/
|
|
4
|
-
/**
|
|
5
|
-
export declare const
|
|
6
|
-
/**
|
|
7
|
-
export declare const
|
|
4
|
+
/** Schema Literal Unions - Connector category identifier. */
|
|
5
|
+
export declare const connectorCategoryIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"application", undefined>, import('valibot').LiteralSchema<"curatedDataset", undefined>, import('valibot').LiteralSchema<"database", undefined>, import('valibot').LiteralSchema<"fileStore", undefined>], undefined>;
|
|
6
|
+
/** Schema Literal Unions - Connector operation name. */
|
|
7
|
+
export declare const connectorOperationNameSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>;
|
|
8
|
+
/** Schema Literal Unions - Connector usage identifier. */
|
|
8
9
|
export declare const connectorUsageIdSchema: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
9
|
-
/**
|
|
10
|
+
/** Schema Objects - Connector implementation. */
|
|
10
11
|
export declare const connectorImplementationSchema: import('valibot').ObjectSchema<{
|
|
11
12
|
readonly authMethodId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"apiKey", undefined>, import('valibot').LiteralSchema<"disabled", undefined>, import('valibot').LiteralSchema<"oAuth2", undefined>, import('valibot').LiteralSchema<"none", undefined>], undefined>;
|
|
12
13
|
readonly activeConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
@@ -21,7 +22,7 @@ export declare const connectorImplementationSchema: import('valibot').ObjectSche
|
|
|
21
22
|
readonly maxConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
22
23
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
23
24
|
}, undefined>;
|
|
24
|
-
/**
|
|
25
|
+
/** Schema Objects - Connector configuration. */
|
|
25
26
|
export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
26
27
|
readonly typeId: import('valibot').LiteralSchema<"connector", undefined>;
|
|
27
28
|
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
@@ -43,7 +44,7 @@ export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
43
44
|
readonly maxConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
44
45
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
45
46
|
}, undefined>, undefined>;
|
|
46
|
-
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>, undefined>;
|
|
47
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"abortOperation", undefined>, import('valibot').LiteralSchema<"authenticateConnection", undefined>, import('valibot').LiteralSchema<"createObject", undefined>, import('valibot').LiteralSchema<"describeConnection", undefined>, import('valibot').LiteralSchema<"dropObject", undefined>, import('valibot').LiteralSchema<"findObject", undefined>, import('valibot').LiteralSchema<"getReadableStream", undefined>, import('valibot').LiteralSchema<"getRecord", undefined>, import('valibot').LiteralSchema<"listNodes", undefined>, import('valibot').LiteralSchema<"previewObject", undefined>, import('valibot').LiteralSchema<"removeRecords", undefined>, import('valibot').LiteralSchema<"retrieveChunks", undefined>, import('valibot').LiteralSchema<"retrieveRecords", undefined>, import('valibot').LiteralSchema<"upsertRecords", undefined>], undefined>, undefined>;
|
|
47
48
|
readonly usageId: import('valibot').UnionSchema<readonly [import('valibot').LiteralSchema<"bidirectional", undefined>, import('valibot').LiteralSchema<"destination", undefined>, import('valibot').LiteralSchema<"source", undefined>, import('valibot').LiteralSchema<"unknown", undefined>], undefined>;
|
|
48
49
|
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
49
50
|
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -5,15 +5,23 @@ import { nanoid } from 'nanoid';
|
|
|
5
5
|
import { Component } from '..';
|
|
6
6
|
import { buildFetchError, OperationalError } from '../../errors';
|
|
7
7
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
8
|
-
import { connectorConfigSchema, connectorImplementationSchema,
|
|
8
|
+
import { connectorCategoryIdSchema, connectorConfigSchema, connectorImplementationSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
9
9
|
import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
|
|
10
10
|
import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '../../utilities';
|
|
11
|
-
|
|
12
|
-
export type
|
|
11
|
+
/** Interfaces/Types - Connector category identifier. */
|
|
12
|
+
export type ConnectorCategoryId = InferOutput<typeof connectorCategoryIdSchema>;
|
|
13
|
+
/** Interfaces/Types - Connector operation name. */
|
|
14
|
+
export type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
|
|
15
|
+
/** Interfaces/Types - Connector usage identifier. */
|
|
13
16
|
export type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
|
|
14
|
-
/**
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
+
/** Interfaces/Types - Connector implementation. */
|
|
18
|
+
export type ConnectorImplementation = InferOutput<typeof connectorImplementationSchema>;
|
|
19
|
+
/** Interfaces/Types - Connector configuration. */
|
|
20
|
+
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
21
|
+
export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
|
|
22
|
+
label: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
17
25
|
/** Interfaces/Types - Connector. */
|
|
18
26
|
export interface Connector extends Component {
|
|
19
27
|
abortController?: AbortController;
|
|
@@ -26,20 +34,15 @@ export interface Connector extends Component {
|
|
|
26
34
|
describeConnection?(connector: Connector, settings: DescribeSettings): Promise<DescribeResult>;
|
|
27
35
|
dropObject?(connector: Connector, settings: DropSettings): Promise<void>;
|
|
28
36
|
findObject?(connector: Connector, findSettings: FindSettings): Promise<FindResult>;
|
|
29
|
-
getReadableStream?(connector: Connector, getSettings:
|
|
37
|
+
getReadableStream?(connector: Connector, getSettings: GetReadableStreamSettings): Promise<GetReadableStreamResult>;
|
|
30
38
|
getRecord?(connector: Connector, getSettings: GetRecordSettings): Promise<GetRecordResult>;
|
|
31
39
|
listNodes?(connector: Connector, settings: ListSettings): Promise<ListResult>;
|
|
32
40
|
previewObject?(connector: Connector, settings: PreviewSettings): Promise<PreviewResult>;
|
|
33
41
|
removeRecords?(connector: Connector, settings: RemoveSettings): Promise<void>;
|
|
34
|
-
|
|
42
|
+
retrieveChunks?(connector: Connector, settings: RetrieveChunksSettings, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveChunksSummary) => void): Promise<void>;
|
|
43
|
+
retrieveRecords?(connector: Connector, settings: RetrieveRecordsSettings, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveRecordsSummary) => void): Promise<void>;
|
|
35
44
|
upsertRecords?(connector: Connector, settings: UpsertSettings): Promise<void>;
|
|
36
45
|
}
|
|
37
|
-
export type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
38
|
-
export type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
|
|
39
|
-
label: string;
|
|
40
|
-
description: string;
|
|
41
|
-
};
|
|
42
|
-
export type ConnectorImplementation = InferOutput<typeof connectorImplementationSchema>;
|
|
43
46
|
export interface ConnectorTools {
|
|
44
47
|
csvParse: typeof csvParse;
|
|
45
48
|
dataPos: {
|
|
@@ -54,6 +57,9 @@ export interface ConnectorTools {
|
|
|
54
57
|
};
|
|
55
58
|
nanoid: typeof nanoid;
|
|
56
59
|
}
|
|
60
|
+
/** Constants */
|
|
61
|
+
export declare const CONNECTOR_DESTINATION_OPERATIONS: string[];
|
|
62
|
+
export declare const CONNECTOR_SOURCE_OPERATIONS: string[];
|
|
57
63
|
export interface InitialiseSettings {
|
|
58
64
|
connectorStorageURLPrefix: string;
|
|
59
65
|
}
|
|
@@ -90,11 +96,11 @@ export interface FindSettings extends ConnectorOperationSettings {
|
|
|
90
96
|
export interface FindResult {
|
|
91
97
|
folderPath?: string;
|
|
92
98
|
}
|
|
93
|
-
export interface
|
|
99
|
+
export interface GetReadableStreamSettings extends ConnectorOperationSettings {
|
|
94
100
|
id: string;
|
|
95
101
|
path: string;
|
|
96
102
|
}
|
|
97
|
-
export interface
|
|
103
|
+
export interface GetReadableStreamResult {
|
|
98
104
|
readable?: ReadableStream<unknown>;
|
|
99
105
|
}
|
|
100
106
|
export interface GetRecordSettings extends ConnectorOperationSettings {
|
|
@@ -129,16 +135,30 @@ export interface RemoveSettings extends ConnectorOperationSettings {
|
|
|
129
135
|
keys: string[];
|
|
130
136
|
path: string;
|
|
131
137
|
}
|
|
132
|
-
export interface
|
|
138
|
+
export interface RetrieveChunksSettings extends ConnectorOperationSettings {
|
|
139
|
+
chunkSize?: number;
|
|
140
|
+
encodingId: string;
|
|
141
|
+
path: string;
|
|
142
|
+
valueDelimiterId: ValueDelimiterId;
|
|
143
|
+
}
|
|
144
|
+
export interface RetrieveRecordsSettings extends ConnectorOperationSettings {
|
|
133
145
|
chunkSize?: number;
|
|
134
146
|
encodingId: string;
|
|
135
147
|
path: string;
|
|
136
148
|
valueDelimiterId: ValueDelimiterId;
|
|
137
149
|
}
|
|
138
|
-
export interface
|
|
150
|
+
export interface RetrieveRecordsResult {
|
|
139
151
|
records: (string[] | Record<string, unknown>)[];
|
|
140
152
|
}
|
|
141
|
-
export interface
|
|
153
|
+
export interface RetrieveChunksSummary {
|
|
154
|
+
byteCount: number;
|
|
155
|
+
commentLineCount: number;
|
|
156
|
+
emptyLineCount: number;
|
|
157
|
+
invalidFieldLengthCount: number;
|
|
158
|
+
lineCount: number;
|
|
159
|
+
recordCount: number;
|
|
160
|
+
}
|
|
161
|
+
export interface RetrieveRecordsSummary {
|
|
142
162
|
byteCount: number;
|
|
143
163
|
commentLineCount: number;
|
|
144
164
|
emptyLineCount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { contextConfigSchema } from './contextConfig.schema';
|
|
3
|
-
import { LocalisedString } from '../../
|
|
3
|
+
import { LocalisedString } from '../../locales';
|
|
4
4
|
import { Component, ComponentConfig, ComponentReference, ModuleConfig } from '..';
|
|
5
5
|
export interface Context extends Component {
|
|
6
6
|
readonly config: ContextConfig;
|
|
@@ -54,20 +54,20 @@ interface DataFormat {
|
|
|
54
54
|
id: string;
|
|
55
55
|
label: string;
|
|
56
56
|
}
|
|
57
|
-
export declare const getDataFormat: (id: string, localeId?: import('../../
|
|
58
|
-
export declare const getDataFormats: (localeId?: import('../../
|
|
57
|
+
export declare const getDataFormat: (id: string, localeId?: import('../../locales').LocaleCode) => DataFormat;
|
|
58
|
+
export declare const getDataFormats: (localeId?: import('../../locales').LocaleCode) => DataFormat[];
|
|
59
59
|
interface RecordDelimiter {
|
|
60
60
|
id: string;
|
|
61
61
|
label: string;
|
|
62
62
|
}
|
|
63
|
-
export declare const getRecordDelimiter: (id: string, localeId?: import('../../
|
|
64
|
-
export declare const getRecordDelimiters: (localeId?: import('../../
|
|
63
|
+
export declare const getRecordDelimiter: (id: string, localeId?: import('../../locales').LocaleCode) => RecordDelimiter;
|
|
64
|
+
export declare const getRecordDelimiters: (localeId?: import('../../locales').LocaleCode) => RecordDelimiter[];
|
|
65
65
|
interface ValueDelimiter {
|
|
66
66
|
id: string;
|
|
67
67
|
label: string;
|
|
68
68
|
}
|
|
69
|
-
export declare const getValueDelimiter: (id: string, localeId?: import('../../
|
|
70
|
-
export declare const getValueDelimiters: (localeId?: import('../../
|
|
69
|
+
export declare const getValueDelimiter: (id: string, localeId?: import('../../locales').LocaleCode) => ValueDelimiter;
|
|
70
|
+
export declare const getValueDelimiters: (localeId?: import('../../locales').LocaleCode) => ValueDelimiter[];
|
|
71
71
|
export type ParsedValue = bigint | boolean | number | string | null;
|
|
72
72
|
export type DataFormatId = 'dtv' | 'e/e' | 'jsonArray' | 'spss' | 'xls' | 'xlsx' | 'xml';
|
|
73
73
|
export type RecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { componentConfigSchema, componentStatusColorIdSchema, componentStatusIdSchema, componentStatusSchema, componentTypeIdSchema } from './componentConfig.schema';
|
|
3
|
-
import { LocaleCode, LocalisedString } from '../
|
|
3
|
+
import { LocaleCode, LocalisedString } from '../locales';
|
|
4
4
|
export interface Component {
|
|
5
5
|
readonly config: ComponentConfig;
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PresentationVisualContentConfig } from '../
|
|
1
|
+
import { PresentationVisualContentConfig } from '../component/presenter/presentation';
|
|
2
2
|
export declare function useDataTable(): {
|
|
3
3
|
render: (contentConfig: PresentationVisualContentConfig, element: HTMLElement) => void;
|
|
4
4
|
};
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
* Shared composables, constants, errors, interfaces, schemas, types and utilities.
|
|
3
3
|
*/
|
|
4
4
|
/** Interfaces/Types */
|
|
5
|
-
export type LocaleCode
|
|
6
|
-
export type LocalisedString = Record<LocaleCode, string>;
|
|
5
|
+
export type { LocaleCode, LocalisedString } from './locales';
|
|
7
6
|
/** Interfaces/Types - Component */
|
|
8
7
|
export type { ComponentConfig, ComponentReference, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId, ComponentStatusColorId } from './component';
|
|
9
8
|
/** Schemas - Component */
|
|
@@ -11,7 +10,7 @@ export { componentConfigSchema } from './component';
|
|
|
11
10
|
/** Constants - Connector */
|
|
12
11
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
|
|
13
12
|
/** Interfaces/Types Component - Connector */
|
|
14
|
-
export type { AuditContentResult, AuditContentSettings, Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorLocalisedConfig,
|
|
13
|
+
export type { AuditContentResult, AuditContentSettings, Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorOperationSettings, ConnectorTools, ConnectorUsageId, CreateSettings, DropSettings, FindResult, FindSettings, GetReadableStreamResult, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, InitialiseSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings, RetrieveChunksSettings, RetrieveChunksSummary, RetrieveRecordsResult, RetrieveRecordsSettings, RetrieveRecordsSummary, UpsertSettings } from './component/connector';
|
|
15
14
|
/** Interfaces/Types - Connection */
|
|
16
15
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
|
|
17
16
|
/** Schemas - Connector */
|
|
@@ -62,7 +61,7 @@ export type { ToolConfig } from './component/tool';
|
|
|
62
61
|
export { type CytoscapeJSView, useCytoscapeJS } from './composables/useCytoscapeJS';
|
|
63
62
|
export { useDataTable } from './composables/useDataTable';
|
|
64
63
|
/** Constants */
|
|
65
|
-
export
|
|
64
|
+
export { DEFAULT_LOCALE_CODE } from './locales';
|
|
66
65
|
/** Utilities */
|
|
67
66
|
export { convertODataTypeIdToUsageTypeId } from './utilities';
|
|
68
67
|
export { extractExtensionFromPath, extractNameFromPath } from './utilities';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale-related types and defaults shared across modules.
|
|
3
|
+
*/
|
|
4
|
+
export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
5
|
+
export type LocalisedString = Record<LocaleCode, string>;
|
|
6
|
+
/** Fallback locale used whenever a more specific locale is unavailable. */
|
|
7
|
+
export declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.333",
|
|
4
4
|
"description": "A library containing common constants, types and utilities used across all Data Positioning projects.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Jonathan Terrell <terrell.jm@gmail.com>",
|