@dpuse/dpuse-shared 1.0.200 → 1.0.202
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 +429 -286
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/component/dataView/index.d.ts +13 -0
- package/dist/types/src/component/module/connector/index.d.ts +4 -3
- 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, filePreview: r, hasHeaders: i, inferDataTypes: a, parserId: o, startedAt: s, toolConfigs: c, valueDelimiterId: l } = e, { dataFormatId: u, text: d } = r, f = r.bytes.length;
|
|
2074
|
+
if (f === 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: f,
|
|
2081
|
+
startedAt: s
|
|
2020
2082
|
}),
|
|
2021
2083
|
sampleConfig: {
|
|
2022
2084
|
issues: [{
|
|
@@ -2040,73 +2102,73 @@ async function at(e) {
|
|
|
2040
2102
|
fileType: void 0,
|
|
2041
2103
|
hasHeaders: !1,
|
|
2042
2104
|
parserId: void 0,
|
|
2043
|
-
recordDelimiterId:
|
|
2105
|
+
recordDelimiterId: it,
|
|
2044
2106
|
valueDelimiterId: G
|
|
2045
2107
|
}
|
|
2046
2108
|
};
|
|
2047
|
-
if (
|
|
2109
|
+
if (u == null || d == null || U(c, u).length === 0) return {
|
|
2048
2110
|
contentAuditConfig: J({
|
|
2049
2111
|
asAt: t,
|
|
2050
2112
|
columns: [],
|
|
2051
|
-
isComplete:
|
|
2113
|
+
isComplete: r.isComplete,
|
|
2052
2114
|
recordCount: 0,
|
|
2053
|
-
size:
|
|
2054
|
-
startedAt:
|
|
2115
|
+
size: f,
|
|
2116
|
+
startedAt: s
|
|
2055
2117
|
}),
|
|
2056
2118
|
sampleConfig: {
|
|
2057
2119
|
issues: [],
|
|
2058
2120
|
parsedRecords: [],
|
|
2059
|
-
size:
|
|
2060
|
-
text:
|
|
2121
|
+
size: f,
|
|
2122
|
+
text: d
|
|
2061
2123
|
},
|
|
2062
2124
|
readingConfig: {
|
|
2063
|
-
dataFormatId:
|
|
2064
|
-
encodingConfidenceLevel:
|
|
2065
|
-
encodingId:
|
|
2066
|
-
fileType:
|
|
2125
|
+
dataFormatId: u ?? "unknown",
|
|
2126
|
+
encodingConfidenceLevel: r.encodingConfidenceLevel,
|
|
2127
|
+
encodingId: r.encodingId,
|
|
2128
|
+
fileType: r.fileTypeConfig,
|
|
2067
2129
|
hasHeaders: void 0,
|
|
2068
2130
|
parserId: void 0,
|
|
2069
2131
|
recordDelimiterId: void 0,
|
|
2070
2132
|
valueDelimiterId: void 0
|
|
2071
2133
|
}
|
|
2072
2134
|
};
|
|
2073
|
-
let { parser:
|
|
2074
|
-
dataFormatId:
|
|
2075
|
-
isComplete:
|
|
2076
|
-
valueDelimiterIds:
|
|
2077
|
-
}),
|
|
2078
|
-
dataFormatId:
|
|
2079
|
-
isComplete:
|
|
2135
|
+
let { parser: p, parserId: m } = await Y(c, u, o), h = l == null ? k.map(({ id: e }) => e) : [l], g = await p.parseText(d, {
|
|
2136
|
+
dataFormatId: u,
|
|
2137
|
+
isComplete: r.isComplete,
|
|
2138
|
+
valueDelimiterIds: h
|
|
2139
|
+
}), _ = u === "dtv", v = _ && l == null && g.valueDelimiterId == null ? await p.parseText(d, {
|
|
2140
|
+
dataFormatId: u,
|
|
2141
|
+
isComplete: r.isComplete,
|
|
2080
2142
|
valueDelimiterIds: [G]
|
|
2081
|
-
}) :
|
|
2143
|
+
}) : g, y = a(v.parsedRecords, i, n);
|
|
2082
2144
|
return {
|
|
2083
2145
|
contentAuditConfig: J({
|
|
2084
2146
|
asAt: t,
|
|
2085
|
-
columns:
|
|
2086
|
-
isComplete:
|
|
2087
|
-
recordCount: Math.max(0,
|
|
2088
|
-
size:
|
|
2089
|
-
startedAt:
|
|
2147
|
+
columns: y.columnConfigs,
|
|
2148
|
+
isComplete: r.isComplete,
|
|
2149
|
+
recordCount: Math.max(0, v.parsedRecords.length - +!!y.hasHeaders),
|
|
2150
|
+
size: f,
|
|
2151
|
+
startedAt: s
|
|
2090
2152
|
}),
|
|
2091
2153
|
sampleConfig: {
|
|
2092
|
-
issues:
|
|
2093
|
-
parsedRecords:
|
|
2094
|
-
size:
|
|
2095
|
-
text:
|
|
2154
|
+
issues: v.issues,
|
|
2155
|
+
parsedRecords: v.parsedRecords,
|
|
2156
|
+
size: f,
|
|
2157
|
+
text: d
|
|
2096
2158
|
},
|
|
2097
2159
|
readingConfig: {
|
|
2098
|
-
dataFormatId:
|
|
2099
|
-
encodingConfidenceLevel:
|
|
2100
|
-
encodingId:
|
|
2101
|
-
fileType:
|
|
2102
|
-
hasHeaders:
|
|
2103
|
-
parserId:
|
|
2104
|
-
recordDelimiterId:
|
|
2105
|
-
valueDelimiterId:
|
|
2160
|
+
dataFormatId: u,
|
|
2161
|
+
encodingConfidenceLevel: r.encodingConfidenceLevel,
|
|
2162
|
+
encodingId: r.encodingId,
|
|
2163
|
+
fileType: r.fileTypeConfig,
|
|
2164
|
+
hasHeaders: y.hasHeaders,
|
|
2165
|
+
parserId: m,
|
|
2166
|
+
recordDelimiterId: v.recordDelimiterId,
|
|
2167
|
+
valueDelimiterId: _ ? l ?? v.valueDelimiterId ?? G : v.valueDelimiterId
|
|
2106
2168
|
}
|
|
2107
2169
|
};
|
|
2108
2170
|
}
|
|
2109
|
-
async function
|
|
2171
|
+
async function ct(e) {
|
|
2110
2172
|
let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
|
|
2111
2173
|
return await o.parseStream(i, {
|
|
2112
2174
|
abortSignal: r,
|
|
@@ -2116,31 +2178,31 @@ async function ot(e) {
|
|
|
2116
2178
|
valueDelimiterId: n.valueDelimiterId
|
|
2117
2179
|
}, t);
|
|
2118
2180
|
}
|
|
2119
|
-
async function
|
|
2120
|
-
let { constructColumnAuditor: t,
|
|
2121
|
-
abortSignal:
|
|
2122
|
-
chunkSize:
|
|
2123
|
-
dataFormatId:
|
|
2124
|
-
encodingId:
|
|
2125
|
-
valueDelimiterId:
|
|
2181
|
+
async function lt(e) {
|
|
2182
|
+
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, {
|
|
2183
|
+
abortSignal: a,
|
|
2184
|
+
chunkSize: i.chunkSize,
|
|
2185
|
+
dataFormatId: i.dataFormatId,
|
|
2186
|
+
encodingId: i.encodingId,
|
|
2187
|
+
valueDelimiterId: i.valueDelimiterId
|
|
2126
2188
|
}, (e, t) => {
|
|
2127
|
-
|
|
2128
|
-
}), { columnConfigs:
|
|
2189
|
+
u.auditRecords(t), r(t.length, p.byteCount());
|
|
2190
|
+
}), { columnConfigs: h, hasHeaders: g } = u.completeAudit();
|
|
2129
2191
|
return {
|
|
2130
2192
|
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:
|
|
2193
|
+
asAt: c,
|
|
2194
|
+
byteCount: p.byteCount(),
|
|
2195
|
+
columns: h,
|
|
2196
|
+
commentLineCount: m.commentLineCount,
|
|
2197
|
+
duration: performance.now() - l,
|
|
2198
|
+
emptyLineCount: m.emptyLineCount,
|
|
2199
|
+
invalidFieldLengthCount: m.nonUniformRecordCount,
|
|
2200
|
+
isComplete: p.isComplete(),
|
|
2201
|
+
lineCount: m.lineCount,
|
|
2202
|
+
recordCount: Math.max(0, m.recordCount - +!!g),
|
|
2203
|
+
sourceWaitDuration: f.waitDuration()
|
|
2142
2204
|
},
|
|
2143
|
-
hasHeaders:
|
|
2205
|
+
hasHeaders: g
|
|
2144
2206
|
};
|
|
2145
2207
|
}
|
|
2146
2208
|
function J(e) {
|
|
@@ -2159,8 +2221,8 @@ function J(e) {
|
|
|
2159
2221
|
sourceWaitDuration: void 0
|
|
2160
2222
|
};
|
|
2161
2223
|
}
|
|
2162
|
-
function
|
|
2163
|
-
let n = e.getReader(), r =
|
|
2224
|
+
function ut(e, t) {
|
|
2225
|
+
let n = e.getReader(), r = dt(t.encodingId), i = 0, a = !1, o;
|
|
2164
2226
|
return {
|
|
2165
2227
|
byteCount: () => i,
|
|
2166
2228
|
isComplete: () => a,
|
|
@@ -2186,19 +2248,19 @@ function ct(e, t) {
|
|
|
2186
2248
|
}, { highWaterMark: 0 })
|
|
2187
2249
|
};
|
|
2188
2250
|
}
|
|
2189
|
-
function
|
|
2190
|
-
let t =
|
|
2251
|
+
function dt(e) {
|
|
2252
|
+
let t = Oe(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
|
|
2191
2253
|
return (e, t, o) => {
|
|
2192
2254
|
for (let s = 0; s < e.length; s++) {
|
|
2193
2255
|
let c = e[s];
|
|
2194
|
-
if ((c ===
|
|
2195
|
-
if (c ===
|
|
2256
|
+
if ((c === ot || c === K || c === at) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
|
|
2257
|
+
if (c === ot) a = !a;
|
|
2196
2258
|
else if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;
|
|
2197
2259
|
}
|
|
2198
2260
|
}
|
|
2199
2261
|
};
|
|
2200
2262
|
}
|
|
2201
|
-
function
|
|
2263
|
+
function ft(e) {
|
|
2202
2264
|
let t = e.getReader(), n = 0;
|
|
2203
2265
|
return {
|
|
2204
2266
|
stream: new ReadableStream({
|
|
@@ -2214,14 +2276,95 @@ function ut(e) {
|
|
|
2214
2276
|
};
|
|
2215
2277
|
}
|
|
2216
2278
|
async function Y(e, t, n) {
|
|
2217
|
-
let r =
|
|
2279
|
+
let r = W(e, t, n);
|
|
2218
2280
|
return {
|
|
2219
|
-
parser: await
|
|
2281
|
+
parser: await rt(e, r.id.slice(H.length)),
|
|
2220
2282
|
parserId: r.id
|
|
2221
2283
|
};
|
|
2222
2284
|
}
|
|
2285
|
+
var pt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
|
|
2286
|
+
format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2287
|
+
name: /* @__PURE__ */ w(),
|
|
2288
|
+
title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2289
|
+
type: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
2290
|
+
})) }), mt = /* @__PURE__ */ v({
|
|
2291
|
+
delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
2292
|
+
header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
|
|
2293
|
+
headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
|
|
2294
|
+
}), ht = {
|
|
2295
|
+
boolean: {
|
|
2296
|
+
dataSubtypeId: void 0,
|
|
2297
|
+
dataTypeId: "boolean"
|
|
2298
|
+
},
|
|
2299
|
+
date: {
|
|
2300
|
+
dataSubtypeId: "date",
|
|
2301
|
+
dataTypeId: "temporal"
|
|
2302
|
+
},
|
|
2303
|
+
datetime: {
|
|
2304
|
+
dataSubtypeId: "dateTime",
|
|
2305
|
+
dataTypeId: "temporal"
|
|
2306
|
+
},
|
|
2307
|
+
integer: {
|
|
2308
|
+
dataSubtypeId: "integer",
|
|
2309
|
+
dataTypeId: "numeric"
|
|
2310
|
+
},
|
|
2311
|
+
number: {
|
|
2312
|
+
dataSubtypeId: "decimal",
|
|
2313
|
+
dataTypeId: "numeric"
|
|
2314
|
+
},
|
|
2315
|
+
string: {
|
|
2316
|
+
dataSubtypeId: "plain",
|
|
2317
|
+
dataTypeId: "string"
|
|
2318
|
+
},
|
|
2319
|
+
time: {
|
|
2320
|
+
dataSubtypeId: "time",
|
|
2321
|
+
dataTypeId: "temporal"
|
|
2322
|
+
},
|
|
2323
|
+
year: {
|
|
2324
|
+
dataSubtypeId: "integer",
|
|
2325
|
+
dataTypeId: "numeric"
|
|
2326
|
+
}
|
|
2327
|
+
}, gt = {
|
|
2328
|
+
email: "email",
|
|
2329
|
+
uri: "url",
|
|
2330
|
+
uuid: "uuid"
|
|
2331
|
+
};
|
|
2332
|
+
function _t(e) {
|
|
2333
|
+
let t = /* @__PURE__ */ E(pt, e.schema);
|
|
2334
|
+
if (!t.success) throw new I("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2335
|
+
let n = /* @__PURE__ */ E(mt, e.dialect ?? {});
|
|
2336
|
+
if (!n.success) throw new I("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
|
|
2337
|
+
let r = t.output.fields.map((e) => {
|
|
2338
|
+
let t = vt(e.type, e.format);
|
|
2339
|
+
return {
|
|
2340
|
+
name: e.name,
|
|
2341
|
+
label: e.title,
|
|
2342
|
+
dataTypeId: t.dataTypeId,
|
|
2343
|
+
dataSubtypeId: t.dataSubtypeId
|
|
2344
|
+
};
|
|
2345
|
+
}), { delimiter: i = ",", header: a = !0, headerRows: o = [1] } = n.output;
|
|
2346
|
+
return {
|
|
2347
|
+
declaredColumnConfigs: r,
|
|
2348
|
+
declaredReadingConfig: {
|
|
2349
|
+
dataFormatId: "dtv",
|
|
2350
|
+
encodingId: e.encoding?.toLowerCase(),
|
|
2351
|
+
hasHeaders: a && o.length > 0,
|
|
2352
|
+
valueDelimiterId: k.find(({ character: e }) => e === i)?.id
|
|
2353
|
+
}
|
|
2354
|
+
};
|
|
2355
|
+
}
|
|
2356
|
+
function vt(e, t) {
|
|
2357
|
+
let n = e == null ? void 0 : ht[e];
|
|
2358
|
+
return n == null ? {
|
|
2359
|
+
dataSubtypeId: void 0,
|
|
2360
|
+
dataTypeId: void 0
|
|
2361
|
+
} : t == null || n.dataTypeId !== "string" ? n : {
|
|
2362
|
+
dataSubtypeId: gt[t] ?? "plain",
|
|
2363
|
+
dataTypeId: "string"
|
|
2364
|
+
};
|
|
2365
|
+
}
|
|
2223
2366
|
// src/component/module/connector/index.ts
|
|
2224
|
-
var
|
|
2367
|
+
var yt = [
|
|
2225
2368
|
{
|
|
2226
2369
|
id: "application",
|
|
2227
2370
|
label: {
|
|
@@ -2250,7 +2393,7 @@ var dt = [
|
|
|
2250
2393
|
es: "Almacén de Archivos"
|
|
2251
2394
|
}
|
|
2252
2395
|
}
|
|
2253
|
-
],
|
|
2396
|
+
], bt = [
|
|
2254
2397
|
{
|
|
2255
2398
|
id: "apiEndpoint",
|
|
2256
2399
|
label: {
|
|
@@ -2272,7 +2415,7 @@ var dt = [
|
|
|
2272
2415
|
es: "Tabla"
|
|
2273
2416
|
}
|
|
2274
2417
|
}
|
|
2275
|
-
],
|
|
2418
|
+
], xt = {
|
|
2276
2419
|
abortOperation: "Abort Operation",
|
|
2277
2420
|
auditObjectContent: "Audit Object Content",
|
|
2278
2421
|
closeStore: "Close Store",
|
|
@@ -2292,7 +2435,7 @@ var dt = [
|
|
|
2292
2435
|
retrieveChunks: "Retrieve Chunks",
|
|
2293
2436
|
retrieveRecords: "Retrieve Records",
|
|
2294
2437
|
upsertRecords: "Upsert Records"
|
|
2295
|
-
},
|
|
2438
|
+
}, St = [
|
|
2296
2439
|
{
|
|
2297
2440
|
id: "bidirectional",
|
|
2298
2441
|
label: {
|
|
@@ -2321,13 +2464,13 @@ var dt = [
|
|
|
2321
2464
|
es: "Desconocido"
|
|
2322
2465
|
}
|
|
2323
2466
|
}
|
|
2324
|
-
],
|
|
2467
|
+
], Ct = /* @__PURE__ */ new Set([
|
|
2325
2468
|
"createObject",
|
|
2326
2469
|
"dropObject",
|
|
2327
2470
|
"loadObjectRecords",
|
|
2328
2471
|
"removeRecords",
|
|
2329
2472
|
"upsertRecords"
|
|
2330
|
-
]),
|
|
2473
|
+
]), wt = /* @__PURE__ */ new Set([
|
|
2331
2474
|
"auditObjectContent",
|
|
2332
2475
|
"findObject",
|
|
2333
2476
|
"getInfo",
|
|
@@ -2339,13 +2482,13 @@ var dt = [
|
|
|
2339
2482
|
"retrieveChunks",
|
|
2340
2483
|
"retrieveRecords"
|
|
2341
2484
|
]);
|
|
2342
|
-
function
|
|
2485
|
+
function Tt(e) {
|
|
2343
2486
|
let t = !1, n = !1;
|
|
2344
|
-
for (let r of e)
|
|
2487
|
+
for (let r of e) wt.has(r) && (t = !0), Ct.has(r) && (n = !0);
|
|
2345
2488
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
2346
2489
|
}
|
|
2347
|
-
var
|
|
2348
|
-
let i =
|
|
2490
|
+
var Et = (e, t = "en") => {
|
|
2491
|
+
let i = yt.find((t) => t.id === e);
|
|
2349
2492
|
return i ? {
|
|
2350
2493
|
label: r(n(i.label), t) ?? i.id,
|
|
2351
2494
|
description: ""
|
|
@@ -2353,8 +2496,8 @@ var vt = (e, t = "en") => {
|
|
|
2353
2496
|
label: e,
|
|
2354
2497
|
description: ""
|
|
2355
2498
|
};
|
|
2356
|
-
},
|
|
2357
|
-
let i =
|
|
2499
|
+
}, Dt = (e, t = "en") => {
|
|
2500
|
+
let i = bt.find((t) => t.id === e);
|
|
2358
2501
|
return i ? {
|
|
2359
2502
|
label: r(n(i.label), t) ?? i.id,
|
|
2360
2503
|
description: ""
|
|
@@ -2362,8 +2505,8 @@ var vt = (e, t = "en") => {
|
|
|
2362
2505
|
label: e,
|
|
2363
2506
|
description: ""
|
|
2364
2507
|
};
|
|
2365
|
-
},
|
|
2366
|
-
let i =
|
|
2508
|
+
}, Ot = (e, t = "en") => {
|
|
2509
|
+
let i = St.find((t) => t.id === e);
|
|
2367
2510
|
return i ? {
|
|
2368
2511
|
label: r(n(i.label), t) ?? i.id,
|
|
2369
2512
|
description: ""
|
|
@@ -2372,30 +2515,30 @@ var vt = (e, t = "en") => {
|
|
|
2372
2515
|
description: ""
|
|
2373
2516
|
};
|
|
2374
2517
|
};
|
|
2375
|
-
function
|
|
2518
|
+
function kt(e) {
|
|
2376
2519
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
2377
2520
|
n += "|:----|:-------:|\n";
|
|
2378
|
-
for (let e of Object.keys(
|
|
2521
|
+
for (let e of Object.keys(xt)) n += `| ${xt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
2379
2522
|
return n;
|
|
2380
2523
|
}
|
|
2381
2524
|
// src/component/module/cookbook/cookbookConfig.schema.ts
|
|
2382
|
-
var
|
|
2383
|
-
...
|
|
2525
|
+
var At = O(["list"]), jt = /* @__PURE__ */ C({
|
|
2526
|
+
...A,
|
|
2384
2527
|
typeId: /* @__PURE__ */ _("cookbook"),
|
|
2385
|
-
actionNames: /* @__PURE__ */ h(
|
|
2386
|
-
recipes: /* @__PURE__ */ h(
|
|
2387
|
-
}),
|
|
2528
|
+
actionNames: /* @__PURE__ */ h(At),
|
|
2529
|
+
recipes: /* @__PURE__ */ h(ce)
|
|
2530
|
+
}), Mt = O([
|
|
2388
2531
|
"list",
|
|
2389
2532
|
"render",
|
|
2390
2533
|
"setColorMode"
|
|
2391
|
-
]),
|
|
2392
|
-
...
|
|
2534
|
+
]), Nt = /* @__PURE__ */ C({
|
|
2535
|
+
...A,
|
|
2393
2536
|
typeId: /* @__PURE__ */ _("presenter"),
|
|
2394
|
-
actionNames: /* @__PURE__ */ h(
|
|
2395
|
-
presentations: /* @__PURE__ */ h(
|
|
2396
|
-
}),
|
|
2397
|
-
async function
|
|
2398
|
-
let i = e.id, a = `${
|
|
2537
|
+
actionNames: /* @__PURE__ */ h(Mt),
|
|
2538
|
+
presentations: /* @__PURE__ */ h(ce)
|
|
2539
|
+
}), Pt = "https://engine-eu.dpuse.app/presenters";
|
|
2540
|
+
async function Ft(e, t, n, r) {
|
|
2541
|
+
let i = e.id, a = `${Pt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
|
|
2399
2542
|
try {
|
|
2400
2543
|
return new (await (import(
|
|
2401
2544
|
/* @vite-ignore */
|
|
@@ -2407,11 +2550,11 @@ async function Dt(e, t, n, r) {
|
|
|
2407
2550
|
url: a,
|
|
2408
2551
|
version: e.version
|
|
2409
2552
|
};
|
|
2410
|
-
throw new
|
|
2553
|
+
throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
|
|
2411
2554
|
}
|
|
2412
2555
|
}
|
|
2413
2556
|
// src/locale/index.ts
|
|
2414
|
-
function
|
|
2557
|
+
function It(e, t) {
|
|
2415
2558
|
return {
|
|
2416
2559
|
...e,
|
|
2417
2560
|
label: e.label[t] ?? e.id,
|
|
@@ -2419,7 +2562,7 @@ function Ot(e, t) {
|
|
|
2419
2562
|
verb: e.verb?.[t] ?? void 0
|
|
2420
2563
|
};
|
|
2421
2564
|
}
|
|
2422
|
-
function
|
|
2565
|
+
function Lt(e, t, n = !1) {
|
|
2423
2566
|
let r = e.map((e) => ({
|
|
2424
2567
|
...e,
|
|
2425
2568
|
label: e.label[t] ?? e.id,
|
|
@@ -2428,7 +2571,7 @@ function kt(e, t, n = !1) {
|
|
|
2428
2571
|
}));
|
|
2429
2572
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
2430
2573
|
}
|
|
2431
|
-
function
|
|
2574
|
+
function Rt(e, t) {
|
|
2432
2575
|
return {
|
|
2433
2576
|
...e,
|
|
2434
2577
|
label: e.label[t] ?? e.id,
|
|
@@ -2436,7 +2579,7 @@ function At(e, t) {
|
|
|
2436
2579
|
};
|
|
2437
2580
|
}
|
|
2438
2581
|
// src/utilities/index.ts
|
|
2439
|
-
var
|
|
2582
|
+
var zt = /* @__PURE__ */ new Map([
|
|
2440
2583
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
2441
2584
|
["avro", "application/vnd.apache.avro"],
|
|
2442
2585
|
["bin", "application/octet-stream"],
|
|
@@ -2463,14 +2606,14 @@ var jt = /* @__PURE__ */ new Map([
|
|
|
2463
2606
|
["minute", 6e4],
|
|
2464
2607
|
["second", 1e3],
|
|
2465
2608
|
["millisecond", 1]
|
|
2466
|
-
],
|
|
2609
|
+
], Bt = [
|
|
2467
2610
|
["byte", 1],
|
|
2468
2611
|
["kilobyte", 1024],
|
|
2469
2612
|
["megabyte", 1048576],
|
|
2470
2613
|
["gigabyte", 1073741824],
|
|
2471
2614
|
["terabyte", 1099511627776]
|
|
2472
|
-
],
|
|
2473
|
-
function
|
|
2615
|
+
], Vt = /* @__PURE__ */ new Map(), Q = /* @__PURE__ */ new Map();
|
|
2616
|
+
function Ht(e, t = 2, n = t, r = X) {
|
|
2474
2617
|
return e == null ? "" : $(r, {
|
|
2475
2618
|
localeMatcher: "best fit",
|
|
2476
2619
|
maximumFractionDigits: t,
|
|
@@ -2480,18 +2623,18 @@ function Pt(e, t = 2, n = t, r = X) {
|
|
|
2480
2623
|
useGrouping: !0
|
|
2481
2624
|
}).format(e);
|
|
2482
2625
|
}
|
|
2483
|
-
function
|
|
2484
|
-
return
|
|
2626
|
+
function Ut(e, t = X) {
|
|
2627
|
+
return Ht(e, 0, 0, t);
|
|
2485
2628
|
}
|
|
2486
|
-
function
|
|
2629
|
+
function Wt(e, t = 1, n = X) {
|
|
2487
2630
|
return e == null || !Number.isFinite(e) ? "" : $(n, {
|
|
2488
2631
|
maximumFractionDigits: t,
|
|
2489
2632
|
notation: "compact"
|
|
2490
2633
|
}).format(e);
|
|
2491
2634
|
}
|
|
2492
|
-
function
|
|
2635
|
+
function Gt(e, t = 1, n = X) {
|
|
2493
2636
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2494
|
-
let [r, i] =
|
|
2637
|
+
let [r, i] = Bt.find(([, n]) => en(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
|
|
2495
2638
|
return $(n, {
|
|
2496
2639
|
maximumFractionDigits: i === 1 ? 0 : t,
|
|
2497
2640
|
style: "unit",
|
|
@@ -2499,7 +2642,7 @@ function Lt(e, t = 1, n = X) {
|
|
|
2499
2642
|
unitDisplay: i === 1 ? "long" : "short"
|
|
2500
2643
|
}).format(e / i);
|
|
2501
2644
|
}
|
|
2502
|
-
function
|
|
2645
|
+
function Kt(e, t = "millisecond", n = X) {
|
|
2503
2646
|
if (e == null || !Number.isFinite(e)) return "";
|
|
2504
2647
|
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
2648
|
for (let [t, i] of s) {
|
|
@@ -2513,25 +2656,25 @@ function Rt(e, t = "millisecond", n = X) {
|
|
|
2513
2656
|
unitDisplay: "short"
|
|
2514
2657
|
}).format(o));
|
|
2515
2658
|
}
|
|
2516
|
-
return
|
|
2659
|
+
return $t(n).format(c);
|
|
2517
2660
|
}
|
|
2518
|
-
function
|
|
2661
|
+
function qt(e) {
|
|
2519
2662
|
if (!e) return;
|
|
2520
|
-
let t =
|
|
2663
|
+
let t = Qt(e);
|
|
2521
2664
|
return t === void 0 ? e : e.slice(0, t);
|
|
2522
2665
|
}
|
|
2523
|
-
function
|
|
2666
|
+
function Jt(e) {
|
|
2524
2667
|
if (!e) return;
|
|
2525
|
-
let t =
|
|
2668
|
+
let t = Qt(e);
|
|
2526
2669
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
2527
2670
|
}
|
|
2528
|
-
function
|
|
2529
|
-
return e != null &&
|
|
2671
|
+
function Yt(e) {
|
|
2672
|
+
return e != null && zt.has(e.toLowerCase());
|
|
2530
2673
|
}
|
|
2531
|
-
function
|
|
2532
|
-
return (e == null ? void 0 :
|
|
2674
|
+
function Xt(e) {
|
|
2675
|
+
return (e == null ? void 0 : zt.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
2533
2676
|
}
|
|
2534
|
-
function
|
|
2677
|
+
function Zt(e) {
|
|
2535
2678
|
switch (e) {
|
|
2536
2679
|
case "Edm.Boolean": return "boolean";
|
|
2537
2680
|
case "Edm.Byte":
|
|
@@ -2552,23 +2695,23 @@ function Ut(e) {
|
|
|
2552
2695
|
default: return "unknown";
|
|
2553
2696
|
}
|
|
2554
2697
|
}
|
|
2555
|
-
function
|
|
2698
|
+
function Qt(e) {
|
|
2556
2699
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
2557
2700
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
2558
2701
|
}
|
|
2559
|
-
function
|
|
2560
|
-
let t =
|
|
2702
|
+
function $t(e) {
|
|
2703
|
+
let t = Vt.get(e);
|
|
2561
2704
|
return t || (t = new Intl.ListFormat(e, {
|
|
2562
2705
|
style: "narrow",
|
|
2563
2706
|
type: "unit"
|
|
2564
|
-
}),
|
|
2707
|
+
}), Vt.set(e, t)), t;
|
|
2565
2708
|
}
|
|
2566
2709
|
function $(e, t) {
|
|
2567
|
-
let n = `${e}|${JSON.stringify(t)}`, r =
|
|
2568
|
-
return r || (r = new Intl.NumberFormat(e, t),
|
|
2710
|
+
let n = `${e}|${JSON.stringify(t)}`, r = Q.get(n);
|
|
2711
|
+
return r || (r = new Intl.NumberFormat(e, t), Q.set(n, r)), r;
|
|
2569
2712
|
}
|
|
2570
|
-
function
|
|
2713
|
+
function en(e, t) {
|
|
2571
2714
|
let n = 10 ** t;
|
|
2572
2715
|
return Math.round(e * n) / n;
|
|
2573
2716
|
}
|
|
2574
|
-
export {
|
|
2717
|
+
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 };
|