@indfnd/utils 0.1.38 → 0.1.39

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 (61) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/ind-utils.es.js +2807 -1566
  3. package/dist/ind-utils.umd.cjs +24 -20
  4. package/package.json +2 -2
  5. package/src/utils/request/index.ts +22 -20
  6. package/types/api/com.d.ts +4 -2
  7. package/types/api/com.d.ts.map +1 -1
  8. package/types/api/index-desc.d.ts +4 -2
  9. package/types/api/index-desc.d.ts.map +1 -1
  10. package/types/api/index.d.ts +7 -7
  11. package/types/api/item.d.ts +6 -4
  12. package/types/api/item.d.ts.map +1 -1
  13. package/types/api/permission.d.ts +2 -2
  14. package/types/api/platform/base64.d.ts +5 -5
  15. package/types/api/platform/config.d.ts +2 -2
  16. package/types/api/platform/dict.d.ts +6 -4
  17. package/types/api/platform/dict.d.ts.map +1 -1
  18. package/types/api/platform/index.d.ts +6 -6
  19. package/types/api/platform/menu.d.ts +21 -11
  20. package/types/api/platform/menu.d.ts.map +1 -1
  21. package/types/api/platform/oss.d.ts +16 -8
  22. package/types/api/platform/oss.d.ts.map +1 -1
  23. package/types/api/platform/user.d.ts +19 -12
  24. package/types/api/platform/user.d.ts.map +1 -1
  25. package/types/api/user.d.ts +2 -2
  26. package/types/config/base.config.d.ts +33 -33
  27. package/types/config/dev.config.d.ts +3 -3
  28. package/types/config/index.d.ts +6 -6
  29. package/types/config/prod.config.d.ts +3 -3
  30. package/types/index.d.ts +4 -4
  31. package/types/utils/base64.d.ts +22 -22
  32. package/types/utils/blob.d.ts +3 -3
  33. package/types/utils/cache/dict-cache.d.ts +3 -3
  34. package/types/utils/cache/index-desc.d.ts +4 -4
  35. package/types/utils/cache/index.d.ts +4 -4
  36. package/types/utils/cache/permission-cache.d.ts +4 -4
  37. package/types/utils/cache/user-cache.d.ts +4 -4
  38. package/types/utils/date.d.ts +4 -4
  39. package/types/utils/enum.d.ts +43 -39
  40. package/types/utils/event.d.ts +13 -5
  41. package/types/utils/excel.d.ts +5 -5
  42. package/types/utils/half-year.d.ts +6 -6
  43. package/types/utils/index.d.ts +20 -20
  44. package/types/utils/is-type.d.ts +33 -33
  45. package/types/utils/mime-type.d.ts +67 -67
  46. package/types/utils/number.d.ts +8 -8
  47. package/types/utils/quarter.d.ts +7 -7
  48. package/types/utils/request/axios.extends.d.ts +18 -6
  49. package/types/utils/request/cache-rules.d.ts +3 -3
  50. package/types/utils/request/content-type.d.ts +9 -9
  51. package/types/utils/request/index.d.ts +9 -13
  52. package/types/utils/request/index.d.ts.map +1 -1
  53. package/types/utils/request/interceptors.d.ts +4 -4
  54. package/types/utils/request/url-params.d.ts +6 -6
  55. package/types/utils/sm3/index.d.ts +6 -6
  56. package/types/utils/sm3/sm3.d.ts +3 -3
  57. package/types/utils/storage.d.ts +8 -8
  58. package/types/utils/table.d.ts +40 -31
  59. package/types/utils/token.d.ts +3 -3
  60. package/types/utils/uuid.d.ts +4 -4
  61. package/types/utils/validate.d.ts +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indfnd/utils",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "author": "huxuetong",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -34,7 +34,7 @@
34
34
  "re-publish": "yarn publish --access public"
35
35
  },
