@datapos/datapos-shared 0.3.157 → 0.3.159

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,4 +1,4 @@
1
- const us = ["createObject", "dropObject", "removeRecords", "upsertRecords"], ls = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
1
+ const cs = ["createObject", "dropObject", "removeRecords", "upsertRecords"], us = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"];
2
2
  function i(e, t, n) {
3
3
  function r(c, l) {
4
4
  var u;
@@ -31,14 +31,14 @@ class R extends Error {
31
31
  super("Encountered Promise during synchronous parse. Use .parseAsync() instead.");
32
32
  }
33
33
  }
34
- class Re extends Error {
34
+ class Pe extends Error {
35
35
  constructor(t) {
36
36
  super(`Encountered unidirectional transform during encode: ${t}`), this.name = "ZodEncodeError";
37
37
  }
38
38
  }
39
- const je = {};
39
+ const Re = {};
40
40
  function T(e) {
41
- return je;
41
+ return Re;
42
42
  }
43
43
  function st(e) {
44
44
  const t = Object.values(e).filter((r) => typeof r == "number");
@@ -64,13 +64,13 @@ function ue(e) {
64
64
  const t = e.startsWith("^") ? 1 : 0, n = e.endsWith("$") ? e.length - 1 : e.length;
65
65
  return e.slice(t, n);
66
66
  }
67
- const _e = Symbol("evaluating");
67
+ const ge = Symbol("evaluating");
68
68
  function h(e, t, n) {
69
69
  let r;
70
70
  Object.defineProperty(e, t, {
71
71
  get() {
72
- if (r !== _e)
73
- return r === void 0 && (r = _e, r = n()), r;
72
+ if (r !== ge)
73
+ return r === void 0 && (r = ge, r = n()), r;
74
74
  },
75
75
  set(o) {
76
76
  Object.defineProperty(e, t, {
@@ -97,10 +97,10 @@ function D(...e) {
97
97
  }
98
98
  return Object.defineProperties({}, t);
99
99
  }
100
- function ve(e) {
100
+ function _e(e) {
101
101
  return JSON.stringify(e);
102
102
  }
103
- const Ce = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
103
+ const je = "captureStackTrace" in Error ? Error.captureStackTrace : (...e) => {
104
104
  };
105
105
  function J(e) {
106
106
  return typeof e == "object" && e !== null && !Array.isArray(e);
@@ -124,7 +124,7 @@ function N(e) {
124
124
  const n = t.prototype;
125
125
  return !(J(n) === !1 || Object.prototype.hasOwnProperty.call(n, "isPrototypeOf") === !1);
126
126
  }
127
- function Ue(e) {
127
+ function Ce(e) {
128
128
  return N(e) ? { ...e } : Array.isArray(e) ? [...e] : e;
129
129
  }
130
130
  const it = /* @__PURE__ */ new Set(["string", "number", "symbol"]);
@@ -281,7 +281,7 @@ function x(e, t = 0) {
281
281
  return !0;
282
282
  return !1;
283
283
  }
284
- function Ne(e, t) {
284
+ function Ue(e, t) {
285
285
  return t.map((n) => {
286
286
  var r;
287
287
  return (r = n).path ?? (r.path = []), n.path.unshift(e), n;
@@ -310,7 +310,7 @@ function F(...e) {
310
310
  inst: r
311
311
  } : { ...t };
312
312
  }
313
- const Fe = (e, t) => {
313
+ const Ne = (e, t) => {
314
314
  e.name = "$ZodError", Object.defineProperty(e, "_zod", {
315
315
  value: e._zod,
316
316
  enumerable: !1
@@ -321,7 +321,7 @@ const Fe = (e, t) => {
321
321
  value: () => e.message,
322
322
  enumerable: !1
323
323
  });
324
- }, Le = i("$ZodError", Fe), Me = i("$ZodError", Fe, { Parent: Error });
324
+ }, Fe = i("$ZodError", Ne), Le = i("$ZodError", Ne, { Parent: Error });
325
325
  function gt(e, t = (n) => n.message) {
326
326
  const n = {}, r = [];
327
327
  for (const o of e.issues)
@@ -355,7 +355,7 @@ const de = (e) => (t, n, r, o) => {
355
355
  throw new R();
356
356
  if (a.issues.length) {
357
357
  const c = new (o?.Err ?? e)(a.issues.map((l) => O(l, s, T())));
358
- throw Ce(c, o?.callee), c;
358
+ throw je(c, o?.callee), c;
359
359
  }
360
360
  return a.value;
361
361
  }, pe = (e) => async (t, n, r, o) => {
@@ -363,7 +363,7 @@ const de = (e) => (t, n, r, o) => {
363
363
  let a = t._zod.run({ value: n, issues: [] }, s);
364
364
  if (a instanceof Promise && (a = await a), a.issues.length) {
365
365
  const c = new (o?.Err ?? e)(a.issues.map((l) => O(l, s, T())));
366
- throw Ce(c, o?.callee), c;
366
+ throw je(c, o?.callee), c;
367
367
  }
368
368
  return a.value;
369
369
  }, Y = (e) => (t, n, r) => {
@@ -372,16 +372,16 @@ const de = (e) => (t, n, r, o) => {
372
372
  throw new R();
373
373
  return s.issues.length ? {
374
374
  success: !1,
375
- error: new (e ?? Le)(s.issues.map((a) => O(a, o, T())))
375
+ error: new (e ?? Fe)(s.issues.map((a) => O(a, o, T())))
376
376
  } : { success: !0, data: s.value };
377
- }, vt = /* @__PURE__ */ Y(Me), Q = (e) => async (t, n, r) => {
377
+ }, vt = /* @__PURE__ */ Y(Le), Q = (e) => async (t, n, r) => {
378
378
  const o = r ? Object.assign(r, { async: !0 }) : { async: !0 };
379
379
  let s = t._zod.run({ value: n, issues: [] }, o);
380
380
  return s instanceof Promise && (s = await s), s.issues.length ? {
381
381
  success: !1,
382
382
  error: new e(s.issues.map((a) => O(a, o, T())))
383
383
  } : { success: !0, data: s.value };
384
- }, bt = /* @__PURE__ */ Q(Me), wt = (e) => (t, n, r) => {
384
+ }, bt = /* @__PURE__ */ Q(Le), wt = (e) => (t, n, r) => {
385
385
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
386
386
  return de(e)(t, n, o);
387
387
  }, zt = (e) => (t, n, r) => de(e)(t, n, r), yt = (e) => async (t, n, r) => {
@@ -393,23 +393,23 @@ const de = (e) => (t, n, r, o) => {
393
393
  }, Zt = (e) => (t, n, r) => Y(e)(t, n, r), Et = (e) => async (t, n, r) => {
394
394
  const o = r ? Object.assign(r, { direction: "backward" }) : { direction: "backward" };
395
395
  return Q(e)(t, n, o);
396
- }, It = (e) => async (t, n, r) => Q(e)(t, n, r), At = /^[cC][^\s-]{8,}$/, Tt = /^[0-9a-z]+$/, Ot = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, St = /^[0-9a-vA-V]{20}$/, Dt = /^[A-Za-z0-9]{27}$/, xt = /^[a-zA-Z0-9_-]{21}$/, Pt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Rt = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, be = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, jt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ct = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
396
+ }, It = (e) => async (t, n, r) => Q(e)(t, n, r), At = /^[cC][^\s-]{8,}$/, Tt = /^[0-9a-z]+$/, Ot = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/, St = /^[0-9a-vA-V]{20}$/, Dt = /^[A-Za-z0-9]{27}$/, xt = /^[a-zA-Z0-9_-]{21}$/, Pt = /^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/, Rt = /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/, ve = (e) => e ? new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`) : /^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/, jt = /^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/, Ct = "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";
397
397
  function Ut() {
398
398
  return new RegExp(Ct, "u");
399
399
  }
400
- const Nt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ft = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Lt = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Mt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Wt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, We = /^[A-Za-z0-9_-]*$/, Vt = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Bt = /^\+(?:[0-9]){6,14}[0-9]$/, Ve = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Jt = /* @__PURE__ */ new RegExp(`^${Ve}$`);
401
- function Be(e) {
400
+ const Nt = /^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/, Ft = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/, Lt = /^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/, Mt = /^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/, Wt = /^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/, Me = /^[A-Za-z0-9_-]*$/, Vt = /^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/, Bt = /^\+(?:[0-9]){6,14}[0-9]$/, We = "(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))", Jt = /* @__PURE__ */ new RegExp(`^${We}$`);
401
+ function Ve(e) {
402
402
  const t = "(?:[01]\\d|2[0-3]):[0-5]\\d";
403
403
  return typeof e.precision == "number" ? e.precision === -1 ? `${t}` : e.precision === 0 ? `${t}:[0-5]\\d` : `${t}:[0-5]\\d\\.\\d{${e.precision}}` : `${t}(?::[0-5]\\d(?:\\.\\d+)?)?`;
404
404
  }
405
405
  function Kt(e) {
406
- return new RegExp(`^${Be(e)}$`);
406
+ return new RegExp(`^${Ve(e)}$`);
407
407
  }
408
408
  function Ht(e) {
409
- const t = Be({ precision: e.precision }), n = ["Z"];
409
+ const t = Ve({ precision: e.precision }), n = ["Z"];
410
410
  e.local && n.push(""), e.offset && n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");
411
411
  const r = `${t}(?:${n.join("|")})`;
412
- return new RegExp(`^${Ve}T(?:${r})$`);
412
+ return new RegExp(`^${We}T(?:${r})$`);
413
413
  }
414
414
  const Gt = (e) => {
415
415
  const t = e ? `[\\s\\S]{${e?.minimum ?? 0},${e?.maximum ?? ""}}` : "[\\s\\S]*";
@@ -708,9 +708,9 @@ const ln = {
708
708
  }[t.version];
709
709
  if (r === void 0)
710
710
  throw new Error(`Invalid UUID version: "${t.version}"`);
711
- t.pattern ?? (t.pattern = be(r));
711
+ t.pattern ?? (t.pattern = ve(r));
712
712
  } else
713
- t.pattern ?? (t.pattern = be());
713
+ t.pattern ?? (t.pattern = ve());
714
714
  m.init(e, t);
715
715
  }), fn = /* @__PURE__ */ i("$ZodEmail", (e, t) => {
716
716
  t.pattern ?? (t.pattern = jt), m.init(e, t);
@@ -818,7 +818,7 @@ const ln = {
818
818
  }
819
819
  };
820
820
  });
821
- function Je(e) {
821
+ function Be(e) {
822
822
  if (e === "")
823
823
  return !0;
824
824
  if (e.length % 4 !== 0)
@@ -833,7 +833,7 @@ const On = /* @__PURE__ */ i("$ZodBase64", (e, t) => {
833
833
  t.pattern ?? (t.pattern = Wt), m.init(e, t), e._zod.onattach.push((n) => {
834
834
  n._zod.bag.contentEncoding = "base64";
835
835
  }), e._zod.check = (n) => {
836
- Je(n.value) || n.issues.push({
836
+ Be(n.value) || n.issues.push({
837
837
  code: "invalid_format",
838
838
  format: "base64",
839
839
  input: n.value,
@@ -843,13 +843,13 @@ const On = /* @__PURE__ */ i("$ZodBase64", (e, t) => {
843
843
  };
844
844
  });
845
845
  function Sn(e) {
846
- if (!We.test(e))
846
+ if (!Me.test(e))
847
847
  return !1;
848
848
  const t = e.replace(/[-_]/g, (r) => r === "-" ? "+" : "/"), n = t.padEnd(Math.ceil(t.length / 4) * 4, "=");
849
- return Je(n);
849
+ return Be(n);
850
850
  }
851
851
  const Dn = /* @__PURE__ */ i("$ZodBase64URL", (e, t) => {
852
- t.pattern ?? (t.pattern = We), m.init(e, t), e._zod.onattach.push((n) => {
852
+ t.pattern ?? (t.pattern = Me), m.init(e, t), e._zod.onattach.push((n) => {
853
853
  n._zod.bag.contentEncoding = "base64url";
854
854
  }), e._zod.check = (n) => {
855
855
  Sn(n.value) || n.issues.push({
@@ -897,8 +897,8 @@ const Rn = /* @__PURE__ */ i("$ZodJWT", (e, t) => {
897
897
  inst: e
898
898
  }), n);
899
899
  });
900
- function we(e, t, n) {
901
- e.issues.length && t.issues.push(...Ne(n, e.issues)), t.value[n] = e.value;
900
+ function be(e, t, n) {
901
+ e.issues.length && t.issues.push(...Ue(n, e.issues)), t.value[n] = e.value;
902
902
  }
903
903
  const Un = /* @__PURE__ */ i("$ZodArray", (e, t) => {
904
904
  b.init(e, t), e._zod.parse = (n, r) => {
@@ -917,15 +917,15 @@ const Un = /* @__PURE__ */ i("$ZodArray", (e, t) => {
917
917
  value: c,
918
918
  issues: []
919
919
  }, r);
920
- l instanceof Promise ? s.push(l.then((u) => we(u, n, a))) : we(l, n, a);
920
+ l instanceof Promise ? s.push(l.then((u) => be(u, n, a))) : be(l, n, a);
921
921
  }
922
922
  return s.length ? Promise.all(s).then(() => n) : n;
923
923
  };
924
924
  });
925
925
  function K(e, t, n, r) {
926
- e.issues.length && t.issues.push(...Ne(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
926
+ e.issues.length && t.issues.push(...Ue(n, e.issues)), e.value === void 0 ? n in r && (t.value[n] = void 0) : t.value[n] = e.value;
927
927
  }
928
- function Ke(e) {
928
+ function Je(e) {
929
929
  const t = Object.keys(e.shape);
930
930
  for (const r of t)
931
931
  if (!e.shape?.[r]?._zod?.traits?.has("$ZodType"))
@@ -939,7 +939,7 @@ function Ke(e) {
939
939
  optionalKeys: new Set(n)
940
940
  };
941
941
  }
942
- function He(e, t, n, r, o, s) {
942
+ function Ke(e, t, n, r, o, s) {
943
943
  const a = [], c = o.keySet, l = o.catchall._zod, u = l.def.type;
944
944
  for (const p of Object.keys(t)) {
945
945
  if (c.has(p))
@@ -970,7 +970,7 @@ const Nn = /* @__PURE__ */ i("$ZodObject", (e, t) => {
970
970
  }
971
971
  });
972
972
  }
973
- const r = ie(() => Ke(t));
973
+ const r = ie(() => Je(t));
974
974
  h(e._zod, "propValues", () => {
975
975
  const c = t.shape, l = {};
976
976
  for (const u in c) {
@@ -1001,23 +1001,23 @@ const Nn = /* @__PURE__ */ i("$ZodObject", (e, t) => {
1001
1001
  const z = g[f]._zod.run({ value: u[f], issues: [] }, l);
1002
1002
  z instanceof Promise ? p.push(z.then((te) => K(te, c, f, u))) : K(z, c, f, u);
1003
1003
  }
1004
- return s ? He(p, u, c, l, r.value, e) : p.length ? Promise.all(p).then(() => c) : c;
1004
+ return s ? Ke(p, u, c, l, r.value, e) : p.length ? Promise.all(p).then(() => c) : c;
1005
1005
  };
1006
1006
  }), Fn = /* @__PURE__ */ i("$ZodObjectJIT", (e, t) => {
1007
1007
  Nn.init(e, t);
1008
- const n = e._zod.parse, r = ie(() => Ke(t)), o = (f) => {
1008
+ const n = e._zod.parse, r = ie(() => Je(t)), o = (f) => {
1009
1009
  const _ = new un(["shape", "payload", "ctx"]), z = r.value, te = (E) => {
1010
- const $ = ve(E);
1010
+ const $ = _e(E);
1011
1011
  return `shape[${$}]._zod.run({ value: input[${$}], issues: [] }, ctx)`;
1012
1012
  };
1013
1013
  _.write("const input = payload.value;");
1014
- const ge = /* @__PURE__ */ Object.create(null);
1014
+ const me = /* @__PURE__ */ Object.create(null);
1015
1015
  let rt = 0;
1016
1016
  for (const E of z.keys)
1017
- ge[E] = `key_${rt++}`;
1017
+ me[E] = `key_${rt++}`;
1018
1018
  _.write("const newResult = {};");
1019
1019
  for (const E of z.keys) {
1020
- const $ = ge[E], C = ve(E);
1020
+ const $ = me[E], C = _e(E);
1021
1021
  _.write(`const ${$} = ${te(E)};`), _.write(`
1022
1022
  if (${$}.issues.length) {
1023
1023
  payload.issues = payload.issues.concat(${$}.issues.map(iss => ({
@@ -1042,12 +1042,12 @@ const Nn = /* @__PURE__ */ i("$ZodObject", (e, t) => {
1042
1042
  return (E, $) => ot(f, E, $);
1043
1043
  };
1044
1044
  let s;
1045
- const a = J, c = !je.jitless, u = c && at.value, p = t.catchall;
1045
+ const a = J, c = !Re.jitless, u = c && at.value, p = t.catchall;
1046
1046
  let g;
1047
1047
  e._zod.parse = (f, _) => {
1048
1048
  g ?? (g = r.value);
1049
1049
  const z = f.value;
1050
- return a(z) ? c && u && _?.async === !1 && _.jitless !== !0 ? (s || (s = o(t.shape)), f = s(f, _), p ? He([], z, f, _, g, e) : f) : n(f, _) : (f.issues.push({
1050
+ return a(z) ? c && u && _?.async === !1 && _.jitless !== !0 ? (s || (s = o(t.shape)), f = s(f, _), p ? Ke([], z, f, _, g, e) : f) : n(f, _) : (f.issues.push({
1051
1051
  expected: "object",
1052
1052
  code: "invalid_type",
1053
1053
  input: z,
@@ -1055,7 +1055,7 @@ const Nn = /* @__PURE__ */ i("$ZodObject", (e, t) => {
1055
1055
  }), f);
1056
1056
  };
1057
1057
  });
1058
- function ze(e, t, n, r) {
1058
+ function we(e, t, n, r) {
1059
1059
  for (const s of e)
1060
1060
  if (s.issues.length === 0)
1061
1061
  return t.value = s.value, t;
@@ -1096,12 +1096,12 @@ const Ln = /* @__PURE__ */ i("$ZodUnion", (e, t) => {
1096
1096
  c.push(u);
1097
1097
  }
1098
1098
  }
1099
- return a ? Promise.all(c).then((l) => ze(l, o, e, s)) : ze(c, o, e, s);
1099
+ return a ? Promise.all(c).then((l) => we(l, o, e, s)) : we(c, o, e, s);
1100
1100
  };
1101
1101
  }), Mn = /* @__PURE__ */ i("$ZodIntersection", (e, t) => {
1102
1102
  b.init(e, t), e._zod.parse = (n, r) => {
1103
1103
  const o = n.value, s = t.left._zod.run({ value: o, issues: [] }, r), a = t.right._zod.run({ value: o, issues: [] }, r);
1104
- return s instanceof Promise || a instanceof Promise ? Promise.all([s, a]).then(([l, u]) => ye(n, l, u)) : ye(n, s, a);
1104
+ return s instanceof Promise || a instanceof Promise ? Promise.all([s, a]).then(([l, u]) => ze(n, l, u)) : ze(n, s, a);
1105
1105
  };
1106
1106
  });
1107
1107
  function oe(e, t) {
@@ -1139,7 +1139,7 @@ function oe(e, t) {
1139
1139
  }
1140
1140
  return { valid: !1, mergeErrorPath: [] };
1141
1141
  }
1142
- function ye(e, t, n) {
1142
+ function ze(e, t, n) {
1143
1143
  if (t.issues.length && e.issues.push(...t.issues), n.issues.length && e.issues.push(...n.issues), x(e))
1144
1144
  return e;
1145
1145
  const r = oe(t.value, n.value);
@@ -1162,7 +1162,7 @@ const Wn = /* @__PURE__ */ i("$ZodEnum", (e, t) => {
1162
1162
  }), Vn = /* @__PURE__ */ i("$ZodTransform", (e, t) => {
1163
1163
  b.init(e, t), e._zod.parse = (n, r) => {
1164
1164
  if (r.direction === "backward")
1165
- throw new Re(e.constructor.name);
1165
+ throw new Pe(e.constructor.name);
1166
1166
  const o = t.transform(n.value, n);
1167
1167
  if (r.async)
1168
1168
  return (o instanceof Promise ? o : Promise.resolve(o)).then((a) => (n.value = a, n));
@@ -1171,7 +1171,7 @@ const Wn = /* @__PURE__ */ i("$ZodEnum", (e, t) => {
1171
1171
  return n.value = o, n;
1172
1172
  };
1173
1173
  });
1174
- function ke(e, t) {
1174
+ function ye(e, t) {
1175
1175
  return e.issues.length && t === void 0 ? { issues: [], value: void 0 } : e;
1176
1176
  }
1177
1177
  const Bn = /* @__PURE__ */ i("$ZodOptional", (e, t) => {
@@ -1181,7 +1181,7 @@ const Bn = /* @__PURE__ */ i("$ZodOptional", (e, t) => {
1181
1181
  }), e._zod.parse = (n, r) => {
1182
1182
  if (t.innerType._zod.optin === "optional") {
1183
1183
  const o = t.innerType._zod.run(n, r);
1184
- return o instanceof Promise ? o.then((s) => ke(s, n.value)) : ke(o, n.value);
1184
+ return o instanceof Promise ? o.then((s) => ye(s, n.value)) : ye(o, n.value);
1185
1185
  }
1186
1186
  return n.value === void 0 ? n : t.innerType._zod.run(n, r);
1187
1187
  };
@@ -1197,10 +1197,10 @@ const Bn = /* @__PURE__ */ i("$ZodOptional", (e, t) => {
1197
1197
  if (n.value === void 0)
1198
1198
  return n.value = t.defaultValue, n;
1199
1199
  const o = t.innerType._zod.run(n, r);
1200
- return o instanceof Promise ? o.then((s) => $e(s, t)) : $e(o, t);
1200
+ return o instanceof Promise ? o.then((s) => ke(s, t)) : ke(o, t);
1201
1201
  };
1202
1202
  });
1203
- function $e(e, t) {
1203
+ function ke(e, t) {
1204
1204
  return e.value === void 0 && (e.value = t.defaultValue), e;
1205
1205
  }
1206
1206
  const Hn = /* @__PURE__ */ i("$ZodPrefault", (e, t) => {
@@ -1211,10 +1211,10 @@ const Hn = /* @__PURE__ */ i("$ZodPrefault", (e, t) => {
1211
1211
  return n ? new Set([...n].filter((r) => r !== void 0)) : void 0;
1212
1212
  }), e._zod.parse = (n, r) => {
1213
1213
  const o = t.innerType._zod.run(n, r);
1214
- return o instanceof Promise ? o.then((s) => Ze(s, e)) : Ze(o, e);
1214
+ return o instanceof Promise ? o.then((s) => $e(s, e)) : $e(o, e);
1215
1215
  };
1216
1216
  });
1217
- function Ze(e, t) {
1217
+ function $e(e, t) {
1218
1218
  return !e.issues.length && e.value === void 0 && e.issues.push({
1219
1219
  code: "invalid_type",
1220
1220
  expected: "nonoptional",
@@ -1259,21 +1259,21 @@ const Yn = /* @__PURE__ */ i("$ZodReadonly", (e, t) => {
1259
1259
  if (r.direction === "backward")
1260
1260
  return t.innerType._zod.run(n, r);
1261
1261
  const o = t.innerType._zod.run(n, r);
1262
- return o instanceof Promise ? o.then(Ee) : Ee(o);
1262
+ return o instanceof Promise ? o.then(Ze) : Ze(o);
1263
1263
  };
1264
1264
  });
1265
- function Ee(e) {
1265
+ function Ze(e) {
1266
1266
  return e.value = Object.freeze(e.value), e;
1267
1267
  }
1268
1268
  const Qn = /* @__PURE__ */ i("$ZodCustom", (e, t) => {
1269
1269
  Z.init(e, t), b.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
1270
1270
  const r = n.value, o = t.fn(r);
1271
1271
  if (o instanceof Promise)
1272
- return o.then((s) => Ie(s, n, r, e));
1273
- Ie(o, n, r, e);
1272
+ return o.then((s) => Ee(s, n, r, e));
1273
+ Ee(o, n, r, e);
1274
1274
  };
1275
1275
  });
1276
- function Ie(e, t, n, r) {
1276
+ function Ee(e, t, n, r) {
1277
1277
  if (!e) {
1278
1278
  const o = {
1279
1279
  code: "custom",
@@ -1341,7 +1341,7 @@ function rr(e, t) {
1341
1341
  ...d(t)
1342
1342
  });
1343
1343
  }
1344
- function Ae(e, t) {
1344
+ function Ie(e, t) {
1345
1345
  return new e({
1346
1346
  type: "string",
1347
1347
  format: "guid",
@@ -1580,7 +1580,7 @@ function Tr(e, t) {
1580
1580
  ...d(t)
1581
1581
  });
1582
1582
  }
1583
- function Ge(e, t) {
1583
+ function He(e, t) {
1584
1584
  return new Yt({
1585
1585
  check: "max_length",
1586
1586
  ...d(t),
@@ -1594,7 +1594,7 @@ function H(e, t) {
1594
1594
  minimum: e
1595
1595
  });
1596
1596
  }
1597
- function Xe(e, t) {
1597
+ function Ge(e, t) {
1598
1598
  return new en({
1599
1599
  check: "length_equals",
1600
1600
  ...d(t),
@@ -1726,7 +1726,7 @@ function qr(e) {
1726
1726
  return Ir(Xr, e);
1727
1727
  }
1728
1728
  const Yr = (e, t) => {
1729
- Le.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1729
+ Fe.init(e, t), e.name = "ZodError", Object.defineProperties(e, {
1730
1730
  format: {
1731
1731
  value: (n) => _t(e, n)
1732
1732
  // enumerable: false,
@@ -1761,7 +1761,7 @@ const Yr = (e, t) => {
1761
1761
  ...t.checks ?? [],
1762
1762
  ...n.map((r) => typeof r == "function" ? { _zod: { check: r, def: { check: "custom" }, onattach: [] } } : r)
1763
1763
  ]
1764
- })), e.clone = (n, r) => A(e, n, r), e.brand = () => e, e.register = (n, r) => (n.add(e, r), e), e.parse = (n, r) => Qr(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => to(e, n, r), e.parseAsync = async (n, r) => eo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => no(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ro(e, n, r), e.decode = (n, r) => oo(e, n, r), e.encodeAsync = async (n, r) => so(e, n, r), e.decodeAsync = async (n, r) => ao(e, n, r), e.safeEncode = (n, r) => io(e, n, r), e.safeDecode = (n, r) => co(e, n, r), e.safeEncodeAsync = async (n, r) => uo(e, n, r), e.safeDecodeAsync = async (n, r) => lo(e, n, r), e.refine = (n, r) => e.check(es(n, r)), e.superRefine = (n) => e.check(ts(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Oe(e), e.nullable = () => Se(e), e.nullish = () => Oe(Se(e)), e.nonoptional = (n) => Ko(e, n), e.array = () => Po(e), e.or = (n) => Co([e, n]), e.and = (n) => No(e, n), e.transform = (n) => De(e, Lo(n)), e.default = (n) => Vo(e, n), e.prefault = (n) => Jo(e, n), e.catch = (n) => Go(e, n), e.pipe = (n) => De(e, n), e.readonly = () => Yo(e), e.describe = (n) => {
1764
+ })), e.clone = (n, r) => A(e, n, r), e.brand = () => e, e.register = (n, r) => (n.add(e, r), e), e.parse = (n, r) => Qr(e, n, r, { callee: e.parse }), e.safeParse = (n, r) => to(e, n, r), e.parseAsync = async (n, r) => eo(e, n, r, { callee: e.parseAsync }), e.safeParseAsync = async (n, r) => no(e, n, r), e.spa = e.safeParseAsync, e.encode = (n, r) => ro(e, n, r), e.decode = (n, r) => oo(e, n, r), e.encodeAsync = async (n, r) => so(e, n, r), e.decodeAsync = async (n, r) => ao(e, n, r), e.safeEncode = (n, r) => io(e, n, r), e.safeDecode = (n, r) => co(e, n, r), e.safeEncodeAsync = async (n, r) => uo(e, n, r), e.safeDecodeAsync = async (n, r) => lo(e, n, r), e.refine = (n, r) => e.check(es(n, r)), e.superRefine = (n) => e.check(ts(n)), e.overwrite = (n) => e.check(L(n)), e.optional = () => Te(e), e.nullable = () => Oe(e), e.nullish = () => Te(Oe(e)), e.nonoptional = (n) => Ko(e, n), e.array = () => Po(e), e.or = (n) => Co([e, n]), e.and = (n) => No(e, n), e.transform = (n) => Se(e, Lo(n)), e.default = (n) => Vo(e, n), e.prefault = (n) => Jo(e, n), e.catch = (n) => Go(e, n), e.pipe = (n) => Se(e, n), e.readonly = () => Yo(e), e.describe = (n) => {
1765
1765
  const r = e.clone();
1766
1766
  return V.add(r, { description: n }), r;
1767
1767
  }, Object.defineProperty(e, "description", {
@@ -1774,21 +1774,21 @@ const Yr = (e, t) => {
1774
1774
  return V.get(e);
1775
1775
  const r = e.clone();
1776
1776
  return V.add(r, n[0]), r;
1777
- }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), qe = /* @__PURE__ */ i("_ZodString", (e, t) => {
1777
+ }, e.isOptional = () => e.safeParse(void 0).success, e.isNullable = () => e.safeParse(null).success, e)), Xe = /* @__PURE__ */ i("_ZodString", (e, t) => {
1778
1778
  fe.init(e, t), w.init(e, t);
1779
1779
  const n = e._zod.bag;
1780
- e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Or(...r)), e.includes = (...r) => e.check(xr(...r)), e.startsWith = (...r) => e.check(Pr(...r)), e.endsWith = (...r) => e.check(Rr(...r)), e.min = (...r) => e.check(H(...r)), e.max = (...r) => e.check(Ge(...r)), e.length = (...r) => e.check(Xe(...r)), e.nonempty = (...r) => e.check(H(1, ...r)), e.lowercase = (r) => e.check(Sr(r)), e.uppercase = (r) => e.check(Dr(r)), e.trim = () => e.check(Cr()), e.normalize = (...r) => e.check(jr(...r)), e.toLowerCase = () => e.check(Ur()), e.toUpperCase = () => e.check(Nr());
1780
+ e.format = n.format ?? null, e.minLength = n.minimum ?? null, e.maxLength = n.maximum ?? null, e.regex = (...r) => e.check(Or(...r)), e.includes = (...r) => e.check(xr(...r)), e.startsWith = (...r) => e.check(Pr(...r)), e.endsWith = (...r) => e.check(Rr(...r)), e.min = (...r) => e.check(H(...r)), e.max = (...r) => e.check(He(...r)), e.length = (...r) => e.check(Ge(...r)), e.nonempty = (...r) => e.check(H(1, ...r)), e.lowercase = (r) => e.check(Sr(r)), e.uppercase = (r) => e.check(Dr(r)), e.trim = () => e.check(Cr()), e.normalize = (...r) => e.check(jr(...r)), e.toLowerCase = () => e.check(Ur()), e.toUpperCase = () => e.check(Nr());
1781
1781
  }), po = /* @__PURE__ */ i("ZodString", (e, t) => {
1782
- fe.init(e, t), qe.init(e, t), e.email = (n) => e.check(rr(fo, n)), e.url = (n) => e.check(cr(ho, n)), e.jwt = (n) => e.check(kr(To, n)), e.emoji = (n) => e.check(ur(mo, n)), e.guid = (n) => e.check(Ae(Te, n)), e.uuid = (n) => e.check(or(B, n)), e.uuidv4 = (n) => e.check(sr(B, n)), e.uuidv6 = (n) => e.check(ar(B, n)), e.uuidv7 = (n) => e.check(ir(B, n)), e.nanoid = (n) => e.check(lr(go, n)), e.guid = (n) => e.check(Ae(Te, n)), e.cuid = (n) => e.check(dr(_o, n)), e.cuid2 = (n) => e.check(pr(vo, n)), e.ulid = (n) => e.check(fr(bo, n)), e.base64 = (n) => e.check(wr(Eo, n)), e.base64url = (n) => e.check(zr(Io, n)), e.xid = (n) => e.check(hr(wo, n)), e.ksuid = (n) => e.check(mr(zo, n)), e.ipv4 = (n) => e.check(gr(yo, n)), e.ipv6 = (n) => e.check(_r(ko, n)), e.cidrv4 = (n) => e.check(vr($o, n)), e.cidrv6 = (n) => e.check(br(Zo, n)), e.e164 = (n) => e.check(yr(Ao, n)), e.datetime = (n) => e.check(Br(n)), e.date = (n) => e.check(Kr(n)), e.time = (n) => e.check(Gr(n)), e.duration = (n) => e.check(qr(n));
1782
+ fe.init(e, t), Xe.init(e, t), e.email = (n) => e.check(rr(fo, n)), e.url = (n) => e.check(cr(ho, n)), e.jwt = (n) => e.check(kr(To, n)), e.emoji = (n) => e.check(ur(mo, n)), e.guid = (n) => e.check(Ie(Ae, n)), e.uuid = (n) => e.check(or(B, n)), e.uuidv4 = (n) => e.check(sr(B, n)), e.uuidv6 = (n) => e.check(ar(B, n)), e.uuidv7 = (n) => e.check(ir(B, n)), e.nanoid = (n) => e.check(lr(go, n)), e.guid = (n) => e.check(Ie(Ae, n)), e.cuid = (n) => e.check(dr(_o, n)), e.cuid2 = (n) => e.check(pr(vo, n)), e.ulid = (n) => e.check(fr(bo, n)), e.base64 = (n) => e.check(wr(Eo, n)), e.base64url = (n) => e.check(zr(Io, n)), e.xid = (n) => e.check(hr(wo, n)), e.ksuid = (n) => e.check(mr(zo, n)), e.ipv4 = (n) => e.check(gr(yo, n)), e.ipv6 = (n) => e.check(_r(ko, n)), e.cidrv4 = (n) => e.check(vr($o, n)), e.cidrv6 = (n) => e.check(br(Zo, n)), e.e164 = (n) => e.check(yr(Ao, n)), e.datetime = (n) => e.check(Br(n)), e.date = (n) => e.check(Kr(n)), e.time = (n) => e.check(Gr(n)), e.duration = (n) => e.check(qr(n));
1783
1783
  });
1784
1784
  function P(e) {
1785
1785
  return nr(po, e);
1786
1786
  }
1787
1787
  const v = /* @__PURE__ */ i("ZodStringFormat", (e, t) => {
1788
- m.init(e, t), qe.init(e, t);
1788
+ m.init(e, t), Xe.init(e, t);
1789
1789
  }), fo = /* @__PURE__ */ i("ZodEmail", (e, t) => {
1790
1790
  fn.init(e, t), v.init(e, t);
1791
- }), Te = /* @__PURE__ */ i("ZodGUID", (e, t) => {
1791
+ }), Ae = /* @__PURE__ */ i("ZodGUID", (e, t) => {
1792
1792
  dn.init(e, t), v.init(e, t);
1793
1793
  }), B = /* @__PURE__ */ i("ZodUUID", (e, t) => {
1794
1794
  pn.init(e, t), v.init(e, t);
@@ -1837,15 +1837,15 @@ function Do(e) {
1837
1837
  return Tr(So, e);
1838
1838
  }
1839
1839
  const xo = /* @__PURE__ */ i("ZodArray", (e, t) => {
1840
- Un.init(e, t), w.init(e, t), e.element = t.element, e.min = (n, r) => e.check(H(n, r)), e.nonempty = (n) => e.check(H(1, n)), e.max = (n, r) => e.check(Ge(n, r)), e.length = (n, r) => e.check(Xe(n, r)), e.unwrap = () => e.element;
1840
+ Un.init(e, t), w.init(e, t), e.element = t.element, e.min = (n, r) => e.check(H(n, r)), e.nonempty = (n) => e.check(H(1, n)), e.max = (n, r) => e.check(He(n, r)), e.length = (n, r) => e.check(Ge(n, r)), e.unwrap = () => e.element;
1841
1841
  });
1842
1842
  function Po(e, t) {
1843
1843
  return Fr(xo, e, t);
1844
1844
  }
1845
1845
  const Ro = /* @__PURE__ */ i("ZodObject", (e, t) => {
1846
- Fn.init(e, t), w.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => he(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: se() }), e.loose = () => e.clone({ ...e._zod.def, catchall: se() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Do() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => dt(e, n), e.safeExtend = (n) => pt(e, n), e.merge = (n) => ft(e, n), e.pick = (n) => ut(e, n), e.omit = (n) => lt(e, n), e.partial = (...n) => ht(Qe, e, n[0]), e.required = (...n) => mt(et, e, n[0]);
1846
+ Fn.init(e, t), w.init(e, t), h(e, "shape", () => t.shape), e.keyof = () => Ye(Object.keys(e._zod.def.shape)), e.catchall = (n) => e.clone({ ...e._zod.def, catchall: n }), e.passthrough = () => e.clone({ ...e._zod.def, catchall: se() }), e.loose = () => e.clone({ ...e._zod.def, catchall: se() }), e.strict = () => e.clone({ ...e._zod.def, catchall: Do() }), e.strip = () => e.clone({ ...e._zod.def, catchall: void 0 }), e.extend = (n) => dt(e, n), e.safeExtend = (n) => pt(e, n), e.merge = (n) => ft(e, n), e.pick = (n) => ut(e, n), e.omit = (n) => lt(e, n), e.partial = (...n) => ht(Qe, e, n[0]), e.required = (...n) => mt(et, e, n[0]);
1847
1847
  });
1848
- function Ye(e, t) {
1848
+ function qe(e, t) {
1849
1849
  const n = {
1850
1850
  type: "object",
1851
1851
  shape: e ?? {},
@@ -1904,7 +1904,7 @@ const ae = /* @__PURE__ */ i("ZodEnum", (e, t) => {
1904
1904
  });
1905
1905
  };
1906
1906
  });
1907
- function he(e, t) {
1907
+ function Ye(e, t) {
1908
1908
  const n = Array.isArray(e) ? Object.fromEntries(e.map((r) => [r, r])) : e;
1909
1909
  return new ae({
1910
1910
  type: "enum",
@@ -1915,7 +1915,7 @@ function he(e, t) {
1915
1915
  const Fo = /* @__PURE__ */ i("ZodTransform", (e, t) => {
1916
1916
  Vn.init(e, t), w.init(e, t), e._zod.parse = (n, r) => {
1917
1917
  if (r.direction === "backward")
1918
- throw new Re(e.constructor.name);
1918
+ throw new Pe(e.constructor.name);
1919
1919
  n.addIssue = (s) => {
1920
1920
  if (typeof s == "string")
1921
1921
  n.issues.push(F(s, n.value, t));
@@ -1937,7 +1937,7 @@ function Lo(e) {
1937
1937
  const Qe = /* @__PURE__ */ i("ZodOptional", (e, t) => {
1938
1938
  Bn.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
1939
1939
  });
1940
- function Oe(e) {
1940
+ function Te(e) {
1941
1941
  return new Qe({
1942
1942
  type: "optional",
1943
1943
  innerType: e
@@ -1946,7 +1946,7 @@ function Oe(e) {
1946
1946
  const Mo = /* @__PURE__ */ i("ZodNullable", (e, t) => {
1947
1947
  Jn.init(e, t), w.init(e, t), e.unwrap = () => e._zod.def.innerType;
1948
1948
  });
1949
- function Se(e) {
1949
+ function Oe(e) {
1950
1950
  return new Mo({
1951
1951
  type: "nullable",
1952
1952
  innerType: e
@@ -1960,7 +1960,7 @@ function Vo(e, t) {
1960
1960
  type: "default",
1961
1961
  innerType: e,
1962
1962
  get defaultValue() {
1963
- return typeof t == "function" ? t() : Ue(t);
1963
+ return typeof t == "function" ? t() : Ce(t);
1964
1964
  }
1965
1965
  });
1966
1966
  }
@@ -1972,7 +1972,7 @@ function Jo(e, t) {
1972
1972
  type: "prefault",
1973
1973
  innerType: e,
1974
1974
  get defaultValue() {
1975
- return typeof t == "function" ? t() : Ue(t);
1975
+ return typeof t == "function" ? t() : Ce(t);
1976
1976
  }
1977
1977
  });
1978
1978
  }
@@ -1999,7 +1999,7 @@ function Go(e, t) {
1999
1999
  const Xo = /* @__PURE__ */ i("ZodPipe", (e, t) => {
2000
2000
  qn.init(e, t), w.init(e, t), e.in = t.in, e.out = t.out;
2001
2001
  });
2002
- function De(e, t) {
2002
+ function Se(e, t) {
2003
2003
  return new Xo({
2004
2004
  type: "pipe",
2005
2005
  in: e,
@@ -2025,34 +2025,34 @@ function es(e, t = {}) {
2025
2025
  function ts(e) {
2026
2026
  return Mr(e);
2027
2027
  }
2028
- const ds = he(["en-au", "en-gb", "en-us", "es-es"]), ns = he(["app", "engine", "connector", "context", "informer", "presenter"]), xe = Ye({
2028
+ const De = qe({
2029
2029
  "en-au": P().optional(),
2030
2030
  "en-gb": P().optional(),
2031
2031
  "en-us": P().optional(),
2032
2032
  "es-es": P().optional()
2033
- }), ps = Ye({
2033
+ }), ls = qe({
2034
2034
  id: P(),
2035
- label: xe,
2036
- description: xe,
2035
+ label: De,
2036
+ description: De,
2037
2037
  statusId: se(),
2038
- typeId: ns,
2038
+ typeId: Ye(["app", "engine", "connector", "context", "informer", "presenter"]),
2039
2039
  version: P()
2040
2040
  });
2041
- function fs() {
2041
+ function ds() {
2042
2042
  function e(t, n, r) {
2043
2043
  r.textContent = "Cytoscape.js diagram goes here...";
2044
2044
  }
2045
2045
  return { render: e };
2046
2046
  }
2047
- function hs() {
2047
+ function ps() {
2048
2048
  function e(t, n, r) {
2049
2049
  r.textContent = "values table goes here...";
2050
2050
  }
2051
2051
  return { render: e };
2052
2052
  }
2053
- const rs = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", ne = "highcharts";
2054
- let U, Pe = !1;
2055
- function ms() {
2053
+ const ns = "https://cdn.jsdelivr.net/npm/highcharts@11.4.3/es-modules/masters/", ne = "highcharts";
2054
+ let U, xe = !1;
2055
+ function fs() {
2056
2056
  async function e(s, a, c, l) {
2057
2057
  await r();
2058
2058
  const u = [];
@@ -2111,12 +2111,12 @@ function ms() {
2111
2111
  );
2112
2112
  }
2113
2113
  async function o() {
2114
- if (Pe) return;
2115
- await import(`${rs}highcharts-more.src.js`), Pe = !0;
2114
+ if (xe) return;
2115
+ await import(`${ns}highcharts-more.src.js`), xe = !0;
2116
2116
  }
2117
2117
  return { renderCartesianChart: e, renderPolarChart: t, renderRangeChart: n };
2118
2118
  }
2119
- const gs = 0, _s = (e) => e, vs = () => Date.now(), bs = {
2119
+ const hs = 0, ms = (e) => e, gs = () => Date.now(), _s = {
2120
2120
  cartesian_areaLine: { categoryId: "cartesian", typeId: "areaLine", label: { "en-gb": "Area Line" }, options: { highchartsType: "area" } },
2121
2121
  cartesian_areaSpline: { categoryId: "cartesian", typeId: "areaSpline", label: { "en-gb": "Area Spline" }, options: { highchartsType: "area" } },
2122
2122
  cartesian_bar: { categoryId: "cartesian", typeId: "bar", label: { "en-gb": "Bar" }, options: { highchartsType: "bar" } },
@@ -2135,23 +2135,23 @@ const gs = 0, _s = (e) => e, vs = () => Date.now(), bs = {
2135
2135
  streamgraph: { categoryId: "streamgraph", label: { "en-gb": "Streamgraph" }, options: {} },
2136
2136
  values: { categoryId: "values", label: { "en-gb": "Values" }, options: {} }
2137
2137
  };
2138
- class me extends Error {
2138
+ class he extends Error {
2139
2139
  locator;
2140
2140
  constructor(t, n, r) {
2141
2141
  super(t, r), this.name = "DataPosError", this.locator = n, Error.captureStackTrace?.(this, new.target);
2142
2142
  }
2143
2143
  }
2144
- class j extends me {
2144
+ class j extends he {
2145
2145
  constructor(t, n, r) {
2146
2146
  super(t, n, r), this.name = "ApplicationError";
2147
2147
  }
2148
2148
  }
2149
- class ws extends j {
2149
+ class vs extends j {
2150
2150
  constructor(t, n, r) {
2151
2151
  super(t, n, r), this.name = "APIError";
2152
2152
  }
2153
2153
  }
2154
- class zs extends j {
2154
+ class bs extends j {
2155
2155
  constructor(t, n, r) {
2156
2156
  super(t, n, r), this.name = "EngineError";
2157
2157
  }
@@ -2162,36 +2162,36 @@ class tt extends j {
2162
2162
  super(t, n, o), this.name = "FetchError", this.body = r;
2163
2163
  }
2164
2164
  }
2165
- class os extends j {
2165
+ class rs extends j {
2166
2166
  componentName;
2167
2167
  info;
2168
2168
  constructor(t, n, r, o, s) {
2169
2169
  super(t, n, s), this.name = "VueHandledError", this.info = r, this.componentName = o;
2170
2170
  }
2171
2171
  }
2172
- class ys extends j {
2172
+ class ws extends j {
2173
2173
  constructor(t, n, r) {
2174
2174
  super(t, n, r), this.name = "WindowHandledRuntimeError";
2175
2175
  }
2176
2176
  }
2177
- class ks extends j {
2177
+ class zs extends j {
2178
2178
  constructor(t, n, r) {
2179
2179
  super(t, n, r), this.name = "WindowHandledPromiseRejectionError";
2180
2180
  }
2181
2181
  }
2182
- class $s extends me {
2182
+ class ys extends he {
2183
2183
  constructor(t, n, r) {
2184
2184
  super(t, n, r), this.name = "OperationalError";
2185
2185
  }
2186
2186
  }
2187
- async function Zs(e, t, n) {
2187
+ async function ks(e, t, n) {
2188
2188
  const r = `${t} Response status '${e.status}${e.statusText ? ` - ${e.statusText}` : ""}' received.`, o = await e.text();
2189
2189
  return new tt(r, n, o);
2190
2190
  }
2191
- function Es(e) {
2191
+ function $s(e) {
2192
2192
  return e.map((t) => t.message).join(" ");
2193
2193
  }
2194
- function Is(e, t = "Unknown error.") {
2194
+ function Zs(e, t = "Unknown error.") {
2195
2195
  if (e instanceof Error) return e;
2196
2196
  if (typeof e == "string") return new Error(e);
2197
2197
  try {
@@ -2200,7 +2200,7 @@ function Is(e, t = "Unknown error.") {
2200
2200
  return new Error(t);
2201
2201
  }
2202
2202
  }
2203
- function As(e) {
2203
+ function Es(e) {
2204
2204
  const t = /* @__PURE__ */ new Set(), n = [];
2205
2205
  let r = e;
2206
2206
  for (; r && !t.has(r); ) {
@@ -2208,9 +2208,9 @@ function As(e) {
2208
2208
  let o;
2209
2209
  if (r instanceof tt)
2210
2210
  o = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
2211
- else if (r instanceof os)
2211
+ else if (r instanceof rs)
2212
2212
  o = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
2213
- else if (r instanceof me)
2213
+ else if (r instanceof he)
2214
2214
  o = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
2215
2215
  else if (r instanceof Error) {
2216
2216
  const s = r;
@@ -2220,7 +2220,7 @@ function As(e) {
2220
2220
  }
2221
2221
  return n;
2222
2222
  }
2223
- const nt = "en-US", G = {}, Ts = (e) => {
2223
+ const nt = "en-US", G = {}, Is = (e) => {
2224
2224
  switch (e) {
2225
2225
  case "Edm.Binary":
2226
2226
  return "unknown";
@@ -2259,12 +2259,12 @@ const nt = "en-US", G = {}, Ts = (e) => {
2259
2259
  default:
2260
2260
  return "unknown";
2261
2261
  }
2262
- }, Os = (e) => {
2262
+ }, As = (e) => {
2263
2263
  if (e) {
2264
2264
  const t = e.lastIndexOf("/"), n = e.lastIndexOf(".", t > -1 ? t : e.length);
2265
2265
  return n > -1 ? e.substring(0, n) : e;
2266
2266
  }
2267
- }, Ss = (e) => {
2267
+ }, Ts = (e) => {
2268
2268
  if (e) {
2269
2269
  const t = e.lastIndexOf(".");
2270
2270
  if (t > -1) return e.substring(t + 1);
@@ -2281,7 +2281,7 @@ const nt = "en-US", G = {}, Ts = (e) => {
2281
2281
  style: "decimal",
2282
2282
  useGrouping: !0
2283
2283
  }), G[o] = s), s.format(e);
2284
- }, Ds = (e) => e == null ? "" : e < 1e3 ? X(e) : e < 1e6 ? `${y(e / 1e3, 2, 0)}K` : e < 1e9 ? `${y(e / 1e6, 2, 0)}M` : e < 1e12 ? `${y(e / 1e9, 2, 0)}B` : `${y(e / 1e12, 2, 0)}T`, xs = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${X(e)} bytes` : e < 1048576 ? `${y(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${y(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${y(e / 1073741824, 2, 0)} GB` : `${y(e / 1099511627776, 2, 0)} TB`, Ps = (e) => e == null ? "" : e < 1e3 ? `${X(e)} ms` : e === 1e3 ? `${X(e)} sec` : e < 6e4 ? `${y(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${y(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${y(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${y(e / 864e5, 2, 0)} days`, X = (e, t = nt) => {
2284
+ }, Os = (e) => e == null ? "" : e < 1e3 ? X(e) : e < 1e6 ? `${y(e / 1e3, 2, 0)}K` : e < 1e9 ? `${y(e / 1e6, 2, 0)}M` : e < 1e12 ? `${y(e / 1e9, 2, 0)}B` : `${y(e / 1e12, 2, 0)}T`, Ss = (e) => e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${X(e)} bytes` : e < 1048576 ? `${y(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${y(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${y(e / 1073741824, 2, 0)} GB` : `${y(e / 1099511627776, 2, 0)} TB`, Ds = (e) => e == null ? "" : e < 1e3 ? `${X(e)} ms` : e === 1e3 ? `${X(e)} sec` : e < 6e4 ? `${y(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${y(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${y(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${y(e / 864e5, 2, 0)} days`, X = (e, t = nt) => {
2285
2285
  if (e == null) return "";
2286
2286
  const n = `${t}decimal0.0`;
2287
2287
  let r = G[n];
@@ -2293,7 +2293,7 @@ const nt = "en-US", G = {}, Ts = (e) => {
2293
2293
  style: "decimal",
2294
2294
  useGrouping: !0
2295
2295
  }), G[n] = r), r.format(e);
2296
- }, Rs = (e) => {
2296
+ }, xs = (e) => {
2297
2297
  switch (e) {
2298
2298
  case "csv":
2299
2299
  return "text/csv";
@@ -2307,7 +2307,7 @@ const nt = "en-US", G = {}, Ts = (e) => {
2307
2307
  default:
2308
2308
  return "application/octet-stream";
2309
2309
  }
2310
- }, ss = [
2310
+ }, os = [
2311
2311
  { id: "dtv", label: { "en-gb": "Delimited Text" } },
2312
2312
  { id: "e/e", label: { "en-gb": "Entity/Event" } },
2313
2313
  { id: "jsonArray", label: { "en-gb": "JSON Array" } },
@@ -2315,22 +2315,22 @@ const nt = "en-US", G = {}, Ts = (e) => {
2315
2315
  { id: "xls", label: { "en-gb": "XLS" } },
2316
2316
  { id: "xlsx", label: { "en-gb": "XLSX" } },
2317
2317
  { id: "xml", label: { "en-gb": "XML" } }
2318
- ], js = (e = I) => {
2318
+ ], Ps = (e = I) => {
2319
2319
  const t = [];
2320
- for (const n of ss) t.push({ ...n, label: n.label[e] || n.label[I] || n.id });
2320
+ for (const n of os) t.push({ ...n, label: n.label[e] || n.label[I] || n.id });
2321
2321
  return t;
2322
- }, as = [
2322
+ }, ss = [
2323
2323
  { id: `
2324
2324
  `, label: { "en-gb": "Newline" } },
2325
2325
  { id: "\r", label: { "en-gb": "Carriage Return" } },
2326
2326
  { id: `\r
2327
2327
  `, label: { "en-gb": "Carriage Return/Newline" } }
2328
- ], Cs = (e = I) => {
2328
+ ], Rs = (e = I) => {
2329
2329
  const t = [];
2330
- for (const n of as)
2330
+ for (const n of ss)
2331
2331
  t.push({ ...n, label: n.label[e] || n.label[I] || n.id });
2332
2332
  return t;
2333
- }, is = [
2333
+ }, as = [
2334
2334
  { id: ":", label: { "en-gb": "Colon" } },
2335
2335
  { id: ",", label: { "en-gb": "Comma" } },
2336
2336
  { id: "!", label: { "en-gb": "Exclamation Mark" } },
@@ -2342,12 +2342,12 @@ const nt = "en-US", G = {}, Ts = (e) => {
2342
2342
  { id: "_", label: { "en-gb": "Underscore" } },
2343
2343
  { id: "0x1F", label: { "en-gb": "Unit Separator" } },
2344
2344
  { id: "|", label: { "en-gb": "Vertical Bar" } }
2345
- ], Us = (e = I) => {
2345
+ ], js = (e = I) => {
2346
2346
  const t = [];
2347
- for (const n of is)
2347
+ for (const n of as)
2348
2348
  t.push({ ...n, label: n.label[e] || n.label[I] || n.id });
2349
2349
  return t;
2350
- }, cs = [
2350
+ }, is = [
2351
2351
  { id: "alpha", color: "red", label: { "en-gb": "alpha" } },
2352
2352
  { id: "beta", color: "amber", label: { "en-gb": "beta" } },
2353
2353
  { id: "generalAvailability", color: "green", label: { "en-gb": "" } },
@@ -2357,48 +2357,46 @@ const nt = "en-US", G = {}, Ts = (e) => {
2357
2357
  { id: "releaseCandidate", color: "green", label: { "en-gb": "release-candidate" } },
2358
2358
  { id: "unavailable", color: "other", label: { "en-gb": "unavailable" } },
2359
2359
  { id: "underReview", color: "other", label: { "en-gb": "under-review" } }
2360
- ], Ns = (e, t = I) => {
2361
- const n = cs.find((r) => r.id === e);
2360
+ ], Cs = (e, t = I) => {
2361
+ const n = is.find((r) => r.id === e);
2362
2362
  return n ? { ...n, label: n.label[t] || n.label[I] || e } : { id: e, color: "other", label: e };
2363
2363
  }, I = "en-gb";
2364
2364
  export {
2365
- ws as APIError,
2365
+ vs as APIError,
2366
2366
  j as ApplicationError,
2367
- us as CONNECTOR_DESTINATION_OPERATIONS,
2368
- ls as CONNECTOR_SOURCE_OPERATIONS,
2367
+ cs as CONNECTOR_DESTINATION_OPERATIONS,
2368
+ us as CONNECTOR_SOURCE_OPERATIONS,
2369
2369
  I as DEFAULT_LOCALE_CODE,
2370
- gs as DefaultTimestamp,
2371
- zs as EngineError,
2370
+ hs as DefaultTimestamp,
2371
+ bs as EngineError,
2372
2372
  tt as FetchError,
2373
- $s as OperationalError,
2374
- os as VueError,
2375
- ks as WindowPromiseRejectionError,
2376
- ys as WindowRuntimeError,
2377
- Zs as buildFetchError,
2378
- Es as concatenateSerialisedErrorMessages,
2379
- _s as convertMillisecondsToTimestamp,
2380
- Ts as convertODataTypeIdToUsageTypeId,
2381
- Ss as extractExtensionFromPath,
2382
- Os as extractNameFromPath,
2373
+ ys as OperationalError,
2374
+ rs as VueError,
2375
+ zs as WindowPromiseRejectionError,
2376
+ ws as WindowRuntimeError,
2377
+ ks as buildFetchError,
2378
+ $s as concatenateSerialisedErrorMessages,
2379
+ ms as convertMillisecondsToTimestamp,
2380
+ Is as convertODataTypeIdToUsageTypeId,
2381
+ Ts as extractExtensionFromPath,
2382
+ As as extractNameFromPath,
2383
2383
  y as formatNumberAsDecimalNumber,
2384
- Ps as formatNumberAsDuration,
2385
- Ds as formatNumberAsSize,
2386
- xs as formatNumberAsStorageSize,
2384
+ Ds as formatNumberAsDuration,
2385
+ Os as formatNumberAsSize,
2386
+ Ss as formatNumberAsStorageSize,
2387
2387
  X as formatNumberAsWholeNumber,
2388
- Ns as getComponentStatus,
2389
- vs as getCurrentTimestamp,
2390
- js as getDataFormats,
2391
- Cs as getRecordDelimiters,
2392
- Us as getValueDelimiters,
2393
- ds as localeCodeSchema,
2394
- Rs as lookupMimeTypeForExtension,
2395
- ps as moduleConfigSchema,
2396
- ns as moduleTypeIdSchema,
2397
- Is as normalizeToError,
2398
- xe as partialLocalisedStringSchema,
2399
- bs as presentationViewTypeMap,
2400
- As as serialiseError,
2401
- fs as useCytoscapeJS,
2402
- hs as useDataTable,
2403
- ms as useHighcharts
2388
+ Cs as getComponentStatus,
2389
+ gs as getCurrentTimestamp,
2390
+ Ps as getDataFormats,
2391
+ Rs as getRecordDelimiters,
2392
+ js as getValueDelimiters,
2393
+ xs as lookupMimeTypeForExtension,
2394
+ ls as moduleConfigSchema,
2395
+ Zs as normalizeToError,
2396
+ De as partialLocalisedStringSchema,
2397
+ _s as presentationViewTypeMap,
2398
+ Es as serialiseError,
2399
+ ds as useCytoscapeJS,
2400
+ ps as useDataTable,
2401
+ fs as useHighcharts
2404
2402
  };
@@ -1,4 +1,4 @@
1
- import { PreviewColumn } from '../../Z_PreviewColumn';
1
+ import { PreviewColumn } from './OLD_PreviewColumn';
2
2
  export type ParsedValue = {
3
3
  isValid: boolean;
4
4
  value: bigint | boolean | number | string | null;
@@ -15,7 +15,6 @@ export interface ComponentConfig {
15
15
  statusId: ComponentStatusId;
16
16
  typeId: ComponentTypeId;
17
17
  }
18
- export type ComponentTypeId = 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
19
18
  export type ComponentRef = {
20
19
  id: string;
21
20
  label: Partial<LocalisedString>;
@@ -30,3 +29,4 @@ export type ComponentStatus = {
30
29
  };
31
30
  export type ComponentStatusId = 'alpha' | 'beta' | 'generalAvailability' | 'notApplicable' | 'preAlpha' | 'proposed' | 'releaseCandidate' | 'unavailable' | 'underReview';
32
31
  export declare const getComponentStatus: (id: string, localeId?: LocaleCode) => ComponentStatus;
32
+ export type ComponentTypeId = 'connector' | 'connectorConnection' | 'context' | 'contextModelGroup' | 'contextModel' | 'contextModelDimensionGroup' | 'contextModelDimension' | 'contextModelDimensionHierarchy' | 'contextModelEntityGroup' | 'contextModelEntity' | 'contextModelEntityDataItem' | 'contextModelEntityEvent' | 'contextModelEntityPrimaryMeasure' | 'contextModelSecondaryMeasureGroup' | 'contextModelSecondaryMeasure' | 'dataView' | 'dimension' | 'eventQuery' | 'presenter' | 'presenterPresentation' | 'informer' | 'informerDocument';
@@ -12,7 +12,8 @@ export type { EngineModuleConfig } from './module';
12
12
  export type { InformerModuleConfig, InformerModuleOperation } from './module';
13
13
  export type { PresenterModuleConfig, PresenterModuleOperation } from './module';
14
14
  export { CONNECTOR_DESTINATION_OPERATIONS, CONNECTOR_SOURCE_OPERATIONS } from './module';
15
- export * from './module/configSchema';
15
+ export type { ModuleConfigZ } from './module/configSchema';
16
+ export { moduleConfigSchema, partialLocalisedStringSchema } from './module/configSchema';
16
17
  export type { ComponentConfig, ComponentRef, ComponentStatus, ComponentStatusId, ComponentTypeId } from './component';
17
18
  export type { AuditContentResult, AuditContentSettings } from './component/connector';
18
19
  export type { Connector, ConnectorCallbackData, ConnectorConfig, ConnectorImplementation, ConnectorOperationSettings, ConnectorLocalisedConfig, ConnectorTools } from './component/connector';
@@ -1,18 +1,4 @@
1
1
  import { z } from 'zod';
2
- export declare const localeCodeSchema: z.ZodEnum<{
3
- "en-au": "en-au";
4
- "en-gb": "en-gb";
5
- "en-us": "en-us";
6
- "es-es": "es-es";
7
- }>;
8
- export declare const moduleTypeIdSchema: z.ZodEnum<{
9
- connector: "connector";
10
- context: "context";
11
- presenter: "presenter";
12
- informer: "informer";
13
- app: "app";
14
- engine: "engine";
15
- }>;
16
2
  export declare const partialLocalisedStringSchema: z.ZodObject<{
17
3
  'en-au': z.ZodOptional<z.ZodString>;
18
4
  'en-gb': z.ZodOptional<z.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datapos/datapos-shared",
3
- "version": "0.3.157",
3
+ "version": "0.3.159",
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,
@@ -24,29 +24,31 @@
24
24
  "files": [
25
25
  "dist"
26
26
  ],
27
+ "peerDependencies": {
28
+ "csv-parse": "^6.1.0",
29
+ "date-fns": "^4.1.0",
30
+ "highcharts": "^12.4.0",
31
+ "markdown-it": "^14.1.0",
32
+ "zod": "^4.1.12"
33
+ },
27
34
  "devDependencies": {
28
35
  "@datapos/datapos-development": "^0.3.64",
29
36
  "@types/markdown-it": "^14.1.2",
30
37
  "@types/node": "^24.10.0",
31
38
  "@typescript-eslint/eslint-plugin": "^8.46.3",
32
39
  "@typescript-eslint/parser": "^8.46.3",
33
- "csv-parse": "^6.1.0",
34
- "date-fns": "^4.1.0",
35
40
  "eslint": "^9.39.1",
36
41
  "eslint-plugin-import": "^2.32.0",
37
- "highcharts": "^12.4.0",
38
42
  "jiti": "^2.6.1",
39
43
  "license-report": "^6.8.1",
40
44
  "license-report-check": "^0.1.2",
41
- "markdown-it": "^14.1.0",
42
45
  "nanoid": "^5.1.6",
43
46
  "npm-check-updates": "^19.1.2",
44
47
  "prettier": "^3.6.2",
45
48
  "retire": "^5.3.0",
46
49
  "typescript": "^5.9.3",
47
50
  "vite": "^7.2.2",
48
- "vite-plugin-dts": "^4.5.4",
49
- "zod": "^4.1.12"
51
+ "vite-plugin-dts": "^4.5.4"
50
52
  },
51
53
  "scripts": {
52
54
  "audit": "npm audit",
@@ -59,7 +61,7 @@
59
61
  "publish:toNPM": "npm publish --access public",
60
62
  "release": "npm run sync:withGitHub && npm run build && npm run publish:toNPM",
61
63
  "sync:withGitHub": "npm run bump:version && node -e \"import('@datapos/datapos-development').then(m => m.syncWithGitHub())\"",
62
- "test": "echo \"***** TEST SCRIPT NOT IMPLEMENTED. *****\"",
64
+ "test": "node -e \"import('@datapos/datapos-development').then(m => m.echoScriptNotImplemented('Test'))\"",
63
65
  "update:dataPosDeps": "npm run _update:developDeps",
64
66
  "_document:licenceReport": "license-report --only=prod,peer > LICENSES.json",
65
67
  "_document:licenceCheck": "license-report-check --source ./LICENSES.json --allowed 'MIT' --allowed 'n/a' --allowed 'Apache-2.0' --output=table",