@indfnd/utils 0.1.3 → 0.1.5

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 (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ind-utils.es.js +6 -6
  3. package/dist/ind-utils.umd.cjs +13 -13
  4. package/global.d.ts +2 -0
  5. package/package.json +1 -1
  6. package/src/api/index-desc.ts +0 -6
  7. package/src/api/platform/user.ts +5 -3
  8. package/types/api/com.d.ts +2 -2
  9. package/types/api/index-desc.d.ts +2 -6
  10. package/types/api/index-desc.d.ts.map +1 -1
  11. package/types/api/index.d.ts +6 -6
  12. package/types/api/item.d.ts +4 -4
  13. package/types/api/platform/dict.d.ts +4 -4
  14. package/types/api/platform/index.d.ts +5 -5
  15. package/types/api/platform/menu.d.ts +11 -17
  16. package/types/api/platform/oss.d.ts +6 -12
  17. package/types/api/platform/user.d.ts +12 -17
  18. package/types/api/platform/user.d.ts.map +1 -1
  19. package/types/api/user.d.ts +2 -2
  20. package/types/config/base.config.d.ts +30 -30
  21. package/types/config/dev.config.d.ts +3 -3
  22. package/types/config/index.d.ts +57 -57
  23. package/types/config/prod.config.d.ts +3 -3
  24. package/types/index.d.ts +4 -4
  25. package/types/utils/base64.d.ts +22 -22
  26. package/types/utils/blob.d.ts +3 -3
  27. package/types/utils/cache/dict-cache.d.ts +3 -3
  28. package/types/utils/cache/index-desc.d.ts +4 -4
  29. package/types/utils/cache/index.d.ts +4 -4
  30. package/types/utils/cache/permission-cache.d.ts +4 -4
  31. package/types/utils/cache/user-cache.d.ts +4 -4
  32. package/types/utils/date.d.ts +4 -4
  33. package/types/utils/enum.d.ts +39 -43
  34. package/types/utils/event.d.ts +5 -13
  35. package/types/utils/excel.d.ts +4 -4
  36. package/types/utils/half-year.d.ts +6 -6
  37. package/types/utils/index.d.ts +20 -20
  38. package/types/utils/is-type.d.ts +33 -33
  39. package/types/utils/mime-type.d.ts +67 -67
  40. package/types/utils/number.d.ts +8 -8
  41. package/types/utils/quarter.d.ts +7 -7
  42. package/types/utils/request/axios.extends.d.ts +3 -7
  43. package/types/utils/request/cache-rules.d.ts +3 -3
  44. package/types/utils/request/content-type.d.ts +9 -9
  45. package/types/utils/request/index.d.ts +8 -8
  46. package/types/utils/request/interceptors.d.ts +4 -4
  47. package/types/utils/request/url-params.d.ts +6 -6
  48. package/types/utils/sm3/index.d.ts +6 -6
  49. package/types/utils/sm3/sm3.d.ts +3 -3
  50. package/types/utils/storage.d.ts +8 -8
  51. package/types/utils/table.d.ts +31 -40
  52. package/types/utils/token.d.ts +3 -3
  53. package/types/utils/uuid.d.ts +4 -4
  54. package/types/utils/validate.d.ts +5 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,25 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.5](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.4...v0.1.5) (2024-04-16)
6
+
7
+
8
+ ### Features
9
+
10
+ * 指标说明解耦 ([93cda2a](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/93cda2a927ba9f66999eb36fda84885946ea5ee6))
11
+
12
+ ### [0.1.4](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.3...v0.1.4) (2024-04-13)
13
+
14
+
15
+ ### Features
16
+
17
+ * 登录加密升级 ([f3935fb](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/f3935fb18994dc7d28e564bcdebc38c0afd04bf0))
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * 依赖 ([3860882](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/386088251d89702cda5b9f2cdd76882addf8cae0))
23
+
5
24
  ### [0.1.3](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.2...v0.1.3) (2024-04-06)
6
25
 
7
26
 
@@ -11106,8 +11106,10 @@ function putOssFileApi(filename, blob) {
11106
11106
  }
11107
11107
  const CONTEXT$2 = config.authServerContext;
11108
11108
  function loginApi({ userName, password, validCodeId, validCodeInput }) {
11109
- let upw = encodeURIComponent(password);
11110
- upw = Base64ForLogin.encode(upw);
11109
+ let publicKey = `MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDD2iolFHi+6bUh+V6JPr2gFJQsC0QNsq2EwI0MAPlI5AaizBHRVMjX1H73ptuDSiT3QZh4kk74w+eDLyYj4JXo1SvvDw5w378SLhUIDzH0zrlt3oleT3kiPQxC17yM3Os/wrtHO7IC+KGo9qrg+LJFyR/fYYHcyH9i+JAejBEnJQIDAQAB`;
11110
+ let nodeRSA = new window.NodeRSA(publicKey, "pkcs8-public");
11111
+ let rsaPaswword = nodeRSA.encrypt(password, "base64");
11112
+ let upw = window.Base64.encode(rsaPaswword);
11111
11113
  const data = { usn: userName, upw, validCodeId, validCodeInput };
11112
11114
  return instance.formPost(CONTEXT$2 + "/sso/auth/login", data);
11113
11115
  }
@@ -11130,11 +11132,9 @@ const CONTEXT$1 = config.ismAmServerContext;
11130
11132
  function listComTreeApi(params) {
11131
11133
  return instance.get(`${CONTEXT$1}/tree/com/listComTree`, { params });
11132
11134
  }
11133
- config.ucExtServerContext;
11135
+ const UC_CONTEXT$1 = config.ucExtServerContext;
11134
11136
  function listIndexDescApi(params) {
11135
- return Promise.resolve({
11136
- data: []
11137
- });
11137
+ return instance.get(`${UC_CONTEXT$1}/index-desc/list`, { params });
11138
11138
  }
11139
11139
  const CONTEXT = config.ismAmServerContext;
11140
11140
  function listItemTreeApi(params) {