@das-fed/upf-utils 6.4.0-dev.238 → 6.4.0-dev.239

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 (190) hide show
  1. package/api-services/es5.d.ts +2 -0
  2. package/api-services/es5.js +823 -820
  3. package/api-services/i18n/es5.d.ts +63 -0
  4. package/api-services/index.js +642 -644
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/es5.d.ts +2 -0
  7. package/api-services/modules/app-manage/es5.js +25 -19
  8. package/api-services/modules/app-manage/index.js +17 -15
  9. package/api-services/modules/app-manage/index.js.gz +0 -0
  10. package/api-services/modules/authentication/es5.d.ts +2 -0
  11. package/api-services/modules/authentication/es5.js +1100 -1082
  12. package/api-services/modules/authentication/index.js +911 -891
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/es5.d.ts +6 -0
  15. package/api-services/modules/bems/es5.js +96 -90
  16. package/api-services/modules/bems/index.js +75 -73
  17. package/api-services/modules/bems/index.js.gz +0 -0
  18. package/api-services/modules/contract/es5.d.ts +2 -0
  19. package/api-services/modules/contract/es5.js +1343 -1325
  20. package/api-services/modules/contract/index.js +1140 -1120
  21. package/api-services/modules/contract/index.js.gz +0 -0
  22. package/api-services/modules/duty-manage/es5.d.ts +7 -0
  23. package/api-services/modules/duty-manage/es5.js +1338 -1344
  24. package/api-services/modules/duty-manage/index.js +1122 -1138
  25. package/api-services/modules/duty-manage/index.js.gz +0 -0
  26. package/api-services/modules/enterpriseright/es5.d.ts +2 -0
  27. package/api-services/modules/enterpriseright/es5.js +1086 -1071
  28. package/api-services/modules/enterpriseright/index.js +892 -876
  29. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  30. package/api-services/modules/es5.d.ts +21 -0
  31. package/api-services/modules/es5.js +1351 -1357
  32. package/api-services/modules/file/es5.d.ts +37 -0
  33. package/api-services/modules/file/es5.js +131 -125
  34. package/api-services/modules/file/index.js +108 -106
  35. package/api-services/modules/file/index.js.gz +0 -0
  36. package/api-services/modules/gateway-edge/es5.d.ts +2 -0
  37. package/api-services/modules/gateway-edge/es5.js +1343 -1325
  38. package/api-services/modules/gateway-edge/index.js +1140 -1120
  39. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  40. package/api-services/modules/index.js +1060 -1076
  41. package/api-services/modules/index.js.gz +0 -0
  42. package/api-services/modules/iot/es5.d.ts +16 -0
  43. package/api-services/modules/iot/es5.js +33 -27
  44. package/api-services/modules/iot/index.js +23 -21
  45. package/api-services/modules/iot/index.js.gz +0 -0
  46. package/api-services/modules/justauth/es5.d.ts +3 -0
  47. package/api-services/modules/justauth/es5.js +25 -19
  48. package/api-services/modules/justauth/index.js +17 -15
  49. package/api-services/modules/justauth/index.js.gz +0 -0
  50. package/api-services/modules/knowledge/es5.d.ts +2 -0
  51. package/api-services/modules/knowledge/es5.js +1337 -1321
  52. package/api-services/modules/knowledge/index.js +1124 -1108
  53. package/api-services/modules/knowledge/index.js.gz +0 -0
  54. package/api-services/modules/link/es5.d.ts +2 -0
  55. package/api-services/modules/link/es5.js +1343 -1325
  56. package/api-services/modules/link/index.js +1140 -1120
  57. package/api-services/modules/link/index.js.gz +0 -0
  58. package/api-services/modules/permission/es5.d.ts +2 -0
  59. package/api-services/modules/permission/es5.js +1100 -1106
  60. package/api-services/modules/permission/index.js +897 -913
  61. package/api-services/modules/permission/index.js.gz +0 -0
  62. package/api-services/modules/platformManage/es5.d.ts +14 -0
  63. package/api-services/modules/platformManage/es5.js +104 -98
  64. package/api-services/modules/platformManage/index.js +83 -81
  65. package/api-services/modules/platformManage/index.js.gz +0 -0
  66. package/api-services/modules/portal/es5.d.ts +2 -0
  67. package/api-services/modules/portal/es5.js +1343 -1349
  68. package/api-services/modules/portal/index.js +1126 -1142
  69. package/api-services/modules/portal/index.js.gz +0 -0
  70. package/api-services/modules/space-manage/es5.d.ts +2 -0
  71. package/api-services/modules/space-manage/es5.js +1343 -1349
  72. package/api-services/modules/space-manage/index.js +1126 -1142
  73. package/api-services/modules/space-manage/index.js.gz +0 -0
  74. package/api-services/modules/super-admin/es5.d.ts +8 -0
  75. package/api-services/modules/super-admin/es5.js +1081 -1084
  76. package/api-services/modules/super-admin/index.js +880 -892
  77. package/api-services/modules/super-admin/index.js.gz +0 -0
  78. package/api-services/modules/supplier/es5.d.ts +6 -0
  79. package/api-services/modules/supplier/es5.js +1081 -1084
  80. package/api-services/modules/supplier/index.js +880 -892
  81. package/api-services/modules/supplier/index.js.gz +0 -0
  82. package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
  83. package/api-services/modules/supplychain-manage/es5.js +1343 -1325
  84. package/api-services/modules/supplychain-manage/index.js +1140 -1120
  85. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  86. package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
  87. package/api-services/modules/systemConfiguration/es5.js +1100 -1106
  88. package/api-services/modules/systemConfiguration/index.js +897 -913
  89. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  90. package/api-services/modules/tool/es5.d.ts +2 -0
  91. package/api-services/modules/tool/es5.js +845 -836
  92. package/api-services/modules/tool/index.js +660 -654
  93. package/api-services/modules/tool/index.js.gz +0 -0
  94. package/api-services/src/create-service/es5.d.ts +1 -0
  95. package/api-services/src/create-service/es5.js +1326 -1332
  96. package/api-services/src/create-service/index.js +1110 -1126
  97. package/api-services/src/create-service/index.js.gz +0 -0
  98. package/atob/es5.d.ts +2 -0
  99. package/common-info/es5.d.ts +48 -0
  100. package/common-info/es5.js +1269 -1331
  101. package/common-info/getIframeUrl/es5.d.ts +9 -0
  102. package/common-info/getInfoFromUrl/es5.d.ts +8 -0
  103. package/common-info/getPermissionMethod/es5.d.ts +77 -0
  104. package/common-info/getPermissionMethod/es5.js +1371 -1355
  105. package/common-info/getPermissionMethod/index.d.ts +27 -9
  106. package/common-info/getPermissionMethod/index.js +1141 -1125
  107. package/common-info/getPermissionMethod/index.js.gz +0 -0
  108. package/common-info/index.d.ts +1 -29
  109. package/common-info/index.js +1046 -1096
  110. package/common-info/index.js.gz +0 -0
  111. package/common-info/set-personal-info/es5.d.ts +5 -0
  112. package/common-info/type.d.ts +2 -2
  113. package/common-tools/arr-tools/es5.d.ts +15 -0
  114. package/common-tools/calc-text-width/es5.d.ts +1 -0
  115. package/common-tools/date-format/es5.d.ts +7 -0
  116. package/common-tools/es5.d.ts +15 -0
  117. package/common-tools/es5.js +9 -0
  118. package/common-tools/extract-file-name/es5.d.ts +1 -0
  119. package/common-tools/get-file-extension/es5.d.ts +6 -0
  120. package/common-tools/get-url-params/es5.d.ts +46 -0
  121. package/common-tools/handle-data/es5.d.ts +34 -0
  122. package/common-tools/handle-data/es5.js +44 -6
  123. package/common-tools/handle-data/index.d.ts +16 -1
  124. package/common-tools/handle-data/index.js +1 -1
  125. package/common-tools/handle-data/index.js.gz +0 -0
  126. package/common-tools/index.d.ts +1 -0
  127. package/common-tools/index.js +1 -0
  128. package/common-tools/nest-tree-format/es5.d.ts +30 -0
  129. package/common-tools/obj-tools/es5.d.ts +7 -0
  130. package/common-tools/platform-tools/es5.d.ts +19 -0
  131. package/common-tools/queue-promise/es5.d.ts +6 -0
  132. package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
  133. package/common-tools/timezone-format/es5.d.ts +28 -0
  134. package/common-tools/timezone-format/es5.js +140 -0
  135. package/common-tools/timezone-format/index.d.ts +28 -0
  136. package/common-tools/timezone-format/index.js +81 -0
  137. package/common-tools/timezone-format/index.js.gz +0 -0
  138. package/common-tools/update-browser-title/es5.d.ts +1 -0
  139. package/common-tools/update-fav-icon/es5.d.ts +11 -0
  140. package/config/es5.d.ts +2 -0
  141. package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
  142. package/create-api-service/access-token-auto-refresh/es5.js +27 -26
  143. package/create-api-service/access-token-auto-refresh/index.js +27 -26
  144. package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
  145. package/create-api-service/check-token/es5.d.ts +12 -0
  146. package/create-api-service/es5.d.ts +8 -0
  147. package/create-api-service/es5.js +24 -18
  148. package/create-api-service/i18n/es5.d.ts +39 -0
  149. package/create-api-service/index.js +17 -15
  150. package/create-api-service/index.js.gz +0 -0
  151. package/create-api-service/proxy-sso/es5.d.ts +3 -0
  152. package/create-api-service/sso/es5.d.ts +21 -0
  153. package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
  154. package/curring-http/es5.d.ts +12 -0
  155. package/dimple-canvas/es5.d.ts +3 -0
  156. package/directive/auth/es5.d.ts +8 -0
  157. package/directive/clickOutside/es5.d.ts +6 -0
  158. package/directive/es5.d.ts +3 -0
  159. package/directive/hoverInside/es5.d.ts +6 -0
  160. package/directive/utils/es5.d.ts +7 -0
  161. package/dom-check-in/es5.d.ts +6 -0
  162. package/dom-watcher/es5.d.ts +25 -0
  163. package/esm-map.json +32 -7
  164. package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
  165. package/i18n-bridge/es5.d.ts +10 -0
  166. package/index.d.ts +1 -0
  167. package/index.js +1 -0
  168. package/load-js/es5.d.ts +3 -0
  169. package/nextTiken/es5.d.ts +12 -0
  170. package/oss/es5.d.ts +2 -0
  171. package/package.json +4 -3
  172. package/pinyin-first-character/es5.d.ts +2 -0
  173. package/process-engine-info/es5.d.ts +13 -0
  174. package/pure-image-src/es5.d.ts +2 -0
  175. package/size-watcher/es5.d.ts +6 -0
  176. package/style/es5.d.ts +2 -0
  177. package/theme/es5.d.ts +92 -0
  178. package/theme/es5.js +1365 -0
  179. package/theme/index.d.ts +92 -0
  180. package/theme/index.js +871 -0
  181. package/theme/index.js.gz +0 -0
  182. package/token-tools/es5.d.ts +21 -0
  183. package/use-low-code/es5.d.ts +1 -0
  184. package/vue/es5.d.ts +1 -0
  185. package/vue/hooks/use-model-value/es5.d.ts +9 -0
  186. package/webSocket-service/es5.d.ts +41 -0
  187. package/with-install/es5.d.ts +11 -0
  188. package/hooks/use-get-auth/es5.js +0 -67
  189. package/hooks/use-get-auth/index.d.ts +0 -4
  190. package/hooks/use-get-auth/index.js +0 -19
