@datapos/datapos-shared 0.3.308 → 0.3.312
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/dist/datapos-shared.es.js +478 -145
- package/dist/types/src/component/componentConfig.schema.d.ts +145 -0
- package/dist/types/src/component/connector/connectorConfig.schema.d.ts +51 -0
- package/dist/types/src/component/connector/index.d.ts +4 -1
- package/dist/types/src/component/context/contextConfig.schema.d.ts +74 -0
- package/dist/types/src/component/context/index.d.ts +4 -0
- package/dist/types/src/component/index.d.ts +4 -0
- package/dist/types/src/component/presenter/index.d.ts +4 -0
- package/dist/types/src/component/presenter/presenterConfig.schema.d.ts +47 -0
- package/dist/types/src/index.d.ts +1 -0
- package/package.json +13 -12
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Data Positioning Shared Library
|
|
2
2
|
|
|
3
|
-
<span><!-- OWASP_BADGES_START -->
|
|
3
|
+
<span><!-- OWASP_BADGES_START -->
|
|
4
|
+
[](https://data-positioning.github.io/datapos-shared/dependency-check-reports/dependency-check-report.html)
|
|
5
|
+
<!-- OWASP_BADGES_END --></span>
|
|
6
|
+
|
|
4
7
|
[](https://www.npmjs.com/package/@datapos/datapos-shared)
|
|
5
8
|
[](./LICENSE)
|
|
6
9
|
|
|
@@ -119,12 +122,11 @@ The following table lists top-level production and peer dependencies. All these
|
|
|
119
122
|
The following table lists top-level production and peer dependencies. All these dependencies (including transitive ones) have been recursively verified to use Apache-2.0, BSD-2-Clause, CC0-1.0, or MIT—commercially friendly licenses with minimal restrictions. Developers cloning this repository should independently verify dev and optional dependencies; users of the published library are covered by these checks. We do not include unlicensed dependencies. Used to support development activity and not released as part of the production release. Check if you clone. We use the `npm` packages [license-report](https://www.npmjs.com/package/license-report), [license-report-check](https://www.npmjs.com/package/license-report-check) and [license-report-recursive](https://www.npmjs.com/package/license-report-recursive) to identify dependency licenses.
|
|
120
123
|
|
|
121
124
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
| nanoid | MIT | 5.1.6 | 5.1.6 | 2 months ago - 2025-09-22 | 0 | [LICENSE](https://raw.githubusercontent.com/ai/nanoid/main/LICENSE) |
|
|
125
|
+
|Name|Type|Installed|Latest|Latest Released|Deps|Document|
|
|
126
|
+
|:-|:-|:-:|:-:|:-|-:|:-|
|
|
127
|
+
|csv-parse|MIT|6.1.0|6.1.0|5 months ago: 2025-07-16|0|⚠️ No license file|
|
|
128
|
+
|date-fns|MIT|4.1.0|4.1.0|4 months ago: 2025-08-03|0|[LICENSE.md](https://raw.githubusercontent.com/date-fns/date-fns/main/LICENSE.md)|
|
|
129
|
+
|nanoid|MIT|5.1.6|5.1.6|2 months ago: 2025-09-22|0|[LICENSE](https://raw.githubusercontent.com/ai/nanoid/main/LICENSE)|
|
|
128
130
|
|
|
129
131
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
130
132
|
|
|
@@ -1,74 +1,419 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
let w;
|
|
2
|
+
// @__NO_SIDE_EFFECTS__
|
|
3
|
+
function R(e) {
|
|
4
|
+
return {
|
|
5
|
+
lang: e?.lang ?? w?.lang,
|
|
6
|
+
message: e?.message,
|
|
7
|
+
abortEarly: e?.abortEarly ?? w?.abortEarly,
|
|
8
|
+
abortPipeEarly: e?.abortPipeEarly ?? w?.abortPipeEarly
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
let j;
|
|
12
|
+
// @__NO_SIDE_EFFECTS__
|
|
13
|
+
function F(e) {
|
|
14
|
+
return j?.get(e);
|
|
15
|
+
}
|
|
16
|
+
let _;
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function U(e) {
|
|
19
|
+
return _?.get(e);
|
|
20
|
+
}
|
|
21
|
+
let B;
|
|
22
|
+
// @__NO_SIDE_EFFECTS__
|
|
23
|
+
function P(e, r) {
|
|
24
|
+
return B?.get(e)?.get(r);
|
|
25
|
+
}
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function T(e) {
|
|
28
|
+
const r = typeof e;
|
|
29
|
+
return r === "string" ? `"${e}"` : r === "number" || r === "bigint" || r === "boolean" ? `${e}` : r === "object" || r === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : r;
|
|
30
|
+
}
|
|
31
|
+
function m(e, r, t, n, o) {
|
|
32
|
+
const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null, p = o?.received ?? /* @__PURE__ */ T(s), a = {
|
|
33
|
+
kind: e.kind,
|
|
34
|
+
type: e.type,
|
|
35
|
+
input: s,
|
|
36
|
+
expected: i,
|
|
37
|
+
received: p,
|
|
38
|
+
message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${p}`,
|
|
39
|
+
requirement: e.requirement,
|
|
40
|
+
path: o?.path,
|
|
41
|
+
issues: o?.issues,
|
|
42
|
+
lang: n.lang,
|
|
43
|
+
abortEarly: n.abortEarly,
|
|
44
|
+
abortPipeEarly: n.abortPipeEarly
|
|
45
|
+
}, h = e.kind === "schema", u = o?.message ?? e.message ?? /* @__PURE__ */ P(e.reference, a.lang) ?? (h ? /* @__PURE__ */ U(a.lang) : null) ?? n.message ?? /* @__PURE__ */ F(a.lang);
|
|
46
|
+
u !== void 0 && (a.message = typeof u == "function" ? u(a) : u), h && (t.typed = !1), t.issues ? t.issues.push(a) : t.issues = [a];
|
|
47
|
+
}
|
|
48
|
+
// @__NO_SIDE_EFFECTS__
|
|
49
|
+
function b(e) {
|
|
50
|
+
return {
|
|
51
|
+
version: 1,
|
|
52
|
+
vendor: "valibot",
|
|
53
|
+
validate(r) {
|
|
54
|
+
return e["~run"]({ value: r }, /* @__PURE__ */ R());
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// @__NO_SIDE_EFFECTS__
|
|
59
|
+
function G(e, r) {
|
|
60
|
+
const t = [...new Set(e)];
|
|
61
|
+
return t.length > 1 ? `(${t.join(` ${r} `)})` : t[0] ?? "never";
|
|
62
|
+
}
|
|
63
|
+
// @__NO_SIDE_EFFECTS__
|
|
64
|
+
function L(e, r, t) {
|
|
65
|
+
return typeof e.fallback == "function" ? e.fallback(r, t) : e.fallback;
|
|
66
|
+
}
|
|
67
|
+
// @__NO_SIDE_EFFECTS__
|
|
68
|
+
function D(e, r, t) {
|
|
69
|
+
return typeof e.default == "function" ? e.default(r, t) : e.default;
|
|
70
|
+
}
|
|
71
|
+
// @__NO_SIDE_EFFECTS__
|
|
72
|
+
function C(e, r) {
|
|
73
|
+
return {
|
|
74
|
+
kind: "schema",
|
|
75
|
+
type: "literal",
|
|
76
|
+
reference: C,
|
|
77
|
+
expects: /* @__PURE__ */ T(e),
|
|
78
|
+
async: !1,
|
|
79
|
+
literal: e,
|
|
80
|
+
message: r,
|
|
81
|
+
get "~standard"() {
|
|
82
|
+
return /* @__PURE__ */ b(this);
|
|
83
|
+
},
|
|
84
|
+
"~run"(t, n) {
|
|
85
|
+
return t.value === this.literal ? t.typed = !0 : m(this, "type", t, n), t;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
// @__NO_SIDE_EFFECTS__
|
|
90
|
+
function E(e, r) {
|
|
91
|
+
return {
|
|
92
|
+
kind: "schema",
|
|
93
|
+
type: "nullable",
|
|
94
|
+
reference: E,
|
|
95
|
+
expects: `(${e.expects} | null)`,
|
|
96
|
+
async: !1,
|
|
97
|
+
wrapped: e,
|
|
98
|
+
default: r,
|
|
99
|
+
get "~standard"() {
|
|
100
|
+
return /* @__PURE__ */ b(this);
|
|
101
|
+
},
|
|
102
|
+
"~run"(t, n) {
|
|
103
|
+
return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ D(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
// @__NO_SIDE_EFFECTS__
|
|
108
|
+
function k(e) {
|
|
109
|
+
return {
|
|
110
|
+
kind: "schema",
|
|
111
|
+
type: "number",
|
|
112
|
+
reference: k,
|
|
113
|
+
expects: "number",
|
|
114
|
+
async: !1,
|
|
115
|
+
message: e,
|
|
116
|
+
get "~standard"() {
|
|
117
|
+
return /* @__PURE__ */ b(this);
|
|
118
|
+
},
|
|
119
|
+
"~run"(r, t) {
|
|
120
|
+
return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : m(this, "type", r, t), r;
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
// @__NO_SIDE_EFFECTS__
|
|
125
|
+
function S(e, r) {
|
|
126
|
+
return {
|
|
127
|
+
kind: "schema",
|
|
128
|
+
type: "object",
|
|
129
|
+
reference: S,
|
|
130
|
+
expects: "Object",
|
|
131
|
+
async: !1,
|
|
132
|
+
entries: e,
|
|
133
|
+
message: r,
|
|
134
|
+
get "~standard"() {
|
|
135
|
+
return /* @__PURE__ */ b(this);
|
|
136
|
+
},
|
|
137
|
+
"~run"(t, n) {
|
|
138
|
+
const o = t.value;
|
|
139
|
+
if (o && typeof o == "object") {
|
|
140
|
+
t.typed = !0, t.value = {};
|
|
141
|
+
for (const s in this.entries) {
|
|
142
|
+
const i = this.entries[s];
|
|
143
|
+
if (s in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
144
|
+
const p = s in o ? o[s] : /* @__PURE__ */ D(i), a = i["~run"]({ value: p }, n);
|
|
145
|
+
if (a.issues) {
|
|
146
|
+
const h = {
|
|
147
|
+
type: "object",
|
|
148
|
+
origin: "value",
|
|
149
|
+
input: o,
|
|
150
|
+
key: s,
|
|
151
|
+
value: p
|
|
152
|
+
};
|
|
153
|
+
for (const u of a.issues)
|
|
154
|
+
u.path ? u.path.unshift(h) : u.path = [h], t.issues?.push(u);
|
|
155
|
+
if (t.issues || (t.issues = a.issues), n.abortEarly) {
|
|
156
|
+
t.typed = !1;
|
|
157
|
+
break;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
a.typed || (t.typed = !1), t.value[s] = a.value;
|
|
161
|
+
} else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */ L(i);
|
|
162
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (m(this, "key", t, n, {
|
|
163
|
+
input: void 0,
|
|
164
|
+
expected: `"${s}"`,
|
|
165
|
+
path: [{
|
|
166
|
+
type: "object",
|
|
167
|
+
origin: "key",
|
|
168
|
+
input: o,
|
|
169
|
+
key: s,
|
|
170
|
+
value: o[s]
|
|
171
|
+
}]
|
|
172
|
+
}), n.abortEarly))
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
} else m(this, "type", t, n);
|
|
176
|
+
return t;
|
|
177
|
+
}
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
// @__NO_SIDE_EFFECTS__
|
|
181
|
+
function g(e, r) {
|
|
182
|
+
return {
|
|
183
|
+
kind: "schema",
|
|
184
|
+
type: "optional",
|
|
185
|
+
reference: g,
|
|
186
|
+
expects: `(${e.expects} | undefined)`,
|
|
187
|
+
async: !1,
|
|
188
|
+
wrapped: e,
|
|
189
|
+
default: r,
|
|
190
|
+
get "~standard"() {
|
|
191
|
+
return /* @__PURE__ */ b(this);
|
|
192
|
+
},
|
|
193
|
+
"~run"(t, n) {
|
|
194
|
+
return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ D(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
}
|
|
198
|
+
// @__NO_SIDE_EFFECTS__
|
|
199
|
+
function c(e) {
|
|
200
|
+
return {
|
|
201
|
+
kind: "schema",
|
|
202
|
+
type: "string",
|
|
203
|
+
reference: c,
|
|
204
|
+
expects: "string",
|
|
205
|
+
async: !1,
|
|
206
|
+
message: e,
|
|
207
|
+
get "~standard"() {
|
|
208
|
+
return /* @__PURE__ */ b(this);
|
|
209
|
+
},
|
|
210
|
+
"~run"(r, t) {
|
|
211
|
+
return typeof r.value == "string" ? r.typed = !0 : m(this, "type", r, t), r;
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
// @__NO_SIDE_EFFECTS__
|
|
216
|
+
function I(e) {
|
|
217
|
+
let r;
|
|
218
|
+
if (e) for (const t of e) r ? r.push(...t.issues) : r = t.issues;
|
|
219
|
+
return r;
|
|
220
|
+
}
|
|
221
|
+
// @__NO_SIDE_EFFECTS__
|
|
222
|
+
function M(e, r) {
|
|
223
|
+
return {
|
|
224
|
+
kind: "schema",
|
|
225
|
+
type: "union",
|
|
226
|
+
reference: M,
|
|
227
|
+
expects: /* @__PURE__ */ G(e.map((t) => t.expects), "|"),
|
|
228
|
+
async: !1,
|
|
229
|
+
options: e,
|
|
230
|
+
message: r,
|
|
231
|
+
get "~standard"() {
|
|
232
|
+
return /* @__PURE__ */ b(this);
|
|
233
|
+
},
|
|
234
|
+
"~run"(t, n) {
|
|
235
|
+
let o, s, i;
|
|
236
|
+
for (const p of this.options) {
|
|
237
|
+
const a = p["~run"]({ value: t.value }, n);
|
|
238
|
+
if (a.typed) if (a.issues) s ? s.push(a) : s = [a];
|
|
239
|
+
else {
|
|
240
|
+
o = a;
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
else i ? i.push(a) : i = [a];
|
|
244
|
+
}
|
|
245
|
+
if (o) return o;
|
|
246
|
+
if (s) {
|
|
247
|
+
if (s.length === 1) return s[0];
|
|
248
|
+
m(this, "type", t, n, { issues: /* @__PURE__ */ I(s) }), t.typed = !0;
|
|
249
|
+
} else {
|
|
250
|
+
if (i?.length === 1) return i[0];
|
|
251
|
+
m(this, "type", t, n, { issues: /* @__PURE__ */ I(i) });
|
|
252
|
+
}
|
|
253
|
+
return t;
|
|
254
|
+
}
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @__PURE__ */ S({
|
|
258
|
+
"en-au": /* @__PURE__ */ g(/* @__PURE__ */ c()),
|
|
259
|
+
"en-gb": /* @__PURE__ */ g(/* @__PURE__ */ c()),
|
|
260
|
+
"en-us": /* @__PURE__ */ g(/* @__PURE__ */ c()),
|
|
261
|
+
"es-es": /* @__PURE__ */ g(/* @__PURE__ */ c())
|
|
262
|
+
}), V = f(["amber", "green", "red", "other"]), W = f([
|
|
263
|
+
"alpha",
|
|
264
|
+
"beta",
|
|
265
|
+
"generalAvailability",
|
|
266
|
+
"notApplicable",
|
|
267
|
+
"preAlpha",
|
|
268
|
+
"proposed",
|
|
269
|
+
"releaseCandidate",
|
|
270
|
+
"unavailable",
|
|
271
|
+
"underReview"
|
|
272
|
+
]), H = f([
|
|
273
|
+
"app",
|
|
274
|
+
"connector",
|
|
275
|
+
"connectorConnection",
|
|
276
|
+
"context",
|
|
277
|
+
"contextModelGroup",
|
|
278
|
+
"contextModel",
|
|
279
|
+
"contextModelDimensionGroup",
|
|
280
|
+
"contextModelDimension",
|
|
281
|
+
"contextModelDimensionHierarchy",
|
|
282
|
+
"contextModelEntityGroup",
|
|
283
|
+
"contextModelEntity",
|
|
284
|
+
"contextModelEntityDataItem",
|
|
285
|
+
"contextModelEntityEvent",
|
|
286
|
+
"contextModelEntityPrimaryMeasure",
|
|
287
|
+
"contextModelSecondaryMeasureGroup",
|
|
288
|
+
"contextModelSecondaryMeasure",
|
|
289
|
+
"dataView",
|
|
290
|
+
"dimension",
|
|
291
|
+
"engine",
|
|
292
|
+
"eventQuery",
|
|
293
|
+
"presenter",
|
|
294
|
+
"presenterPresentation",
|
|
295
|
+
"tool"
|
|
296
|
+
]);
|
|
297
|
+
f(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
298
|
+
const X = /* @__PURE__ */ S({
|
|
299
|
+
id: /* @__PURE__ */ c(),
|
|
300
|
+
color: V,
|
|
301
|
+
label: /* @__PURE__ */ c()
|
|
302
|
+
}), z = {
|
|
303
|
+
id: /* @__PURE__ */ c(),
|
|
304
|
+
label: O,
|
|
305
|
+
description: O,
|
|
306
|
+
firstCreatedAt: /* @__PURE__ */ g(/* @__PURE__ */ k()),
|
|
307
|
+
icon: /* @__PURE__ */ E(/* @__PURE__ */ c()),
|
|
308
|
+
iconDark: /* @__PURE__ */ E(/* @__PURE__ */ c()),
|
|
309
|
+
lastUpdatedAt: /* @__PURE__ */ E(/* @__PURE__ */ k()),
|
|
310
|
+
status: /* @__PURE__ */ E(X),
|
|
311
|
+
statusId: W
|
|
312
|
+
}, Z = /* @__PURE__ */ S({
|
|
313
|
+
...z,
|
|
314
|
+
typeId: H
|
|
315
|
+
}), J = [
|
|
316
|
+
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
317
|
+
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
318
|
+
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
319
|
+
{ id: "notApplicable", color: "green", label: { "en-gb": "not-applicable" } },
|
|
320
|
+
{ id: "preAlpha", color: "red", label: { "en-gb": "pre-alpha" } },
|
|
321
|
+
{ id: "proposed", color: "other", label: { "en-gb": "proposed" } },
|
|
322
|
+
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
323
|
+
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
324
|
+
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
325
|
+
], ee = (e, r = d) => {
|
|
326
|
+
const t = J.find((n) => n.id === e);
|
|
327
|
+
return t ? { ...t, label: t.label[r] || t.label[d] || e } : { id: e, color: "other", label: e };
|
|
328
|
+
};
|
|
329
|
+
f(["application", "curatedDataset", "database", "fileStore"]);
|
|
330
|
+
f([
|
|
331
|
+
"abortOperation",
|
|
332
|
+
"authenticateConnection",
|
|
333
|
+
"createObject",
|
|
334
|
+
"describeConnection",
|
|
335
|
+
"dropObject",
|
|
336
|
+
"findObject",
|
|
337
|
+
"getRecord",
|
|
338
|
+
"listNodes",
|
|
339
|
+
"previewObject",
|
|
340
|
+
"removeRecords",
|
|
341
|
+
"retrieveRecords",
|
|
342
|
+
"upsertRecords"
|
|
343
|
+
]);
|
|
344
|
+
f(["bidirectional", "destination", "source", "unknown"]);
|
|
345
|
+
f(["apiKey", "disabled", "oAuth2", "none"]);
|
|
346
|
+
const te = ["createObject", "dropObject", "removeRecords", "upsertRecords"], re = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
|
|
347
|
+
function ne() {
|
|
348
|
+
function e(r, t, n) {
|
|
349
|
+
n.textContent = "Cytoscape.js diagram goes here...";
|
|
5
350
|
}
|
|
6
351
|
return { render: e };
|
|
7
352
|
}
|
|
8
|
-
function
|
|
9
|
-
function e(
|
|
10
|
-
console.log(1111,
|
|
353
|
+
function oe() {
|
|
354
|
+
function e(r, t) {
|
|
355
|
+
console.log(1111, r), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
|
|
11
356
|
}
|
|
12
357
|
return { render: e };
|
|
13
358
|
}
|
|
14
|
-
const
|
|
15
|
-
class
|
|
359
|
+
const se = 0, ie = (e) => e, ae = () => Date.now();
|
|
360
|
+
class N extends Error {
|
|
16
361
|
locator;
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
362
|
+
constructor(r, t, n) {
|
|
363
|
+
super(r, n), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
|
|
19
364
|
}
|
|
20
365
|
}
|
|
21
|
-
class
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
366
|
+
class y extends N {
|
|
367
|
+
constructor(r, t, n) {
|
|
368
|
+
super(r, t, n), this.name = "ApplicationError";
|
|
24
369
|
}
|
|
25
370
|
}
|
|
26
|
-
class
|
|
27
|
-
constructor(
|
|
28
|
-
super(
|
|
371
|
+
class le extends y {
|
|
372
|
+
constructor(r, t, n) {
|
|
373
|
+
super(r, t, n), this.name = "APIError";
|
|
29
374
|
}
|
|
30
375
|
}
|
|
31
|
-
class
|
|
32
|
-
constructor(
|
|
33
|
-
super(
|
|
376
|
+
class ce extends y {
|
|
377
|
+
constructor(r, t, n) {
|
|
378
|
+
super(r, t, n), this.name = "EngineError";
|
|
34
379
|
}
|
|
35
380
|
}
|
|
36
|
-
class
|
|
381
|
+
class $ extends y {
|
|
37
382
|
body;
|
|
38
|
-
constructor(
|
|
39
|
-
super(
|
|
383
|
+
constructor(r, t, n, o) {
|
|
384
|
+
super(r, t, o), this.name = "FetchError", this.body = n;
|
|
40
385
|
}
|
|
41
386
|
}
|
|
42
|
-
class
|
|
387
|
+
class K extends y {
|
|
43
388
|
componentName;
|
|
44
389
|
info;
|
|
45
|
-
constructor(
|
|
46
|
-
super(
|
|
390
|
+
constructor(r, t, n, o, s) {
|
|
391
|
+
super(r, t, s), this.name = "VueHandledError", this.info = n, this.componentName = o;
|
|
47
392
|
}
|
|
48
393
|
}
|
|
49
|
-
class
|
|
50
|
-
constructor(
|
|
51
|
-
super(
|
|
394
|
+
class ue extends y {
|
|
395
|
+
constructor(r, t, n) {
|
|
396
|
+
super(r, t, n), this.name = "WindowHandledRuntimeError";
|
|
52
397
|
}
|
|
53
398
|
}
|
|
54
|
-
class
|
|
55
|
-
constructor(
|
|
56
|
-
super(
|
|
399
|
+
class de extends y {
|
|
400
|
+
constructor(r, t, n) {
|
|
401
|
+
super(r, t, n), this.name = "WindowHandledPromiseRejectionError";
|
|
57
402
|
}
|
|
58
403
|
}
|
|
59
|
-
class
|
|
60
|
-
constructor(
|
|
61
|
-
super(
|
|
404
|
+
class fe extends N {
|
|
405
|
+
constructor(r, t, n) {
|
|
406
|
+
super(r, t, n), this.name = "OperationalError";
|
|
62
407
|
}
|
|
63
408
|
}
|
|
64
|
-
async function
|
|
65
|
-
const
|
|
66
|
-
return new
|
|
409
|
+
async function pe(e, r, t) {
|
|
410
|
+
const n = `${r} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
|
|
411
|
+
return new $(n, t, o);
|
|
67
412
|
}
|
|
68
|
-
function
|
|
69
|
-
return e.map((
|
|
413
|
+
function me(e) {
|
|
414
|
+
return e.map((r) => r.message).join(" ");
|
|
70
415
|
}
|
|
71
|
-
function
|
|
416
|
+
function be(e) {
|
|
72
417
|
if (e instanceof Error) return e;
|
|
73
418
|
if (typeof e == "string") return new Error(e);
|
|
74
419
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return new Error(String(e));
|
|
@@ -81,28 +426,28 @@ function R(e) {
|
|
|
81
426
|
}
|
|
82
427
|
return new Error("Unknown error");
|
|
83
428
|
}
|
|
84
|
-
function
|
|
85
|
-
const
|
|
86
|
-
let
|
|
87
|
-
for (;
|
|
88
|
-
|
|
429
|
+
function ge(e) {
|
|
430
|
+
const r = /* @__PURE__ */ new Set(), t = [];
|
|
431
|
+
let n = e;
|
|
432
|
+
for (; n && !r.has(n); ) {
|
|
433
|
+
r.add(n);
|
|
89
434
|
let o;
|
|
90
|
-
if (
|
|
91
|
-
o = { body:
|
|
92
|
-
else if (
|
|
93
|
-
o = { componentName:
|
|
94
|
-
else if (
|
|
95
|
-
o = { locator:
|
|
96
|
-
else if (
|
|
97
|
-
const s =
|
|
98
|
-
o = { locator: "", message: s.message, name: s.name, stack: s.stack },
|
|
99
|
-
} else
|
|
435
|
+
if (n instanceof $)
|
|
436
|
+
o = { body: n.body, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
437
|
+
else if (n instanceof K)
|
|
438
|
+
o = { componentName: n.componentName, info: n.info, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
439
|
+
else if (n instanceof N)
|
|
440
|
+
o = { locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
|
|
441
|
+
else if (n instanceof Error) {
|
|
442
|
+
const s = n;
|
|
443
|
+
o = { locator: "", message: s.message, name: s.name, stack: s.stack }, n = s.cause;
|
|
444
|
+
} else n ? (o = { locator: "", message: String(n), name: "Error" }, n = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, n = void 0);
|
|
100
445
|
/(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), t.push(o);
|
|
101
446
|
}
|
|
102
447
|
return t;
|
|
103
448
|
}
|
|
104
|
-
const
|
|
105
|
-
function
|
|
449
|
+
const A = "en-US", v = {};
|
|
450
|
+
function ye(e) {
|
|
106
451
|
switch (e) {
|
|
107
452
|
case "Edm.Binary":
|
|
108
453
|
return "unknown";
|
|
@@ -142,54 +487,54 @@ function B(e) {
|
|
|
142
487
|
return "unknown";
|
|
143
488
|
}
|
|
144
489
|
}
|
|
145
|
-
function
|
|
490
|
+
function he(e) {
|
|
146
491
|
if (e) {
|
|
147
|
-
const
|
|
492
|
+
const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r > -1 ? r : e.length);
|
|
148
493
|
return t > -1 ? e.substring(0, t) : e;
|
|
149
494
|
}
|
|
150
495
|
}
|
|
151
|
-
function
|
|
496
|
+
function Ee(e) {
|
|
152
497
|
if (e) {
|
|
153
|
-
const
|
|
154
|
-
if (
|
|
498
|
+
const r = e.lastIndexOf(".");
|
|
499
|
+
if (r > -1) return e.substring(r + 1);
|
|
155
500
|
}
|
|
156
501
|
}
|
|
157
|
-
function
|
|
502
|
+
function l(e, r = 2, t = r, n = A) {
|
|
158
503
|
if (e == null) return "";
|
|
159
|
-
const o = `${
|
|
160
|
-
let s =
|
|
161
|
-
return s || (s = new Intl.NumberFormat(
|
|
504
|
+
const o = `${n}decimal${r}.${t}`;
|
|
505
|
+
let s = v[o];
|
|
506
|
+
return s || (s = new Intl.NumberFormat(n, {
|
|
162
507
|
localeMatcher: "best fit",
|
|
163
|
-
maximumFractionDigits:
|
|
508
|
+
maximumFractionDigits: r,
|
|
164
509
|
minimumFractionDigits: t,
|
|
165
510
|
minimumIntegerDigits: 1,
|
|
166
511
|
style: "decimal",
|
|
167
512
|
useGrouping: !0
|
|
168
|
-
}),
|
|
513
|
+
}), v[o] = s), s.format(e);
|
|
169
514
|
}
|
|
170
|
-
function
|
|
171
|
-
return e == null ? "" : e < 1e3 ?
|
|
515
|
+
function ve(e) {
|
|
516
|
+
return e == null ? "" : e < 1e3 ? x(e) : e < 1e6 ? `${l(e / 1e3, 2, 0)}K` : e < 1e9 ? `${l(e / 1e6, 2, 0)}M` : e < 1e12 ? `${l(e / 1e9, 2, 0)}B` : `${l(e / 1e12, 2, 0)}T`;
|
|
172
517
|
}
|
|
173
|
-
function
|
|
174
|
-
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${
|
|
518
|
+
function xe(e) {
|
|
519
|
+
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${x(e)} bytes` : e < 1048576 ? `${l(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${l(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${l(e / 1073741824, 2, 0)} GB` : `${l(e / 1099511627776, 2, 0)} TB`;
|
|
175
520
|
}
|
|
176
|
-
function
|
|
177
|
-
return e == null ? "" : e < 1e3 ? `${
|
|
521
|
+
function Se(e) {
|
|
522
|
+
return e == null ? "" : e < 1e3 ? `${x(e)} ms` : e === 1e3 ? `${x(e)} sec` : e < 6e4 ? `${l(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${l(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${l(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${l(e / 864e5, 2, 0)} days`;
|
|
178
523
|
}
|
|
179
|
-
function
|
|
524
|
+
function x(e, r = A) {
|
|
180
525
|
if (e == null) return "";
|
|
181
|
-
const t = `${
|
|
182
|
-
let
|
|
183
|
-
return
|
|
526
|
+
const t = `${r}decimal0.0`;
|
|
527
|
+
let n = v[t];
|
|
528
|
+
return n || (n = new Intl.NumberFormat(r, {
|
|
184
529
|
localeMatcher: "best fit",
|
|
185
530
|
maximumFractionDigits: 0,
|
|
186
531
|
minimumFractionDigits: 0,
|
|
187
532
|
minimumIntegerDigits: 1,
|
|
188
533
|
style: "decimal",
|
|
189
534
|
useGrouping: !0
|
|
190
|
-
}),
|
|
535
|
+
}), v[t] = n), n.format(e);
|
|
191
536
|
}
|
|
192
|
-
function
|
|
537
|
+
function we(e) {
|
|
193
538
|
switch (e) {
|
|
194
539
|
case "csv":
|
|
195
540
|
return "text/csv";
|
|
@@ -204,7 +549,7 @@ function W(e) {
|
|
|
204
549
|
return "application/octet-stream";
|
|
205
550
|
}
|
|
206
551
|
}
|
|
207
|
-
const
|
|
552
|
+
const q = [
|
|
208
553
|
{ id: "dtv", label: { "en-gb": "Delimited Text" } },
|
|
209
554
|
{ id: "e/e", label: { "en-gb": "Entity/Event" } },
|
|
210
555
|
{ id: "jsonArray", label: { "en-gb": "JSON Array" } },
|
|
@@ -212,22 +557,22 @@ const b = [
|
|
|
212
557
|
{ id: "xls", label: { "en-gb": "XLS" } },
|
|
213
558
|
{ id: "xlsx", label: { "en-gb": "XLSX" } },
|
|
214
559
|
{ id: "xml", label: { "en-gb": "XML" } }
|
|
215
|
-
],
|
|
216
|
-
const
|
|
217
|
-
for (const t of
|
|
218
|
-
return
|
|
219
|
-
},
|
|
560
|
+
], ke = (e = d) => {
|
|
561
|
+
const r = [];
|
|
562
|
+
for (const t of q) r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
563
|
+
return r;
|
|
564
|
+
}, Q = [
|
|
220
565
|
{ id: `
|
|
221
566
|
`, label: { "en-gb": "Newline" } },
|
|
222
567
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
223
568
|
{ id: `\r
|
|
224
569
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
225
|
-
],
|
|
226
|
-
const
|
|
227
|
-
for (const t of
|
|
228
|
-
|
|
229
|
-
return
|
|
230
|
-
},
|
|
570
|
+
], De = (e = d) => {
|
|
571
|
+
const r = [];
|
|
572
|
+
for (const t of Q)
|
|
573
|
+
r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
574
|
+
return r;
|
|
575
|
+
}, Y = [
|
|
231
576
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
232
577
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
233
578
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -239,57 +584,45 @@ const b = [
|
|
|
239
584
|
{ id: "_", label: { "en-gb": "Underscore" } },
|
|
240
585
|
{ id: "0x1F", label: { "en-gb": "Unit Separator" } },
|
|
241
586
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
242
|
-
],
|
|
243
|
-
const
|
|
244
|
-
for (const t of
|
|
245
|
-
|
|
246
|
-
return
|
|
247
|
-
},
|
|
248
|
-
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
249
|
-
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
250
|
-
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
251
|
-
{ id: "notApplicable", color: "green", label: { "en-gb": "not-applicable" } },
|
|
252
|
-
{ id: "preAlpha", color: "red", label: { "en-gb": "pre-alpha" } },
|
|
253
|
-
{ id: "proposed", color: "other", label: { "en-gb": "proposed" } },
|
|
254
|
-
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
255
|
-
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
256
|
-
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
257
|
-
], z = (e, n = i) => {
|
|
258
|
-
const t = h.find((r) => r.id === e);
|
|
259
|
-
return t ? { ...t, label: t.label[n] || t.label[i] || e } : { id: e, color: "other", label: e };
|
|
260
|
-
}, i = "en-gb";
|
|
587
|
+
], Ne = (e = d) => {
|
|
588
|
+
const r = [];
|
|
589
|
+
for (const t of Y)
|
|
590
|
+
r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
|
|
591
|
+
return r;
|
|
592
|
+
}, d = "en-gb";
|
|
261
593
|
export {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
594
|
+
le as APIError,
|
|
595
|
+
y as ApplicationError,
|
|
596
|
+
te as CONNECTOR_DESTINATION_OPERATIONS,
|
|
597
|
+
re as CONNECTOR_SOURCE_OPERATIONS,
|
|
598
|
+
d as DEFAULT_LOCALE_CODE,
|
|
599
|
+
se as DefaultTimestamp,
|
|
600
|
+
ce as EngineError,
|
|
601
|
+
$ as FetchError,
|
|
602
|
+
fe as OperationalError,
|
|
603
|
+
K as VueError,
|
|
604
|
+
de as WindowPromiseRejectionError,
|
|
605
|
+
ue as WindowRuntimeError,
|
|
606
|
+
pe as buildFetchError,
|
|
607
|
+
Z as componentConfigSchema,
|
|
608
|
+
me as concatenateSerialisedErrorMessages,
|
|
609
|
+
ie as convertMillisecondsToTimestamp,
|
|
610
|
+
ye as convertODataTypeIdToUsageTypeId,
|
|
611
|
+
Ee as extractExtensionFromPath,
|
|
612
|
+
he as extractNameFromPath,
|
|
613
|
+
l as formatNumberAsDecimalNumber,
|
|
614
|
+
Se as formatNumberAsDuration,
|
|
615
|
+
ve as formatNumberAsSize,
|
|
616
|
+
xe as formatNumberAsStorageSize,
|
|
617
|
+
x as formatNumberAsWholeNumber,
|
|
618
|
+
ee as getComponentStatus,
|
|
619
|
+
ae as getCurrentTimestamp,
|
|
620
|
+
ke as getDataFormats,
|
|
621
|
+
De as getRecordDelimiters,
|
|
622
|
+
Ne as getValueDelimiters,
|
|
623
|
+
we as lookupMimeTypeForExtension,
|
|
624
|
+
be as normalizeToError,
|
|
625
|
+
ge as serialiseError,
|
|
626
|
+
ne as useCytoscapeJS,
|
|
627
|
+
oe as useDataTable
|
|
295
628
|
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export declare const literalUnion: <const T extends readonly string[]>(values: T) => import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
2
|
+
export declare const localisedStringSchema: import('valibot').ObjectSchema<{
|
|
3
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
4
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
6
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
export declare const partialLocalisedStringSchema: import('valibot').ObjectSchema<{
|
|
9
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
export declare const statusColorIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
15
|
+
export declare const componentStatusIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
16
|
+
export declare const componentTypeIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
17
|
+
export declare const moduleTypeIdSchema: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
18
|
+
export declare const componentStatusSchema: import('valibot').ObjectSchema<{
|
|
19
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
20
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
21
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
22
|
+
}, undefined>;
|
|
23
|
+
export declare const componentConfigCoreFields: {
|
|
24
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
25
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
26
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
32
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
38
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
42
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
43
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
44
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
47
|
+
};
|
|
48
|
+
export declare const componentConfigSchema: import('valibot').ObjectSchema<{
|
|
49
|
+
readonly typeId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
50
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
51
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
52
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
53
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
57
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
58
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
59
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
|
+
}, undefined>;
|
|
63
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
64
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
65
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
67
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
68
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
69
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
70
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
71
|
+
}, undefined>, undefined>;
|
|
72
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
73
|
+
}, undefined>;
|
|
74
|
+
export declare const moduleConfigCoreFields: {
|
|
75
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
76
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
77
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
78
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
80
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
81
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
82
|
+
}, undefined>;
|
|
83
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
84
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
86
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
88
|
+
}, undefined>;
|
|
89
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
90
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
91
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
92
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
93
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
94
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
95
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
96
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
97
|
+
}, undefined>, undefined>;
|
|
98
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
99
|
+
};
|
|
100
|
+
export declare const moduleConfigSchema: import('valibot').ObjectSchema<{
|
|
101
|
+
readonly typeId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
102
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
103
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
104
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
105
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
107
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
109
|
+
}, undefined>;
|
|
110
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
111
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
112
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
113
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
114
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
117
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
118
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
119
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
120
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
121
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
122
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
123
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
124
|
+
}, undefined>, undefined>;
|
|
125
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
126
|
+
}, undefined>;
|
|
127
|
+
export declare const componentRefSchema: import('valibot').ObjectSchema<{
|
|
128
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
129
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
130
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
131
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
133
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
134
|
+
}, undefined>;
|
|
135
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
136
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
137
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
138
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
139
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
140
|
+
}, undefined>;
|
|
141
|
+
readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
142
|
+
readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
143
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
144
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
145
|
+
}, undefined>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare const connectorConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"connector", undefined>;
|
|
3
|
+
readonly category: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
6
|
+
}, undefined>, undefined>;
|
|
7
|
+
readonly categoryId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
8
|
+
readonly implementations: import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').ObjectSchema<{
|
|
9
|
+
readonly authMethodId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
10
|
+
readonly activeConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
11
|
+
readonly canDescribe: import('valibot').OptionalSchema<import('valibot').BooleanSchema<undefined>, undefined>;
|
|
12
|
+
readonly id: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly label: import('valibot').OptionalSchema<import('valibot').ObjectSchema<{
|
|
14
|
+
readonly 'en-au': import('valibot').StringSchema<undefined>;
|
|
15
|
+
readonly 'en-gb': import('valibot').StringSchema<undefined>;
|
|
16
|
+
readonly 'en-us': import('valibot').StringSchema<undefined>;
|
|
17
|
+
readonly 'es-es': import('valibot').StringSchema<undefined>;
|
|
18
|
+
}, undefined>, undefined>;
|
|
19
|
+
readonly maxConnectionCount: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
20
|
+
readonly params: import('valibot').OptionalSchema<import('valibot').ArraySchema<import('valibot').RecordSchema<import('valibot').StringSchema<undefined>, import('valibot').StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
23
|
+
readonly usageId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
24
|
+
readonly vendorAccountURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
25
|
+
readonly vendorDocumentationURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
26
|
+
readonly vendorHomeURL: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
28
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
29
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
30
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
32
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
}, undefined>;
|
|
35
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
36
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
37
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
38
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
}, undefined>;
|
|
41
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
44
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
45
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
46
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
47
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
48
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
51
|
+
}, undefined>;
|
|
@@ -7,6 +7,10 @@ import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from '.
|
|
|
7
7
|
import { convertMillisecondsToTimestamp, LocalisedString } from '../../index';
|
|
8
8
|
import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
|
|
9
9
|
import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '../../utilities';
|
|
10
|
+
/**
|
|
11
|
+
* Connector composables, constants, errors, types/interfaces and utilities.
|
|
12
|
+
*/
|
|
13
|
+
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
10
14
|
type ConnectorModuleCategoryId = 'application' | 'curatedDataset' | 'database' | 'fileStore';
|
|
11
15
|
export type ConnectorOperation = 'abortOperation' | 'authenticateConnection' | 'createObject' | 'describeConnection' | 'dropObject' | 'findObject' | 'getRecord' | 'listNodes' | 'previewObject' | 'removeRecords' | 'retrieveRecords' | 'upsertRecords';
|
|
12
16
|
export type ConnectorUsageId = 'bidirectional' | 'destination' | 'source' | 'unknown';
|
|
@@ -167,4 +171,3 @@ type ConnectorCategory = {
|
|
|
167
171
|
id: string;
|
|
168
172
|
label: string;
|
|
169
173
|
};
|
|
170
|
-
export {};
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
export declare const contextConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"context", undefined>;
|
|
3
|
+
readonly models: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly typeId: import('valibot').LiteralSchema<"contextModelGroup", undefined>;
|
|
5
|
+
readonly modelRefs: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
6
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
7
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
8
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
11
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
14
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
17
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
}, undefined>;
|
|
19
|
+
readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
21
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
22
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
23
|
+
}, undefined>, undefined>;
|
|
24
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
25
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
26
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
27
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
33
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
37
|
+
}, undefined>;
|
|
38
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
39
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
41
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
42
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
43
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
44
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
45
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
46
|
+
}, undefined>, undefined>;
|
|
47
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
48
|
+
}, undefined>, undefined>;
|
|
49
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
50
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
51
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
52
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
53
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
54
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
55
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
59
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
60
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
63
|
+
}, undefined>;
|
|
64
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
65
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
66
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
67
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
68
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
69
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
70
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
71
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
72
|
+
}, undefined>, undefined>;
|
|
73
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
74
|
+
}, undefined>;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { LocalisedString } from '../../index';
|
|
2
2
|
import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
|
|
3
|
+
/**
|
|
4
|
+
* Context composables, constants, errors, types/interfaces and utilities.
|
|
5
|
+
*/
|
|
6
|
+
export { contextConfigSchema } from './contextConfig.schema';
|
|
3
7
|
export interface Context extends Component {
|
|
4
8
|
readonly config: ContextConfig;
|
|
5
9
|
list(settings?: ContextListSettings): Promise<ContextListResult>;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { InferInput } from 'valibot';
|
|
2
|
+
import { componentConfigSchema } from './componentConfig.schema';
|
|
1
3
|
import { LocaleCode, LocalisedString, StatusColorId } from '../index';
|
|
4
|
+
export { componentConfigSchema };
|
|
5
|
+
export type ComponentConfig2 = InferInput<typeof componentConfigSchema>;
|
|
2
6
|
export interface Component {
|
|
3
7
|
readonly config: ComponentConfig;
|
|
4
8
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Component, ComponentRef, ModuleConfig } from '..';
|
|
2
|
+
/**
|
|
3
|
+
* Presenter composables, constants, errors, types/interfaces and utilities.
|
|
4
|
+
*/
|
|
5
|
+
export { presenterConfigSchema } from './presenterConfig.schema';
|
|
2
6
|
export interface Presenter extends Component {
|
|
3
7
|
readonly config: PresenterConfig;
|
|
4
8
|
list(): ComponentRef[];
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
|
|
2
|
+
readonly typeId: import('valibot').LiteralSchema<"presenter", undefined>;
|
|
3
|
+
readonly presentations: import('valibot').ArraySchema<import('valibot').ObjectSchema<{
|
|
4
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
5
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
6
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
7
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
8
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
9
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
12
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
13
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
14
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
15
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
16
|
+
}, undefined>;
|
|
17
|
+
readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
18
|
+
readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
19
|
+
readonly order: import('valibot').NumberSchema<undefined>;
|
|
20
|
+
readonly path: import('valibot').StringSchema<undefined>;
|
|
21
|
+
}, undefined>, undefined>;
|
|
22
|
+
readonly operations: import('valibot').ArraySchema<import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>, undefined>;
|
|
23
|
+
readonly version: import('valibot').StringSchema<undefined>;
|
|
24
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
25
|
+
readonly label: import('valibot').ObjectSchema<{
|
|
26
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
27
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
28
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
29
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
31
|
+
readonly description: import('valibot').ObjectSchema<{
|
|
32
|
+
readonly 'en-au': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
33
|
+
readonly 'en-gb': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
34
|
+
readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
readonly firstCreatedAt: import('valibot').OptionalSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
38
|
+
readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
39
|
+
readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly lastUpdatedAt: import('valibot').NullableSchema<import('valibot').NumberSchema<undefined>, undefined>;
|
|
41
|
+
readonly status: import('valibot').NullableSchema<import('valibot').ObjectSchema<{
|
|
42
|
+
readonly id: import('valibot').StringSchema<undefined>;
|
|
43
|
+
readonly color: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
44
|
+
readonly label: import('valibot').StringSchema<undefined>;
|
|
45
|
+
}, undefined>, undefined>;
|
|
46
|
+
readonly statusId: import('valibot').UnionSchema<import('valibot').LiteralSchema<string, undefined>[], undefined>;
|
|
47
|
+
}, undefined>;
|
|
@@ -5,6 +5,7 @@ export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
|
5
5
|
export type LocalisedString = Record<LocaleCode, string>;
|
|
6
6
|
export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
|
|
7
7
|
export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId } from './component';
|
|
8
|
+
export { componentConfigSchema, type ComponentConfig2 } from './component';
|
|
8
9
|
export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
|
|
9
10
|
export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
|
|
10
11
|
export type { AuditContentResult, AuditContentSettings } from './component/connector';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.312",
|
|
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>",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://www.datapos.app",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/data-positioning/datapos-shared.git"
|
|
12
|
+
"url": "git+https://github.com/data-positioning/datapos-shared.git"
|
|
13
13
|
},
|
|
14
14
|
"bugs": {
|
|
15
15
|
"url": "https://github.com/data-positioning/datapos-shared/issues"
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
"nanoid": "^5.1.6"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@datapos/datapos-development": "^0.3.
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
39
|
-
"@typescript-eslint/parser": "^8.
|
|
40
|
-
"eslint": "^9.39.
|
|
36
|
+
"@datapos/datapos-development": "^0.3.389",
|
|
37
|
+
"@types/node": "^25.0.3",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
39
|
+
"@typescript-eslint/parser": "^8.50.0",
|
|
40
|
+
"eslint": "^9.39.2",
|
|
41
41
|
"eslint-plugin-import": "^2.32.0",
|
|
42
42
|
"jiti": "^2.6.1",
|
|
43
43
|
"license-downloader": "^1.3.3",
|
|
@@ -45,22 +45,23 @@
|
|
|
45
45
|
"license-report-check": "^0.1.2",
|
|
46
46
|
"license-report-recursive": "^6.8.2",
|
|
47
47
|
"nanoid": "^5.1.6",
|
|
48
|
-
"npm-check-updates": "^19.
|
|
48
|
+
"npm-check-updates": "^19.2.0",
|
|
49
49
|
"owasp-dependency-check": "^1.0.0",
|
|
50
50
|
"prettier": "^3.7.4",
|
|
51
51
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
52
52
|
"typescript": "^5.9.3",
|
|
53
|
-
"
|
|
53
|
+
"valibot": "^1.2.0",
|
|
54
|
+
"vite": "^7.3.0",
|
|
54
55
|
"vite-plugin-dts": "^4.5.4"
|
|
55
56
|
},
|
|
56
57
|
"scripts": {
|
|
57
|
-
"audit": "node -e \"import('@datapos/datapos-development').then(m => m.auditDependencies())\"",
|
|
58
|
+
"audit": "op run --env-file=.env -- node -e \"import('@datapos/datapos-development').then(m => m.auditDependencies())\"",
|
|
58
59
|
"build": "node -e \"import('@datapos/datapos-development').then(m => m.buildProject())\"",
|
|
59
60
|
"check": "node -e \"import('@datapos/datapos-development').then(m => m.checkDependencies())\"",
|
|
60
|
-
"document": "node -e \"import('@datapos/datapos-development').then(m => m.documentDependencies(['MIT']))\"",
|
|
61
|
+
"document": "op run --env-file=.env -- node -e \"import('@datapos/datapos-development').then(m => m.documentDependencies(['MIT']))\"",
|
|
61
62
|
"format": "node -e \"import('@datapos/datapos-development').then(m => m.formatCode())\"",
|
|
62
63
|
"lint": "node -e \"import('@datapos/datapos-development').then(m => m.lintCode())\"",
|
|
63
|
-
"release": "node -e \"import('@datapos/datapos-development').then(m => m.releaseProject())\"",
|
|
64
|
+
"release": "op run --env-file=.env -- node -e \"import('@datapos/datapos-development').then(m => m.releaseProject())\"",
|
|
64
65
|
"sync": "node -e \"import('@datapos/datapos-development').then(m => m.syncProjectWithGitHub())\"",
|
|
65
66
|
"test": "node -e \"import('@datapos/datapos-development').then(m => m.testProject())\"",
|
|
66
67
|
"update": "node -e \"import('@datapos/datapos-development').then(m => m.updateDataPosDependencies(['development']))\""
|