@das-fed/utils 7.1.0-qatar.9 → 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 (82) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +1043 -1043
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +753 -718
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +487 -470
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +486 -469
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/index.js +487 -470
  11. package/api-services/modules/contract/index.js.gz +0 -0
  12. package/api-services/modules/duty-manage/index.js +856 -857
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +487 -470
  15. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  16. package/api-services/modules/file/index.js +495 -478
  17. package/api-services/modules/file/index.js.gz +0 -0
  18. package/api-services/modules/gateway-edge/index.js +487 -470
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +1019 -983
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +1001 -966
  23. package/api-services/modules/iot/index.js.gz +0 -0
  24. package/api-services/modules/justauth/index.d.ts +1 -1
  25. package/api-services/modules/justauth/index.js +654 -636
  26. package/api-services/modules/justauth/index.js.gz +0 -0
  27. package/api-services/modules/knowledge/index.js +487 -470
  28. package/api-services/modules/knowledge/index.js.gz +0 -0
  29. package/api-services/modules/link/index.js +487 -470
  30. package/api-services/modules/link/index.js.gz +0 -0
  31. package/api-services/modules/permission/index.js +487 -470
  32. package/api-services/modules/permission/index.js.gz +0 -0
  33. package/api-services/modules/platformManage/index.js +535 -518
  34. package/api-services/modules/platformManage/index.js.gz +0 -0
  35. package/api-services/modules/portal/index.js +487 -470
  36. package/api-services/modules/portal/index.js.gz +0 -0
  37. package/api-services/modules/space-manage/index.js +753 -718
  38. package/api-services/modules/space-manage/index.js.gz +0 -0
  39. package/api-services/modules/super-admin/index.js +842 -839
  40. package/api-services/modules/super-admin/index.js.gz +0 -0
  41. package/api-services/modules/supplier/index.js +483 -466
  42. package/api-services/modules/supplier/index.js.gz +0 -0
  43. package/api-services/modules/supplychain-manage/index.js +487 -470
  44. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  45. package/api-services/modules/systemConfiguration/index.js +487 -470
  46. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  47. package/api-services/modules/tool/index.js +487 -470
  48. package/api-services/modules/tool/index.js.gz +0 -0
  49. package/api-services/src/create-service/index.js +486 -469
  50. package/api-services/src/create-service/index.js.gz +0 -0
  51. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  52. package/common-info/index.js.gz +0 -0
  53. package/common-info/set-personal-info/index.js.gz +0 -0
  54. package/common-tools/extract-file-name/index.js.gz +0 -0
  55. package/common-tools/get-url-params/index.js.gz +0 -0
  56. package/common-tools/platform-tools/index.js.gz +0 -0
  57. package/create-api-service/index.js +575 -558
  58. package/create-api-service/index.js.gz +0 -0
  59. package/create-api-service/sso/index.d.ts +10 -16
  60. package/create-api-service/sso/index.js +701 -684
  61. package/create-api-service/sso/index.js.gz +0 -0
  62. package/create-api-service/sso/utils.d.ts +6 -0
  63. package/create-api-service/thirdLogout/index.js +1857 -0
  64. package/create-api-service/thirdLogout/index.js.gz +0 -0
  65. package/create-api-service/thirdLogout/sso/utils.d.ts +8 -0
  66. package/create-api-service/thirdLogout/thirdLogout/index.d.ts +19 -0
  67. package/create-api-service/unauthorized-recovery/index.d.ts +36 -0
  68. package/create-api-service/unauthorized-recovery/index.js +16 -0
  69. package/curring-http/index.js.gz +0 -0
  70. package/curring-http/type.d.ts +6 -0
  71. package/directive/auth/index.js.gz +0 -0
  72. package/esm-map.json +11 -1
  73. package/hooks/use-get-auth/index.js.gz +0 -0
  74. package/nextTiken/index.js.gz +0 -0
  75. package/package.json +4 -4
  76. package/pinyin-first-character/index.js.gz +0 -0
  77. package/style/index.js.gz +0 -0
  78. package/token-tools/index.d.ts +35 -0
  79. package/token-tools/index.js +59 -25
  80. package/token-tools/index.js.gz +0 -0
  81. package/use-low-code/index.js.gz +0 -0
  82. 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, };