@datapos/datapos-shared 0.3.312 → 0.3.314

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,138 +1,200 @@
1
- let w;
1
+ let O;
2
2
  // @__NO_SIDE_EFFECTS__
3
- function R(e) {
3
+ function L(e) {
4
4
  return {
5
- lang: e?.lang ?? w?.lang,
5
+ lang: e?.lang ?? O?.lang,
6
6
  message: e?.message,
7
- abortEarly: e?.abortEarly ?? w?.abortEarly,
8
- abortPipeEarly: e?.abortPipeEarly ?? w?.abortPipeEarly
7
+ abortEarly: e?.abortEarly ?? O?.abortEarly,
8
+ abortPipeEarly: e?.abortPipeEarly ?? O?.abortPipeEarly
9
9
  };
10
10
  }
11
- let j;
11
+ let P;
12
12
  // @__NO_SIDE_EFFECTS__
13
- function F(e) {
14
- return j?.get(e);
13
+ function V(e) {
14
+ return P?.get(e);
15
15
  }
16
- let _;
16
+ let H;
17
17
  // @__NO_SIDE_EFFECTS__
18
- function U(e) {
19
- return _?.get(e);
18
+ function K(e) {
19
+ return H?.get(e);
20
20
  }
21
- let B;
21
+ let W;
22
22
  // @__NO_SIDE_EFFECTS__
23
- function P(e, r) {
24
- return B?.get(e)?.get(r);
23
+ function X(e, r) {
24
+ return W?.get(e)?.get(r);
25
25
  }
26
26
  // @__NO_SIDE_EFFECTS__
27
- function T(e) {
27
+ function F(e) {
28
28
  const r = typeof e;
29
29
  return r === "string" ? `"${e}"` : r === "number" || r === "bigint" || r === "boolean" ? `${e}` : r === "object" || r === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : r;
30
30
  }
31
- function m(e, r, t, n, o) {
32
- const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null, p = o?.received ?? /* @__PURE__ */ T(s), a = {
31
+ function y(e, r, t, n, o) {
32
+ const s = o && "input" in o ? o.input : t.value, i = o?.expected ?? e.expects ?? null, c = o?.received ?? /* @__PURE__ */ F(s), a = {
33
33
  kind: e.kind,
34
34
  type: e.type,
35
35
  input: s,
36
36
  expected: i,
37
- received: p,
38
- message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${p}`,
37
+ received: c,
38
+ message: `Invalid ${r}: ${i ? `Expected ${i} but r` : "R"}eceived ${c}`,
39
39
  requirement: e.requirement,
40
40
  path: o?.path,
41
41
  issues: o?.issues,
42
42
  lang: n.lang,
43
43
  abortEarly: n.abortEarly,
44
44
  abortPipeEarly: n.abortPipeEarly
45
- }, h = e.kind === "schema", u = o?.message ?? e.message ?? /* @__PURE__ */ P(e.reference, a.lang) ?? (h ? /* @__PURE__ */ U(a.lang) : null) ?? n.message ?? /* @__PURE__ */ F(a.lang);
46
- u !== void 0 && (a.message = typeof u == "function" ? u(a) : u), h && (t.typed = !1), t.issues ? t.issues.push(a) : t.issues = [a];
45
+ }, u = e.kind === "schema", p = o?.message ?? e.message ?? /* @__PURE__ */ X(e.reference, a.lang) ?? (u ? /* @__PURE__ */ K(a.lang) : null) ?? n.message ?? /* @__PURE__ */ V(a.lang);
46
+ p !== void 0 && (a.message = typeof p == "function" ? p(a) : p), u && (t.typed = !1), t.issues ? t.issues.push(a) : t.issues = [a];
47
47
  }
48
48
  // @__NO_SIDE_EFFECTS__
49
- function b(e) {
49
+ function g(e) {
50
50
  return {
51
51
  version: 1,
52
52
  vendor: "valibot",
53
53
  validate(r) {
54
- return e["~run"]({ value: r }, /* @__PURE__ */ R());
54
+ return e["~run"]({ value: r }, /* @__PURE__ */ L());
55
55
  }
56
56
  };
57
57
  }
58
58
  // @__NO_SIDE_EFFECTS__
59
- function G(e, r) {
59
+ function z(e, r) {
60
+ return Object.hasOwn(e, r) && r !== "__proto__" && r !== "prototype" && r !== "constructor";
61
+ }
62
+ // @__NO_SIDE_EFFECTS__
63
+ function J(e, r) {
60
64
  const t = [...new Set(e)];
61
65
  return t.length > 1 ? `(${t.join(` ${r} `)})` : t[0] ?? "never";
62
66
  }
63
67
  // @__NO_SIDE_EFFECTS__
64
- function L(e, r, t) {
68
+ function q(e, r, t) {
65
69
  return typeof e.fallback == "function" ? e.fallback(r, t) : e.fallback;
66
70
  }
67
71
  // @__NO_SIDE_EFFECTS__
68
- function D(e, r, t) {
72
+ function N(e, r, t) {
69
73
  return typeof e.default == "function" ? e.default(r, t) : e.default;
70
74
  }
71
75
  // @__NO_SIDE_EFFECTS__
72
- function C(e, r) {
76
+ function v(e, r) {
77
+ return {
78
+ kind: "schema",
79
+ type: "array",
80
+ reference: v,
81
+ expects: "Array",
82
+ async: !1,
83
+ item: e,
84
+ message: r,
85
+ get "~standard"() {
86
+ return /* @__PURE__ */ g(this);
87
+ },
88
+ "~run"(t, n) {
89
+ const o = t.value;
90
+ if (Array.isArray(o)) {
91
+ t.typed = !0, t.value = [];
92
+ for (let s = 0; s < o.length; s++) {
93
+ const i = o[s], c = this.item["~run"]({ value: i }, n);
94
+ if (c.issues) {
95
+ const a = {
96
+ type: "array",
97
+ origin: "value",
98
+ input: o,
99
+ key: s,
100
+ value: i
101
+ };
102
+ for (const u of c.issues)
103
+ u.path ? u.path.unshift(a) : u.path = [a], t.issues?.push(u);
104
+ if (t.issues || (t.issues = c.issues), n.abortEarly) {
105
+ t.typed = !1;
106
+ break;
107
+ }
108
+ }
109
+ c.typed || (t.typed = !1), t.value.push(c.value);
110
+ }
111
+ } else y(this, "type", t, n);
112
+ return t;
113
+ }
114
+ };
115
+ }
116
+ // @__NO_SIDE_EFFECTS__
117
+ function $(e) {
118
+ return {
119
+ kind: "schema",
120
+ type: "boolean",
121
+ reference: $,
122
+ expects: "boolean",
123
+ async: !1,
124
+ message: e,
125
+ get "~standard"() {
126
+ return /* @__PURE__ */ g(this);
127
+ },
128
+ "~run"(r, t) {
129
+ return typeof r.value == "boolean" ? r.typed = !0 : y(this, "type", r, t), r;
130
+ }
131
+ };
132
+ }
133
+ // @__NO_SIDE_EFFECTS__
134
+ function k(e, r) {
73
135
  return {
74
136
  kind: "schema",
75
137
  type: "literal",
76
- reference: C,
77
- expects: /* @__PURE__ */ T(e),
138
+ reference: k,
139
+ expects: /* @__PURE__ */ F(e),
78
140
  async: !1,
79
141
  literal: e,
80
142
  message: r,
81
143
  get "~standard"() {
82
- return /* @__PURE__ */ b(this);
144
+ return /* @__PURE__ */ g(this);
83
145
  },
84
146
  "~run"(t, n) {
85
- return t.value === this.literal ? t.typed = !0 : m(this, "type", t, n), t;
147
+ return t.value === this.literal ? t.typed = !0 : y(this, "type", t, n), t;
86
148
  }
87
149
  };
88
150
  }
89
151
  // @__NO_SIDE_EFFECTS__
90
- function E(e, r) {
152
+ function b(e, r) {
91
153
  return {
92
154
  kind: "schema",
93
155
  type: "nullable",
94
- reference: E,
156
+ reference: b,
95
157
  expects: `(${e.expects} | null)`,
96
158
  async: !1,
97
159
  wrapped: e,
98
160
  default: r,
99
161
  get "~standard"() {
100
- return /* @__PURE__ */ b(this);
162
+ return /* @__PURE__ */ g(this);
101
163
  },
102
164
  "~run"(t, n) {
103
- return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ D(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
165
+ return t.value === null && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === null) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
104
166
  }
105
167
  };
106
168
  }
107
169
  // @__NO_SIDE_EFFECTS__
108
- function k(e) {
170
+ function S(e) {
109
171
  return {
110
172
  kind: "schema",
111
173
  type: "number",
112
- reference: k,
174
+ reference: S,
113
175
  expects: "number",
114
176
  async: !1,
115
177
  message: e,
116
178
  get "~standard"() {
117
- return /* @__PURE__ */ b(this);
179
+ return /* @__PURE__ */ g(this);
118
180
  },
119
181
  "~run"(r, t) {
120
- return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : m(this, "type", r, t), r;
182
+ return typeof r.value == "number" && !isNaN(r.value) ? r.typed = !0 : y(this, "type", r, t), r;
121
183
  }
122
184
  };
123
185
  }
124
186
  // @__NO_SIDE_EFFECTS__
125
- function S(e, r) {
187
+ function m(e, r) {
126
188
  return {
127
189
  kind: "schema",
128
190
  type: "object",
129
- reference: S,
191
+ reference: m,
130
192
  expects: "Object",
131
193
  async: !1,
132
194
  entries: e,
133
195
  message: r,
134
196
  get "~standard"() {
135
- return /* @__PURE__ */ b(this);
197
+ return /* @__PURE__ */ g(this);
136
198
  },
137
199
  "~run"(t, n) {
138
200
  const o = t.value;
@@ -141,25 +203,25 @@ function S(e, r) {
141
203
  for (const s in this.entries) {
142
204
  const i = this.entries[s];
143
205
  if (s in o || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
144
- const p = s in o ? o[s] : /* @__PURE__ */ D(i), a = i["~run"]({ value: p }, n);
206
+ const c = s in o ? o[s] : /* @__PURE__ */ N(i), a = i["~run"]({ value: c }, n);
145
207
  if (a.issues) {
146
- const h = {
208
+ const u = {
147
209
  type: "object",
148
210
  origin: "value",
149
211
  input: o,
150
212
  key: s,
151
- value: p
213
+ value: c
152
214
  };
153
- for (const u of a.issues)
154
- u.path ? u.path.unshift(h) : u.path = [h], t.issues?.push(u);
215
+ for (const p of a.issues)
216
+ p.path ? p.path.unshift(u) : p.path = [u], t.issues?.push(p);
155
217
  if (t.issues || (t.issues = a.issues), n.abortEarly) {
156
218
  t.typed = !1;
157
219
  break;
158
220
  }
159
221
  }
160
222
  a.typed || (t.typed = !1), t.value[s] = a.value;
161
- } else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */ L(i);
162
- else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (m(this, "key", t, n, {
223
+ } else if (i.fallback !== void 0) t.value[s] = /* @__PURE__ */ q(i);
224
+ else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (y(this, "key", t, n, {
163
225
  input: void 0,
164
226
  expected: `"${s}"`,
165
227
  path: [{
@@ -172,69 +234,127 @@ function S(e, r) {
172
234
  }), n.abortEarly))
173
235
  break;
174
236
  }
175
- } else m(this, "type", t, n);
237
+ } else y(this, "type", t, n);
176
238
  return t;
177
239
  }
178
240
  };
179
241
  }
180
242
  // @__NO_SIDE_EFFECTS__
181
- function g(e, r) {
243
+ function f(e, r) {
182
244
  return {
183
245
  kind: "schema",
184
246
  type: "optional",
185
- reference: g,
247
+ reference: f,
186
248
  expects: `(${e.expects} | undefined)`,
187
249
  async: !1,
188
250
  wrapped: e,
189
251
  default: r,
190
252
  get "~standard"() {
191
- return /* @__PURE__ */ b(this);
253
+ return /* @__PURE__ */ g(this);
192
254
  },
193
255
  "~run"(t, n) {
194
- return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ D(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
256
+ return t.value === void 0 && (this.default !== void 0 && (t.value = /* @__PURE__ */ N(this, t, n)), t.value === void 0) ? (t.typed = !0, t) : this.wrapped["~run"](t, n);
195
257
  }
196
258
  };
197
259
  }
198
260
  // @__NO_SIDE_EFFECTS__
199
- function c(e) {
261
+ function M(e, r, t) {
262
+ return {
263
+ kind: "schema",
264
+ type: "record",
265
+ reference: M,
266
+ expects: "Object",
267
+ async: !1,
268
+ key: e,
269
+ value: r,
270
+ message: t,
271
+ get "~standard"() {
272
+ return /* @__PURE__ */ g(this);
273
+ },
274
+ "~run"(n, o) {
275
+ const s = n.value;
276
+ if (s && typeof s == "object") {
277
+ n.typed = !0, n.value = {};
278
+ for (const i in s) if (/* @__PURE__ */ z(s, i)) {
279
+ const c = s[i], a = this.key["~run"]({ value: i }, o);
280
+ if (a.issues) {
281
+ const p = {
282
+ type: "object",
283
+ origin: "key",
284
+ input: s,
285
+ key: i,
286
+ value: c
287
+ };
288
+ for (const x of a.issues)
289
+ x.path = [p], n.issues?.push(x);
290
+ if (n.issues || (n.issues = a.issues), o.abortEarly) {
291
+ n.typed = !1;
292
+ break;
293
+ }
294
+ }
295
+ const u = this.value["~run"]({ value: c }, o);
296
+ if (u.issues) {
297
+ const p = {
298
+ type: "object",
299
+ origin: "value",
300
+ input: s,
301
+ key: i,
302
+ value: c
303
+ };
304
+ for (const x of u.issues)
305
+ x.path ? x.path.unshift(p) : x.path = [p], n.issues?.push(x);
306
+ if (n.issues || (n.issues = u.issues), o.abortEarly) {
307
+ n.typed = !1;
308
+ break;
309
+ }
310
+ }
311
+ (!a.typed || !u.typed) && (n.typed = !1), a.typed && (n.value[a.value] = u.value);
312
+ }
313
+ } else y(this, "type", n, o);
314
+ return n;
315
+ }
316
+ };
317
+ }
318
+ // @__NO_SIDE_EFFECTS__
319
+ function l(e) {
200
320
  return {
201
321
  kind: "schema",
202
322
  type: "string",
203
- reference: c,
323
+ reference: l,
204
324
  expects: "string",
205
325
  async: !1,
206
326
  message: e,
207
327
  get "~standard"() {
208
- return /* @__PURE__ */ b(this);
328
+ return /* @__PURE__ */ g(this);
209
329
  },
210
330
  "~run"(r, t) {
211
- return typeof r.value == "string" ? r.typed = !0 : m(this, "type", r, t), r;
331
+ return typeof r.value == "string" ? r.typed = !0 : y(this, "type", r, t), r;
212
332
  }
213
333
  };
214
334
  }
215
335
  // @__NO_SIDE_EFFECTS__
216
- function I(e) {
336
+ function T(e) {
217
337
  let r;
218
338
  if (e) for (const t of e) r ? r.push(...t.issues) : r = t.issues;
219
339
  return r;
220
340
  }
221
341
  // @__NO_SIDE_EFFECTS__
222
- function M(e, r) {
342
+ function _(e, r) {
223
343
  return {
224
344
  kind: "schema",
225
345
  type: "union",
226
- reference: M,
227
- expects: /* @__PURE__ */ G(e.map((t) => t.expects), "|"),
346
+ reference: _,
347
+ expects: /* @__PURE__ */ J(e.map((t) => t.expects), "|"),
228
348
  async: !1,
229
349
  options: e,
230
350
  message: r,
231
351
  get "~standard"() {
232
- return /* @__PURE__ */ b(this);
352
+ return /* @__PURE__ */ g(this);
233
353
  },
234
354
  "~run"(t, n) {
235
355
  let o, s, i;
236
- for (const p of this.options) {
237
- const a = p["~run"]({ value: t.value }, n);
356
+ for (const c of this.options) {
357
+ const a = c["~run"]({ value: t.value }, n);
238
358
  if (a.typed) if (a.issues) s ? s.push(a) : s = [a];
239
359
  else {
240
360
  o = a;
@@ -245,21 +365,26 @@ function M(e, r) {
245
365
  if (o) return o;
246
366
  if (s) {
247
367
  if (s.length === 1) return s[0];
248
- m(this, "type", t, n, { issues: /* @__PURE__ */ I(s) }), t.typed = !0;
368
+ y(this, "type", t, n, { issues: /* @__PURE__ */ T(s) }), t.typed = !0;
249
369
  } else {
250
370
  if (i?.length === 1) return i[0];
251
- m(this, "type", t, n, { issues: /* @__PURE__ */ I(i) });
371
+ y(this, "type", t, n, { issues: /* @__PURE__ */ T(i) });
252
372
  }
253
373
  return t;
254
374
  }
255
375
  };
256
376
  }
257
- const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @__PURE__ */ S({
258
- "en-au": /* @__PURE__ */ g(/* @__PURE__ */ c()),
259
- "en-gb": /* @__PURE__ */ g(/* @__PURE__ */ c()),
260
- "en-us": /* @__PURE__ */ g(/* @__PURE__ */ c()),
261
- "es-es": /* @__PURE__ */ g(/* @__PURE__ */ c())
262
- }), V = f(["amber", "green", "red", "other"]), W = f([
377
+ const h = (e) => /* @__PURE__ */ _(e.map((r) => /* @__PURE__ */ k(r))), Q = /* @__PURE__ */ m({
378
+ "en-au": /* @__PURE__ */ l(),
379
+ "en-gb": /* @__PURE__ */ l(),
380
+ "en-us": /* @__PURE__ */ l(),
381
+ "es-es": /* @__PURE__ */ l()
382
+ }), D = /* @__PURE__ */ m({
383
+ "en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
384
+ "en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
385
+ "en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
386
+ "es-es": /* @__PURE__ */ f(/* @__PURE__ */ l())
387
+ }), Y = h(["amber", "green", "red", "other"]), Z = h([
263
388
  "alpha",
264
389
  "beta",
265
390
  "generalAvailability",
@@ -269,7 +394,7 @@ const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @
269
394
  "releaseCandidate",
270
395
  "unavailable",
271
396
  "underReview"
272
- ]), H = f([
397
+ ]), ee = h([
273
398
  "app",
274
399
  "connector",
275
400
  "connectorConnection",
@@ -294,25 +419,36 @@ const f = (e) => /* @__PURE__ */ M(e.map((r) => /* @__PURE__ */ C(r))), O = /* @
294
419
  "presenterPresentation",
295
420
  "tool"
296
421
  ]);
297
- f(["app", "engine", "connector", "context", "presenter", "tool"]);
298
- const X = /* @__PURE__ */ S({
299
- id: /* @__PURE__ */ c(),
300
- color: V,
301
- label: /* @__PURE__ */ c()
302
- }), z = {
303
- id: /* @__PURE__ */ c(),
304
- label: O,
305
- description: O,
306
- firstCreatedAt: /* @__PURE__ */ g(/* @__PURE__ */ k()),
307
- icon: /* @__PURE__ */ E(/* @__PURE__ */ c()),
308
- iconDark: /* @__PURE__ */ E(/* @__PURE__ */ c()),
309
- lastUpdatedAt: /* @__PURE__ */ E(/* @__PURE__ */ k()),
310
- status: /* @__PURE__ */ E(X),
311
- statusId: W
312
- }, Z = /* @__PURE__ */ S({
313
- ...z,
314
- typeId: H
315
- }), J = [
422
+ h(["app", "engine", "connector", "context", "presenter", "tool"]);
423
+ const te = /* @__PURE__ */ m({
424
+ id: /* @__PURE__ */ l(),
425
+ color: Y,
426
+ label: /* @__PURE__ */ l()
427
+ }), j = {
428
+ id: /* @__PURE__ */ l(),
429
+ label: D,
430
+ description: D,
431
+ firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ S()),
432
+ icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
433
+ iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
434
+ lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ S()),
435
+ status: /* @__PURE__ */ b(te),
436
+ statusId: Z
437
+ }, ye = /* @__PURE__ */ m({
438
+ ...j,
439
+ typeId: ee
440
+ }), A = {
441
+ ...j,
442
+ version: /* @__PURE__ */ l()
443
+ }, U = /* @__PURE__ */ m({
444
+ id: /* @__PURE__ */ l(),
445
+ label: D,
446
+ description: D,
447
+ icon: /* @__PURE__ */ b(/* @__PURE__ */ l()),
448
+ iconDark: /* @__PURE__ */ b(/* @__PURE__ */ l()),
449
+ order: /* @__PURE__ */ S(),
450
+ path: /* @__PURE__ */ l()
451
+ }), re = [
316
452
  { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
317
453
  { id: "beta", color: "amber", label: { "en-gb": "beta" } },
318
454
  { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
@@ -322,12 +458,10 @@ const X = /* @__PURE__ */ S({
322
458
  { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
323
459
  { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
324
460
  { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
325
- ], ee = (e, r = d) => {
326
- const t = J.find((n) => n.id === e);
327
- return t ? { ...t, label: t.label[r] || t.label[d] || e } : { id: e, color: "other", label: e };
328
- };
329
- f(["application", "curatedDataset", "database", "fileStore"]);
330
- f([
461
+ ], ge = (e, r = E) => {
462
+ const t = re.find((n) => n.id === e);
463
+ return t ? { ...t, label: t.label[r] || t.label[E] || e } : { id: e, color: "other", label: e };
464
+ }, ne = h(["application", "curatedDataset", "database", "fileStore"]), oe = h([
331
465
  "abortOperation",
332
466
  "authenticateConnection",
333
467
  "createObject",
@@ -340,80 +474,114 @@ f([
340
474
  "removeRecords",
341
475
  "retrieveRecords",
342
476
  "upsertRecords"
343
- ]);
344
- f(["bidirectional", "destination", "source", "unknown"]);
345
- f(["apiKey", "disabled", "oAuth2", "none"]);
346
- const te = ["createObject", "dropObject", "removeRecords", "upsertRecords"], re = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
347
- function ne() {
477
+ ]), se = h(["bidirectional", "destination", "source", "unknown"]), ie = h(["apiKey", "disabled", "oAuth2", "none"]), ae = /* @__PURE__ */ m({
478
+ id: /* @__PURE__ */ l(),
479
+ label: /* @__PURE__ */ l()
480
+ }), le = /* @__PURE__ */ m({
481
+ authMethodId: ie,
482
+ activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
483
+ canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ $()),
484
+ id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
485
+ label: /* @__PURE__ */ f(Q),
486
+ maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ S()),
487
+ params: /* @__PURE__ */ f(/* @__PURE__ */ v(/* @__PURE__ */ M(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
488
+ }), he = /* @__PURE__ */ m({
489
+ ...A,
490
+ typeId: /* @__PURE__ */ k("connector"),
491
+ category: /* @__PURE__ */ b(ae),
492
+ categoryId: ne,
493
+ implementations: /* @__PURE__ */ M(/* @__PURE__ */ l(), le),
494
+ operations: /* @__PURE__ */ v(oe),
495
+ usageId: se,
496
+ vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
497
+ vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ l()),
498
+ vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ l())
499
+ }), ve = ["createObject", "dropObject", "removeRecords", "upsertRecords"], Ee = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], ce = h(["list"]), ue = /* @__PURE__ */ m({
500
+ ...j,
501
+ typeId: /* @__PURE__ */ k("contextModelGroup"),
502
+ modelRefs: /* @__PURE__ */ v(U),
503
+ order: /* @__PURE__ */ S()
504
+ }), xe = /* @__PURE__ */ m({
505
+ ...A,
506
+ typeId: /* @__PURE__ */ k("context"),
507
+ models: /* @__PURE__ */ v(ue),
508
+ operations: /* @__PURE__ */ v(ce)
509
+ }), pe = h(["list", "render", "setColorMode"]), Se = /* @__PURE__ */ m({
510
+ ...A,
511
+ typeId: /* @__PURE__ */ k("presenter"),
512
+ presentations: /* @__PURE__ */ v(U),
513
+ operations: /* @__PURE__ */ v(pe)
514
+ });
515
+ function ke() {
348
516
  function e(r, t, n) {
349
517
  n.textContent = "Cytoscape.js diagram goes here...";
350
518
  }
351
519
  return { render: e };
352
520
  }
353
- function oe() {
521
+ function Ie() {
354
522
  function e(r, t) {
355
523
  console.log(1111, r), console.log(2222, t), console.log(3333, t.childNodes), console.log(4444, t.children);
356
524
  }
357
525
  return { render: e };
358
526
  }
359
- const se = 0, ie = (e) => e, ae = () => Date.now();
360
- class N extends Error {
527
+ const De = 0, we = (e) => e, Ce = () => Date.now();
528
+ class R extends Error {
361
529
  locator;
362
530
  constructor(r, t, n) {
363
531
  super(r, n), this.name = "DataPosError", this.locator = t, Error.captureStackTrace?.(this, new.target);
364
532
  }
365
533
  }
366
- class y extends N {
534
+ class I extends R {
367
535
  constructor(r, t, n) {
368
536
  super(r, t, n), this.name = "ApplicationError";
369
537
  }
370
538
  }
371
- class le extends y {
539
+ class Oe extends I {
372
540
  constructor(r, t, n) {
373
541
  super(r, t, n), this.name = "APIError";
374
542
  }
375
543
  }
376
- class ce extends y {
544
+ class Ne extends I {
377
545
  constructor(r, t, n) {
378
546
  super(r, t, n), this.name = "EngineError";
379
547
  }
380
548
  }
381
- class $ extends y {
549
+ class G extends I {
382
550
  body;
383
551
  constructor(r, t, n, o) {
384
552
  super(r, t, o), this.name = "FetchError", this.body = n;
385
553
  }
386
554
  }
387
- class K extends y {
555
+ class fe extends I {
388
556
  componentName;
389
557
  info;
390
558
  constructor(r, t, n, o, s) {
391
559
  super(r, t, s), this.name = "VueHandledError", this.info = n, this.componentName = o;
392
560
  }
393
561
  }
394
- class ue extends y {
562
+ class Me extends I {
395
563
  constructor(r, t, n) {
396
564
  super(r, t, n), this.name = "WindowHandledRuntimeError";
397
565
  }
398
566
  }
399
- class de extends y {
567
+ class je extends I {
400
568
  constructor(r, t, n) {
401
569
  super(r, t, n), this.name = "WindowHandledPromiseRejectionError";
402
570
  }
403
571
  }
404
- class fe extends N {
572
+ class Ae extends R {
405
573
  constructor(r, t, n) {
406
574
  super(r, t, n), this.name = "OperationalError";
407
575
  }
408
576
  }
409
- async function pe(e, r, t) {
577
+ async function Re(e, r, t) {
410
578
  const n = `${r} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
411
- return new $(n, t, o);
579
+ return new G(n, t, o);
412
580
  }
413
- function me(e) {
581
+ function Te(e) {
414
582
  return e.map((r) => r.message).join(" ");
415
583
  }
416
- function be(e) {
584
+ function Fe(e) {
417
585
  if (e instanceof Error) return e;
418
586
  if (typeof e == "string") return new Error(e);
419
587
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return new Error(String(e));
@@ -426,17 +594,17 @@ function be(e) {
426
594
  }
427
595
  return new Error("Unknown error");
428
596
  }
429
- function ge(e) {
597
+ function $e(e) {
430
598
  const r = /* @__PURE__ */ new Set(), t = [];
431
599
  let n = e;
432
600
  for (; n && !r.has(n); ) {
433
601
  r.add(n);
434
602
  let o;
435
- if (n instanceof $)
603
+ if (n instanceof G)
436
604
  o = { body: n.body, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
437
- else if (n instanceof K)
605
+ else if (n instanceof fe)
438
606
  o = { componentName: n.componentName, info: n.info, locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
439
- else if (n instanceof N)
607
+ else if (n instanceof R)
440
608
  o = { locator: n.locator, message: n.message, name: n.name, stack: n.stack }, n = n.cause;
441
609
  else if (n instanceof Error) {
442
610
  const s = n;
@@ -446,8 +614,8 @@ function ge(e) {
446
614
  }
447
615
  return t;
448
616
  }
449
- const A = "en-US", v = {};
450
- function ye(e) {
617
+ const B = "en-US", w = {};
618
+ function _e(e) {
451
619
  switch (e) {
452
620
  case "Edm.Binary":
453
621
  return "unknown";
@@ -487,22 +655,22 @@ function ye(e) {
487
655
  return "unknown";
488
656
  }
489
657
  }
490
- function he(e) {
658
+ function Ue(e) {
491
659
  if (e) {
492
660
  const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r > -1 ? r : e.length);
493
661
  return t > -1 ? e.substring(0, t) : e;
494
662
  }
495
663
  }
496
- function Ee(e) {
664
+ function Ge(e) {
497
665
  if (e) {
498
666
  const r = e.lastIndexOf(".");
499
667
  if (r > -1) return e.substring(r + 1);
500
668
  }
501
669
  }
502
- function l(e, r = 2, t = r, n = A) {
670
+ function d(e, r = 2, t = r, n = B) {
503
671
  if (e == null) return "";
504
672
  const o = `${n}decimal${r}.${t}`;
505
- let s = v[o];
673
+ let s = w[o];
506
674
  return s || (s = new Intl.NumberFormat(n, {
507
675
  localeMatcher: "best fit",
508
676
  maximumFractionDigits: r,
@@ -510,21 +678,21 @@ function l(e, r = 2, t = r, n = A) {
510
678
  minimumIntegerDigits: 1,
511
679
  style: "decimal",
512
680
  useGrouping: !0
513
- }), v[o] = s), s.format(e);
681
+ }), w[o] = s), s.format(e);
514
682
  }
515
- function ve(e) {
516
- return e == null ? "" : e < 1e3 ? x(e) : e < 1e6 ? `${l(e / 1e3, 2, 0)}K` : e < 1e9 ? `${l(e / 1e6, 2, 0)}M` : e < 1e12 ? `${l(e / 1e9, 2, 0)}B` : `${l(e / 1e12, 2, 0)}T`;
683
+ function Be(e) {
684
+ return e == null ? "" : e < 1e3 ? C(e) : e < 1e6 ? `${d(e / 1e3, 2, 0)}K` : e < 1e9 ? `${d(e / 1e6, 2, 0)}M` : e < 1e12 ? `${d(e / 1e9, 2, 0)}B` : `${d(e / 1e12, 2, 0)}T`;
517
685
  }
518
- function xe(e) {
519
- return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${x(e)} bytes` : e < 1048576 ? `${l(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${l(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${l(e / 1073741824, 2, 0)} GB` : `${l(e / 1099511627776, 2, 0)} TB`;
686
+ function Le(e) {
687
+ return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${C(e)} bytes` : e < 1048576 ? `${d(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${d(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${d(e / 1073741824, 2, 0)} GB` : `${d(e / 1099511627776, 2, 0)} TB`;
520
688
  }
521
- function Se(e) {
522
- return e == null ? "" : e < 1e3 ? `${x(e)} ms` : e === 1e3 ? `${x(e)} sec` : e < 6e4 ? `${l(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${l(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${l(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${l(e / 864e5, 2, 0)} days`;
689
+ function Pe(e) {
690
+ return e == null ? "" : e < 1e3 ? `${C(e)} ms` : e === 1e3 ? `${C(e)} sec` : e < 6e4 ? `${d(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${d(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${d(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${d(e / 864e5, 2, 0)} days`;
523
691
  }
524
- function x(e, r = A) {
692
+ function C(e, r = B) {
525
693
  if (e == null) return "";
526
694
  const t = `${r}decimal0.0`;
527
- let n = v[t];
695
+ let n = w[t];
528
696
  return n || (n = new Intl.NumberFormat(r, {
529
697
  localeMatcher: "best fit",
530
698
  maximumFractionDigits: 0,
@@ -532,9 +700,9 @@ function x(e, r = A) {
532
700
  minimumIntegerDigits: 1,
533
701
  style: "decimal",
534
702
  useGrouping: !0
535
- }), v[t] = n), n.format(e);
703
+ }), w[t] = n), n.format(e);
536
704
  }
537
- function we(e) {
705
+ function Ve(e) {
538
706
  switch (e) {
539
707
  case "csv":
540
708
  return "text/csv";
@@ -549,7 +717,7 @@ function we(e) {
549
717
  return "application/octet-stream";
550
718
  }
551
719
  }
552
- const q = [
720
+ const de = [
553
721
  { id: "dtv", label: { "en-gb": "Delimited Text" } },
554
722
  { id: "e/e", label: { "en-gb": "Entity/Event" } },
555
723
  { id: "jsonArray", label: { "en-gb": "JSON Array" } },
@@ -557,22 +725,22 @@ const q = [
557
725
  { id: "xls", label: { "en-gb": "XLS" } },
558
726
  { id: "xlsx", label: { "en-gb": "XLSX" } },
559
727
  { id: "xml", label: { "en-gb": "XML" } }
560
- ], ke = (e = d) => {
728
+ ], He = (e = E) => {
561
729
  const r = [];
562
- for (const t of q) r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
730
+ for (const t of de) r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
563
731
  return r;
564
- }, Q = [
732
+ }, me = [
565
733
  { id: `
566
734
  `, label: { "en-gb": "Newline" } },
567
735
  { id: "\r", label: { "en-gb": "Carriage Return" } },
568
736
  { id: `\r
569
737
  `, label: { "en-gb": "Carriage Return/Newline" } }
570
- ], De = (e = d) => {
738
+ ], Ke = (e = E) => {
571
739
  const r = [];
572
- for (const t of Q)
573
- r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
740
+ for (const t of me)
741
+ r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
574
742
  return r;
575
- }, Y = [
743
+ }, be = [
576
744
  { id: ":", label: { "en-gb": "Colon" } },
577
745
  { id: ",", label: { "en-gb": "Comma" } },
578
746
  { id: "!", label: { "en-gb": "Exclamation Mark" } },
@@ -584,45 +752,48 @@ const q = [
584
752
  { id: "_", label: { "en-gb": "Underscore" } },
585
753
  { id: "0x1F", label: { "en-gb": "Unit Separator" } },
586
754
  { id: "|", label: { "en-gb": "Vertical Bar" } }
587
- ], Ne = (e = d) => {
755
+ ], We = (e = E) => {
588
756
  const r = [];
589
- for (const t of Y)
590
- r.push({ ...t, label: t.label[e] || t.label[d] || t.id });
757
+ for (const t of be)
758
+ r.push({ ...t, label: t.label[e] || t.label[E] || t.id });
591
759
  return r;
592
- }, d = "en-gb";
760
+ }, E = "en-gb";
593
761
  export {
594
- le as APIError,
595
- y as ApplicationError,
596
- te as CONNECTOR_DESTINATION_OPERATIONS,
597
- re as CONNECTOR_SOURCE_OPERATIONS,
598
- d as DEFAULT_LOCALE_CODE,
599
- se as DefaultTimestamp,
600
- ce as EngineError,
601
- $ as FetchError,
602
- fe as OperationalError,
603
- K as VueError,
604
- de as WindowPromiseRejectionError,
605
- ue as WindowRuntimeError,
606
- pe as buildFetchError,
607
- Z as componentConfigSchema,
608
- me as concatenateSerialisedErrorMessages,
609
- ie as convertMillisecondsToTimestamp,
610
- ye as convertODataTypeIdToUsageTypeId,
611
- Ee as extractExtensionFromPath,
612
- he as extractNameFromPath,
613
- l as formatNumberAsDecimalNumber,
614
- Se as formatNumberAsDuration,
615
- ve as formatNumberAsSize,
616
- xe as formatNumberAsStorageSize,
617
- x as formatNumberAsWholeNumber,
618
- ee as getComponentStatus,
619
- ae as getCurrentTimestamp,
620
- ke as getDataFormats,
621
- De as getRecordDelimiters,
622
- Ne as getValueDelimiters,
623
- we as lookupMimeTypeForExtension,
624
- be as normalizeToError,
625
- ge as serialiseError,
626
- ne as useCytoscapeJS,
627
- oe as useDataTable
762
+ Oe as APIError,
763
+ I as ApplicationError,
764
+ ve as CONNECTOR_DESTINATION_OPERATIONS,
765
+ Ee as CONNECTOR_SOURCE_OPERATIONS,
766
+ E as DEFAULT_LOCALE_CODE,
767
+ De as DefaultTimestamp,
768
+ Ne as EngineError,
769
+ G as FetchError,
770
+ Ae as OperationalError,
771
+ fe as VueError,
772
+ je as WindowPromiseRejectionError,
773
+ Me as WindowRuntimeError,
774
+ Re as buildFetchError,
775
+ ye as componentConfigSchema,
776
+ Te as concatenateSerialisedErrorMessages,
777
+ he as connectorConfigSchema,
778
+ xe as contextConfigSchema,
779
+ we as convertMillisecondsToTimestamp,
780
+ _e as convertODataTypeIdToUsageTypeId,
781
+ Ge as extractExtensionFromPath,
782
+ Ue as extractNameFromPath,
783
+ d as formatNumberAsDecimalNumber,
784
+ Pe as formatNumberAsDuration,
785
+ Be as formatNumberAsSize,
786
+ Le as formatNumberAsStorageSize,
787
+ C as formatNumberAsWholeNumber,
788
+ ge as getComponentStatus,
789
+ Ce as getCurrentTimestamp,
790
+ He as getDataFormats,
791
+ Ke as getRecordDelimiters,
792
+ We as getValueDelimiters,
793
+ Ve as lookupMimeTypeForExtension,
794
+ Fe as normalizeToError,
795
+ Se as presenterConfigSchema,
796
+ $e as serialiseError,
797
+ ke as useCytoscapeJS,
798
+ Ie as useDataTable
628
799
  };
@@ -138,8 +138,8 @@ export declare const componentRefSchema: import('valibot').ObjectSchema<{
138
138
  readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
139
139
  readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
140
140
  }, undefined>;
141
- readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
142
- readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
141
+ readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
142
+ readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
143
143
  readonly order: import('valibot').NumberSchema<undefined>;
144
144
  readonly path: import('valibot').StringSchema<undefined>;
145
145
  }, undefined>;
@@ -1,16 +1,14 @@
1
1
  import { parse as csvParse } from 'csv-parse/browser/esm';
2
2
  import { parse as dateFnsParse } from 'date-fns';
3
+ import { InferInput } from 'valibot';
3
4
  import { nanoid } from 'nanoid';
5
+ import { connectorConfigSchema } from './connectorConfig.schema';
4
6
  import { buildFetchError, OperationalError } from '../../errors';
5
7
  import { Component, ModuleConfig } from '..';
6
8
  import { ConnectionConfig, ConnectionDescription, ConnectionNodeConfig } from './connection';
7
9
  import { convertMillisecondsToTimestamp, LocalisedString } from '../../index';
8
10
  import { DataViewContentAuditConfig, ValueDelimiterId } from '../dataView';
9
11
  import { extractExtensionFromPath, extractNameFromPath, lookupMimeTypeForExtension } from '../../utilities';
10
- /**
11
- * Connector composables, constants, errors, types/interfaces and utilities.
12
- */
13
- export { connectorConfigSchema } from './connectorConfig.schema';
14
12
  type ConnectorModuleCategoryId = 'application' | 'curatedDataset' | 'database' | 'fileStore';
15
13
  export type ConnectorOperation = 'abortOperation' | 'authenticateConnection' | 'createObject' | 'describeConnection' | 'dropObject' | 'findObject' | 'getRecord' | 'listNodes' | 'previewObject' | 'removeRecords' | 'retrieveRecords' | 'upsertRecords';
16
14
  export type ConnectorUsageId = 'bidirectional' | 'destination' | 'source' | 'unknown';
@@ -34,7 +32,9 @@ export interface Connector extends Component {
34
32
  retrieveRecords?(connector: Connector, settings: RetrieveSettings, chunk: (records: (string[] | Record<string, unknown>)[]) => void, complete: (result: RetrieveSummary) => void): Promise<void>;
35
33
  upsertRecords?(connector: Connector, settings: UpsertSettings): Promise<void>;
36
34
  }
37
- export interface ConnectorConfig extends ModuleConfig {
35
+ export { connectorConfigSchema };
36
+ export type ConnectorConfig = InferInput<typeof connectorConfigSchema>;
37
+ export interface ConnectorConfig1 extends ModuleConfig {
38
38
  category: ConnectorCategory | null;
39
39
  categoryId: ConnectorModuleCategoryId;
40
40
  implementations: Record<string, ConnectorImplementation>;
@@ -16,8 +16,8 @@ export declare const contextConfigSchema: import('valibot').ObjectSchema<{
16
16
  readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
17
17
  readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
18
18
  }, undefined>;
19
- readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
20
- readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
19
+ readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
20
+ readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
21
21
  readonly order: import('valibot').NumberSchema<undefined>;
22
22
  readonly path: import('valibot').StringSchema<undefined>;
23
23
  }, undefined>, undefined>;
@@ -1,9 +1,7 @@
1
+ import { InferInput } from 'valibot';
2
+ import { contextConfigSchema } from './contextConfig.schema';
1
3
  import { LocalisedString } from '../../index';
2
4
  import { Component, ComponentConfig, ComponentRef, ModuleConfig } from '..';
3
- /**
4
- * Context composables, constants, errors, types/interfaces and utilities.
5
- */
6
- export { contextConfigSchema } from './contextConfig.schema';
7
5
  export interface Context extends Component {
8
6
  readonly config: ContextConfig;
9
7
  list(settings?: ContextListSettings): Promise<ContextListResult>;
@@ -17,7 +15,9 @@ export type ContextCallbackData = {
17
15
  typeId: string;
18
16
  properties: Record<string, unknown>;
19
17
  };
20
- export interface ContextConfig extends ModuleConfig {
18
+ export { contextConfigSchema };
19
+ export type ContextConfig = InferInput<typeof contextConfigSchema>;
20
+ export interface ContextConfig1 extends ModuleConfig {
21
21
  models: ContextModelGroupConfig[];
22
22
  operations: ContextOperation[];
23
23
  typeId: 'context';
@@ -1,12 +1,12 @@
1
1
  import { InferInput } from 'valibot';
2
2
  import { componentConfigSchema } from './componentConfig.schema';
3
3
  import { LocaleCode, LocalisedString, StatusColorId } from '../index';
4
- export { componentConfigSchema };
5
- export type ComponentConfig2 = InferInput<typeof componentConfigSchema>;
6
4
  export interface Component {
7
5
  readonly config: ComponentConfig;
8
6
  }
9
- export interface ComponentConfig {
7
+ export { componentConfigSchema };
8
+ export type ComponentConfig = InferInput<typeof componentConfigSchema>;
9
+ export interface ComponentConfig1 {
10
10
  id: string;
11
11
  label: Partial<LocalisedString>;
12
12
  description: Partial<LocalisedString>;
@@ -22,8 +22,8 @@ export type ComponentRef = {
22
22
  id: string;
23
23
  label: Partial<LocalisedString>;
24
24
  description: Partial<LocalisedString>;
25
- icon?: string;
26
- iconDark?: string;
25
+ icon: string | null;
26
+ iconDark: string | null;
27
27
  order: number;
28
28
  path: string;
29
29
  };
@@ -1,5 +1,9 @@
1
+ import { InferInput } from 'valibot';
1
2
  import { ComponentConfig } from '..';
2
- export interface PresentationConfig extends ComponentConfig {
3
+ import { presenterConfigSchema } from './presenterConfig.schema';
4
+ export { presenterConfigSchema };
5
+ export type PresentationConfig = InferInput<typeof presenterConfigSchema>;
6
+ export interface PresentationConfig1 extends ComponentConfig {
3
7
  content: string;
4
8
  order: number;
5
9
  }
@@ -14,8 +14,8 @@ export declare const presenterConfigSchema: import('valibot').ObjectSchema<{
14
14
  readonly 'en-us': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
15
15
  readonly 'es-es': import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
16
16
  }, undefined>;
17
- readonly icon: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
18
- readonly iconDark: import('valibot').OptionalSchema<import('valibot').StringSchema<undefined>, undefined>;
17
+ readonly icon: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
18
+ readonly iconDark: import('valibot').NullableSchema<import('valibot').StringSchema<undefined>, undefined>;
19
19
  readonly order: import('valibot').NumberSchema<undefined>;
20
20
  readonly path: import('valibot').StringSchema<undefined>;
21
21
  }, undefined>, undefined>;
@@ -4,8 +4,9 @@
4
4
  export type LocaleCode = 'en-au' | 'en-gb' | 'en-us' | 'es-es';
5
5
  export type LocalisedString = Record<LocaleCode, string>;
6
6
  export type StatusColorId = 'amber' | 'green' | 'red' | 'other';
7
+ export { componentConfigSchema } from './component';
7
8
  export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId, ModuleConfig, ModuleTypeId } from './component';
8
- export { componentConfigSchema, type ComponentConfig2 } from './component';
9
+ export { connectorConfigSchema } from './component/connector';
9
10
  export type { ConnectorOperation, ConnectorUsageId } from './component/connector';
10
11
  export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './component/connector';
11
12
  export type { AuditContentResult, AuditContentSettings } from './component/connector';
@@ -22,6 +23,7 @@ export type { RetrieveResult, RetrieveSettings, RetrieveSummary } from './compon
22
23
  export type { UpsertSettings } from './component/connector';
23
24
  export type { ConnectionAuthorizationConfig, ConnectionColumnConfig, ConnectionConfig, ConnectionNodeConfig } from './component/connector/connection';
24
25
  export type { DPAFileSystemFileHandle, Encoding, StorageTypeId, UsageTypeId } from './component/connector/connection';
26
+ export { contextConfigSchema } from './component/context';
25
27
  export type { Context, ContextConfig, ContextLocalisedConfig, ContextListSettings, ContextListResult, ContextOperation, ContextCallbackData } from './component/context';
26
28
  export type { ContextModelGroupConfig, ContextModelGroupLocalisedConfig, ContextModelConfig, ContextModelLocalisedConfig } from './component/context';
27
29
  export type { ContextModelDimensionGroupConfig, ContextModelDimensionGroupLocalisedConfig, ContextModelDimensionConfig, ContextModelDimensionLocalisedConfig, ContextModelDimensionHierarchyConfig, ContextModelDimensionHierarchyLocalisedConfig } from './component/context';
@@ -36,6 +38,7 @@ export type { DimensionConfig, DimensionLocalisedConfig } from './component/dime
36
38
  export type { ConnectorInterfaceResult, ContextInterfaceResult, Engine, EngineConfig, EngineWorker, TestSettings } from './engine';
37
39
  export type { SerialisedError } from './errors';
38
40
  export type { EventQueryConfig, EventQueryLocalisedConfig } from './component/eventQuery';
41
+ export { presenterConfigSchema } from './component/presenter';
39
42
  export type { Presenter, PresenterConfig, PresenterLocalisedConfig, PresenterOperation } from './component/presenter';
40
43
  export type { PresentationConfig, PresentationView } from './component/presenter/presentation';
41
44
  export type { PresentationCategoryId, PresentationCartesianTypeId, PresentationPolarTypeId, PresentationRangeTypeId, PresentationVisualConfig, PresentationVisualContentConfig, PresentationVisualViewConfig, PresentationVisualCartesianChartViewConfig, PresentationVisualChordDiagramViewConfig, PresentationVisualPeriodFlowBoundariesChartViewConfig, PresentationVisualPolarChartViewConfig, PresentationVisualRangeChartViewConfig, PresentationVisualSankeyDiagramViewConfig, PresentationVisualStreamGraphViewConfig, PresentationVisualValueTableViewConfig } from './component/presenter/presentation';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.312",
3
+ "version": "0.3.314",
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>",
@@ -34,11 +34,16 @@
34
34
  },
35
35
  "devDependencies": {
36
36
  "@datapos/datapos-development": "^0.3.389",
37
+ "@datapos/eslint-config-datapos": "^1.0.18",
37
38
  "@types/node": "^25.0.3",
38
39
  "@typescript-eslint/eslint-plugin": "^8.50.0",
39
40
  "@typescript-eslint/parser": "^8.50.0",
40
41
  "eslint": "^9.39.2",
42
+ "eslint-import-resolver-typescript": "^4.4.4",
41
43
  "eslint-plugin-import": "^2.32.0",
44
+ "eslint-plugin-security": "^3.0.1",
45
+ "eslint-plugin-sonarjs": "^3.0.5",
46
+ "eslint-plugin-unicorn": "^62.0.0",
42
47
  "jiti": "^2.6.1",
43
48
  "license-downloader": "^1.3.3",
44
49
  "license-report": "^6.8.1",
@@ -49,6 +54,7 @@
49
54
  "owasp-dependency-check": "^1.0.0",
50
55
  "prettier": "^3.7.4",
51
56
  "rollup-plugin-visualizer": "^6.0.5",
57
+ "sonda": "^0.10.1",
52
58
  "typescript": "^5.9.3",
53
59
  "valibot": "^1.2.0",
54
60
  "vite": "^7.3.0",