@das-fed/utils 7.0.0-zhaohang.4 → 7.0.0-zhaohang.6

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.
Files changed (53) hide show
  1. package/api-services/index.js +88 -84
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +705 -683
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +39 -35
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +735 -713
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +39 -35
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +38 -34
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +643 -635
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +911 -925
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +39 -35
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +88 -84
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +45 -41
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +704 -686
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +705 -683
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +39 -35
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +39 -35
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +42 -38
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +39 -35
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +39 -35
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +41 -37
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +734 -712
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +39 -35
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +646 -638
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +703 -685
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +38 -34
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/create-api-service/index.js +704 -682
  50. package/create-api-service/index.js.gz +0 -0
  51. package/curring-http/index.js +392 -392
  52. package/curring-http/index.js.gz +0 -0
  53. package/package.json +4 -4
@@ -1686,22 +1686,22 @@ R.getAdapter = cn.getAdapter;
1686
1686
  R.HttpStatusCode = _t;
1687
1687
  R.default = R;
1688
1688
  const {
1689
- Axios: Wl,
1690
- AxiosError: Gl,
1691
- CanceledError: Jl,
1692
- isCancel: Vl,
1693
- CancelToken: Kl,
1694
- VERSION: Ql,
1695
- all: Xl,
1696
- Cancel: Zl,
1697
- isAxiosError: Yl,
1698
- spread: ec,
1699
- toFormData: tc,
1700
- AxiosHeaders: rc,
1701
- HttpStatusCode: nc,
1702
- formToJSON: oc,
1703
- getAdapter: ac,
1704
- mergeConfig: ic
1689
+ Axios: Gl,
1690
+ AxiosError: Jl,
1691
+ CanceledError: Vl,
1692
+ isCancel: Kl,
1693
+ CancelToken: Ql,
1694
+ VERSION: Xl,
1695
+ all: Zl,
1696
+ Cancel: Yl,
1697
+ isAxiosError: ec,
1698
+ spread: tc,
1699
+ toFormData: rc,
1700
+ AxiosHeaders: nc,
1701
+ HttpStatusCode: oc,
1702
+ formToJSON: ac,
1703
+ getAdapter: ic,
1704
+ mergeConfig: sc
1705
1705
  } = R;
1706
1706
  var ur = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1707
