@das-fed/utils 6.4.0-dev.55.12 → 6.4.0-dev.55.14
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.js +1 -1
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +52 -52
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +46 -46
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +46 -46
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +47 -47
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +46 -46
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +45 -45
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +46 -46
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +2 -2
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +46 -46
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +2 -2
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +42 -42
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +46 -46
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +46 -46
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +46 -46
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +46 -46
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +45 -45
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +46 -46
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +46 -46
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +45 -45
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +47 -47
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +46 -46
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +46 -46
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +46 -46
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +46 -46
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/i18n/index.js +2 -2
- package/create-api-service/index.js +46 -46
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ const e = {
|
|
|
10
10
|
部分: { "zh-CN": "部分", en: "Partial", _appCode: "framework" },
|
|
11
11
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
12
12
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
13
|
-
en: "Some
|
|
13
|
+
en: "Some data validation failed, please download the attachment, correct it, and re-import!",
|
|
14
14
|
_appCode: "framework"
|
|
15
15
|
},
|
|
16
16
|
"das-utils_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success", _appCode: "framework" },
|
|
Binary file
|
package/api-services/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { setI18nRule as Wr, t as C } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as qn } from "@das-fed/utils/curring-http";
|
|
3
|
-
import { getToken as Hn, getQuery as Wn, login as Kn, getTokenParams as Gn, real_uri as
|
|
3
|
+
import { getToken as Hn, getQuery as Wn, login as Kn, getTokenParams as Gn, real_uri as Jn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import et from "dayjs";
|
|
5
|
-
import
|
|
5
|
+
import Vn from "dayjs/plugin/utc";
|
|
6
6
|
import Qn from "dayjs/plugin/timezone";
|
|
7
7
|
import { getProjectInfo as Xn, getInstanceInfo as Yn } from "@das-fed/utils/common-info";
|
|
8
8
|
import { getAccessToken as Zn } from "@das-fed/utils/token-tools";
|
|
9
9
|
import { getConfig as Ge } from "@das-fed/utils/config";
|
|
10
10
|
import { extractFilename as ar } from "@das-fed/utils/common-tools";
|
|
11
|
-
import { ref as
|
|
11
|
+
import { ref as J } from "vue";
|
|
12
12
|
const eo = {
|
|
13
13
|
导入进度: { "zh-CN": "导入进度", en: "Import Progress", _appCode: "framework" },
|
|
14
14
|
上传失败: { "zh-CN": "上传失败", en: "Upload Failed", _appCode: "framework" },
|
|
@@ -21,7 +21,7 @@ const eo = {
|
|
|
21
21
|
部分: { "zh-CN": "部分", en: "Partial", _appCode: "framework" },
|
|
22
22
|
"部分数据校验不通过,请下载附件并修改,重新导入!": {
|
|
23
23
|
"zh-CN": "部分数据校验不通过,请下载附件并修改,重新导入!",
|
|
24
|
-
en: "Some
|
|
24
|
+
en: "Some data validation failed, please download the attachment, correct it, and re-import!",
|
|
25
25
|
_appCode: "framework"
|
|
26
26
|
},
|
|
27
27
|
"das-utils_export-success-tip": { "zh-CN": "$0成功", en: "$0 Success", _appCode: "framework" },
|
|
@@ -49,7 +49,7 @@ function no(t) {
|
|
|
49
49
|
let e;
|
|
50
50
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && Gr(t.buffer), e;
|
|
51
51
|
}
|
|
52
|
-
const oo = rt("string"), K = rt("function"),
|
|
52
|
+
const oo = rt("string"), K = rt("function"), Jr = rt("number"), nt = (t) => t !== null && typeof t == "object", ao = (t) => t === !0 || t === !1, qe = (t) => {
|
|
53
53
|
if (tt(t) !== "object")
|
|
54
54
|
return !1;
|
|
55
55
|
const e = qt(t);
|
|
@@ -73,7 +73,7 @@ function Fe(t, e, { allOwnKeys: n = !1 } = {}) {
|
|
|
73
73
|
s = a[r], e.call(null, t[s], s, t);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Vr(t, e) {
|
|
77
77
|
e = e.toLowerCase();
|
|
78
78
|
const n = Object.keys(t);
|
|
79
79
|
let r = n.length, o;
|
|
@@ -85,7 +85,7 @@ function Jr(t, e) {
|
|
|
85
85
|
const ce = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Qr = (t) => !_e(t) && t !== ce;
|
|
86
86
|
function xt() {
|
|
87
87
|
const { caseless: t } = Qr(this) && this || {}, e = {}, n = (r, o) => {
|
|
88
|
-
const a = t &&
|
|
88
|
+
const a = t && Vr(e, o) || o;
|
|
89
89
|
qe(e[a]) && qe(r) ? e[a] = xt(e[a], r) : qe(r) ? e[a] = xt({}, r) : Ae(r) ? e[a] = r.slice() : e[a] = r;
|
|
90
90
|
};
|
|
91
91
|
for (let r = 0, o = arguments.length; r < o; r++)
|
|
@@ -116,7 +116,7 @@ const wo = (t, e, n, { allOwnKeys: r } = {}) => (Fe(e, (o, a) => {
|
|
|
116
116
|
if (!t) return null;
|
|
117
117
|
if (Ae(t)) return t;
|
|
118
118
|
let e = t.length;
|
|
119
|
-
if (!
|
|
119
|
+
if (!Jr(e)) return null;
|
|
120
120
|
const n = new Array(e);
|
|
121
121
|
for (; e-- > 0; )
|
|
122
122
|
n[e] = t[e];
|
|
@@ -213,7 +213,7 @@ const Bo = (t) => {
|
|
|
213
213
|
isFormData: fo,
|
|
214
214
|
isArrayBufferView: no,
|
|
215
215
|
isString: oo,
|
|
216
|
-
isNumber:
|
|
216
|
+
isNumber: Jr,
|
|
217
217
|
isBoolean: ao,
|
|
218
218
|
isObject: nt,
|
|
219
219
|
isPlainObject: qe,
|
|
@@ -254,7 +254,7 @@ const Bo = (t) => {
|
|
|
254
254
|
toCamelCase: $o,
|
|
255
255
|
noop: Fo,
|
|
256
256
|
toFiniteNumber: Do,
|
|
257
|
-
findKey:
|
|
257
|
+
findKey: Vr,
|
|
258
258
|
global: ce,
|
|
259
259
|
isContextDefined: Qr,
|
|
260
260
|
ALPHABET: Yr,
|
|
@@ -496,7 +496,7 @@ const an = {
|
|
|
496
496
|
silentJSONParsing: !0,
|
|
497
497
|
forcedJSONParsing: !0,
|
|
498
498
|
clarifyTimeoutError: !1
|
|
499
|
-
}, Wo = typeof URLSearchParams < "u" ? URLSearchParams : Ht, Ko = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null,
|
|
499
|
+
}, Wo = typeof URLSearchParams < "u" ? URLSearchParams : Ht, Ko = typeof FormData < "u" ? FormData : null, Go = typeof Blob < "u" ? Blob : null, Jo = {
|
|
500
500
|
isBrowser: !0,
|
|
501
501
|
classes: {
|
|
502
502
|
URLSearchParams: Wo,
|
|
@@ -504,17 +504,17 @@ const an = {
|
|
|
504
504
|
Blob: Go
|
|
505
505
|
},
|
|
506
506
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
507
|
-
}, Wt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0,
|
|
507
|
+
}, Wt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0, Vo = Wt && (!$t || ["ReactNative", "NativeScript", "NS"].indexOf($t.product) < 0), Qo = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
508
508
|
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Xo = Wt && window.location.href || "http://localhost", Yo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
509
509
|
__proto__: null,
|
|
510
510
|
hasBrowserEnv: Wt,
|
|
511
|
-
hasStandardBrowserEnv:
|
|
511
|
+
hasStandardBrowserEnv: Vo,
|
|
512
512
|
hasStandardBrowserWebWorkerEnv: Qo,
|
|
513
513
|
navigator: $t,
|
|
514
514
|
origin: Xo
|
|
515
515
|
}, Symbol.toStringTag, { value: "Module" })), H = {
|
|
516
516
|
...Yo,
|
|
517
|
-
...
|
|
517
|
+
...Jo
|
|
518
518
|
};
|
|
519
519
|
function Zo(t, e) {
|
|
520
520
|
return ot(t, new H.classes.URLSearchParams(), Object.assign({
|
|
@@ -880,7 +880,7 @@ function fa(t, e) {
|
|
|
880
880
|
}, r - p)));
|
|
881
881
|
}, () => o && i(o)];
|
|
882
882
|
}
|
|
883
|
-
const
|
|
883
|
+
const Je = (t, e, n = 3) => {
|
|
884
884
|
let r = 0;
|
|
885
885
|
const o = ua(50, 250);
|
|
886
886
|
return fa((a) => {
|
|
@@ -1106,7 +1106,7 @@ const fn = (t) => {
|
|
|
1106
1106
|
)), m = null;
|
|
1107
1107
|
}, a === void 0 && i.setContentType(null), "setRequestHeader" in m && f.forEach(i.toJSON(), function(F, T) {
|
|
1108
1108
|
m.setRequestHeader(T, F);
|
|
1109
|
-
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([d, y] =
|
|
1109
|
+
}), f.isUndefined(o.withCredentials) || (m.withCredentials = !!o.withCredentials), s && s !== "json" && (m.responseType = o.responseType), l && ([d, y] = Je(l, !0), m.addEventListener("progress", d)), u && m.upload && ([p, g] = Je(u), m.upload.addEventListener("progress", p), m.upload.addEventListener("loadend", g)), (o.cancelToken || o.signal) && (c = (v) => {
|
|
1110
1110
|
m && (r(!v || v.type ? new Oe(null, t, m) : v), m.abort(), m = null);
|
|
1111
1111
|
}, o.cancelToken && o.cancelToken.subscribe(c), o.signal && (o.signal.aborted ? c() : o.signal.addEventListener("abort", c)));
|
|
1112
1112
|
const P = ca(o.url);
|
|
@@ -1212,12 +1212,12 @@ const fn = (t) => {
|
|
|
1212
1212
|
}
|
|
1213
1213
|
}).headers.has("Content-Type");
|
|
1214
1214
|
return t && !e;
|
|
1215
|
-
}), hr = 64 * 1024, Ct = pn && dn(() => f.isReadableStream(new Response("").body)),
|
|
1215
|
+
}), hr = 64 * 1024, Ct = pn && dn(() => f.isReadableStream(new Response("").body)), Ve = {
|
|
1216
1216
|
stream: Ct && ((t) => t.body)
|
|
1217
1217
|
};
|
|
1218
1218
|
at && ((t) => {
|
|
1219
1219
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1220
|
-
!
|
|
1220
|
+
!Ve[e] && (Ve[e] = f.isFunction(t[e]) ? (n) => n[e]() : (n, r) => {
|
|
1221
1221
|
throw new S(`Response type '${e}' is not supported`, S.ERR_NOT_SUPPORT, r);
|
|
1222
1222
|
});
|
|
1223
1223
|
});
|
|
@@ -1270,7 +1270,7 @@ const Oa = async (t) => {
|
|
|
1270
1270
|
if (f.isFormData(r) && (B = T.headers.get("content-type")) && c.setContentType(B), T.body) {
|
|
1271
1271
|
const [L, G] = pr(
|
|
1272
1272
|
m,
|
|
1273
|
-
|
|
1273
|
+
Je(dr(u))
|
|
1274
1274
|
);
|
|
1275
1275
|
r = mr(T.body, hr, L, G);
|
|
1276
1276
|
}
|
|
@@ -1290,12 +1290,12 @@ const Oa = async (t) => {
|
|
|
1290
1290
|
const v = Ct && (l === "stream" || l === "response");
|
|
1291
1291
|
if (Ct && (s || v && h)) {
|
|
1292
1292
|
const T = {};
|
|
1293
|
-
["status", "statusText", "headers"].forEach((
|
|
1294
|
-
T[
|
|
1293
|
+
["status", "statusText", "headers"].forEach((V) => {
|
|
1294
|
+
T[V] = P[V];
|
|
1295
1295
|
});
|
|
1296
1296
|
const B = f.toFiniteNumber(P.headers.get("content-length")), [L, G] = s && pr(
|
|
1297
1297
|
B,
|
|
1298
|
-
|
|
1298
|
+
Je(dr(s), !0)
|
|
1299
1299
|
) || [];
|
|
1300
1300
|
P = new Response(
|
|
1301
1301
|
mr(P.body, hr, L, () => {
|
|
@@ -1305,7 +1305,7 @@ const Oa = async (t) => {
|
|
|
1305
1305
|
);
|
|
1306
1306
|
}
|
|
1307
1307
|
l = l || "text";
|
|
1308
|
-
let F = await
|
|
1308
|
+
let F = await Ve[f.findKey(Ve, l) || "text"](P, t);
|
|
1309
1309
|
return !v && h && h(), await new Promise((T, B) => {
|
|
1310
1310
|
cn(T, B, {
|
|
1311
1311
|
data: F,
|
|
@@ -1791,11 +1791,11 @@ var Fa = Error, Da = EvalError, Ia = RangeError, ka = ReferenceError, gn = Synta
|
|
|
1791
1791
|
for (var r = [], o = n, a = 0; o < e.length; o += 1, a += 1)
|
|
1792
1792
|
r[a] = e[o];
|
|
1793
1793
|
return r;
|
|
1794
|
-
},
|
|
1794
|
+
}, Ja = function(t, e) {
|
|
1795
1795
|
for (var n = "", r = 0; r < t.length; r += 1)
|
|
1796
1796
|
n += t[r], r + 1 < t.length && (n += e);
|
|
1797
1797
|
return n;
|
|
1798
|
-
},
|
|
1798
|
+
}, Va = function(e) {
|
|
1799
1799
|
var n = this;
|
|
1800
1800
|
if (typeof n != "function" || Ha.apply(n) !== Ka)
|
|
1801
1801
|
throw new TypeError(qa + n);
|
|
@@ -1813,13 +1813,13 @@ var Fa = Error, Da = EvalError, Ia = RangeError, ka = ReferenceError, gn = Synta
|
|
|
1813
1813
|
);
|
|
1814
1814
|
}, i = Wa(0, n.length - r.length), s = [], u = 0; u < i; u++)
|
|
1815
1815
|
s[u] = "$" + u;
|
|
1816
|
-
if (o = Function("binder", "return function (" +
|
|
1816
|
+
if (o = Function("binder", "return function (" + Ja(s, ",") + "){ return binder.apply(this,arguments); }")(a), n.prototype) {
|
|
1817
1817
|
var l = function() {
|
|
1818
1818
|
};
|
|
1819
1819
|
l.prototype = n.prototype, o.prototype = new l(), l.prototype = null;
|
|
1820
1820
|
}
|
|
1821
1821
|
return o;
|
|
1822
|
-
}, Qa =
|
|
1822
|
+
}, Qa = Va, Jt = Function.prototype.bind || Qa, Xa = Function.prototype.call, Ya = Object.prototype.hasOwnProperty, Za = Jt, ei = Za.call(Xa, Ya), A, ti = Fa, ri = Da, ni = Ia, oi = ka, be = gn, we = Ie, ai = Ba, vn = Function, mt = function(t) {
|
|
1823
1823
|
try {
|
|
1824
1824
|
return vn('"use strict"; return (' + t + ").constructor;")();
|
|
1825
1825
|
} catch {
|
|
@@ -1991,7 +1991,7 @@ var ui = function t(e) {
|
|
|
1991
1991
|
"%URIErrorPrototype%": ["URIError", "prototype"],
|
|
1992
1992
|
"%WeakMapPrototype%": ["WeakMap", "prototype"],
|
|
1993
1993
|
"%WeakSetPrototype%": ["WeakSet", "prototype"]
|
|
1994
|
-
}, ke =
|
|
1994
|
+
}, ke = Jt, Qe = ei, fi = ke.call(Function.call, Array.prototype.concat), pi = ke.call(Function.apply, Array.prototype.splice), Or = ke.call(Function.call, String.prototype.replace), Xe = ke.call(Function.call, String.prototype.slice), di = ke.call(Function.call, RegExp.prototype.exec), yi = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g, mi = /\\(\\)?/g, hi = function(e) {
|
|
1995
1995
|
var n = Xe(e, 0, 1), r = Xe(e, -1);
|
|
1996
1996
|
if (n === "%" && r !== "%")
|
|
1997
1997
|
throw new be("invalid intrinsic syntax, expected closing `%`");
|
|
@@ -2045,7 +2045,7 @@ var ui = function t(e) {
|
|
|
2045
2045
|
}
|
|
2046
2046
|
return s;
|
|
2047
2047
|
}, wn = { exports: {} }, gt, Rr;
|
|
2048
|
-
function
|
|
2048
|
+
function Vt() {
|
|
2049
2049
|
if (Rr) return gt;
|
|
2050
2050
|
Rr = 1;
|
|
2051
2051
|
var t = Re, e = t("%Object.defineProperty%", !0) || !1;
|
|
@@ -2064,7 +2064,7 @@ if (We)
|
|
|
2064
2064
|
} catch {
|
|
2065
2065
|
We = null;
|
|
2066
2066
|
}
|
|
2067
|
-
var bn = We, Pr =
|
|
2067
|
+
var bn = We, Pr = Vt(), wi = gn, ge = Ie, xr = bn, bi = function(e, n, r) {
|
|
2068
2068
|
if (!e || typeof e != "object" && typeof e != "function")
|
|
2069
2069
|
throw new ge("`obj` must be an object or a function`");
|
|
2070
2070
|
if (typeof n != "string" && typeof n != "symbol")
|
|
@@ -2089,7 +2089,7 @@ var bn = We, Pr = Jt(), wi = gn, ge = Ie, xr = bn, bi = function(e, n, r) {
|
|
|
2089
2089
|
e[n] = r;
|
|
2090
2090
|
else
|
|
2091
2091
|
throw new wi("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
|
|
2092
|
-
}, Dt =
|
|
2092
|
+
}, Dt = Vt(), Sn = function() {
|
|
2093
2093
|
return !!Dt;
|
|
2094
2094
|
};
|
|
2095
2095
|
Sn.hasArrayLengthDefineBug = function() {
|
|
@@ -2126,7 +2126,7 @@ var Si = Sn, Ei = Re, Tr = bi, Ai = Si(), $r = bn, Cr = Ie, Oi = Ei("%Math.floor
|
|
|
2126
2126
|
)), e;
|
|
2127
2127
|
};
|
|
2128
2128
|
(function(t) {
|
|
2129
|
-
var e =
|
|
2129
|
+
var e = Jt, n = Re, r = Ri, o = Ie, a = n("%Function.prototype.apply%"), i = n("%Function.prototype.call%"), s = n("%Reflect.apply%", !0) || e.call(i, a), u = Vt(), l = n("%Math.max%");
|
|
2130
2130
|
t.exports = function(d) {
|
|
2131
2131
|
if (typeof d != "function")
|
|
2132
2132
|
throw new o("a function is required");
|
|
@@ -2264,7 +2264,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2264
2264
|
return St("WeakRef");
|
|
2265
2265
|
if (Ki(e))
|
|
2266
2266
|
return Te(d(Number(e)));
|
|
2267
|
-
if (
|
|
2267
|
+
if (Ji(e))
|
|
2268
2268
|
return Te(d(It.call(e)));
|
|
2269
2269
|
if (Gi(e))
|
|
2270
2270
|
return Te(Ii.call(e));
|
|
@@ -2275,7 +2275,7 @@ var Bt = Ni, Ur = Bt.custom, Mr = xn(Ur) ? Ur : null, ji = function t(e, n, r, o
|
|
|
2275
2275
|
if (typeof globalThis < "u" && e === globalThis || typeof br < "u" && e === br)
|
|
2276
2276
|
return "{ [object globalThis] }";
|
|
2277
2277
|
if (!qi(e) && !jr(e)) {
|
|
2278
|
-
var L = Le(e, d), G = Br ? Br(e) === Object.prototype : e instanceof Object || e.constructor === Object,
|
|
2278
|
+
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 ? Yt.call(ie(e), 8, -1) : V ? "Object" : "", O = G || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", $ = O + (E || V ? "[" + ee.call(Ir.call([], E || [], V || []), ": ") + "] " : "");
|
|
2279
2279
|
return L.length === 0 ? $ + "{}" : p ? $ + "{" + Ut(L, p) + "}" : $ + "{ " + ee.call(L, ", ") + " }";
|
|
2280
2280
|
}
|
|
2281
2281
|
return String(e);
|
|
@@ -2321,7 +2321,7 @@ function xn(t) {
|
|
|
2321
2321
|
}
|
|
2322
2322
|
return !1;
|
|
2323
2323
|
}
|
|
2324
|
-
function
|
|
2324
|
+
function Ji(t) {
|
|
2325
2325
|
if (!t || typeof t != "object" || !It)
|
|
2326
2326
|
return !1;
|
|
2327
2327
|
try {
|
|
@@ -2330,11 +2330,11 @@ function Vi(t) {
|
|
|
2330
2330
|
}
|
|
2331
2331
|
return !1;
|
|
2332
2332
|
}
|
|
2333
|
-
var
|
|
2333
|
+
var Vi = Object.prototype.hasOwnProperty || function(t) {
|
|
2334
2334
|
return t in this;
|
|
2335
2335
|
};
|
|
2336
2336
|
function oe(t, e) {
|
|
2337
|
-
return
|
|
2337
|
+
return Vi.call(t, e);
|
|
2338
2338
|
}
|
|
2339
2339
|
function ie(t) {
|
|
2340
2340
|
return ki.call(t);
|
|
@@ -2745,9 +2745,9 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2745
2745
|
}
|
|
2746
2746
|
return [h(n) + "=" + h(String(v))];
|
|
2747
2747
|
}
|
|
2748
|
-
var
|
|
2748
|
+
var V = [];
|
|
2749
2749
|
if (typeof v > "u")
|
|
2750
|
-
return
|
|
2750
|
+
return V;
|
|
2751
2751
|
var E;
|
|
2752
2752
|
if (r === "comma" && Z(v))
|
|
2753
2753
|
m && l && (v = Ke.maybeMap(v, l)), E = [{ value: v.length > 0 ? v.join(",") || null : void 0 }];
|
|
@@ -2766,7 +2766,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2766
2766
|
var j = d && u ? w.replace(/\./g, "%2E") : w, z = Z(v) ? typeof r == "function" ? r(x, j) : x : x + (d ? "." + j : "[" + j + "]");
|
|
2767
2767
|
P.set(e, T);
|
|
2768
2768
|
var se = Fn();
|
|
2769
|
-
se.set(Rt, P), In(
|
|
2769
|
+
se.set(Rt, P), In(V, t(
|
|
2770
2770
|
M,
|
|
2771
2771
|
z,
|
|
2772
2772
|
r,
|
|
@@ -2788,7 +2788,7 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2788
2788
|
));
|
|
2789
2789
|
}
|
|
2790
2790
|
}
|
|
2791
|
-
return
|
|
2791
|
+
return V;
|
|
2792
2792
|
}, ks = function(e) {
|
|
2793
2793
|
if (!e)
|
|
2794
2794
|
return I;
|
|
@@ -2994,9 +2994,9 @@ var Cn = Re, Pe = Ti, is = ji, ss = Ie, Ue = Cn("%WeakMap%", !0), Me = Cn("%Map%
|
|
|
2994
2994
|
o = Ee.merge(o, u, n);
|
|
2995
2995
|
}
|
|
2996
2996
|
return n.allowSparse === !0 ? o : Ee.compact(o);
|
|
2997
|
-
}, Gs = Bs,
|
|
2998
|
-
formats:
|
|
2999
|
-
parse:
|
|
2997
|
+
}, Gs = Bs, Js = Ks, Vs = er, Qs = {
|
|
2998
|
+
formats: Vs,
|
|
2999
|
+
parse: Js,
|
|
3000
3000
|
stringify: Gs
|
|
3001
3001
|
};
|
|
3002
3002
|
const Xs = /* @__PURE__ */ Na(Qs);
|
|
@@ -3073,18 +3073,18 @@ function jt(t, e) {
|
|
|
3073
3073
|
var Zs = jt(Ys, { path: "/" });
|
|
3074
3074
|
const el = {
|
|
3075
3075
|
参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
|
|
3076
|
-
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api
|
|
3076
|
+
接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
|
|
3077
3077
|
服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
|
|
3078
3078
|
解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
|
|
3079
3079
|
请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
|
|
3080
3080
|
"网络异常,请检查您的网络情况": {
|
|
3081
3081
|
"zh-CN": "网络异常,请检查您的网络情况",
|
|
3082
|
-
en: "Network
|
|
3082
|
+
en: "Network error, please check your network status",
|
|
3083
3083
|
_appCode: "framework"
|
|
3084
3084
|
}
|
|
3085
3085
|
};
|
|
3086
3086
|
Wr(el);
|
|
3087
|
-
et.extend(
|
|
3087
|
+
et.extend(Vn);
|
|
3088
3088
|
et.extend(Qn);
|
|
3089
3089
|
const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
3090
3090
|
if (Ln) return;
|
|
@@ -3099,7 +3099,7 @@ const Bn = Ge(), zt = Bn.sso ?? !0, Ln = Bn.noRedireLogin ?? !1, Un = () => {
|
|
|
3099
3099
|
const a = { 400: C("参数校验错误"), 404: C("接口地址未找到"), 500: C("服务器内部错误") };
|
|
3100
3100
|
let i = ((c = t == null ? void 0 : t.response) == null ? void 0 : c.data) || {};
|
|
3101
3101
|
if (!(Wn("code") || "") && !Ln && (n === 401 || (i == null ? void 0 : i.code) === 401))
|
|
3102
|
-
zt ? Kn({ ...Gn, redirect_uri:
|
|
3102
|
+
zt ? Kn({ ...Gn, redirect_uri: Jn }) : Un(), o = i;
|
|
3103
3103
|
else {
|
|
3104
3104
|
if (t.response) {
|
|
3105
3105
|
if (i instanceof Blob && (i = await new Promise((g) => {
|
|
@@ -3181,7 +3181,7 @@ let cl = (t = 21) => {
|
|
|
3181
3181
|
return e;
|
|
3182
3182
|
};
|
|
3183
3183
|
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"), Wl = () => {
|
|
3184
|
-
let t =
|
|
3184
|
+
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;
|
|
3185
3185
|
const h = () => {
|
|
3186
3186
|
s.value = "", u.value = "", l.value = "", c.value = !1, p.value = "";
|
|
3187
3187
|
}, m = async () => {
|
|
@@ -3397,7 +3397,7 @@ const ul = tr.get("token"), fl = tr.post("put-object", (t) => (t.headers || (t.h
|
|
|
3397
3397
|
let a = "";
|
|
3398
3398
|
typeof r.result == "string" && (a = JSON.parse(r.result)), e(a);
|
|
3399
3399
|
}, r.readAsText(t);
|
|
3400
|
-
}), hl = "v2", Kl = b(`/api/edge/${hl}`), Mn = "v1", Gl = b(`/api/justauth/oauth-server/${Mn}/visitor`),
|
|
3400
|
+
}), hl = "v2", Kl = b(`/api/edge/${hl}`), Mn = "v1", Gl = b(`/api/justauth/oauth-server/${Mn}/visitor`), Jl = b(`/api/justauth/oauth-server/${Mn}`), gl = "v1", Vl = b(`/api/knowledge-base/knowledge/${gl}`), vl = "v1", Ql = b(`/api/custom-datasource/custom/${vl}`), wl = "v1", Xl = b(`/api/permission/${wl}`), de = "v1", Yl = b(`/api/customer/customer/${de}`), Zl = b(`/api/customer/company/${de}`), ec = b(`/api/customer/customer-grade/${de}`), tc = b(`/api/customer/customer-type/${de}`), rc = {
|
|
3401
3401
|
list: b(`/api/project/${de}/list`),
|
|
3402
3402
|
app: b(`/api/project/${de}/app`),
|
|
3403
3403
|
people: b(`/api/project/${de}/people`)
|
|
@@ -3425,8 +3425,8 @@ export {
|
|
|
3425
3425
|
ll as iotProgress,
|
|
3426
3426
|
Hl as iotRelationModules,
|
|
3427
3427
|
Gl as justauth,
|
|
3428
|
-
|
|
3429
|
-
|
|
3428
|
+
Vl as knowledgeBase,
|
|
3429
|
+
Jl as oauthServer,
|
|
3430
3430
|
Xl as permission,
|
|
3431
3431
|
nc as portal,
|
|
3432
3432
|
rc as projectManage,
|
package/api-services/index.js.gz
CHANGED
|
Binary file
|