@dpuse/dpuse-shared 0.3.595 → 0.3.598
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/{componentConfig.schema-Csigo0y4.js → componentConfig.schema-B6kdXy8u.js} +4 -8
- package/dist/dpuse-shared-component.es.js +19 -19
- package/dist/dpuse-shared-connector.es.js +23 -23
- package/dist/dpuse-shared-dataview.es.js +1 -1
- package/dist/dpuse-shared-locale.es.js +4 -4
- package/dist/dpuse-shared.es.js +2 -2
- package/dist/{moduleConfig.schema-WvtAJjAG.js → moduleConfig.schema-DPEkEXqp.js} +1 -1
- package/dist/types/src/component/componentConfig.schema.d.ts +16 -32
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +10 -20
- package/dist/types/src/component/context/contextConfig.schema.d.ts +12 -24
- package/dist/types/src/component/moduleConfig.schema.d.ts +8 -16
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +8 -16
- package/dist/types/src/locale/index.d.ts +2 -2
- package/dist/types/vitest.config.d.ts +5 -0
- package/package.json +1 -1
|
@@ -371,15 +371,11 @@ function T(e, t) {
|
|
|
371
371
|
//#endregion
|
|
372
372
|
//#region src/component/componentConfig.schema.ts
|
|
373
373
|
var E = (e) => /* @__PURE__ */ T(e.map((e) => /* @__PURE__ */ _(e))), D = /* @__PURE__ */ b({
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
"en-us": /* @__PURE__ */ C(),
|
|
377
|
-
"es-es": /* @__PURE__ */ C()
|
|
374
|
+
en: /* @__PURE__ */ C(),
|
|
375
|
+
es: /* @__PURE__ */ C()
|
|
378
376
|
}), O = /* @__PURE__ */ b({
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
"en-us": /* @__PURE__ */ x(/* @__PURE__ */ C()),
|
|
382
|
-
"es-es": /* @__PURE__ */ x(/* @__PURE__ */ C())
|
|
377
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ C()),
|
|
378
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ C())
|
|
383
379
|
}), k = E([
|
|
384
380
|
"amber",
|
|
385
381
|
"green",
|
|
@@ -1,60 +1,60 @@
|
|
|
1
|
-
import { n as e } from "./componentConfig.schema-
|
|
2
|
-
import
|
|
1
|
+
import { n as e } from "./componentConfig.schema-B6kdXy8u.js";
|
|
2
|
+
import "./dpuse-shared-locale.es.js";
|
|
3
3
|
//#region src/component/index.ts
|
|
4
|
-
var
|
|
4
|
+
var t = [
|
|
5
5
|
{
|
|
6
6
|
id: "alpha",
|
|
7
7
|
color: "red",
|
|
8
|
-
labels: {
|
|
8
|
+
labels: { en: "alpha" }
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
id: "beta",
|
|
12
12
|
color: "amber",
|
|
13
|
-
labels: {
|
|
13
|
+
labels: { en: "beta" }
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
id: "generalAvailability",
|
|
17
17
|
color: "green",
|
|
18
|
-
labels: {
|
|
18
|
+
labels: { en: "" }
|
|
19
19
|
},
|
|
20
20
|
{
|
|
21
21
|
id: "notApplicable",
|
|
22
22
|
color: "green",
|
|
23
|
-
labels: {
|
|
23
|
+
labels: { en: "not-applicable" }
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
26
|
id: "preAlpha",
|
|
27
27
|
color: "red",
|
|
28
|
-
labels: {
|
|
28
|
+
labels: { en: "pre-alpha" }
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
31
|
id: "proposed",
|
|
32
32
|
color: "other",
|
|
33
|
-
labels: {
|
|
33
|
+
labels: { en: "proposed" }
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
id: "releaseCandidate",
|
|
37
37
|
color: "green",
|
|
38
|
-
labels: {
|
|
38
|
+
labels: { en: "release-candidate" }
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
id: "unavailable",
|
|
42
42
|
color: "other",
|
|
43
|
-
labels: {
|
|
43
|
+
labels: { en: "unavailable" }
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
id: "underReview",
|
|
47
47
|
color: "other",
|
|
48
|
-
labels: {
|
|
48
|
+
labels: { en: "under-review" }
|
|
49
49
|
}
|
|
50
50
|
];
|
|
51
|
-
function
|
|
52
|
-
let
|
|
53
|
-
if (
|
|
54
|
-
let e =
|
|
51
|
+
function n(e, n = "en") {
|
|
52
|
+
let r = t.find((t) => t.id === e);
|
|
53
|
+
if (r) {
|
|
54
|
+
let e = r.labels[n] ?? r.labels.en ?? r.id;
|
|
55
55
|
return {
|
|
56
|
-
id:
|
|
57
|
-
color:
|
|
56
|
+
id: r.id,
|
|
57
|
+
color: r.color,
|
|
58
58
|
label: e
|
|
59
59
|
};
|
|
60
60
|
}
|
|
@@ -65,4 +65,4 @@ function r(e, r = t) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
//#endregion
|
|
68
|
-
export { e as componentConfigSchema,
|
|
68
|
+
export { e as componentConfigSchema, n as getComponentStatus };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, o as c, p as l, s as u, u as d } from "./componentConfig.schema-
|
|
2
|
-
import { t as f } from "./moduleConfig.schema-
|
|
3
|
-
import {
|
|
1
|
+
import { a as e, c as t, d as n, f as r, h as i, i as a, l as o, m as s, o as c, p as l, s as u, u as d } from "./componentConfig.schema-B6kdXy8u.js";
|
|
2
|
+
import { t as f } from "./moduleConfig.schema-DPEkEXqp.js";
|
|
3
|
+
import { createLabelMap as p, resolveLabel as m } from "./dpuse-shared-locale.es.js";
|
|
4
4
|
//#region src/component/connector/connectorConfig.schema.ts
|
|
5
|
-
var
|
|
5
|
+
var h = r({
|
|
6
6
|
authMethodId: a([
|
|
7
7
|
"apiKey",
|
|
8
8
|
"disabled",
|
|
@@ -15,12 +15,12 @@ var g = r({
|
|
|
15
15
|
label: l(e),
|
|
16
16
|
maxConnectionCount: d(n()),
|
|
17
17
|
params: l(u(s(i(), i())))
|
|
18
|
-
}),
|
|
18
|
+
}), g = a([
|
|
19
19
|
"application",
|
|
20
20
|
"curatedDataset",
|
|
21
21
|
"database",
|
|
22
22
|
"fileStore"
|
|
23
|
-
]),
|
|
23
|
+
]), _ = a([
|
|
24
24
|
"abortOperation",
|
|
25
25
|
"auditObjectContent",
|
|
26
26
|
"authenticateConnection",
|
|
@@ -36,46 +36,46 @@ var g = r({
|
|
|
36
36
|
"retrieveChunks",
|
|
37
37
|
"retrieveRecords",
|
|
38
38
|
"upsertRecords"
|
|
39
|
-
]),
|
|
39
|
+
]), v = a([
|
|
40
40
|
"bidirectional",
|
|
41
41
|
"destination",
|
|
42
42
|
"source",
|
|
43
43
|
"unknown"
|
|
44
|
-
]),
|
|
44
|
+
]), y = r({
|
|
45
45
|
id: i(),
|
|
46
46
|
label: c
|
|
47
|
-
}),
|
|
47
|
+
}), b = r({
|
|
48
48
|
...f,
|
|
49
49
|
typeId: o("connector"),
|
|
50
|
-
category: d(
|
|
51
|
-
categoryId:
|
|
52
|
-
implementations: s(i(),
|
|
53
|
-
operations: u(
|
|
54
|
-
usageId:
|
|
50
|
+
category: d(y),
|
|
51
|
+
categoryId: g,
|
|
52
|
+
implementations: s(i(), h),
|
|
53
|
+
operations: u(_),
|
|
54
|
+
usageId: v,
|
|
55
55
|
vendorAccountURL: d(i()),
|
|
56
56
|
vendorDocumentationURL: d(i()),
|
|
57
57
|
vendorHomeURL: d(i())
|
|
58
|
-
}),
|
|
58
|
+
}), x = [
|
|
59
59
|
{
|
|
60
60
|
id: "application",
|
|
61
|
-
label: {
|
|
61
|
+
label: { en: "Application" }
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
id: "curatedDataset",
|
|
65
|
-
label: {
|
|
65
|
+
label: { en: "Curated Dataset" }
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
id: "database",
|
|
69
|
-
label: {
|
|
69
|
+
label: { en: "Database" }
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
id: "fileStore",
|
|
73
|
-
label: {
|
|
73
|
+
label: { en: "File Store" }
|
|
74
74
|
}
|
|
75
|
-
],
|
|
76
|
-
let n =
|
|
75
|
+
], S = (e, t = "en") => {
|
|
76
|
+
let n = x.find((t) => t.id === e);
|
|
77
77
|
if (n) {
|
|
78
|
-
let e =
|
|
78
|
+
let e = m(p(n.label), t);
|
|
79
79
|
return {
|
|
80
80
|
id: n.id,
|
|
81
81
|
label: e ?? n.id
|
|
@@ -87,4 +87,4 @@ var g = r({
|
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
89
|
//#endregion
|
|
90
|
-
export {
|
|
90
|
+
export { b as connectorConfigSchema, S as constructConnectorCategoryConfig };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createLabelMap as e } from "./dpuse-shared-locale.es.js";
|
|
2
|
-
e({
|
|
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
|
",",
|
|
5
5
|
";",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
//#region src/locale/index.ts
|
|
2
|
-
var e = "en
|
|
3
|
-
let
|
|
4
|
-
if (
|
|
5
|
-
if (
|
|
2
|
+
var e = "en", t = (e) => new Map(Object.entries(e)), n = (e, t, n = "en") => {
|
|
3
|
+
let r = e.get(t);
|
|
4
|
+
if (r !== void 0) return r;
|
|
5
|
+
if (n !== t) return e.get(n);
|
|
6
6
|
};
|
|
7
7
|
//#endregion
|
|
8
8
|
export { e as DEFAULT_LOCALE_CODE, t as createLabelMap, n as resolveLabel };
|
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as e, f as t, i as n, l as r, r as i, s as a, t as o } from "./componentConfig.schema-
|
|
2
|
-
import { t as s } from "./moduleConfig.schema-
|
|
1
|
+
import { d as e, f as t, i as n, l as r, r as i, s as a, t as o } from "./componentConfig.schema-B6kdXy8u.js";
|
|
2
|
+
import { t as s } from "./moduleConfig.schema-DPEkEXqp.js";
|
|
3
3
|
//#region src/component/context/contextConfig.schema.ts
|
|
4
4
|
var c = n(["list"]), l = t({
|
|
5
5
|
...o,
|
|
@@ -13,19 +13,15 @@ declare const literalUnion: <const T extends readonly string[]>(values: T) => Li
|
|
|
13
13
|
*
|
|
14
14
|
*/
|
|
15
15
|
declare const localisedStringSchema: import('valibot').ObjectSchema<{
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
19
|
-
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
16
|
+
readonly en: import('valibot').StringSchema<undefined>;
|
|
17
|
+
readonly es: import('valibot').StringSchema<undefined>;
|
|
20
18
|
}, undefined>;
|
|
21
19
|
/**
|
|
22
20
|
*
|
|
23
21
|
*/
|
|
24
22
|
declare const partialLocalisedStringSchema: import('valibot').ObjectSchema<{
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
23
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
25
|
}, undefined>;
|
|
30
26
|
/**
|
|
31
27
|
*
|
|
@@ -53,16 +49,12 @@ declare const componentStatusSchema: import('valibot').ObjectSchema<{
|
|
|
53
49
|
declare const componentConfigCoreFields: {
|
|
54
50
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
55
51
|
readonly label: import('valibot').ObjectSchema<{
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
54
|
}, undefined>;
|
|
61
55
|
readonly description: import('valibot').ObjectSchema<{
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
58
|
}, undefined>;
|
|
67
59
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
68
60
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -82,16 +74,12 @@ declare const componentConfigSchema: import('valibot').ObjectSchema<{
|
|
|
82
74
|
readonly typeId: LiteralUnionSchema<readonly ["app", "connector", "connectorConnection", "context", "contextModelGroup", "contextModel", "contextModelDimensionGroup", "contextModelDimension", "contextModelDimensionHierarchy", "contextModelEntityGroup", "contextModelEntity", "contextModelEntityDataItem", "contextModelEntityEvent", "contextModelEntityPrimaryMeasure", "contextModelSecondaryMeasureGroup", "contextModelSecondaryMeasure", "dataView", "dimension", "engine", "eventQuery", "presenter", "presenterPresentation", "tool"]>;
|
|
83
75
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
84
76
|
readonly label: import('valibot').ObjectSchema<{
|
|
85
|
-
readonly
|
|
86
|
-
readonly
|
|
87
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
88
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
77
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
89
79
|
}, undefined>;
|
|
90
80
|
readonly description: import('valibot').ObjectSchema<{
|
|
91
|
-
readonly
|
|
92
|
-
readonly
|
|
93
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
94
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
82
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
95
83
|
}, undefined>;
|
|
96
84
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
97
85
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -110,16 +98,12 @@ declare const componentConfigSchema: import('valibot').ObjectSchema<{
|
|
|
110
98
|
declare const componentReferenceSchema: import('valibot').ObjectSchema<{
|
|
111
99
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
112
100
|
readonly label: import('valibot').ObjectSchema<{
|
|
113
|
-
readonly
|
|
114
|
-
readonly
|
|
115
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
116
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
101
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
102
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
117
103
|
}, undefined>;
|
|
118
104
|
readonly description: import('valibot').ObjectSchema<{
|
|
119
|
-
readonly
|
|
120
|
-
readonly
|
|
121
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
122
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
105
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
123
107
|
}, undefined>;
|
|
124
108
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
125
109
|
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -14,10 +14,8 @@ declare const connectorUsageIdSchema: import('valibot').UnionSchema<readonly [im
|
|
|
14
14
|
declare const connectorCategoryConfigSchema: import('valibot').ObjectSchema<{
|
|
15
15
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
16
16
|
readonly label: import('valibot').ObjectSchema<{
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
19
|
}, undefined>;
|
|
22
20
|
}, undefined>;
|
|
23
21
|
/** Top-level connector configuration object. */
|
|
@@ -26,10 +24,8 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
26
24
|
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
27
25
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
28
26
|
readonly label: import('valibot').ObjectSchema<{
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
32
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
29
|
}, undefined>;
|
|
34
30
|
}, undefined>, undefined>;
|
|
35
31
|
readonly categoryId: 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>;
|
|
@@ -39,10 +35,8 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
39
35
|
readonly canDescribe: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, undefined>;
|
|
40
36
|
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
41
37
|
readonly label: import('valibot').OptionalSchema<import('valibot').ObjectSchema<{
|
|
42
|
-
readonly
|
|
43
|
-
readonly
|
|
44
|
-
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
45
|
-
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
38
|
+
readonly en: import('valibot').StringSchema<undefined>;
|
|
39
|
+
readonly es: import('valibot').StringSchema<undefined>;
|
|
46
40
|
}, undefined>, undefined>;
|
|
47
41
|
readonly maxConnectionCount: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
48
42
|
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
@@ -55,16 +49,12 @@ declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
|
55
49
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
56
50
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
57
51
|
readonly label: import('valibot').ObjectSchema<{
|
|
58
|
-
readonly
|
|
59
|
-
readonly
|
|
60
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
54
|
}, undefined>;
|
|
63
55
|
readonly description: import('valibot').ObjectSchema<{
|
|
64
|
-
readonly
|
|
65
|
-
readonly
|
|
66
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
67
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
68
58
|
}, undefined>;
|
|
69
59
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
70
60
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -8,16 +8,12 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
8
8
|
readonly modelRefs: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
9
9
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
10
10
|
readonly label: import('valibot').ObjectSchema<{
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
14
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
13
|
}, undefined>;
|
|
16
14
|
readonly description: import('valibot').ObjectSchema<{
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
17
|
}, undefined>;
|
|
22
18
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
23
19
|
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -27,16 +23,12 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
27
23
|
readonly order: import('valibot').NumberSchema<undefined>;
|
|
28
24
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
29
25
|
readonly label: import('valibot').ObjectSchema<{
|
|
30
|
-
readonly
|
|
31
|
-
readonly
|
|
32
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
28
|
}, undefined>;
|
|
35
29
|
readonly description: import('valibot').ObjectSchema<{
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
32
|
}, undefined>;
|
|
41
33
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
34
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -53,16 +45,12 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
|
53
45
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
54
46
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
55
47
|
readonly label: import('valibot').ObjectSchema<{
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
58
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
48
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
49
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
50
|
}, undefined>;
|
|
61
51
|
readonly description: import('valibot').ObjectSchema<{
|
|
62
|
-
readonly
|
|
63
|
-
readonly
|
|
64
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
52
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
54
|
}, undefined>;
|
|
67
55
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
68
56
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -12,16 +12,12 @@ declare const moduleConfigCoreFields: {
|
|
|
12
12
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
13
13
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
14
14
|
readonly label: import('valibot').ObjectSchema<{
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
17
|
}, undefined>;
|
|
20
18
|
readonly description: import('valibot').ObjectSchema<{
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
23
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
24
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
25
21
|
}, undefined>;
|
|
26
22
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
27
23
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -42,16 +38,12 @@ declare const moduleConfigSchema: import('valibot').ObjectSchema<{
|
|
|
42
38
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
43
39
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
44
40
|
readonly label: import('valibot').ObjectSchema<{
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
48
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
49
43
|
}, undefined>;
|
|
50
44
|
readonly description: import('valibot').ObjectSchema<{
|
|
51
|
-
readonly
|
|
52
|
-
readonly
|
|
53
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
45
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
46
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
47
|
}, undefined>;
|
|
56
48
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
57
49
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -6,16 +6,12 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
|
|
|
6
6
|
readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
7
7
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
8
8
|
readonly label: import('valibot').ObjectSchema<{
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
11
|
}, undefined>;
|
|
14
12
|
readonly description: import('valibot').ObjectSchema<{
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
15
|
}, undefined>;
|
|
20
16
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
17
|
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -26,16 +22,12 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
|
|
|
26
22
|
readonly version: import('valibot').StringSchema<undefined>;
|
|
27
23
|
readonly id: import('valibot').StringSchema<undefined>;
|
|
28
24
|
readonly label: import('valibot').ObjectSchema<{
|
|
29
|
-
readonly
|
|
30
|
-
readonly
|
|
31
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
32
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
27
|
}, undefined>;
|
|
34
28
|
readonly description: import('valibot').ObjectSchema<{
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
38
|
-
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly en: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly es: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
31
|
}, undefined>;
|
|
40
32
|
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
41
33
|
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
@@ -5,7 +5,7 @@ declare const DEFAULT_LOCALE_CODE: LocaleCode;
|
|
|
5
5
|
/**
|
|
6
6
|
* Locale codes.
|
|
7
7
|
*/
|
|
8
|
-
type LocaleCode = 'en' | '
|
|
8
|
+
type LocaleCode = 'en' | 'es';
|
|
9
9
|
/**
|
|
10
10
|
* Localised string.
|
|
11
11
|
*/
|
|
@@ -21,6 +21,6 @@ declare const createLabelMap: (labels: Record<string, string>) => LocaleLabelMap
|
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
|
-
declare const resolveLabel: (labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: "en
|
|
24
|
+
declare const resolveLabel: (labels: LocaleLabelMap, localeId: string, fallbackLocaleId?: "en") => string | undefined;
|
|
25
25
|
export { createLabelMap, DEFAULT_LOCALE_CODE, resolveLabel };
|
|
26
26
|
export type { LocaleCode, LocaleLabelMap, LocalisedString };
|
package/package.json
CHANGED