Binary file
@@ -0,0 +1,16 @@
1
+ /** iot服务 */
2
+ export declare const iot: any;
3
+ export declare const iotModules: {
4
+ thingmodel: any;
5
+ deviceManage: any;
6
+ product: any;
7
+ productStorage: any;
8
+ };
9
+ export declare const iotRelationModules: {
10
+ projectDevice: any;
11
+ deviceRules: any;
12
+ project: any;
13
+ };
14
+ export declare const iotMinio: any;
15
+ export declare const iotProgress: any;
16
+ export declare const analyApi: any;
@@ -3809,13 +3809,17 @@ var Kr = Ht(Bl, {
3809
3809
  });
3810
3810
  zt.extend(so);
3811
3811
  zt.extend(lo);
3812
- var rr = config.getConfig(),
3812
+ var Ml = "UTC",
3813
+ kl = function kl() {
3814
+ return zt.tz.guess() || Ml;
3815
+ },
3816
+ rr = config.getConfig(),
3813
3817
  Xn = (_rr$sso = rr.sso) !== null && _rr$sso !== void 0 ? _rr$sso : true,
3814
3818
  Qr = (_rr$i18n = rr.i18n) !== null && _rr$i18n !== void 0 ? _rr$i18n : true,
3815
3819
  Zn = (_rr$noRedireLogin = rr.noRedireLogin) !== null && _rr$noRedireLogin !== void 0 ? _rr$noRedireLogin : false;
