@datapos/datapos-shared 0.3.403 → 0.3.404
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datapos-shared-component.es.js +3 -3
- package/dist/datapos-shared-connector.es.js +55 -22
- package/dist/datapos-shared.es.js +9 -575
- package/dist/index-5UsJyepS.js +554 -0
- package/dist/types/src/component/connector/index.d.ts +4 -3
- package/dist/types/src/engine/index.d.ts +11 -7
- package/dist/types/src/index.d.ts +0 -6
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { D as a } from "./index-5UsJyepS.js";
|
|
2
|
+
import { c as s } from "./index-5UsJyepS.js";
|
|
3
3
|
const n = [
|
|
4
4
|
{ id: "alpha", color: "red", labels: { "en-gb": "alpha" } },
|
|
5
5
|
{ id: "beta", color: "amber", labels: { "en-gb": "beta" } },
|
|
@@ -20,6 +20,6 @@ function b(l, r = a) {
|
|
|
20
20
|
return { id: l, color: "other", label: l };
|
|
21
21
|
}
|
|
22
22
|
export {
|
|
23
|
-
|
|
23
|
+
s as componentConfigSchema,
|
|
24
24
|
b as getComponentStatus
|
|
25
25
|
};
|
|
@@ -1,27 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { l as s, o as l, n as c, a as b, r as u, b as m, m as p, s as t, d as r, e as d, f as C, g as h, D as g } from "./index-5UsJyepS.js";
|
|
2
|
+
const f = s(["apiKey", "disabled", "oAuth2", "none"]), v = l({
|
|
3
|
+
authMethodId: f,
|
|
4
|
+
activeConnectionCount: r(d()),
|
|
5
|
+
canDescribe: r(h()),
|
|
6
|
+
id: r(t()),
|
|
7
|
+
label: r(C),
|
|
8
|
+
maxConnectionCount: r(d()),
|
|
9
|
+
params: r(b(u(t(), t())))
|
|
10
|
+
}), S = s(["application", "curatedDataset", "database", "fileStore"]), L = s([
|
|
11
|
+
"abortOperation",
|
|
12
|
+
"authenticateConnection",
|
|
13
|
+
"createObject",
|
|
14
|
+
"describeConnection",
|
|
15
|
+
"dropObject",
|
|
16
|
+
"findObjectFolderPath",
|
|
17
|
+
"getReadableStream",
|
|
18
|
+
"getRecord",
|
|
19
|
+
"listNodes",
|
|
20
|
+
"previewObject",
|
|
21
|
+
"removeRecords",
|
|
22
|
+
"retrieveChunks",
|
|
23
|
+
"retrieveRecords",
|
|
24
|
+
"upsertRecords"
|
|
25
|
+
]), y = s(["bidirectional", "destination", "source", "unknown"]), j = l({
|
|
26
|
+
...p,
|
|
27
|
+
typeId: m("connector"),
|
|
28
|
+
category: c(l({ id: t(), label: t() })),
|
|
29
|
+
categoryId: S,
|
|
30
|
+
implementations: u(t(), v),
|
|
31
|
+
operations: b(L),
|
|
32
|
+
usageId: y,
|
|
33
|
+
vendorAccountURL: c(t()),
|
|
34
|
+
vendorDocumentationURL: c(t()),
|
|
35
|
+
vendorHomeURL: c(t())
|
|
36
|
+
}), i = (o) => {
|
|
37
|
+
const n = Object.entries(o).filter((e) => typeof e[1] == "string");
|
|
38
|
+
return new Map(n);
|
|
39
|
+
}, D = [
|
|
40
|
+
{ id: "application", labels: i({ "en-gb": "Application" }) },
|
|
41
|
+
{ id: "curatedDataset", labels: i({ "en-gb": "Curated Dataset" }) },
|
|
42
|
+
{ id: "database", labels: i({ "en-gb": "Database" }) },
|
|
43
|
+
{ id: "fileStore", labels: i({ "en-gb": "File Store" }) }
|
|
44
|
+
], O = (o, n, e = g) => {
|
|
45
|
+
const a = o.get(n);
|
|
46
|
+
if (a !== void 0) return a;
|
|
47
|
+
if (e !== n)
|
|
48
|
+
return o.get(e);
|
|
49
|
+
}, A = (o, n = g) => {
|
|
50
|
+
const e = D.find((a) => a.id === o);
|
|
18
51
|
if (e) {
|
|
19
|
-
const
|
|
20
|
-
return { id: e.id, label:
|
|
52
|
+
const a = O(e.labels, n);
|
|
53
|
+
return { id: e.id, label: a ?? e.id };
|
|
21
54
|
}
|
|
22
|
-
return { id:
|
|
55
|
+
return { id: o, label: o };
|
|
23
56
|
};
|
|
24
57
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
58
|
+
j as connectorConfigSchema,
|
|
59
|
+
A as getConnectorCategory
|
|
27
60
|
};
|
|
@@ -1,577 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
// @__NO_SIDE_EFFECTS__
|
|
3
|
-
function F(n) {
|
|
4
|
-
return {
|
|
5
|
-
lang: n?.lang ?? D?.lang,
|
|
6
|
-
message: n?.message,
|
|
7
|
-
abortEarly: n?.abortEarly ?? D?.abortEarly,
|
|
8
|
-
abortPipeEarly: n?.abortPipeEarly ?? D?.abortPipeEarly
|
|
9
|
-
};
|
|
10
|
-
}
|
|
11
|
-
let U;
|
|
12
|
-
// @__NO_SIDE_EFFECTS__
|
|
13
|
-
function G(n) {
|
|
14
|
-
return U?.get(n);
|
|
15
|
-
}
|
|
16
|
-
let N;
|
|
17
|
-
// @__NO_SIDE_EFFECTS__
|
|
18
|
-
function T(n) {
|
|
19
|
-
return N?.get(n);
|
|
20
|
-
}
|
|
21
|
-
let V;
|
|
22
|
-
// @__NO_SIDE_EFFECTS__
|
|
23
|
-
function z(n, t) {
|
|
24
|
-
return V?.get(n)?.get(t);
|
|
25
|
-
}
|
|
26
|
-
// @__NO_SIDE_EFFECTS__
|
|
27
|
-
function L(n) {
|
|
28
|
-
const t = typeof n;
|
|
29
|
-
return t === "string" ? `"${n}"` : t === "number" || t === "bigint" || t === "boolean" ? `${n}` : t === "object" || t === "function" ? (n && Object.getPrototypeOf(n)?.constructor?.name) ?? "null" : t;
|
|
30
|
-
}
|
|
31
|
-
function h(n, t, e, s, o) {
|
|
32
|
-
const r = o && "input" in o ? o.input : e.value, i = o?.expected ?? n.expects ?? null, c = o?.received ?? /* @__PURE__ */ L(r), l = {
|
|
33
|
-
kind: n.kind,
|
|
34
|
-
type: n.type,
|
|
35
|
-
input: r,
|
|
36
|
-
expected: i,
|
|
37
|
-
received: c,
|
|
38
|
-
message: `Invalid ${t}: ${i ? `Expected ${i} but r` : "R"}eceived ${c}`,
|
|
39
|
-
requirement: n.requirement,
|
|
40
|
-
path: o?.path,
|
|
41
|
-
issues: o?.issues,
|
|
42
|
-
lang: s.lang,
|
|
43
|
-
abortEarly: s.abortEarly,
|
|
44
|
-
abortPipeEarly: s.abortPipeEarly
|
|
45
|
-
}, p = n.kind === "schema", f = o?.message ?? n.message ?? /* @__PURE__ */ z(n.reference, l.lang) ?? (p ? /* @__PURE__ */ T(l.lang) : null) ?? s.message ?? /* @__PURE__ */ G(l.lang);
|
|
46
|
-
f !== void 0 && (l.message = typeof f == "function" ? f(l) : f), p && (e.typed = !1), e.issues ? e.issues.push(l) : e.issues = [l];
|
|
47
|
-
}
|
|
48
|
-
// @__NO_SIDE_EFFECTS__
|
|
49
|
-
function m(n) {
|
|
50
|
-
return {
|
|
51
|
-
version: 1,
|
|
52
|
-
vendor: "valibot",
|
|
53
|
-
validate(t) {
|
|
54
|
-
return n["~run"]({ value: t }, /* @__PURE__ */ F());
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
// @__NO_SIDE_EFFECTS__
|
|
59
|
-
function X(n, t) {
|
|
60
|
-
return Object.hasOwn(n, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
61
|
-
}
|
|
62
|
-
// @__NO_SIDE_EFFECTS__
|
|
63
|
-
function K(n, t) {
|
|
64
|
-
const e = [...new Set(n)];
|
|
65
|
-
return e.length > 1 ? `(${e.join(` ${t} `)})` : e[0] ?? "never";
|
|
66
|
-
}
|
|
67
|
-
// @__NO_SIDE_EFFECTS__
|
|
68
|
-
function q(n, t, e) {
|
|
69
|
-
return typeof n.fallback == "function" ? n.fallback(t, e) : n.fallback;
|
|
70
|
-
}
|
|
71
|
-
// @__NO_SIDE_EFFECTS__
|
|
72
|
-
function M(n, t, e) {
|
|
73
|
-
return typeof n.default == "function" ? n.default(t, e) : n.default;
|
|
74
|
-
}
|
|
75
|
-
// @__NO_SIDE_EFFECTS__
|
|
76
|
-
function v(n, t) {
|
|
77
|
-
return {
|
|
78
|
-
kind: "schema",
|
|
79
|
-
type: "array",
|
|
80
|
-
reference: v,
|
|
81
|
-
expects: "Array",
|
|
82
|
-
async: !1,
|
|
83
|
-
item: n,
|
|
84
|
-
message: t,
|
|
85
|
-
get "~standard"() {
|
|
86
|
-
return /* @__PURE__ */ m(this);
|
|
87
|
-
},
|
|
88
|
-
"~run"(e, s) {
|
|
89
|
-
const o = e.value;
|
|
90
|
-
if (Array.isArray(o)) {
|
|
91
|
-
e.typed = !0, e.value = [];
|
|
92
|
-
for (let r = 0; r < o.length; r++) {
|
|
93
|
-
const i = o[r], c = this.item["~run"]({ value: i }, s);
|
|
94
|
-
if (c.issues) {
|
|
95
|
-
const l = {
|
|
96
|
-
type: "array",
|
|
97
|
-
origin: "value",
|
|
98
|
-
input: o,
|
|
99
|
-
key: r,
|
|
100
|
-
value: i
|
|
101
|
-
};
|
|
102
|
-
for (const p of c.issues)
|
|
103
|
-
p.path ? p.path.unshift(l) : p.path = [l], e.issues?.push(p);
|
|
104
|
-
if (e.issues || (e.issues = c.issues), s.abortEarly) {
|
|
105
|
-
e.typed = !1;
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
c.typed || (e.typed = !1), e.value.push(c.value);
|
|
110
|
-
}
|
|
111
|
-
} else h(this, "type", e, s);
|
|
112
|
-
return e;
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
}
|
|
116
|
-
// @__NO_SIDE_EFFECTS__
|
|
117
|
-
function _(n) {
|
|
118
|
-
return {
|
|
119
|
-
kind: "schema",
|
|
120
|
-
type: "boolean",
|
|
121
|
-
reference: _,
|
|
122
|
-
expects: "boolean",
|
|
123
|
-
async: !1,
|
|
124
|
-
message: n,
|
|
125
|
-
get "~standard"() {
|
|
126
|
-
return /* @__PURE__ */ m(this);
|
|
127
|
-
},
|
|
128
|
-
"~run"(t, e) {
|
|
129
|
-
return typeof t.value == "boolean" ? t.typed = !0 : h(this, "type", t, e), t;
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
// @__NO_SIDE_EFFECTS__
|
|
134
|
-
function k(n, t) {
|
|
135
|
-
return {
|
|
136
|
-
kind: "schema",
|
|
137
|
-
type: "literal",
|
|
138
|
-
reference: k,
|
|
139
|
-
expects: /* @__PURE__ */ L(n),
|
|
140
|
-
async: !1,
|
|
141
|
-
literal: n,
|
|
142
|
-
message: t,
|
|
143
|
-
get "~standard"() {
|
|
144
|
-
return /* @__PURE__ */ m(this);
|
|
145
|
-
},
|
|
146
|
-
"~run"(e, s) {
|
|
147
|
-
return e.value === this.literal ? e.typed = !0 : h(this, "type", e, s), e;
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
// @__NO_SIDE_EFFECTS__
|
|
152
|
-
function b(n, t) {
|
|
153
|
-
return {
|
|
154
|
-
kind: "schema",
|
|
155
|
-
type: "nullable",
|
|
156
|
-
reference: b,
|
|
157
|
-
expects: `(${n.expects} | null)`,
|
|
158
|
-
async: !1,
|
|
159
|
-
wrapped: n,
|
|
160
|
-
default: t,
|
|
161
|
-
get "~standard"() {
|
|
162
|
-
return /* @__PURE__ */ m(this);
|
|
163
|
-
},
|
|
164
|
-
"~run"(e, s) {
|
|
165
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ M(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
166
|
-
}
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
// @__NO_SIDE_EFFECTS__
|
|
170
|
-
function S(n) {
|
|
171
|
-
return {
|
|
172
|
-
kind: "schema",
|
|
173
|
-
type: "number",
|
|
174
|
-
reference: S,
|
|
175
|
-
expects: "number",
|
|
176
|
-
async: !1,
|
|
177
|
-
message: n,
|
|
178
|
-
get "~standard"() {
|
|
179
|
-
return /* @__PURE__ */ m(this);
|
|
180
|
-
},
|
|
181
|
-
"~run"(t, e) {
|
|
182
|
-
return typeof t.value == "number" && !isNaN(t.value) ? t.typed = !0 : h(this, "type", t, e), t;
|
|
183
|
-
}
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
// @__NO_SIDE_EFFECTS__
|
|
187
|
-
function y(n, t) {
|
|
188
|
-
return {
|
|
189
|
-
kind: "schema",
|
|
190
|
-
type: "object",
|
|
191
|
-
reference: y,
|
|
192
|
-
expects: "Object",
|
|
193
|
-
async: !1,
|
|
194
|
-
entries: n,
|
|
195
|
-
message: t,
|
|
196
|
-
get "~standard"() {
|
|
197
|
-
return /* @__PURE__ */ m(this);
|
|
198
|
-
},
|
|
199
|
-
"~run"(e, s) {
|
|
200
|
-
const o = e.value;
|
|
201
|
-
if (o && typeof o == "object") {
|
|
202
|
-
e.typed = !0, e.value = {};
|
|
203
|
-
for (const r in this.entries) {
|
|
204
|
-
const i = this.entries[r];
|
|
205
|
-
if (r in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
206
|
-
const c = r in o ? o[r] : /* @__PURE__ */ M(i), l = i["~run"]({ value: c }, s);
|
|
207
|
-
if (l.issues) {
|
|
208
|
-
const p = {
|
|
209
|
-
type: "object",
|
|
210
|
-
origin: "value",
|
|
211
|
-
input: o,
|
|
212
|
-
key: r,
|
|
213
|
-
value: c
|
|
214
|
-
};
|
|
215
|
-
for (const f of l.issues)
|
|
216
|
-
f.path ? f.path.unshift(p) : f.path = [p], e.issues?.push(f);
|
|
217
|
-
if (e.issues || (e.issues = l.issues), s.abortEarly) {
|
|
218
|
-
e.typed = !1;
|
|
219
|
-
break;
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
l.typed || (e.typed = !1), e.value[r] = l.value;
|
|
223
|
-
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ q(i);
|
|
224
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (h(this, "key", e, s, {
|
|
225
|
-
input: void 0,
|
|
226
|
-
expected: `"${r}"`,
|
|
227
|
-
path: [{
|
|
228
|
-
type: "object",
|
|
229
|
-
origin: "key",
|
|
230
|
-
input: o,
|
|
231
|
-
key: r,
|
|
232
|
-
value: o[r]
|
|
233
|
-
}]
|
|
234
|
-
}), s.abortEarly))
|
|
235
|
-
break;
|
|
236
|
-
}
|
|
237
|
-
} else h(this, "type", e, s);
|
|
238
|
-
return e;
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
}
|
|
242
|
-
// @__NO_SIDE_EFFECTS__
|
|
243
|
-
function d(n, t) {
|
|
244
|
-
return {
|
|
245
|
-
kind: "schema",
|
|
246
|
-
type: "optional",
|
|
247
|
-
reference: d,
|
|
248
|
-
expects: `(${n.expects} | undefined)`,
|
|
249
|
-
async: !1,
|
|
250
|
-
wrapped: n,
|
|
251
|
-
default: t,
|
|
252
|
-
get "~standard"() {
|
|
253
|
-
return /* @__PURE__ */ m(this);
|
|
254
|
-
},
|
|
255
|
-
"~run"(e, s) {
|
|
256
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ M(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
257
|
-
}
|
|
258
|
-
};
|
|
259
|
-
}
|
|
260
|
-
// @__NO_SIDE_EFFECTS__
|
|
261
|
-
function j(n, t, e) {
|
|
262
|
-
return {
|
|
263
|
-
kind: "schema",
|
|
264
|
-
type: "record",
|
|
265
|
-
reference: j,
|
|
266
|
-
expects: "Object",
|
|
267
|
-
async: !1,
|
|
268
|
-
key: n,
|
|
269
|
-
value: t,
|
|
270
|
-
message: e,
|
|
271
|
-
get "~standard"() {
|
|
272
|
-
return /* @__PURE__ */ m(this);
|
|
273
|
-
},
|
|
274
|
-
"~run"(s, o) {
|
|
275
|
-
const r = s.value;
|
|
276
|
-
if (r && typeof r == "object") {
|
|
277
|
-
s.typed = !0, s.value = {};
|
|
278
|
-
for (const i in r) if (/* @__PURE__ */ X(r, i)) {
|
|
279
|
-
const c = r[i], l = this.key["~run"]({ value: i }, o);
|
|
280
|
-
if (l.issues) {
|
|
281
|
-
const f = {
|
|
282
|
-
type: "object",
|
|
283
|
-
origin: "key",
|
|
284
|
-
input: r,
|
|
285
|
-
key: i,
|
|
286
|
-
value: c
|
|
287
|
-
};
|
|
288
|
-
for (const x of l.issues)
|
|
289
|
-
x.path = [f], s.issues?.push(x);
|
|
290
|
-
if (s.issues || (s.issues = l.issues), o.abortEarly) {
|
|
291
|
-
s.typed = !1;
|
|
292
|
-
break;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
const p = this.value["~run"]({ value: c }, o);
|
|
296
|
-
if (p.issues) {
|
|
297
|
-
const f = {
|
|
298
|
-
type: "object",
|
|
299
|
-
origin: "value",
|
|
300
|
-
input: r,
|
|
301
|
-
key: i,
|
|
302
|
-
value: c
|
|
303
|
-
};
|
|
304
|
-
for (const x of p.issues)
|
|
305
|
-
x.path ? x.path.unshift(f) : x.path = [f], s.issues?.push(x);
|
|
306
|
-
if (s.issues || (s.issues = p.issues), o.abortEarly) {
|
|
307
|
-
s.typed = !1;
|
|
308
|
-
break;
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
(!l.typed || !p.typed) && (s.typed = !1), l.typed && (s.value[l.value] = p.value);
|
|
312
|
-
}
|
|
313
|
-
} else h(this, "type", s, o);
|
|
314
|
-
return s;
|
|
315
|
-
}
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
// @__NO_SIDE_EFFECTS__
|
|
319
|
-
function a(n) {
|
|
320
|
-
return {
|
|
321
|
-
kind: "schema",
|
|
322
|
-
type: "string",
|
|
323
|
-
reference: a,
|
|
324
|
-
expects: "string",
|
|
325
|
-
async: !1,
|
|
326
|
-
message: n,
|
|
327
|
-
get "~standard"() {
|
|
328
|
-
return /* @__PURE__ */ m(this);
|
|
329
|
-
},
|
|
330
|
-
"~run"(t, e) {
|
|
331
|
-
return typeof t.value == "string" ? t.typed = !0 : h(this, "type", t, e), t;
|
|
332
|
-
}
|
|
333
|
-
};
|
|
334
|
-
}
|
|
335
|
-
// @__NO_SIDE_EFFECTS__
|
|
336
|
-
function A(n) {
|
|
337
|
-
let t;
|
|
338
|
-
if (n) for (const e of n) t ? t.push(...e.issues) : t = e.issues;
|
|
339
|
-
return t;
|
|
340
|
-
}
|
|
341
|
-
// @__NO_SIDE_EFFECTS__
|
|
342
|
-
function P(n, t) {
|
|
343
|
-
return {
|
|
344
|
-
kind: "schema",
|
|
345
|
-
type: "union",
|
|
346
|
-
reference: P,
|
|
347
|
-
expects: /* @__PURE__ */ K(n.map((e) => e.expects), "|"),
|
|
348
|
-
async: !1,
|
|
349
|
-
options: n,
|
|
350
|
-
message: t,
|
|
351
|
-
get "~standard"() {
|
|
352
|
-
return /* @__PURE__ */ m(this);
|
|
353
|
-
},
|
|
354
|
-
"~run"(e, s) {
|
|
355
|
-
let o, r, i;
|
|
356
|
-
for (const c of this.options) {
|
|
357
|
-
const l = c["~run"]({ value: e.value }, s);
|
|
358
|
-
if (l.typed) if (l.issues) r ? r.push(l) : r = [l];
|
|
359
|
-
else {
|
|
360
|
-
o = l;
|
|
361
|
-
break;
|
|
362
|
-
}
|
|
363
|
-
else i ? i.push(l) : i = [l];
|
|
364
|
-
}
|
|
365
|
-
if (o) return o;
|
|
366
|
-
if (r) {
|
|
367
|
-
if (r.length === 1) return r[0];
|
|
368
|
-
h(this, "type", e, s, { issues: /* @__PURE__ */ A(r) }), e.typed = !0;
|
|
369
|
-
} else {
|
|
370
|
-
if (i?.length === 1) return i[0];
|
|
371
|
-
h(this, "type", e, s, { issues: /* @__PURE__ */ A(i) });
|
|
372
|
-
}
|
|
373
|
-
return e;
|
|
374
|
-
}
|
|
375
|
-
};
|
|
376
|
-
}
|
|
377
|
-
const g = (n) => /* @__PURE__ */ P(n.map((t) => /* @__PURE__ */ k(t))), H = /* @__PURE__ */ y({
|
|
378
|
-
"en-au": /* @__PURE__ */ a(),
|
|
379
|
-
"en-gb": /* @__PURE__ */ a(),
|
|
380
|
-
"en-us": /* @__PURE__ */ a(),
|
|
381
|
-
"es-es": /* @__PURE__ */ a()
|
|
382
|
-
}), C = /* @__PURE__ */ y({
|
|
383
|
-
"en-au": /* @__PURE__ */ d(/* @__PURE__ */ a()),
|
|
384
|
-
"en-gb": /* @__PURE__ */ d(/* @__PURE__ */ a()),
|
|
385
|
-
"en-us": /* @__PURE__ */ d(/* @__PURE__ */ a()),
|
|
386
|
-
"es-es": /* @__PURE__ */ d(/* @__PURE__ */ a())
|
|
387
|
-
}), J = g(["amber", "green", "red", "other"]), B = g([
|
|
388
|
-
"alpha",
|
|
389
|
-
"beta",
|
|
390
|
-
"generalAvailability",
|
|
391
|
-
"notApplicable",
|
|
392
|
-
"preAlpha",
|
|
393
|
-
"proposed",
|
|
394
|
-
"releaseCandidate",
|
|
395
|
-
"unavailable",
|
|
396
|
-
"underReview"
|
|
397
|
-
]), Q = g([
|
|
398
|
-
"app",
|
|
399
|
-
"connector",
|
|
400
|
-
"connectorConnection",
|
|
401
|
-
"context",
|
|
402
|
-
"contextModelGroup",
|
|
403
|
-
"contextModel",
|
|
404
|
-
"contextModelDimensionGroup",
|
|
405
|
-
"contextModelDimension",
|
|
406
|
-
"contextModelDimensionHierarchy",
|
|
407
|
-
"contextModelEntityGroup",
|
|
408
|
-
"contextModelEntity",
|
|
409
|
-
"contextModelEntityDataItem",
|
|
410
|
-
"contextModelEntityEvent",
|
|
411
|
-
"contextModelEntityPrimaryMeasure",
|
|
412
|
-
"contextModelSecondaryMeasureGroup",
|
|
413
|
-
"contextModelSecondaryMeasure",
|
|
414
|
-
"dataView",
|
|
415
|
-
"dimension",
|
|
416
|
-
"engine",
|
|
417
|
-
"eventQuery",
|
|
418
|
-
"presenter",
|
|
419
|
-
"presenterPresentation",
|
|
420
|
-
"tool"
|
|
421
|
-
]), W = /* @__PURE__ */ y({
|
|
422
|
-
id: /* @__PURE__ */ a(),
|
|
423
|
-
color: J,
|
|
424
|
-
label: /* @__PURE__ */ a()
|
|
425
|
-
}), I = {
|
|
426
|
-
id: /* @__PURE__ */ a(),
|
|
427
|
-
label: C,
|
|
428
|
-
description: C,
|
|
429
|
-
firstCreatedAt: /* @__PURE__ */ d(/* @__PURE__ */ S()),
|
|
430
|
-
icon: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
431
|
-
iconDark: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
432
|
-
lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ S()),
|
|
433
|
-
status: /* @__PURE__ */ b(W),
|
|
434
|
-
statusId: B
|
|
435
|
-
}, ce = /* @__PURE__ */ y({
|
|
436
|
-
...I,
|
|
437
|
-
typeId: Q
|
|
438
|
-
}), w = /* @__PURE__ */ y({
|
|
439
|
-
id: /* @__PURE__ */ a(),
|
|
440
|
-
label: C,
|
|
441
|
-
description: C,
|
|
442
|
-
icon: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
443
|
-
iconDark: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
444
|
-
order: /* @__PURE__ */ S(),
|
|
445
|
-
path: /* @__PURE__ */ a()
|
|
446
|
-
});
|
|
447
|
-
g(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
448
|
-
const O = {
|
|
449
|
-
...I,
|
|
450
|
-
version: /* @__PURE__ */ a()
|
|
451
|
-
}, Y = g(["apiKey", "disabled", "oAuth2", "none"]), Z = /* @__PURE__ */ y({
|
|
452
|
-
authMethodId: Y,
|
|
453
|
-
activeConnectionCount: /* @__PURE__ */ d(/* @__PURE__ */ S()),
|
|
454
|
-
canDescribe: /* @__PURE__ */ d(/* @__PURE__ */ _()),
|
|
455
|
-
id: /* @__PURE__ */ d(/* @__PURE__ */ a()),
|
|
456
|
-
label: /* @__PURE__ */ d(H),
|
|
457
|
-
maxConnectionCount: /* @__PURE__ */ d(/* @__PURE__ */ S()),
|
|
458
|
-
params: /* @__PURE__ */ d(/* @__PURE__ */ v(/* @__PURE__ */ j(/* @__PURE__ */ a(), /* @__PURE__ */ a())))
|
|
459
|
-
}), $ = g(["application", "curatedDataset", "database", "fileStore"]), ee = g([
|
|
460
|
-
"abortOperation",
|
|
461
|
-
"authenticateConnection",
|
|
462
|
-
"createObject",
|
|
463
|
-
"describeConnection",
|
|
464
|
-
"dropObject",
|
|
465
|
-
"findObjectFolderPath",
|
|
466
|
-
"getReadableStream",
|
|
467
|
-
"getRecord",
|
|
468
|
-
"listNodes",
|
|
469
|
-
"previewObject",
|
|
470
|
-
"removeRecords",
|
|
471
|
-
"retrieveChunks",
|
|
472
|
-
"retrieveRecords",
|
|
473
|
-
"upsertRecords"
|
|
474
|
-
]), ne = g(["bidirectional", "destination", "source", "unknown"]), pe = /* @__PURE__ */ y({
|
|
475
|
-
...O,
|
|
476
|
-
typeId: /* @__PURE__ */ k("connector"),
|
|
477
|
-
category: /* @__PURE__ */ b(/* @__PURE__ */ y({ id: /* @__PURE__ */ a(), label: /* @__PURE__ */ a() })),
|
|
478
|
-
categoryId: $,
|
|
479
|
-
implementations: /* @__PURE__ */ j(/* @__PURE__ */ a(), Z),
|
|
480
|
-
operations: /* @__PURE__ */ v(ee),
|
|
481
|
-
usageId: ne,
|
|
482
|
-
vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
483
|
-
vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ a()),
|
|
484
|
-
vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ a())
|
|
485
|
-
}), te = g(["list"]), se = /* @__PURE__ */ y({
|
|
486
|
-
...I,
|
|
487
|
-
typeId: /* @__PURE__ */ k("contextModelGroup"),
|
|
488
|
-
modelRefs: /* @__PURE__ */ v(w),
|
|
489
|
-
order: /* @__PURE__ */ S()
|
|
490
|
-
}), fe = /* @__PURE__ */ y({
|
|
491
|
-
...O,
|
|
492
|
-
typeId: /* @__PURE__ */ k("context"),
|
|
493
|
-
models: /* @__PURE__ */ v(se),
|
|
494
|
-
operations: /* @__PURE__ */ v(te)
|
|
495
|
-
}), re = g(["list", "render", "setColorMode"]), de = /* @__PURE__ */ y({
|
|
496
|
-
...O,
|
|
497
|
-
typeId: /* @__PURE__ */ k("presenter"),
|
|
498
|
-
presentations: /* @__PURE__ */ v(w),
|
|
499
|
-
operations: /* @__PURE__ */ v(re)
|
|
500
|
-
});
|
|
501
|
-
function ye() {
|
|
502
|
-
return { render: oe };
|
|
503
|
-
}
|
|
504
|
-
function oe(n, t, e) {
|
|
505
|
-
e.textContent = "Cytoscape.js diagram goes here...";
|
|
506
|
-
}
|
|
507
|
-
function be() {
|
|
508
|
-
return { render: ie };
|
|
509
|
-
}
|
|
510
|
-
function ie(n, t) {
|
|
511
|
-
console.log(1111, n), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
|
|
512
|
-
}
|
|
513
|
-
const u = (n) => new Map(Object.entries(n)), R = (n, t, e = E) => {
|
|
514
|
-
const s = n.get(t);
|
|
515
|
-
if (s !== void 0) return s;
|
|
516
|
-
if (e !== t)
|
|
517
|
-
return n.get(e);
|
|
518
|
-
}, le = [
|
|
519
|
-
{ id: "dtv", labels: u({ "en-gb": "Delimited Text" }) },
|
|
520
|
-
{ id: "e/e", labels: u({ "en-gb": "Entity/Event" }) },
|
|
521
|
-
{ id: "jsonArray", labels: u({ "en-gb": "JSON Array" }) },
|
|
522
|
-
{ id: "spss", labels: u({ "en-gb": "SPSS" }) },
|
|
523
|
-
{ id: "xls", labels: u({ "en-gb": "XLS" }) },
|
|
524
|
-
{ id: "xlsx", labels: u({ "en-gb": "XLSX" }) },
|
|
525
|
-
{ id: "xml", labels: u({ "en-gb": "XML" }) }
|
|
526
|
-
], he = (n = E) => {
|
|
527
|
-
const t = [];
|
|
528
|
-
for (const e of le) {
|
|
529
|
-
const s = R(e.labels, n);
|
|
530
|
-
t.push({ id: e.id, label: s ?? e.id });
|
|
531
|
-
}
|
|
532
|
-
return t;
|
|
533
|
-
}, ae = [
|
|
534
|
-
{ id: `
|
|
535
|
-
`, labels: u({ "en-gb": "Newline" }) },
|
|
536
|
-
{ id: "\r", labels: u({ "en-gb": "Carriage Return" }) },
|
|
537
|
-
{ id: `\r
|
|
538
|
-
`, labels: u({ "en-gb": "Carriage Return/Newline" }) }
|
|
539
|
-
], me = (n = E) => {
|
|
540
|
-
const t = [];
|
|
541
|
-
for (const e of ae) {
|
|
542
|
-
const s = R(e.labels, n);
|
|
543
|
-
t.push({ id: e.id, label: s ?? e.id });
|
|
544
|
-
}
|
|
545
|
-
return t;
|
|
546
|
-
}, ue = [
|
|
547
|
-
{ id: ":", labels: u({ "en-gb": "Colon" }) },
|
|
548
|
-
{ id: ",", labels: u({ "en-gb": "Comma" }) },
|
|
549
|
-
{ id: "!", labels: u({ "en-gb": "Exclamation Mark" }) },
|
|
550
|
-
// { id: '', label: { 'en-gb': 'Other' } }, // TODO: Maybe set this to a 'not printing' or special ascii character when there is a user supplied delimited, rather than ''?
|
|
551
|
-
{ id: "0x1E", labels: u({ "en-gb": "Record Separator" }) },
|
|
552
|
-
{ id: ";", labels: u({ "en-gb": "Semicolon" }) },
|
|
553
|
-
{ id: " ", labels: u({ "en-gb": "Space" }) },
|
|
554
|
-
{ id: " ", labels: u({ "en-gb": "Tab" }) },
|
|
555
|
-
{ id: "_", labels: u({ "en-gb": "Underscore" }) },
|
|
556
|
-
{ id: "0x1F", labels: u({ "en-gb": "Unit Separator" }) },
|
|
557
|
-
{ id: "|", labels: u({ "en-gb": "Vertical Bar" }) }
|
|
558
|
-
], ge = (n = E) => {
|
|
559
|
-
const t = [];
|
|
560
|
-
for (const e of ue) {
|
|
561
|
-
const s = R(e.labels, n);
|
|
562
|
-
t.push({ id: e.id, label: s ?? e.id });
|
|
563
|
-
}
|
|
564
|
-
return t;
|
|
565
|
-
}, E = "en-gb";
|
|
1
|
+
import { D as s, h as t, j as o, k as r, q as i, p as D, u as m, i as c } from "./index-5UsJyepS.js";
|
|
566
2
|
export {
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
ye as useCytoscapeJS,
|
|
576
|
-
be as useDataTable
|
|
3
|
+
s as DEFAULT_LOCALE_CODE,
|
|
4
|
+
t as contextConfigSchema,
|
|
5
|
+
o as getDataFormats,
|
|
6
|
+
r as getRecordDelimiters,
|
|
7
|
+
i as getValueDelimiters,
|
|
8
|
+
D as presenterConfigSchema,
|
|
9
|
+
m as useCytoscapeJS,
|
|
10
|
+
c as useDataTable
|
|
577
11
|
};
|
|
@@ -0,0 +1,554 @@
|
|
|
1
|
+
let M;
|
|
2
|
+
// @__NO_SIDE_EFFECTS__
|
|
3
|
+
function w(n) {
|
|
4
|
+
return {
|
|
5
|
+
lang: n?.lang ?? M?.lang,
|
|
6
|
+
message: n?.message,
|
|
7
|
+
abortEarly: n?.abortEarly ?? M?.abortEarly,
|
|
8
|
+
abortPipeEarly: n?.abortPipeEarly ?? M?.abortPipeEarly
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
let F;
|
|
12
|
+
// @__NO_SIDE_EFFECTS__
|
|
13
|
+
function G(n) {
|
|
14
|
+
return F?.get(n);
|
|
15
|
+
}
|
|
16
|
+
let R;
|
|
17
|
+
// @__NO_SIDE_EFFECTS__
|
|
18
|
+
function N(n) {
|
|
19
|
+
return R?.get(n);
|
|
20
|
+
}
|
|
21
|
+
let T;
|
|
22
|
+
// @__NO_SIDE_EFFECTS__
|
|
23
|
+
function U(n, t) {
|
|
24
|
+
return T?.get(n)?.get(t);
|
|
25
|
+
}
|
|
26
|
+
// @__NO_SIDE_EFFECTS__
|
|
27
|
+
function O(n) {
|
|
28
|
+
const t = typeof n;
|
|
29
|
+
return t === "string" ? `"${n}"` : t === "number" || t === "bigint" || t === "boolean" ? `${n}` : t === "object" || t === "function" ? (n && Object.getPrototypeOf(n)?.constructor?.name) ?? "null" : t;
|
|
30
|
+
}
|
|
31
|
+
function y(n, t, e, s, i) {
|
|
32
|
+
const r = i && "input" in i ? i.input : e.value, o = i?.expected ?? n.expects ?? null, c = i?.received ?? /* @__PURE__ */ O(r), l = {
|
|
33
|
+
kind: n.kind,
|
|
34
|
+
type: n.type,
|
|
35
|
+
input: r,
|
|
36
|
+
expected: o,
|
|
37
|
+
received: c,
|
|
38
|
+
message: `Invalid ${t}: ${o ? `Expected ${o} but r` : "R"}eceived ${c}`,
|
|
39
|
+
requirement: n.requirement,
|
|
40
|
+
path: i?.path,
|
|
41
|
+
issues: i?.issues,
|
|
42
|
+
lang: s.lang,
|
|
43
|
+
abortEarly: s.abortEarly,
|
|
44
|
+
abortPipeEarly: s.abortPipeEarly
|
|
45
|
+
}, p = n.kind === "schema", f = i?.message ?? n.message ?? /* @__PURE__ */ U(n.reference, l.lang) ?? (p ? /* @__PURE__ */ N(l.lang) : null) ?? s.message ?? /* @__PURE__ */ G(l.lang);
|
|
46
|
+
f !== void 0 && (l.message = typeof f == "function" ? f(l) : f), p && (e.typed = !1), e.issues ? e.issues.push(l) : e.issues = [l];
|
|
47
|
+
}
|
|
48
|
+
// @__NO_SIDE_EFFECTS__
|
|
49
|
+
function d(n) {
|
|
50
|
+
return {
|
|
51
|
+
version: 1,
|
|
52
|
+
vendor: "valibot",
|
|
53
|
+
validate(t) {
|
|
54
|
+
return n["~run"]({ value: t }, /* @__PURE__ */ w());
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
// @__NO_SIDE_EFFECTS__
|
|
59
|
+
function V(n, t) {
|
|
60
|
+
return Object.hasOwn(n, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
61
|
+
}
|
|
62
|
+
// @__NO_SIDE_EFFECTS__
|
|
63
|
+
function z(n, t) {
|
|
64
|
+
const e = [...new Set(n)];
|
|
65
|
+
return e.length > 1 ? `(${e.join(` ${t} `)})` : e[0] ?? "never";
|
|
66
|
+
}
|
|
67
|
+
// @__NO_SIDE_EFFECTS__
|
|
68
|
+
function X(n, t, e) {
|
|
69
|
+
return typeof n.fallback == "function" ? n.fallback(t, e) : n.fallback;
|
|
70
|
+
}
|
|
71
|
+
// @__NO_SIDE_EFFECTS__
|
|
72
|
+
function C(n, t, e) {
|
|
73
|
+
return typeof n.default == "function" ? n.default(t, e) : n.default;
|
|
74
|
+
}
|
|
75
|
+
// @__NO_SIDE_EFFECTS__
|
|
76
|
+
function v(n, t) {
|
|
77
|
+
return {
|
|
78
|
+
kind: "schema",
|
|
79
|
+
type: "array",
|
|
80
|
+
reference: v,
|
|
81
|
+
expects: "Array",
|
|
82
|
+
async: !1,
|
|
83
|
+
item: n,
|
|
84
|
+
message: t,
|
|
85
|
+
get "~standard"() {
|
|
86
|
+
return /* @__PURE__ */ d(this);
|
|
87
|
+
},
|
|
88
|
+
"~run"(e, s) {
|
|
89
|
+
const i = e.value;
|
|
90
|
+
if (Array.isArray(i)) {
|
|
91
|
+
e.typed = !0, e.value = [];
|
|
92
|
+
for (let r = 0; r < i.length; r++) {
|
|
93
|
+
const o = i[r], c = this.item["~run"]({ value: o }, s);
|
|
94
|
+
if (c.issues) {
|
|
95
|
+
const l = {
|
|
96
|
+
type: "array",
|
|
97
|
+
origin: "value",
|
|
98
|
+
input: i,
|
|
99
|
+
key: r,
|
|
100
|
+
value: o
|
|
101
|
+
};
|
|
102
|
+
for (const p of c.issues)
|
|
103
|
+
p.path ? p.path.unshift(l) : p.path = [l], e.issues?.push(p);
|
|
104
|
+
if (e.issues || (e.issues = c.issues), s.abortEarly) {
|
|
105
|
+
e.typed = !1;
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
c.typed || (e.typed = !1), e.value.push(c.value);
|
|
110
|
+
}
|
|
111
|
+
} else y(this, "type", e, s);
|
|
112
|
+
return e;
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
// @__NO_SIDE_EFFECTS__
|
|
117
|
+
function q(n) {
|
|
118
|
+
return {
|
|
119
|
+
kind: "schema",
|
|
120
|
+
type: "boolean",
|
|
121
|
+
reference: q,
|
|
122
|
+
expects: "boolean",
|
|
123
|
+
async: !1,
|
|
124
|
+
message: n,
|
|
125
|
+
get "~standard"() {
|
|
126
|
+
return /* @__PURE__ */ d(this);
|
|
127
|
+
},
|
|
128
|
+
"~run"(t, e) {
|
|
129
|
+
return typeof t.value == "boolean" ? t.typed = !0 : y(this, "type", t, e), t;
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
// @__NO_SIDE_EFFECTS__
|
|
134
|
+
function k(n, t) {
|
|
135
|
+
return {
|
|
136
|
+
kind: "schema",
|
|
137
|
+
type: "literal",
|
|
138
|
+
reference: k,
|
|
139
|
+
expects: /* @__PURE__ */ O(n),
|
|
140
|
+
async: !1,
|
|
141
|
+
literal: n,
|
|
142
|
+
message: t,
|
|
143
|
+
get "~standard"() {
|
|
144
|
+
return /* @__PURE__ */ d(this);
|
|
145
|
+
},
|
|
146
|
+
"~run"(e, s) {
|
|
147
|
+
return e.value === this.literal ? e.typed = !0 : y(this, "type", e, s), e;
|
|
148
|
+
}
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
// @__NO_SIDE_EFFECTS__
|
|
152
|
+
function g(n, t) {
|
|
153
|
+
return {
|
|
154
|
+
kind: "schema",
|
|
155
|
+
type: "nullable",
|
|
156
|
+
reference: g,
|
|
157
|
+
expects: `(${n.expects} | null)`,
|
|
158
|
+
async: !1,
|
|
159
|
+
wrapped: n,
|
|
160
|
+
default: t,
|
|
161
|
+
get "~standard"() {
|
|
162
|
+
return /* @__PURE__ */ d(this);
|
|
163
|
+
},
|
|
164
|
+
"~run"(e, s) {
|
|
165
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ C(this, e, s)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
// @__NO_SIDE_EFFECTS__
|
|
170
|
+
function S(n) {
|
|
171
|
+
return {
|
|
172
|
+
kind: "schema",
|
|
173
|
+
type: "number",
|
|
174
|
+
reference: S,
|
|
175
|
+
expects: "number",
|
|
176
|
+
async: !1,
|
|
177
|
+
message: n,
|
|
178
|
+
get "~standard"() {
|
|
179
|
+
return /* @__PURE__ */ d(this);
|
|
180
|
+
},
|
|
181
|
+
"~run"(t, e) {
|
|
182
|
+
return typeof t.value == "number" && !isNaN(t.value) ? t.typed = !0 : y(this, "type", t, e), t;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
}
|
|
186
|
+
// @__NO_SIDE_EFFECTS__
|
|
187
|
+
function b(n, t) {
|
|
188
|
+
return {
|
|
189
|
+
kind: "schema",
|
|
190
|
+
type: "object",
|
|
191
|
+
reference: b,
|
|
192
|
+
expects: "Object",
|
|
193
|
+
async: !1,
|
|
194
|
+
entries: n,
|
|
195
|
+
message: t,
|
|
196
|
+
get "~standard"() {
|
|
197
|
+
return /* @__PURE__ */ d(this);
|
|
198
|
+
},
|
|
199
|
+
"~run"(e, s) {
|
|
200
|
+
const i = e.value;
|
|
201
|
+
if (i && typeof i == "object") {
|
|
202
|
+
e.typed = !0, e.value = {};
|
|
203
|
+
for (const r in this.entries) {
|
|
204
|
+
const o = this.entries[r];
|
|
205
|
+
if (r in i || (o.type === "exact_optional" || o.type === "optional" || o.type === "nullish") && o.default !== void 0) {
|
|
206
|
+
const c = r in i ? i[r] : /* @__PURE__ */ C(o), l = o["~run"]({ value: c }, s);
|
|
207
|
+
if (l.issues) {
|
|
208
|
+
const p = {
|
|
209
|
+
type: "object",
|
|
210
|
+
origin: "value",
|
|
211
|
+
input: i,
|
|
212
|
+
key: r,
|
|
213
|
+
value: c
|
|
214
|
+
};
|
|
215
|
+
for (const f of l.issues)
|
|
216
|
+
f.path ? f.path.unshift(p) : f.path = [p], e.issues?.push(f);
|
|
217
|
+
if (e.issues || (e.issues = l.issues), s.abortEarly) {
|
|
218
|
+
e.typed = !1;
|
|
219
|
+
break;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
l.typed || (e.typed = !1), e.value[r] = l.value;
|
|
223
|
+
} else if (o.fallback !== void 0) e.value[r] = /* @__PURE__ */ X(o);
|
|
224
|
+
else if (o.type !== "exact_optional" && o.type !== "optional" && o.type !== "nullish" && (y(this, "key", e, s, {
|
|
225
|
+
input: void 0,
|
|
226
|
+
expected: `"${r}"`,
|
|
227
|
+
path: [{
|
|
228
|
+
type: "object",
|
|
229
|
+
origin: "key",
|
|
230
|
+
input: i,
|
|
231
|
+
key: r,
|
|
232
|
+
value: i[r]
|
|
233
|
+
}]
|
|
234
|
+
}), s.abortEarly))
|
|
235
|
+
break;
|
|
236
|
+
}
|
|
237
|
+
} else y(this, "type", e, s);
|
|
238
|
+
return e;
|
|
239
|
+
}
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
// @__NO_SIDE_EFFECTS__
|
|
243
|
+
function m(n, t) {
|
|
244
|
+
return {
|
|
245
|
+
kind: "schema",
|
|
246
|
+
type: "optional",
|
|
247
|
+
reference: m,
|
|
248
|
+
expects: `(${n.expects} | undefined)`,
|
|
249
|
+
async: !1,
|
|
250
|
+
wrapped: n,
|
|
251
|
+
default: t,
|
|
252
|
+
get "~standard"() {
|
|
253
|
+
return /* @__PURE__ */ d(this);
|
|
254
|
+
},
|
|
255
|
+
"~run"(e, s) {
|
|
256
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ C(this, e, s)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, s);
|
|
257
|
+
}
|
|
258
|
+
};
|
|
259
|
+
}
|
|
260
|
+
// @__NO_SIDE_EFFECTS__
|
|
261
|
+
function J(n, t, e) {
|
|
262
|
+
return {
|
|
263
|
+
kind: "schema",
|
|
264
|
+
type: "record",
|
|
265
|
+
reference: J,
|
|
266
|
+
expects: "Object",
|
|
267
|
+
async: !1,
|
|
268
|
+
key: n,
|
|
269
|
+
value: t,
|
|
270
|
+
message: e,
|
|
271
|
+
get "~standard"() {
|
|
272
|
+
return /* @__PURE__ */ d(this);
|
|
273
|
+
},
|
|
274
|
+
"~run"(s, i) {
|
|
275
|
+
const r = s.value;
|
|
276
|
+
if (r && typeof r == "object") {
|
|
277
|
+
s.typed = !0, s.value = {};
|
|
278
|
+
for (const o in r) if (/* @__PURE__ */ V(r, o)) {
|
|
279
|
+
const c = r[o], l = this.key["~run"]({ value: o }, i);
|
|
280
|
+
if (l.issues) {
|
|
281
|
+
const f = {
|
|
282
|
+
type: "object",
|
|
283
|
+
origin: "key",
|
|
284
|
+
input: r,
|
|
285
|
+
key: o,
|
|
286
|
+
value: c
|
|
287
|
+
};
|
|
288
|
+
for (const h of l.issues)
|
|
289
|
+
h.path = [f], s.issues?.push(h);
|
|
290
|
+
if (s.issues || (s.issues = l.issues), i.abortEarly) {
|
|
291
|
+
s.typed = !1;
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
const p = this.value["~run"]({ value: c }, i);
|
|
296
|
+
if (p.issues) {
|
|
297
|
+
const f = {
|
|
298
|
+
type: "object",
|
|
299
|
+
origin: "value",
|
|
300
|
+
input: r,
|
|
301
|
+
key: o,
|
|
302
|
+
value: c
|
|
303
|
+
};
|
|
304
|
+
for (const h of p.issues)
|
|
305
|
+
h.path ? h.path.unshift(f) : h.path = [f], s.issues?.push(h);
|
|
306
|
+
if (s.issues || (s.issues = p.issues), i.abortEarly) {
|
|
307
|
+
s.typed = !1;
|
|
308
|
+
break;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
(!l.typed || !p.typed) && (s.typed = !1), l.typed && (s.value[l.value] = p.value);
|
|
312
|
+
}
|
|
313
|
+
} else y(this, "type", s, i);
|
|
314
|
+
return s;
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
// @__NO_SIDE_EFFECTS__
|
|
319
|
+
function a(n) {
|
|
320
|
+
return {
|
|
321
|
+
kind: "schema",
|
|
322
|
+
type: "string",
|
|
323
|
+
reference: a,
|
|
324
|
+
expects: "string",
|
|
325
|
+
async: !1,
|
|
326
|
+
message: n,
|
|
327
|
+
get "~standard"() {
|
|
328
|
+
return /* @__PURE__ */ d(this);
|
|
329
|
+
},
|
|
330
|
+
"~run"(t, e) {
|
|
331
|
+
return typeof t.value == "string" ? t.typed = !0 : y(this, "type", t, e), t;
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
// @__NO_SIDE_EFFECTS__
|
|
336
|
+
function _(n) {
|
|
337
|
+
let t;
|
|
338
|
+
if (n) for (const e of n) t ? t.push(...e.issues) : t = e.issues;
|
|
339
|
+
return t;
|
|
340
|
+
}
|
|
341
|
+
// @__NO_SIDE_EFFECTS__
|
|
342
|
+
function A(n, t) {
|
|
343
|
+
return {
|
|
344
|
+
kind: "schema",
|
|
345
|
+
type: "union",
|
|
346
|
+
reference: A,
|
|
347
|
+
expects: /* @__PURE__ */ z(n.map((e) => e.expects), "|"),
|
|
348
|
+
async: !1,
|
|
349
|
+
options: n,
|
|
350
|
+
message: t,
|
|
351
|
+
get "~standard"() {
|
|
352
|
+
return /* @__PURE__ */ d(this);
|
|
353
|
+
},
|
|
354
|
+
"~run"(e, s) {
|
|
355
|
+
let i, r, o;
|
|
356
|
+
for (const c of this.options) {
|
|
357
|
+
const l = c["~run"]({ value: e.value }, s);
|
|
358
|
+
if (l.typed) if (l.issues) r ? r.push(l) : r = [l];
|
|
359
|
+
else {
|
|
360
|
+
i = l;
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
else o ? o.push(l) : o = [l];
|
|
364
|
+
}
|
|
365
|
+
if (i) return i;
|
|
366
|
+
if (r) {
|
|
367
|
+
if (r.length === 1) return r[0];
|
|
368
|
+
y(this, "type", e, s, { issues: /* @__PURE__ */ _(r) }), e.typed = !0;
|
|
369
|
+
} else {
|
|
370
|
+
if (o?.length === 1) return o[0];
|
|
371
|
+
y(this, "type", e, s, { issues: /* @__PURE__ */ _(o) });
|
|
372
|
+
}
|
|
373
|
+
return e;
|
|
374
|
+
}
|
|
375
|
+
};
|
|
376
|
+
}
|
|
377
|
+
const x = (n) => /* @__PURE__ */ A(n.map((t) => /* @__PURE__ */ k(t))), re = /* @__PURE__ */ b({
|
|
378
|
+
"en-au": /* @__PURE__ */ a(),
|
|
379
|
+
"en-gb": /* @__PURE__ */ a(),
|
|
380
|
+
"en-us": /* @__PURE__ */ a(),
|
|
381
|
+
"es-es": /* @__PURE__ */ a()
|
|
382
|
+
}), E = /* @__PURE__ */ b({
|
|
383
|
+
"en-au": /* @__PURE__ */ m(/* @__PURE__ */ a()),
|
|
384
|
+
"en-gb": /* @__PURE__ */ m(/* @__PURE__ */ a()),
|
|
385
|
+
"en-us": /* @__PURE__ */ m(/* @__PURE__ */ a()),
|
|
386
|
+
"es-es": /* @__PURE__ */ m(/* @__PURE__ */ a())
|
|
387
|
+
}), K = x(["amber", "green", "red", "other"]), B = x([
|
|
388
|
+
"alpha",
|
|
389
|
+
"beta",
|
|
390
|
+
"generalAvailability",
|
|
391
|
+
"notApplicable",
|
|
392
|
+
"preAlpha",
|
|
393
|
+
"proposed",
|
|
394
|
+
"releaseCandidate",
|
|
395
|
+
"unavailable",
|
|
396
|
+
"underReview"
|
|
397
|
+
]), H = x([
|
|
398
|
+
"app",
|
|
399
|
+
"connector",
|
|
400
|
+
"connectorConnection",
|
|
401
|
+
"context",
|
|
402
|
+
"contextModelGroup",
|
|
403
|
+
"contextModel",
|
|
404
|
+
"contextModelDimensionGroup",
|
|
405
|
+
"contextModelDimension",
|
|
406
|
+
"contextModelDimensionHierarchy",
|
|
407
|
+
"contextModelEntityGroup",
|
|
408
|
+
"contextModelEntity",
|
|
409
|
+
"contextModelEntityDataItem",
|
|
410
|
+
"contextModelEntityEvent",
|
|
411
|
+
"contextModelEntityPrimaryMeasure",
|
|
412
|
+
"contextModelSecondaryMeasureGroup",
|
|
413
|
+
"contextModelSecondaryMeasure",
|
|
414
|
+
"dataView",
|
|
415
|
+
"dimension",
|
|
416
|
+
"engine",
|
|
417
|
+
"eventQuery",
|
|
418
|
+
"presenter",
|
|
419
|
+
"presenterPresentation",
|
|
420
|
+
"tool"
|
|
421
|
+
]), Q = /* @__PURE__ */ b({
|
|
422
|
+
id: /* @__PURE__ */ a(),
|
|
423
|
+
color: K,
|
|
424
|
+
label: /* @__PURE__ */ a()
|
|
425
|
+
}), j = {
|
|
426
|
+
id: /* @__PURE__ */ a(),
|
|
427
|
+
label: E,
|
|
428
|
+
description: E,
|
|
429
|
+
firstCreatedAt: /* @__PURE__ */ m(/* @__PURE__ */ S()),
|
|
430
|
+
icon: /* @__PURE__ */ g(/* @__PURE__ */ a()),
|
|
431
|
+
iconDark: /* @__PURE__ */ g(/* @__PURE__ */ a()),
|
|
432
|
+
lastUpdatedAt: /* @__PURE__ */ g(/* @__PURE__ */ S()),
|
|
433
|
+
status: /* @__PURE__ */ g(Q),
|
|
434
|
+
statusId: B
|
|
435
|
+
}, ie = /* @__PURE__ */ b({
|
|
436
|
+
...j,
|
|
437
|
+
typeId: H
|
|
438
|
+
}), L = /* @__PURE__ */ b({
|
|
439
|
+
id: /* @__PURE__ */ a(),
|
|
440
|
+
label: E,
|
|
441
|
+
description: E,
|
|
442
|
+
icon: /* @__PURE__ */ g(/* @__PURE__ */ a()),
|
|
443
|
+
iconDark: /* @__PURE__ */ g(/* @__PURE__ */ a()),
|
|
444
|
+
order: /* @__PURE__ */ S(),
|
|
445
|
+
path: /* @__PURE__ */ a()
|
|
446
|
+
});
|
|
447
|
+
x(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
448
|
+
const P = {
|
|
449
|
+
...j,
|
|
450
|
+
version: /* @__PURE__ */ a()
|
|
451
|
+
}, W = x(["list"]), Y = /* @__PURE__ */ b({
|
|
452
|
+
...j,
|
|
453
|
+
typeId: /* @__PURE__ */ k("contextModelGroup"),
|
|
454
|
+
modelRefs: /* @__PURE__ */ v(L),
|
|
455
|
+
order: /* @__PURE__ */ S()
|
|
456
|
+
}), oe = /* @__PURE__ */ b({
|
|
457
|
+
...P,
|
|
458
|
+
typeId: /* @__PURE__ */ k("context"),
|
|
459
|
+
models: /* @__PURE__ */ v(Y),
|
|
460
|
+
operations: /* @__PURE__ */ v(W)
|
|
461
|
+
}), Z = x(["list", "render", "setColorMode"]), le = /* @__PURE__ */ b({
|
|
462
|
+
...P,
|
|
463
|
+
typeId: /* @__PURE__ */ k("presenter"),
|
|
464
|
+
presentations: /* @__PURE__ */ v(L),
|
|
465
|
+
operations: /* @__PURE__ */ v(Z)
|
|
466
|
+
});
|
|
467
|
+
function ue() {
|
|
468
|
+
return { render: $ };
|
|
469
|
+
}
|
|
470
|
+
function $(n, t, e) {
|
|
471
|
+
e.textContent = "Cytoscape.js diagram goes here...";
|
|
472
|
+
}
|
|
473
|
+
function ae() {
|
|
474
|
+
return { render: ee };
|
|
475
|
+
}
|
|
476
|
+
function ee(n, t) {
|
|
477
|
+
console.log(1111, n), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
|
|
478
|
+
}
|
|
479
|
+
const u = (n) => new Map(Object.entries(n)), I = (n, t, e = D) => {
|
|
480
|
+
const s = n.get(t);
|
|
481
|
+
if (s !== void 0) return s;
|
|
482
|
+
if (e !== t)
|
|
483
|
+
return n.get(e);
|
|
484
|
+
}, ne = [
|
|
485
|
+
{ id: "dtv", labels: u({ "en-gb": "Delimited Text" }) },
|
|
486
|
+
{ id: "e/e", labels: u({ "en-gb": "Entity/Event" }) },
|
|
487
|
+
{ id: "jsonArray", labels: u({ "en-gb": "JSON Array" }) },
|
|
488
|
+
{ id: "spss", labels: u({ "en-gb": "SPSS" }) },
|
|
489
|
+
{ id: "xls", labels: u({ "en-gb": "XLS" }) },
|
|
490
|
+
{ id: "xlsx", labels: u({ "en-gb": "XLSX" }) },
|
|
491
|
+
{ id: "xml", labels: u({ "en-gb": "XML" }) }
|
|
492
|
+
], ce = (n = D) => {
|
|
493
|
+
const t = [];
|
|
494
|
+
for (const e of ne) {
|
|
495
|
+
const s = I(e.labels, n);
|
|
496
|
+
t.push({ id: e.id, label: s ?? e.id });
|
|
497
|
+
}
|
|
498
|
+
return t;
|
|
499
|
+
}, te = [
|
|
500
|
+
{ id: `
|
|
501
|
+
`, labels: u({ "en-gb": "Newline" }) },
|
|
502
|
+
{ id: "\r", labels: u({ "en-gb": "Carriage Return" }) },
|
|
503
|
+
{ id: `\r
|
|
504
|
+
`, labels: u({ "en-gb": "Carriage Return/Newline" }) }
|
|
505
|
+
], pe = (n = D) => {
|
|
506
|
+
const t = [];
|
|
507
|
+
for (const e of te) {
|
|
508
|
+
const s = I(e.labels, n);
|
|
509
|
+
t.push({ id: e.id, label: s ?? e.id });
|
|
510
|
+
}
|
|
511
|
+
return t;
|
|
512
|
+
}, se = [
|
|
513
|
+
{ id: ":", labels: u({ "en-gb": "Colon" }) },
|
|
514
|
+
{ id: ",", labels: u({ "en-gb": "Comma" }) },
|
|
515
|
+
{ id: "!", labels: u({ "en-gb": "Exclamation Mark" }) },
|
|
516
|
+
// { id: '', label: { 'en-gb': 'Other' } }, // TODO: Maybe set this to a 'not printing' or special ascii character when there is a user supplied delimited, rather than ''?
|
|
517
|
+
{ id: "0x1E", labels: u({ "en-gb": "Record Separator" }) },
|
|
518
|
+
{ id: ";", labels: u({ "en-gb": "Semicolon" }) },
|
|
519
|
+
{ id: " ", labels: u({ "en-gb": "Space" }) },
|
|
520
|
+
{ id: " ", labels: u({ "en-gb": "Tab" }) },
|
|
521
|
+
{ id: "_", labels: u({ "en-gb": "Underscore" }) },
|
|
522
|
+
{ id: "0x1F", labels: u({ "en-gb": "Unit Separator" }) },
|
|
523
|
+
{ id: "|", labels: u({ "en-gb": "Vertical Bar" }) }
|
|
524
|
+
], fe = (n = D) => {
|
|
525
|
+
const t = [];
|
|
526
|
+
for (const e of se) {
|
|
527
|
+
const s = I(e.labels, n);
|
|
528
|
+
t.push({ id: e.id, label: s ?? e.id });
|
|
529
|
+
}
|
|
530
|
+
return t;
|
|
531
|
+
}, D = "en-gb";
|
|
532
|
+
export {
|
|
533
|
+
D,
|
|
534
|
+
v as a,
|
|
535
|
+
k as b,
|
|
536
|
+
ie as c,
|
|
537
|
+
m as d,
|
|
538
|
+
S as e,
|
|
539
|
+
re as f,
|
|
540
|
+
q as g,
|
|
541
|
+
oe as h,
|
|
542
|
+
ae as i,
|
|
543
|
+
ce as j,
|
|
544
|
+
pe as k,
|
|
545
|
+
x as l,
|
|
546
|
+
P as m,
|
|
547
|
+
g as n,
|
|
548
|
+
b as o,
|
|
549
|
+
le as p,
|
|
550
|
+
fe as q,
|
|
551
|
+
J as r,
|
|
552
|
+
a as s,
|
|
553
|
+
ue as u
|
|
554
|
+
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { InferOutput } from 'valibot';
|
|
2
2
|
import { Component } from '..';
|
|
3
|
-
import { connectorConfigSchema } from './connectorConfig.schema';
|
|
4
3
|
import { ToolConfig } from '../tool';
|
|
5
4
|
import { ValueDelimiterId } from '../dataView';
|
|
6
5
|
import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
|
|
6
|
+
import { connectorConfigSchema, connectorOperationNameSchema, connectorUsageIdSchema } from './connectorConfig.schema';
|
|
7
7
|
/** Authentication method identifiers supported by a connector implementation. */
|
|
8
8
|
/** Connector implementation. */
|
|
9
9
|
/** Category identifiers used for grouping and filtering connectors. */
|
|
10
10
|
/** Operation names a connector may support. */
|
|
11
|
+
type ConnectorOperationName = InferOutput<typeof connectorOperationNameSchema>;
|
|
11
12
|
/** Connector data pipeline usage identifiers. */
|
|
13
|
+
type ConnectorUsageId = InferOutput<typeof connectorUsageIdSchema>;
|
|
12
14
|
/** Connector configuration. */
|
|
13
15
|
type ConnectorConfig = InferOutput<typeof connectorConfigSchema>;
|
|
14
16
|
type ConnectorLocalisedConfig = Omit<ConnectorConfig, 'label' | 'description'> & {
|
|
@@ -137,6 +139,5 @@ declare const getConnectorCategory: (id: string, localeId?: import('../../index'
|
|
|
137
139
|
/** Exports. */
|
|
138
140
|
export { getConnectorCategory };
|
|
139
141
|
export type { ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig, Encoding, UsageTypeId } from './connection';
|
|
140
|
-
export type { ConnectorConfig, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationSettings };
|
|
141
|
-
export type { CreateSettings, DropSettings, FindObjectFolderPathSettings, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings, RetrieveChunksSettings, RetrieveChunksSummary, RetrieveRecordsSettings, RetrieveRecordsSummary, UpsertSettings };
|
|
142
|
+
export type { ConnectorConfig, ConnectorInterface, ConnectorLocalisedConfig, ConnectorOperationName, ConnectorOperationSettings, ConnectorUsageId, CreateSettings, DropSettings, FindObjectFolderPathSettings, GetReadableStreamSettings, GetRecordResult, GetRecordSettings, ListResult, ListSettings, PreviewResult, PreviewSettings, RemoveSettings, RetrieveChunksSettings, RetrieveChunksSummary, RetrieveRecordsSettings, RetrieveRecordsSummary, UpsertSettings };
|
|
142
143
|
export { connectorConfigSchema } from './connectorConfig.schema';
|
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
import { ConnectionConfig } from '../component/connector/connection';
|
|
2
|
+
import { ConnectorOperationSettings } from '../component/connector';
|
|
3
|
+
import { ModuleConfig } from '../component/module';
|
|
2
4
|
import { ToolConfig } from '../component/tool';
|
|
3
|
-
import { ConnectorOperationSettings, ListResult, RetrieveRecordsResult } from '../component/connector';
|
|
4
5
|
import { ContextCallbackData, ContextConfig, ContextOperationSettings } from '../component/context';
|
|
5
|
-
import { DataViewContentAuditConfig,
|
|
6
|
+
import { DataViewContentAuditConfig, EncodingConfig, ValueDelimiterId } from '../component/dataView';
|
|
7
|
+
/** Engine configuration. */
|
|
8
|
+
interface EngineConfig extends ModuleConfig {
|
|
9
|
+
typeId: 'engine';
|
|
10
|
+
}
|
|
11
|
+
/** Engine initialise settings. */
|
|
6
12
|
interface EngineInitialiseSettings {
|
|
7
13
|
connectorStorageURLPrefix: string;
|
|
8
14
|
toolConfigs: ToolConfig[];
|
|
9
15
|
}
|
|
10
16
|
type InitialiseEngine = (settings: EngineInitialiseSettings) => Promise<void>;
|
|
11
|
-
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: (callbackData: ContextCallbackData) => void) => Promise<
|
|
17
|
+
type ProcessConnectorRequest = (id: string, connectionConfig: ConnectionConfig, settings: ConnectorOperationSettings, callback?: (callbackData: ContextCallbackData) => void) => Promise<unknown>;
|
|
12
18
|
interface AuditContentSettings extends ConnectorOperationSettings {
|
|
13
19
|
chunkSize?: number;
|
|
14
20
|
encodingId: string;
|
|
@@ -18,14 +24,12 @@ interface AuditContentSettings extends ConnectorOperationSettings {
|
|
|
18
24
|
interface AuditContentResult {
|
|
19
25
|
contentAuditConfig: DataViewContentAuditConfig;
|
|
20
26
|
}
|
|
21
|
-
type ConnectorInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveRecordsResult;
|
|
22
27
|
/** Connector callback data. */
|
|
23
28
|
interface ConnectorCallbackData {
|
|
24
29
|
typeId: string;
|
|
25
30
|
properties: Record<string, unknown>;
|
|
26
31
|
}
|
|
27
|
-
type ProcessContextRequest = (id: string, contextConfig: ContextConfig, settings: ContextOperationSettings, callback?: (callbackData: ConnectorCallbackData) => void) => Promise<
|
|
28
|
-
type ContextInterfaceResult = AuditContentResult | DataViewPreviewConfig | ListResult | RetrieveRecordsResult;
|
|
32
|
+
type ProcessContextRequest = (id: string, contextConfig: ContextConfig, settings: ContextOperationSettings, callback?: (callbackData: ConnectorCallbackData) => void) => Promise<unknown>;
|
|
29
33
|
type ProcessTestRequest = (settings: TestSettings) => Promise<Record<string, unknown>>;
|
|
30
34
|
interface TestSettings {
|
|
31
35
|
action?: string;
|
|
@@ -45,4 +49,4 @@ interface EngineWorker {
|
|
|
45
49
|
processTestRequest: ProcessTestRequest;
|
|
46
50
|
}
|
|
47
51
|
/** Exports. */
|
|
48
|
-
export type { AuditContentSettings, AuditContentResult, ConnectorCallbackData,
|
|
52
|
+
export type { AuditContentSettings, AuditContentResult, ConnectorCallbackData, EngineConfig, EngineInterface, EngineWorker, EngineInitialiseSettings, TestSettings };
|
|
@@ -4,11 +4,6 @@
|
|
|
4
4
|
/** Interfaces/Types */
|
|
5
5
|
export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
|
|
6
6
|
export type LocalisedString = Record<LocaleCode, string>;
|
|
7
|
-
/** Interfaces/Types - Component */
|
|
8
|
-
/** Schemas - Component */
|
|
9
|
-
export { componentConfigSchema } from './component';
|
|
10
|
-
/** Schemas - Connector */
|
|
11
|
-
export { connectorConfigSchema } from './component/connector/connectorConfig.schema';
|
|
12
7
|
/** Interfaces/Types - Context. */
|
|
13
8
|
export { contextConfigSchema } from './component/context';
|
|
14
9
|
export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
|
|
@@ -34,7 +29,6 @@ export type { DataFormatId, EncodingConfig, RecordDelimiterId, ValueDelimiterId
|
|
|
34
29
|
export type { DataViewConfig, DataViewContentAuditConfig, DataViewLocalisedConfig, DataViewPreviewConfig, DataViewRelationshipsAuditConfig, ParsedValue } from './component/dataView';
|
|
35
30
|
/** Interfaces/Types - Dimension. */
|
|
36
31
|
export type { DimensionConfig, DimensionLocalisedConfig } from './component/dimension';
|
|
37
|
-
/** Interfaces/Types - Engine. */
|
|
38
32
|
/** Interfaces/Types */
|
|
39
33
|
export type { SerialisedError } from './errors';
|
|
40
34
|
/** Errors */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@datapos/datapos-shared",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.404",
|
|
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>",
|