@dpuse/dpuse-shared 1.0.200 → 1.0.203
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/dist/dpuse-shared.es.js +432 -286
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/connection/index.d.ts +0 -2
- package/dist/types/src/component/dataView/index.d.ts +17 -2
- package/dist/types/src/component/module/connector/index.d.ts +5 -4
- package/dist/types/src/component/module/connector/objectParsing.d.ts +6 -3
- package/dist/types/src/component/module/connector/tableSchema.d.ts +9 -0
- package/package.json +4 -4
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -166,8 +166,60 @@ function _(e, t) {
|
|
|
166
166
|
function v(e, t) {
|
|
167
167
|
return d({
|
|
168
168
|
kind: "schema",
|
|
169
|
-
type: "
|
|
169
|
+
type: "loose_object",
|
|
170
170
|
reference: v,
|
|
171
|
+
expects: "Object",
|
|
172
|
+
async: !1,
|
|
173
|
+
entries: e,
|
|
174
|
+
message: t,
|
|
175
|
+
"~run"(e, t) {
|
|
176
|
+
let n = e.value;
|
|
177
|
+
if (n && typeof n == "object") {
|
|
178
|
+
e.typed = !0, e.value = {};
|
|
179
|
+
for (let r in this.entries) {
|
|
180
|
+
let i = this.entries[r];
|
|
181
|
+
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
182
|
+
let a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i["~run"]({ value: a }, t);
|
|
183
|
+
if (o.issues) {
|
|
184
|
+
let i = {
|
|
185
|
+
type: "object",
|
|
186
|
+
origin: "value",
|
|
187
|
+
input: n,
|
|
188
|
+
key: r,
|
|
189
|
+
value: a
|
|
190
|
+
};
|
|
191
|
+
for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
|
|
192
|
+
if (e.issues ||= o.issues, t.abortEarly) {
|
|
193
|
+
e.typed = !1;
|
|
194
|
+
break;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
198
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);
|
|
199
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (s(this, "key", e, t, {
|
|
200
|
+
input: void 0,
|
|
201
|
+
expected: `"${r}"`,
|
|
202
|
+
path: [{
|
|
203
|
+
type: "object",
|
|
204
|
+
origin: "key",
|
|
205
|
+
input: n,
|
|
206
|
+
key: r,
|
|
207
|
+
value: n[r]
|
|
208
|
+
}]
|
|
209
|
+
}), t.abortEarly)) break;
|
|
210
|
+
}
|
|
211
|
+
if (!e.issues || !t.abortEarly) for (let t in n) /* @__PURE__ */ l(n, t) && !Object.prototype.hasOwnProperty.call(this.entries, t) && (e.value[t] = n[t]);
|
|
212
|
+
} else s(this, "type", e, t);
|
|
213
|
+
return e;
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
218
|
+
function y(e, t) {
|
|
219
|
+
return d({
|
|
220
|
+
kind: "schema",
|
|
221
|
+
type: "nullable",
|
|
222
|
+
reference: y,
|
|
171
223
|
expects: `(${e.expects} | null)`,
|
|
172
224
|
async: !1,
|
|
173
225
|
wrapped: e,
|
|
@@ -178,11 +230,11 @@ function v(e, t) {
|
|
|
178
230
|
});
|
|
179
231
|
}
|
|
180
232
|
/* @__NO_SIDE_EFFECTS__ */
|
|
181
|
-
function
|
|
233
|
+
function b(e) {
|
|
182
234
|
return d({
|
|
183
235
|
kind: "schema",
|
|
184
236
|
type: "number",
|
|
185
|
-
reference:
|
|
237
|
+
reference: b,
|
|
186
238
|
expects: "number",
|
|
187
239
|
async: !1,
|
|
188
240
|
message: e,
|
|
@@ -192,11 +244,11 @@ function y(e) {
|
|
|
192
244
|
});
|
|
193
245
|
}
|
|
194
246
|
/* @__NO_SIDE_EFFECTS__ */
|
|
195
|
-
function
|
|
247
|
+
function x(e, t) {
|
|
196
248
|
return d({
|
|
197
249
|
kind: "schema",
|
|
198
250
|
type: "optional",
|
|
199
|
-
reference:
|
|
251
|
+
reference: x,
|
|
200
252
|
expects: `(${e.expects} | undefined)`,
|
|
201
253
|
async: !1,
|
|
202
254
|
wrapped: e,
|
|
@@ -207,11 +259,11 @@ function b(e, t) {
|
|
|
207
259
|
});
|
|
208
260
|
}
|
|
209
261
|
/* @__NO_SIDE_EFFECTS__ */
|
|
210
|
-
function
|
|
262
|
+
function S(e, t, n) {
|
|
211
263
|
return d({
|
|
212
264
|
kind: "schema",
|
|
213
265
|
type: "record",
|
|
214
|
-
reference:
|
|
266
|
+
reference: S,
|
|
215
267
|
expects: "Object",
|
|
216
268
|
async: !1,
|
|
217
269
|
key: e,
|
|
@@ -260,11 +312,11 @@ function x(e, t, n) {
|
|
|
260
312
|
});
|
|
261
313
|
}
|
|
262
314
|
/* @__NO_SIDE_EFFECTS__ */
|
|
263
|
-
function
|
|
315
|
+
function C(e, t) {
|
|
264
316
|
return d({
|
|
265
317
|
kind: "schema",
|
|
266
318
|
type: "strict_object",
|
|
267
|
-
reference:
|
|
319
|
+
reference: C,
|
|
268
320
|
expects: "Object",
|
|
269
321
|
async: !1,
|
|
270
322
|
entries: e,
|
|
@@ -327,11 +379,11 @@ function S(e, t) {
|
|
|
327
379
|
});
|
|
328
380
|
}
|
|
329
381
|
/* @__NO_SIDE_EFFECTS__ */
|
|
330
|
-
function
|
|
382
|
+
function w(e) {
|
|
331
383
|
return d({
|
|
332
384
|
kind: "schema",
|
|
333
385
|
type: "string",
|
|
334
|
-
reference:
|
|
386
|
+
reference: w,
|
|
335
387
|
expects: "string",
|
|
336
388
|
async: !1,
|
|
337
389
|
message: e,
|
|
@@ -341,18 +393,18 @@ function C(e) {
|
|
|
341
393
|
});
|
|
342
394
|
}
|
|
343
395
|
/* @__NO_SIDE_EFFECTS__ */
|
|
344
|
-
function
|
|
396
|
+
function T(e) {
|
|
345
397
|
let t;
|
|
346
398
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
347
399
|
else t = n.issues;
|
|
348
400
|
return t;
|
|
349
401
|
}
|
|
350
402
|
/* @__NO_SIDE_EFFECTS__ */
|
|
351
|
-
function
|
|
403
|
+
function ee(e, t) {
|
|
352
404
|
return d({
|
|
353
405
|
kind: "schema",
|
|
354
406
|
type: "union",
|
|
355
|
-
reference:
|
|
407
|
+
reference: ee,
|
|
356
408
|
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
357
409
|
async: !1,
|
|
358
410
|
options: e,
|
|
@@ -372,15 +424,15 @@ function te(e, t) {
|
|
|
372
424
|
if (n) return n;
|
|
373
425
|
if (r) {
|
|
374
426
|
if (r.length === 1) return r[0];
|
|
375
|
-
s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
427
|
+
s(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
|
|
376
428
|
} else if (i?.length === 1) return i[0];
|
|
377
|
-
else s(this, "type", e, t, { issues: /* @__PURE__ */
|
|
429
|
+
else s(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
|
|
378
430
|
return e;
|
|
379
431
|
}
|
|
380
432
|
});
|
|
381
433
|
}
|
|
382
434
|
/* @__NO_SIDE_EFFECTS__ */
|
|
383
|
-
function
|
|
435
|
+
function te(...e) {
|
|
384
436
|
return d({
|
|
385
437
|
...e[0],
|
|
386
438
|
pipe: e,
|
|
@@ -396,23 +448,33 @@ function ne(...e) {
|
|
|
396
448
|
}
|
|
397
449
|
});
|
|
398
450
|
}
|
|
451
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
452
|
+
function E(e, t, n) {
|
|
453
|
+
let r = e["~run"]({ value: t }, /* @__PURE__ */ a(n));
|
|
454
|
+
return {
|
|
455
|
+
typed: r.typed,
|
|
456
|
+
success: !r.issues,
|
|
457
|
+
output: r.value,
|
|
458
|
+
issues: r.issues
|
|
459
|
+
};
|
|
460
|
+
}
|
|
399
461
|
// src/locale/locale.schema.ts
|
|
400
|
-
var
|
|
401
|
-
en: /* @__PURE__ */
|
|
402
|
-
es: /* @__PURE__ */
|
|
403
|
-
}),
|
|
404
|
-
id: /* @__PURE__ */
|
|
405
|
-
label: /* @__PURE__ */
|
|
406
|
-
en: /* @__PURE__ */
|
|
407
|
-
es: /* @__PURE__ */
|
|
462
|
+
var D = /* @__PURE__ */ C({
|
|
463
|
+
en: /* @__PURE__ */ w(),
|
|
464
|
+
es: /* @__PURE__ */ w()
|
|
465
|
+
}), ne = {
|
|
466
|
+
id: /* @__PURE__ */ w(),
|
|
467
|
+
label: /* @__PURE__ */ C({
|
|
468
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
469
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
408
470
|
}),
|
|
409
|
-
description: /* @__PURE__ */
|
|
410
|
-
en: /* @__PURE__ */
|
|
411
|
-
es: /* @__PURE__ */
|
|
471
|
+
description: /* @__PURE__ */ C({
|
|
472
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
473
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
412
474
|
}),
|
|
413
|
-
icon: /* @__PURE__ */
|
|
414
|
-
iconDark: /* @__PURE__ */
|
|
415
|
-
},
|
|
475
|
+
icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
476
|
+
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
|
|
477
|
+
}, O = (e) => /* @__PURE__ */ ee(e.map((e) => /* @__PURE__ */ _(e))), re = O([
|
|
416
478
|
"app",
|
|
417
479
|
"connector",
|
|
418
480
|
"connectorConnection",
|
|
@@ -434,32 +496,32 @@ var w = /* @__PURE__ */ S({
|
|
|
434
496
|
"presenter",
|
|
435
497
|
"presenterPresentation",
|
|
436
498
|
"tool"
|
|
437
|
-
]),
|
|
499
|
+
]), ie = O([
|
|
438
500
|
"danger",
|
|
439
501
|
"success",
|
|
440
502
|
"warning"
|
|
441
|
-
]),
|
|
503
|
+
]), ae = O([
|
|
442
504
|
"alpha",
|
|
443
505
|
"beta",
|
|
444
506
|
"releaseCandidate",
|
|
445
507
|
"generalAvailability"
|
|
446
|
-
]),
|
|
447
|
-
color:
|
|
448
|
-
label: /* @__PURE__ */
|
|
449
|
-
}),
|
|
450
|
-
...
|
|
451
|
-
typeId:
|
|
452
|
-
},
|
|
453
|
-
...
|
|
454
|
-
order: /* @__PURE__ */
|
|
455
|
-
path: /* @__PURE__ */
|
|
508
|
+
]), oe = /* @__PURE__ */ C({
|
|
509
|
+
color: ie,
|
|
510
|
+
label: /* @__PURE__ */ w()
|
|
511
|
+
}), se = {
|
|
512
|
+
...ne,
|
|
513
|
+
typeId: re
|
|
514
|
+
}, ce = /* @__PURE__ */ C({
|
|
515
|
+
...se,
|
|
516
|
+
order: /* @__PURE__ */ b(),
|
|
517
|
+
path: /* @__PURE__ */ w()
|
|
456
518
|
}), le = {
|
|
457
|
-
...
|
|
458
|
-
firstCreatedAt: /* @__PURE__ */
|
|
459
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
460
|
-
status: /* @__PURE__ */
|
|
461
|
-
statusId: /* @__PURE__ */
|
|
462
|
-
}, ue = /* @__PURE__ */
|
|
519
|
+
...se,
|
|
520
|
+
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
521
|
+
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
522
|
+
status: /* @__PURE__ */ y(oe),
|
|
523
|
+
statusId: /* @__PURE__ */ y(ae)
|
|
524
|
+
}, ue = /* @__PURE__ */ C({ ...le }), de = [
|
|
463
525
|
{
|
|
464
526
|
id: "alpha",
|
|
465
527
|
color: "danger",
|
|
@@ -587,7 +649,7 @@ var pe = [
|
|
|
587
649
|
isText: !1,
|
|
588
650
|
supportId: "unsupported"
|
|
589
651
|
}
|
|
590
|
-
],
|
|
652
|
+
], k = [
|
|
591
653
|
{
|
|
592
654
|
id: ",",
|
|
593
655
|
character: ","
|
|
@@ -687,9 +749,9 @@ var pe = [
|
|
|
687
749
|
}
|
|
688
750
|
], he = [",", "."];
|
|
689
751
|
function ge(e) {
|
|
690
|
-
return
|
|
752
|
+
return k.find(({ id: t }) => t === e)?.character ?? e;
|
|
691
753
|
}
|
|
692
|
-
|
|
754
|
+
O([
|
|
693
755
|
"app",
|
|
694
756
|
"engine",
|
|
695
757
|
"connector",
|
|
@@ -698,16 +760,16 @@ T([
|
|
|
698
760
|
"tool"
|
|
699
761
|
]);
|
|
700
762
|
// src/component/module/moduleConfig.schema.ts
|
|
701
|
-
var
|
|
763
|
+
var A = {
|
|
702
764
|
...le,
|
|
703
|
-
vendorAccountURL: /* @__PURE__ */
|
|
704
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
705
|
-
vendorHomeURL: /* @__PURE__ */
|
|
706
|
-
version: /* @__PURE__ */
|
|
765
|
+
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
766
|
+
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
767
|
+
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
768
|
+
version: /* @__PURE__ */ w()
|
|
707
769
|
};
|
|
708
|
-
({ ...
|
|
770
|
+
({ ...A });
|
|
709
771
|
// src/component/module/connector/connectorConfig.schema.ts
|
|
710
|
-
var _e =
|
|
772
|
+
var _e = O([
|
|
711
773
|
"abortOperation",
|
|
712
774
|
"auditObjectContent",
|
|
713
775
|
"closeStore",
|
|
@@ -727,43 +789,43 @@ var _e = T([
|
|
|
727
789
|
"retrieveChunks",
|
|
728
790
|
"retrieveRecords",
|
|
729
791
|
"upsertRecords"
|
|
730
|
-
]), ve =
|
|
792
|
+
]), ve = O([
|
|
731
793
|
"application",
|
|
732
794
|
"curatedDataset",
|
|
733
795
|
"database",
|
|
734
796
|
"fileStore"
|
|
735
|
-
]), ye = /* @__PURE__ */
|
|
797
|
+
]), ye = /* @__PURE__ */ C({ label: D }), be = O([
|
|
736
798
|
"apiEndpoint",
|
|
737
799
|
"file",
|
|
738
800
|
"table"
|
|
739
|
-
]), xe =
|
|
801
|
+
]), xe = O([
|
|
740
802
|
"bidirectional",
|
|
741
803
|
"destination",
|
|
742
804
|
"source",
|
|
743
805
|
"unknown"
|
|
744
|
-
]), Se = /* @__PURE__ */
|
|
745
|
-
authMethodId:
|
|
806
|
+
]), Se = /* @__PURE__ */ C({ label: D }), Ce = /* @__PURE__ */ C({
|
|
807
|
+
authMethodId: O([
|
|
746
808
|
"apiKey",
|
|
747
809
|
"disabled",
|
|
748
810
|
"oAuth2",
|
|
749
811
|
"none"
|
|
750
812
|
]),
|
|
751
|
-
activeConnectionCount: /* @__PURE__ */
|
|
752
|
-
canDescribe: /* @__PURE__ */
|
|
753
|
-
id: /* @__PURE__ */
|
|
754
|
-
label: /* @__PURE__ */
|
|
755
|
-
maxConnectionCount: /* @__PURE__ */
|
|
756
|
-
params: /* @__PURE__ */
|
|
757
|
-
}), we = /* @__PURE__ */
|
|
758
|
-
...
|
|
813
|
+
activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
|
|
814
|
+
canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
815
|
+
id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
816
|
+
label: /* @__PURE__ */ x(D),
|
|
817
|
+
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
818
|
+
params: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
819
|
+
}), we = /* @__PURE__ */ C({
|
|
820
|
+
...A,
|
|
759
821
|
typeId: /* @__PURE__ */ _("connector"),
|
|
760
822
|
actionNames: /* @__PURE__ */ h(_e),
|
|
761
|
-
category: /* @__PURE__ */
|
|
823
|
+
category: /* @__PURE__ */ y(ye),
|
|
762
824
|
categoryId: ve,
|
|
763
|
-
implementations: /* @__PURE__ */
|
|
825
|
+
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), Ce),
|
|
764
826
|
itemTypeId: be,
|
|
765
|
-
usage: /* @__PURE__ */
|
|
766
|
-
usageId: /* @__PURE__ */
|
|
827
|
+
usage: /* @__PURE__ */ y(Se),
|
|
828
|
+
usageId: /* @__PURE__ */ y(xe)
|
|
767
829
|
}), Te = {
|
|
768
830
|
arabic: {
|
|
769
831
|
id: "arabic",
|
|
@@ -1711,16 +1773,16 @@ var _e = T([
|
|
|
1711
1773
|
textDecoderId: "windows-1257",
|
|
1712
1774
|
iconvLiteDecoderId: "windows1257"
|
|
1713
1775
|
}
|
|
1714
|
-
},
|
|
1715
|
-
function
|
|
1716
|
-
return Object.hasOwn(
|
|
1776
|
+
}, j = Te, M = Ee;
|
|
1777
|
+
function De(e) {
|
|
1778
|
+
return Object.hasOwn(M, e);
|
|
1717
1779
|
}
|
|
1718
|
-
function
|
|
1719
|
-
return
|
|
1780
|
+
function Oe(e) {
|
|
1781
|
+
return De(e) ? M[e].textDecoderId ?? e : e;
|
|
1720
1782
|
}
|
|
1721
|
-
function
|
|
1722
|
-
return Array.from(Object.values(
|
|
1723
|
-
let o = t == null ? "" :
|
|
1783
|
+
function ke(e = "en") {
|
|
1784
|
+
return Array.from(Object.values(M), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
|
|
1785
|
+
let o = t == null ? "" : Ae(t, e);
|
|
1724
1786
|
return {
|
|
1725
1787
|
id: r,
|
|
1726
1788
|
groupLabel: o,
|
|
@@ -1732,62 +1794,62 @@ function Oe(e = "en") {
|
|
|
1732
1794
|
};
|
|
1733
1795
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
|
|
1734
1796
|
}
|
|
1735
|
-
function
|
|
1736
|
-
let n =
|
|
1797
|
+
function Ae(e, t) {
|
|
1798
|
+
let n = j[e].label;
|
|
1737
1799
|
return n[t] ?? n.en ?? e;
|
|
1738
1800
|
}
|
|
1739
1801
|
// src/errors/index.ts
|
|
1740
|
-
var
|
|
1802
|
+
var je = 2048, N = "[REDACTED]", Me = 10, P = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ne = [
|
|
1741
1803
|
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
|
|
1742
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
1804
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => P.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
|
|
1743
1805
|
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
|
|
1744
1806
|
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
|
|
1745
1807
|
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
|
|
1746
|
-
],
|
|
1808
|
+
], F = class extends Error {
|
|
1747
1809
|
data;
|
|
1748
1810
|
locator;
|
|
1749
1811
|
constructor(e, t, n, r) {
|
|
1750
1812
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
1751
1813
|
}
|
|
1752
|
-
},
|
|
1814
|
+
}, I = class extends F {
|
|
1753
1815
|
constructor(e, t, n, r) {
|
|
1754
1816
|
super(e, t, n, r), this.name = "AppError";
|
|
1755
1817
|
}
|
|
1756
|
-
},
|
|
1818
|
+
}, Pe = class extends F {
|
|
1757
1819
|
constructor(e, t, n, r) {
|
|
1758
1820
|
super(e, t, n, r), this.name = "APIError";
|
|
1759
1821
|
}
|
|
1760
|
-
},
|
|
1822
|
+
}, Fe = class extends F {
|
|
1761
1823
|
constructor(e, t, n, r) {
|
|
1762
1824
|
super(e, t, n, r), this.name = "EngineError";
|
|
1763
1825
|
}
|
|
1764
|
-
},
|
|
1826
|
+
}, Ie = class extends F {
|
|
1765
1827
|
constructor(e, t, n, r) {
|
|
1766
1828
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
1767
1829
|
}
|
|
1768
|
-
},
|
|
1830
|
+
}, L = class extends F {
|
|
1769
1831
|
constructor(e, t, n, r) {
|
|
1770
1832
|
super(e, t, n, r), this.name = "FetchError";
|
|
1771
1833
|
}
|
|
1772
1834
|
};
|
|
1773
|
-
async function
|
|
1835
|
+
async function Le(e, t, n) {
|
|
1774
1836
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
1775
1837
|
try {
|
|
1776
1838
|
a = await e.text();
|
|
1777
1839
|
} catch (e) {
|
|
1778
|
-
a = `<body unavailable: ${
|
|
1840
|
+
a = `<body unavailable: ${R(e).message}>`;
|
|
1779
1841
|
}
|
|
1780
|
-
return new
|
|
1842
|
+
return new L(i, n, { body: Ge(a) });
|
|
1781
1843
|
}
|
|
1782
|
-
function
|
|
1844
|
+
function Re(e) {
|
|
1783
1845
|
return e.map((e) => e.message).join(" ");
|
|
1784
1846
|
}
|
|
1785
|
-
function
|
|
1847
|
+
function ze(e) {
|
|
1786
1848
|
try {
|
|
1787
1849
|
e();
|
|
1788
1850
|
} catch {}
|
|
1789
1851
|
}
|
|
1790
|
-
function
|
|
1852
|
+
function R(e) {
|
|
1791
1853
|
if (e instanceof Error) return e;
|
|
1792
1854
|
if (typeof e == "string") return Error(e);
|
|
1793
1855
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
@@ -1799,24 +1861,24 @@ function L(e) {
|
|
|
1799
1861
|
}
|
|
1800
1862
|
return /* @__PURE__ */ Error("Unknown error");
|
|
1801
1863
|
}
|
|
1802
|
-
function
|
|
1803
|
-
let t = /* @__PURE__ */ new Set(), n = [], r =
|
|
1864
|
+
function Be(e) {
|
|
1865
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = R(e);
|
|
1804
1866
|
for (; r != null && !t.has(r);) {
|
|
1805
1867
|
t.add(r);
|
|
1806
|
-
let [e, i] =
|
|
1868
|
+
let [e, i] = Ke(r), a = We(e);
|
|
1807
1869
|
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
1808
1870
|
}
|
|
1809
1871
|
return n;
|
|
1810
1872
|
}
|
|
1811
|
-
function
|
|
1873
|
+
function Ve(e) {
|
|
1812
1874
|
let t;
|
|
1813
1875
|
for (let n of e.toReversed()) {
|
|
1814
|
-
let e =
|
|
1876
|
+
let e = Ue(n, t);
|
|
1815
1877
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
1816
1878
|
}
|
|
1817
1879
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
1818
1880
|
}
|
|
1819
|
-
function
|
|
1881
|
+
function He(e) {
|
|
1820
1882
|
let t;
|
|
1821
1883
|
try {
|
|
1822
1884
|
t = JSON.stringify(e);
|
|
@@ -1825,13 +1887,13 @@ function Ve(e) {
|
|
|
1825
1887
|
}
|
|
1826
1888
|
return t === "" && (t = "Unknown error"), t;
|
|
1827
1889
|
}
|
|
1828
|
-
function
|
|
1890
|
+
function Ue(e, t) {
|
|
1829
1891
|
switch (e.name) {
|
|
1830
|
-
case "APIError": return new
|
|
1831
|
-
case "AppError": return new
|
|
1832
|
-
case "ConnectorError": return new
|
|
1833
|
-
case "EngineError": return new
|
|
1834
|
-
case "FetchError": return new
|
|
1892
|
+
case "APIError": return new Pe(e.message, e.locator, e.data, { cause: t });
|
|
1893
|
+
case "AppError": return new I(e.message, e.locator, e.data, { cause: t });
|
|
1894
|
+
case "ConnectorError": return new Ie(e.message, e.locator, e.data, { cause: t });
|
|
1895
|
+
case "EngineError": return new Fe(e.message, e.locator, e.data, { cause: t });
|
|
1896
|
+
case "FetchError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
1835
1897
|
default: {
|
|
1836
1898
|
let n = e.name;
|
|
1837
1899
|
return new class extends Error {
|
|
@@ -1840,29 +1902,29 @@ function He(e, t) {
|
|
|
1840
1902
|
}
|
|
1841
1903
|
}
|
|
1842
1904
|
}
|
|
1843
|
-
function
|
|
1905
|
+
function We(e) {
|
|
1844
1906
|
let { data: t, message: n, stack: r } = e;
|
|
1845
1907
|
return {
|
|
1846
1908
|
...e,
|
|
1847
|
-
data: t === void 0 ? void 0 :
|
|
1848
|
-
message:
|
|
1849
|
-
stack: r === void 0 ? void 0 :
|
|
1909
|
+
data: t === void 0 ? void 0 : B(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
1910
|
+
message: z(n),
|
|
1911
|
+
stack: r === void 0 ? void 0 : z(r)
|
|
1850
1912
|
};
|
|
1851
1913
|
}
|
|
1852
|
-
function
|
|
1914
|
+
function z(e) {
|
|
1853
1915
|
let t = e;
|
|
1854
|
-
for (let [e, n] of
|
|
1916
|
+
for (let [e, n] of Ne) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
1855
1917
|
return t;
|
|
1856
1918
|
}
|
|
1857
|
-
function
|
|
1858
|
-
return typeof e == "string" ?
|
|
1859
|
-
}
|
|
1860
|
-
function We(e) {
|
|
1861
|
-
if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
|
|
1919
|
+
function B(e, t, n) {
|
|
1920
|
+
return typeof e == "string" ? z(e) : typeof e != "object" || !e ? e : n >= Me ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => B(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && P.test(e) ? N : B(r, t, n + 1)])));
|
|
1862
1921
|
}
|
|
1863
1922
|
function Ge(e) {
|
|
1864
|
-
|
|
1865
|
-
|
|
1923
|
+
if (e != null && e !== "") return e.length > je ? `${e.slice(0, je)}... [truncated]` : e;
|
|
1924
|
+
}
|
|
1925
|
+
function Ke(e) {
|
|
1926
|
+
let t = e.cause == null ? null : R(e.cause);
|
|
1927
|
+
if (e instanceof F) return [{
|
|
1866
1928
|
data: e.data,
|
|
1867
1929
|
locator: e.locator,
|
|
1868
1930
|
message: e.message,
|
|
@@ -1879,12 +1941,12 @@ function Ge(e) {
|
|
|
1879
1941
|
}, t] : [{
|
|
1880
1942
|
data: n,
|
|
1881
1943
|
locator: "",
|
|
1882
|
-
message:
|
|
1944
|
+
message: He(e),
|
|
1883
1945
|
name: "Error",
|
|
1884
1946
|
stack: void 0
|
|
1885
1947
|
}, null];
|
|
1886
1948
|
}
|
|
1887
|
-
var
|
|
1949
|
+
var qe = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(O([
|
|
1888
1950
|
"arrow",
|
|
1889
1951
|
"avro",
|
|
1890
1952
|
"dtv",
|
|
@@ -1897,15 +1959,15 @@ var Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h
|
|
|
1897
1959
|
"sqlite",
|
|
1898
1960
|
"xlsx",
|
|
1899
1961
|
"xml"
|
|
1900
|
-
])), /* @__PURE__ */ f(1)) }),
|
|
1901
|
-
...
|
|
1962
|
+
])), /* @__PURE__ */ f(1)) }), Je = /* @__PURE__ */ h(/* @__PURE__ */ w()), Ye = /* @__PURE__ */ C({
|
|
1963
|
+
...A,
|
|
1902
1964
|
typeId: /* @__PURE__ */ _("tool"),
|
|
1903
|
-
actionNames: /* @__PURE__ */
|
|
1904
|
-
parser: /* @__PURE__ */
|
|
1965
|
+
actionNames: /* @__PURE__ */ x(Je),
|
|
1966
|
+
parser: /* @__PURE__ */ x(qe)
|
|
1905
1967
|
});
|
|
1906
1968
|
// src/component/module/tool/delimitedText.ts
|
|
1907
|
-
async function
|
|
1908
|
-
let r =
|
|
1969
|
+
async function Xe(e, t, n) {
|
|
1970
|
+
let r = Ze(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Qe(e, t.valueDelimiterIds, t.isComplete, n);
|
|
1909
1971
|
return {
|
|
1910
1972
|
issues: i,
|
|
1911
1973
|
parsedRecords: a,
|
|
@@ -1913,16 +1975,16 @@ async function Ye(e, t, n) {
|
|
|
1913
1975
|
valueDelimiterId: o
|
|
1914
1976
|
};
|
|
1915
1977
|
}
|
|
1916
|
-
function
|
|
1978
|
+
function Ze(e) {
|
|
1917
1979
|
let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
|
|
1918
1980
|
return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
|
|
1919
1981
|
}
|
|
1920
|
-
async function
|
|
1982
|
+
async function Qe(e, t, n, r) {
|
|
1921
1983
|
let i, a, o, s = [], c, l = !1;
|
|
1922
1984
|
for (let u of t) {
|
|
1923
1985
|
let { issues: t, records: d } = await r(e, u, n);
|
|
1924
1986
|
if (t.length > 0) {
|
|
1925
|
-
c =
|
|
1987
|
+
c = $e(c, {
|
|
1926
1988
|
delimiter: u,
|
|
1927
1989
|
issues: t,
|
|
1928
1990
|
records: d
|
|
@@ -1930,7 +1992,7 @@ async function Ze(e, t, n, r) {
|
|
|
1930
1992
|
continue;
|
|
1931
1993
|
}
|
|
1932
1994
|
if (l = !0, d.length === 0) continue;
|
|
1933
|
-
let { averageValueCount: f, sumOfValueCountDiffs: p } =
|
|
1995
|
+
let { averageValueCount: f, sumOfValueCountDiffs: p } = et(d);
|
|
1934
1996
|
(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
|
|
1935
1997
|
}
|
|
1936
1998
|
if (!l && c != null) {
|
|
@@ -1938,19 +2000,19 @@ async function Ze(e, t, n, r) {
|
|
|
1938
2000
|
return {
|
|
1939
2001
|
issues: t,
|
|
1940
2002
|
parsedRecords: n,
|
|
1941
|
-
valueDelimiterId:
|
|
2003
|
+
valueDelimiterId: V(n) ? e : void 0
|
|
1942
2004
|
};
|
|
1943
2005
|
}
|
|
1944
2006
|
return {
|
|
1945
2007
|
issues: [],
|
|
1946
2008
|
parsedRecords: s,
|
|
1947
|
-
valueDelimiterId: i != null &&
|
|
2009
|
+
valueDelimiterId: i != null && V(s) ? i : void 0
|
|
1948
2010
|
};
|
|
1949
2011
|
}
|
|
1950
|
-
function
|
|
2012
|
+
function $e(e, t) {
|
|
1951
2013
|
return e == null || t.issues.length < e.issues.length ? t : e;
|
|
1952
2014
|
}
|
|
1953
|
-
function
|
|
2015
|
+
function et(e) {
|
|
1954
2016
|
let t = 0, n = 0, r;
|
|
1955
2017
|
for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
|
|
1956
2018
|
return {
|
|
@@ -1958,39 +2020,39 @@ function $e(e) {
|
|
|
1958
2020
|
sumOfValueCountDiffs: n
|
|
1959
2021
|
};
|
|
1960
2022
|
}
|
|
1961
|
-
function
|
|
2023
|
+
function V(e) {
|
|
1962
2024
|
let t = /* @__PURE__ */ new Map();
|
|
1963
2025
|
for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
|
|
1964
2026
|
let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
|
|
1965
2027
|
return n > 1 && r * 2 > e.length;
|
|
1966
2028
|
}
|
|
1967
2029
|
// src/component/module/tool/index.ts
|
|
1968
|
-
var
|
|
1969
|
-
function
|
|
2030
|
+
var tt = "https://engine-eu.dpuse.app/tools", nt = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
|
|
2031
|
+
function U(e, t) {
|
|
1970
2032
|
return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
|
|
1971
2033
|
}
|
|
1972
|
-
function
|
|
1973
|
-
let r =
|
|
2034
|
+
function W(e, t, n) {
|
|
2035
|
+
let r = U(e, t), [i] = r;
|
|
1974
2036
|
if (i === void 0) {
|
|
1975
2037
|
let n = {
|
|
1976
2038
|
availableToolIds: e.map((e) => e.id),
|
|
1977
2039
|
dataFormatId: t
|
|
1978
2040
|
};
|
|
1979
|
-
throw new
|
|
2041
|
+
throw new I(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
|
|
1980
2042
|
}
|
|
1981
|
-
let a =
|
|
2043
|
+
let a = nt[t];
|
|
1982
2044
|
return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
|
|
1983
2045
|
}
|
|
1984
|
-
async function
|
|
1985
|
-
let n = `${
|
|
2046
|
+
async function rt(e, t) {
|
|
2047
|
+
let n = `${H}${t}`, r = e.find((e) => e.id === n);
|
|
1986
2048
|
if (!r) {
|
|
1987
2049
|
let r = {
|
|
1988
2050
|
availableToolIds: e.map((e) => e.id),
|
|
1989
2051
|
toolName: n
|
|
1990
2052
|
};
|
|
1991
|
-
throw new
|
|
2053
|
+
throw new I(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
1992
2054
|
}
|
|
1993
|
-
let i = `${
|
|
2055
|
+
let i = `${tt}/${t}_v${r.version}/${n}.es.js`;
|
|
1994
2056
|
try {
|
|
1995
2057
|
return new (await (import(
|
|
1996
2058
|
/* @vite-ignore */
|
|
@@ -2002,21 +2064,21 @@ async function W(e, t) {
|
|
|
2002
2064
|
url: i,
|
|
2003
2065
|
version: r.version
|
|
2004
2066
|
};
|
|
2005
|
-
throw new
|
|
2067
|
+
throw new I(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
2006
2068
|
}
|
|
2007
2069
|
}
|
|
2008
2070
|
// src/component/module/connector/objectParsing.ts
|
|
2009
|
-
var
|
|
2010
|
-
async function
|
|
2011
|
-
let { asAt: t,
|
|
2012
|
-
if (
|
|
2071
|
+
var it = "\n", G = ",", at = 13, K = 10, ot = 34, q = 1048576;
|
|
2072
|
+
async function st(e) {
|
|
2073
|
+
let { asAt: t, declaredColumnConfigs: n, declaredReadingConfig: r, filePreview: i, inferDataTypes: a, parserId: o, startedAt: s, toolConfigs: c } = e, { dataFormatId: l, text: u } = i, d = r?.valueDelimiterId ?? e.valueDelimiterId, f = r != null, p = i.bytes.length;
|
|
2074
|
+
if (p === 0) return {
|
|
2013
2075
|
contentAuditConfig: J({
|
|
2014
2076
|
asAt: t,
|
|
2015
2077
|
columns: [],
|
|
2016
2078
|
isComplete: !0,
|
|
2017
2079
|
recordCount: 0,
|
|
2018
|
-
size:
|
|
2019
|
-
startedAt:
|
|
2080
|
+
size: p,
|
|
2081
|
+
startedAt: s
|
|
2020
2082
|
}),
|
|
2021
2083
|
sampleConfig: {
|
|
2022
2084
|
issues: [{
|
|
@@ -2039,74 +2101,77 @@ async function at(e) {
|
|
|
2039
2101
|
encodingId: void 0,
|
|
2040
2102
|
fileType: void 0,
|
|
2041
2103
|
hasHeaders: !1,
|
|
2104
|
+
isDeclared: f,
|
|
2042
2105
|
parserId: void 0,
|
|
2043
|
-
recordDelimiterId:
|
|
2106
|
+
recordDelimiterId: it,
|
|
2044
2107
|
valueDelimiterId: G
|
|
2045
2108
|
}
|
|
2046
2109
|
};
|
|
2047
|
-
if (
|
|
2110
|
+
if (l == null || u == null || U(c, l).length === 0) return {
|
|
2048
2111
|
contentAuditConfig: J({
|
|
2049
2112
|
asAt: t,
|
|
2050
2113
|
columns: [],
|
|
2051
|
-
isComplete:
|
|
2114
|
+
isComplete: i.isComplete,
|
|
2052
2115
|
recordCount: 0,
|
|
2053
|
-
size:
|
|
2054
|
-
startedAt:
|
|
2116
|
+
size: p,
|
|
2117
|
+
startedAt: s
|
|
2055
2118
|
}),
|
|
2056
2119
|
sampleConfig: {
|
|
2057
2120
|
issues: [],
|
|
2058
2121
|
parsedRecords: [],
|
|
2059
|
-
size:
|
|
2060
|
-
text:
|
|
2122
|
+
size: p,
|
|
2123
|
+
text: u
|
|
2061
2124
|
},
|
|
2062
2125
|
readingConfig: {
|
|
2063
|
-
dataFormatId:
|
|
2064
|
-
encodingConfidenceLevel:
|
|
2065
|
-
encodingId:
|
|
2066
|
-
fileType:
|
|
2126
|
+
dataFormatId: l ?? "unknown",
|
|
2127
|
+
encodingConfidenceLevel: i.encodingConfidenceLevel,
|
|
2128
|
+
encodingId: i.encodingId,
|
|
2129
|
+
fileType: i.fileTypeConfig,
|
|
2067
2130
|
hasHeaders: void 0,
|
|
2131
|
+
isDeclared: f,
|
|
2068
2132
|
parserId: void 0,
|
|
2069
2133
|
recordDelimiterId: void 0,
|
|
2070
2134
|
valueDelimiterId: void 0
|
|
2071
2135
|
}
|
|
2072
2136
|
};
|
|
2073
|
-
let { parser:
|
|
2074
|
-
dataFormatId:
|
|
2075
|
-
isComplete:
|
|
2076
|
-
valueDelimiterIds:
|
|
2077
|
-
}),
|
|
2078
|
-
dataFormatId:
|
|
2079
|
-
isComplete:
|
|
2137
|
+
let { parser: m, parserId: h } = await Y(c, l, o), g = d == null ? k.map(({ id: e }) => e) : [d], _ = await m.parseText(u, {
|
|
2138
|
+
dataFormatId: l,
|
|
2139
|
+
isComplete: i.isComplete,
|
|
2140
|
+
valueDelimiterIds: g
|
|
2141
|
+
}), v = l === "dtv", y = v && d == null && _.valueDelimiterId == null ? await m.parseText(u, {
|
|
2142
|
+
dataFormatId: l,
|
|
2143
|
+
isComplete: i.isComplete,
|
|
2080
2144
|
valueDelimiterIds: [G]
|
|
2081
|
-
}) :
|
|
2145
|
+
}) : _, b = a(y.parsedRecords, r?.hasHeaders, n);
|
|
2082
2146
|
return {
|
|
2083
2147
|
contentAuditConfig: J({
|
|
2084
2148
|
asAt: t,
|
|
2085
|
-
columns:
|
|
2086
|
-
isComplete:
|
|
2087
|
-
recordCount: Math.max(0,
|
|
2088
|
-
size:
|
|
2089
|
-
startedAt:
|
|
2149
|
+
columns: b.columnConfigs,
|
|
2150
|
+
isComplete: i.isComplete,
|
|
2151
|
+
recordCount: Math.max(0, y.parsedRecords.length - +!!b.hasHeaders),
|
|
2152
|
+
size: p,
|
|
2153
|
+
startedAt: s
|
|
2090
2154
|
}),
|
|
2091
2155
|
sampleConfig: {
|
|
2092
|
-
issues:
|
|
2093
|
-
parsedRecords:
|
|
2094
|
-
size:
|
|
2095
|
-
text:
|
|
2156
|
+
issues: y.issues,
|
|
2157
|
+
parsedRecords: y.parsedRecords,
|
|
2158
|
+
size: p,
|
|
2159
|
+
text: u
|
|
2096
2160
|
},
|
|
2097
2161
|
readingConfig: {
|
|
2098
|
-
dataFormatId:
|
|
2099
|
-
encodingConfidenceLevel:
|
|
2100
|
-
encodingId:
|
|
2101
|
-
fileType:
|
|
2102
|
-
hasHeaders:
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2162
|
+
dataFormatId: l,
|
|
2163
|
+
encodingConfidenceLevel: i.encodingConfidenceLevel,
|
|
2164
|
+
encodingId: i.encodingId,
|
|
2165
|
+
fileType: i.fileTypeConfig,
|
|
2166
|
+
hasHeaders: b.hasHeaders,
|
|
2167
|
+
isDeclared: f,
|
|
2168
|
+
parserId: h,
|
|
2169
|
+
recordDelimiterId: y.recordDelimiterId,
|
|
2170
|
+
valueDelimiterId: v ? d ?? y.valueDelimiterId ?? G : y.valueDelimiterId
|
|
2106
2171
|
}
|
|
2107
2172
|
};
|
|
2108
2173
|
}
|
|
2109
|
-
async function
|
|
2174
|
+
async function ct(e) {
|
|
2110
2175
|
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
2111
2176
|
return await o.parseStream(i, {
|
|
2112
2177
|
abortSignal: r,
|
|
@@ -2116,31 +2181,31 @@ async function ot(e) {
|
|
|
2116
2181
|
valueDelimiterId: n.valueDelimiterId
|
|
2117
2182
|
}, t);
|
|
2118
2183
|
}
|
|
2119
|
-
async function
|
|
2120
|
-
let { constructColumnAuditor: t,
|
|
2121
|
-
abortSignal:
|
|
2122
|
-
chunkSize:
|
|
2123
|
-
dataFormatId:
|
|
2124
|
-
encodingId:
|
|
2125
|
-
valueDelimiterId:
|
|
2184
|
+
async function lt(e) {
|
|
2185
|
+
let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, c = Date.now(), l = performance.now(), u = t(i.hasHeaders, n), { parser: d } = await Y(s, i.dataFormatId, i.parserId), f = ft(o), p = ut(f.stream, i), m = await d.parseStream(p.stream, {
|
|
2186
|
+
abortSignal: a,
|
|
2187
|
+
chunkSize: i.chunkSize,
|
|
2188
|
+
dataFormatId: i.dataFormatId,
|
|
2189
|
+
encodingId: i.encodingId,
|
|
2190
|
+
valueDelimiterId: i.valueDelimiterId
|
|
2126
2191
|
}, (e, t) => {
|
|
2127
|
-
|
|
2128
|
-
}), { columnConfigs:
|
|
2192
|
+
u.auditRecords(t), r(t.length, p.byteCount());
|
|
2193
|
+
}), { columnConfigs: h, hasHeaders: g } = u.completeAudit();
|
|
2129
2194
|
return {
|
|
2130
2195
|
contentAuditConfig: {
|
|
2131
|
-
asAt:
|
|
2132
|
-
byteCount:
|
|
2133
|
-
columns:
|
|
2134
|
-
commentLineCount:
|
|
2135
|
-
duration: performance.now() -
|
|
2136
|
-
emptyLineCount:
|
|
2137
|
-
invalidFieldLengthCount:
|
|
2138
|
-
isComplete:
|
|
2139
|
-
lineCount:
|
|
2140
|
-
recordCount: Math.max(0,
|
|
2141
|
-
sourceWaitDuration:
|
|
2196
|
+
asAt: c,
|
|
2197
|
+
byteCount: p.byteCount(),
|
|
2198
|
+
columns: h,
|
|
2199
|
+
commentLineCount: m.commentLineCount,
|
|
2200
|
+
duration: performance.now() - l,
|
|
2201
|
+
emptyLineCount: m.emptyLineCount,
|
|
2202
|
+
invalidFieldLengthCount: m.nonUniformRecordCount,
|
|
2203
|
+
isComplete: p.isComplete(),
|
|
2204
|
+
lineCount: m.lineCount,
|
|
2205
|
+
recordCount: Math.max(0, m.recordCount - +!!g),
|
|
2206
|
+
sourceWaitDuration: f.waitDuration()
|
|
2142
2207
|
},
|
|
2143
|
-
hasHeaders:
|
|
2208
|
+
hasHeaders: g
|
|
2144
2209
|
};
|
|
2145
2210
|
}
|
|
2146
2211
|
function J(e) {
|
|
@@ -2159,8 +2224,8 @@ function J(e) {
|
|
|
2159
2224
|
sourceWaitDuration: void 0
|
|
2160
2225
|
};
|
|
2161
2226
|
}
|
|
2162
|
-
function
|
|
2163
|
-
let n = e.getReader(), r =
|
|
2227
|
+
function ut(e, t) {
|
|
2228
|
+
let n = e.getReader(), r = dt(t.encodingId), i = 0, a = !1, o;
|
|
2164
2229
|
return {
|
|
2165
2230
|
byteCount: () => i,
|
|
2166
2231
|
isComplete: () => a,
|
|
@@ -2186,19 +2251,19 @@ function ct(e, t) {
|
|
|
2186
2251
|
}, { highWaterMark: 0 })
|
|
2187
2252
|
};
|
|
2188
2253
|
}
|
|
2189
|
-
function
|
|
2190
|
-
let t =
|
|
2254
|
+
function dt(e) {
|
|
2255
|
+
let t = Oe(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2191
2256
|
return (e, t, o) => {
|
|
2192
2257
|
for (let s = 0; s < e.length; s++) {
|
|
2193
2258
|
let c = e[s];
|
|
2194
|
-
if ((c ===
|
|
2195
|
-
if (c ===
|
|
2259
|
+
if ((c === ot || c === K || c === at) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2260
|
+
if (c === ot) a = !a;
|
|
2196
2261
|
else if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;
|
|
2197
2262
|
}
|
|
2198
2263
|
}
|
|
2199
2264
|
};
|
|
2200
2265
|
}
|
|
2201
|
-
function
|
|
2266
|
+
function ft(e) {
|
|
2202
2267
|
let t = e.getReader(), n = 0;
|
|
2203
2268
|
return {
|
|
2204
2269
|
stream: new ReadableStream({
|
|
@@ -2214,14 +2279,95 @@ function ut(e) {
|
|
|
2214
2279
|
};
|
|
2215
2280
|
}
|
|
2216
2281
|
async function Y(e, t, n) {
|
|
2217
|
-
let r =
|
|
2282
|
+
let r = W(e, t, n);
|
|
2218
2283
|
return {
|
|
2219
|
-
parser: await
|
|
2284
|
+
parser: await rt(e, r.id.slice(H.length)),
|
|
2220
2285
|
parserId: r.id
|
|
2221
2286
|
};
|
|
2222
2287
|
}
|
|
2288
|
+
var pt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
2289
|
+
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2290
|
+
name: /* @__PURE__ */ w(),
|
|
2291
|
+
title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2292
|
+
type: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
2293
|
+
})) }), mt = /* @__PURE__ */ v({
|
|
2294
|
+
delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2295
|
+
header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
2296
|
+
headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
|
|
2297
|
+
}), ht = {
|
|
2298
|
+
boolean: {
|
|
2299
|
+
dataSubtypeId: void 0,
|
|
2300
|
+
dataTypeId: "boolean"
|
|
2301
|
+
},
|
|
2302
|
+
date: {
|
|
2303
|
+
dataSubtypeId: "date",
|
|
2304
|
+
dataTypeId: "temporal"
|
|
2305
|
+
},
|
|
2306
|
+
datetime: {
|
|
2307
|
+
dataSubtypeId: "dateTime",
|
|
2308
|
+
dataTypeId: "temporal"
|
|
2309
|
+
},
|
|
2310
|
+
integer: {
|
|
2311
|
+
dataSubtypeId: "integer",
|
|
2312
|
+
dataTypeId: "numeric"
|
|
2313
|
+
},
|
|
2314
|
+
number: {
|
|
2315
|
+
dataSubtypeId: "decimal",
|
|
2316
|
+
dataTypeId: "numeric"
|
|
2317
|
+
},
|
|
2318
|
+
string: {
|
|
2319
|
+
dataSubtypeId: "plain",
|
|
2320
|
+
dataTypeId: "string"
|
|
2321
|
+
},
|
|
2322
|
+
time: {
|
|
2323
|
+
dataSubtypeId: "time",
|
|
2324
|
+
dataTypeId: "temporal"
|
|
2325
|
+
},
|
|
2326
|
+
year: {
|
|
2327
|
+
dataSubtypeId: "integer",
|
|
2328
|
+
dataTypeId: "numeric"
|
|
2329
|
+
}
|
|
2330
|
+
}, gt = {
|
|
2331
|
+
email: "email",
|
|
2332
|
+
uri: "url",
|
|
2333
|
+
uuid: "uuid"
|
|
2334
|
+
};
|
|
2335
|
+
function _t(e) {
|
|
2336
|
+
let t = /* @__PURE__ */ E(pt, e.schema);
|
|
2337
|
+
if (!t.success) throw new I("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2338
|
+
let n = /* @__PURE__ */ E(mt, e.dialect ?? {});
|
|
2339
|
+
if (!n.success) throw new I("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2340
|
+
let r = t.output.fields.map((e) => {
|
|
2341
|
+
let t = vt(e.type, e.format);
|
|
2342
|
+
return {
|
|
2343
|
+
name: e.name,
|
|
2344
|
+
label: e.title,
|
|
2345
|
+
dataTypeId: t.dataTypeId,
|
|
2346
|
+
dataSubtypeId: t.dataSubtypeId
|
|
2347
|
+
};
|
|
2348
|
+
}), { delimiter: i = ",", header: a = !0, headerRows: o = [1] } = n.output;
|
|
2349
|
+
return {
|
|
2350
|
+
declaredColumnConfigs: r,
|
|
2351
|
+
declaredReadingConfig: {
|
|
2352
|
+
dataFormatId: "dtv",
|
|
2353
|
+
encodingId: e.encoding?.toLowerCase(),
|
|
2354
|
+
hasHeaders: a && o.length > 0,
|
|
2355
|
+
valueDelimiterId: k.find(({ character: e }) => e === i)?.id
|
|
2356
|
+
}
|
|
2357
|
+
};
|
|
2358
|
+
}
|
|
2359
|
+
function vt(e, t) {
|
|
2360
|
+
let n = e == null ? void 0 : ht[e];
|
|
2361
|
+
return n == null ? {
|
|
2362
|
+
dataSubtypeId: void 0,
|
|
2363
|
+
dataTypeId: void 0
|
|
2364
|
+
} : t == null || n.dataTypeId !== "string" ? n : {
|
|
2365
|
+
dataSubtypeId: gt[t] ?? "plain",
|
|
2366
|
+
dataTypeId: "string"
|
|
2367
|
+
};
|
|
2368
|
+
}
|
|
2223
2369
|
// src/component/module/connector/index.ts
|
|
2224
|
-
var
|
|
2370
|
+
var yt = [
|
|
2225
2371
|
{
|
|
2226
2372
|
id: "application",
|
|
2227
2373
|
label: {
|
|
@@ -2250,7 +2396,7 @@ var dt = [
|
|
|
2250
2396
|
es: "Almacén de Archivos"
|
|
2251
2397
|
}
|
|
2252
2398
|
}
|
|
2253
|
-
],
|
|
2399
|
+
], bt = [
|
|
2254
2400
|
{
|
|
2255
2401
|
id: "apiEndpoint",
|
|
2256
2402
|
label: {
|
|
@@ -2272,7 +2418,7 @@ var dt = [
|
|
|
2272
2418
|
es: "Tabla"
|
|
2273
2419
|
}
|
|
2274
2420
|
}
|
|
2275
|
-
],
|
|
2421
|
+
], xt = {
|
|
2276
2422
|
abortOperation: "Abort Operation",
|
|
2277
2423
|
auditObjectContent: "Audit Object Content",
|
|
2278
2424
|
closeStore: "Close Store",
|
|
@@ -2292,7 +2438,7 @@ var dt = [
|
|
|
2292
2438
|
retrieveChunks: "Retrieve Chunks",
|
|
2293
2439
|
retrieveRecords: "Retrieve Records",
|
|
2294
2440
|
upsertRecords: "Upsert Records"
|
|
2295
|
-
},
|
|
2441
|
+
}, St = [
|
|
2296
2442
|
{
|
|
2297
2443
|
id: "bidirectional",
|
|
2298
2444
|
label: {
|
|
@@ -2321,13 +2467,13 @@ var dt = [
|
|
|
2321
2467
|
es: "Desconocido"
|
|
2322
2468
|
}
|
|
2323
2469
|
}
|
|
2324
|
-
],
|
|
2470
|
+
], Ct = /* @__PURE__ */ new Set([
|
|
2325
2471
|
"createObject",
|
|
2326
2472
|
"dropObject",
|
|
2327
2473
|
"loadObjectRecords",
|
|
2328
2474
|
"removeRecords",
|
|
2329
2475
|
"upsertRecords"
|
|
2330
|
-
]),
|
|
2476
|
+
]), wt = /* @__PURE__ */ new Set([
|
|
2331
2477
|
"auditObjectContent",
|
|
2332
2478
|
"findObject",
|
|
2333
2479
|
"getInfo",
|
|
@@ -2339,13 +2485,13 @@ var dt = [
|
|
|
2339
2485
|
"retrieveChunks",
|
|
2340
2486
|
"retrieveRecords"
|
|
2341
2487
|
]);
|
|
2342
|
-
function
|
|
2488
|
+
function Tt(e) {
|
|
2343
2489
|
let t = !1, n = !1;
|
|
2344
|
-
for (let r of e)
|
|
2490
|
+
for (let r of e) wt.has(r) && (t = !0), Ct.has(r) && (n = !0);
|
|
2345
2491
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2346
2492
|
}
|
|
2347
|
-
var
|
|
2348
|
-
let i =
|
|
2493
|
+
var Et = (e, t = "en") => {
|
|
2494
|
+
let i = yt.find((t) => t.id === e);
|
|
2349
2495
|
return i ? {
|
|
2350
2496
|
label: r(n(i.label), t) ?? i.id,
|
|
2351
2497
|
description: ""
|
|
@@ -2353,8 +2499,8 @@ var vt = (e, t = "en") => {
|
|
|
2353
2499
|
label: e,
|
|
2354
2500
|
description: ""
|
|
2355
2501
|
};
|
|
2356
|
-
},
|
|
2357
|
-
let i =
|
|
2502
|
+
}, Dt = (e, t = "en") => {
|
|
2503
|
+
let i = bt.find((t) => t.id === e);
|
|
2358
2504
|
return i ? {
|
|
2359
2505
|
label: r(n(i.label), t) ?? i.id,
|
|
2360
2506
|
description: ""
|
|
@@ -2362,8 +2508,8 @@ var vt = (e, t = "en") => {
|
|
|
2362
2508
|
label: e,
|
|
2363
2509
|
description: ""
|
|
2364
2510
|
};
|
|
2365
|
-
},
|
|
2366
|
-
let i =
|
|
2511
|
+
}, Ot = (e, t = "en") => {
|
|
2512
|
+
let i = St.find((t) => t.id === e);
|
|
2367
2513
|
return i ? {
|
|
2368
2514
|
label: r(n(i.label), t) ?? i.id,
|
|
2369
2515
|
description: ""
|
|
@@ -2372,30 +2518,30 @@ var vt = (e, t = "en") => {
|
|
|
2372
2518
|
description: ""
|
|
2373
2519
|
};
|
|
2374
2520
|
};
|
|
2375
|
-
function
|
|
2521
|
+
function kt(e) {
|
|
2376
2522
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2377
2523
|
n += "|:----|:-------:|\n";
|
|
2378
|
-
for (let e of Object.keys(
|
|
2524
|
+
for (let e of Object.keys(xt)) n += `| ${xt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2379
2525
|
return n;
|
|
2380
2526
|
}
|
|
2381
2527
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2382
|
-
var
|
|
2383
|
-
...
|
|
2528
|
+
var At = O(["list"]), jt = /* @__PURE__ */ C({
|
|
2529
|
+
...A,
|
|
2384
2530
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2385
|
-
actionNames: /* @__PURE__ */ h(
|
|
2386
|
-
recipes: /* @__PURE__ */ h(
|
|
2387
|
-
}),
|
|
2531
|
+
actionNames: /* @__PURE__ */ h(At),
|
|
2532
|
+
recipes: /* @__PURE__ */ h(ce)
|
|
2533
|
+
}), Mt = O([
|
|
2388
2534
|
"list",
|
|
2389
2535
|
"render",
|
|
2390
2536
|
"setColorMode"
|
|
2391
|
-
]),
|
|
2392
|
-
...
|
|
2537
|
+
]), Nt = /* @__PURE__ */ C({
|
|
2538
|
+
...A,
|
|
2393
2539
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2394
|
-
actionNames: /* @__PURE__ */ h(
|
|
2395
|
-
presentations: /* @__PURE__ */ h(
|
|
2396
|
-
}),
|
|
2397
|
-
async function
|
|
2398
|
-
let i = e.id, a = `${
|
|
2540
|
+
actionNames: /* @__PURE__ */ h(Mt),
|
|
2541
|
+
presentations: /* @__PURE__ */ h(ce)
|
|
2542
|
+
}), Pt = "https://engine-eu.dpuse.app/presenters";
|
|
2543
|
+
async function Ft(e, t, n, r) {
|
|
2544
|
+
let i = e.id, a = `${Pt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2399
2545
|
try {
|
|
2400
2546
|
return new (await (import(
|
|
2401
2547
|
/* @vite-ignore */
|
|
@@ -2407,11 +2553,11 @@ async function Dt(e, t, n, r) {
|
|
|
2407
2553
|
url: a,
|
|
2408
2554
|
version: e.version
|
|
2409
2555
|
};
|
|
2410
|
-
throw new
|
|
2556
|
+
throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
2411
2557
|
}
|
|
2412
2558
|
}
|
|
2413
2559
|
// src/locale/index.ts
|
|
2414
|
-
function
|
|
2560
|
+
function It(e, t) {
|
|
2415
2561
|
return {
|
|
2416
2562
|
...e,
|
|
2417
2563
|
label: e.label[t] ?? e.id,
|
|
@@ -2419,7 +2565,7 @@ function Ot(e, t) {
|
|
|
2419
2565
|
verb: e.verb?.[t] ?? void 0
|
|
2420
2566
|
};
|
|
2421
2567
|
}
|
|
2422
|
-
function
|
|
2568
|
+
function Lt(e, t, n = !1) {
|
|
2423
2569
|
let r = e.map((e) => ({
|
|
2424
2570
|
...e,
|
|
2425
2571
|
label: e.label[t] ?? e.id,
|
|
@@ -2428,7 +2574,7 @@ function kt(e, t, n = !1) {
|
|
|
2428
2574
|
}));
|
|
2429
2575
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2430
2576
|
}
|
|
2431
|
-
function
|
|
2577
|
+
function Rt(e, t) {
|
|
2432
2578
|
return {
|
|
2433
2579
|
...e,
|
|
2434
2580
|
label: e.label[t] ?? e.id,
|
|
@@ -2436,7 +2582,7 @@ function At(e, t) {
|
|
|
2436
2582
|
};
|
|
2437
2583
|
}
|
|
2438
2584
|
// src/utilities/index.ts
|
|
2439
|
-
var
|
|
2585
|
+
var zt = /* @__PURE__ */ new Map([
|
|
2440
2586
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2441
2587
|
["avro", "application/vnd.apache.avro"],
|
|
2442
2588
|
["bin", "application/octet-stream"],
|
|
@@ -2463,14 +2609,14 @@ var jt = /* @__PURE__ */ new Map([
|
|
|
2463
2609
|
["minute", 6e4],
|
|
2464
2610
|
["second", 1e3],
|
|
2465
2611
|
["millisecond", 1]
|
|
2466
|
-
],
|
|
2612
|
+
], Bt = [
|
|
2467
2613
|
["byte", 1],
|
|
2468
2614
|
["kilobyte", 1024],
|
|
2469
2615
|
["megabyte", 1048576],
|
|
2470
2616
|
["gigabyte", 1073741824],
|
|
2471
2617
|
["terabyte", 1099511627776]
|
|
2472
|
-
],
|
|
2473
|
-
function
|
|
2618
|
+
], Vt = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
|
|
2619
|
+
function Ht(e, t = 2, n = t, r = X) {
|
|
2474
2620
|
return e == null ? "" : $(r, {
|
|
2475
2621
|
localeMatcher: "best fit",
|
|
2476
2622
|
maximumFractionDigits: t,
|
|
@@ -2480,18 +2626,18 @@ function Pt(e, t = 2, n = t, r = X) {
|
|
|
2480
2626
|
useGrouping: !0
|
|
2481
2627
|
}).format(e);
|
|
2482
2628
|
}
|
|
2483
|
-
function
|
|
2484
|
-
return
|
|
2629
|
+
function Ut(e, t = X) {
|
|
2630
|
+
return Ht(e, 0, 0, t);
|
|
2485
2631
|
}
|
|
2486
|
-
function
|
|
2632
|
+
function Wt(e, t = 1, n = X) {
|
|
2487
2633
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2488
2634
|
maximumFractionDigits: t,
|
|
2489
2635
|
notation: "compact"
|
|
2490
2636
|
}).format(e);
|
|
2491
2637
|
}
|
|
2492
|
-
function
|
|
2638
|
+
function Gt(e, t = 1, n = X) {
|
|
2493
2639
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2494
|
-
let [r, i] =
|
|
2640
|
+
let [r, i] = Bt.find(([, n]) => en(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2495
2641
|
return $(n, {
|
|
2496
2642
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2497
2643
|
style: "unit",
|
|
@@ -2499,7 +2645,7 @@ function Lt(e, t = 1, n = X) {
|
|
|
2499
2645
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2500
2646
|
}).format(e / i);
|
|
2501
2647
|
}
|
|
2502
|
-
function
|
|
2648
|
+
function Kt(e, t = "millisecond", n = X) {
|
|
2503
2649
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2504
2650
|
let r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];
|
|
2505
2651
|
for (let [t, i] of s) {
|
|
@@ -2513,25 +2659,25 @@ function Rt(e, t = "millisecond", n = X) {
|
|
|
2513
2659
|
unitDisplay: "short"
|
|
2514
2660
|
}).format(o));
|
|
2515
2661
|
}
|
|
2516
|
-
return
|
|
2662
|
+
return $t(n).format(c);
|
|
2517
2663
|
}
|
|
2518
|
-
function
|
|
2664
|
+
function qt(e) {
|
|
2519
2665
|
if (!e) return;
|
|
2520
|
-
let t =
|
|
2666
|
+
let t = Qt(e);
|
|
2521
2667
|
return t === void 0 ? e : e.slice(0, t);
|
|
2522
2668
|
}
|
|
2523
|
-
function
|
|
2669
|
+
function Jt(e) {
|
|
2524
2670
|
if (!e) return;
|
|
2525
|
-
let t =
|
|
2671
|
+
let t = Qt(e);
|
|
2526
2672
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2527
2673
|
}
|
|
2528
|
-
function
|
|
2529
|
-
return e != null &&
|
|
2674
|
+
function Yt(e) {
|
|
2675
|
+
return e != null && zt.has(e.toLowerCase());
|
|
2530
2676
|
}
|
|
2531
|
-
function
|
|
2532
|
-
return (e == null ? void 0 :
|
|
2677
|
+
function Xt(e) {
|
|
2678
|
+
return (e == null ? void 0 : zt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2533
2679
|
}
|
|
2534
|
-
function
|
|
2680
|
+
function Zt(e) {
|
|
2535
2681
|
switch (e) {
|
|
2536
2682
|
case "Edm.Boolean": return "boolean";
|
|
2537
2683
|
case "Edm.Byte":
|
|
@@ -2552,23 +2698,23 @@ function Ut(e) {
|
|
|
2552
2698
|
default: return "unknown";
|
|
2553
2699
|
}
|
|
2554
2700
|
}
|
|
2555
|
-
function
|
|
2701
|
+
function Qt(e) {
|
|
2556
2702
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2557
2703
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2558
2704
|
}
|
|
2559
|
-
function
|
|
2560
|
-
let t =
|
|
2705
|
+
function $t(e) {
|
|
2706
|
+
let t = Vt.get(e);
|
|
2561
2707
|
return t || (t = new Intl.ListFormat(e, {
|
|
2562
2708
|
style: "narrow",
|
|
2563
2709
|
type: "unit"
|
|
2564
|
-
}),
|
|
2710
|
+
}), Vt.set(e, t)), t;
|
|
2565
2711
|
}
|
|
2566
2712
|
function $(e, t) {
|
|
2567
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2568
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2713
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Q.get(n);
|
|
2714
|
+
return r || (r = new Intl.NumberFormat(e, t), Q.set(n, r)), r;
|
|
2569
2715
|
}
|
|
2570
|
-
function
|
|
2716
|
+
function en(e, t) {
|
|
2571
2717
|
let n = 10 ** t;
|
|
2572
2718
|
return Math.round(e * n) / n;
|
|
2573
2719
|
}
|
|
2574
|
-
export {
|
|
2720
|
+
export { Pe as APIError, I as AppError, Ie as ConnectorError, pe as DATA_FORMAT_CONFIGS, me as DATA_TYPE_CONFIGS, he as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, j as ENCODING_GROUP_CONFIG_MAP, M as ENCODING_TYPE_CONFIG_MAP, Fe as EngineError, L as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, k as VALUE_DELIMITER_CONFIGS, lt as auditObjectContentWithParser, Le as buildFetchError, st as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Re as concatenateSerialisedErrorMessages, we as connectorConfigSchema, Et as constructConnectorCategoryConfig, Dt as constructConnectorItemTypeConfig, Ot as constructConnectorUsageConfig, Zt as convertODataTypeIdToUsageTypeId, jt as cookbookConfigSchema, n as createLabelMap, Tt as determineConnectorUsageId, Jt as extractExtensionFromPath, qt as extractPathWithoutExtension, Ht as formatNumberAsDecimalNumber, Kt as formatNumberAsDuration, Wt as formatNumberAsSize, Gt as formatNumberAsStorageSize, Ut as formatNumberAsWholeNumber, fe as getComponentStatus, kt as getConnectorActionsTable, ke as getEncodingTypeConfigs, ge as getValueDelimiterCharacter, Yt as hasMimeTypeForExtension, ze as ignoreErrors, De as isEncodingTypeId, U as listParserToolConfigs, Ft as loadPresenter, rt as loadTool, It as localiseConfig, Lt as localiseConfigs, Rt as localiseReference, Xt as lookupMimeTypeForExtension, R as normalizeToError, Xe as parseDelimitedText, Nt as presenterConfigSchema, _t as readTableSchema, Oe as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, ct as retrieveRecordsWithParser, Be as serialiseError, Ye as toolConfigSchema, Ve as unserialiseError };
|