3816
3820
  var Xr = "",
3817
3821
  Zr = 0;
3818
- var Ml = 1e3,
3822
+ var ql = 1e3,
3819
3823
  Yr = /*#__PURE__*/function () {
3820
3824
  var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
3821
3825
  var r,
@@ -3858,24 +3862,26 @@ var Ml = 1e3,
3858
3862
  };
3859
3863
  }();
3860
3864
  var $t = false;
3861
- var kl = 5e3,
3865
+ var jl = 5e3,
3862
3866
  Yn = function Yn() {
3863
3867
  return $t ? false : ($t = true, setTimeout(function () {
3864
3868
  $t = false;
3865
- }, kl), true);
3869
+ }, jl), true);
3866
3870
  },
3867
3871
  eo = function eo() {
3868
- var e, r;
3869
3872
  if (Zn) return;
3870
3873
  var t = "/login";
3871
- location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
3874
+ if (location.pathname === t) return;
3875
+ window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false;
3876
+ var e = window.top;
3877
+ e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace("/#".concat(t));
3872
3878
  },
3873
- ql = function ql() {
3879
+ Hl = function Hl() {
3874
3880
  return sso.getQuery("code") || "" || Zn ? false : Yn() ? (Xn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
3875
3881
  redirect_uri: sso.real_uri
3876
3882
  })) : eo(), true) : false;
3877
3883
  },