1707
  function Fa(t) {
@@ -3200,27 +3200,31 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
3200
3200
  if (Mn) return;
3201
3201
  const t = "/login";
3202
3202
  location.pathname !== t && (sessionStorage.clear(), window.__isAutoCloseApp = !1, location.replace(t));
3203
- }, Mr = "SUC0000", _l = async (t) => {
3204
- var i, s, u, l, c, p;
3203
+ }, Mr = "SUC0000", _l = "AUM0020401", Nl = async (t) => {
3204
+ var a, i, s, u, l, c;
3205
3205
  let e = t.data || {};
3206
3206
  const n = (e == null ? void 0 : e.returnCode) || Mr;
3207
- let r = e.errorMsg ?? "", o = {};
3208
- return n !== Mr ? (!(Gn("code") || "") && !Mn && n === 401 ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), o = e) : (e instanceof Blob && (e = await new Promise((v) => {
3209
- const y = new FileReader();
3210
- y.readAsText(e, "utf-8"), y.onload = () => {
3211
- try {
3212
- v(JSON.parse(y.result || "{}"));
3213
- } catch {
3214
- v({ code: 400, msg: Ot("blob解析错误") });
3215
- }
3216
- };
3217
- })), o = e), (i = t.config) != null && i.customErrorMessage && (r = (s = t.config) == null ? void 0 : s.customErrorMessage(r, n)), !((u = t.config) != null && u.ignoreErrorMessage) && r && ((c = (l = window.DasMessage) == null ? void 0 : l.error) == null || c.call(l, { message: r, showClose: !0 })), { ...o, code: n, msg: r }) : ((p = t.config) == null ? void 0 : p.responseType) === "blob" ? t : { ...t.data ?? {}, code: n };
3218
- }, Nl = async (t, e) => {
3207
+ let r = {};
3208
+ if (n !== Mr) {
3209
+ let p = e.errorMsg ?? "";
3210
+ return !(Gn("code") || "") && !Mn && n === _l ? (Un ? Jn({ ...Kn, redirect_uri: Vn }) : kn(), r = e) : (e instanceof Blob && (e = await new Promise((v) => {
3211
+ const y = new FileReader();
3212
+ y.readAsText(e, "utf-8"), y.onload = () => {
3213
+ try {
3214
+ v(JSON.parse(y.result || "{}"));
3215
+ } catch {
3216
+ v({ code: 400, msg: Ot("blob解析错误") });
3217
+ }
3218
+ };
3219
+ })), r = e), (a = t.config) != null && a.customErrorMessage && (p = (i = t.config) == null ? void 0 : i.customErrorMessage(p, n)), !((s = t.config) != null && s.ignoreErrorMessage) && p && ((l = (u = window.DasMessage) == null ? void 0 : u.error) == null || l.call(u, { message: p, showClose: !0 })), { data: r, code: n, msg: p };
3220
+ }
3221
+ return ((c = t.config) == null ? void 0 : c.responseType) === "blob" ? { data: t, code: n } : { data: t.data ?? t, code: n };
3222
+ }, Fl = async (t, e) => {
3219
3223
  var o, a, i, s;
3220
3224
  let n = ((o = t == null ? void 0 : t.response) == null ? void 0 : o.data) || {}, r = (a = t.response) == null ? void 0 : a.message;
3221
3225
  if (!t.response)
3222
- return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { ...n, code: t.code, msg: r, error: t };
3223
- }, Fl = (t, e) => {
3226
+ return t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("网络异常,请检查您的网络情况") : t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r = Ot("请求配置异常"), !(e != null && e.ignoreErrorMessage) && r && ((s = (i = window.DasMessage) == null ? void 0 : i.error) == null || s.call(i, { message: r, showClose: !0 })), { data: n, code: t.code, msg: r, error: t };
3227
+ }, $l = (t, e) => {
3224
3228
  const n = R.create();
3225
3229
  return zn(n, async (r) => {
3226
3230
  const o = kr();
@@ -3232,7 +3236,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
3232
3236
  }
3233
3237
  Un ? l || (l = await Wn(r)) : (l || (l = eo()), l || kn()), l && !r.headers.Authorization && (r.headers.Authorization = `Bearer ${l}`);
3234
3238
  }
3235
- r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = _l), r.onError || (r.onError = Nl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
3239
+ r.baseURL || (r.baseURL = o.baseURL || ""), r.urlPrefix || (r.urlPrefix = t), r.paramsSerializer || (r.paramsSerializer = { serialize: (l) => Pl.stringify(l, { indices: !1 }) }), r.onSuccess || (r.onSuccess = Nl), r.onError || (r.onError = Fl), (r.csrf ?? !1) && (r.headers["csrf-token"] = xl.get("csrf-token"));
3236
3240
  const s = r.params || {};
3237
3241
  if (s.project === void 0) {
3238
3242
  let l = 0;
@@ -3245,7 +3249,7 @@ const Mn = Vt.noRedireLogin ?? !1, kn = () => {
3245
3249
  }
3246
3250
  return r.params = s, r.headers.Timezone = Ut.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = Hn.value, r;
3247
3251
  });
3248
- }, $l = "v1", sc = Fl(`/api/supply/brand/${$l}`);
3252
+ }, Dl = "v1", lc = $l(`/api/supply/brand/${Dl}`);
3249
3253
  export {
3250
- sc as enterpriseadminBrandModel
3254
+ lc as enterpriseadminBrandModel
3251
3255
  };