@das-fed/utils 6.4.0-test.7.1 → 6.4.0-test.8
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/api-services/i18n/index.d.ts +0 -5
- package/api-services/i18n/index.js +6 -7
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +157 -157
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/file/index.js +45 -44
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js +75 -74
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.d.ts +1 -0
- package/api-services/modules/iot/index.js +51 -50
- package/api-services/modules/iot/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +16 -12
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/create-api-service/sso/index.js +6 -1
- package/create-api-service/sso/index.js.gz +0 -0
- package/esm-map.json +2 -1
- package/package.json +4 -4
|
@@ -17,11 +17,11 @@ function Wr(t, e) {
|
|
|
17
17
|
const { toString: eo } = Object.prototype, { getPrototypeOf: qt } = Object, tt = /* @__PURE__ */ ((t) => (e) => {
|
|
18
18
|
const n = eo.call(e);
|
|
19
19
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
20
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
20
|
+
})(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => tt(e) === t), rt = (t) => (e) => typeof e === t, { isArray: Ae } = Array, Fe = rt("undefined");
|
|
21
21
|
function to(t) {
|
|
22
22
|
return t !== null && !Fe(t) && t.constructor !== null && !Fe(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
23
23
|
}
|
|
24
|
-
const Kr =
|
|
24
|
+
const Kr = X("ArrayBuffer");
|
|
25
25
|
function ro(t) {
|
|
26
26
|
let e;
|
|
27
27
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Kr(t.buffer), e;
|
|
@@ -31,11 +31,11 @@ const no = rt("string"), K = rt("function"), Gr = rt("number"), nt = (t) => t !=
|
|
|
31
31
|
return !1;
|
|
32
32
|
const e = qt(t);
|
|
33
33
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
34
|
-
}, ao =
|
|
34
|
+
}, ao = X("Date"), io = X("File"), so = X("Blob"), lo = X("FileList"), co = (t) => nt(t) && K(t.pipe), uo = (t) => {
|
|
35
35
|
let e;
|
|
36
36
|
return t && (typeof FormData == "function" && t instanceof FormData || K(t.append) && ((e = tt(t)) === "formdata" || // detect form-data instance
|
|
37
37
|
e === "object" && K(t.toString) && t.toString() === "[object FormData]"));
|
|
38
|
-
}, fo =
|
|
38
|
+
}, fo = X("URLSearchParams"), [po, yo, mo, ho] = ["ReadableStream", "Request", "Response", "Headers"].map(X), go = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
39
39
|
function De(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
40
40
|
if (t === null || typeof t > "u")
|
|
41
41
|
return;
|
|
@@ -111,12 +111,12 @@ const vo = (t, e, n, { allOwnKeys: r } = {}) => (De(e, (o, a) => {
|
|
|
111
111
|
for (; (n = t.exec(e)) !== null; )
|
|
112
112
|
r.push(n);
|
|
113
113
|
return r;
|
|
114
|
-
}, To =
|
|
114
|
+
}, To = X("HTMLFormElement"), xo = (t) => t.toLowerCase().replace(
|
|
115
115
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
116
116
|
function(n, r, o) {
|
|
117
117
|
return r.toUpperCase() + o;
|
|
118
118
|
}
|
|
119
|
-
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), $o =
|
|
119
|
+
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), $o = X("RegExp"), Qr = (t, e) => {
|
|
120
120
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
121
121
|
De(n, (o, a) => {
|
|
122
122
|
let i;
|
|
@@ -176,7 +176,7 @@ const Bo = (t) => {
|
|
|
176
176
|
return r;
|
|
177
177
|
};
|
|
178
178
|
return n(t, 0);
|
|
179
|
-
}, Lo =
|
|
179
|
+
}, Lo = X("AsyncFunction"), Uo = (t) => t && (nt(t) || K(t)) && K(t.then) && K(t.catch), Yr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
|
|
180
180
|
o === ce && a === n && r.length && r.shift()();
|
|
181
181
|
}, !1), (o) => {
|
|
182
182
|
r.push(o), ce.postMessage(n, "*");
|
|
@@ -216,7 +216,7 @@ const Bo = (t) => {
|
|
|
216
216
|
inherits: wo,
|
|
217
217
|
toFlatObject: So,
|
|
218
218
|
kindOf: tt,
|
|
219
|
-
kindOfTest:
|
|
219
|
+
kindOfTest: X,
|
|
220
220
|
endsWith: Eo,
|
|
221
221
|
toArray: Ao,
|
|
222
222
|
forEachEntry: Ro,
|
|
@@ -2127,7 +2127,7 @@ const xi = {}, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2127
2127
|
__proto__: null,
|
|
2128
2128
|
default: xi
|
|
2129
2129
|
}, Symbol.toStringTag, { value: "Module" })), Ci = /* @__PURE__ */ Na($i);
|
|
2130
|
-
var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = Vt && vt && typeof vt.get == "function" ? vt.get : null, Nr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, bt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = Qt && bt && typeof bt.get == "function" ? bt.get : null, Fr = Qt && Set.prototype.forEach, Ni = typeof WeakMap == "function" && WeakMap.prototype, $e = Ni ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Dr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, _i = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, An = RegExp.prototype.test, _r = Array.prototype.concat,
|
|
2130
|
+
var Vt = typeof Map == "function" && Map.prototype, vt = Object.getOwnPropertyDescriptor && Vt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, Ye = Vt && vt && typeof vt.get == "function" ? vt.get : null, Nr = Vt && Map.prototype.forEach, Qt = typeof Set == "function" && Set.prototype, bt = Object.getOwnPropertyDescriptor && Qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, Ze = Qt && bt && typeof bt.get == "function" ? bt.get : null, Fr = Qt && Set.prototype.forEach, Ni = typeof WeakMap == "function" && WeakMap.prototype, $e = Ni ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Dr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, _i = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Ir = String.prototype.toLowerCase, An = RegExp.prototype.test, _r = Array.prototype.concat, te = Array.prototype.join, ki = Array.prototype.slice, Br = Math.floor, _t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, wt = Object.getOwnPropertySymbols, Bt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Se = typeof Symbol == "function" && typeof Symbol.iterator == "object", k = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Se || !0) ? Symbol.toStringTag : null, On = Object.prototype.propertyIsEnumerable, Lr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2131
2131
|
return t.__proto__;
|
|
2132
2132
|
} : null);
|
|
2133
2133
|
function Ur(t, e) {
|
|
@@ -2194,7 +2194,7 @@ var Lt = Ci, kr = Lt.custom, Mr = Pn(kr) ? kr : null, Mi = function t(e, n, r, o
|
|
|
2194
2194
|
}
|
|
2195
2195
|
if (typeof e == "function" && !jr(e)) {
|
|
2196
2196
|
var g = Vi(e), y = Ue(e, d);
|
|
2197
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2197
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + te.call(y, ", ") + " }" : "");
|
|
2198
2198
|
}
|
|
2199
2199
|
if (Pn(e)) {
|
|
2200
2200
|
var h = Se ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : Bt.call(e);
|
|
@@ -2209,11 +2209,11 @@ var Lt = Ci, kr = Lt.custom, Mr = Pn(kr) ? kr : null, Mi = function t(e, n, r, o
|
|
|
2209
2209
|
if (e.length === 0)
|
|
2210
2210
|
return "[]";
|
|
2211
2211
|
var v = Ue(e, d);
|
|
2212
|
-
return p && !ns(v) ? "[" + kt(v, p) + "]" : "[ " +
|
|
2212
|
+
return p && !ns(v) ? "[" + kt(v, p) + "]" : "[ " + te.call(v, ", ") + " ]";
|
|
2213
2213
|
}
|
|
2214
2214
|
if (zi(e)) {
|
|
2215
2215
|
var D = Ue(e, d);
|
|
2216
|
-
return !("cause" in Error.prototype) && "cause" in e && !On.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2216
|
+
return !("cause" in Error.prototype) && "cause" in e && !On.call(e, "cause") ? "{ [" + String(e) + "] " + te.call(_r.call("[cause]: " + d(e.cause), D), ", ") + " }" : D.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + te.call(D, ", ") + " }";
|
|
2217
2217
|
}
|
|
2218
2218
|
if (typeof e == "object" && i) {
|
|
2219
2219
|
if (Mr && typeof e[Mr] == "function" && Lt)
|
|
@@ -2252,8 +2252,8 @@ var Lt = Ci, kr = Lt.custom, Mr = Pn(kr) ? kr : null, Mi = function t(e, n, r, o
|
|
|
2252
2252
|
if (typeof globalThis < "u" && e === globalThis || typeof wr < "u" && e === wr)
|
|
2253
2253
|
return "{ [object globalThis] }";
|
|
2254
2254
|
if (!qi(e) && !jr(e)) {
|
|
2255
|
-
var U = Ue(e, d), G = Lr ? Lr(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && k && Object(e) === e && k in e ? Xt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" +
|
|
2256
|
-
return U.length === 0 ? $ + "{}" : p ? $ + "{" + kt(U, p) + "}" : $ + "{ " +
|
|
2255
|
+
var U = Ue(e, d), G = Lr ? Lr(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && k && Object(e) === e && k in e ? Xt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" + te.call(_r.call([], E || [], V || []), ": ") + "] " : "");
|
|
2256
|
+
return U.length === 0 ? $ + "{}" : p ? $ + "{" + kt(U, p) + "}" : $ + "{ " + te.call(U, ", ") + " }";
|
|
2257
2257
|
}
|
|
2258
2258
|
return String(e);
|
|
2259
2259
|
};
|
|
@@ -2427,7 +2427,7 @@ function St(t) {
|
|
|
2427
2427
|
return t + " { ? }";
|
|
2428
2428
|
}
|
|
2429
2429
|
function qr(t, e, n, r) {
|
|
2430
|
-
var o = r ? kt(n, r) :
|
|
2430
|
+
var o = r ? kt(n, r) : te.call(n, ", ");
|
|
2431
2431
|
return t + " (" + e + ") {" + o + "}";
|
|
2432
2432
|
}
|
|
2433
2433
|
function ns(t) {
|
|
@@ -2442,12 +2442,12 @@ function os(t, e) {
|
|
|
2442
2442
|
if (t.indent === " ")
|
|
2443
2443
|
n = " ";
|
|
2444
2444
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2445
|
-
n =
|
|
2445
|
+
n = te.call(Array(t.indent + 1), " ");
|
|
2446
2446
|
else
|
|
2447
2447
|
return null;
|
|
2448
2448
|
return {
|
|
2449
2449
|
base: n,
|
|
2450
|
-
prev:
|
|
2450
|
+
prev: te.call(Array(e + 1), n)
|
|
2451
2451
|
};
|
|
2452
2452
|
}
|
|
2453
2453
|
function kt(t, e) {
|
|
@@ -2455,7 +2455,7 @@ function kt(t, e) {
|
|
|
2455
2455
|
return "";
|
|
2456
2456
|
var n = `
|
|
2457
2457
|
` + e.prev + e.base;
|
|
2458
|
-
return n +
|
|
2458
|
+
return n + te.call(t, "," + n) + `
|
|
2459
2459
|
` + e.prev;
|
|
2460
2460
|
}
|
|
2461
2461
|
function Ue(t, e) {
|
|
@@ -2544,7 +2544,7 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2544
2544
|
},
|
|
2545
2545
|
RFC1738: Et.RFC1738,
|
|
2546
2546
|
RFC3986: Et.RFC3986
|
|
2547
|
-
}, bs = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray,
|
|
2547
|
+
}, bs = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray, Z = function() {
|
|
2548
2548
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2549
2549
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2550
2550
|
return t;
|
|
@@ -2615,18 +2615,18 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2615
2615
|
continue;
|
|
2616
2616
|
}
|
|
2617
2617
|
if (d < 128) {
|
|
2618
|
-
c[c.length] =
|
|
2618
|
+
c[c.length] = Z[d];
|
|
2619
2619
|
continue;
|
|
2620
2620
|
}
|
|
2621
2621
|
if (d < 2048) {
|
|
2622
|
-
c[c.length] =
|
|
2622
|
+
c[c.length] = Z[192 | d >> 6] + Z[128 | d & 63];
|
|
2623
2623
|
continue;
|
|
2624
2624
|
}
|
|
2625
2625
|
if (d < 55296 || d >= 57344) {
|
|
2626
|
-
c[c.length] =
|
|
2626
|
+
c[c.length] = Z[224 | d >> 12] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2627
2627
|
continue;
|
|
2628
2628
|
}
|
|
2629
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2629
|
+
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] = Z[240 | d >> 18] + Z[128 | d >> 12 & 63] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2630
2630
|
}
|
|
2631
2631
|
s += c.join("");
|
|
2632
2632
|
}
|
|
@@ -2673,8 +2673,8 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2673
2673
|
repeat: function(e) {
|
|
2674
2674
|
return e;
|
|
2675
2675
|
}
|
|
2676
|
-
},
|
|
2677
|
-
Ns.apply(t,
|
|
2676
|
+
}, ee = Array.isArray, Ns = Array.prototype.push, In = function(t, e) {
|
|
2677
|
+
Ns.apply(t, ee(e) ? e : [e]);
|
|
2678
2678
|
}, Fs = Date.prototype.toISOString, zr = Ne.default, _ = {
|
|
2679
2679
|
addQueryPrefix: !1,
|
|
2680
2680
|
allowDots: !1,
|
|
@@ -2708,7 +2708,7 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2708
2708
|
}
|
|
2709
2709
|
typeof D.get(Rt) > "u" && (x = 0);
|
|
2710
2710
|
}
|
|
2711
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2711
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && ee(v) && (v = Ke.maybeMap(v, function(z) {
|
|
2712
2712
|
return z instanceof Date ? g(z) : z;
|
|
2713
2713
|
})), v === null) {
|
|
2714
2714
|
if (i)
|
|
@@ -2726,21 +2726,21 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2726
2726
|
if (typeof v > "u")
|
|
2727
2727
|
return V;
|
|
2728
2728
|
var E;
|
|
2729
|
-
if (r === "comma" &&
|
|
2729
|
+
if (r === "comma" && ee(v))
|
|
2730
2730
|
m && l && (v = Ke.maybeMap(v, l)), E = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2731
|
-
else if (
|
|
2731
|
+
else if (ee(c))
|
|
2732
2732
|
E = c;
|
|
2733
2733
|
else {
|
|
2734
2734
|
var O = Object.keys(v);
|
|
2735
2735
|
E = p ? O.sort(p) : O;
|
|
2736
2736
|
}
|
|
2737
|
-
var $ = u ? n.replace(/\./g, "%2E") : n, T = o &&
|
|
2738
|
-
if (a &&
|
|
2737
|
+
var $ = u ? n.replace(/\./g, "%2E") : n, T = o && ee(v) && v.length === 1 ? $ + "[]" : $;
|
|
2738
|
+
if (a && ee(v) && v.length === 0)
|
|
2739
2739
|
return T + "[]";
|
|
2740
2740
|
for (var F = 0; F < E.length; ++F) {
|
|
2741
2741
|
var b = E[F], M = typeof b == "object" && typeof b.value < "u" ? b.value : v[b];
|
|
2742
2742
|
if (!(s && M === null)) {
|
|
2743
|
-
var j = d && u ? b.replace(/\./g, "%2E") : b, q =
|
|
2743
|
+
var j = d && u ? b.replace(/\./g, "%2E") : b, q = ee(v) ? typeof r == "function" ? r(T, j) : T : T + (d ? "." + j : "[" + j + "]");
|
|
2744
2744
|
P.set(e, x);
|
|
2745
2745
|
var se = Fn();
|
|
2746
2746
|
se.set(Rt, P), In(V, t(
|
|
@@ -2752,7 +2752,7 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2752
2752
|
i,
|
|
2753
2753
|
s,
|
|
2754
2754
|
u,
|
|
2755
|
-
r === "comma" && m &&
|
|
2755
|
+
r === "comma" && m && ee(v) ? null : l,
|
|
2756
2756
|
c,
|
|
2757
2757
|
p,
|
|
2758
2758
|
d,
|
|
@@ -2785,7 +2785,7 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2785
2785
|
r = e.format;
|
|
2786
2786
|
}
|
|
2787
2787
|
var o = Ne.formatters[r], a = _.filter;
|
|
2788
|
-
(typeof e.filter == "function" ||
|
|
2788
|
+
(typeof e.filter == "function" || ee(e.filter)) && (a = e.filter);
|
|
2789
2789
|
var i;
|
|
2790
2790
|
if (e.arrayFormat in Dn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = _.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2791
2791
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2813,7 +2813,7 @@ var $n = Re, Pe = Ti, as = Mi, is = _e, ke = $n("%WeakMap%", !0), Me = $n("%Map%
|
|
|
2813
2813
|
};
|
|
2814
2814
|
}, Bs = function(t, e) {
|
|
2815
2815
|
var n = t, r = _s(e), o, a;
|
|
2816
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2816
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : ee(r.filter) && (a = r.filter, o = a);
|
|
2817
2817
|
var i = [];
|
|
2818
2818
|
if (typeof n != "object" || n === null)
|
|
2819
2819
|
return "";
|
|
@@ -3139,16 +3139,16 @@ const er = Ge(), Bn = er.sso ?? !0, el = er.i18n ?? !0, Ln = er.noRedireLogin ??
|
|
|
3139
3139
|
// 排班管理
|
|
3140
3140
|
shift: w(`/api/duty-manage/shift/${qe}`)
|
|
3141
3141
|
// 交接班管理
|
|
3142
|
-
}, sl = "v1", jl = w(`/api/enterpriseright/permission/${sl}`),
|
|
3143
|
-
thingmodel: w(`/api/iot-device/thingmodel/${
|
|
3144
|
-
deviceManage: w(`/api/iot-device/devicemanage/${
|
|
3145
|
-
product: w(`/api/iot-device/product/${
|
|
3146
|
-
productStorage: w(`/api/iot-device/product-storage/${
|
|
3142
|
+
}, sl = "v1", jl = w(`/api/enterpriseright/permission/${sl}`), Q = "v1", ql = w(`/api/iot/${Q}`), zl = {
|
|
3143
|
+
thingmodel: w(`/api/iot-device/thingmodel/${Q}`),
|
|
3144
|
+
deviceManage: w(`/api/iot-device/devicemanage/${Q}`),
|
|
3145
|
+
product: w(`/api/iot-device/product/${Q}`),
|
|
3146
|
+
productStorage: w(`/api/iot-device/product-storage/${Q}`)
|
|
3147
3147
|
}, Hl = {
|
|
3148
|
-
projectDevice: w(`/api/device-relation/deviceproject/${
|
|
3149
|
-
deviceRules: w(`/api/device-relation/devicerule/${
|
|
3150
|
-
project: w(`/api/device-relation/project/${
|
|
3151
|
-
}, tr = w(`/api/oss/minio/${
|
|
3148
|
+
projectDevice: w(`/api/device-relation/deviceproject/${Q}`),
|
|
3149
|
+
deviceRules: w(`/api/device-relation/devicerule/${Q}`),
|
|
3150
|
+
project: w(`/api/device-relation/project/${Q}`)
|
|
3151
|
+
}, tr = w(`/api/oss/minio/${Q}`), ll = w(`/api/progress/accessor/${Q}`), Wl = w(`/api/dms/analysis/${Q}`);
|
|
3152
3152
|
let cl = (t = 21) => {
|
|
3153
3153
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3154
3154
|
for (; t--; ) {
|
|
@@ -3157,7 +3157,7 @@ let cl = (t = 21) => {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
return e;
|
|
3159
3159
|
};
|
|
3160
|
-
const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), pl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = ll.get("progress"),
|
|
3160
|
+
const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), pl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = ll.get("progress"), Kl = () => {
|
|
3161
3161
|
let t = J(!1), e = J(""), n = J(0), r = J("normal"), o = J(!1), a, i = J(""), s = J(""), u = J(""), l = J(""), c = J(!1), p = J(""), d = "", g = J(""), y;
|
|
3162
3162
|
const h = () => {
|
|
3163
3163
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
@@ -3204,16 +3204,16 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3204
3204
|
}
|
|
3205
3205
|
const [Mn, jn] = await st(q).run();
|
|
3206
3206
|
if (Mn) return t.value = !1;
|
|
3207
|
-
const
|
|
3208
|
-
if (!b && (
|
|
3207
|
+
const Y = await ml(jn.data);
|
|
3208
|
+
if (!b && (Y == null ? void 0 : Y.statusCode) != 200 || b && (Y != null && Y.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3209
3209
|
t.value = !1, (nr = window.DasMessage) == null || nr.error({
|
|
3210
|
-
message: (
|
|
3210
|
+
message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
|
|
3211
3211
|
grouping: !0,
|
|
3212
3212
|
repeatNum: 1
|
|
3213
3213
|
});
|
|
3214
3214
|
return;
|
|
3215
3215
|
}
|
|
3216
|
-
const lt = await (E == null ? void 0 : E(
|
|
3216
|
+
const lt = await (E == null ? void 0 : E(Y));
|
|
3217
3217
|
if (T) {
|
|
3218
3218
|
if (!lt.status) {
|
|
3219
3219
|
t.value = !1, r.value = "error";
|
|
@@ -3374,46 +3374,47 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3374
3374
|
let a = "";
|
|
3375
3375
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3376
3376
|
}, r.readAsText(t);
|
|
3377
|
-
}), hl = "v2",
|
|
3377
|
+
}), hl = "v2", Gl = w(`/api/edge/${hl}`), kn = "v1", Jl = w(`/api/justauth/oauth-server/${kn}/visitor`), Vl = w(`/api/justauth/oauth-server/${kn}`), gl = "v1", Ql = w(`/api/knowledge-base/knowledge/${gl}`), vl = "v1", Xl = w(`/api/custom-datasource/custom/${vl}`), bl = "v1", Yl = w(`/api/permission/${bl}`), de = "v1", Zl = w(`/api/customer/customer/${de}`), ec = w(`/api/customer/company/${de}`), tc = w(`/api/customer/customer-grade/${de}`), rc = w(`/api/customer/customer-type/${de}`), nc = {
|
|
3378
3378
|
list: w(`/api/project/${de}/list`),
|
|
3379
3379
|
app: w(`/api/project/${de}/app`),
|
|
3380
3380
|
people: w(`/api/project/${de}/people`)
|
|
3381
|
-
}, wl = "v1",
|
|
3381
|
+
}, wl = "v1", oc = w(`/api/portal/user/${wl}`), Sl = "v1", ac = w(`/api/space-manage/space-tree/${Sl}`), it = "v1", ic = w(`/api/superadmin/portal/${it}`), sc = w(`/api/superadmin/permission/${it}`), lc = w(`/api/superadmin/resource/${it}`), cc = w(`/api/superadmin/license/${it}`), rr = "v1", uc = w(`/api/supply/supplier/${rr}`), fc = w(`/api/supplier/${rr}`), pc = w(`/api/supplier/${rr}/classification`), El = "v1", dc = w(`/api/supply/brand/${El}`), Al = "v2", yc = w(`/api/tool/${Al}`), Ol = "v1", mc = w(`/api/system-config/${Ol}`);
|
|
3382
3382
|
export {
|
|
3383
|
+
Wl as analyApi,
|
|
3383
3384
|
Bl as appManage,
|
|
3384
3385
|
Ll as authentication,
|
|
3385
3386
|
Ul as bemsModules,
|
|
3386
|
-
|
|
3387
|
+
ec as company,
|
|
3387
3388
|
kl as contract,
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3389
|
+
Zl as customer,
|
|
3390
|
+
tc as customerGrade,
|
|
3391
|
+
rc as customerType,
|
|
3392
|
+
Xl as daslink,
|
|
3392
3393
|
Hr as downloadFile,
|
|
3393
3394
|
Ml as dutyModules,
|
|
3394
|
-
|
|
3395
|
+
dc as enterpriseadminBrandModel,
|
|
3395
3396
|
jl as enterpriseright,
|
|
3396
|
-
|
|
3397
|
+
Gl as gatewayEdge,
|
|
3397
3398
|
ql as iot,
|
|
3398
3399
|
tr as iotMinio,
|
|
3399
3400
|
zl as iotModules,
|
|
3400
3401
|
ll as iotProgress,
|
|
3401
3402
|
Hl as iotRelationModules,
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3403
|
+
Jl as justauth,
|
|
3404
|
+
Ql as knowledgeBase,
|
|
3405
|
+
Vl as oauthServer,
|
|
3406
|
+
Yl as permission,
|
|
3407
|
+
oc as portal,
|
|
3408
|
+
nc as projectManage,
|
|
3409
|
+
ac as spaceManage,
|
|
3410
|
+
cc as superadminLicense,
|
|
3411
|
+
sc as superadminPermission,
|
|
3412
|
+
ic as superadminPortal,
|
|
3413
|
+
lc as superadminResource,
|
|
3414
|
+
uc as supplier,
|
|
3415
|
+
pc as supplierClassification,
|
|
3416
|
+
fc as supplierManage,
|
|
3417
|
+
mc as systemConfiguration,
|
|
3418
|
+
yc as tool,
|
|
3419
|
+
Kl as useFile
|
|
3419
3420
|
};
|
|
Binary file
|