@dpuse/dpuse-development 1.0.145 → 1.0.148
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 +18 -18
- package/dist/{apiReference-CdMhhAl1.js → apiReference-Bg5HYM1L.js} +2 -3
- package/dist/{apiReference-CdMhhAl1.js.map → apiReference-Bg5HYM1L.js.map} +1 -1
- package/dist/dpuse-development.es.js +356 -362
- package/dist/dpuse-development.es.js.map +1 -1
- package/dist/{utilities-D98znirs.js → utilities-DH1goyH8.js} +182 -188
- package/dist/utilities-DH1goyH8.js.map +1 -0
- package/dist/vite.es.js +1 -2
- package/package.json +8 -8
- package/dist/utilities-D98znirs.js.map +0 -1
|
@@ -2,7 +2,7 @@ import { promises as e } from "node:fs";
|
|
|
2
2
|
import t from "node:path";
|
|
3
3
|
import { promisify as n } from "node:util";
|
|
4
4
|
import { execFile as r, spawn as i } from "node:child_process";
|
|
5
|
-
|
|
5
|
+
// node_modules/valibot/dist/index.mjs
|
|
6
6
|
var a = {
|
|
7
7
|
lang: void 0,
|
|
8
8
|
message: void 0,
|
|
@@ -28,33 +28,29 @@ function s(e, t, n) {
|
|
|
28
28
|
issues: r.issues
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
function c(e) {
|
|
34
|
-
return new Map(Object.entries(e));
|
|
35
|
-
}
|
|
36
|
-
var l = {
|
|
31
|
+
// node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js
|
|
32
|
+
var c = {
|
|
37
33
|
lang: void 0,
|
|
38
34
|
message: void 0,
|
|
39
35
|
abortEarly: void 0,
|
|
40
36
|
abortPipeEarly: void 0
|
|
41
37
|
};
|
|
42
38
|
/* @__NO_SIDE_EFFECTS__ */
|
|
43
|
-
function
|
|
39
|
+
function l(e) {
|
|
44
40
|
return e ? {
|
|
45
41
|
lang: e?.lang ?? void 0,
|
|
46
42
|
message: e?.message,
|
|
47
43
|
abortEarly: e?.abortEarly ?? void 0,
|
|
48
44
|
abortPipeEarly: e?.abortPipeEarly ?? void 0
|
|
49
|
-
} :
|
|
45
|
+
} : c;
|
|
50
46
|
}
|
|
51
47
|
/* @__NO_SIDE_EFFECTS__ */
|
|
52
|
-
function
|
|
48
|
+
function u(e) {
|
|
53
49
|
let t = typeof e;
|
|
54
50
|
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
55
51
|
}
|
|
56
|
-
function
|
|
57
|
-
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */
|
|
52
|
+
function d(e, t, n, r, i) {
|
|
53
|
+
let a = i && "input" in i ? i.input : n.value, o = i?.expected ?? e.expects ?? null, s = i?.received ?? /* @__PURE__ */ u(a), c = {
|
|
58
54
|
kind: e.kind,
|
|
59
55
|
type: e.type,
|
|
60
56
|
input: a,
|
|
@@ -67,8 +63,8 @@ function f(e, t, n, r, i) {
|
|
|
67
63
|
lang: r.lang,
|
|
68
64
|
abortEarly: r.abortEarly,
|
|
69
65
|
abortPipeEarly: r.abortPipeEarly
|
|
70
|
-
}, l = e.kind === "schema",
|
|
71
|
-
|
|
66
|
+
}, l = e.kind === "schema", d = i?.message ?? e.message ?? (e.reference, c.lang, void 0) ?? (l ? (c.lang, void 0) : null) ?? r.message ?? (c.lang, void 0);
|
|
67
|
+
d !== void 0 && (c.message = typeof d == "function" ? d(c) : d), l && (n.typed = !1), n.issues ? n.issues.push(c) : n.issues = [c];
|
|
72
68
|
}
|
|
73
69
|
/* @__NO_SIDE_EFFECTS__ */
|
|
74
70
|
function ee(e, t) {
|
|
@@ -79,29 +75,29 @@ function te(e, t) {
|
|
|
79
75
|
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
80
76
|
}
|
|
81
77
|
/* @__NO_SIDE_EFFECTS__ */
|
|
82
|
-
function
|
|
78
|
+
function f(e, t) {
|
|
83
79
|
let n = [...new Set(e)];
|
|
84
80
|
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
85
81
|
}
|
|
86
|
-
function
|
|
82
|
+
function p(e) {
|
|
87
83
|
return e["~standard"] = {
|
|
88
84
|
version: 1,
|
|
89
85
|
vendor: "valibot",
|
|
90
|
-
validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */
|
|
86
|
+
validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ l())
|
|
91
87
|
}, e;
|
|
92
88
|
}
|
|
93
89
|
/* @__NO_SIDE_EFFECTS__ */
|
|
94
|
-
function
|
|
90
|
+
function m(e, t) {
|
|
95
91
|
return {
|
|
96
92
|
kind: "validation",
|
|
97
93
|
type: "min_length",
|
|
98
|
-
reference:
|
|
94
|
+
reference: m,
|
|
99
95
|
async: !1,
|
|
100
96
|
expects: `>=${e}`,
|
|
101
97
|
requirement: e,
|
|
102
98
|
message: t,
|
|
103
99
|
"~run"(e, t) {
|
|
104
|
-
return e.typed && e.value.length < this.requirement &&
|
|
100
|
+
return e.typed && e.value.length < this.requirement && d(this, "length", e, t, { received: `${e.value.length}` }), e;
|
|
105
101
|
}
|
|
106
102
|
};
|
|
107
103
|
}
|
|
@@ -110,15 +106,15 @@ function ne(e, t, n) {
|
|
|
110
106
|
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
111
107
|
}
|
|
112
108
|
/* @__NO_SIDE_EFFECTS__ */
|
|
113
|
-
function
|
|
109
|
+
function h(e, t, n) {
|
|
114
110
|
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
115
111
|
}
|
|
116
112
|
/* @__NO_SIDE_EFFECTS__ */
|
|
117
|
-
function
|
|
118
|
-
return
|
|
113
|
+
function g(e, t) {
|
|
114
|
+
return p({
|
|
119
115
|
kind: "schema",
|
|
120
116
|
type: "array",
|
|
121
|
-
reference:
|
|
117
|
+
reference: g,
|
|
122
118
|
expects: "Array",
|
|
123
119
|
async: !1,
|
|
124
120
|
item: e,
|
|
@@ -145,90 +141,90 @@ function _(e, t) {
|
|
|
145
141
|
}
|
|
146
142
|
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
147
143
|
}
|
|
148
|
-
} else
|
|
144
|
+
} else d(this, "type", e, t);
|
|
149
145
|
return e;
|
|
150
146
|
}
|
|
151
147
|
});
|
|
152
148
|
}
|
|
153
149
|
/* @__NO_SIDE_EFFECTS__ */
|
|
154
|
-
function
|
|
155
|
-
return
|
|
150
|
+
function _(e) {
|
|
151
|
+
return p({
|
|
156
152
|
kind: "schema",
|
|
157
153
|
type: "boolean",
|
|
158
|
-
reference:
|
|
154
|
+
reference: _,
|
|
159
155
|
expects: "boolean",
|
|
160
156
|
async: !1,
|
|
161
157
|
message: e,
|
|
162
158
|
"~run"(e, t) {
|
|
163
|
-
return typeof e.value == "boolean" ? e.typed = !0 :
|
|
159
|
+
return typeof e.value == "boolean" ? e.typed = !0 : d(this, "type", e, t), e;
|
|
164
160
|
}
|
|
165
161
|
});
|
|
166
162
|
}
|
|
167
163
|
/* @__NO_SIDE_EFFECTS__ */
|
|
168
|
-
function
|
|
169
|
-
return
|
|
164
|
+
function v(e, t) {
|
|
165
|
+
return p({
|
|
170
166
|
kind: "schema",
|
|
171
167
|
type: "literal",
|
|
172
|
-
reference:
|
|
173
|
-
expects: /* @__PURE__ */
|
|
168
|
+
reference: v,
|
|
169
|
+
expects: /* @__PURE__ */ u(e),
|
|
174
170
|
async: !1,
|
|
175
171
|
literal: e,
|
|
176
172
|
message: t,
|
|
177
173
|
"~run"(e, t) {
|
|
178
|
-
return /* @__PURE__ */ ee(e.value, this.literal) ? e.typed = !0 :
|
|
174
|
+
return /* @__PURE__ */ ee(e.value, this.literal) ? e.typed = !0 : d(this, "type", e, t), e;
|
|
179
175
|
}
|
|
180
176
|
});
|
|
181
177
|
}
|
|
182
178
|
/* @__NO_SIDE_EFFECTS__ */
|
|
183
|
-
function
|
|
184
|
-
return
|
|
179
|
+
function y(e, t) {
|
|
180
|
+
return p({
|
|
185
181
|
kind: "schema",
|
|
186
182
|
type: "nullable",
|
|
187
|
-
reference:
|
|
183
|
+
reference: y,
|
|
188
184
|
expects: `(${e.expects} | null)`,
|
|
189
185
|
async: !1,
|
|
190
186
|
wrapped: e,
|
|
191
187
|
default: t,
|
|
192
188
|
"~run"(e, t) {
|
|
193
|
-
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
189
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
194
190
|
}
|
|
195
191
|
});
|
|
196
192
|
}
|
|
197
193
|
/* @__NO_SIDE_EFFECTS__ */
|
|
198
|
-
function
|
|
199
|
-
return
|
|
194
|
+
function b(e) {
|
|
195
|
+
return p({
|
|
200
196
|
kind: "schema",
|
|
201
197
|
type: "number",
|
|
202
|
-
reference:
|
|
198
|
+
reference: b,
|
|
203
199
|
expects: "number",
|
|
204
200
|
async: !1,
|
|
205
201
|
message: e,
|
|
206
202
|
"~run"(e, t) {
|
|
207
|
-
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 :
|
|
203
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : d(this, "type", e, t), e;
|
|
208
204
|
}
|
|
209
205
|
});
|
|
210
206
|
}
|
|
211
207
|
/* @__NO_SIDE_EFFECTS__ */
|
|
212
|
-
function
|
|
213
|
-
return
|
|
208
|
+
function x(e, t) {
|
|
209
|
+
return p({
|
|
214
210
|
kind: "schema",
|
|
215
211
|
type: "optional",
|
|
216
|
-
reference:
|
|
212
|
+
reference: x,
|
|
217
213
|
expects: `(${e.expects} | undefined)`,
|
|
218
214
|
async: !1,
|
|
219
215
|
wrapped: e,
|
|
220
216
|
default: t,
|
|
221
217
|
"~run"(e, t) {
|
|
222
|
-
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */
|
|
218
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ h(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
223
219
|
}
|
|
224
220
|
});
|
|
225
221
|
}
|
|
226
222
|
/* @__NO_SIDE_EFFECTS__ */
|
|
227
|
-
function
|
|
228
|
-
return
|
|
223
|
+
function S(e, t, n) {
|
|
224
|
+
return p({
|
|
229
225
|
kind: "schema",
|
|
230
226
|
type: "record",
|
|
231
|
-
reference:
|
|
227
|
+
reference: S,
|
|
232
228
|
expects: "Object",
|
|
233
229
|
async: !1,
|
|
234
230
|
key: e,
|
|
@@ -269,19 +265,19 @@ function C(e, t, n) {
|
|
|
269
265
|
break;
|
|
270
266
|
}
|
|
271
267
|
}
|
|
272
|
-
|
|
268
|
+
a.typed && o.typed || (e.typed = !1), a.typed && (e.value[a.value] = o.value);
|
|
273
269
|
}
|
|
274
|
-
} else
|
|
270
|
+
} else d(this, "type", e, t);
|
|
275
271
|
return e;
|
|
276
272
|
}
|
|
277
273
|
});
|
|
278
274
|
}
|
|
279
275
|
/* @__NO_SIDE_EFFECTS__ */
|
|
280
|
-
function
|
|
281
|
-
return
|
|
276
|
+
function C(e, t) {
|
|
277
|
+
return p({
|
|
282
278
|
kind: "schema",
|
|
283
279
|
type: "strict_object",
|
|
284
|
-
reference:
|
|
280
|
+
reference: C,
|
|
285
281
|
expects: "Object",
|
|
286
282
|
async: !1,
|
|
287
283
|
entries: e,
|
|
@@ -293,7 +289,7 @@ function w(e, t) {
|
|
|
293
289
|
for (let r in this.entries) {
|
|
294
290
|
let i = this.entries[r];
|
|
295
291
|
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
296
|
-
let a = r in n ? n[r] : /* @__PURE__ */
|
|
292
|
+
let a = r in n ? n[r] : /* @__PURE__ */ h(i), o = i["~run"]({ value: a }, t);
|
|
297
293
|
if (o.issues) {
|
|
298
294
|
let i = {
|
|
299
295
|
type: "object",
|
|
@@ -310,7 +306,7 @@ function w(e, t) {
|
|
|
310
306
|
}
|
|
311
307
|
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
312
308
|
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ne(i);
|
|
313
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (
|
|
309
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (d(this, "key", e, t, {
|
|
314
310
|
input: void 0,
|
|
315
311
|
expected: `"${r}"`,
|
|
316
312
|
path: [{
|
|
@@ -324,7 +320,7 @@ function w(e, t) {
|
|
|
324
320
|
}
|
|
325
321
|
if (!e.issues || !t.abortEarly) {
|
|
326
322
|
for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
|
|
327
|
-
|
|
323
|
+
d(this, "key", e, t, {
|
|
328
324
|
input: r,
|
|
329
325
|
expected: "never",
|
|
330
326
|
path: [{
|
|
@@ -338,39 +334,39 @@ function w(e, t) {
|
|
|
338
334
|
break;
|
|
339
335
|
}
|
|
340
336
|
}
|
|
341
|
-
} else
|
|
337
|
+
} else d(this, "type", e, t);
|
|
342
338
|
return e;
|
|
343
339
|
}
|
|
344
340
|
});
|
|
345
341
|
}
|
|
346
342
|
/* @__NO_SIDE_EFFECTS__ */
|
|
347
|
-
function
|
|
348
|
-
return
|
|
343
|
+
function w(e) {
|
|
344
|
+
return p({
|
|
349
345
|
kind: "schema",
|
|
350
346
|
type: "string",
|
|
351
|
-
reference:
|
|
347
|
+
reference: w,
|
|
352
348
|
expects: "string",
|
|
353
349
|
async: !1,
|
|
354
350
|
message: e,
|
|
355
351
|
"~run"(e, t) {
|
|
356
|
-
return typeof e.value == "string" ? e.typed = !0 :
|
|
352
|
+
return typeof e.value == "string" ? e.typed = !0 : d(this, "type", e, t), e;
|
|
357
353
|
}
|
|
358
354
|
});
|
|
359
355
|
}
|
|
360
356
|
/* @__NO_SIDE_EFFECTS__ */
|
|
361
|
-
function
|
|
357
|
+
function T(e) {
|
|
362
358
|
let t;
|
|
363
359
|
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
364
360
|
else t = n.issues;
|
|
365
361
|
return t;
|
|
366
362
|
}
|
|
367
363
|
/* @__NO_SIDE_EFFECTS__ */
|
|
368
|
-
function
|
|
369
|
-
return
|
|
364
|
+
function E(e, t) {
|
|
365
|
+
return p({
|
|
370
366
|
kind: "schema",
|
|
371
367
|
type: "union",
|
|
372
|
-
reference:
|
|
373
|
-
expects: /* @__PURE__ */
|
|
368
|
+
reference: E,
|
|
369
|
+
expects: /* @__PURE__ */ f(e.map((e) => e.expects), "|"),
|
|
374
370
|
async: !1,
|
|
375
371
|
options: e,
|
|
376
372
|
message: t,
|
|
@@ -389,16 +385,16 @@ function D(e, t) {
|
|
|
389
385
|
if (n) return n;
|
|
390
386
|
if (r) {
|
|
391
387
|
if (r.length === 1) return r[0];
|
|
392
|
-
|
|
388
|
+
d(this, "type", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;
|
|
393
389
|
} else if (i?.length === 1) return i[0];
|
|
394
|
-
else
|
|
390
|
+
else d(this, "type", e, t, { issues: /* @__PURE__ */ T(i) });
|
|
395
391
|
return e;
|
|
396
392
|
}
|
|
397
393
|
});
|
|
398
394
|
}
|
|
399
395
|
/* @__NO_SIDE_EFFECTS__ */
|
|
400
396
|
function re(...e) {
|
|
401
|
-
return
|
|
397
|
+
return p({
|
|
402
398
|
...e[0],
|
|
403
399
|
pipe: e,
|
|
404
400
|
"~run"(t, n) {
|
|
@@ -407,28 +403,28 @@ function re(...e) {
|
|
|
407
403
|
t.typed = !1;
|
|
408
404
|
break;
|
|
409
405
|
}
|
|
410
|
-
|
|
406
|
+
t.issues && (n.abortEarly || n.abortPipeEarly) || (t = r["~run"](t, n));
|
|
411
407
|
}
|
|
412
408
|
return t;
|
|
413
409
|
}
|
|
414
410
|
});
|
|
415
411
|
}
|
|
416
|
-
var
|
|
417
|
-
en: /* @__PURE__ */
|
|
418
|
-
es: /* @__PURE__ */
|
|
412
|
+
var D = /* @__PURE__ */ C({
|
|
413
|
+
en: /* @__PURE__ */ w(),
|
|
414
|
+
es: /* @__PURE__ */ w()
|
|
419
415
|
}), ie = {
|
|
420
|
-
id: /* @__PURE__ */
|
|
421
|
-
label: /* @__PURE__ */
|
|
422
|
-
en: /* @__PURE__ */
|
|
423
|
-
es: /* @__PURE__ */
|
|
416
|
+
id: /* @__PURE__ */ w(),
|
|
417
|
+
label: /* @__PURE__ */ C({
|
|
418
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
419
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
424
420
|
}),
|
|
425
|
-
description: /* @__PURE__ */
|
|
426
|
-
en: /* @__PURE__ */
|
|
427
|
-
es: /* @__PURE__ */
|
|
421
|
+
description: /* @__PURE__ */ C({
|
|
422
|
+
en: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
423
|
+
es: /* @__PURE__ */ x(/* @__PURE__ */ w())
|
|
428
424
|
}),
|
|
429
|
-
icon: /* @__PURE__ */
|
|
430
|
-
iconDark: /* @__PURE__ */
|
|
431
|
-
},
|
|
425
|
+
icon: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
426
|
+
iconDark: /* @__PURE__ */ y(/* @__PURE__ */ w())
|
|
427
|
+
}, O = (e) => /* @__PURE__ */ E(e.map((e) => /* @__PURE__ */ v(e))), ae = O([
|
|
432
428
|
"app",
|
|
433
429
|
"connector",
|
|
434
430
|
"connectorConnection",
|
|
@@ -450,33 +446,33 @@ var O = /* @__PURE__ */ w({
|
|
|
450
446
|
"presenter",
|
|
451
447
|
"presenterPresentation",
|
|
452
448
|
"tool"
|
|
453
|
-
]), oe =
|
|
449
|
+
]), oe = O([
|
|
454
450
|
"danger",
|
|
455
451
|
"success",
|
|
456
452
|
"warning"
|
|
457
|
-
]), se =
|
|
453
|
+
]), se = O([
|
|
458
454
|
"alpha",
|
|
459
455
|
"beta",
|
|
460
456
|
"releaseCandidate",
|
|
461
457
|
"generalAvailability"
|
|
462
|
-
]), ce = /* @__PURE__ */
|
|
458
|
+
]), ce = /* @__PURE__ */ C({
|
|
463
459
|
color: oe,
|
|
464
|
-
label: /* @__PURE__ */
|
|
465
|
-
}),
|
|
460
|
+
label: /* @__PURE__ */ w()
|
|
461
|
+
}), k = {
|
|
466
462
|
...ie,
|
|
467
463
|
typeId: ae
|
|
468
|
-
}, le = /* @__PURE__ */
|
|
469
|
-
...
|
|
470
|
-
order: /* @__PURE__ */
|
|
471
|
-
path: /* @__PURE__ */
|
|
472
|
-
}),
|
|
473
|
-
...
|
|
474
|
-
firstCreatedAt: /* @__PURE__ */
|
|
475
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
476
|
-
status: /* @__PURE__ */
|
|
477
|
-
statusId: /* @__PURE__ */
|
|
464
|
+
}, le = /* @__PURE__ */ C({
|
|
465
|
+
...k,
|
|
466
|
+
order: /* @__PURE__ */ b(),
|
|
467
|
+
path: /* @__PURE__ */ w()
|
|
468
|
+
}), A = {
|
|
469
|
+
...k,
|
|
470
|
+
firstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
471
|
+
lastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
472
|
+
status: /* @__PURE__ */ y(ce),
|
|
473
|
+
statusId: /* @__PURE__ */ y(se)
|
|
478
474
|
};
|
|
479
|
-
({ ...
|
|
475
|
+
({ ...A }), O([
|
|
480
476
|
"app",
|
|
481
477
|
"engine",
|
|
482
478
|
"connector",
|
|
@@ -484,15 +480,15 @@ var O = /* @__PURE__ */ w({
|
|
|
484
480
|
"presenter",
|
|
485
481
|
"tool"
|
|
486
482
|
]);
|
|
487
|
-
var
|
|
488
|
-
...
|
|
489
|
-
vendorAccountURL: /* @__PURE__ */
|
|
490
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
491
|
-
vendorHomeURL: /* @__PURE__ */
|
|
492
|
-
version: /* @__PURE__ */
|
|
483
|
+
var j = {
|
|
484
|
+
...A,
|
|
485
|
+
vendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
486
|
+
vendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
487
|
+
vendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),
|
|
488
|
+
version: /* @__PURE__ */ w()
|
|
493
489
|
};
|
|
494
|
-
({ ...
|
|
495
|
-
var ue =
|
|
490
|
+
({ ...j });
|
|
491
|
+
var ue = O([
|
|
496
492
|
"abortOperation",
|
|
497
493
|
"auditObjectContent",
|
|
498
494
|
"closeStore",
|
|
@@ -512,44 +508,44 @@ var ue = k([
|
|
|
512
508
|
"retrieveChunks",
|
|
513
509
|
"retrieveRecords",
|
|
514
510
|
"upsertRecords"
|
|
515
|
-
]), de =
|
|
511
|
+
]), de = O([
|
|
516
512
|
"application",
|
|
517
513
|
"curatedDataset",
|
|
518
514
|
"database",
|
|
519
515
|
"fileStore"
|
|
520
|
-
]), fe = /* @__PURE__ */
|
|
516
|
+
]), fe = /* @__PURE__ */ C({ label: D }), pe = O([
|
|
521
517
|
"apiEndpoint",
|
|
522
518
|
"file",
|
|
523
519
|
"table"
|
|
524
|
-
]), me =
|
|
520
|
+
]), me = O([
|
|
525
521
|
"bidirectional",
|
|
526
522
|
"destination",
|
|
527
523
|
"source",
|
|
528
524
|
"unknown"
|
|
529
|
-
]), he = /* @__PURE__ */
|
|
530
|
-
authMethodId:
|
|
525
|
+
]), he = /* @__PURE__ */ C({ label: D }), ge = /* @__PURE__ */ C({
|
|
526
|
+
authMethodId: O([
|
|
531
527
|
"apiKey",
|
|
532
528
|
"disabled",
|
|
533
529
|
"oAuth2",
|
|
534
530
|
"none"
|
|
535
531
|
]),
|
|
536
|
-
activeConnectionCount: /* @__PURE__ */
|
|
537
|
-
canDescribe: /* @__PURE__ */
|
|
538
|
-
id: /* @__PURE__ */
|
|
539
|
-
label: /* @__PURE__ */
|
|
540
|
-
maxConnectionCount: /* @__PURE__ */
|
|
541
|
-
params: /* @__PURE__ */
|
|
542
|
-
}), _e = /* @__PURE__ */
|
|
543
|
-
...
|
|
544
|
-
typeId: /* @__PURE__ */
|
|
545
|
-
actionNames: /* @__PURE__ */
|
|
546
|
-
category: /* @__PURE__ */
|
|
532
|
+
activeConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),
|
|
533
|
+
canDescribe: /* @__PURE__ */ x(/* @__PURE__ */ _()),
|
|
534
|
+
id: /* @__PURE__ */ x(/* @__PURE__ */ w()),
|
|
535
|
+
label: /* @__PURE__ */ x(D),
|
|
536
|
+
maxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),
|
|
537
|
+
params: /* @__PURE__ */ x(/* @__PURE__ */ g(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))
|
|
538
|
+
}), _e = /* @__PURE__ */ C({
|
|
539
|
+
...j,
|
|
540
|
+
typeId: /* @__PURE__ */ v("connector"),
|
|
541
|
+
actionNames: /* @__PURE__ */ g(ue),
|
|
542
|
+
category: /* @__PURE__ */ y(fe),
|
|
547
543
|
categoryId: de,
|
|
548
|
-
implementations: /* @__PURE__ */
|
|
544
|
+
implementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), ge),
|
|
549
545
|
itemTypeId: pe,
|
|
550
|
-
usage: /* @__PURE__ */
|
|
551
|
-
usageId: /* @__PURE__ */
|
|
552
|
-
}), ve = /* @__PURE__ */
|
|
546
|
+
usage: /* @__PURE__ */ y(he),
|
|
547
|
+
usageId: /* @__PURE__ */ y(me)
|
|
548
|
+
}), ve = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ re(/* @__PURE__ */ g(O([
|
|
553
549
|
"arrow",
|
|
554
550
|
"avro",
|
|
555
551
|
"dtv",
|
|
@@ -562,12 +558,12 @@ var ue = k([
|
|
|
562
558
|
"sqlite",
|
|
563
559
|
"xlsx",
|
|
564
560
|
"xml"
|
|
565
|
-
])), /* @__PURE__ */
|
|
566
|
-
...
|
|
567
|
-
typeId: /* @__PURE__ */
|
|
568
|
-
actionNames: /* @__PURE__ */
|
|
569
|
-
parser: /* @__PURE__ */
|
|
570
|
-
}),
|
|
561
|
+
])), /* @__PURE__ */ m(1)) }), M = /* @__PURE__ */ g(/* @__PURE__ */ w()), N = /* @__PURE__ */ C({
|
|
562
|
+
...j,
|
|
563
|
+
typeId: /* @__PURE__ */ v("tool"),
|
|
564
|
+
actionNames: /* @__PURE__ */ x(M),
|
|
565
|
+
parser: /* @__PURE__ */ x(ve)
|
|
566
|
+
}), P = {
|
|
571
567
|
abortOperation: "Abort Operation",
|
|
572
568
|
auditObjectContent: "Audit Object Content",
|
|
573
569
|
closeStore: "Close Store",
|
|
@@ -587,13 +583,13 @@ var ue = k([
|
|
|
587
583
|
retrieveChunks: "Retrieve Chunks",
|
|
588
584
|
retrieveRecords: "Retrieve Records",
|
|
589
585
|
upsertRecords: "Upsert Records"
|
|
590
|
-
},
|
|
586
|
+
}, F = /* @__PURE__ */ new Set([
|
|
591
587
|
"createObject",
|
|
592
588
|
"dropObject",
|
|
593
589
|
"loadObjectRecords",
|
|
594
590
|
"removeRecords",
|
|
595
591
|
"upsertRecords"
|
|
596
|
-
]),
|
|
592
|
+
]), ye = /* @__PURE__ */ new Set([
|
|
597
593
|
"auditObjectContent",
|
|
598
594
|
"findObject",
|
|
599
595
|
"getInfo",
|
|
@@ -607,25 +603,25 @@ var ue = k([
|
|
|
607
603
|
]);
|
|
608
604
|
function I(e) {
|
|
609
605
|
let t = !1, n = !1;
|
|
610
|
-
for (let r of e)
|
|
606
|
+
for (let r of e) ye.has(r) && (t = !0), F.has(r) && (n = !0);
|
|
611
607
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
612
608
|
}
|
|
613
|
-
function
|
|
609
|
+
function be(e) {
|
|
614
610
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
615
611
|
n += "|:----|:-------:|\n";
|
|
616
|
-
for (let e of Object.keys(
|
|
612
|
+
for (let e of Object.keys(P)) n += `| ${P[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
617
613
|
return n;
|
|
618
614
|
}
|
|
619
|
-
|
|
620
|
-
var
|
|
615
|
+
O(["list"]), { ...j };
|
|
616
|
+
var xe = O([
|
|
621
617
|
"list",
|
|
622
618
|
"render",
|
|
623
619
|
"setColorMode"
|
|
624
|
-
]),
|
|
625
|
-
...
|
|
626
|
-
typeId: /* @__PURE__ */
|
|
627
|
-
actionNames: /* @__PURE__ */
|
|
628
|
-
presentations: /* @__PURE__ */
|
|
620
|
+
]), Se = /* @__PURE__ */ C({
|
|
621
|
+
...j,
|
|
622
|
+
typeId: /* @__PURE__ */ v("presenter"),
|
|
623
|
+
actionNames: /* @__PURE__ */ g(xe),
|
|
624
|
+
presentations: /* @__PURE__ */ g(le)
|
|
629
625
|
}), L = /* @__PURE__ */ new Map([
|
|
630
626
|
["arrow", "application/vnd.apache.arrow.file"],
|
|
631
627
|
["avro", "application/vnd.apache.avro"],
|
|
@@ -648,24 +644,23 @@ var Se = k([
|
|
|
648
644
|
["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
|
|
649
645
|
["xml", "application/xml"]
|
|
650
646
|
]);
|
|
651
|
-
function
|
|
647
|
+
function Ce(e) {
|
|
652
648
|
if (!e) return;
|
|
653
|
-
let t =
|
|
649
|
+
let t = Ee(e);
|
|
654
650
|
return t === void 0 ? void 0 : e.slice(t + 1);
|
|
655
651
|
}
|
|
656
|
-
function
|
|
652
|
+
function we(e) {
|
|
657
653
|
return e != null && L.has(e.toLowerCase());
|
|
658
654
|
}
|
|
659
|
-
function
|
|
655
|
+
function Te(e) {
|
|
660
656
|
return (e == null ? void 0 : L.get(e.toLowerCase())) ?? "application/octet-stream";
|
|
661
657
|
}
|
|
662
|
-
function
|
|
658
|
+
function Ee(e) {
|
|
663
659
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
664
660
|
return n > t && n < e.length - 1 ? n : void 0;
|
|
665
661
|
}
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
var Oe = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), R = "code-health-reports/fallow", ke = `${R}/badge.json`, Ae = `${R}/index.md`, z = "<!-- CONTRIBUTING_LICENSE_END -->", B = "<!-- CONTRIBUTING_LICENSE_START -->", je = "<!-- GOVERNANCE_END -->", Me = "<!-- GOVERNANCE_START -->", V = "<!-- QUALITY_SECURITY_END -->", H = "<!-- QUALITY_SECURITY_START -->", Ne = "rust/Cargo.toml", Pe = [
|
|
662
|
+
// src/utilities/index.ts
|
|
663
|
+
var De = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-config-dpuse"]), R = "code-health-reports/fallow", Oe = `${R}/badge.json`, ke = `${R}/index.md`, z = "<!-- CONTRIBUTING_LICENSE_END -->", B = "<!-- CONTRIBUTING_LICENSE_START -->", Ae = "<!-- GOVERNANCE_END -->", je = "<!-- GOVERNANCE_START -->", V = "<!-- QUALITY_SECURITY_END -->", H = "<!-- QUALITY_SECURITY_START -->", Me = "rust/Cargo.toml", Ne = [
|
|
669
664
|
{
|
|
670
665
|
idPrefix: "dpuse-app",
|
|
671
666
|
typeId: "app",
|
|
@@ -750,8 +745,8 @@ var Oe = /* @__PURE__ */ new Set(["@dpuse/dpuse-development", "@dpuse/eslint-con
|
|
|
750
745
|
publishedTo: "github",
|
|
751
746
|
uploadGroupName: void 0
|
|
752
747
|
}
|
|
753
|
-
],
|
|
754
|
-
async function
|
|
748
|
+
], Pe = n(r);
|
|
749
|
+
async function Fe(n, r) {
|
|
755
750
|
n !== void 0 && J(`${n} - clear(${r})`);
|
|
756
751
|
let i;
|
|
757
752
|
try {
|
|
@@ -772,15 +767,15 @@ async function Ie(n, r) {
|
|
|
772
767
|
}
|
|
773
768
|
}));
|
|
774
769
|
}
|
|
775
|
-
async function
|
|
770
|
+
async function Ie(t, n) {
|
|
776
771
|
return e.readdir(t, n);
|
|
777
772
|
}
|
|
778
|
-
async function
|
|
773
|
+
async function Le(t, n, r, i) {
|
|
779
774
|
t !== void 0 && J(`${t} - exec(${n} ${r.join(" ")})`);
|
|
780
|
-
let { stdout: a, stderr: o } = await
|
|
775
|
+
let { stdout: a, stderr: o } = await Pe(n, r);
|
|
781
776
|
i === void 0 ? a.trim() && console.log(a.trim()) : await e.writeFile(i, a.trim(), "utf-8"), o.trim() && console.error(o.trim());
|
|
782
777
|
}
|
|
783
|
-
async function
|
|
778
|
+
async function Re(e, t, n, r = !1, a = !1) {
|
|
784
779
|
return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, o) => {
|
|
785
780
|
i(t, n, {
|
|
786
781
|
shell: a,
|
|
@@ -790,7 +785,7 @@ async function ze(e, t, n, r = !1, a = !1) {
|
|
|
790
785
|
});
|
|
791
786
|
});
|
|
792
787
|
}
|
|
793
|
-
async function
|
|
788
|
+
async function ze(e, t, n) {
|
|
794
789
|
return J(`${e} - spawn(${t} ${n.join(" ")})`), new Promise((e, r) => {
|
|
795
790
|
let a = i(t, n, {
|
|
796
791
|
shell: !1,
|
|
@@ -807,7 +802,7 @@ async function Be(e, t, n) {
|
|
|
807
802
|
});
|
|
808
803
|
});
|
|
809
804
|
}
|
|
810
|
-
async function
|
|
805
|
+
async function Be(n, r, a, o, s = !1) {
|
|
811
806
|
return J(`${n} - spawn(${r} ${a.join(" ")}) > ${o}`), new Promise((n, c) => {
|
|
812
807
|
let l = i(r, a, {
|
|
813
808
|
shell: !1,
|
|
@@ -830,8 +825,8 @@ async function Ve(n, r, a, o, s = !1) {
|
|
|
830
825
|
});
|
|
831
826
|
});
|
|
832
827
|
}
|
|
833
|
-
async function
|
|
834
|
-
let e = await W("./README.md"), t = e.indexOf(
|
|
828
|
+
async function Ve() {
|
|
829
|
+
let e = await W("./README.md"), t = e.indexOf(je), n = e.indexOf(Ae);
|
|
835
830
|
if (t === -1 || n === -1) return;
|
|
836
831
|
let r = `${H}\n${V}\n\n${B}\n${z}`;
|
|
837
832
|
await q("README.md", `${e.slice(0, t)}${r}${e.slice(n + 23)}`);
|
|
@@ -850,36 +845,36 @@ async function G(t) {
|
|
|
850
845
|
throw e;
|
|
851
846
|
}
|
|
852
847
|
}
|
|
853
|
-
function
|
|
848
|
+
function He(e) {
|
|
854
849
|
let t = e.slice(e.lastIndexOf("/") + 1);
|
|
855
850
|
if (t === "LICENSE") return "text/plain";
|
|
856
|
-
let n =
|
|
857
|
-
return
|
|
851
|
+
let n = Ce(t);
|
|
852
|
+
return we(n) || console.warn(`⚠️ No content type for '${e}', so it is treated as 'application/octet-stream'. Add its extension to dpuse-shared.`), Te(n);
|
|
858
853
|
}
|
|
859
854
|
async function K(n, r) {
|
|
860
855
|
await e.mkdir(t.dirname(n), { recursive: !0 }), await e.writeFile(n, `${JSON.stringify(r, void 0, 4)}\n`, "utf-8");
|
|
861
856
|
}
|
|
862
|
-
async function
|
|
863
|
-
await q("README.md",
|
|
857
|
+
async function Ue(e, t, n) {
|
|
858
|
+
await q("README.md", $e(await W("./README.md"), e, t, n));
|
|
864
859
|
}
|
|
865
860
|
async function q(t, n) {
|
|
866
861
|
await e.writeFile(t, n, "utf-8");
|
|
867
862
|
}
|
|
868
|
-
function
|
|
863
|
+
function We(e) {
|
|
869
864
|
console.info("\x1B[36m────────────────────────────────────────────────────────────────────────────────"), console.info(`▶️ ${e}[0m`);
|
|
870
865
|
}
|
|
871
|
-
function
|
|
866
|
+
function Ge(e) {
|
|
872
867
|
console.info(`✅ ${e}`);
|
|
873
868
|
}
|
|
874
869
|
function J(e) {
|
|
875
870
|
console.info(e);
|
|
876
871
|
}
|
|
877
|
-
function
|
|
878
|
-
let t =
|
|
872
|
+
function Ke(e) {
|
|
873
|
+
let t = Ne.find((t) => e.startsWith(t.idPrefix));
|
|
879
874
|
if (!t) throw Error(`Failed to locate module type configuration for identifier '${e}'.`);
|
|
880
875
|
return t;
|
|
881
876
|
}
|
|
882
|
-
function
|
|
877
|
+
function qe(e, t) {
|
|
883
878
|
let n = e.repository, r = typeof n == "string" ? n : n?.url;
|
|
884
879
|
if (r == null || r === "") throw Error(`package.json 'repository' field is required to ${t}.`);
|
|
885
880
|
let i = r.replace(/^git\+/, "").replace(/\.git$/, ""), a = /github\.com[/:]([^/]+)\/([^/]+)$/.exec(i);
|
|
@@ -889,18 +884,18 @@ function Je(e, t) {
|
|
|
889
884
|
repository: a[2]
|
|
890
885
|
};
|
|
891
886
|
}
|
|
892
|
-
async function
|
|
887
|
+
async function Je(t) {
|
|
893
888
|
return await e.stat(t);
|
|
894
889
|
}
|
|
895
|
-
async function
|
|
890
|
+
async function Y(e, t, n) {
|
|
896
891
|
switch (n.typeId) {
|
|
897
|
-
case "connector": return await
|
|
898
|
-
case "presenter": return await
|
|
899
|
-
case "tool": return await
|
|
892
|
+
case "connector": return await Xe(e, t);
|
|
893
|
+
case "presenter": return await Ze(e, t);
|
|
894
|
+
case "tool": return await Qe(e, t);
|
|
900
895
|
default: return await Z(e, t);
|
|
901
896
|
}
|
|
902
897
|
}
|
|
903
|
-
async function
|
|
898
|
+
async function Ye(e, t, n = "./") {
|
|
904
899
|
if (J(`${e} Bump project version`), t.version == null) t.version = "0.0.001", console.warn(`⚠️ Project version initialised to '${t.version}'.`);
|
|
905
900
|
else {
|
|
906
901
|
let e = t.version, n = t.version.split(".");
|
|
@@ -914,21 +909,21 @@ async function X(e) {
|
|
|
914
909
|
};
|
|
915
910
|
return i(n), r;
|
|
916
911
|
}
|
|
917
|
-
async function
|
|
912
|
+
async function Xe(e, t) {
|
|
918
913
|
J(`${e} Build connector project configuration`);
|
|
919
914
|
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(_e, n);
|
|
920
915
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
921
916
|
let a = await X(r);
|
|
922
917
|
return await Q(t, n, a, I(a));
|
|
923
918
|
}
|
|
924
|
-
async function
|
|
919
|
+
async function Ze(e, t) {
|
|
925
920
|
J(`${e} Build presenter project configuration`);
|
|
926
|
-
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(
|
|
921
|
+
let [n, r] = await Promise.all([U("config.json"), W("src/index.ts")]), i = /* @__PURE__ */ s(Se, n);
|
|
927
922
|
if (!i.success) throw console.error("❌ Configuration is invalid:"), console.table(i.issues), Error("Configuration is invalid");
|
|
928
923
|
return await Q(t, n, await X(r));
|
|
929
924
|
}
|
|
930
|
-
async function
|
|
931
|
-
let n = await Z(e, t), r = /* @__PURE__ */ s(
|
|
925
|
+
async function Qe(e, t) {
|
|
926
|
+
let n = await Z(e, t), r = /* @__PURE__ */ s(N.entries.parser, n.parser);
|
|
932
927
|
if (!r.success) throw console.error("❌ The 'parser' configuration is invalid:"), console.table(r.issues), Error("Configuration is invalid");
|
|
933
928
|
return await Q(t, n, await X(await W("src/index.ts")));
|
|
934
929
|
}
|
|
@@ -948,11 +943,10 @@ function $(e) {
|
|
|
948
943
|
], n = Object.entries(e), r = t.flatMap((e) => n.filter(([t]) => t === e)), i = n.filter(([e]) => !t.includes(e)).toSorted(([e], [t]) => e.localeCompare(t, "en", { sensitivity: "base" }));
|
|
949
944
|
return Object.fromEntries([...r, ...i]);
|
|
950
945
|
}
|
|
951
|
-
function
|
|
946
|
+
function $e(e, t, n, r) {
|
|
952
947
|
let i = e.indexOf(n), a = e.indexOf(r);
|
|
953
948
|
if (i === -1 || a === -1) throw Error(`Markers ${n}-${r} not found in content.`);
|
|
954
949
|
let o = t.trim();
|
|
955
950
|
return `${e.slice(0, Math.max(0, i + n.length))}\n\n${o}\n\n${e.slice(Math.max(0, a))}`;
|
|
956
951
|
}
|
|
957
|
-
|
|
958
|
-
export { We as A, G as C, Be as D, ze as E, I as M, xe as N, Ve as O, W as S, Ue as T, Ge as _, R as a, He as b, H as c, Xe as d, Ie as f, Y as g, qe as h, ke as i, q as j, K as k, Ne as l, Le as m, B as n, Ae as o, Re as p, Oe as r, V as s, z as t, Ye as u, Ke as v, Je as w, U as x, J as y };
|
|
952
|
+
export { Ue as A, G as C, ze as D, Re as E, I as M, be as N, Be as O, W as S, He as T, We as _, R as a, Ve as b, H as c, Ye as d, Fe as f, Je as g, Ke as h, Oe as i, q as j, K as k, Me as l, Ie as m, B as n, ke as o, Le as p, De as r, V as s, z as t, Y as u, Ge as v, qe as w, U as x, J as y };
|