@pubinfo-pr/core 0.203.1 → 0.204.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.
@@ -1,18 +1,4 @@
1
1
  import { auth as request } from '../../request';
2
- /**
3
- * @description 双因素认证-二次认证准备
4
- * @url /auth/2fa/prepare
5
- * @method POST
6
- * @author @pubinfo/openapi
7
- */
8
- export declare function postAuth2FaPrepare<R = API.ResponseDataString, T = API.ResponseDataString>(body: API.Prepare2faDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('../../../..').AG, R, T>>;
9
- /**
10
- * @description 双因素认证-二次认证验证
11
- * @url /auth/2fa/verify
12
- * @method POST
13
- * @author @pubinfo/openapi
14
- */
15
- export declare function postAuth2FaVerify<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.Verify2faDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('../../../..').AG, R, T>>;
16
2
  /**
17
3
  * @description 验证码-前端校验 需要校验的验证码类型:blockPuzzle、clickWord
18
4
  * @url /auth/captcha/check
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/core",
3
3
  "type": "module",
4
- "version": "0.203.1",
4
+ "version": "0.204.2",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -27,9 +27,9 @@
27
27
  "node": "^20.19.0 || >=22.12.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "@pubinfo-pr/config": "0.203.1",
31
- "@pubinfo-pr/devtools": "0.203.1",
32
- "@pubinfo-pr/vite": "0.203.1",
30
+ "@pubinfo-pr/config": "0.204.2",
31
+ "@pubinfo-pr/devtools": "0.204.2",
32
+ "@pubinfo-pr/vite": "0.204.2",
33
33
  "alova": "^3.3.4",
34
34
  "pinia": "^3.0.4",
35
35
  "vue": "^3.5.26",
@@ -42,7 +42,7 @@
42
42
  "@headlessui/vue": "^1.7.23",
43
43
  "@imengyu/vue3-context-menu": "^1.5.1",
44
44
  "@pubinfo/pro-components": "^1.8.0",
45
- "@pubinfo-pr/shared": "0.203.1",
45
+ "@pubinfo-pr/shared": "0.204.2",
46
46
  "@unocss/reset": "^66.4.2",
47
47
  "@vueuse/core": "^14.1.0",
48
48
  "@vueuse/integrations": "^14.1.0",
@@ -69,10 +69,10 @@
69
69
  "@alova/mock": "^2.0.17",
70
70
  "@iconify/json": "^2.2.354",
71
71
  "@iconify/vue": "^5.0.0",
72
- "@pubinfo-pr/config": "0.203.1",
72
+ "@pubinfo-pr/config": "0.204.2",
73
73
  "@pubinfo/openapi": "^0.9.1",
74
74
  "@pubinfo/preset-openapi": "^0.9.1",
75
- "@pubinfo-pr/vite": "0.203.1",
75
+ "@pubinfo-pr/vite": "0.204.2",
76
76
  "@types/lodash-es": "^4.17.12",
77
77
  "@types/md5": "^2.3.5",
78
78
  "@types/nprogress": "^0.2.3",
@@ -1,41 +1,5 @@
1
1
  import { auth as request } from '@/features/api/request';
2
2
 
3
- /**
4
- * @description 双因素认证-二次认证准备
5
- * @url /auth/2fa/prepare
6
- * @method POST
7
- * @author @pubinfo/openapi
8
- */
9
- export function postAuth2FaPrepare<
10
- R = API.ResponseDataString,
11
- T = API.ResponseDataString,
12
- >(body: API.Prepare2faDto, options?: Parameters<typeof request.Post<R, T>>[2]) {
13
- return request.Post<R, T>('/auth/2fa/prepare', body, {
14
- headers: {
15
- 'Content-Type': 'application/json',
16
- },
17
- ...(options || {}),
18
- });
19
- }
20
-
21
- /**
22
- * @description 双因素认证-二次认证验证
23
- * @url /auth/2fa/verify
24
- * @method POST
25
- * @author @pubinfo/openapi
26
- */
27
- export function postAuth2FaVerify<
28
- R = API.ResponseDataLoginTokenVo,
29
- T = API.ResponseDataLoginTokenVo,
30
- >(body: API.Verify2faDto, options?: Parameters<typeof request.Post<R, T>>[2]) {
31
- return request.Post<R, T>('/auth/2fa/verify', body, {
32
- headers: {
33
- 'Content-Type': 'application/json',
34
- },
35
- ...(options || {}),
36
- });
37
- }
38
-
39
3
  /**
40
4
  * @description 验证码-前端校验 需要校验的验证码类型:blockPuzzle、clickWord
41
5
  * @url /auth/captcha/check
@@ -40,9 +40,9 @@ declare namespace API {
40
40
  };
41
41
 
42
42
  type IResponseCode = {
43
+ msg?: string;
43
44
  code?: number;
44
45
  hint?: string;
45
- msg?: string;
46
46
  };
47
47
 
48
48
  type LoginByPwdCaptchaDto = {
@@ -79,8 +79,6 @@ declare namespace API {
79
79
  /** 访问令牌 */
80
80
  accessToken?: string;
81
81
  loginResponse?: IResponseCode;
82
- /** 2FA登录码 不为空表示开启了2FA登录 */
83
- login2faCode?: string;
84
82
  };
85
83
 
86
84
  type postAuthChangeLoginOrgParams = {
@@ -105,13 +103,6 @@ declare namespace API {
105
103
  refreshToken: string;
106
104
  };
107
105
 
108
- type Prepare2faDto = {
109
- /** login2faCode */
110
- login2faCode: string;
111
- /** 二次认证方式 默认支持sms */
112
- fa2Type: string;
113
- };
114
-
115
106
  type PubLoginTokenVo = {
116
107
  /** id */
117
108
  id?: string;
@@ -183,13 +174,4 @@ declare namespace API {
183
174
  key?: string;
184
175
  plaintext?: string;
185
176
  };
186
-
187
- type Verify2faDto = {
188
- /** login2faCode */
189
- login2faCode: string;
190
- /** 二次认证方式 默认支持sms */
191
- fa2Type: string;
192
- /** 认证码 */
193
- verifyCode: string;
194
- };
195
177
  }