3878
- jl = /*#__PURE__*/function () {
3884
+ zl = /*#__PURE__*/function () {
3879
3885
  var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
3880
3886
  var _t$data;
3881
3887
  var r;
@@ -3886,11 +3892,11 @@ var kl = 5e3,
3886
3892
  }
3887
3893
  }, _callee0);
3888
3894
  }));
3889
- return function jl(_x11) {
3895
+ return function zl(_x11) {
3890
3896
  return _ref23.apply(this, arguments);
3891
3897
  };
3892
3898
  }(),
3893
- Hl = /*#__PURE__*/function () {
3899
+ Wl = /*#__PURE__*/function () {
3894
3900
  var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
3895
3901
  var d, m, h, b, _i18nBridge$getI18nBr, r, n, o, i, a, s, u, c, _ref25, O, g, E, _ref26, _ref27, _O, _g, _E, p, y, v, _t11, _t12, _t13;
3896
3902
  return _regenerator().w(function (_context10) {
@@ -3909,7 +3915,7 @@ var kl = 5e3,
3909
3915
  _context10.n = 6;
3910
3916
  break;
3911
3917
  }
3912
- ql(), n = u || c, i = s;
3918
+ Hl(), n = u || c, i = s;
3913
3919
  O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
3914
3920
  if (!(Qr && O && s != null && s.status)) {
3915
3921
  _context10.n = 4;
@@ -4006,7 +4012,7 @@ var kl = 5e3,
4006
4012
  t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
4007
4013
  case 17:
4008
4014
  e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
4009
- p = Date.now(), y = o === Xr, v = p - Zr < Ml;
4015
+ p = Date.now(), y = o === Xr, v = p - Zr < ql;
4010
4016
  return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? undefined : h.error) == null || b.call(h, {
4011
4017
  message: o,
4012
4018
  showClose: true
@@ -4018,7 +4024,7 @@ var kl = 5e3,
4018
4024
  }
4019
4025
  }, _callee1);
4020
4026
  }));
4021
- return function Hl(_x12, _x13) {
4027
+ return function Wl(_x12, _x13) {
4022
4028
  return _ref24.apply(this, arguments);
4023
4029
  };
4024
4030
  }();
@@ -4083,7 +4089,7 @@ function q(t, e) {
4083
4089
  indices: false
4084
4090
  });
4085
4091
  }
4086
- }), n.onSuccess || (n.onSuccess = jl), n.onError || (n.onError = Hl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
4092
+ }), n.onSuccess || (n.onSuccess = zl), n.onError || (n.onError = Wl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
4087
4093
  u = n.params || {};
4088
4094
  if (u.project === undefined) {
4089
4095
  _p = 0;
@@ -4094,7 +4100,7 @@ function q(t, e) {
4094
4100
  _commonInfo$getInstan = commonInfo.getInstanceInfo(), _p2 = _commonInfo$getInstan.instanceInfo;
4095
4101
  _p2 != null && _p2.instanceId && (u.instance = _p2.instanceId);
4096
4102
  }
4097
- n.params = u, n.headers.Timezone = zt.tz.guess(), n.headers["X-Origin"] = location.origin;
4103
+ n.params = u, n.headers.Timezone = kl(), n.headers["X-Origin"] = location.origin;
4098
4104
  l = (_ref29 = o == null ? undefined : o.value) !== null && _ref29 !== void 0 ? _ref29 : "";
4099
4105
  return _context11.a(2, (l && (n.headers["Accept-Language"] = l), l && Kr.set("locale", l), n));
4100
4106
  }
@@ -4106,24 +4112,24 @@ function q(t, e) {
4106
4112
  }());
4107
4113
  }
4108
4114
  var j = "v1",
