@dpuse/dpuse-shared 0.3.622 → 0.3.627
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/{locale-CrC0-wPd.js → componentConfig.schema-CpjcH9JV.js} +68 -21
- package/dist/dpuse-shared-component.es.js +38 -11
- package/dist/{dpuse-shared-dataview.es.js → dpuse-shared-componentDataView.es.js} +1 -1
- package/dist/dpuse-shared-componentEventQuery.es.js +0 -0
- package/dist/dpuse-shared-componentModule.es.js +0 -0
- package/dist/dpuse-shared-componentModuleConnector.es.js +88 -0
- package/dist/dpuse-shared-componentModuleContext.es.js +16 -0
- package/dist/dpuse-shared-componentModulePresenter.es.js +15 -0
- package/dist/dpuse-shared-componentModulePresenterPresentation.es.js +0 -0
- package/dist/{dpuse-shared-tools.es.js → dpuse-shared-componentModuleTool.es.js} +1 -1
- package/dist/dpuse-shared-locale.es.js +27 -2
- package/dist/{moduleConfig.schema-Ct8Q53dE.js → moduleConfig.schema-DE8ldb7c.js} +4 -5
- package/dist/types/src/component/connection/index.d.ts +8 -30
- package/dist/types/src/component/dataView/index.d.ts +0 -66
- package/dist/types/src/component/index.d.ts +2 -2
- package/dist/types/src/component/module/connector/index.d.ts +32 -114
- package/dist/types/src/component/module/context/contextConfig.schema.d.ts +0 -3
- package/dist/types/src/component/module/context/index.d.ts +10 -10
- package/dist/types/src/component/module/index.d.ts +2 -5
- package/dist/types/src/component/module/presenter/index.d.ts +2 -5
- package/dist/types/src/component/module/presenter/{presentation.d.ts → presentation/index.d.ts} +2 -3
- package/dist/types/src/component/module/presenter/presenterConfig.schema.d.ts +0 -3
- package/dist/types/src/component/module/tool/index.d.ts +5 -0
- package/dist/types/src/encoding/index.d.ts +4 -17
- package/dist/types/src/engine/index.d.ts +1 -1
- package/dist/types/src/locale/index.d.ts +5 -8
- package/dist/types/src/locale/locale.schema.d.ts +8 -0
- package/dist/types/src/utilities/index.d.ts +0 -3
- package/package.json +26 -10
- package/dist/componentConfig.schema-Bvr66FJf.js +0 -68
- package/dist/dpuse-shared-connector.es.js +0 -76
- package/dist/dpuse-shared.es.js +0 -26
- package/dist/types/src/component/tool/index.d.ts +0 -13
- package/dist/types/src/index.d.ts +0 -28
- /package/dist/{dpuse-shared-connection.es.js → dpuse-shared-componentConnection.es.js} +0 -0
- /package/dist/{dpuse-shared-module.es.js → dpuse-shared-componentDimension.es.js} +0 -0
|
@@ -369,29 +369,76 @@ function T(e, t) {
|
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
//#endregion
|
|
372
|
-
//#region src/
|
|
373
|
-
var E = /* @__PURE__ */ b({
|
|
372
|
+
//#region src/schema.ts
|
|
373
|
+
var E = (e) => /* @__PURE__ */ T(e.map((e) => /* @__PURE__ */ _(e))), D = /* @__PURE__ */ b({
|
|
374
374
|
en: /* @__PURE__ */ C(),
|
|
375
375
|
es: /* @__PURE__ */ C()
|
|
376
|
-
}),
|
|
376
|
+
}), O = /* @__PURE__ */ b({
|
|
377
377
|
en: /* @__PURE__ */ x(/* @__PURE__ */ C()),
|
|
378
378
|
es: /* @__PURE__ */ x(/* @__PURE__ */ C())
|
|
379
|
-
}),
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
379
|
+
}), k = E([
|
|
380
|
+
"app",
|
|
381
|
+
"connector",
|
|
382
|
+
"connectorConnection",
|
|
383
|
+
"context",
|
|
384
|
+
"contextModelGroup",
|
|
385
|
+
"contextModel",
|
|
386
|
+
"contextModelDimensionGroup",
|
|
387
|
+
"contextModelDimension",
|
|
388
|
+
"contextModelDimensionHierarchy",
|
|
389
|
+
"contextModelEntityGroup",
|
|
390
|
+
"contextModelEntity",
|
|
391
|
+
"contextModelEntityDataItem",
|
|
392
|
+
"contextModelEntityEvent",
|
|
393
|
+
"contextModelEntityPrimaryMeasure",
|
|
394
|
+
"contextModelSecondaryMeasureGroup",
|
|
395
|
+
"contextModelSecondaryMeasure",
|
|
396
|
+
"dataView",
|
|
397
|
+
"dimension",
|
|
398
|
+
"engine",
|
|
399
|
+
"eventQuery",
|
|
400
|
+
"presenter",
|
|
401
|
+
"presenterPresentation",
|
|
402
|
+
"tool"
|
|
403
|
+
]), A = E([
|
|
404
|
+
"amber",
|
|
405
|
+
"green",
|
|
406
|
+
"red",
|
|
407
|
+
"other"
|
|
408
|
+
]), j = E([
|
|
409
|
+
"alpha",
|
|
410
|
+
"beta",
|
|
411
|
+
"generalAvailability",
|
|
412
|
+
"notApplicable",
|
|
413
|
+
"preAlpha",
|
|
414
|
+
"proposed",
|
|
415
|
+
"releaseCandidate",
|
|
416
|
+
"unavailable",
|
|
417
|
+
"underReview"
|
|
418
|
+
]), M = /* @__PURE__ */ b({
|
|
419
|
+
color: A,
|
|
420
|
+
label: /* @__PURE__ */ C()
|
|
421
|
+
}), N = /* @__PURE__ */ b({
|
|
422
|
+
id: /* @__PURE__ */ C(),
|
|
423
|
+
label: O,
|
|
424
|
+
description: O,
|
|
425
|
+
icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
426
|
+
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
427
|
+
order: /* @__PURE__ */ y(),
|
|
428
|
+
path: /* @__PURE__ */ C()
|
|
429
|
+
}), P = {
|
|
430
|
+
id: /* @__PURE__ */ C(),
|
|
431
|
+
label: O,
|
|
432
|
+
description: O,
|
|
433
|
+
firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
434
|
+
icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
435
|
+
iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C()),
|
|
436
|
+
lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
|
|
437
|
+
status: /* @__PURE__ */ v(M),
|
|
438
|
+
statusId: /* @__PURE__ */ v(j)
|
|
439
|
+
}, F = /* @__PURE__ */ b({
|
|
440
|
+
...P,
|
|
441
|
+
typeId: k
|
|
442
|
+
});
|
|
396
443
|
//#endregion
|
|
397
|
-
export {
|
|
444
|
+
export { E as a, _ as c, b as d, x as f, D as i, v as l, C as m, F as n, h as o, S as p, N as r, g as s, P as t, y as u };
|
|
@@ -1,51 +1,78 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import { n as e } from "./componentConfig.schema-
|
|
1
|
+
import "./dpuse-shared-locale.es.js";
|
|
2
|
+
import { n as e } from "./componentConfig.schema-CpjcH9JV.js";
|
|
3
3
|
//#region src/component/index.ts
|
|
4
4
|
var t = [
|
|
5
5
|
{
|
|
6
6
|
id: "alpha",
|
|
7
7
|
color: "red",
|
|
8
|
-
labels: {
|
|
8
|
+
labels: {
|
|
9
|
+
en: "alpha",
|
|
10
|
+
es: "alfa"
|
|
11
|
+
}
|
|
9
12
|
},
|
|
10
13
|
{
|
|
11
14
|
id: "beta",
|
|
12
15
|
color: "amber",
|
|
13
|
-
labels: {
|
|
16
|
+
labels: {
|
|
17
|
+
en: "beta",
|
|
18
|
+
es: "beta"
|
|
19
|
+
}
|
|
14
20
|
},
|
|
15
21
|
{
|
|
16
22
|
id: "generalAvailability",
|
|
17
23
|
color: "green",
|
|
18
|
-
labels: {
|
|
24
|
+
labels: {
|
|
25
|
+
en: "",
|
|
26
|
+
es: ""
|
|
27
|
+
}
|
|
19
28
|
},
|
|
20
29
|
{
|
|
21
30
|
id: "notApplicable",
|
|
22
31
|
color: "green",
|
|
23
|
-
labels: {
|
|
32
|
+
labels: {
|
|
33
|
+
en: "not-applicable",
|
|
34
|
+
es: "no-aplicable"
|
|
35
|
+
}
|
|
24
36
|
},
|
|
25
37
|
{
|
|
26
38
|
id: "preAlpha",
|
|
27
39
|
color: "red",
|
|
28
|
-
labels: {
|
|
40
|
+
labels: {
|
|
41
|
+
en: "pre-alpha",
|
|
42
|
+
es: "pre-alfa"
|
|
43
|
+
}
|
|
29
44
|
},
|
|
30
45
|
{
|
|
31
46
|
id: "proposed",
|
|
32
47
|
color: "other",
|
|
33
|
-
labels: {
|
|
48
|
+
labels: {
|
|
49
|
+
en: "proposed",
|
|
50
|
+
es: "propuesto"
|
|
51
|
+
}
|
|
34
52
|
},
|
|
35
53
|
{
|
|
36
54
|
id: "releaseCandidate",
|
|
37
55
|
color: "green",
|
|
38
|
-
labels: {
|
|
56
|
+
labels: {
|
|
57
|
+
en: "release-candidate",
|
|
58
|
+
es: "candidato-de-lanzamiento"
|
|
59
|
+
}
|
|
39
60
|
},
|
|
40
61
|
{
|
|
41
62
|
id: "unavailable",
|
|
42
63
|
color: "other",
|
|
43
|
-
labels: {
|
|
64
|
+
labels: {
|
|
65
|
+
en: "unavailable",
|
|
66
|
+
es: "no-disponible"
|
|
67
|
+
}
|
|
44
68
|
},
|
|
45
69
|
{
|
|
46
70
|
id: "underReview",
|
|
47
71
|
color: "other",
|
|
48
|
-
labels: {
|
|
72
|
+
labels: {
|
|
73
|
+
en: "under-review",
|
|
74
|
+
es: "en-revisión"
|
|
75
|
+
}
|
|
49
76
|
}
|
|
50
77
|
];
|
|
51
78
|
function n(e, n = "en") {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createLabelMap as e } from "./dpuse-shared-locale.es.js";
|
|
2
2
|
e({ en: "Data Positioning Events" }), e({ en: "Delimited Text" }), e({ en: "JSON" }), e({ en: "SPSS" }), e({ en: "XLSX" }), e({ en: "XML" }), e({ en: "Newline" }), e({ en: "Carriage Return" }), e({ en: "Carriage Return/Newline" }), e({ en: "Colon" }), e({ en: "Comma" }), e({ en: "Exclamation Mark" }), e({ en: "Record Separator" }), e({ en: "Semicolon" }), e({ en: "Space" }), e({ en: "Tab" }), e({ en: "Underscore" }), e({ en: "Unit Separator" }), e({ en: "Vertical Bar" });
|
|
3
3
|
var t = [
|
|
4
4
|
",",
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { createLabelMap as e, resolveLabel as t } from "./dpuse-shared-locale.es.js";
|
|
2
|
+
import { a as n, c as r, d as i, f as a, i as o, l as s, m as c, o as l, p as u, s as d, u as f } from "./componentConfig.schema-CpjcH9JV.js";
|
|
3
|
+
import { t as p } from "./moduleConfig.schema-DE8ldb7c.js";
|
|
4
|
+
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
5
|
+
var m = n([
|
|
6
|
+
"application",
|
|
7
|
+
"curatedDataset",
|
|
8
|
+
"database",
|
|
9
|
+
"fileStore"
|
|
10
|
+
]), h = i({ label: o }), g = i({
|
|
11
|
+
authMethodId: n([
|
|
12
|
+
"apiKey",
|
|
13
|
+
"disabled",
|
|
14
|
+
"oAuth2",
|
|
15
|
+
"none"
|
|
16
|
+
]),
|
|
17
|
+
activeConnectionCount: a(f()),
|
|
18
|
+
canDescribe: a(d()),
|
|
19
|
+
id: a(c()),
|
|
20
|
+
label: a(o),
|
|
21
|
+
maxConnectionCount: s(f()),
|
|
22
|
+
params: a(l(u(c(), c())))
|
|
23
|
+
}), _ = n([
|
|
24
|
+
"abortOperation",
|
|
25
|
+
"auditObjectContent",
|
|
26
|
+
"createObject",
|
|
27
|
+
"describeConnection",
|
|
28
|
+
"dropObject",
|
|
29
|
+
"findObject",
|
|
30
|
+
"getReadableStream",
|
|
31
|
+
"getRecord",
|
|
32
|
+
"listNodes",
|
|
33
|
+
"previewObject",
|
|
34
|
+
"removeRecords",
|
|
35
|
+
"retrieveChunks",
|
|
36
|
+
"retrieveRecords",
|
|
37
|
+
"upsertRecords"
|
|
38
|
+
]), v = n([
|
|
39
|
+
"bidirectional",
|
|
40
|
+
"destination",
|
|
41
|
+
"source",
|
|
42
|
+
"unknown"
|
|
43
|
+
]), y = i({
|
|
44
|
+
...p,
|
|
45
|
+
typeId: r("connector"),
|
|
46
|
+
category: s(h),
|
|
47
|
+
categoryId: m,
|
|
48
|
+
implementations: u(c(), g),
|
|
49
|
+
operations: l(_),
|
|
50
|
+
usageId: v,
|
|
51
|
+
vendorAccountURL: s(c()),
|
|
52
|
+
vendorDocumentationURL: s(c()),
|
|
53
|
+
vendorHomeURL: s(c())
|
|
54
|
+
}), b = [
|
|
55
|
+
{
|
|
56
|
+
id: "application",
|
|
57
|
+
label: {
|
|
58
|
+
en: "Application",
|
|
59
|
+
es: "Aplicación"
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: "curatedDataset",
|
|
64
|
+
label: {
|
|
65
|
+
en: "Curated Dataset",
|
|
66
|
+
es: "Conjunto de Datos Curado"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "database",
|
|
71
|
+
label: {
|
|
72
|
+
en: "Database",
|
|
73
|
+
es: "Base de Datos"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: "fileStore",
|
|
78
|
+
label: {
|
|
79
|
+
en: "File Store",
|
|
80
|
+
es: "Almacén de Archivos"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
], x = (n, r = "en") => {
|
|
84
|
+
let i = b.find((e) => e.id === n);
|
|
85
|
+
return i ? { label: t(e(i.label), r) ?? i.id } : { label: n };
|
|
86
|
+
};
|
|
87
|
+
//#endregion
|
|
88
|
+
export { y as connectorConfigSchema, x as constructConnectorCategoryConfig };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, o as r, r as i, t as a, u as o } from "./componentConfig.schema-CpjcH9JV.js";
|
|
2
|
+
import { t as s } from "./moduleConfig.schema-DE8ldb7c.js";
|
|
3
|
+
//#region src/component/module/context/contextConfig.schema.ts
|
|
4
|
+
var c = n({
|
|
5
|
+
...a,
|
|
6
|
+
typeId: t("contextModelGroup"),
|
|
7
|
+
modelRefs: r(i),
|
|
8
|
+
order: o()
|
|
9
|
+
}), l = e(["list"]), u = n({
|
|
10
|
+
...s,
|
|
11
|
+
typeId: t("context"),
|
|
12
|
+
models: r(c),
|
|
13
|
+
operations: r(l)
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { u as contextConfigSchema };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, o as r, r as i } from "./componentConfig.schema-CpjcH9JV.js";
|
|
2
|
+
import { t as a } from "./moduleConfig.schema-DE8ldb7c.js";
|
|
3
|
+
//#region src/component/module/presenter/presenterConfig.schema.ts
|
|
4
|
+
var o = e([
|
|
5
|
+
"list",
|
|
6
|
+
"render",
|
|
7
|
+
"setColorMode"
|
|
8
|
+
]), s = n({
|
|
9
|
+
...a,
|
|
10
|
+
typeId: t("presenter"),
|
|
11
|
+
presentations: r(i),
|
|
12
|
+
operations: r(o)
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { s as presenterConfigSchema };
|
|
File without changes
|
|
@@ -1,2 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/locale/index.ts
|
|
2
|
+
var e = "en", t = [{
|
|
3
|
+
id: "en",
|
|
4
|
+
flag: "gb",
|
|
5
|
+
label: "English"
|
|
6
|
+
}, {
|
|
7
|
+
id: "es",
|
|
8
|
+
flag: "es",
|
|
9
|
+
label: "Español"
|
|
10
|
+
}];
|
|
11
|
+
function n(e) {
|
|
12
|
+
return new Map(Object.entries(e));
|
|
13
|
+
}
|
|
14
|
+
function r(e, t) {
|
|
15
|
+
return e.map((e) => ({
|
|
16
|
+
...e,
|
|
17
|
+
label: e.label[t] ?? e.id,
|
|
18
|
+
description: e.description[t] ?? e.id
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
21
|
+
function i(e, t, n = "en") {
|
|
22
|
+
let r = e.get(t);
|
|
23
|
+
if (r !== void 0) return r;
|
|
24
|
+
if (n !== t) return e.get(n);
|
|
25
|
+
}
|
|
26
|
+
//#endregion
|
|
27
|
+
export { e as DEFAULT_LOCALE_ID, t as SUPPORTED_LANGUAGES, n as createLabelMap, r as localiseConfigs, i as resolveLabel };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as n, t as r } from "./componentConfig.schema-Bvr66FJf.js";
|
|
1
|
+
import { a as e, d as t, m as n, t as r } from "./componentConfig.schema-CpjcH9JV.js";
|
|
3
2
|
//#region src/component/module/moduleConfig.schema.ts
|
|
4
|
-
var i =
|
|
3
|
+
var i = e([
|
|
5
4
|
"app",
|
|
6
5
|
"engine",
|
|
7
6
|
"connector",
|
|
@@ -10,9 +9,9 @@ var i = n([
|
|
|
10
9
|
"tool"
|
|
11
10
|
]), a = {
|
|
12
11
|
...r,
|
|
13
|
-
version:
|
|
12
|
+
version: n()
|
|
14
13
|
};
|
|
15
|
-
|
|
14
|
+
t({
|
|
16
15
|
...a,
|
|
17
16
|
typeId: i
|
|
18
17
|
});
|
|
@@ -2,10 +2,7 @@ import { ComponentConfig } from '..';
|
|
|
2
2
|
import { ConnectorConfig } from '../module/connector';
|
|
3
3
|
import { LocaleLabel } from '../../locale';
|
|
4
4
|
import { DataSubtypeId, DataTypeId } from '../dataView';
|
|
5
|
-
|
|
6
|
-
* Connection configuration.
|
|
7
|
-
*/
|
|
8
|
-
interface ConnectionConfig extends ComponentConfig {
|
|
5
|
+
export interface ConnectionConfig extends ComponentConfig {
|
|
9
6
|
authorisation: Record<string, ConnectionAuthorisationConfig>;
|
|
10
7
|
connectorConfig: ConnectorConfig;
|
|
11
8
|
lastVerifiedAt: number;
|
|
@@ -15,10 +12,7 @@ export type ConnectionLocalisedConfig = Omit<ConnectionConfig, 'label' | 'descri
|
|
|
15
12
|
label: string;
|
|
16
13
|
description: string;
|
|
17
14
|
};
|
|
18
|
-
|
|
19
|
-
* Connection authorisation configuration.
|
|
20
|
-
*/
|
|
21
|
-
interface ConnectionAuthorisationConfig {
|
|
15
|
+
export interface ConnectionAuthorisationConfig {
|
|
22
16
|
accessToken: string;
|
|
23
17
|
accountId: string;
|
|
24
18
|
expiresAt: number;
|
|
@@ -28,20 +22,14 @@ interface ConnectionAuthorisationConfig {
|
|
|
28
22
|
tokenType: string;
|
|
29
23
|
uid: string;
|
|
30
24
|
}
|
|
31
|
-
|
|
32
|
-
* Connection description configuration.
|
|
33
|
-
*/
|
|
34
|
-
interface ConnectionDescriptionConfig {
|
|
25
|
+
export interface ConnectionDescriptionConfig {
|
|
35
26
|
objects: {
|
|
36
27
|
id: string;
|
|
37
28
|
label: Record<string, string>;
|
|
38
29
|
columns: ObjectColumnConfig[];
|
|
39
30
|
}[];
|
|
40
31
|
}
|
|
41
|
-
|
|
42
|
-
* Connection node configuration.
|
|
43
|
-
*/
|
|
44
|
-
interface ConnectionNodeConfig {
|
|
32
|
+
export interface ConnectionNodeConfig {
|
|
45
33
|
childCount: number | undefined;
|
|
46
34
|
childNodes: ConnectionNodeConfig[];
|
|
47
35
|
extension: string | undefined;
|
|
@@ -55,21 +43,12 @@ interface ConnectionNodeConfig {
|
|
|
55
43
|
size: number | undefined;
|
|
56
44
|
typeId: NodeTypeId;
|
|
57
45
|
}
|
|
58
|
-
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
|
-
interface DPAFileSystemFileHandle {
|
|
46
|
+
export interface DPAFileSystemFileHandle {
|
|
62
47
|
readonly kind: 'file';
|
|
63
48
|
getFile(): Promise<File>;
|
|
64
49
|
}
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*/
|
|
68
|
-
type NodeTypeId = 'folder' | 'object';
|
|
69
|
-
/**
|
|
70
|
-
* Object column configuration.
|
|
71
|
-
*/
|
|
72
|
-
interface ObjectColumnConfig {
|
|
50
|
+
export type NodeTypeId = 'folder' | 'object';
|
|
51
|
+
export interface ObjectColumnConfig {
|
|
73
52
|
dataTypeId: DataTypeId;
|
|
74
53
|
dataSubtypeId: DataSubtypeId | undefined;
|
|
75
54
|
inferenceCounts: Record<string, number>;
|
|
@@ -92,5 +71,4 @@ interface ObjectColumnConfig {
|
|
|
92
71
|
validValues: Record<string, string>;
|
|
93
72
|
voidValueCount: number | undefined;
|
|
94
73
|
}
|
|
95
|
-
type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
96
|
-
export type { ConnectionConfig, ConnectionDescriptionConfig, ConnectionNodeConfig, ObjectColumnConfig };
|
|
74
|
+
export type StorageTypeId = 'binary' | 'boolean' | 'byte' | 'date' | 'dateTime' | 'dateTimeOffset' | 'decimal' | 'double' | 'int8' | 'int16' | 'int32' | 'int64' | 'object' | 'single' | 'string' | 'time' | 'unknown';
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
import { FileTypeResult } from 'file-type';
|
|
2
2
|
import { Component, ComponentConfig } from '..';
|
|
3
3
|
import { ConnectionNodeConfig, ObjectColumnConfig } from '../connection';
|
|
4
|
-
/**
|
|
5
|
-
* Data view interface.
|
|
6
|
-
*/
|
|
7
4
|
type DataViewInterface = Component;
|
|
8
|
-
/**
|
|
9
|
-
* Data view configuration.
|
|
10
|
-
*/
|
|
11
5
|
interface DataViewConfig extends ComponentConfig {
|
|
12
6
|
connectionId: string | undefined;
|
|
13
7
|
connectionNodeConfig: ConnectionNodeConfig | undefined;
|
|
@@ -15,16 +9,10 @@ interface DataViewConfig extends ComponentConfig {
|
|
|
15
9
|
contentAuditConfig: ContentAuditConfig | undefined;
|
|
16
10
|
relationshipsAuditConfig: RelationshipsAuditConfig | undefined;
|
|
17
11
|
}
|
|
18
|
-
/**
|
|
19
|
-
* Data view localised configuration.
|
|
20
|
-
*/
|
|
21
12
|
type DataViewLocalisedConfig = Omit<DataViewConfig, 'label' | 'description'> & {
|
|
22
13
|
label: string;
|
|
23
14
|
description: string;
|
|
24
15
|
};
|
|
25
|
-
/**
|
|
26
|
-
* Data view preview configuration.
|
|
27
|
-
*/
|
|
28
16
|
interface PreviewConfig {
|
|
29
17
|
asAt: number;
|
|
30
18
|
commentMarkId?: string | undefined;
|
|
@@ -54,13 +42,7 @@ interface PreviewConfig {
|
|
|
54
42
|
valueDelimiterOtherCharSeq?: string | undefined;
|
|
55
43
|
valueTrimMethodId?: ValueTrimMethodId | undefined;
|
|
56
44
|
}
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
59
|
-
*/
|
|
60
45
|
type ValueTrimMethodId = 'both' | 'left' | 'right' | 'none';
|
|
61
|
-
/**
|
|
62
|
-
* Data view content audit configuration.
|
|
63
|
-
*/
|
|
64
46
|
interface ContentAuditConfig {
|
|
65
47
|
asAt: number;
|
|
66
48
|
columns: ObjectColumnConfig[];
|
|
@@ -71,35 +53,14 @@ interface ContentAuditConfig {
|
|
|
71
53
|
lineCount: number;
|
|
72
54
|
recordCount: number;
|
|
73
55
|
}
|
|
74
|
-
/**
|
|
75
|
-
* Data view relationships audit configuration.
|
|
76
|
-
*/
|
|
77
56
|
interface RelationshipsAuditConfig {
|
|
78
57
|
placeholder: string;
|
|
79
58
|
}
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
*/
|
|
83
59
|
type DataFormatId = 'dpe' | 'dtv' | 'json' | 'spss' | 'xlsx' | 'xml' | 'unknown';
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
*/
|
|
87
60
|
type RecordDelimiterId = '\n' | '\r' | '\r\n';
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
61
|
type ValueDelimiterId = '' | ':' | ',' | '!' | '0x1E' | ';' | ' ' | '\t' | '_' | '0x1F' | '|';
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
62
|
declare const ORDERED_VALUE_DELIMITER_IDS: ValueDelimiterId[];
|
|
96
|
-
/**
|
|
97
|
-
*
|
|
98
|
-
*/
|
|
99
63
|
type ParsingRecord = ParsingResult[];
|
|
100
|
-
/**
|
|
101
|
-
*
|
|
102
|
-
*/
|
|
103
64
|
interface ParsingResult {
|
|
104
65
|
value: string | null;
|
|
105
66
|
valueWasQuoted: boolean;
|
|
@@ -119,17 +80,8 @@ interface InferenceSummary {
|
|
|
119
80
|
hasHeaderRow: boolean;
|
|
120
81
|
typedRecords: InferenceRecord[];
|
|
121
82
|
}
|
|
122
|
-
/**
|
|
123
|
-
*
|
|
124
|
-
*/
|
|
125
83
|
type InferenceRecord = InferenceResult[];
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
84
|
type InferenceResult = BooleanInferenceResult | NumericInferenceResult | StringInferenceResult | TemporalInferenceResult | UnknownInferenceResult;
|
|
130
|
-
/**
|
|
131
|
-
* Boolean inference result.
|
|
132
|
-
*/
|
|
133
85
|
interface BooleanInferenceResult {
|
|
134
86
|
dataTypeId: 'boolean';
|
|
135
87
|
dataSubtypeId: undefined;
|
|
@@ -137,13 +89,7 @@ interface BooleanInferenceResult {
|
|
|
137
89
|
inputValueWasQuoted: boolean;
|
|
138
90
|
inferredValue: boolean;
|
|
139
91
|
}
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
*/
|
|
143
92
|
type NumericInferenceResult = BigIntInferenceResult | NumberInferenceResult;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
*/
|
|
147
93
|
interface BigIntInferenceResult {
|
|
148
94
|
dataTypeId: 'numeric';
|
|
149
95
|
dataSubtypeId: 'bigint';
|
|
@@ -156,9 +102,6 @@ interface BigIntInferenceResult {
|
|
|
156
102
|
signId: NumericSignId;
|
|
157
103
|
unitsId: NumericUnitsId;
|
|
158
104
|
}
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
161
|
-
*/
|
|
162
105
|
interface NumberInferenceResult {
|
|
163
106
|
dataTypeId: 'numeric';
|
|
164
107
|
dataSubtypeId: 'integer' | 'decimal';
|
|
@@ -171,9 +114,6 @@ interface NumberInferenceResult {
|
|
|
171
114
|
signId: NumericSignId;
|
|
172
115
|
unitsId: NumericUnitsId;
|
|
173
116
|
}
|
|
174
|
-
/**
|
|
175
|
-
* String inference result.
|
|
176
|
-
*/
|
|
177
117
|
interface StringInferenceResult {
|
|
178
118
|
dataTypeId: 'string';
|
|
179
119
|
dataSubtypeId: StringSubtypeId;
|
|
@@ -182,9 +122,6 @@ interface StringInferenceResult {
|
|
|
182
122
|
inputValueWasQuoted: boolean;
|
|
183
123
|
inferredValue: string;
|
|
184
124
|
}
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
*/
|
|
188
125
|
interface TemporalInferenceResult {
|
|
189
126
|
dataTypeId: 'temporal';
|
|
190
127
|
dataSubtypeId: TemporalSubtypeId;
|
|
@@ -193,9 +130,6 @@ interface TemporalInferenceResult {
|
|
|
193
130
|
inputValueWasQuoted: boolean;
|
|
194
131
|
inferredValue: Date;
|
|
195
132
|
}
|
|
196
|
-
/**
|
|
197
|
-
*
|
|
198
|
-
*/
|
|
199
133
|
interface UnknownInferenceResult {
|
|
200
134
|
dataTypeId: 'unknown';
|
|
201
135
|
dataSubtypeId: undefined;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
|
-
import { componentConfigSchema, componentReferenceSchema, componentStatusConfigSchema } from './componentConfig.schema';
|
|
2
|
+
import { componentConfigSchema, componentReferenceSchema, componentStatusColorIdSchema, componentStatusConfigSchema } from './componentConfig.schema';
|
|
3
3
|
import { LocaleId } from '../locale';
|
|
4
4
|
export { componentConfigSchema } from './componentConfig.schema';
|
|
5
|
-
export type { ModuleConfig, ModuleTypeId } from './module';
|
|
6
5
|
export interface Component {
|
|
7
6
|
readonly config: ComponentConfig;
|
|
8
7
|
}
|
|
@@ -13,4 +12,5 @@ export type ComponentLocalisedConfig = Omit<ComponentConfig, 'label' | 'descript
|
|
|
13
12
|
};
|
|
14
13
|
export type ComponentReference = InferOutput<typeof componentReferenceSchema>;
|
|
15
14
|
export type ComponentStatus = InferOutput<typeof componentStatusConfigSchema>;
|
|
15
|
+
export type ComponentStatusColorId = InferOutput<typeof componentStatusColorIdSchema>;
|
|
16
16
|
export declare function getComponentStatus(id: string, localeId?: LocaleId): ComponentStatus;
|