@pubinfo-pr/module-captcha 0.1.1 → 0.182.1

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.
@@ -5,74 +5,74 @@ import { auth as request } from '../../request';
5
5
  * @method POST
6
6
  * @author @pubinfo/openapi
7
7
  */
8
- export declare function postAuthCaptchaCheck<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaCheckDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
8
+ export declare function postAuthCaptchaCheck<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaCheckDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
9
9
  /**
10
10
  * @description 验证码-获取验证码图片
11
11
  * @url /auth/captcha/get
12
12
  * @method POST
13
13
  * @author @pubinfo/openapi
14
14
  */
15
- export declare function postAuthCaptchaGet<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaGetDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
15
+ export declare function postAuthCaptchaGet<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaGetDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
16
16
  /**
17
17
  * @description 切换登录组织
18
18
  * @url /auth/changeLoginOrg
19
19
  * @method POST
20
20
  * @author @pubinfo/openapi
21
21
  */
22
- export declare function postAuthChangeLoginOrg<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthChangeLoginOrgParams, options?: Parameters<typeof request.Post<R, T>>[2]): any;
22
+ export declare function postAuthChangeLoginOrg<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthChangeLoginOrgParams, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
23
23
  /**
24
24
  * @description 判断缓存的token是否有效
25
25
  * @url /auth/checkCacheToken
26
26
  * @method GET
27
27
  * @author @pubinfo/openapi
28
28
  */
29
- export declare function getAuthCheckCacheToken<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(params: API.getAuthCheckCacheTokenParams, options?: Parameters<typeof request.Get<R, T>>[1]): any;
29
+ export declare function getAuthCheckCacheToken<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(params: API.getAuthCheckCacheTokenParams, options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
30
30
  /**
31
31
  * @description 密码登录
32
32
  * @url /auth/login
33
33
  * @method POST
34
34
  * @author @pubinfo/openapi
35
35
  */
36
- export declare function postAuthLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
36
+ export declare function postAuthLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
37
37
  /**
38
38
  * @description 获取登录公钥
39
39
  * @url /auth/login/key
40
40
  * @method GET
41
41
  * @author @pubinfo/openapi
42
42
  */
43
- export declare function getAuthLoginKey<R = API.ResponseDataString, T = API.ResponseDataString>(options?: Parameters<typeof request.Get<R, T>>[1]): any;
43
+ export declare function getAuthLoginKey<R = API.ResponseDataString, T = API.ResponseDataString>(options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
44
44
  /**
45
45
  * @description 获取图片验证码
46
46
  * @url /auth/login/validCode
47
47
  * @method GET
48
48
  * @author @pubinfo/openapi
49
49
  */
50
- export declare function getAuthLoginValidCode<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(params: API.getAuthLoginValidCodeParams, options?: Parameters<typeof request.Get<R, T>>[1]): any;
50
+ export declare function getAuthLoginValidCode<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(params: API.getAuthLoginValidCodeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
51
51
  /**
52
52
  * @description 验证码-密码登录
53
53
  * @url /auth/loginNew
54
54
  * @method POST
55
55
  * @author @pubinfo/openapi
56
56
  */
57
- export declare function postAuthLoginNew<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdCaptchaDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
57
+ export declare function postAuthLoginNew<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdCaptchaDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
58
58
  /**
59
59
  * @description 登出
60
60
  * @url /auth/loginOut
61
61
  * @method POST
62
62
  * @author @pubinfo/openapi
63
63
  */
64
- export declare function postAuthLoginOut<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(options?: Parameters<typeof request.Post<R, T>>[2]): any;
64
+ export declare function postAuthLoginOut<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
65
65
  /**
66
66
  * @description 单点免密登录接口
67
67
  * @url /auth/ssoLogin
68
68
  * @method POST
69
69
  * @author @pubinfo/openapi
70
70
  */
71
- export declare function postAuthSsoLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.SsoLoginDto, options?: Parameters<typeof request.Post<R, T>>[2]): any;
71
+ export declare function postAuthSsoLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.SsoLoginDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
72
72
  /**
73
73
  * @description 刷新访问令牌
74
74
  * @url /auth/token/refresh
75
75
  * @method POST
76
76
  * @author @pubinfo/openapi
77
77
  */
78
- export declare function postAuthTokenRefresh<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthTokenRefreshParams, options?: Parameters<typeof request.Post<R, T>>[2]): any;
78
+ export declare function postAuthTokenRefresh<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthTokenRefreshParams, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo-pr').AG, R, T>>;
@@ -1 +1 @@
1
- export declare const auth: any;
1
+ export declare const auth: import('pubinfo-pr').RequestInstance;
@@ -5,5 +5,5 @@
5
5
  */
6
6
  export declare function fetchCaptcha(size?: string): Promise<{
7
7
  imgUrl: string;
8
- hash: any;
8
+ hash: string | undefined;
9
9
  }>;
package/dist/context.d.ts CHANGED
@@ -1 +1,2 @@
1
- export declare const ctx: any;
1
+ import { InternalContext } from './interface.ts';
2
+ export declare const ctx: import('unctx').UseContext<InternalContext>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-captcha",
3
3
  "type": "module",
4
- "version": "0.1.1",
4
+ "version": "0.182.1",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "peerDependencies": {
23
23
  "@ant-design/icons-vue": "^7.0.1",
24
24
  "ant-design-vue": "^4.2.6",
25
- "pubinfo-pr": "0.1.1"
25
+ "pubinfo-pr": "0.182.1"
26
26
  },
27
27
  "dependencies": {
28
28
  "@vueuse/core": "^13.7.0",
@@ -32,7 +32,7 @@
32
32
  "@ant-design/icons-vue": "^7.0.1",
33
33
  "@types/crypto-js": "^4.2.2",
34
34
  "ant-design-vue": "^4.2.6",
35
- "pubinfo-pr": "0.1.1"
35
+ "pubinfo-pr": "0.182.1"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "pubinfo build -w --sourcemap",