4109
- tc = q("/api/iot/".concat(j)),
4110
- rc = {
4115
+ nc = q("/api/iot/".concat(j)),
4116
+ oc = {
4111
4117
  thingmodel: q("/api/iot-device/thingmodel/".concat(j)),
4112
4118
  deviceManage: q("/api/iot-device/devicemanage/".concat(j)),
4113
4119
  product: q("/api/iot-device/product/".concat(j)),
4114
4120
  productStorage: q("/api/iot-device/product-storage/".concat(j))
4115
4121
  },
4116
- nc = {
4122
+ ic = {
4117
4123
  projectDevice: q("/api/device-relation/deviceproject/".concat(j)),
4118
4124
  deviceRules: q("/api/device-relation/devicerule/".concat(j)),
4119
4125
  project: q("/api/device-relation/project/".concat(j))
4120
4126
  },
4121
- oc = q("/api/oss/minio/".concat(j)),
4122
- ic = q("/api/progress/accessor/".concat(j)),
4123
- ac = q("/api/dms/analysis/".concat(j));
4124
- exports.analyApi = ac;
4125
- exports.iot = tc;
4126
- exports.iotMinio = oc;
4127
- exports.iotModules = rc;
4128
- exports.iotProgress = ic;
4129
- exports.iotRelationModules = nc;
4127
+ ac = q("/api/oss/minio/".concat(j)),
4128
+ sc = q("/api/progress/accessor/".concat(j)),
4129
+ lc = q("/api/dms/analysis/".concat(j));
4130
+ exports.analyApi = lc;
4131
+ exports.iot = nc;
4132
+ exports.iotMinio = ac;
4133
+ exports.iotModules = oc;
4134
+ exports.iotProgress = sc;
4135
+ exports.iotRelationModules = ic;
@@ -3236,9 +3236,9 @@ function Ht(t, e) {
3236
3236
  var Kr = Ht(Bl, { path: "/" });
3237
3237
  zt.extend(so);
3238
3238
  zt.extend(lo);
3239
- const rr = tn(), Xn = rr.sso ?? !0, Qr = rr.i18n ?? !0, Zn = rr.noRedireLogin ?? !1;
3239
+ const Ml = "UTC", kl = () => zt.tz.guess() || Ml, rr = tn(), Xn = rr.sso ?? !0, Qr = rr.i18n ?? !0, Zn = rr.noRedireLogin ?? !1;
3240
3240
  let Xr = "", Zr = 0;
3241
- const Ml = 1e3, Yr = async (t, e, r = []) => {
3241
+ const ql = 1e3, Yr = async (t, e, r = []) => {
3242
3242
  const n = Date.now(), o = 1200, i = 60;
3243
3243
  for (; Date.now() - n < o; ) {
3244
3244
  const a = t(e, ...r);
@@ -3248,17 +3248,19 @@ const Ml = 1e3, Yr = async (t, e, r = []) => {
3248
3248
  return t(e, ...r);
3249
3249
  };
3250
3250
  let $t = !1;
3251
- const kl = 5e3, Yn = () => $t ? !1 : ($t = !0, setTimeout(() => {
3251
+ const jl = 5e3, Yn = () => $t ? !1 : ($t = !0, setTimeout(() => {
3252
3252
  $t = !1;
3253
- }, kl), !0), eo = () => {
3254
- var e, r;
3253
+ }, jl), !0), eo = () => {
3255
3254
  if (Zn) return;
3256
3255
  const t = "/login";
3257
- location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
3258
- }, ql = () => no("code") || "" || Zn ? !1 : Yn() ? (Xn ? oo({ ...io, redirect_uri: ao }) : eo(), !0) : !1, jl = async (t) => {
3256
+ if (location.pathname === t) return;
3257
+ window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
3258
+ const e = window.top;
3259
+ e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace(`/#${t}`);
3260
+ }, Hl = () => no("code") || "" || Zn ? !1 : Yn() ? (Xn ? oo({ ...io, redirect_uri: ao }) : eo(), !0) : !1, zl = async (t) => {
3259
3261
  var r;
3260
3262
  return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
3261
- }, Hl = async (t, e) => {
3263
+ }, Wl = async (t, e) => {
3262
3264
  var d, m, h, b;
3263
3265
  const { t: r } = en();
3264
3266
  let n, o, i = {};
@@ -3266,7 +3268,7 @@ const kl = 5e3, Yn = () => $t ? !1 : ($t = !0, setTimeout(() => {
3266
3268
  let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
3267
3269
  const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
3268
3270
  if (u === 401 || c === 401) {
3269
- ql(), n = u || c, i = s;
3271
+ Hl(), n = u || c, i = s;
3270
3272
  const O = (e == null ? void 0 : e.i18n) ?? !0;
3271
3273
  if (Qr && O && (s != null && s.status)) {
3272
3274
  const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
@@ -3296,7 +3298,7 @@ const kl = 5e3, Yn = () => $t ? !1 : ($t = !0, setTimeout(() => {
3296
3298
  o || (o = a[t.response.status] || t.message);
3297
3299
  } else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
3298
3300
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3299
- const p = Date.now(), y = o === Xr, v = p - Zr < Ml;
3301
+ const p = Date.now(), y = o === Xr, v = p - Zr < ql;
3300
3302
  return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), Xr = o, Zr = p), { ...i, code: n, msg: o, error: t };
3301
3303
  };
3302
3304
  function q(t, e) {
@@ -3320,7 +3322,7 @@ function q(t, e) {
3320
3322
  }
3321
3323
  p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
3322
3324
  }
3323
- n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ll.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = jl), n.onError || (n.onError = Hl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
3325
+ n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ll.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = zl), n.onError || (n.onError = Wl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Kr.get("csrf-token"));
3324
3326
  const u = n.params || {};
3325
3327
  if (u.project === void 0) {
3326
3328
  let p = 0;
@@ -3331,26 +3333,26 @@ function q(t, e) {
3331
3333
  const { instanceInfo: p } = uo();
3332
3334
  p != null && p.instanceId && (u.instance = p.instanceId);
3333
3335
  }
3334
- n.params = u, n.headers.Timezone = zt.tz.guess(), n.headers["X-Origin"] = location.origin;
3336
+ n.params = u, n.headers.Timezone = kl(), n.headers["X-Origin"] = location.origin;
3335
3337
  const l = (o == null ? void 0 : o.value) ?? "";
3336
3338
  return l && (n.headers["Accept-Language"] = l), l && Kr.set("locale", l), n;
3337
3339
  });
3338
3340
  }
3339
- const j = "v1", tc = q(`/api/iot/${j}`), rc = {
3341
+ const j = "v1", nc = q(`/api/iot/${j}`), oc = {
3340
3342
  thingmodel: q(`/api/iot-device/thingmodel/${j}`),
3341
3343
  deviceManage: q(`/api/iot-device/devicemanage/${j}`),
3342
3344
  product: q(`/api/iot-device/product/${j}`),
3343
3345
  productStorage: q(`/api/iot-device/product-storage/${j}`)
3344
- }, nc = {
3346
+ }, ic = {
3345
3347
  projectDevice: q(`/api/device-relation/deviceproject/${j}`),
3346
3348
  deviceRules: q(`/api/device-relation/devicerule/${j}`),
3347
3349
  project: q(`/api/device-relation/project/${j}`)
3348
- }, oc = q(`/api/oss/minio/${j}`), ic = q(`/api/progress/accessor/${j}`), ac = q(`/api/dms/analysis/${j}`);
3350
+ }, ac = q(`/api/oss/minio/${j}`), sc = q(`/api/progress/accessor/${j}`), lc = q(`/api/dms/analysis/${j}`);
3349
3351
  export {
3350
- ac as analyApi,
3351
- tc as iot,
3352
- oc as iotMinio,
3353
- rc as iotModules,
3354
- ic as iotProgress,
3355
- nc as iotRelationModules
3352
+ lc as analyApi,
3353
+ nc as iot,
3354
+ ac as iotMinio,
3355
+ oc as iotModules,
3356
+ sc as iotProgress,
3357
+ ic as iotRelationModules
3356
3358
  };
@@ -0,0 +1,3 @@
1
+ /** auth认证服务 */
2
+ export declare const justauth: any;
3
+ export declare const oauthServer: any;
@@ -3809,13 +3809,17 @@ var Jr = qt(Bl, {
3809
3809
  });
3810
3810
  jt.extend(so);
3811
3811
  jt.extend(lo);
3812
- var er = config.getConfig(),
3812
+ var Ml = "UTC",
3813
+ kl = function kl() {
3814
+ return jt.tz.guess() || Ml;
3815
+ },
3816
+ er = config.getConfig(),
3813
3817
  Kn = (_er$sso = er.sso) !== null && _er$sso !== void 0 ? _er$sso : true,
3814
3818
  Vr = (_er$i18n = er.i18n) !== null && _er$i18n !== void 0 ? _er$i18n : true,
3815
3819
  Qn = (_er$noRedireLogin = er.noRedireLogin) !== null && _er$noRedireLogin !== void 0 ? _er$noRedireLogin : false;
3816
3820
  var Kr = "",
3817
3821
  Qr = 0;
3818
- var Ml = 1e3,
3822
+ var ql = 1e3,
3819
3823
  Xr = /*#__PURE__*/function () {
3820
3824
  var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee9(t, e) {
3821
3825
  var r,
@@ -3858,24 +3862,26 @@ var Ml = 1e3,
3858
3862
  };
3859
3863
  }();
3860
3864
  var _t = false;
3861
- var kl = 5e3,
3865
+ var jl = 5e3,
3862
3866
  Xn = function Xn() {
3863
3867
  return _t ? false : (_t = true, setTimeout(function () {
3864
3868
  _t = false;
3865
- }, kl), true);
3869
+ }, jl), true);
3866
3870
  },
3867
3871
  Zn = function Zn() {
3868
- var e, r;
3869
3872
  if (Qn) return;
3870
3873
  var t = "/login";
3871
- location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace("/#".concat(t)));
3874
+ if (location.pathname === t) return;
3875
+ window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = false;
3876
+ var e = window.top;
3877
+ e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace("/#".concat(t));
3872
3878
  },
3873
- ql = function ql() {
3879
+ Hl = function Hl() {
3874
3880
  return sso.getQuery("code") || "" || Qn ? false : Xn() ? (Kn ? sso.login(_objectSpread(_objectSpread({}, sso.getTokenParams), {}, {
3875
3881
  redirect_uri: sso.real_uri
3876
3882
  })) : Zn(), true) : false;
3877
3883
  },
3878
- jl = /*#__PURE__*/function () {
3884
+ zl = /*#__PURE__*/function () {
3879
3885
  var _ref23 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t) {
3880
3886
  var _t$data;
3881
3887
  var r;
@@ -3886,11 +3892,11 @@ var kl = 5e3,
3886
3892
  }
3887
3893
  }, _callee0);
3888
3894
  }));
3889
- return function jl(_x11) {
3895
+ return function zl(_x11) {
3890
3896
  return _ref23.apply(this, arguments);
3891
3897
  };
3892
3898
  }(),
3893
- Hl = /*#__PURE__*/function () {
3899
+ Wl = /*#__PURE__*/function () {
3894
3900
  var _ref24 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(t, e) {
3895
3901
  var d, m, h, b, _i18nBridge$getI18nBr, r, n, o, i, a, s, u, c, _ref25, O, g, E, _ref26, _ref27, _O, _g, _E, p, y, v, _t11, _t12, _t13;
3896
3902
  return _regenerator().w(function (_context10) {
@@ -3909,7 +3915,7 @@ var kl = 5e3,
3909
3915
  _context10.n = 6;
3910
3916
  break;
3911
3917
  }
3912
- ql(), n = u || c, i = s;
3918
+ Hl(), n = u || c, i = s;
3913
3919
  O = (_ref25 = e == null ? undefined : e.i18n) !== null && _ref25 !== void 0 ? _ref25 : true;
3914
3920
  if (!(Vr && O && s != null && s.status)) {
3915
3921
  _context10.n = 4;
@@ -4006,7 +4012,7 @@ var kl = 5e3,
4006
4012
  t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
4007
4013
  case 17:
4008
4014
  e != null && e.customErrorMessage && (o = e == null ? undefined : e.customErrorMessage(o, t));
4009
- p = Date.now(), y = o === Kr, v = p - Qr < Ml;
4015
+ p = Date.now(), y = o === Kr, v = p - Qr < ql;
4010
4016
  return _context10.a(2, (!(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? undefined : h.error) == null || b.call(h, {
4011
4017
  message: o,
4012
4018
  showClose: true
@@ -4018,7 +4024,7 @@ var kl = 5e3,
4018
4024
  }
4019
4025
  }, _callee1);
4020
4026
  }));
4021
- return function Hl(_x12, _x13) {
4027
+ return function Wl(_x12, _x13) {
4022
4028
  return _ref24.apply(this, arguments);
4023
4029
  };
4024
4030
  }();
@@ -4083,7 +4089,7 @@ function Yn(t, e) {
4083
4089
  indices: false
4084
4090
  });
4085
4091
  }
4086
- }), n.onSuccess || (n.onSuccess = jl), n.onError || (n.onError = Hl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
4092
+ }), n.onSuccess || (n.onSuccess = zl), n.onError || (n.onError = Wl), ((_n$csrf = n.csrf) !== null && _n$csrf !== void 0 ? _n$csrf : false) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
4087
4093
  u = n.params || {};
