@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.
@@ -1,104 +1,288 @@
1
- const x = ["createObject", "dropObject", "removeRecords", "upsertRecords"], N = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
- function w() {
3
- function e(n, t, r) {
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: e };
190
+ return { render: t };
7
191
  }
8
- function S() {
9
- function e(n, t) {
10
- console.log(1111, n), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
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: e };
196
+ return { render: t };
13
197
  }
14
- const T = 0, y = (e) => e, D = () => Date.now();
15
- class u extends Error {
198
+ const ce = 0, de = (t) => t, ue = () => Date.now();
199
+ class m extends Error {
16
200
  locator;
17
- constructor(n, t, r) {
18
- super(n, r), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
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 l extends u {
22
- constructor(n, t, r) {
23
- super(n, t, r), this.name = "ApplicationError";
205
+ class c extends m {
206
+ constructor(o, n, r) {
207
+ super(o, n, r), this.name = "ApplicationError";
24
208
  }
25
209
  }
26
- class v extends l {
27
- constructor(n, t, r) {
28
- super(n, t, r), this.name = "APIError";
210
+ class me extends c {
211
+ constructor(o, n, r) {
212
+ super(o, n, r), this.name = "APIError";
29
213
  }
30
214
  }
31
- class O extends l {
32
- constructor(n, t, r) {
33
- super(n, t, r), this.name = "EngineError";
215
+ class pe extends c {
216
+ constructor(o, n, r) {
217
+ super(o, n, r), this.name = "EngineError";
34
218
  }
35
219
  }
36
- class m extends l {
220
+ class f extends c {
37
221
  body;
38
- constructor(n, t, r, o) {
39
- super(n, t, o), this.name = "FetchError", this.body = r;
222
+ constructor(o, n, r, a) {
223
+ super(o, n, a), this.name = "FetchError", this.body = r;
40
224
  }
41
225
  }
42
- class g extends l {
226
+ class Q extends c {
43
227
  componentName;
44
228
  info;
45
- constructor(n, t, r, o, s) {
46
- super(n, t, s), this.name = "VueHandledError", this.info = r, this.componentName = o;
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 $ extends l {
50
- constructor(n, t, r) {
51
- super(n, t, r), this.name = "WindowHandledRuntimeError";
233
+ class ge extends c {
234
+ constructor(o, n, r) {
235
+ super(o, n, r), this.name = "WindowHandledRuntimeError";
52
236
  }
53
237
  }
54
- class I extends l {
55
- constructor(n, t, r) {
56
- super(n, t, r), this.name = "WindowHandledPromiseRejectionError";
238
+ class be extends c {
239
+ constructor(o, n, r) {
240
+ super(o, n, r), this.name = "WindowHandledPromiseRejectionError";
57
241
  }
58
242
  }
59
- class A extends u {
60
- constructor(n, t, r) {
61
- super(n, t, r), this.name = "OperationalError";
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 C(e, n, t) {
65
- const r = `${n} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
66
- return new m(r, t, o);
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 F(e) {
69
- return e.map((n) => n.message).join(" ");
252
+ function xe(t) {
253
+ return t.map((o) => o.message).join(" ");
70
254
  }
71
- function R(e, n = "Unknown error.") {
72
- if (e instanceof Error) return e;
73
- if (typeof e == "string") return new Error(e);
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(e ?? n));
259
+ return new Error(JSON.stringify(t ?? o));
76
260
  } catch {
77
- return new Error(n);
261
+ return new Error(o);
78
262
  }
79
263
  }
80
- function k(e) {
81
- const n = /* @__PURE__ */ new Set(), t = [];
82
- let r = e;
83
- for (; r && !n.has(r); ) {
84
- n.add(r);
85
- let o;
86
- if (r instanceof m)
87
- o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
88
- else if (r instanceof g)
89
- o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
90
- else if (r instanceof u)
91
- o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
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 s = r;
94
- o = { locator: "", message: s.message, name: s.name, stack: s.stack }, r = s.cause;
95
- } else r ? (o = { locator: "", message: String(r), name: "Error" }, r = void 0) : (o = { locator: "", message: "Unknown error.", name: "Error" }, r = void 0);
96
- /(?:\.{3}|[.!?])$/.test(o.message) || (o.message += "."), t.push(o);
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 t;
282
+ return n;
99
283
  }
100
- const f = "en-US", c = {}, B = (e) => {
101
- switch (e) {
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
- }, M = (e) => {
140
- if (e) {
141
- const n = e.lastIndexOf("/"), t = e.lastIndexOf(".", n > -1 ? n : e.length);
142
- return t > -1 ? e.substring(0, t) : e;
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
- }, j = (e) => {
145
- if (e) {
146
- const n = e.lastIndexOf(".");
147
- if (n > -1) return e.substring(n + 1);
328
+ }, Ie = (t) => {
329
+ if (t) {
330
+ const o = t.lastIndexOf(".");
331
+ if (o > -1) return t.substring(o + 1);
148
332
  }
149
- }, a = (e, n = 2, t = n, r = f) => {
150
- if (e == null) return "";
151
- const o = `${r}decimal${n}.${t}`;
152
- let s = c[o];
153
- return s || (s = new Intl.NumberFormat(r, {
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: n,
156
- minimumFractionDigits: t,
339
+ maximumFractionDigits: o,
340
+ minimumFractionDigits: n,
157
341
  minimumIntegerDigits: 1,
158
342
  style: "decimal",
159
343
  useGrouping: !0
160
- }), c[o] = s), s.format(e);
161
- }, U = (e) => e == null ? "" : e < 1e3 ? d(e) : e < 1e6 ? `${a(e / 1e3, 2, 0)}K` : e < 1e9 ? `${a(e / 1e6, 2, 0)}M` : e < 1e12 ? `${a(e / 1e9, 2, 0)}B` : `${a(e / 1e12, 2, 0)}T`, L = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${d(e)} bytes` : e < 1048576 ? `${a(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${a(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${a(e / 1073741824, 2, 0)} GB` : `${a(e / 1099511627776, 2, 0)} TB`, _ = (e) => e == null ? "" : e < 1e3 ? `${d(e)} ms` : e === 1e3 ? `${d(e)} sec` : e < 6e4 ? `${a(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${a(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${a(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${a(e / 864e5, 2, 0)} days`, d = (e, n = f) => {
162
- if (e == null) return "";
163
- const t = `${n}decimal0.0`;
164
- let r = c[t];
165
- return r || (r = new Intl.NumberFormat(n, {
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
- }), c[t] = r), r.format(e);
173
- }, W = (e) => {
174
- switch (e) {
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
- }, b = [
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
- ], G = (e = i) => {
196
- const n = [];
197
- for (const t of b) n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
198
- return n;
199
- }, p = [
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
- ], V = (e = i) => {
206
- const n = [];
207
- for (const t of p)
208
- n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
209
- return n;
210
- }, E = [
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
- ], X = (e = i) => {
223
- const n = [];
224
- for (const t of E)
225
- n.push({ ...t, label: t.label[e] || t.label[i] || t.id });
226
- return n;
227
- }, h = [
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
- ], z = (e, n = i) => {
238
- const t = h.find((r) => r.id === e);
239
- return t ? { ...t, label: t.label[n] || t.label[i] || e } : { id: e, color: "other", label: e };
240
- }, i = "en-gb";
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
- v as APIError,
243
- l as ApplicationError,
244
- x as CONNECTOR_DESTINATION_OPERATIONS,
245
- N as CONNECTOR_SOURCE_OPERATIONS,
246
- i as DEFAULT_LOCALE_CODE,
247
- T as DefaultTimestamp,
248
- O as EngineError,
249
- m as FetchError,
250
- A as OperationalError,
251
- g as VueError,
252
- I as WindowPromiseRejectionError,
253
- $ as WindowRuntimeError,
254
- C as buildFetchError,
255
- F as concatenateSerialisedErrorMessages,
256
- y as convertMillisecondsToTimestamp,
257
- B as convertODataTypeIdToUsageTypeId,
258
- j as extractExtensionFromPath,
259
- M as extractNameFromPath,
260
- a as formatNumberAsDecimalNumber,
261
- _ as formatNumberAsDuration,
262
- U as formatNumberAsSize,
263
- L as formatNumberAsStorageSize,
264
- d as formatNumberAsWholeNumber,
265
- z as getComponentStatus,
266
- D as getCurrentTimestamp,
267
- G as getDataFormats,
268
- V as getRecordDelimiters,
269
- X as getValueDelimiters,
270
- W as lookupMimeTypeForExtension,
271
- R as normalizeToError,
272
- k as serialiseError,
273
- w as useCytoscapeJS,
274
- S as useDataTable
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
  };
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.268",
3
+ "version": "0.3.269",
4
4
  "description": "A TypeScript library containing common declarations and utilities used across other Data Positioning repositories.",
5
5
  "license": "MIT",
6
6
  "private": false,