36
36
  "dependencies": {
37
- "axios": "^0.24.0",
37
+ "axios": "^1.8.0",
38
38
  "dayjs": "^1.11.9",
39
39
  "lodash": "^4.17.21",
40
40
  "md5": "^2.3.0",
@@ -26,19 +26,21 @@ instance.formPost = function (url, data, config) {
26
26
  */
27
27
  export const wrapApi = (api, isPost = false) => {
28
28
  // 每个函数都有自己的 controller,避免互相干扰
29
- let currentController = null
29
+ let controllerMapping = {}
30
30
 
31
31
  const wrappedFunction = async function (...args) {
32
+ let url = args[0]
33
+
32
34
  // 取消之前的请求
33
- if (currentController) {
35
+ if (controllerMapping[url]) {
34
36
  console.log('currentController.abort trigger, now cancel before request')
35
- currentController.abort()
36
- currentController = null
37
+ controllerMapping[url].abort()
38
+ controllerMapping[url] = null
37
39
  }
38
40
 
39
41
  // 创建新的 AbortController
40
42
  const controller = new AbortController()
41
- currentController = controller
43
+ controllerMapping[url] = controller
42
44
 
43
45
  // 准备参数
44
46
  const newArgs = [...args]
@@ -97,7 +99,7 @@ export const wrapApi = (api, isPost = false) => {
97
99
  const result = await api(...newArgs)
98
100
 
99
101
  // 请求成功后清理 controller
100
- currentController = null
102
+ controllerMapping[url] = null
101
103
  return result
102
104
  } catch (error) {
103
105
  // 如果是取消错误,重新抛出
@@ -113,24 +115,24 @@ export const wrapApi = (api, isPost = false) => {
113
115
  throw error
114
116
  } finally {
115
117
  // 如果当前 controller 仍然是这个请求的,清理它
116
- if (currentController === controller) {
117
- currentController = null
118
+ if (controllerMapping[url] === controller) {
119
+ controllerMapping[url] = null
118
120
  }
119
121
  }
120
122
  }
121
123
 
122
- // 添加取消方法,允许外部取消
123
- wrappedFunction.cancel = (reason) => {
124
- if (currentController) {
125
- currentController.abort(reason)
126
- currentController = null
127
- }
128
- }
129
-
130
- // 添加检查是否正在请求的方法
131
- wrappedFunction.isPending = () => {
132
- return currentController !== null
133
- }
124
+ // // 添加取消方法,允许外部取消
125
+ // wrappedFunction.cancel = (reason) => {
126
+ // if (controllerMapping[url]) {
127
+ // controllerMapping[url].abort(reason)
128
+ // controllerMapping[url] = null
129
+ // }
130
+ // }
131
+
132
+ // // 添加检查是否正在请求的方法
133
+ // wrappedFunction.isPending = () => {
134
+ // return controllerMapping[url] !== null
135
+ // }
134
136
 
135
137
  return wrappedFunction
136
138
  }
@@ -1,2 +1,4 @@
1
- export declare function listComTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- //# sourceMappingURL=com.d.ts.map
1
+ export declare function listComTreeApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
4
+ //# sourceMappingURL=com.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAOA,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAQpC"}
1
+ {"version":3,"file":"com.d.ts","sourceRoot":"","sources":["../../src/api/com.ts"],"names":[],"mappings":"AAOA,wBAAgB,cAAc,CAAC,MAAM,KAAA,wDAQpC"}
@@ -1,2 +1,4 @@
1
- export declare function listIndexDescApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function listIndexDescApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA,+CAEtC"}
1
+ {"version":3,"file":"index-desc.d.ts","sourceRoot":"","sources":["../../src/api/index-desc.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,CAAC,MAAM,KAAA,wDAEtC"}
@@ -1,7 +1,7 @@
1
- export * from './platform';
2
- export * from './com';
3
- export * from './index-desc';
4
- export * from './item';
5
- export * from './permission';
6
- export * from './user';
7
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './platform'
2
+ export * from './com'
3
+ export * from './index-desc'
4
+ export * from './item'
5
+ export * from './permission'
6
+ export * from './user'
7
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,6 @@
1
- export declare function listItemTreeApi(params: any): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getPriceInfo(): Promise<import("axios").AxiosResponse<any>>;
3
- export declare function getItem(params: any): Promise<import("axios").AxiosResponse<any>>;
4
- //# sourceMappingURL=item.d.ts.map
1
+ export declare function listItemTreeApi(
2
+ params: any,
3
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
4
+ export declare function getPriceInfo(): Promise<import('axios').AxiosResponse<any, any, {}>>
5
+ export declare function getItem(params: any): Promise<import('axios').AxiosResponse<any, any, {}>>
6
+ //# sourceMappingURL=item.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAOA,wBAAgB,eAAe,CAAC,MAAM,KAAA,+CAYrC;AACD,wBAAgB,YAAY,gDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,+CAE7B"}
1
+ {"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../src/api/item.ts"],"names":[],"mappings":"AAOA,wBAAgB,eAAe,CAAC,MAAM,KAAA,wDAYrC;AACD,wBAAgB,YAAY,yDAE3B;AACD,wBAAgB,OAAO,CAAC,MAAM,KAAA,wDAE7B"}
@@ -1,2 +1,2 @@
1
- export declare function getApplicationTreeApi(params: any): Promise<any>;
2
- //# sourceMappingURL=permission.d.ts.map
1
+ export declare function getApplicationTreeApi(params: any): Promise<any>
2
+ //# sourceMappingURL=permission.d.ts.map
@@ -1,7 +1,7 @@
1
1
  export namespace Base64 {
2
- let Base64Chars: string;
3
- function encode(s: any): any;
4
- function ucs2_utf8(s: any): any[];
5
- function utf8_ucs2(s: any): string;
2
+ let Base64Chars: string
3
+ function encode(s: any): any
4
+ function ucs2_utf8(s: any): any[]
5
+ function utf8_ucs2(s: any): string
6
6
  }
7
- //# sourceMappingURL=base64.d.ts.map
7
+ //# sourceMappingURL=base64.d.ts.map
@@ -1,2 +1,2 @@
1
- export function getGlobalConfig(): Promise<any>;
2
- //# sourceMappingURL=config.d.ts.map
1
+ export function getGlobalConfig(): Promise<any>
2
+ //# sourceMappingURL=config.d.ts.map
@@ -1,4 +1,6 @@
1
- export declare function getDictsMapApi(dictId: string): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getDictApi(dictId: string): Promise<any>;
3
- export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>;
4
- //# sourceMappingURL=dict.d.ts.map
1
+ export declare function getDictsMapApi(
2
+ dictId: string,
3
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
4
+ export declare function getDictApi(dictId: string): Promise<any>
5
+ export declare function getDictMapApi(dictIdArr: string[]): Promise<{}>
6
+ //# sourceMappingURL=dict.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/api/platform/dict.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,+CAE5C;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,gBAgB9C;AAkBD,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,eActD"}
1
+ {"version":3,"file":"dict.d.ts","sourceRoot":"","sources":["../../../src/api/platform/dict.ts"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,wDAE5C;AAED,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,gBAgB9C;AAkBD,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,EAAE,eActD"}
@@ -1,6 +1,6 @@
1
- export * from './dict';
2
- export * from './menu';
3
- export * from './oss';
4
- export * from './user';
5
- export * from './config.js';
6
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './dict'
2
+ export * from './menu'
3
+ export * from './oss'
4
+ export * from './user'
5
+ export * from './config.js'
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,21 @@
1
- export declare function getPermissionApi(): Promise<import("axios").AxiosResponse<any>>;
2
- export declare function getMenuHistoryApi(): Promise<import("axios").AxiosResponse<any>>;
3
- export declare function menuHistoryApi(params: any): Promise<import("axios").AxiosResponse<any>>;
4
- export declare function deleteMenuHistoryApi(historyId: any): Promise<import("axios").AxiosResponse<any>>;
5
- export declare function getMenuCollectApi(): Promise<import("axios").AxiosResponse<any>>;
6
- export declare function addMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
7
- export declare function deleteMenuCollectApi(collectId: any): Promise<import("axios").AxiosResponse<any>>;
8
- export declare function removeMenuCollectApi(params: any): Promise<import("axios").AxiosResponse<any>>;
9
- export declare function getAppListApi(): Promise<import("axios").AxiosResponse<any>>;
10
- export declare function getMaxTabNumValueApi(): Promise<import("axios").AxiosResponse<any>>;
11
- //# sourceMappingURL=menu.d.ts.map
1
+ export declare function getPermissionApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
2
+ export declare function getMenuHistoryApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
3
+ export declare function menuHistoryApi(
4
+ params: any,
5
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
6
+ export declare function deleteMenuHistoryApi(
7
+ historyId: any,
8
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
9
+ export declare function getMenuCollectApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
10
+ export declare function addMenuCollectApi(
11
+ params: any,
12
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
13
+ export declare function deleteMenuCollectApi(
14
+ collectId: any,
15
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
16
+ export declare function removeMenuCollectApi(
17
+ params: any,
18
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
19
+ export declare function getAppListApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
20
+ export declare function getMaxTabNumValueApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
21
+ //# sourceMappingURL=menu.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/api/platform/menu.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,gDAE/B;AAED,wBAAgB,iBAAiB,gDAEhC;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA,+CAEpC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,+CAE7C;AAED,wBAAgB,iBAAiB,gDAEhC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,KAAA,+CAEvC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,+CAE7C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,KAAA,+CAE1C;AAED,wBAAgB,aAAa,gDAE5B;AAED,wBAAgB,oBAAoB,gDAEnC"}
1
+ {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/api/platform/menu.ts"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,yDAE/B;AAED,wBAAgB,iBAAiB,yDAEhC;AAED,wBAAgB,cAAc,CAAC,MAAM,KAAA,wDAEpC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,wDAE7C;AAED,wBAAgB,iBAAiB,yDAEhC;AAED,wBAAgB,iBAAiB,CAAC,MAAM,KAAA,wDAEvC;AAED,wBAAgB,oBAAoB,CAAC,SAAS,KAAA,wDAE7C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,KAAA,wDAE1C;AAED,wBAAgB,aAAa,yDAE5B;AAED,wBAAgB,oBAAoB,yDAEnC"}
@@ -1,17 +1,17 @@
1
- import { ResponseType } from 'axios';
1
+ import { ResponseType } from 'axios'
2
2
  /**
3
3
  * 文档中心下载文件的url,主要用于图片等直接写在 href 里
4
4
  *
5
5
  * @param fileId 文件Id
6
6
  * @returns url
7
7
  */
8
- export declare function getOssFileUrl(fileId?: string): string;
8
+ export declare function getOssFileUrl(fileId?: string): string
9
9
  /**
10
10
  * 文档中心上传文件的url
11
11
  *
12
12
  * @returns url
13
13
  */
14
- export declare function putOssFileUrl(): string;
14
+ export declare function putOssFileUrl(): string
15
15
  /**
16
16
  * 获取文档中心文件
17
17
  *
@@ -19,7 +19,10 @@ export declare function putOssFileUrl(): string;
19
19
  * @param responseType 数据类型,支持 arraybuffer | blob | document | json | text | stream
20
20
  * @returns 文件内容
21
21
  */
22
- export declare function getOssFileApi(fileId: string, responseType?: ResponseType): Promise<import("axios").AxiosResponse<any>>;
22
+ export declare function getOssFileApi(
23
+ fileId: string,
24
+ responseType?: ResponseType,
25
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
23
26
  /**
24
27
  * 将文件上传到文档中心
25
28
  *
@@ -27,14 +30,19 @@ export declare function getOssFileApi(fileId: string, responseType?: ResponseTyp
27
30
  * @param blob 文件的Blob数据
28
31
  * @returns 文件Id
29
32
  */
30
- export declare function putOssFileApi(filename: string, blob: Blob): import("axios").AxiosPromise<any>;
33
+ export declare function putOssFileApi(
34
+ filename: string,
35
+ blob: Blob,
36
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
31
37
  /**
32
38
  * 获取文档中心预览URL
33
39
  *
34
40
  * @param fileId 文件Id
35
41
  * @returns 文件内容
36
42
  */
37
- export declare function getPreviewUrlApi(fileId: string): Promise<import("axios").AxiosResponse<any>>;
43
+ export declare function getPreviewUrlApi(
44
+ fileId: string,
45
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
38
46
  /**
39
47
  * 获取文档中心预览URL
40
48
  *
@@ -42,5 +50,5 @@ export declare function getPreviewUrlApi(fileId: string): Promise<import("axios"
42
50
  * @param fileName 文件名
43
51
  * @returns 文件内容
44
52
  */
45
- export declare function downLoadScDcApi(fileId: string, fileName: string): Promise<void>;
46
- //# sourceMappingURL=oss.d.ts.map
53
+ export declare function downLoadScDcApi(fileId: string, fileName: string): Promise<void>
54
+ //# sourceMappingURL=oss.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"oss.d.ts","sourceRoot":"","sources":["../../../src/api/platform/oss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAA;AAOxD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAK,UAExC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,WAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,+CAMxE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,qCAUzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,+CAQ9C;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBA0DrE"}
1
+ {"version":3,"file":"oss.d.ts","sourceRoot":"","sources":["../../../src/api/platform/oss.ts"],"names":[],"mappings":"AAEA,OAAO,EAAsB,YAAY,EAAE,MAAM,OAAO,CAAA;AAOxD;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,SAAK,UAExC;AAED;;;;GAIG;AACH,wBAAgB,aAAa,WAE5B;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,YAAY,wDAMxE;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,wDAUzD;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,wDAQ9C;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,iBA0DrE"}
@@ -1,12 +1,19 @@
1
- export declare function loginApi({ userName, password, validCodeId, validCodeInput }: {
2
- userName: any;
3
- password: any;
4
- validCodeId: any;
5
- validCodeInput: any;
6
- }): Promise<import("axios").AxiosResponse<any>>;
7
- export declare function getUserInfoApi(): Promise<import("axios").AxiosResponse<any>>;
8
- export declare function getGlobalPolicyApi(): Promise<import("axios").AxiosResponse<any>>;
9
- export declare function updatePasswordApi(data: any): Promise<import("axios").AxiosResponse<any>>;
10
- export declare function getCaptchaURL(validCodeId: string): string;
11
- export declare function logoutApi(): Promise<import("axios").AxiosResponse<any>>;
12
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function loginApi({
2
+ userName,
3
+ password,
4
+ validCodeId,
5
+ validCodeInput,
6
+ }: {
7
+ userName: any
8
+ password: any
9
+ validCodeId: any
10
+ validCodeInput: any
11
+ }): Promise<import('axios').AxiosResponse<any, any, {}>>
12
+ export declare function getUserInfoApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
13
+ export declare function getGlobalPolicyApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
14
+ export declare function updatePasswordApi(
15
+ data: any,
16
+ ): Promise<import('axios').AxiosResponse<any, any, {}>>
17
+ export declare function getCaptchaURL(validCodeId: string): string
18
+ export declare function logoutApi(): Promise<import('axios').AxiosResponse<any, any, {}>>
19
+ //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,+CAQ3E;AAED,wBAAgB,cAAc,gDAE7B;AAED,wBAAgB,kBAAkB,gDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,+CAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,gDAExB"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/api/platform/user.ts"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE;;;;;CAAA,wDAQ3E;AAED,wBAAgB,cAAc,yDAE7B;AAED,wBAAgB,kBAAkB,yDAEjC;AAED,wBAAgB,iBAAiB,CAAC,IAAI,KAAA,wDAErC;AAED,wBAAgB,aAAa,CAAC,WAAW,EAAE,MAAM,UAEhD;AAED,wBAAgB,SAAS,yDAExB"}
@@ -1,2 +1,2 @@
1
- export declare function listUserTreeApi(params: any): Promise<any>;
2
- //# sourceMappingURL=user.d.ts.map
1
+ export declare function listUserTreeApi(params: any): Promise<any>
2
+ //# sourceMappingURL=user.d.ts.map
@@ -1,34 +1,34 @@
1
1
  declare const _default: {
2
- title: string;
3
- icomId: string;
4
- showMenus: boolean;
5
- routerBase: string;
6
- loginRouteName: string;
7
- rootRouteName: string;
8
- homeRouteName: string;
9
- authServerContext: string;
10
- ossServerContext: string;
11
- ismAmServerContext: string;
12
- ismAcServerContext: string;
13
- ismSqServerContext: string;
14
- ilmServerContext: string;
15
- imgServerContext: string;
16
- imaServerContext: string;
17
- ucExtServerContext: string;
18
- dataManageServerContext: string;
19
- kkfilepreviewContext: string;
20
- errorMessage: string;
21
- leftLockDays: number;
22
- labelStyle: {
23
- labelWidthButton: number;
24
- labelWidthSmall: number;
25
- labelWidthMiddle: number;
26
- labelWidthMiddleLarge: number;
27
- labelWidthLarge: number;
28
- labelWidthSuperLarge: number;
29
- };
30
- /** 点击跳转的文字颜色 */
31
- linkColor: string;
32
- };
33
- export default _default;
34
- //# sourceMappingURL=base.config.d.ts.map
2
+ title: string
3
+ icomId: string
4
+ showMenus: boolean
5
+ routerBase: string
6
+ loginRouteName: string
7
+ rootRouteName: string
8
+ homeRouteName: string
9
+ authServerContext: string
10
+ ossServerContext: string
11
+ ismAmServerContext: string
12
+ ismAcServerContext: string
13
+ ismSqServerContext: string
14
+ ilmServerContext: string
15
+ imgServerContext: string
16
+ imaServerContext: string
17
+ ucExtServerContext: string
18
+ dataManageServerContext: string
19
+ kkfilepreviewContext: string
20
+ errorMessage: string
21
+ leftLockDays: number
22
+ labelStyle: {
23
+ labelWidthButton: number
24
+ labelWidthSmall: number
25
+ labelWidthMiddle: number
26
+ labelWidthMiddleLarge: number
27
+ labelWidthLarge: number
28
+ labelWidthSuperLarge: number
29
+ }
30
+ /** 点击跳转的文字颜色 */
31
+ linkColor: string
32
+ }
33
+ export default _default
34
+ //# sourceMappingURL=base.config.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare function getDevConfig(): {
2
- showMenus: boolean;
3
- };
4
- //# sourceMappingURL=dev.config.d.ts.map
2
+ showMenus: boolean
3
+ }
4
+ //# sourceMappingURL=dev.config.d.ts.map
@@ -1,6 +1,6 @@
1
- declare let config: any;
2
- declare function useConfig(isDev?: boolean): any;
3
- declare function setConfig(key: any, value: any): void;
4
- export default config;
5
- export { config, useConfig, setConfig };
6
- //# sourceMappingURL=index.d.ts.map
1
+ declare let config: any
2
+ declare function useConfig(isDev?: boolean): any
3
+ declare function setConfig(key: any, value: any): void
4
+ export default config
5
+ export { config, useConfig, setConfig }
6
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
1
  export declare function getProdConfig(): {
2
- showMenus: boolean;
3
- };
4
- //# sourceMappingURL=prod.config.d.ts.map
2
+ showMenus: boolean
3
+ }
4
+ //# sourceMappingURL=prod.config.d.ts.map
package/types/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './api';
2
- export * from './config';
3
- export * from './utils';
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './api'
2
+ export * from './config'
3
+ export * from './utils'
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,23 +1,23 @@
1
1
  declare let Base64ForLogin: {
2
- Base64Chars: string;
3
- /**
4
- * Encode a string to a Base64 string follow Bse64 regular.
5
- * @param s, a normal string
6
- * @return a Base64 string
7
- */
8
- encode: (s: any) => any;
9
- /**
10
- * Encodes a ucs2 string to a utf8 integer array.
11
- * @param s, a string
12
- * @return an integer array
13
- */
14
- ucs2_utf8: (s: any) => any[];
15
- /**
16
- * Encodes a utf8 integer array to a ucs2 string.
17
- * @param s, an integer array
18
- * @return a string
19
- */
20
- utf8_ucs2: (s: any) => string;
21
- };
22
- export { Base64ForLogin };
23
- //# sourceMappingURL=base64.d.ts.map
2
+ Base64Chars: string
3
+ /**
4
+ * Encode a string to a Base64 string follow Bse64 regular.
5
+ * @param s, a normal string
6
+ * @return a Base64 string
7
+ */
8
+ encode: (s: any) => any
9
+ /**
10
+ * Encodes a ucs2 string to a utf8 integer array.
11
+ * @param s, a string
12
+ * @return an integer array
13
+ */
14
+ ucs2_utf8: (s: any) => any[]
15
+ /**
16
+ * Encodes a utf8 integer array to a ucs2 string.
17
+ * @param s, an integer array
18
+ * @return a string
19
+ */
20
+ utf8_ucs2: (s: any) => string
21
+ }
22
+ export { Base64ForLogin }
23
+ //# sourceMappingURL=base64.d.ts.map
@@ -5,6 +5,6 @@
5
5
  * @param contentType 数据的MIME Type,如 png 为 image/png
6
6
  * @returns Blob数据
7
7
  */
8
- export declare function base64ToBlob(base64Data: string, contentType: string): Blob;
9
- export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>;
10
- //# sourceMappingURL=blob.d.ts.map
8
+ export declare function base64ToBlob(base64Data: string, contentType: string): Blob
9
+ export declare function blobToBase64(blob: Blob, hasPrefix?: boolean): Promise<unknown>
10
+ //# sourceMappingURL=blob.d.ts.map
@@ -1,3 +1,3 @@
1
- export declare function getDictCache(dictId: string): any;
2
- export declare function setDictCache(dictId: string, data: any): void;
3
- //# sourceMappingURL=dict-cache.d.ts.map
1
+ export declare function getDictCache(dictId: string): any
2
+ export declare function setDictCache(dictId: string, data: any): void
3
+ //# sourceMappingURL=dict-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getIndexDescCache(): any;
2
- export declare function setIndexDescCache(data: any): void;
3
- export declare function clearIndexDescCache(): void;
4
- //# sourceMappingURL=index-desc.d.ts.map
1
+ export declare function getIndexDescCache(): any
2
+ export declare function setIndexDescCache(data: any): void
3
+ export declare function clearIndexDescCache(): void
4
+ //# sourceMappingURL=index-desc.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './index-desc';
2
- export * from './permission-cache';
3
- export * from './user-cache';
4
- //# sourceMappingURL=index.d.ts.map
1
+ export * from './index-desc'
2
+ export * from './permission-cache'
3
+ export * from './user-cache'
4
+ //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getPermissionCache(): any;
2
- export declare function setPermissionCache(data: any): void;
3
- export declare function clearPermissionCache(): void;
4
- //# sourceMappingURL=permission-cache.d.ts.map
1
+ export declare function getPermissionCache(): any
2
+ export declare function setPermissionCache(data: any): void
3
+ export declare function clearPermissionCache(): void
4
+ //# sourceMappingURL=permission-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function getUserInfoCache(): any;
2
- export declare function setUserInfoCache(data: any): void;
3
- export declare function clearUserInfoCache(): void;
4
- //# sourceMappingURL=user-cache.d.ts.map
1
+ export declare function getUserInfoCache(): any
2
+ export declare function setUserInfoCache(data: any): void
3
+ export declare function clearUserInfoCache(): void
4
+ //# sourceMappingURL=user-cache.d.ts.map
@@ -1,4 +1,4 @@
1
- export declare function str2Date(value: string): Date;
2
- export declare function formatDate(value: string): string;
3
- export declare function formatDateChinese(value: string): string;
4
- //# sourceMappingURL=date.d.ts.map
1
+ export declare function str2Date(value: string): Date
2
+ export declare function formatDate(value: string): string
3
+ export declare function formatDateChinese(value: string): string
4
+ //# sourceMappingURL=date.d.ts.map