4088
4094
  if (u.project === undefined) {
4089
4095
  _p = 0;
@@ -4094,7 +4100,7 @@ function Yn(t, e) {
4094
4100
  _commonInfo$getInstan = commonInfo.getInstanceInfo(), _p2 = _commonInfo$getInstan.instanceInfo;
4095
4101
  _p2 != null && _p2.instanceId && (u.instance = _p2.instanceId);
4096
4102
  }
4097
- n.params = u, n.headers.Timezone = jt.tz.guess(), n.headers["X-Origin"] = location.origin;
4103
+ n.params = u, n.headers.Timezone = kl(), n.headers["X-Origin"] = location.origin;
4098
4104
  l = (_ref29 = o == null ? undefined : o.value) !== null && _ref29 !== void 0 ? _ref29 : "";
4099
4105
  return _context11.a(2, (l && (n.headers["Accept-Language"] = l), l && Jr.set("locale", l), n));
4100
4106
  }
@@ -4106,7 +4112,7 @@ function Yn(t, e) {
4106
4112
  }());
4107
4113
  }
4108
4114
  var eo = "v1",
4109
- tc = Yn("/api/justauth/oauth-server/".concat(eo, "/visitor")),
4110
- rc = Yn("/api/justauth/oauth-server/".concat(eo));
4111
- exports.justauth = tc;
4112
- exports.oauthServer = rc;
4115
+ nc = Yn("/api/justauth/oauth-server/".concat(eo, "/visitor")),
4116
+ oc = Yn("/api/justauth/oauth-server/".concat(eo));
4117
+ exports.justauth = nc;
4118
+ exports.oauthServer = oc;
@@ -3236,9 +3236,9 @@ function qt(t, e) {
3236
3236
  var Jr = qt(Bl, { path: "/" });
3237
3237
  jt.extend(so);
3238
3238
  jt.extend(lo);
3239
- const er = Yr(), Kn = er.sso ?? !0, Vr = er.i18n ?? !0, Qn = er.noRedireLogin ?? !1;
3239
+ const Ml = "UTC", kl = () => jt.tz.guess() || Ml, er = Yr(), Kn = er.sso ?? !0, Vr = er.i18n ?? !0, Qn = er.noRedireLogin ?? !1;
3240
3240
  let Kr = "", Qr = 0;
3241
- const Ml = 1e3, Xr = async (t, e, r = []) => {
3241
+ const ql = 1e3, Xr = async (t, e, r = []) => {
3242
3242
  const n = Date.now(), o = 1200, i = 60;
3243
3243
  for (; Date.now() - n < o; ) {
3244
3244
  const a = t(e, ...r);
@@ -3248,17 +3248,19 @@ const Ml = 1e3, Xr = async (t, e, r = []) => {
3248
3248
  return t(e, ...r);
3249
3249
  };
3250
3250
  let _t = !1;
3251
- const kl = 5e3, Xn = () => _t ? !1 : (_t = !0, setTimeout(() => {
3251
+ const jl = 5e3, Xn = () => _t ? !1 : (_t = !0, setTimeout(() => {
3252
3252
  _t = !1;
3253
- }, kl), !0), Zn = () => {
3254
- var e, r;
3253
+ }, jl), !0), Zn = () => {
3255
3254
  if (Qn) return;
3256
3255
  const t = "/login";
3257
- location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
3258
- }, ql = () => no("code") || "" || Qn ? !1 : Xn() ? (Kn ? oo({ ...io, redirect_uri: ao }) : Zn(), !0) : !1, jl = async (t) => {
3256
+ if (location.pathname === t) return;
3257
+ window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
3258
+ const e = window.top;
3259
+ e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace(`/#${t}`);
3260
+ }, Hl = () => no("code") || "" || Qn ? !1 : Xn() ? (Kn ? oo({ ...io, redirect_uri: ao }) : Zn(), !0) : !1, zl = async (t) => {
3259
3261
  var r;
3260
3262
  return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
3261
- }, Hl = async (t, e) => {
3263
+ }, Wl = async (t, e) => {
3262
3264
  var d, m, h, b;
3263
3265
  const { t: r } = Zr();
3264
3266
  let n, o, i = {};
@@ -3266,7 +3268,7 @@ const kl = 5e3, Xn = () => _t ? !1 : (_t = !0, setTimeout(() => {
3266
3268
  let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
3267
3269
  const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
3268
3270
  if (u === 401 || c === 401) {
3269
- ql(), n = u || c, i = s;
3271
+ Hl(), n = u || c, i = s;
3270
3272
  const O = (e == null ? void 0 : e.i18n) ?? !0;
3271
3273
  if (Vr && O && (s != null && s.status)) {
3272
3274
  const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
@@ -3296,7 +3298,7 @@ const kl = 5e3, Xn = () => _t ? !1 : (_t = !0, setTimeout(() => {
3296
3298
  o || (o = a[t.response.status] || t.message);
3297
3299
  } else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
3298
3300
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3299
- const p = Date.now(), y = o === Kr, v = p - Qr < Ml;
3301
+ const p = Date.now(), y = o === Kr, v = p - Qr < ql;
3300
3302
  return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), Kr = o, Qr = p), { ...i, code: n, msg: o, error: t };
3301
3303
  };
3302
3304
  function Yn(t, e) {
@@ -3320,7 +3322,7 @@ function Yn(t, e) {
3320
3322
  }
3321
3323
  p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
3322
3324
  }
3323
- n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ll.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = jl), n.onError || (n.onError = Hl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3325
+ n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Ll.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = zl), n.onError || (n.onError = Wl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3324
3326
  const u = n.params || {};
3325
3327
  if (u.project === void 0) {
3326
3328
  let p = 0;
@@ -3331,13 +3333,13 @@ function Yn(t, e) {
3331
3333
  const { instanceInfo: p } = uo();
3332
3334
  p != null && p.instanceId && (u.instance = p.instanceId);
3333
3335
  }
3334
- n.params = u, n.headers.Timezone = jt.tz.guess(), n.headers["X-Origin"] = location.origin;
3336
+ n.params = u, n.headers.Timezone = kl(), n.headers["X-Origin"] = location.origin;
3335
3337
  const l = (o == null ? void 0 : o.value) ?? "";
3336
3338
  return l && (n.headers["Accept-Language"] = l), l && Jr.set("locale", l), n;
3337
3339
  });
3338
3340
  }
3339
- const eo = "v1", tc = Yn(`/api/justauth/oauth-server/${eo}/visitor`), rc = Yn(`/api/justauth/oauth-server/${eo}`);
3341
+ const eo = "v1", nc = Yn(`/api/justauth/oauth-server/${eo}/visitor`), oc = Yn(`/api/justauth/oauth-server/${eo}`);
3340
3342
  export {
3341
- tc as justauth,
3342
- rc as oauthServer
3343
+ nc as justauth,
3344
+ oc as oauthServer
3343
3345
  };
@@ -0,0 +1,2 @@
1
+ /** 知识库管理 */
2
+ export declare const knowledgeBase: any;