@das-fed/utils 6.4.0-dev.75 → 6.4.0-dev.77
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/index.js +75 -74
- 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/esm-map.json +2 -1
- package/package.json +4 -4
package/api-services/index.js
CHANGED
|
@@ -39,11 +39,11 @@ function Kr(t, e) {
|
|
|
39
39
|
const { toString: to } = Object.prototype, { getPrototypeOf: zt } = Object, tt = /* @__PURE__ */ ((t) => (e) => {
|
|
40
40
|
const n = to.call(e);
|
|
41
41
|
return t[n] || (t[n] = n.slice(8, -1).toLowerCase());
|
|
42
|
-
})(/* @__PURE__ */ Object.create(null)),
|
|
42
|
+
})(/* @__PURE__ */ Object.create(null)), X = (t) => (t = t.toLowerCase(), (e) => tt(e) === t), rt = (t) => (e) => typeof e === t, { isArray: Ae } = Array, _e = rt("undefined");
|
|
43
43
|
function ro(t) {
|
|
44
44
|
return t !== null && !_e(t) && t.constructor !== null && !_e(t.constructor) && K(t.constructor.isBuffer) && t.constructor.isBuffer(t);
|
|
45
45
|
}
|
|
46
|
-
const Gr =
|
|
46
|
+
const Gr = X("ArrayBuffer");
|
|
47
47
|
function no(t) {
|
|
48
48
|
let e;
|
|
49
49
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Gr(t.buffer), e;
|
|
@@ -53,11 +53,11 @@ const oo = rt("string"), K = rt("function"), Jr = rt("number"), nt = (t) => t !=
|
|
|
53
53
|
return !1;
|
|
54
54
|
const e = zt(t);
|
|
55
55
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(Symbol.toStringTag in t) && !(Symbol.iterator in t);
|
|
56
|
-
}, io =
|
|
56
|
+
}, io = X("Date"), so = X("File"), lo = X("Blob"), co = X("FileList"), uo = (t) => nt(t) && K(t.pipe), fo = (t) => {
|
|
57
57
|
let e;
|
|
58
58
|
return t && (typeof FormData == "function" && t instanceof FormData || K(t.append) && ((e = tt(t)) === "formdata" || // detect form-data instance
|
|
59
59
|
e === "object" && K(t.toString) && t.toString() === "[object FormData]"));
|
|
60
|
-
}, po =
|
|
60
|
+
}, po = X("URLSearchParams"), [yo, mo, ho, go] = ["ReadableStream", "Request", "Response", "Headers"].map(X), vo = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
61
61
|
function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
62
62
|
if (t === null || typeof t > "u")
|
|
63
63
|
return;
|
|
@@ -133,12 +133,12 @@ const bo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
|
133
133
|
for (; (n = t.exec(e)) !== null; )
|
|
134
134
|
r.push(n);
|
|
135
135
|
return r;
|
|
136
|
-
}, To =
|
|
136
|
+
}, To = X("HTMLFormElement"), $o = (t) => t.toLowerCase().replace(
|
|
137
137
|
/[-_\s]([a-z\d])(\w*)/g,
|
|
138
138
|
function(n, r, o) {
|
|
139
139
|
return r.toUpperCase() + o;
|
|
140
140
|
}
|
|
141
|
-
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Co =
|
|
141
|
+
), ir = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), Co = X("RegExp"), Xr = (t, e) => {
|
|
142
142
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
143
143
|
Fe(n, (o, a) => {
|
|
144
144
|
let i;
|
|
@@ -198,7 +198,7 @@ const Bo = (t) => {
|
|
|
198
198
|
return r;
|
|
199
199
|
};
|
|
200
200
|
return n(t, 0);
|
|
201
|
-
}, Lo =
|
|
201
|
+
}, Lo = X("AsyncFunction"), Uo = (t) => t && (nt(t) || K(t)) && K(t.then) && K(t.catch), Zr = ((t, e) => t ? setImmediate : e ? ((n, r) => (ce.addEventListener("message", ({ source: o, data: a }) => {
|
|
202
202
|
o === ce && a === n && r.length && r.shift()();
|
|
203
203
|
}, !1), (o) => {
|
|
204
204
|
r.push(o), ce.postMessage(n, "*");
|
|
@@ -238,7 +238,7 @@ const Bo = (t) => {
|
|
|
238
238
|
inherits: So,
|
|
239
239
|
toFlatObject: Eo,
|
|
240
240
|
kindOf: tt,
|
|
241
|
-
kindOfTest:
|
|
241
|
+
kindOfTest: X,
|
|
242
242
|
endsWith: Ao,
|
|
243
243
|
toArray: Oo,
|
|
244
244
|
forEachEntry: Po,
|
|
@@ -2149,7 +2149,7 @@ const $i = {}, Ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2149
2149
|
__proto__: null,
|
|
2150
2150
|
default: $i
|
|
2151
2151
|
}, Symbol.toStringTag, { value: "Module" })), Ni = /* @__PURE__ */ _a(Ci);
|
|
2152
|
-
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, _r = Qt && Set.prototype.forEach, _i = typeof WeakMap == "function" && WeakMap.prototype, $e = _i ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Fr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, ki = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, On = RegExp.prototype.test, Ir = Array.prototype.concat,
|
|
2152
|
+
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, _r = Qt && Set.prototype.forEach, _i = typeof WeakMap == "function" && WeakMap.prototype, $e = _i ? WeakMap.prototype.has : null, Fi = typeof WeakSet == "function" && WeakSet.prototype, Ce = Fi ? WeakSet.prototype.has : null, Di = typeof WeakRef == "function" && WeakRef.prototype, Fr = Di ? WeakRef.prototype.deref : null, Ii = Boolean.prototype.valueOf, ki = Object.prototype.toString, Bi = Function.prototype.toString, Li = String.prototype.match, Xt = String.prototype.slice, ae = String.prototype.replace, Ui = String.prototype.toUpperCase, Dr = String.prototype.toLowerCase, On = RegExp.prototype.test, Ir = Array.prototype.concat, te = Array.prototype.join, Mi = Array.prototype.slice, kr = Math.floor, It = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, wt = Object.getOwnPropertySymbols, kt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, Se = typeof Symbol == "function" && typeof Symbol.iterator == "object", U = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === Se || !0) ? Symbol.toStringTag : null, Rn = Object.prototype.propertyIsEnumerable, Br = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
2153
2153
|
return t.__proto__;
|
|
2154
2154
|
} : null);
|
|
2155
2155
|
function Lr(t, e) {
|
|
@@ -2216,7 +2216,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2216
2216
|
}
|
|
2217
2217
|
if (typeof e == "function" && !jr(e)) {
|
|
2218
2218
|
var g = Qi(e), y = Le(e, d);
|
|
2219
|
-
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " +
|
|
2219
|
+
return "[Function" + (g ? ": " + g : " (anonymous)") + "]" + (y.length > 0 ? " { " + te.call(y, ", ") + " }" : "");
|
|
2220
2220
|
}
|
|
2221
2221
|
if (xn(e)) {
|
|
2222
2222
|
var h = Se ? ae.call(String(e), /^(Symbol\(.*\))_[^)]*$/, "$1") : kt.call(e);
|
|
@@ -2231,11 +2231,11 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2231
2231
|
if (e.length === 0)
|
|
2232
2232
|
return "[]";
|
|
2233
2233
|
var v = Le(e, d);
|
|
2234
|
-
return p && !os(v) ? "[" + Ut(v, p) + "]" : "[ " +
|
|
2234
|
+
return p && !os(v) ? "[" + Ut(v, p) + "]" : "[ " + te.call(v, ", ") + " ]";
|
|
2235
2235
|
}
|
|
2236
2236
|
if (Hi(e)) {
|
|
2237
2237
|
var F = Le(e, d);
|
|
2238
|
-
return !("cause" in Error.prototype) && "cause" in e && !Rn.call(e, "cause") ? "{ [" + String(e) + "] " +
|
|
2238
|
+
return !("cause" in Error.prototype) && "cause" in e && !Rn.call(e, "cause") ? "{ [" + String(e) + "] " + te.call(Ir.call("[cause]: " + d(e.cause), F), ", ") + " }" : F.length === 0 ? "[" + String(e) + "]" : "{ [" + String(e) + "] " + te.call(F, ", ") + " }";
|
|
2239
2239
|
}
|
|
2240
2240
|
if (typeof e == "object" && i) {
|
|
2241
2241
|
if (Mr && typeof e[Mr] == "function" && Bt)
|
|
@@ -2274,8 +2274,8 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2274
2274
|
if (typeof globalThis < "u" && e === globalThis || typeof wr < "u" && e === wr)
|
|
2275
2275
|
return "{ [object globalThis] }";
|
|
2276
2276
|
if (!qi(e) && !jr(e)) {
|
|
2277
|
-
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && U && Object(e) === e && U 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 ? "[" +
|
|
2278
|
-
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " +
|
|
2277
|
+
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object, V = e instanceof Object ? "" : "null prototype", E = !G && U && Object(e) === e && U 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(Ir.call([], E || [], V || []), ": ") + "] " : "");
|
|
2278
|
+
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " + te.call(L, ", ") + " }";
|
|
2279
2279
|
}
|
|
2280
2280
|
return String(e);
|
|
2281
2281
|
};
|
|
@@ -2449,7 +2449,7 @@ function St(t) {
|
|
|
2449
2449
|
return t + " { ? }";
|
|
2450
2450
|
}
|
|
2451
2451
|
function zr(t, e, n, r) {
|
|
2452
|
-
var o = r ? Ut(n, r) :
|
|
2452
|
+
var o = r ? Ut(n, r) : te.call(n, ", ");
|
|
2453
2453
|
return t + " (" + e + ") {" + o + "}";
|
|
2454
2454
|
}
|
|
2455
2455
|
function os(t) {
|
|
@@ -2464,12 +2464,12 @@ function as(t, e) {
|
|
|
2464
2464
|
if (t.indent === " ")
|
|
2465
2465
|
n = " ";
|
|
2466
2466
|
else if (typeof t.indent == "number" && t.indent > 0)
|
|
2467
|
-
n =
|
|
2467
|
+
n = te.call(Array(t.indent + 1), " ");
|
|
2468
2468
|
else
|
|
2469
2469
|
return null;
|
|
2470
2470
|
return {
|
|
2471
2471
|
base: n,
|
|
2472
|
-
prev:
|
|
2472
|
+
prev: te.call(Array(e + 1), n)
|
|
2473
2473
|
};
|
|
2474
2474
|
}
|
|
2475
2475
|
function Ut(t, e) {
|
|
@@ -2477,7 +2477,7 @@ function Ut(t, e) {
|
|
|
2477
2477
|
return "";
|
|
2478
2478
|
var n = `
|
|
2479
2479
|
` + e.prev + e.base;
|
|
2480
|
-
return n +
|
|
2480
|
+
return n + te.call(t, "," + n) + `
|
|
2481
2481
|
` + e.prev;
|
|
2482
2482
|
}
|
|
2483
2483
|
function Le(t, e) {
|
|
@@ -2566,7 +2566,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2566
2566
|
},
|
|
2567
2567
|
RFC1738: Et.RFC1738,
|
|
2568
2568
|
RFC3986: Et.RFC3986
|
|
2569
|
-
}, ws = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray,
|
|
2569
|
+
}, ws = Zt, At = Object.prototype.hasOwnProperty, le = Array.isArray, Z = function() {
|
|
2570
2570
|
for (var t = [], e = 0; e < 256; ++e)
|
|
2571
2571
|
t.push("%" + ((e < 16 ? "0" : "") + e.toString(16)).toUpperCase());
|
|
2572
2572
|
return t;
|
|
@@ -2637,18 +2637,18 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2637
2637
|
continue;
|
|
2638
2638
|
}
|
|
2639
2639
|
if (d < 128) {
|
|
2640
|
-
c[c.length] =
|
|
2640
|
+
c[c.length] = Z[d];
|
|
2641
2641
|
continue;
|
|
2642
2642
|
}
|
|
2643
2643
|
if (d < 2048) {
|
|
2644
|
-
c[c.length] =
|
|
2644
|
+
c[c.length] = Z[192 | d >> 6] + Z[128 | d & 63];
|
|
2645
2645
|
continue;
|
|
2646
2646
|
}
|
|
2647
2647
|
if (d < 55296 || d >= 57344) {
|
|
2648
|
-
c[c.length] =
|
|
2648
|
+
c[c.length] = Z[224 | d >> 12] + Z[128 | d >> 6 & 63] + Z[128 | d & 63];
|
|
2649
2649
|
continue;
|
|
2650
2650
|
}
|
|
2651
|
-
p += 1, d = 65536 + ((d & 1023) << 10 | l.charCodeAt(p) & 1023), c[c.length] =
|
|
2651
|
+
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];
|
|
2652
2652
|
}
|
|
2653
2653
|
s += c.join("");
|
|
2654
2654
|
}
|
|
@@ -2695,8 +2695,8 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2695
2695
|
repeat: function(e) {
|
|
2696
2696
|
return e;
|
|
2697
2697
|
}
|
|
2698
|
-
},
|
|
2699
|
-
_s.apply(t,
|
|
2698
|
+
}, ee = Array.isArray, _s = Array.prototype.push, In = function(t, e) {
|
|
2699
|
+
_s.apply(t, ee(e) ? e : [e]);
|
|
2700
2700
|
}, Fs = Date.prototype.toISOString, qr = Ne.default, I = {
|
|
2701
2701
|
addQueryPrefix: !1,
|
|
2702
2702
|
allowDots: !1,
|
|
@@ -2730,7 +2730,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2730
2730
|
}
|
|
2731
2731
|
typeof F.get(Rt) > "u" && (T = 0);
|
|
2732
2732
|
}
|
|
2733
|
-
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" &&
|
|
2733
|
+
if (typeof c == "function" ? v = c(n, v) : v instanceof Date ? v = g(v) : r === "comma" && ee(v) && (v = Ke.maybeMap(v, function(q) {
|
|
2734
2734
|
return q instanceof Date ? g(q) : q;
|
|
2735
2735
|
})), v === null) {
|
|
2736
2736
|
if (i)
|
|
@@ -2748,21 +2748,21 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2748
2748
|
if (typeof v > "u")
|
|
2749
2749
|
return V;
|
|
2750
2750
|
var E;
|
|
2751
|
-
if (r === "comma" &&
|
|
2751
|
+
if (r === "comma" && ee(v))
|
|
2752
2752
|
m && l && (v = Ke.maybeMap(v, l)), E = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
2753
|
-
else if (
|
|
2753
|
+
else if (ee(c))
|
|
2754
2754
|
E = c;
|
|
2755
2755
|
else {
|
|
2756
2756
|
var O = Object.keys(v);
|
|
2757
2757
|
E = p ? O.sort(p) : O;
|
|
2758
2758
|
}
|
|
2759
|
-
var $ = u ? n.replace(/\./g, "%2E") : n, x = o &&
|
|
2760
|
-
if (a &&
|
|
2759
|
+
var $ = u ? n.replace(/\./g, "%2E") : n, x = o && ee(v) && v.length === 1 ? $ + "[]" : $;
|
|
2760
|
+
if (a && ee(v) && v.length === 0)
|
|
2761
2761
|
return x + "[]";
|
|
2762
2762
|
for (var _ = 0; _ < E.length; ++_) {
|
|
2763
2763
|
var b = E[_], M = typeof b == "object" && typeof b.value < "u" ? b.value : v[b];
|
|
2764
2764
|
if (!(s && M === null)) {
|
|
2765
|
-
var j = d && u ? b.replace(/\./g, "%2E") : b, z =
|
|
2765
|
+
var j = d && u ? b.replace(/\./g, "%2E") : b, z = ee(v) ? typeof r == "function" ? r(x, j) : x : x + (d ? "." + j : "[" + j + "]");
|
|
2766
2766
|
P.set(e, T);
|
|
2767
2767
|
var se = Fn();
|
|
2768
2768
|
se.set(Rt, P), In(V, t(
|
|
@@ -2774,7 +2774,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2774
2774
|
i,
|
|
2775
2775
|
s,
|
|
2776
2776
|
u,
|
|
2777
|
-
r === "comma" && m &&
|
|
2777
|
+
r === "comma" && m && ee(v) ? null : l,
|
|
2778
2778
|
c,
|
|
2779
2779
|
p,
|
|
2780
2780
|
d,
|
|
@@ -2807,7 +2807,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2807
2807
|
r = e.format;
|
|
2808
2808
|
}
|
|
2809
2809
|
var o = Ne.formatters[r], a = I.filter;
|
|
2810
|
-
(typeof e.filter == "function" ||
|
|
2810
|
+
(typeof e.filter == "function" || ee(e.filter)) && (a = e.filter);
|
|
2811
2811
|
var i;
|
|
2812
2812
|
if (e.arrayFormat in Dn ? i = e.arrayFormat : "indices" in e ? i = e.indices ? "indices" : "repeat" : i = I.arrayFormat, "commaRoundTrip" in e && typeof e.commaRoundTrip != "boolean")
|
|
2813
2813
|
throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
|
|
@@ -2835,7 +2835,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2835
2835
|
};
|
|
2836
2836
|
}, Bs = function(t, e) {
|
|
2837
2837
|
var n = t, r = ks(e), o, a;
|
|
2838
|
-
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) :
|
|
2838
|
+
typeof r.filter == "function" ? (a = r.filter, n = a("", n)) : ee(r.filter) && (a = r.filter, o = a);
|
|
2839
2839
|
var i = [];
|
|
2840
2840
|
if (typeof n != "object" || n === null)
|
|
2841
2841
|
return "";
|
|
@@ -3161,16 +3161,16 @@ const er = Ge(), Bn = er.sso ?? !0, tl = er.i18n ?? !0, Ln = er.noRedireLogin ??
|
|
|
3161
3161
|
// 排班管理
|
|
3162
3162
|
shift: w(`/api/duty-manage/shift/${ze}`)
|
|
3163
3163
|
// 交接班管理
|
|
3164
|
-
}, ll = "v1", zl = w(`/api/enterpriseright/permission/${ll}`),
|
|
3165
|
-
thingmodel: w(`/api/iot-device/thingmodel/${
|
|
3166
|
-
deviceManage: w(`/api/iot-device/devicemanage/${
|
|
3167
|
-
product: w(`/api/iot-device/product/${
|
|
3168
|
-
productStorage: w(`/api/iot-device/product-storage/${
|
|
3164
|
+
}, ll = "v1", zl = w(`/api/enterpriseright/permission/${ll}`), Q = "v1", ql = w(`/api/iot/${Q}`), Hl = {
|
|
3165
|
+
thingmodel: w(`/api/iot-device/thingmodel/${Q}`),
|
|
3166
|
+
deviceManage: w(`/api/iot-device/devicemanage/${Q}`),
|
|
3167
|
+
product: w(`/api/iot-device/product/${Q}`),
|
|
3168
|
+
productStorage: w(`/api/iot-device/product-storage/${Q}`)
|
|
3169
3169
|
}, Wl = {
|
|
3170
|
-
projectDevice: w(`/api/device-relation/deviceproject/${
|
|
3171
|
-
deviceRules: w(`/api/device-relation/devicerule/${
|
|
3172
|
-
project: w(`/api/device-relation/project/${
|
|
3173
|
-
}, tr = w(`/api/oss/minio/${
|
|
3170
|
+
projectDevice: w(`/api/device-relation/deviceproject/${Q}`),
|
|
3171
|
+
deviceRules: w(`/api/device-relation/devicerule/${Q}`),
|
|
3172
|
+
project: w(`/api/device-relation/project/${Q}`)
|
|
3173
|
+
}, tr = w(`/api/oss/minio/${Q}`), cl = w(`/api/progress/accessor/${Q}`), Kl = w(`/api/dms/analysis/${Q}`);
|
|
3174
3174
|
let ul = (t = 21) => {
|
|
3175
3175
|
let e = "", n = crypto.getRandomValues(new Uint8Array(t));
|
|
3176
3176
|
for (; t--; ) {
|
|
@@ -3179,7 +3179,7 @@ let ul = (t = 21) => {
|
|
|
3179
3179
|
}
|
|
3180
3180
|
return e;
|
|
3181
3181
|
};
|
|
3182
|
-
const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), yl = cl.get("progress"),
|
|
3182
|
+
const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), dl = tr.post("upload-objects", (t) => (t.headers || (t.headers = {}), t.headers["Content-Type"] = "multipart/form-data", t.responseType = "blob", t)), yl = cl.get("progress"), Gl = () => {
|
|
3183
3183
|
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;
|
|
3184
3184
|
const h = () => {
|
|
3185
3185
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
@@ -3226,16 +3226,16 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3226
3226
|
}
|
|
3227
3227
|
const [jn, zn] = await st(z).run();
|
|
3228
3228
|
if (jn) return t.value = !1;
|
|
3229
|
-
const
|
|
3230
|
-
if (!b && (
|
|
3229
|
+
const Y = await hl(zn.data);
|
|
3230
|
+
if (!b && (Y == null ? void 0 : Y.statusCode) != 200 || b && (Y != null && Y.some((re) => (re == null ? void 0 : re.statusCode) != 200))) {
|
|
3231
3231
|
t.value = !1, (nr = window.DasMessage) == null || nr.error({
|
|
3232
|
-
message: (
|
|
3232
|
+
message: (Y == null ? void 0 : Y.errorMsg) || C("上传失败"),
|
|
3233
3233
|
grouping: !0,
|
|
3234
3234
|
repeatNum: 1
|
|
3235
3235
|
});
|
|
3236
3236
|
return;
|
|
3237
3237
|
}
|
|
3238
|
-
const lt = await (E == null ? void 0 : E(
|
|
3238
|
+
const lt = await (E == null ? void 0 : E(Y));
|
|
3239
3239
|
if (x) {
|
|
3240
3240
|
if (!lt.status) {
|
|
3241
3241
|
t.value = !1, r.value = "error";
|
|
@@ -3396,48 +3396,49 @@ const fl = tr.get("token"), pl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3396
3396
|
let a = "";
|
|
3397
3397
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3398
3398
|
}, r.readAsText(t);
|
|
3399
|
-
}), gl = "v2",
|
|
3399
|
+
}), gl = "v2", Jl = w(`/api/edge/${gl}`), Mn = "v1", Vl = w(`/api/justauth/oauth-server/${Mn}/visitor`), Ql = w(`/api/justauth/oauth-server/${Mn}`), vl = "v1", Xl = w(`/api/knowledge-base/knowledge/${vl}`), bl = "v1", Yl = w(`/api/custom-datasource/custom/${bl}`), wl = "v1", Zl = w(`/api/permission/${wl}`), de = "v1", ec = w(`/api/customer/customer/${de}`), tc = w(`/api/customer/company/${de}`), rc = w(`/api/customer/customer-grade/${de}`), nc = w(`/api/customer/customer-type/${de}`), oc = {
|
|
3400
3400
|
list: w(`/api/project/${de}/list`),
|
|
3401
3401
|
app: w(`/api/project/${de}/app`),
|
|
3402
3402
|
people: w(`/api/project/${de}/people`)
|
|
3403
|
-
}, Sl = "v1",
|
|
3403
|
+
}, Sl = "v1", ac = w(`/api/portal/user/${Sl}`), El = "v1", ic = w(`/api/space-manage/space-tree/${El}`), it = "v1", sc = w(`/api/superadmin/portal/${it}`), lc = w(`/api/superadmin/permission/${it}`), cc = w(`/api/superadmin/resource/${it}`), uc = w(`/api/superadmin/license/${it}`), rr = "v1", fc = w(`/api/supply/supplier/${rr}`), pc = w(`/api/supplier/${rr}`), dc = w(`/api/supplier/${rr}/classification`), Al = "v1", yc = w(`/api/supply/brand/${Al}`), Ol = "v2", mc = w(`/api/tool/${Ol}`), Rl = "v1", hc = w(`/api/system-config/${Rl}`);
|
|
3404
3404
|
Wr(eo);
|
|
3405
3405
|
export {
|
|
3406
|
+
Kl as analyApi,
|
|
3406
3407
|
Bl as appManage,
|
|
3407
3408
|
Ll as authentication,
|
|
3408
3409
|
Ul as bemsModules,
|
|
3409
|
-
|
|
3410
|
+
tc as company,
|
|
3410
3411
|
Ml as contract,
|
|
3411
3412
|
w as createService,
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3413
|
+
ec as customer,
|
|
3414
|
+
rc as customerGrade,
|
|
3415
|
+
nc as customerType,
|
|
3416
|
+
Yl as daslink,
|
|
3416
3417
|
Hr as downloadFile,
|
|
3417
3418
|
jl as dutyModules,
|
|
3418
|
-
|
|
3419
|
+
yc as enterpriseadminBrandModel,
|
|
3419
3420
|
zl as enterpriseright,
|
|
3420
|
-
|
|
3421
|
+
Jl as gatewayEdge,
|
|
3421
3422
|
ql as iot,
|
|
3422
3423
|
tr as iotMinio,
|
|
3423
3424
|
Hl as iotModules,
|
|
3424
3425
|
cl as iotProgress,
|
|
3425
3426
|
Wl as iotRelationModules,
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3427
|
+
Vl as justauth,
|
|
3428
|
+
Xl as knowledgeBase,
|
|
3429
|
+
Ql as oauthServer,
|
|
3430
|
+
Zl as permission,
|
|
3431
|
+
ac as portal,
|
|
3432
|
+
oc as projectManage,
|
|
3433
|
+
ic as spaceManage,
|
|
3434
|
+
uc as superadminLicense,
|
|
3435
|
+
lc as superadminPermission,
|
|
3436
|
+
sc as superadminPortal,
|
|
3437
|
+
cc as superadminResource,
|
|
3438
|
+
fc as supplier,
|
|
3439
|
+
dc as supplierClassification,
|
|
3440
|
+
pc as supplierManage,
|
|
3441
|
+
hc as systemConfiguration,
|
|
3442
|
+
mc as tool,
|
|
3443
|
+
Gl as useFile
|
|
3443
3444
|
};
|
package/api-services/index.js.gz
CHANGED
|
Binary file
|