@datapos/datapos-shared 0.3.268 → 0.3.269
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/datapos-shared.es.js +331 -144
- package/dist/types/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1,104 +1,288 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { z as e } from "zod";
|
|
2
|
+
const re = ["createObject", "dropObject", "removeRecords", "upsertRecords"], ne = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], x = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), y = e.union([
|
|
3
|
+
e.literal("alpha"),
|
|
4
|
+
e.literal("beta"),
|
|
5
|
+
e.literal("generalAvailability"),
|
|
6
|
+
e.literal("notApplicable"),
|
|
7
|
+
e.literal("preAlpha"),
|
|
8
|
+
e.literal("proposed"),
|
|
9
|
+
e.literal("releaseCandidate"),
|
|
10
|
+
e.literal("unavailable"),
|
|
11
|
+
e.literal("underReview")
|
|
12
|
+
]), E = e.union([
|
|
13
|
+
e.literal("app"),
|
|
14
|
+
e.literal("connector"),
|
|
15
|
+
e.literal("connectorConnection"),
|
|
16
|
+
e.literal("context"),
|
|
17
|
+
e.literal("contextModelGroup"),
|
|
18
|
+
e.literal("contextModel"),
|
|
19
|
+
e.literal("contextModelDimensionGroup"),
|
|
20
|
+
e.literal("contextModelDimension"),
|
|
21
|
+
e.literal("contextModelDimensionHierarchy"),
|
|
22
|
+
e.literal("contextModelEntityGroup"),
|
|
23
|
+
e.literal("contextModelEntity"),
|
|
24
|
+
e.literal("contextModelEntityDataItem"),
|
|
25
|
+
e.literal("contextModelEntityEvent"),
|
|
26
|
+
e.literal("contextModelEntityPrimaryMeasure"),
|
|
27
|
+
e.literal("contextModelSecondaryMeasureGroup"),
|
|
28
|
+
e.literal("contextModelSecondaryMeasure"),
|
|
29
|
+
e.literal("dataView"),
|
|
30
|
+
e.literal("dimension"),
|
|
31
|
+
e.literal("engine"),
|
|
32
|
+
e.literal("eventQuery"),
|
|
33
|
+
e.literal("presenter"),
|
|
34
|
+
e.literal("presenterPresentation"),
|
|
35
|
+
e.literal("tool")
|
|
36
|
+
]), S = e.union([e.literal("en-au"), e.literal("en-gb"), e.literal("en-us"), e.literal("es-es")]), M = e.record(S, e.string()), I = e.object({
|
|
37
|
+
id: e.string(),
|
|
38
|
+
color: x,
|
|
39
|
+
label: e.string()
|
|
40
|
+
}), v = e.object({
|
|
41
|
+
id: e.string(),
|
|
42
|
+
label: e.record(e.string(), e.string()),
|
|
43
|
+
description: e.record(e.string(), e.string()),
|
|
44
|
+
firstCreatedAt: e.number().optional(),
|
|
45
|
+
icon: e.string().optional(),
|
|
46
|
+
iconDark: e.string().optional(),
|
|
47
|
+
lastUpdatedAt: e.number().optional(),
|
|
48
|
+
status: I.nullable().optional(),
|
|
49
|
+
statusId: y,
|
|
50
|
+
typeId: E
|
|
51
|
+
}), C = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), D = e.object({
|
|
52
|
+
id: e.string(),
|
|
53
|
+
label: e.string()
|
|
54
|
+
}), w = e.object({
|
|
55
|
+
activeConnectionCount: e.number().optional(),
|
|
56
|
+
canDescribe: e.boolean().optional(),
|
|
57
|
+
id: e.string().optional(),
|
|
58
|
+
authMethodId: e.union([e.literal("apiKey"), e.literal("disabled"), e.literal("oAuth2"), e.literal("none")]),
|
|
59
|
+
label: M.optional(),
|
|
60
|
+
maxConnectionCount: e.number().optional(),
|
|
61
|
+
params: e.array(e.record(e.string(), e.string())).optional()
|
|
62
|
+
}), $ = e.union([e.literal("application"), e.literal("curatedDataset"), e.literal("database"), e.literal("fileStore")]), N = e.union([
|
|
63
|
+
e.literal("abortOperation"),
|
|
64
|
+
e.literal("authenticateConnection"),
|
|
65
|
+
e.literal("createObject"),
|
|
66
|
+
e.literal("describeConnection"),
|
|
67
|
+
e.literal("dropObject"),
|
|
68
|
+
e.literal("findObject"),
|
|
69
|
+
e.literal("getRecord"),
|
|
70
|
+
e.literal("listNodes"),
|
|
71
|
+
e.literal("previewObject"),
|
|
72
|
+
e.literal("removeRecords"),
|
|
73
|
+
e.literal("retrieveRecords"),
|
|
74
|
+
e.literal("upsertRecords")
|
|
75
|
+
]), A = e.union([e.literal("bidirectional"), e.literal("destination"), e.literal("source"), e.literal("unknown")]), T = v.extend({
|
|
76
|
+
typeId: C,
|
|
77
|
+
version: e.string()
|
|
78
|
+
}), oe = T.extend({
|
|
79
|
+
category: D.optional(),
|
|
80
|
+
categoryId: $,
|
|
81
|
+
implementations: e.record(e.string(), w),
|
|
82
|
+
operations: e.array(N),
|
|
83
|
+
typeId: e.literal("connector"),
|
|
84
|
+
usageId: A,
|
|
85
|
+
vendorAccountURL: e.string().nullable().optional(),
|
|
86
|
+
vendorDocumentationURL: e.string().nullable().optional(),
|
|
87
|
+
vendorHomeURL: e.string().nullable().optional()
|
|
88
|
+
}), O = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), R = e.union([
|
|
89
|
+
e.literal("alpha"),
|
|
90
|
+
e.literal("beta"),
|
|
91
|
+
e.literal("generalAvailability"),
|
|
92
|
+
e.literal("notApplicable"),
|
|
93
|
+
e.literal("preAlpha"),
|
|
94
|
+
e.literal("proposed"),
|
|
95
|
+
e.literal("releaseCandidate"),
|
|
96
|
+
e.literal("unavailable"),
|
|
97
|
+
e.literal("underReview")
|
|
98
|
+
]), j = e.union([
|
|
99
|
+
e.literal("app"),
|
|
100
|
+
e.literal("connector"),
|
|
101
|
+
e.literal("connectorConnection"),
|
|
102
|
+
e.literal("context"),
|
|
103
|
+
e.literal("contextModelGroup"),
|
|
104
|
+
e.literal("contextModel"),
|
|
105
|
+
e.literal("contextModelDimensionGroup"),
|
|
106
|
+
e.literal("contextModelDimension"),
|
|
107
|
+
e.literal("contextModelDimensionHierarchy"),
|
|
108
|
+
e.literal("contextModelEntityGroup"),
|
|
109
|
+
e.literal("contextModelEntity"),
|
|
110
|
+
e.literal("contextModelEntityDataItem"),
|
|
111
|
+
e.literal("contextModelEntityEvent"),
|
|
112
|
+
e.literal("contextModelEntityPrimaryMeasure"),
|
|
113
|
+
e.literal("contextModelSecondaryMeasureGroup"),
|
|
114
|
+
e.literal("contextModelSecondaryMeasure"),
|
|
115
|
+
e.literal("dataView"),
|
|
116
|
+
e.literal("dimension"),
|
|
117
|
+
e.literal("engine"),
|
|
118
|
+
e.literal("eventQuery"),
|
|
119
|
+
e.literal("presenter"),
|
|
120
|
+
e.literal("presenterPresentation"),
|
|
121
|
+
e.literal("tool")
|
|
122
|
+
]), p = e.number(), k = e.object({
|
|
123
|
+
id: e.string(),
|
|
124
|
+
color: O,
|
|
125
|
+
label: e.string()
|
|
126
|
+
}), F = e.object({
|
|
127
|
+
id: e.string(),
|
|
128
|
+
label: e.record(e.string(), e.string()),
|
|
129
|
+
description: e.record(e.string(), e.string()),
|
|
130
|
+
icon: e.string().optional(),
|
|
131
|
+
iconDark: e.string().optional(),
|
|
132
|
+
order: e.number(),
|
|
133
|
+
path: e.string()
|
|
134
|
+
}), b = e.object({
|
|
135
|
+
id: e.string(),
|
|
136
|
+
label: e.record(e.string(), e.string()),
|
|
137
|
+
description: e.record(e.string(), e.string()),
|
|
138
|
+
firstCreatedAt: p.optional(),
|
|
139
|
+
icon: e.string().optional(),
|
|
140
|
+
iconDark: e.string().optional(),
|
|
141
|
+
lastUpdatedAt: p.optional(),
|
|
142
|
+
status: k.optional(),
|
|
143
|
+
statusId: R,
|
|
144
|
+
typeId: j
|
|
145
|
+
}), G = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), U = b.extend({
|
|
146
|
+
typeId: G,
|
|
147
|
+
version: e.string()
|
|
148
|
+
}), B = b.extend({
|
|
149
|
+
modelRefs: e.array(F),
|
|
150
|
+
order: e.number()
|
|
151
|
+
}), L = e.literal("list"), ae = U.extend({
|
|
152
|
+
models: e.array(B),
|
|
153
|
+
operations: e.array(L),
|
|
154
|
+
typeId: e.literal("context")
|
|
155
|
+
}), P = e.union([e.literal("amber"), e.literal("green"), e.literal("red"), e.literal("other")]), H = e.union([e.literal("alpha"), e.literal("beta"), e.literal("generalAvailability"), e.literal("notApplicable"), e.literal("preAlpha"), e.literal("proposed"), e.literal("releaseCandidate"), e.literal("unavailable"), e.literal("underReview")]), V = e.union([e.literal("app"), e.literal("connector"), e.literal("connectorConnection"), e.literal("context"), e.literal("contextModelGroup"), e.literal("contextModel"), e.literal("contextModelDimensionGroup"), e.literal("contextModelDimension"), e.literal("contextModelDimensionHierarchy"), e.literal("contextModelEntityGroup"), e.literal("contextModelEntity"), e.literal("contextModelEntityDataItem"), e.literal("contextModelEntityEvent"), e.literal("contextModelEntityPrimaryMeasure"), e.literal("contextModelSecondaryMeasureGroup"), e.literal("contextModelSecondaryMeasure"), e.literal("dataView"), e.literal("dimension"), e.literal("engine"), e.literal("eventQuery"), e.literal("presenter"), e.literal("presenterPresentation"), e.literal("tool")]), g = e.number(), _ = e.object({
|
|
156
|
+
id: e.string(),
|
|
157
|
+
color: P,
|
|
158
|
+
label: e.string()
|
|
159
|
+
}), W = e.object({
|
|
160
|
+
id: e.string(),
|
|
161
|
+
label: e.record(e.string(), e.string()),
|
|
162
|
+
description: e.record(e.string(), e.string()),
|
|
163
|
+
icon: e.string().optional(),
|
|
164
|
+
iconDark: e.string().optional(),
|
|
165
|
+
order: e.number(),
|
|
166
|
+
path: e.string()
|
|
167
|
+
}), z = e.object({
|
|
168
|
+
id: e.string(),
|
|
169
|
+
label: e.record(e.string(), e.string()),
|
|
170
|
+
description: e.record(e.string(), e.string()),
|
|
171
|
+
firstCreatedAt: g.optional(),
|
|
172
|
+
icon: e.string().optional(),
|
|
173
|
+
iconDark: e.string().optional(),
|
|
174
|
+
lastUpdatedAt: g.optional(),
|
|
175
|
+
status: _.optional(),
|
|
176
|
+
statusId: H,
|
|
177
|
+
typeId: V
|
|
178
|
+
}), X = e.union([e.literal("app"), e.literal("engine"), e.literal("connector"), e.literal("context"), e.literal("presenter"), e.literal("tool")]), J = z.extend({
|
|
179
|
+
typeId: X,
|
|
180
|
+
version: e.string()
|
|
181
|
+
}), K = e.union([e.literal("list"), e.literal("render"), e.literal("setColorMode")]), le = J.extend({
|
|
182
|
+
presentations: e.array(W),
|
|
183
|
+
operations: e.array(K),
|
|
184
|
+
typeId: e.literal("presenter")
|
|
185
|
+
});
|
|
186
|
+
function ie() {
|
|
187
|
+
function t(o, n, r) {
|
|
4
188
|
r.textContent = "Cytoscape.js diagram goes here...";
|
|
5
189
|
}
|
|
6
|
-
return { render:
|
|
190
|
+
return { render: t };
|
|
7
191
|
}
|
|
8
|
-
function
|
|
9
|
-
function
|
|
10
|
-
console.log(1111,
|
|
192
|
+
function se() {
|
|
193
|
+
function t(o, n) {
|
|
194
|
+
console.log(1111, o), console.log(2222, n), console.log(3333, n.childNodes), console.log(4444, n.children);
|
|
11
195
|
}
|
|
12
|
-
return { render:
|
|
196
|
+
return { render: t };
|
|
13
197
|
}
|
|
14
|
-
const
|
|
15
|
-
class
|
|
198
|
+
const ce = 0, de = (t) => t, ue = () => Date.now();
|
|
199
|
+
class m extends Error {
|
|
16
200
|
locator;
|
|
17
|
-
constructor(
|
|
18
|
-
super(
|
|
201
|
+
constructor(o, n, r) {
|
|
202
|
+
super(o, r), this.name = "DataPosError", this.locator = n, Error.captureStackTrace?.(this, new.target);
|
|
19
203
|
}
|
|
20
204
|
}
|
|
21
|
-
class
|
|
22
|
-
constructor(
|
|
23
|
-
super(
|
|
205
|
+
class c extends m {
|
|
206
|
+
constructor(o, n, r) {
|
|
207
|
+
super(o, n, r), this.name = "ApplicationError";
|
|
24
208
|
}
|
|
25
209
|
}
|
|
26
|
-
class
|
|
27
|
-
constructor(
|
|
28
|
-
super(
|
|
210
|
+
class me extends c {
|
|
211
|
+
constructor(o, n, r) {
|
|
212
|
+
super(o, n, r), this.name = "APIError";
|
|
29
213
|
}
|
|
30
214
|
}
|
|
31
|
-
class
|
|
32
|
-
constructor(
|
|
33
|
-
super(
|
|
215
|
+
class pe extends c {
|
|
216
|
+
constructor(o, n, r) {
|
|
217
|
+
super(o, n, r), this.name = "EngineError";
|
|
34
218
|
}
|
|
35
219
|
}
|
|
36
|
-
class
|
|
220
|
+
class f extends c {
|
|
37
221
|
body;
|
|
38
|
-
constructor(
|
|
39
|
-
super(
|
|
222
|
+
constructor(o, n, r, a) {
|
|
223
|
+
super(o, n, a), this.name = "FetchError", this.body = r;
|
|
40
224
|
}
|
|
41
225
|
}
|
|
42
|
-
class
|
|
226
|
+
class Q extends c {
|
|
43
227
|
componentName;
|
|
44
228
|
info;
|
|
45
|
-
constructor(
|
|
46
|
-
super(
|
|
229
|
+
constructor(o, n, r, a, i) {
|
|
230
|
+
super(o, n, i), this.name = "VueHandledError", this.info = r, this.componentName = a;
|
|
47
231
|
}
|
|
48
232
|
}
|
|
49
|
-
class
|
|
50
|
-
constructor(
|
|
51
|
-
super(
|
|
233
|
+
class ge extends c {
|
|
234
|
+
constructor(o, n, r) {
|
|
235
|
+
super(o, n, r), this.name = "WindowHandledRuntimeError";
|
|
52
236
|
}
|
|
53
237
|
}
|
|
54
|
-
class
|
|
55
|
-
constructor(
|
|
56
|
-
super(
|
|
238
|
+
class be extends c {
|
|
239
|
+
constructor(o, n, r) {
|
|
240
|
+
super(o, n, r), this.name = "WindowHandledPromiseRejectionError";
|
|
57
241
|
}
|
|
58
242
|
}
|
|
59
|
-
class
|
|
60
|
-
constructor(
|
|
61
|
-
super(
|
|
243
|
+
class fe extends m {
|
|
244
|
+
constructor(o, n, r) {
|
|
245
|
+
super(o, n, r), this.name = "OperationalError";
|
|
62
246
|
}
|
|
63
247
|
}
|
|
64
|
-
async function
|
|
65
|
-
const r = `${
|
|
66
|
-
return new
|
|
248
|
+
async function he(t, o, n) {
|
|
249
|
+
const r = `${o} Response status '${t.status}${t.statusText ? ` - ${t.statusText}` : ""}' received.`, a = await t.text();
|
|
250
|
+
return new f(r, n, a);
|
|
67
251
|
}
|
|
68
|
-
function
|
|
69
|
-
return
|
|
252
|
+
function xe(t) {
|
|
253
|
+
return t.map((o) => o.message).join(" ");
|
|
70
254
|
}
|
|
71
|
-
function
|
|
72
|
-
if (
|
|
73
|
-
if (typeof
|
|
255
|
+
function ye(t, o = "Unknown error.") {
|
|
256
|
+
if (t instanceof Error) return t;
|
|
257
|
+
if (typeof t == "string") return new Error(t);
|
|
74
258
|
try {
|
|
75
|
-
return new Error(JSON.stringify(
|
|
259
|
+
return new Error(JSON.stringify(t ?? o));
|
|
76
260
|
} catch {
|
|
77
|
-
return new Error(
|
|
261
|
+
return new Error(o);
|
|
78
262
|
}
|
|
79
263
|
}
|
|
80
|
-
function
|
|
81
|
-
const
|
|
82
|
-
let r =
|
|
83
|
-
for (; r && !
|
|
84
|
-
|
|
85
|
-
let
|
|
86
|
-
if (r instanceof
|
|
87
|
-
|
|
88
|
-
else if (r instanceof
|
|
89
|
-
|
|
90
|
-
else if (r instanceof
|
|
91
|
-
|
|
264
|
+
function Ee(t) {
|
|
265
|
+
const o = /* @__PURE__ */ new Set(), n = [];
|
|
266
|
+
let r = t;
|
|
267
|
+
for (; r && !o.has(r); ) {
|
|
268
|
+
o.add(r);
|
|
269
|
+
let a;
|
|
270
|
+
if (r instanceof f)
|
|
271
|
+
a = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
272
|
+
else if (r instanceof Q)
|
|
273
|
+
a = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
274
|
+
else if (r instanceof m)
|
|
275
|
+
a = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
92
276
|
else if (r instanceof Error) {
|
|
93
|
-
const
|
|
94
|
-
|
|
95
|
-
} else r ? (
|
|
96
|
-
/(?:\.{3}|[.!?])$/.test(
|
|
277
|
+
const i = r;
|
|
278
|
+
a = { locator: "", message: i.message, name: i.name, stack: i.stack }, r = i.cause;
|
|
279
|
+
} else r ? (a = { locator: "", message: String(r), name: "Error" }, r = void 0) : (a = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
|
|
280
|
+
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a);
|
|
97
281
|
}
|
|
98
|
-
return
|
|
282
|
+
return n;
|
|
99
283
|
}
|
|
100
|
-
const
|
|
101
|
-
switch (
|
|
284
|
+
const h = "en-US", d = {}, Se = (t) => {
|
|
285
|
+
switch (t) {
|
|
102
286
|
case "Edm.Binary":
|
|
103
287
|
return "unknown";
|
|
104
288
|
// Binary...
|
|
@@ -136,42 +320,42 @@ const f = "en-US", c = {}, B = (e) => {
|
|
|
136
320
|
default:
|
|
137
321
|
return "unknown";
|
|
138
322
|
}
|
|
139
|
-
},
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
return
|
|
323
|
+
}, Me = (t) => {
|
|
324
|
+
if (t) {
|
|
325
|
+
const o = t.lastIndexOf("/"), n = t.lastIndexOf(".", o > -1 ? o : t.length);
|
|
326
|
+
return n > -1 ? t.substring(0, n) : t;
|
|
143
327
|
}
|
|
144
|
-
},
|
|
145
|
-
if (
|
|
146
|
-
const
|
|
147
|
-
if (
|
|
328
|
+
}, Ie = (t) => {
|
|
329
|
+
if (t) {
|
|
330
|
+
const o = t.lastIndexOf(".");
|
|
331
|
+
if (o > -1) return t.substring(o + 1);
|
|
148
332
|
}
|
|
149
|
-
},
|
|
150
|
-
if (
|
|
151
|
-
const
|
|
152
|
-
let
|
|
153
|
-
return
|
|
333
|
+
}, l = (t, o = 2, n = o, r = h) => {
|
|
334
|
+
if (t == null) return "";
|
|
335
|
+
const a = `${r}decimal${o}.${n}`;
|
|
336
|
+
let i = d[a];
|
|
337
|
+
return i || (i = new Intl.NumberFormat(r, {
|
|
154
338
|
localeMatcher: "best fit",
|
|
155
|
-
maximumFractionDigits:
|
|
156
|
-
minimumFractionDigits:
|
|
339
|
+
maximumFractionDigits: o,
|
|
340
|
+
minimumFractionDigits: n,
|
|
157
341
|
minimumIntegerDigits: 1,
|
|
158
342
|
style: "decimal",
|
|
159
343
|
useGrouping: !0
|
|
160
|
-
}),
|
|
161
|
-
},
|
|
162
|
-
if (
|
|
163
|
-
const
|
|
164
|
-
let r =
|
|
165
|
-
return r || (r = new Intl.NumberFormat(
|
|
344
|
+
}), d[a] = i), i.format(t);
|
|
345
|
+
}, ve = (t) => t == null ? "" : t < 1e3 ? u(t) : t < 1e6 ? `${l(t / 1e3, 2, 0)}K` : t < 1e9 ? `${l(t / 1e6, 2, 0)}M` : t < 1e12 ? `${l(t / 1e9, 2, 0)}B` : `${l(t / 1e12, 2, 0)}T`, Ce = (t) => t == null ? "" : t === 1 ? "1 byte" : t < 1024 ? `${u(t)} bytes` : t < 1048576 ? `${l(t / 1024, 2, 0)} KB` : t < 1073741824 ? `${l(t / 1048576, 2, 0)} MB` : t < 1099511627776 ? `${l(t / 1073741824, 2, 0)} GB` : `${l(t / 1099511627776, 2, 0)} TB`, De = (t) => t == null ? "" : t < 1e3 ? `${u(t)} ms` : t === 1e3 ? `${u(t)} sec` : t < 6e4 ? `${l(t / 1e3, 2, 0)} secs` : t === 6e4 ? "1 min" : t < 36e5 ? `${l(t / 6e4, 2, 0)} mins` : t === 36e5 ? "1 hr" : t < 864e5 ? `${l(t / 36e5, 2, 0)} hrs` : t === 864e5 ? "1 day" : `${l(t / 864e5, 2, 0)} days`, u = (t, o = h) => {
|
|
346
|
+
if (t == null) return "";
|
|
347
|
+
const n = `${o}decimal0.0`;
|
|
348
|
+
let r = d[n];
|
|
349
|
+
return r || (r = new Intl.NumberFormat(o, {
|
|
166
350
|
localeMatcher: "best fit",
|
|
167
351
|
maximumFractionDigits: 0,
|
|
168
352
|
minimumFractionDigits: 0,
|
|
169
353
|
minimumIntegerDigits: 1,
|
|
170
354
|
style: "decimal",
|
|
171
355
|
useGrouping: !0
|
|
172
|
-
}),
|
|
173
|
-
},
|
|
174
|
-
switch (
|
|
356
|
+
}), d[n] = r), r.format(t);
|
|
357
|
+
}, we = (t) => {
|
|
358
|
+
switch (t) {
|
|
175
359
|
case "csv":
|
|
176
360
|
return "text/csv";
|
|
177
361
|
case "tab":
|
|
@@ -184,7 +368,7 @@ const f = "en-US", c = {}, B = (e) => {
|
|
|
184
368
|
default:
|
|
185
369
|
return "application/octet-stream";
|
|
186
370
|
}
|
|
187
|
-
},
|
|
371
|
+
}, q = [
|
|
188
372
|
{ id: "dtv", label: { "en-gb": "Delimited Text" } },
|
|
189
373
|
{ id: "e/e", label: { "en-gb": "Entity/Event" } },
|
|
190
374
|
{ id: "jsonArray", label: { "en-gb": "JSON Array" } },
|
|
@@ -192,22 +376,22 @@ const f = "en-US", c = {}, B = (e) => {
|
|
|
192
376
|
{ id: "xls", label: { "en-gb": "XLS" } },
|
|
193
377
|
{ id: "xlsx", label: { "en-gb": "XLSX" } },
|
|
194
378
|
{ id: "xml", label: { "en-gb": "XML" } }
|
|
195
|
-
],
|
|
196
|
-
const
|
|
197
|
-
for (const
|
|
198
|
-
return
|
|
199
|
-
},
|
|
379
|
+
], $e = (t = s) => {
|
|
380
|
+
const o = [];
|
|
381
|
+
for (const n of q) o.push({ ...n, label: n.label[t] || n.label[s] || n.id });
|
|
382
|
+
return o;
|
|
383
|
+
}, Y = [
|
|
200
384
|
{ id: `
|
|
201
385
|
`, label: { "en-gb": "Newline" } },
|
|
202
386
|
{ id: "\r", label: { "en-gb": "Carriage Return" } },
|
|
203
387
|
{ id: `\r
|
|
204
388
|
`, label: { "en-gb": "Carriage Return/Newline" } }
|
|
205
|
-
],
|
|
206
|
-
const
|
|
207
|
-
for (const
|
|
208
|
-
|
|
209
|
-
return
|
|
210
|
-
},
|
|
389
|
+
], Ne = (t = s) => {
|
|
390
|
+
const o = [];
|
|
391
|
+
for (const n of Y)
|
|
392
|
+
o.push({ ...n, label: n.label[t] || n.label[s] || n.id });
|
|
393
|
+
return o;
|
|
394
|
+
}, Z = [
|
|
211
395
|
{ id: ":", label: { "en-gb": "Colon" } },
|
|
212
396
|
{ id: ",", label: { "en-gb": "Comma" } },
|
|
213
397
|
{ id: "!", label: { "en-gb": "Exclamation Mark" } },
|
|
@@ -219,12 +403,12 @@ const f = "en-US", c = {}, B = (e) => {
|
|
|
219
403
|
{ id: "_", label: { "en-gb": "Underscore" } },
|
|
220
404
|
{ id: "0x1F", label: { "en-gb": "Unit Separator" } },
|
|
221
405
|
{ id: "|", label: { "en-gb": "Vertical Bar" } }
|
|
222
|
-
],
|
|
223
|
-
const
|
|
224
|
-
for (const
|
|
225
|
-
|
|
226
|
-
return
|
|
227
|
-
},
|
|
406
|
+
], Ae = (t = s) => {
|
|
407
|
+
const o = [];
|
|
408
|
+
for (const n of Z)
|
|
409
|
+
o.push({ ...n, label: n.label[t] || n.label[s] || n.id });
|
|
410
|
+
return o;
|
|
411
|
+
}, ee = [
|
|
228
412
|
{ id: "alpha", color: "red", label: { "en-gb": "alpha" } },
|
|
229
413
|
{ id: "beta", color: "amber", label: { "en-gb": "beta" } },
|
|
230
414
|
{ id: "generalAvailability", color: "green", label: { "en-gb": "" } },
|
|
@@ -234,42 +418,45 @@ const f = "en-US", c = {}, B = (e) => {
|
|
|
234
418
|
{ id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
|
|
235
419
|
{ id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
|
|
236
420
|
{ id: "underReview", color: "other", label: { "en-gb": "under-review" } }
|
|
237
|
-
],
|
|
238
|
-
const
|
|
239
|
-
return
|
|
240
|
-
},
|
|
421
|
+
], Te = (t, o = s) => {
|
|
422
|
+
const n = ee.find((r) => r.id === t);
|
|
423
|
+
return n ? { ...n, label: n.label[o] || n.label[s] || t } : { id: t, color: "other", label: t };
|
|
424
|
+
}, s = "en-gb";
|
|
241
425
|
export {
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
426
|
+
me as APIError,
|
|
427
|
+
c as ApplicationError,
|
|
428
|
+
re as CONNECTOR_DESTINATION_OPERATIONS,
|
|
429
|
+
ne as CONNECTOR_SOURCE_OPERATIONS,
|
|
430
|
+
s as DEFAULT_LOCALE_CODE,
|
|
431
|
+
ce as DefaultTimestamp,
|
|
432
|
+
pe as EngineError,
|
|
433
|
+
f as FetchError,
|
|
434
|
+
fe as OperationalError,
|
|
435
|
+
Q as VueError,
|
|
436
|
+
be as WindowPromiseRejectionError,
|
|
437
|
+
ge as WindowRuntimeError,
|
|
438
|
+
he as buildFetchError,
|
|
439
|
+
xe as concatenateSerialisedErrorMessages,
|
|
440
|
+
oe as connectorConfigSchema,
|
|
441
|
+
ae as contextConfigSchema,
|
|
442
|
+
de as convertMillisecondsToTimestamp,
|
|
443
|
+
Se as convertODataTypeIdToUsageTypeId,
|
|
444
|
+
Ie as extractExtensionFromPath,
|
|
445
|
+
Me as extractNameFromPath,
|
|
446
|
+
l as formatNumberAsDecimalNumber,
|
|
447
|
+
De as formatNumberAsDuration,
|
|
448
|
+
ve as formatNumberAsSize,
|
|
449
|
+
Ce as formatNumberAsStorageSize,
|
|
450
|
+
u as formatNumberAsWholeNumber,
|
|
451
|
+
Te as getComponentStatus,
|
|
452
|
+
ue as getCurrentTimestamp,
|
|
453
|
+
$e as getDataFormats,
|
|
454
|
+
Ne as getRecordDelimiters,
|
|
455
|
+
Ae as getValueDelimiters,
|
|
456
|
+
we as lookupMimeTypeForExtension,
|
|
457
|
+
ye as normalizeToError,
|
|
458
|
+
le as presenterConfigSchema,
|
|
459
|
+
Ee as serialiseError,
|
|
460
|
+
ie as useCytoscapeJS,
|
|
461
|
+
se as useDataTable
|
|
275
462
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ export type { PreviewResult, PreviewSettings } from './component/connector';
|
|
|
19
19
|
export type { RemoveSettings } from './component/connector';
|
|
20
20
|
export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './component/connector';
|
|
21
21
|
export type { UpsertSettings } from './component/connector';
|
|
22
|
+
export { connectorConfigSchema } from './component/connector/connectorSchema';
|
|
23
|
+
export { contextConfigSchema } from './component/context/contextSchema';
|
|
24
|
+
export { presenterConfigSchema } from './component/presenter/presenterSchema';
|
|
22
25
|
export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
|
|
23
26
|
export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
|
|
24
27
|
export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
|
package/package.json
CHANGED