@das-fed/utils 7.1.0-seres.30 → 7.1.0-seres.31
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 +101 -98
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +762 -777
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +771 -750
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +59 -56
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +3 -0
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +3 -0
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +3 -0
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +927 -906
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +3 -0
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +543 -540
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +3 -0
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +766 -745
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +46 -43
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +3 -0
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +3 -0
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +3 -0
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +3 -0
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +769 -752
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +3 -0
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +757 -772
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +62 -59
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +3 -0
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +3 -0
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +3 -0
- package/api-services/src/create-service/index.js.gz +0 -0
- package/create-api-service/index.js +3 -0
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/menu-code-apis/index.js +8 -5
- package/create-api-service/menu-code-apis/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setI18nRule as Un, currentLang as Bn, t as G } from "@das-fed/web/packages/i18n/index";
|
|
2
2
|
import { curringHttp as Mn } from "@das-fed/utils/curring-http";
|
|
3
|
-
import { getToken as kn, getQuery as
|
|
3
|
+
import { getToken as kn, getQuery as zn, login as qn, real_uri as jn, getTokenParams as Hn } from "@das-fed/utils/create-api-service/sso";
|
|
4
4
|
import Ut from "dayjs";
|
|
5
5
|
import Wn from "dayjs/plugin/utc";
|
|
6
6
|
import Gn from "dayjs/plugin/timezone";
|
|
@@ -70,9 +70,9 @@ function kr(t, e) {
|
|
|
70
70
|
return o;
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
-
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global,
|
|
73
|
+
const Q = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, zr = (t) => !be(t) && t !== Q;
|
|
74
74
|
function Ot() {
|
|
75
|
-
const { caseless: t } =
|
|
75
|
+
const { caseless: t } = zr(this) && this || {}, e = {}, n = (r, o) => {
|
|
76
76
|
const i = t && kr(e, o) || o;
|
|
77
77
|
Fe(e[i]) && Fe(r) ? e[i] = Ot(e[i], r) : Fe(r) ? e[i] = Ot({}, r) : ue(r) ? e[i] = r.slice() : e[i] = r;
|
|
78
78
|
};
|
|
@@ -127,14 +127,14 @@ const mo = (t, e, n, { allOwnKeys: r } = {}) => (Oe(e, (o, i) => {
|
|
|
127
127
|
function(n, r, o) {
|
|
128
128
|
return r.toUpperCase() + o;
|
|
129
129
|
}
|
|
130
|
-
), Kt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), To = I("RegExp"),
|
|
130
|
+
), Kt = (({ hasOwnProperty: t }) => (e, n) => t.call(e, n))(Object.prototype), To = I("RegExp"), qr = (t, e) => {
|
|
131
131
|
const n = Object.getOwnPropertyDescriptors(t), r = {};
|
|
132
132
|
Oe(n, (o, i) => {
|
|
133
133
|
let a;
|
|
134
134
|
(a = e(o, i, t)) !== !1 && (r[i] = a || o);
|
|
135
135
|
}), Object.defineProperties(t, r);
|
|
136
136
|
}, xo = (t) => {
|
|
137
|
-
|
|
137
|
+
qr(t, (e, n) => {
|
|
138
138
|
if ($(t) && ["arguments", "caller", "callee"].indexOf(n) !== -1)
|
|
139
139
|
return !1;
|
|
140
140
|
const r = t[n];
|
|
@@ -229,7 +229,7 @@ const Fo = (t) => {
|
|
|
229
229
|
hasOwnProperty: Kt,
|
|
230
230
|
hasOwnProp: Kt,
|
|
231
231
|
// an alias to avoid ESLint no-prototype-builtins detection
|
|
232
|
-
reduceDescriptors:
|
|
232
|
+
reduceDescriptors: qr,
|
|
233
233
|
freezeMethods: xo,
|
|
234
234
|
toObjectSet: Co,
|
|
235
235
|
toCamelCase: Po,
|
|
@@ -237,7 +237,7 @@ const Fo = (t) => {
|
|
|
237
237
|
toFiniteNumber: No,
|
|
238
238
|
findKey: kr,
|
|
239
239
|
global: Q,
|
|
240
|
-
isContextDefined:
|
|
240
|
+
isContextDefined: zr,
|
|
241
241
|
isSpecCompliantForm: $o,
|
|
242
242
|
toJSONObject: Fo,
|
|
243
243
|
isAsyncFn: Do,
|
|
@@ -406,13 +406,13 @@ Jr.toString = function(e) {
|
|
|
406
406
|
return n(o[0]) + "=" + n(o[1]);
|
|
407
407
|
}, "").join("&");
|
|
408
408
|
};
|
|
409
|
-
function
|
|
409
|
+
function zo(t) {
|
|
410
410
|
return encodeURIComponent(t).replace(/%3A/gi, ":").replace(/%24/g, "$").replace(/%2C/gi, ",").replace(/%20/g, "+").replace(/%5B/gi, "[").replace(/%5D/gi, "]");
|
|
411
411
|
}
|
|
412
412
|
function Vr(t, e, n) {
|
|
413
413
|
if (!e)
|
|
414
414
|
return t;
|
|
415
|
-
const r = n && n.encode ||
|
|
415
|
+
const r = n && n.encode || zo;
|
|
416
416
|
f.isFunction(n) && (n = {
|
|
417
417
|
serialize: n
|
|
418
418
|
});
|
|
@@ -482,10 +482,10 @@ const Kr = {
|
|
|
482
482
|
silentJSONParsing: !0,
|
|
483
483
|
forcedJSONParsing: !0,
|
|
484
484
|
clarifyTimeoutError: !1
|
|
485
|
-
},
|
|
485
|
+
}, qo = typeof URLSearchParams < "u" ? URLSearchParams : Mt, jo = typeof FormData < "u" ? FormData : null, Ho = typeof Blob < "u" ? Blob : null, Wo = {
|
|
486
486
|
isBrowser: !0,
|
|
487
487
|
classes: {
|
|
488
|
-
URLSearchParams:
|
|
488
|
+
URLSearchParams: qo,
|
|
489
489
|
FormData: jo,
|
|
490
490
|
Blob: Ho
|
|
491
491
|
},
|
|
@@ -1236,11 +1236,11 @@ const Si = async (t) => {
|
|
|
1236
1236
|
duplex: "half"
|
|
1237
1237
|
}), _;
|
|
1238
1238
|
if (f.isFormData(r) && (_ = A.headers.get("content-type")) && l.setContentType(_), A.body) {
|
|
1239
|
-
const [N,
|
|
1239
|
+
const [N, z] = er(
|
|
1240
1240
|
h,
|
|
1241
1241
|
Me(tr(c))
|
|
1242
1242
|
);
|
|
1243
|
-
r = nr(A.body, or, N,
|
|
1243
|
+
r = nr(A.body, or, N, z);
|
|
1244
1244
|
}
|
|
1245
1245
|
}
|
|
1246
1246
|
f.isString(p) || (p = p ? "include" : "omit");
|
|
@@ -1261,13 +1261,13 @@ const Si = async (t) => {
|
|
|
1261
1261
|
["status", "statusText", "headers"].forEach((L) => {
|
|
1262
1262
|
A[L] = E[L];
|
|
1263
1263
|
});
|
|
1264
|
-
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N,
|
|
1264
|
+
const _ = f.toFiniteNumber(E.headers.get("content-length")), [N, z] = s && er(
|
|
1265
1265
|
_,
|
|
1266
1266
|
Me(tr(s), !0)
|
|
1267
1267
|
) || [];
|
|
1268
1268
|
E = new Response(
|
|
1269
1269
|
nr(E.body, or, N, () => {
|
|
1270
|
-
|
|
1270
|
+
z && z(), m && m();
|
|
1271
1271
|
}),
|
|
1272
1272
|
A
|
|
1273
1273
|
);
|
|
@@ -1748,7 +1748,7 @@ const Ni = {}, $i = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
1748
1748
|
__proto__: null,
|
|
1749
1749
|
default: Ni
|
|
1750
1750
|
}, Symbol.toStringTag, { value: "Module" })), Fi = /* @__PURE__ */ _i($i);
|
|
1751
|
-
var
|
|
1751
|
+
var zt = typeof Map == "function" && Map.prototype, at = Object.getOwnPropertyDescriptor && zt ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null, ze = zt && at && typeof at.get == "function" ? at.get : null, ur = zt && Map.prototype.forEach, qt = typeof Set == "function" && Set.prototype, st = Object.getOwnPropertyDescriptor && qt ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null, qe = qt && st && typeof st.get == "function" ? st.get : null, cr = qt && Set.prototype.forEach, Di = typeof WeakMap == "function" && WeakMap.prototype, he = Di ? WeakMap.prototype.has : null, Ii = typeof WeakSet == "function" && WeakSet.prototype, me = Ii ? WeakSet.prototype.has : null, Li = typeof WeakRef == "function" && WeakRef.prototype, fr = Li ? WeakRef.prototype.deref : null, Ui = Boolean.prototype.valueOf, Bi = Object.prototype.toString, Mi = Function.prototype.toString, ki = String.prototype.match, jt = String.prototype.slice, J = String.prototype.replace, zi = String.prototype.toUpperCase, pr = String.prototype.toLowerCase, ln = RegExp.prototype.test, dr = Array.prototype.concat, k = Array.prototype.join, qi = Array.prototype.slice, yr = Math.floor, _t = typeof BigInt == "function" ? BigInt.prototype.valueOf : null, lt = Object.getOwnPropertySymbols, Nt = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Symbol.prototype.toString : null, se = typeof Symbol == "function" && typeof Symbol.iterator == "object", ge = typeof Symbol == "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === se || !0) ? Symbol.toStringTag : null, un = Object.prototype.propertyIsEnumerable, hr = (typeof Reflect == "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(t) {
|
|
1752
1752
|
return t.__proto__;
|
|
1753
1753
|
} : null);
|
|
1754
1754
|
function mr(t, e) {
|
|
@@ -1812,8 +1812,8 @@ var $t = Fi, gr = $t.custom, vr = pn(gr) ? gr : null, cn = {
|
|
|
1812
1812
|
o = [];
|
|
1813
1813
|
else if (dn(o, e) >= 0)
|
|
1814
1814
|
return "[Circular]";
|
|
1815
|
-
function d(D, W,
|
|
1816
|
-
if (W && (o =
|
|
1815
|
+
function d(D, W, q) {
|
|
1816
|
+
if (W && (o = qi.call(o), o.push(W)), q) {
|
|
1817
1817
|
var pe = {
|
|
1818
1818
|
depth: i.depth
|
|
1819
1819
|
};
|
|
@@ -1854,13 +1854,13 @@ var $t = Fi, gr = $t.custom, vr = pn(gr) ? gr : null, cn = {
|
|
|
1854
1854
|
var A = [];
|
|
1855
1855
|
return ur && ur.call(e, function(D, W) {
|
|
1856
1856
|
A.push(d(W, e, !0) + " => " + d(D, e));
|
|
1857
|
-
}), br("Map",
|
|
1857
|
+
}), br("Map", ze.call(e), A, p);
|
|
1858
1858
|
}
|
|
1859
1859
|
if (ra(e)) {
|
|
1860
1860
|
var _ = [];
|
|
1861
1861
|
return cr && cr.call(e, function(D) {
|
|
1862
1862
|
_.push(d(D, e));
|
|
1863
|
-
}), br("Set",
|
|
1863
|
+
}), br("Set", qe.call(e), _, p);
|
|
1864
1864
|
}
|
|
1865
1865
|
if (ea(e))
|
|
1866
1866
|
return ut("WeakMap");
|
|
@@ -1881,7 +1881,7 @@ var $t = Fi, gr = $t.custom, vr = pn(gr) ? gr : null, cn = {
|
|
|
1881
1881
|
if (typeof globalThis < "u" && e === globalThis || typeof lr < "u" && e === lr)
|
|
1882
1882
|
return "{ [object globalThis] }";
|
|
1883
1883
|
if (!Wi(e) && !wr(e)) {
|
|
1884
|
-
var N = _e(e, d),
|
|
1884
|
+
var N = _e(e, d), z = hr ? hr(e) === Object.prototype : e instanceof Object || e.constructor === Object, L = e instanceof Object ? "" : "null prototype", H = !z && ge && Object(e) === e && ge in e ? jt.call(V(e), 8, -1) : L ? "Object" : "", Ce = z || typeof e.constructor != "function" ? "" : e.constructor.name ? e.constructor.name + " " : "", re = Ce + (H || L ? "[" + k.call(dr.call([], H || [], L || []), ": ") + "] " : "");
|
|
1885
1885
|
return N.length === 0 ? re + "{}" : p ? re + "{" + Dt(N, p) + "}" : re + "{ " + k.call(N, ", ") + " }";
|
|
1886
1886
|
}
|
|
1887
1887
|
return String(e);
|
|
@@ -1963,12 +1963,12 @@ function dn(t, e) {
|
|
|
1963
1963
|
return -1;
|
|
1964
1964
|
}
|
|
1965
1965
|
function Yi(t) {
|
|
1966
|
-
if (!
|
|
1966
|
+
if (!ze || !t || typeof t != "object")
|
|
1967
1967
|
return !1;
|
|
1968
1968
|
try {
|
|
1969
|
-
|
|
1969
|
+
ze.call(t);
|
|
1970
1970
|
try {
|
|
1971
|
-
|
|
1971
|
+
qe.call(t);
|
|
1972
1972
|
} catch {
|
|
1973
1973
|
return !0;
|
|
1974
1974
|
}
|
|
@@ -2002,12 +2002,12 @@ function ta(t) {
|
|
|
2002
2002
|
return !1;
|
|
2003
2003
|
}
|
|
2004
2004
|
function ra(t) {
|
|
2005
|
-
if (!
|
|
2005
|
+
if (!qe || !t || typeof t != "object")
|
|
2006
2006
|
return !1;
|
|
2007
2007
|
try {
|
|
2008
|
-
|
|
2008
|
+
qe.call(t);
|
|
2009
2009
|
try {
|
|
2010
|
-
|
|
2010
|
+
ze.call(t);
|
|
2011
2011
|
} catch {
|
|
2012
2012
|
return !0;
|
|
2013
2013
|
}
|
|
@@ -2052,7 +2052,7 @@ function ia(t) {
|
|
|
2052
2052
|
12: "f",
|
|
2053
2053
|
13: "r"
|
|
2054
2054
|
}[e];
|
|
2055
|
-
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") +
|
|
2055
|
+
return n ? "\\" + n : "\\x" + (e < 16 ? "0" : "") + zi.call(e.toString(16));
|
|
2056
2056
|
}
|
|
2057
2057
|
function ye(t) {
|
|
2058
2058
|
return "Object(" + t + ")";
|
|
@@ -2270,11 +2270,11 @@ var Da = "Function.prototype.bind called on incompatible ", Ia = Object.prototyp
|
|
|
2270
2270
|
u.prototype = n.prototype, o.prototype = new u(), u.prototype = null;
|
|
2271
2271
|
}
|
|
2272
2272
|
return o;
|
|
2273
|
-
},
|
|
2273
|
+
}, za = ka, Ye = Function.prototype.bind || za, Ht = Function.prototype.call, yt, Pr;
|
|
2274
2274
|
function wn() {
|
|
2275
2275
|
return Pr || (Pr = 1, yt = Function.prototype.apply), yt;
|
|
2276
2276
|
}
|
|
2277
|
-
var
|
|
2277
|
+
var qa = typeof Reflect < "u" && Reflect && Reflect.apply, ja = Ye, Ha = wn(), Wa = Ht, Ga = qa, Ja = Ga || ja.call(Wa, Ha), Va = Ye, Ka = fe, Qa = Ht, Xa = Ja, bn = function(e) {
|
|
2278
2278
|
if (e.length < 1 || typeof e[0] != "function")
|
|
2279
2279
|
throw new Ka("a function is required");
|
|
2280
2280
|
return Xa(Va, Qa, e);
|
|
@@ -2589,7 +2589,7 @@ function() {
|
|
|
2589
2589
|
}
|
|
2590
2590
|
};
|
|
2591
2591
|
return n;
|
|
2592
|
-
}, Us = Wt, et = Rn, Bs = Xe, Ne = Pn, Ms = fe, oe = Us("%WeakMap%", !0), ks = et("WeakMap.prototype.get", !0),
|
|
2592
|
+
}, Us = Wt, et = Rn, Bs = Xe, Ne = Pn, Ms = fe, oe = Us("%WeakMap%", !0), ks = et("WeakMap.prototype.get", !0), zs = et("WeakMap.prototype.set", !0), qs = et("WeakMap.prototype.has", !0), js = et("WeakMap.prototype.delete", !0), Hs = oe ? (
|
|
2593
2593
|
/** @type {Exclude<import('.'), false>} */
|
|
2594
2594
|
function() {
|
|
2595
2595
|
var e, n, r = {
|
|
@@ -2609,10 +2609,10 @@ function() {
|
|
|
2609
2609
|
return oe && o && (typeof o == "object" || typeof o == "function") && e ? ks(e, o) : n && n.get(o);
|
|
2610
2610
|
},
|
|
2611
2611
|
has: function(o) {
|
|
2612
|
-
return oe && o && (typeof o == "object" || typeof o == "function") && e ?
|
|
2612
|
+
return oe && o && (typeof o == "object" || typeof o == "function") && e ? qs(e, o) : !!n && n.has(o);
|
|
2613
2613
|
},
|
|
2614
2614
|
set: function(o, i) {
|
|
2615
|
-
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()),
|
|
2615
|
+
oe && o && (typeof o == "object" || typeof o == "function") ? (e || (e = new oe()), zs(e, o, i)) : Ne && (n || (n = Ne()), n.set(o, i));
|
|
2616
2616
|
}
|
|
2617
2617
|
};
|
|
2618
2618
|
return r;
|
|
@@ -2827,8 +2827,8 @@ function() {
|
|
|
2827
2827
|
}
|
|
2828
2828
|
if (yl(g) || Be.isBuffer(g)) {
|
|
2829
2829
|
if (u) {
|
|
2830
|
-
var
|
|
2831
|
-
return [m(
|
|
2830
|
+
var z = h ? n : u(n, P.encoder, S, "key", y);
|
|
2831
|
+
return [m(z) + "=" + m(u(g, P.encoder, S, "value", y))];
|
|
2832
2832
|
}
|
|
2833
2833
|
return [m(n) + "=" + m(String(g))];
|
|
2834
2834
|
}
|
|
@@ -2848,9 +2848,9 @@ function() {
|
|
|
2848
2848
|
if (i && M(g) && g.length === 0)
|
|
2849
2849
|
return D + "[]";
|
|
2850
2850
|
for (var W = 0; W < H.length; ++W) {
|
|
2851
|
-
var
|
|
2851
|
+
var q = H[W], pe = typeof q == "object" && q && typeof q.value < "u" ? q.value : g[q];
|
|
2852
2852
|
if (!(s && pe === null)) {
|
|
2853
|
-
var tt = d && c ? String(
|
|
2853
|
+
var tt = d && c ? String(q).replace(/\./g, "%2E") : String(q), Ln = M(g) ? typeof r == "function" ? r(D, tt) : D : D + (d ? "." + tt : "[" + tt + "]");
|
|
2854
2854
|
E.set(e, A);
|
|
2855
2855
|
var Vt = Cn();
|
|
2856
2856
|
Vt.set(At, E), Nn(L, t(
|
|
@@ -3242,7 +3242,10 @@ const Fl = {
|
|
|
3242
3242
|
{ path: "/api/enterpriseright/permission/v1/user/transfer-user-list", method: "get" },
|
|
3243
3243
|
// 其它服务
|
|
3244
3244
|
{ path: "/api/device-relation/devicerule/v1/rule/listAuthority" },
|
|
3245
|
+
{ path: "/api/device-relation/devicerule/v1/rule/listAuthorityUser" },
|
|
3245
3246
|
{ path: "/api/fms/base/interface/v1/organization/authtree" },
|
|
3247
|
+
{ path: "/api/fms/base/interface/v1/organization/organizationpage" },
|
|
3248
|
+
{ path: "/workflow/api/org/v1/orgs/getOrgPage" },
|
|
3246
3249
|
{ path: "/api/user/v1/users/queryByType" },
|
|
3247
3250
|
{ path: "/api/user/v1/users/getAllOrgUsers" },
|
|
3248
3251
|
{ path: "/api/user/v1/users/getOrgUserQuery" },
|
|
@@ -3281,13 +3284,13 @@ const Fl = {
|
|
|
3281
3284
|
Un(Fl);
|
|
3282
3285
|
Ut.extend(Wn);
|
|
3283
3286
|
Ut.extend(Gn);
|
|
3284
|
-
const Jt = Ir(), Fn = Jt.sso ?? !0, kl = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ?? !1,
|
|
3287
|
+
const Jt = Ir(), Fn = Jt.sso ?? !0, kl = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ?? !1, zl = (t) => {
|
|
3285
3288
|
var e, n, r;
|
|
3286
3289
|
return ((e = t == null ? void 0 : t.response) == null ? void 0 : e.status) === 401 || ((r = (n = t == null ? void 0 : t.response) == null ? void 0 : n.data) == null ? void 0 : r.code) === 401;
|
|
3287
|
-
},
|
|
3290
|
+
}, ql = (t) => {
|
|
3288
3291
|
t.interceptors.response.use(void 0, async (e) => {
|
|
3289
3292
|
const n = e == null ? void 0 : e.config;
|
|
3290
|
-
if (!n || n.public || !
|
|
3293
|
+
if (!n || n.public || !zl(e) || n.skipUnauthorizedRecovery || n._unauthorizedRecoveryRetried)
|
|
3291
3294
|
return Promise.reject(e);
|
|
3292
3295
|
try {
|
|
3293
3296
|
const r = await Xn({ error: e, config: n });
|
|
@@ -3308,9 +3311,9 @@ const Jt = Ir(), Fn = Jt.sso ?? !0, kl = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ??
|
|
|
3308
3311
|
let n = ((p = t.response) == null ? void 0 : p.status) || 500, r = (d = t.response) == null ? void 0 : d.message, o = {};
|
|
3309
3312
|
const i = { 400: G("参数校验错误"), 404: G("接口地址未找到"), 500: G("服务器内部错误") };
|
|
3310
3313
|
let a = ((v = t == null ? void 0 : t.response) == null ? void 0 : v.data) || {};
|
|
3311
|
-
const s =
|
|
3314
|
+
const s = zn("code") || "", c = (e == null ? void 0 : e.noRedireLogin) ?? ((y = t == null ? void 0 : t.config) == null ? void 0 : y.noRedireLogin), l = !((t == null ? void 0 : t.__skipLoginRedirect) === !0) && !(c ?? Dn);
|
|
3312
3315
|
if (!s && l && (n === 401 || (a == null ? void 0 : a.code) === 401))
|
|
3313
|
-
Fn ?
|
|
3316
|
+
Fn ? qn({ ...Hn, redirect_uri: jn }) : In(), o = a;
|
|
3314
3317
|
else {
|
|
3315
3318
|
if (t.response) {
|
|
3316
3319
|
if (a instanceof Blob && (a = await new Promise((S) => {
|
|
@@ -3339,7 +3342,7 @@ const Jt = Ir(), Fn = Jt.sso ?? !0, kl = Jt.i18n ?? !0, Dn = Jt.noRedireLogin ??
|
|
|
3339
3342
|
return { ...o, code: n, msg: r, error: t };
|
|
3340
3343
|
}, Wl = (t, e) => {
|
|
3341
3344
|
const n = R.create();
|
|
3342
|
-
return
|
|
3345
|
+
return ql(n), Mn(n, async (r) => {
|
|
3343
3346
|
const o = Ir();
|
|
3344
3347
|
if (r.headers || (r.headers = {}), !(r != null && r.public)) {
|
|
3345
3348
|
let l = "";
|
|
Binary file
|
|
@@ -3260,7 +3260,10 @@ const Nl = {
|
|
|
3260
3260
|
{ path: "/api/enterpriseright/permission/v1/user/transfer-user-list", method: "get" },
|
|
3261
3261
|
// 其它服务
|
|
3262
3262
|
{ path: "/api/device-relation/devicerule/v1/rule/listAuthority" },
|
|
3263
|
+
{ path: "/api/device-relation/devicerule/v1/rule/listAuthorityUser" },
|
|
3263
3264
|
{ path: "/api/fms/base/interface/v1/organization/authtree" },
|
|
3265
|
+
{ path: "/api/fms/base/interface/v1/organization/organizationpage" },
|
|
3266
|
+
{ path: "/workflow/api/org/v1/orgs/getOrgPage" },
|
|
3264
3267
|
{ path: "/api/user/v1/users/queryByType" },
|
|
3265
3268
|
{ path: "/api/user/v1/users/getAllOrgUsers" },
|
|
3266
3269
|
{ path: "/api/user/v1/users/getOrgUserQuery" },
|
|
Binary file
|
|
@@ -3260,7 +3260,10 @@ const Nl = {
|
|
|
3260
3260
|
{ path: "/api/enterpriseright/permission/v1/user/transfer-user-list", method: "get" },
|
|
3261
3261
|
// 其它服务
|
|
3262
3262
|
{ path: "/api/device-relation/devicerule/v1/rule/listAuthority" },
|
|
3263
|
+
{ path: "/api/device-relation/devicerule/v1/rule/listAuthorityUser" },
|
|
3263
3264
|
{ path: "/api/fms/base/interface/v1/organization/authtree" },
|
|
3265
|
+
{ path: "/api/fms/base/interface/v1/organization/organizationpage" },
|
|
3266
|
+
{ path: "/workflow/api/org/v1/orgs/getOrgPage" },
|
|
3264
3267
|
{ path: "/api/user/v1/users/queryByType" },
|
|
3265
3268
|
{ path: "/api/user/v1/users/getAllOrgUsers" },
|
|
3266
3269
|
{ path: "/api/user/v1/users/getOrgUserQuery" },
|
|
Binary file
|
|
@@ -3260,7 +3260,10 @@ const Fl = {
|
|
|
3260
3260
|
{ path: "/api/enterpriseright/permission/v1/user/transfer-user-list", method: "get" },
|
|
3261
3261
|
// 其它服务
|
|
3262
3262
|
{ path: "/api/device-relation/devicerule/v1/rule/listAuthority" },
|
|
3263
|
+
{ path: "/api/device-relation/devicerule/v1/rule/listAuthorityUser" },
|
|
3263
3264
|
{ path: "/api/fms/base/interface/v1/organization/authtree" },
|
|
3265
|
+
{ path: "/api/fms/base/interface/v1/organization/organizationpage" },
|
|
3266
|
+
{ path: "/workflow/api/org/v1/orgs/getOrgPage" },
|
|
3264
3267
|
{ path: "/api/user/v1/users/queryByType" },
|
|
3265
3268
|
{ path: "/api/user/v1/users/getAllOrgUsers" },
|
|
3266
3269
|
{ path: "/api/user/v1/users/getOrgUserQuery" },
|
|
Binary file
|
|
@@ -3260,7 +3260,10 @@ const Nl = {
|
|
|
3260
3260
|
{ path: "/api/enterpriseright/permission/v1/user/transfer-user-list", method: "get" },
|
|
3261
3261
|
// 其它服务
|
|
3262
3262
|
{ path: "/api/device-relation/devicerule/v1/rule/listAuthority" },
|
|
3263
|
+
{ path: "/api/device-relation/devicerule/v1/rule/listAuthorityUser" },
|
|
3263
3264
|
{ path: "/api/fms/base/interface/v1/organization/authtree" },
|
|
3265
|
+
{ path: "/api/fms/base/interface/v1/organization/organizationpage" },
|
|
3266
|
+
{ path: "/workflow/api/org/v1/orgs/getOrgPage" },
|
|
3264
3267
|
{ path: "/api/user/v1/users/queryByType" },
|
|
3265
3268
|
{ path: "/api/user/v1/users/getAllOrgUsers" },
|
|
3266
3269
|
{ path: "/api/user/v1/users/getOrgUserQuery" },
|
|
Binary file
|