@das-fed/utils 7.0.7-hot.7 → 7.0.7-hot.71

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 (87) hide show
  1. package/api-services/i18n/index.js.gz +0 -0
  2. package/api-services/index.js +729 -711
  3. package/api-services/index.js.gz +0 -0
  4. package/api-services/modules/app-manage/index.js +487 -470
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/index.js +851 -852
  7. package/api-services/modules/authentication/index.js.gz +0 -0
  8. package/api-services/modules/bems/index.js +854 -855
  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 +494 -477
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/index.js +753 -718
  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 +851 -852
  19. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  20. package/api-services/modules/index.js +863 -845
  21. package/api-services/modules/index.js.gz +0 -0
  22. package/api-services/modules/iot/index.js +489 -472
  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 +851 -852
  32. package/api-services/modules/permission/index.js.gz +0 -0
  33. package/api-services/modules/platformManage/index.js +857 -854
  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 +489 -472
  40. package/api-services/modules/super-admin/index.js.gz +0 -0
  41. package/api-services/modules/supplier/index.js +738 -707
  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 +753 -718
  46. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  47. package/api-services/modules/tool/index.js +753 -718
  48. package/api-services/modules/tool/index.js.gz +0 -0
  49. package/api-services/src/create-service/index.js +728 -693
  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.d.ts +1 -1
  53. package/common-info/index.js.gz +0 -0
  54. package/common-info/set-personal-info/index.js.gz +0 -0
  55. package/common-tools/extract-file-name/index.js.gz +0 -0
  56. package/common-tools/get-url-params/index.js.gz +0 -0
  57. package/common-tools/obj-tools/index.js +1 -1
  58. package/common-tools/platform-tools/index.d.ts +7 -2
  59. package/common-tools/platform-tools/index.js +27 -15
  60. package/common-tools/platform-tools/index.js.gz +0 -0
  61. package/create-api-service/index.js +850 -851
  62. package/create-api-service/index.js.gz +0 -0
  63. package/create-api-service/sso/authorizer.d.ts +1 -0
  64. package/create-api-service/sso/index.d.ts +13 -17
  65. package/create-api-service/sso/index.js +923 -794
  66. package/create-api-service/sso/index.js.gz +0 -0
  67. package/create-api-service/sso/utils.d.ts +8 -0
  68. package/create-api-service/thirdLogout/index.js +1870 -0
  69. package/create-api-service/thirdLogout/index.js.gz +0 -0
  70. package/create-api-service/thirdLogout/sso/utils.d.ts +8 -0
  71. package/create-api-service/thirdLogout/thirdLogout/index.d.ts +25 -0
  72. package/create-api-service/unauthorized-recovery/index.d.ts +36 -0
  73. package/create-api-service/unauthorized-recovery/index.js +16 -0
  74. package/curring-http/index.js.gz +0 -0
  75. package/curring-http/type.d.ts +6 -0
  76. package/directive/auth/index.js.gz +0 -0
  77. package/esm-map.json +13 -1
  78. package/hooks/use-get-auth/index.js.gz +0 -0
  79. package/nextTiken/index.js.gz +0 -0
  80. package/package.json +4 -4
  81. package/pinyin-first-character/index.js.gz +0 -0
  82. package/style/index.js.gz +0 -0
  83. package/token-tools/index.d.ts +37 -1
  84. package/token-tools/index.js +59 -25
  85. package/token-tools/index.js.gz +0 -0
  86. package/use-low-code/index.js.gz +0 -0
  87. package/webSocket-service/index.js.gz +0 -0
Binary file
@@ -0,0 +1 @@
1
+ export declare const getTokenFromAuthorizer: () => Promise<void>;
@@ -1,21 +1,17 @@
1
- declare const getQuery: (name: any) => any;
2
- declare const real_uri: string;
1
+ import { tokenStorage } from '@das-fed/utils/token-tools';
2
+ import { getLoginType, getQuery } from './utils';
3
+
4
+ declare const real_uri: any;
3
5
  declare const getTokenParams: any;
4
6
  declare const getTokenFromCode: () => unknown;
5
7
  declare const getToken: (config: any) => unknown;
6
8
  declare const login: (_params: any) => any;
7
- declare const tokenStorage: () => {
8
- getData: () => {
9
- accessToken: any;
10
- accessTokenExpiredAt: any;
11
- refreshToken: any;
12
- };
13
- save: (data: {
14
- accessToken?: string | null;
15
- accessTokenExpiredAt?: string | number | null;
16
- refreshToken?: string | null;
17
- info?: any;
18
- }) => void;
19
- remove: () => void;
20
- };
21
- export { getTokenParams, getTokenFromCode, real_uri, getQuery, getToken, tokenStorage, login };
9
+ /**
10
+ * 使用平台 refresh token 刷新访问令牌。
11
+ * 项目注册定制恢复处理器时不执行该默认刷新,真实 401 由项目恢复处理器接管。
12
+ * 未注册定制恢复时,刷新出现错误后执行标准退出登录。
13
+ * @param params OAuth 刷新所需的客户端参数
14
+ * @returns 刷新或项目恢复后的访问令牌
15
+ */
16
+ declare const refreshToken: (params: any) => unknown;
17
+ export { getTokenParams, getTokenFromCode, real_uri, getLoginType, getQuery, getToken, tokenStorage, login, refreshToken, };