@das-fed/utils 7.1.0-seres.1 → 7.1.0-seres.2

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 (80) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +961 -978
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +799 -780
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +799 -780
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +353 -352
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +353 -352
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +783 -800
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +799 -780
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +406 -405
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +353 -352
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +448 -447
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +360 -359
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.js +355 -354
  25. package/api-services/modules/justauth/index.js.gz +0 -0
  26. package/api-services/modules/knowledge/index.js +353 -352
  27. package/api-services/modules/knowledge/index.js.gz +0 -0
  28. package/api-services/modules/link/index.js +353 -352
  29. package/api-services/modules/link/index.js.gz +0 -0
  30. package/api-services/modules/permission/index.js +353 -352
  31. package/api-services/modules/permission/index.js.gz +0 -0
  32. package/api-services/modules/platformManage/index.js +357 -356
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/index.js +353 -352
  35. package/api-services/modules/portal/index.js.gz +0 -0
  36. package/api-services/modules/space-manage/index.js +353 -352
  37. package/api-services/modules/space-manage/index.js.gz +0 -0
  38. package/api-services/modules/super-admin/index.js +787 -800
  39. package/api-services/modules/super-admin/index.js.gz +0 -0
  40. package/api-services/modules/supplier/index.js +355 -354
  41. package/api-services/modules/supplier/index.js.gz +0 -0
  42. package/api-services/modules/supplychain-manage/index.js +799 -780
  43. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  44. package/api-services/modules/systemConfiguration/index.js +353 -352
  45. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  46. package/api-services/modules/tool/index.js +353 -352
  47. package/api-services/modules/tool/index.js.gz +0 -0
  48. package/api-services/src/create-service/index.js +353 -352
  49. package/api-services/src/create-service/index.js.gz +0 -0
  50. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  51. package/common-info/index.js.gz +0 -0
  52. package/common-info/set-personal-info/index.js.gz +0 -0
  53. package/common-tools/extract-file-name/index.js.gz +0 -0
  54. package/common-tools/get-url-params/index.js.gz +0 -0
  55. package/common-tools/platform-tools/index.js.gz +0 -0
  56. package/create-api-service/index.js +361 -360
  57. package/create-api-service/index.js.gz +0 -0
  58. package/create-api-service/sso/index.d.ts +10 -16
  59. package/create-api-service/sso/index.js +570 -560
  60. package/create-api-service/sso/index.js.gz +0 -0
  61. package/create-api-service/sso/utils.d.ts +6 -0
  62. package/create-api-service/thirdLogout/index.js +390 -367
  63. package/create-api-service/thirdLogout/index.js.gz +0 -0
  64. package/create-api-service/thirdLogout/sso/utils.d.ts +8 -0
  65. package/create-api-service/thirdLogout/{index.d.ts → thirdLogout/index.d.ts} +2 -2
  66. package/create-api-service/unauthorized-recovery/index.d.ts +6 -0
  67. package/create-api-service/unauthorized-recovery/index.js +14 -8
  68. package/curring-http/index.js.gz +0 -0
  69. package/directive/auth/index.js.gz +0 -0
  70. package/esm-map.json +4 -1
  71. package/hooks/use-get-auth/index.js.gz +0 -0
  72. package/nextTiken/index.js.gz +0 -0
  73. package/package.json +4 -4
  74. package/pinyin-first-character/index.js.gz +0 -0
  75. package/style/index.js.gz +0 -0
  76. package/token-tools/index.d.ts +35 -0
  77. package/token-tools/index.js +59 -25
  78. package/token-tools/index.js.gz +0 -0
  79. package/use-low-code/index.js.gz +0 -0
  80. package/webSocket-service/index.js.gz +0 -0
Binary file
@@ -1,23 +1,17 @@
1
- import { getQuery } from './utils';
1
+ import { tokenStorage } from '@das-fed/utils/token-tools';
2
+ import { getLoginType, getQuery } from './utils';
2
3
 
3
4
  declare const real_uri: any;
4
5
  declare const getTokenParams: any;
5
6
  declare const getTokenFromCode: () => unknown;
6
7
  declare const getToken: (config: any) => unknown;
7
8
  declare const login: (_params: any) => any;
9
+ /**
10
+ * 使用平台 refresh token 刷新访问令牌。
11
+ * 项目注册定制恢复处理器时不执行该默认刷新,真实 401 由项目恢复处理器接管。
12
+ * 未注册定制恢复时,刷新出现错误后执行标准退出登录。
13
+ * @param params OAuth 刷新所需的客户端参数
14
+ * @returns 刷新或项目恢复后的访问令牌
15
+ */
8
16
  declare const refreshToken: (params: any) => unknown;
9
- declare const tokenStorage: () => {
10
- getData: () => {
11
- accessToken: any;
12
- accessTokenExpiredAt: any;
13
- refreshToken: any;
14
- };
15
- save: (data: {
16
- accessToken: string | null;
17
- accessTokenExpiredAt: number;
18
- refreshToken: string | null;
19
- info: any;
20
- }) => void;
21
- remove: () => void;
22
- };
23
- export { getTokenParams, getTokenFromCode, real_uri, getQuery, getToken, tokenStorage, login, refreshToken };
17
+ export { getTokenParams, getTokenFromCode, real_uri, getLoginType, getQuery, getToken, tokenStorage, login, refreshToken, };