@dpuse/dpuse-development 1.0.135 → 1.0.138

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.
@@ -79,11 +79,11 @@ function te(e, t) {
79
79
  return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
80
80
  }
81
81
  /* @__NO_SIDE_EFFECTS__ */
82
- function ne(e, t) {
82
+ function p(e, t) {
83
83
  let n = [...new Set(e)];
84
84
  return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
85
85
  }
86
- function p(e) {
86
+ function m(e) {
87
87
  return e["~standard"] = {
88
88
  version: 1,
89
89
  vendor: "valibot",
@@ -91,11 +91,11 @@ function p(e) {
91
91
  }, e;
92
92
  }
93
93
  /* @__NO_SIDE_EFFECTS__ */
94
- function m(e, t) {
94
+ function h(e, t) {
95
95
  return {
96
96
  kind: "validation",
97
97
  type: "min_length",
98
- reference: m,
98
+ reference: h,
99
99
  async: !1,
100
100
  expects: `>=${e}`,
101
101
  requirement: e,
@@ -106,19 +106,19 @@ function m(e, t) {
106
106
  };
107
107
  }
108
108
  /* @__NO_SIDE_EFFECTS__ */
109
- function re(e, t, n) {
109
+ function ne(e, t, n) {
110
110
  return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
111
111
  }
112
112
  /* @__NO_SIDE_EFFECTS__ */
113
- function h(e, t, n) {
113
+ function g(e, t, n) {
114
114
  return typeof e.default == "function" ? e.default(t, n) : e.default;
115
115
  }
116
116
  /* @__NO_SIDE_EFFECTS__ */
117
- function g(e, t) {
118
- return p({
117
+ function _(e, t) {
118
+ return m({
119
119
  kind: "schema",
120
120
  type: "array",
121
- reference: g,
121
+ reference: _,
122
122
  expects: "Array",
123
123
  async: !1,
124
124
  item: e,
@@ -151,11 +151,11 @@ function g(e, t) {
151
151
  });
152
152
  }
153
153
  /* @__NO_SIDE_EFFECTS__ */
154
- function _(e) {
155
- return p({
154
+ function v(e) {
155
+ return m({
156
156
  kind: "schema",
157
157
  type: "boolean",
158
- reference: _,
158
+ reference: v,
159
159
  expects: "boolean",
160
160
  async: !1,
161
161
  message: e,
@@ -165,11 +165,11 @@ function _(e) {
165
165
  });
166
166
  }
167
167
  /* @__NO_SIDE_EFFECTS__ */
168
- function v(e, t) {
169
- return p({
168
+ function y(e, t) {
169
+ return m({
170
170
  kind: "schema",
171
171
  type: "literal",
172
- reference: v,
172
+ reference: y,
173
173
  expects: /* @__PURE__ */ d(e),
174
174
  async: !1,
175
175
  literal: e,
@@ -180,26 +180,26 @@ function v(e, t) {
180
180
  });
181
181
  }
182
182
  /* @__NO_SIDE_EFFECTS__ */
183
- function y(e, t) {
184
- return p({
183
+ function b(e, t) {
184
+ return m({
185
185
  kind: "schema",
186
186
  type: "nullable",
187
- reference: y,
187
+ reference: b,
188
188
  expects: `(${e.expects} | null)`,
189
189
  async: !1,
190
190
  wrapped: e,
191
191
  default: t,
192
192
  "~run"(e, t) {
193
- return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
193
+ return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ g(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
194
194
  }
195
195
  });
196
196
  }
197
197
  /* @__NO_SIDE_EFFECTS__ */
198
- function b(e) {
199
- return p({
198
+ function x(e) {
199
+ return m({
200
200
  kind: "schema",
201
201
  type: "number",
202
- reference: b,
202
+ reference: x,
203
203
  expects: "number",
204
204
  async: !1,
205
205
  message: e,
@@ -209,26 +209,26 @@ function b(e) {
209
209
  });
210
210
  }
211
211
  /* @__NO_SIDE_EFFECTS__ */
212
- function x(e, t) {
213
- return p({
212
+ function S(e, t) {
213
+ return m({
214
214
  kind: "schema",
215
215
  type: "optional",
216
- reference: x,
216
+ reference: S,
217
217
  expects: `(${e.expects} | undefined)`,
218
218
  async: !1,
219
219
  wrapped: e,
220
220
  default: t,
221
221
  "~run"(e, t) {
222
- return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
222
+ return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ g(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
223
223
  }
224
224
  });
225
225
  }
226
226
  /* @__NO_SIDE_EFFECTS__ */
227
- function S(e, t, n) {
228
- return p({
227
+ function C(e, t, n) {
228
+ return m({
229
229
  kind: "schema",
230
230
  type: "record",
231
- reference: S,
231
+ reference: C,
232
232
  expects: "Object",
233
233
  async: !1,
234
234
  key: e,
@@ -277,11 +277,11 @@ function S(e, t, n) {
277
277
  });
278
278
  }
279
279
  /* @__NO_SIDE_EFFECTS__ */
280
- function C(e, t) {
281
- return p({
280
+ function w(e, t) {
281
+ return m({
282
282
  kind: "schema",
283
283
  type: "strict_object",
284
- reference: C,
284
+ reference: w,
285
285
  expects: "Object",
286
286
  async: !1,
287
287
  entries: e,
@@ -293,7 +293,7 @@ function C(e, t) {
293
293
  for (let r in this.entries) {
294
294
  let i = this.entries[r];
295
295
  if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
296
- let a = r in n ? n[r] : /* @__PURE__ */ h(i), o = i["~run"]({ value: a }, t);
296
+ let a = r in n ? n[r] : /* @__PURE__ */ g(i), o = i["~run"]({ value: a }, t);
297
297
  if (o.issues) {
298
298
  let i = {
299
299
  type: "object",
@@ -309,7 +309,7 @@ function C(e, t) {
309
309
  }
310
310
  }
311
311
  o.typed || (e.typed = !1), e.value[r] = o.value;
312
- } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ re(i);
312
+ } else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ne(i);
313
313
  else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (f(this, "key", e, t, {
314
314
  input: void 0,
315
315
  expected: `"${r}"`,
@@ -344,11 +344,11 @@ function C(e, t) {
344
344
  });
345
345
  }
346
346
  /* @__NO_SIDE_EFFECTS__ */
347
- function w(e) {
348
- return p({
347
+ function T(e) {
348
+ return m({
349
349
  kind: "schema",
350
350
  type: "string",
351
- reference: w,
351
+ reference: T,
352
352
  expects: "string",
353
353
  async: !1,
354
354
  message: e,
@@ -358,19 +358,19 @@ function w(e) {
358
358
  });
359
359
  }
360
360
  /* @__NO_SIDE_EFFECTS__ */
361
- function T(e) {
361
+ function E(e) {
362
362
  let t;
363
363
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
364
364
  else t = n.issues;
365
365
  return t;
366
366
  }
367
367
  /* @__NO_SIDE_EFFECTS__ */
368
- function E(e, t) {
369
- return p({
368
+ function D(e, t) {
369
+ return m({
370
370
  kind: "schema",
371
371
  type: "union",
372
- reference: E,
373
- expects: /* @__PURE__ */ ne(e.map((e) => e.expects), "|"),
372
+ reference: D,
373
+ expects: /* @__PURE__ */ p(e.map((e) => e.expects), "|"),
374
374
  async: !1,
375
375
  options: e,
376
376
  message: t,
@@ -389,16 +389,16 @@ function E(e, t) {
389
389
  if (n) return n;
390
390
  if (r) {
391
391
  if (r.length === 1) return r[0];
392
- f(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
392
+ f(this, "type", e, t, { issues: /* @__PURE__ */ E(r) }), e.typed = !0;
393
393
  } else if (i?.length === 1) return i[0];
394
- else f(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
394
+ else f(this, "type", e, t, { issues: /* @__PURE__ */ E(i) });
395
395
  return e;
396
396
  }
397
397
  });
398
398
  }
399
399
  /* @__NO_SIDE_EFFECTS__ */
400
- function ie(...e) {
401
- return p({
400
+ function re(...e) {
401
+ return m({
402
402
  ...e[0],
403
403
  pipe: e,
404
404
  "~run"(t, n) {
@@ -413,22 +413,22 @@ function ie(...e) {
413
413
  }
414
414
  });
415
415
  }
416
- var D = /* @__PURE__ */ C({
417
- en: /* @__PURE__ */ w(),
418
- es: /* @__PURE__ */ w()
419
- }), O = {
420
- id: /* @__PURE__ */ w(),
421
- label: /* @__PURE__ */ C({
422
- en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
423
- es: /* @__PURE__ */ x(/* @__PURE__ */ w())
416
+ var O = /* @__PURE__ */ w({
417
+ en: /* @__PURE__ */ T(),
418
+ es: /* @__PURE__ */ T()
419
+ }), ie = {
420
+ id: /* @__PURE__ */ T(),
421
+ label: /* @__PURE__ */ w({
422
+ en: /* @__PURE__ */ S(/* @__PURE__ */ T()),
423
+ es: /* @__PURE__ */ S(/* @__PURE__ */ T())
424
424
  }),
425
- description: /* @__PURE__ */ C({
426
- en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
427
- es: /* @__PURE__ */ x(/* @__PURE__ */ w())
425
+ description: /* @__PURE__ */ w({
426
+ en: /* @__PURE__ */ S(/* @__PURE__ */ T()),
427
+ es: /* @__PURE__ */ S(/* @__PURE__ */ T())
428
428
  }),
429
- icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
430
- iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
431
- }, k = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), ae = k([
429
+ icon: /* @__PURE__ */ b(/* @__PURE__ */ T()),
430
+ iconDark: /* @__PURE__ */ b(/* @__PURE__ */ T())
431
+ }, k = (e) => /* @__PURE__ */ D(e.map((e) => /* @__PURE__ */ y(e))), ae = k([
432
432
  "app",
433
433
  "connector",
434
434
  "connectorConnection",
@@ -459,22 +459,22 @@ var D = /* @__PURE__ */ C({
459
459
  "beta",
460
460
  "releaseCandidate",
461
461
  "generalAvailability"
462
- ]), ce = /* @__PURE__ */ C({
462
+ ]), ce = /* @__PURE__ */ w({
463
463
  color: oe,
464
- label: /* @__PURE__ */ w()
464
+ label: /* @__PURE__ */ T()
465
465
  }), A = {
466
- ...O,
466
+ ...ie,
467
467
  typeId: ae
468
- }, le = /* @__PURE__ */ C({
468
+ }, le = /* @__PURE__ */ w({
469
469
  ...A,
470
- order: /* @__PURE__ */ b(),
471
- path: /* @__PURE__ */ w()
470
+ order: /* @__PURE__ */ x(),
471
+ path: /* @__PURE__ */ T()
472
472
  }), j = {
473
473
  ...A,
474
- firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
475
- lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
476
- status: /* @__PURE__ */ y(ce),
477
- statusId: /* @__PURE__ */ y(se)
474
+ firstCreatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
475
+ lastUpdatedAt: /* @__PURE__ */ b(/* @__PURE__ */ x()),
476
+ status: /* @__PURE__ */ b(ce),
477
+ statusId: /* @__PURE__ */ b(se)
478
478
  };
479
479
  ({ ...j }), c({ en: "Arrow" }), c({ en: "Avro" }), c({ en: "Delimited text (CSV, TSV…)" }), c({ en: "JSON" }), c({ en: "JSON Lines (JSONL)" }), c({ en: "Markdown (MD)" }), c({ en: "OpenDocument spreadsheet (ODS)" }), c({ en: "Parquet" }), c({ en: "SPSS (SAV)" }), c({ en: "SQLite" }), c({ en: "Excel (XLSX, XLSM)" }), c({ en: "XML" }), c({ en: "Newline" }), c({ en: "Carriage Return" }), c({ en: "Carriage Return/Newline" }), c({ en: "Colon" }), c({ en: "Comma" }), c({ en: "Exclamation Mark" }), c({ en: "Record Separator" }), c({ en: "Semicolon" }), c({ en: "Space" }), c({ en: "Tab" }), c({ en: "Underscore" }), c({ en: "Unit Separator" }), c({ en: "Vertical Bar" }), k([
480
480
  "app",
@@ -486,10 +486,10 @@ var D = /* @__PURE__ */ C({
486
486
  ]);
487
487
  var M = {
488
488
  ...j,
489
- vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
490
- vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
491
- vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
492
- version: /* @__PURE__ */ w()
489
+ vendorAccountURL: /* @__PURE__ */ b(/* @__PURE__ */ T()),
490
+ vendorDocumentationURL: /* @__PURE__ */ b(/* @__PURE__ */ T()),
491
+ vendorHomeURL: /* @__PURE__ */ b(/* @__PURE__ */ T()),
492
+ version: /* @__PURE__ */ T()
493
493
  };
494
494
  ({ ...M });
495
495
  var ue = k([
@@ -513,7 +513,7 @@ var ue = k([
513
513
  "curatedDataset",
514
514
  "database",
515
515
  "fileStore"
516
- ]), fe = /* @__PURE__ */ C({ label: D }), pe = k([
516
+ ]), fe = /* @__PURE__ */ w({ label: O }), pe = k([
517
517
  "apiEndpoint",
518
518
  "file",
519
519
  "table"
@@ -522,30 +522,48 @@ var ue = k([
522
522
  "destination",
523
523
  "source",
524
524
  "unknown"
525
- ]), he = /* @__PURE__ */ C({ label: D }), ge = /* @__PURE__ */ C({
525
+ ]), he = /* @__PURE__ */ w({ label: O }), ge = /* @__PURE__ */ w({
526
526
  authMethodId: k([
527
527
  "apiKey",
528
528
  "disabled",
529
529
  "oAuth2",
530
530
  "none"
531
531
  ]),
532
- activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
533
- canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ _()),
534
- id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
535
- label: /* @__PURE__ */ x(D),
536
- maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
537
- params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
538
- }), _e = /* @__PURE__ */ C({
532
+ activeConnectionCount: /* @__PURE__ */ S(/* @__PURE__ */ x()),
533
+ canDescribe: /* @__PURE__ */ S(/* @__PURE__ */ v()),
534
+ id: /* @__PURE__ */ S(/* @__PURE__ */ T()),
535
+ label: /* @__PURE__ */ S(O),
536
+ maxConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ x()),
537
+ params: /* @__PURE__ */ S(/* @__PURE__ */ _(/* @__PURE__ */ C(/* @__PURE__ */ T(), /* @__PURE__ */ T())))
538
+ }), _e = /* @__PURE__ */ w({
539
539
  ...M,
540
- typeId: /* @__PURE__ */ v("connector"),
541
- actionNames: /* @__PURE__ */ g(ue),
542
- category: /* @__PURE__ */ y(fe),
540
+ typeId: /* @__PURE__ */ y("connector"),
541
+ actionNames: /* @__PURE__ */ _(ue),
542
+ category: /* @__PURE__ */ b(fe),
543
543
  categoryId: de,
544
- implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), ge),
544
+ implementations: /* @__PURE__ */ C(/* @__PURE__ */ T(), ge),
545
545
  itemTypeId: pe,
546
- usage: /* @__PURE__ */ y(he),
547
- usageId: /* @__PURE__ */ y(me)
548
- }), N = {
546
+ usage: /* @__PURE__ */ b(he),
547
+ usageId: /* @__PURE__ */ b(me)
548
+ }), ve = /* @__PURE__ */ w({ dataFormatIds: /* @__PURE__ */ re(/* @__PURE__ */ _(k([
549
+ "arrow",
550
+ "avro",
551
+ "dtv",
552
+ "json",
553
+ "jsonl",
554
+ "markdown",
555
+ "ods",
556
+ "parquet",
557
+ "sav",
558
+ "sqlite",
559
+ "xlsx",
560
+ "xml"
561
+ ])), /* @__PURE__ */ h(1)) }), N = /* @__PURE__ */ _(/* @__PURE__ */ T()), P = /* @__PURE__ */ w({
562
+ ...M,
563
+ typeId: /* @__PURE__ */ y("tool"),
564
+ actionNames: /* @__PURE__ */ S(N),
565
+ parser: /* @__PURE__ */ S(ve)
566
+ }), F = {
549
567
  abortOperation: "Abort Operation",
550
568
  auditObjectContent: "Audit Object Content",
551
569
  createObject: "Create Object",
@@ -561,12 +579,12 @@ var ue = k([
561
579
  retrieveChunks: "Retrieve Chunks",
562
580
  retrieveRecords: "Retrieve Records",
563
581
  upsertRecords: "Upsert Records"
564
- }, P = /* @__PURE__ */ new Set([
582
+ }, ye = /* @__PURE__ */ new Set([
565
583
  "createObject",
566
584
  "dropObject",
567
585
  "removeRecords",
568
586
  "upsertRecords"
569
- ]), F = /* @__PURE__ */ new Set([
587
+ ]), be = /* @__PURE__ */ new Set([
570
588
  "auditObjectContent",
571
589
  "findObject",
572
590
  "getInfo",
@@ -579,43 +597,25 @@ var ue = k([
579
597
  ]);
580
598
  function I(e) {
581
599
  let t = !1, n = !1;
582
- for (let r of e) F.has(r) && (t = !0), P.has(r) && (n = !0);
600
+ for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
583
601
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
584
602
  }
585
- function ve(e) {
603
+ function xe(e) {
586
604
  let t = new Set(e), n = "|Action|Supported|\n";
587
605
  n += "|:----|:-------:|\n";
588
- for (let e of Object.keys(N)) n += `| ${N[e]} | ${t.has(e) ? "✓" : ""} |\n`;
606
+ for (let e of Object.keys(F)) n += `| ${F[e]} | ${t.has(e) ? "✓" : ""} |\n`;
589
607
  return n;
590
608
  }
591
609
  k(["list"]), { ...M };
592
- var ye = k([
610
+ var Se = k([
593
611
  "list",
594
612
  "render",
595
613
  "setColorMode"
596
- ]), be = /* @__PURE__ */ C({
597
- ...M,
598
- typeId: /* @__PURE__ */ v("presenter"),
599
- actionNames: /* @__PURE__ */ g(ye),
600
- presentations: /* @__PURE__ */ g(le)
601
- }), xe = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ ie(/* @__PURE__ */ g(k([
602
- "arrow",
603
- "avro",
604
- "dtv",
605
- "json",
606
- "jsonl",
607
- "markdown",
608
- "ods",
609
- "parquet",
610
- "sav",
611
- "sqlite",
612
- "xlsx",
613
- "xml"
614
- ])), /* @__PURE__ */ m(1)) }), Se = /* @__PURE__ */ g(/* @__PURE__ */ w()), Ce = /* @__PURE__ */ C({
614
+ ]), Ce = /* @__PURE__ */ w({
615
615
  ...M,
616
- typeId: /* @__PURE__ */ v("tool"),
617
- actionNames: /* @__PURE__ */ x(Se),
618
- parser: /* @__PURE__ */ x(xe)
616
+ typeId: /* @__PURE__ */ y("presenter"),
617
+ actionNames: /* @__PURE__ */ _(Se),
618
+ presentations: /* @__PURE__ */ _(le)
619
619
  }), L = /* @__PURE__ */ new Map([
620
620
  ["arrow", "application/vnd.apache.arrow.file"],
621
621
  ["avro", "application/vnd.apache.avro"],
@@ -913,12 +913,12 @@ async function Ze(e, t) {
913
913
  }
914
914
  async function Qe(e, t) {
915
915
  J(`${e} Build presenter project configuration`);
916
- let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(be, n);
916
+ let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(Ce, n);
917
917
  if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
918
918
  return await Q(t, n, await X(r));
919
919
  }
920
920
  async function $e(e, t) {
921
- let n = await Z(e, t), r = /* @__PURE__ */ s(Ce.entries.parser, n.parser);
921
+ let n = await Z(e, t), r = /* @__PURE__ */ s(P.entries.parser, n.parser);
922
922
  if (!r.success) throw console.error("❌ The 'parser' configuration is invalid:"), console.table(r.issues), Error("Configuration is invalid");
923
923
  return await Q(t, n, await X(await W("src/index.ts")));
924
924
  }
@@ -945,4 +945,4 @@ function et(e, t, n, r) {
945
945
  return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
946
946
  }
947
947
  //#endregion
948
- export { We as A, G as C, Be as D, ze as E, I as M, ve as N, Ve as O, W as S, Ue as T, Ge as _, R as a, He as b, H as c, Xe as d, Ie as f, Y as g, qe as h, ke as i, q as j, K as k, Ne as l, Le as m, B as n, Ae as o, Re as p, Oe as r, V as s, z as t, Ye as u, Ke as v, Je as w, U as x, J as y };
948
+ export { We as A, G as C, Be as D, ze as E, I as M, xe as N, Ve as O, W as S, Ue as T, Ge as _, R as a, He as b, H as c, Xe as d, Ie as f, Y as g, qe as h, ke as i, q as j, K as k, Ne as l, Le as m, B as n, Ae as o, Re as p, Oe as r, V as s, z as t, Ye as u, Ke as v, Je as w, U as x, J as y };