@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 1.0.0-beta.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.
- package/README.md +190 -0
- package/dist/Article.d.ts +121 -0
- package/dist/Article.js +189 -0
- package/dist/Auth.d.ts +30 -0
- package/dist/Auth.js +59 -0
- package/dist/Category.d.ts +49 -0
- package/dist/Category.js +85 -0
- package/dist/Comment.d.ts +58 -0
- package/dist/Comment.js +98 -0
- package/dist/File.d.ts +40 -0
- package/dist/File.js +72 -0
- package/dist/HttpClient.d.ts +41 -0
- package/dist/HttpClient.js +94 -0
- package/dist/Knowledge.d.ts +76 -0
- package/dist/Knowledge.js +124 -0
- package/dist/Page.d.ts +58 -0
- package/dist/Page.js +98 -0
- package/dist/Search.d.ts +30 -0
- package/dist/Search.js +59 -0
- package/dist/Setting.d.ts +22 -0
- package/dist/Setting.js +46 -0
- package/dist/Smtp.d.ts +31 -0
- package/dist/Smtp.js +59 -0
- package/dist/Tag.d.ts +58 -0
- package/dist/Tag.js +98 -0
- package/dist/User.d.ts +41 -0
- package/dist/User.js +73 -0
- package/dist/View.d.ts +49 -0
- package/dist/View.js +85 -0
- package/dist/api/ApiInstance.d.ts +39 -0
- package/dist/api/ApiInstance.js +46 -0
- package/dist/api/Article.d.ts +11 -11
- package/dist/api/Article.js +12 -12
- package/dist/api/ArticleRoute.d.ts +201 -0
- package/dist/api/ArticleRoute.js +12 -0
- package/dist/api/Auth.d.ts +5 -5
- package/dist/api/Auth.js +6 -6
- package/dist/api/AuthRoute.d.ts +44 -0
- package/dist/api/AuthRoute.js +12 -0
- package/dist/api/Category.d.ts +1 -1
- package/dist/api/Category.js +2 -2
- package/dist/api/CategoryRoute.d.ts +79 -0
- package/dist/api/CategoryRoute.js +12 -0
- package/dist/api/Comment.d.ts +3 -3
- package/dist/api/Comment.js +4 -4
- package/dist/api/CommentRoute.d.ts +95 -0
- package/dist/api/CommentRoute.js +12 -0
- package/dist/api/File.d.ts +3 -3
- package/dist/api/File.js +4 -4
- package/dist/api/FileRoute.d.ts +63 -0
- package/dist/api/FileRoute.js +12 -0
- package/dist/api/Knowledge.d.ts +5 -5
- package/dist/api/Knowledge.js +6 -6
- package/dist/api/KnowledgeRoute.d.ts +125 -0
- package/dist/api/KnowledgeRoute.js +12 -0
- package/dist/api/Page.d.ts +3 -3
- package/dist/api/Page.js +4 -4
- package/dist/api/PageRoute.d.ts +95 -0
- package/dist/api/PageRoute.js +12 -0
- package/dist/api/Search.d.ts +3 -3
- package/dist/api/Search.js +4 -4
- package/dist/api/SearchRoute.d.ts +46 -0
- package/dist/api/SearchRoute.js +12 -0
- package/dist/api/Setting.d.ts +3 -3
- package/dist/api/Setting.js +4 -4
- package/dist/api/SettingRoute.d.ts +31 -0
- package/dist/api/SettingRoute.js +12 -0
- package/dist/api/Smtp.d.ts +1 -1
- package/dist/api/Smtp.js +2 -2
- package/dist/api/SmtpRoute.d.ts +47 -0
- package/dist/api/SmtpRoute.js +12 -0
- package/dist/api/Tag.d.ts +3 -3
- package/dist/api/Tag.js +4 -4
- package/dist/api/TagRoute.d.ts +95 -0
- package/dist/api/TagRoute.js +12 -0
- package/dist/api/User.d.ts +7 -7
- package/dist/api/User.js +8 -8
- package/dist/api/UserRoute.d.ts +60 -0
- package/dist/api/UserRoute.js +12 -0
- package/dist/api/View.d.ts +3 -3
- package/dist/api/View.js +4 -4
- package/dist/api/ViewRoute.d.ts +77 -0
- package/dist/api/ViewRoute.js +12 -0
- package/dist/api/httpClient.d.ts +1 -0
- package/dist/api/httpClient.js +1 -0
- package/dist/api/index.d.ts +5 -5
- package/dist/api/index.js +6 -7
- package/dist/data-contracts.d.ts +245 -0
- package/dist/data-contracts.js +12 -0
- package/dist/index.d.ts +5 -9
- package/dist/index.js +14 -15
- package/dist/utils/common.d.ts +1 -3
- package/dist/utils/common.js +5 -31
- package/dist/utils/http.js +4 -6
- package/package.json +5 -3
- package/demos/simple.ts +0 -65
- package/scripts/generate-api-types.js +0 -571
- package/scripts/generate-swagger.js +0 -47
- package/scripts/organize-api.js +0 -136
- package/src/api/Article.ts +0 -186
- package/src/api/Auth.ts +0 -54
- package/src/api/Category.ts +0 -82
- package/src/api/Comment.ts +0 -95
- package/src/api/File.ts +0 -69
- package/src/api/Knowledge.ts +0 -122
- package/src/api/Page.ts +0 -95
- package/src/api/Search.ts +0 -54
- package/src/api/Setting.ts +0 -43
- package/src/api/Smtp.ts +0 -56
- package/src/api/Tag.ts +0 -95
- package/src/api/User.ts +0 -72
- package/src/api/View.ts +0 -82
- package/src/api/api-instance.ts +0 -69
- package/src/api/httpClient.ts +0 -140
- package/src/api/index.ts +0 -25
- package/src/index.ts +0 -18
- package/src/types/data-contracts.ts +0 -198
- package/src/types/index.ts +0 -4
- package/src/utils/common.ts +0 -108
- package/src/utils/http.ts +0 -52
- package/src/utils/index.ts +0 -5
- package/test-final.js +0 -56
- package/test-import.js +0 -34
- package/tsconfig.json +0 -20
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { ITag } from '../types/data-contracts';
|
|
2
|
+
export declare namespace Tag {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
* @tags Tag
|
|
6
|
+
* @name create
|
|
7
|
+
* @request POST:/tag
|
|
8
|
+
* @response `200` `(ITag)[]` 创建标签
|
|
9
|
+
*/
|
|
10
|
+
namespace create {
|
|
11
|
+
type RequestParams = {};
|
|
12
|
+
type RequestQuery = {};
|
|
13
|
+
type RequestBody = never;
|
|
14
|
+
type RequestHeaders = {};
|
|
15
|
+
type ResponseBody = ITag[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* No description
|
|
19
|
+
* @tags Tag
|
|
20
|
+
* @name findAll
|
|
21
|
+
* @request GET:/tag
|
|
22
|
+
* @response `200` `void`
|
|
23
|
+
*/
|
|
24
|
+
namespace findAll {
|
|
25
|
+
type RequestParams = {};
|
|
26
|
+
type RequestQuery = {};
|
|
27
|
+
type RequestBody = never;
|
|
28
|
+
type RequestHeaders = {};
|
|
29
|
+
type ResponseBody = void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
* @tags Tag
|
|
34
|
+
* @name findById
|
|
35
|
+
* @request GET:/tag/{id}
|
|
36
|
+
* @response `200` `void`
|
|
37
|
+
*/
|
|
38
|
+
namespace findById {
|
|
39
|
+
type RequestParams = {
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
42
|
+
type RequestQuery = {};
|
|
43
|
+
type RequestBody = never;
|
|
44
|
+
type RequestHeaders = {};
|
|
45
|
+
type ResponseBody = void;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* No description
|
|
49
|
+
* @tags Tag
|
|
50
|
+
* @name updateById
|
|
51
|
+
* @request PATCH:/tag/{id}
|
|
52
|
+
* @response `200` `void`
|
|
53
|
+
*/
|
|
54
|
+
namespace updateById {
|
|
55
|
+
type RequestParams = {
|
|
56
|
+
id: string;
|
|
57
|
+
};
|
|
58
|
+
type RequestQuery = {};
|
|
59
|
+
type RequestBody = never;
|
|
60
|
+
type RequestHeaders = {};
|
|
61
|
+
type ResponseBody = void;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* No description
|
|
65
|
+
* @tags Tag
|
|
66
|
+
* @name deleteById
|
|
67
|
+
* @request DELETE:/tag/{id}
|
|
68
|
+
* @response `200` `void`
|
|
69
|
+
*/
|
|
70
|
+
namespace deleteById {
|
|
71
|
+
type RequestParams = {
|
|
72
|
+
id: string;
|
|
73
|
+
};
|
|
74
|
+
type RequestQuery = {};
|
|
75
|
+
type RequestBody = never;
|
|
76
|
+
type RequestHeaders = {};
|
|
77
|
+
type ResponseBody = void;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* No description
|
|
81
|
+
* @tags Tag
|
|
82
|
+
* @name getArticleById
|
|
83
|
+
* @request GET:/tag/{id}/article
|
|
84
|
+
* @response `200` `void`
|
|
85
|
+
*/
|
|
86
|
+
namespace getArticleById {
|
|
87
|
+
type RequestParams = {
|
|
88
|
+
id: string;
|
|
89
|
+
};
|
|
90
|
+
type RequestQuery = {};
|
|
91
|
+
type RequestBody = never;
|
|
92
|
+
type RequestHeaders = {};
|
|
93
|
+
type ResponseBody = void;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/api/User.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IUser } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class User<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
|
@@ -13,24 +13,24 @@ export declare class User<SecurityDataType = unknown> extends HttpClient<Securit
|
|
|
13
13
|
* No description
|
|
14
14
|
*
|
|
15
15
|
* @tags User
|
|
16
|
-
* @name
|
|
16
|
+
* @name register
|
|
17
17
|
* @request POST:/user/register
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
register: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
|
|
20
20
|
/**
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
23
23
|
* @tags User
|
|
24
|
-
* @name
|
|
24
|
+
* @name update
|
|
25
25
|
* @request POST:/user/update
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
update: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
|
|
28
28
|
/**
|
|
29
29
|
* No description
|
|
30
30
|
*
|
|
31
31
|
* @tags User
|
|
32
|
-
* @name
|
|
32
|
+
* @name updatePassword
|
|
33
33
|
* @request POST:/user/password
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
updatePassword: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IUser[], any, {}>>;
|
|
36
36
|
}
|
package/dist/api/User.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.User = void 0;
|
|
14
|
-
const
|
|
15
|
-
class User extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class User extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
@@ -32,10 +32,10 @@ class User extends httpClient_1.HttpClient {
|
|
|
32
32
|
* No description
|
|
33
33
|
*
|
|
34
34
|
* @tags User
|
|
35
|
-
* @name
|
|
35
|
+
* @name register
|
|
36
36
|
* @request POST:/user/register
|
|
37
37
|
*/
|
|
38
|
-
this.
|
|
38
|
+
this.register = (params = {}) => this.request({
|
|
39
39
|
path: `/user/register`,
|
|
40
40
|
method: 'POST',
|
|
41
41
|
format: 'json',
|
|
@@ -45,10 +45,10 @@ class User extends httpClient_1.HttpClient {
|
|
|
45
45
|
* No description
|
|
46
46
|
*
|
|
47
47
|
* @tags User
|
|
48
|
-
* @name
|
|
48
|
+
* @name update
|
|
49
49
|
* @request POST:/user/update
|
|
50
50
|
*/
|
|
51
|
-
this.
|
|
51
|
+
this.update = (params = {}) => this.request({
|
|
52
52
|
path: `/user/update`,
|
|
53
53
|
method: 'POST',
|
|
54
54
|
format: 'json',
|
|
@@ -58,10 +58,10 @@ class User extends httpClient_1.HttpClient {
|
|
|
58
58
|
* No description
|
|
59
59
|
*
|
|
60
60
|
* @tags User
|
|
61
|
-
* @name
|
|
61
|
+
* @name updatePassword
|
|
62
62
|
* @request POST:/user/password
|
|
63
63
|
*/
|
|
64
|
-
this.
|
|
64
|
+
this.updatePassword = (params = {}) => this.request({
|
|
65
65
|
path: `/user/password`,
|
|
66
66
|
method: 'POST',
|
|
67
67
|
format: 'json',
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IUser } from '../types/data-contracts';
|
|
2
|
+
export declare namespace User {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
* @tags User
|
|
6
|
+
* @name findAll
|
|
7
|
+
* @request GET:/user
|
|
8
|
+
* @response `200` `(IUser)[]` 获取用户列表
|
|
9
|
+
* @response `403` `void` 无权获取用户列表
|
|
10
|
+
*/
|
|
11
|
+
namespace findAll {
|
|
12
|
+
type RequestParams = {};
|
|
13
|
+
type RequestQuery = {};
|
|
14
|
+
type RequestBody = never;
|
|
15
|
+
type RequestHeaders = {};
|
|
16
|
+
type ResponseBody = IUser[];
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* No description
|
|
20
|
+
* @tags User
|
|
21
|
+
* @name register
|
|
22
|
+
* @request POST:/user/register
|
|
23
|
+
* @response `201` `(IUser)[]` 创建用户
|
|
24
|
+
*/
|
|
25
|
+
namespace register {
|
|
26
|
+
type RequestParams = {};
|
|
27
|
+
type RequestQuery = {};
|
|
28
|
+
type RequestBody = never;
|
|
29
|
+
type RequestHeaders = {};
|
|
30
|
+
type ResponseBody = IUser[];
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* No description
|
|
34
|
+
* @tags User
|
|
35
|
+
* @name update
|
|
36
|
+
* @request POST:/user/update
|
|
37
|
+
* @response `200` `(IUser)[]` 更新用户成功
|
|
38
|
+
*/
|
|
39
|
+
namespace update {
|
|
40
|
+
type RequestParams = {};
|
|
41
|
+
type RequestQuery = {};
|
|
42
|
+
type RequestBody = never;
|
|
43
|
+
type RequestHeaders = {};
|
|
44
|
+
type ResponseBody = IUser[];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* No description
|
|
48
|
+
* @tags User
|
|
49
|
+
* @name updatePassword
|
|
50
|
+
* @request POST:/user/password
|
|
51
|
+
* @response `201` `(IUser)[]` 更新密码成功
|
|
52
|
+
*/
|
|
53
|
+
namespace updatePassword {
|
|
54
|
+
type RequestParams = {};
|
|
55
|
+
type RequestQuery = {};
|
|
56
|
+
type RequestBody = never;
|
|
57
|
+
type RequestHeaders = {};
|
|
58
|
+
type ResponseBody = IUser[];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/api/View.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IView } from '../types/data-contracts';
|
|
2
|
-
import { HttpClient, RequestParams } from './
|
|
2
|
+
import { HttpClient, RequestParams } from './HttpClient';
|
|
3
3
|
export declare class View<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
|
|
4
4
|
/**
|
|
5
5
|
* No description
|
|
@@ -21,10 +21,10 @@ export declare class View<SecurityDataType = unknown> extends HttpClient<Securit
|
|
|
21
21
|
* No description
|
|
22
22
|
*
|
|
23
23
|
* @tags View
|
|
24
|
-
* @name
|
|
24
|
+
* @name findByUrl
|
|
25
25
|
* @request GET:/view/url
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
findByUrl: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
28
28
|
/**
|
|
29
29
|
* No description
|
|
30
30
|
*
|
package/dist/api/View.js
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.View = void 0;
|
|
14
|
-
const
|
|
15
|
-
class View extends
|
|
14
|
+
const HttpClient_1 = require("./HttpClient");
|
|
15
|
+
class View extends HttpClient_1.HttpClient {
|
|
16
16
|
constructor() {
|
|
17
17
|
super(...arguments);
|
|
18
18
|
/**
|
|
@@ -44,10 +44,10 @@ class View extends httpClient_1.HttpClient {
|
|
|
44
44
|
* No description
|
|
45
45
|
*
|
|
46
46
|
* @tags View
|
|
47
|
-
* @name
|
|
47
|
+
* @name findByUrl
|
|
48
48
|
* @request GET:/view/url
|
|
49
49
|
*/
|
|
50
|
-
this.
|
|
50
|
+
this.findByUrl = (params = {}) => this.request({
|
|
51
51
|
path: `/view/url`,
|
|
52
52
|
method: 'GET',
|
|
53
53
|
...params,
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { IView } from '../types/data-contracts';
|
|
2
|
+
export declare namespace View {
|
|
3
|
+
/**
|
|
4
|
+
* No description
|
|
5
|
+
* @tags View
|
|
6
|
+
* @name create
|
|
7
|
+
* @request POST:/view
|
|
8
|
+
* @response `200` `(IView)[]` 访问记录添加成功
|
|
9
|
+
*/
|
|
10
|
+
namespace create {
|
|
11
|
+
type RequestParams = {};
|
|
12
|
+
type RequestQuery = {};
|
|
13
|
+
type RequestBody = never;
|
|
14
|
+
type RequestHeaders = {};
|
|
15
|
+
type ResponseBody = IView[];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* No description
|
|
19
|
+
* @tags View
|
|
20
|
+
* @name findAll
|
|
21
|
+
* @request GET:/view
|
|
22
|
+
* @response `200` `void`
|
|
23
|
+
*/
|
|
24
|
+
namespace findAll {
|
|
25
|
+
type RequestParams = {};
|
|
26
|
+
type RequestQuery = {};
|
|
27
|
+
type RequestBody = never;
|
|
28
|
+
type RequestHeaders = {};
|
|
29
|
+
type ResponseBody = void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* No description
|
|
33
|
+
* @tags View
|
|
34
|
+
* @name findByUrl
|
|
35
|
+
* @request GET:/view/url
|
|
36
|
+
* @response `200` `void`
|
|
37
|
+
*/
|
|
38
|
+
namespace findByUrl {
|
|
39
|
+
type RequestParams = {};
|
|
40
|
+
type RequestQuery = {};
|
|
41
|
+
type RequestBody = never;
|
|
42
|
+
type RequestHeaders = {};
|
|
43
|
+
type ResponseBody = void;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* No description
|
|
47
|
+
* @tags View
|
|
48
|
+
* @name findById
|
|
49
|
+
* @request GET:/view/{id}
|
|
50
|
+
* @response `200` `void`
|
|
51
|
+
*/
|
|
52
|
+
namespace findById {
|
|
53
|
+
type RequestParams = {
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
type RequestQuery = {};
|
|
57
|
+
type RequestBody = never;
|
|
58
|
+
type RequestHeaders = {};
|
|
59
|
+
type ResponseBody = void;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* No description
|
|
63
|
+
* @tags View
|
|
64
|
+
* @name deleteById
|
|
65
|
+
* @request DELETE:/view/{id}
|
|
66
|
+
* @response `200` `void`
|
|
67
|
+
*/
|
|
68
|
+
namespace deleteById {
|
|
69
|
+
type RequestParams = {
|
|
70
|
+
id: string;
|
|
71
|
+
};
|
|
72
|
+
type RequestQuery = {};
|
|
73
|
+
type RequestBody = never;
|
|
74
|
+
type RequestHeaders = {};
|
|
75
|
+
type ResponseBody = void;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/*
|
|
5
|
+
* ---------------------------------------------------------------
|
|
6
|
+
* ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
|
|
7
|
+
* ## ##
|
|
8
|
+
* ## AUTHOR: acacode ##
|
|
9
|
+
* ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
|
|
10
|
+
* ---------------------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/api/httpClient.d.ts
CHANGED
|
@@ -39,3 +39,4 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
39
39
|
protected createFormData(input: Record<string, unknown>): FormData;
|
|
40
40
|
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T, any, {}>>;
|
|
41
41
|
}
|
|
42
|
+
export default HttpClient;
|
package/dist/api/httpClient.js
CHANGED
package/dist/api/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export * from './Auth';
|
|
|
3
3
|
export * from './Category';
|
|
4
4
|
export * from './Comment';
|
|
5
5
|
export * from './File';
|
|
6
|
+
export * from './HttpClient';
|
|
6
7
|
export * from './Knowledge';
|
|
7
8
|
export * from './Page';
|
|
8
9
|
export * from './Search';
|
|
@@ -11,8 +12,7 @@ export * from './Smtp';
|
|
|
11
12
|
export * from './Tag';
|
|
12
13
|
export * from './User';
|
|
13
14
|
export * from './View';
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export { default as api } from './api-instance';
|
|
15
|
+
export { default as HttpClient } from './HttpClient';
|
|
16
|
+
export type { HttpClientConfig } from './HttpClient';
|
|
17
|
+
export * from './ApiInstance';
|
|
18
|
+
export { default as api } from './ApiInstance';
|
package/dist/api/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __exportStar(require("./Auth"), exports);
|
|
|
25
25
|
__exportStar(require("./Category"), exports);
|
|
26
26
|
__exportStar(require("./Comment"), exports);
|
|
27
27
|
__exportStar(require("./File"), exports);
|
|
28
|
+
__exportStar(require("./HttpClient"), exports);
|
|
28
29
|
__exportStar(require("./Knowledge"), exports);
|
|
29
30
|
__exportStar(require("./Page"), exports);
|
|
30
31
|
__exportStar(require("./Search"), exports);
|
|
@@ -33,11 +34,9 @@ __exportStar(require("./Smtp"), exports);
|
|
|
33
34
|
__exportStar(require("./Tag"), exports);
|
|
34
35
|
__exportStar(require("./User"), exports);
|
|
35
36
|
__exportStar(require("./View"), exports);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
var httpClient_1 = require("./httpClient");
|
|
39
|
-
Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return httpClient_1.HttpClient; } });
|
|
37
|
+
var HttpClient_1 = require("./HttpClient");
|
|
38
|
+
Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return __importDefault(HttpClient_1).default; } });
|
|
40
39
|
// API 实例化
|
|
41
|
-
__exportStar(require("./
|
|
42
|
-
var
|
|
43
|
-
Object.defineProperty(exports, "api", { enumerable: true, get: function () { return __importDefault(
|
|
40
|
+
__exportStar(require("./ApiInstance"), exports);
|
|
41
|
+
var ApiInstance_1 = require("./ApiInstance");
|
|
42
|
+
Object.defineProperty(exports, "api", { enumerable: true, get: function () { return __importDefault(ApiInstance_1).default; } });
|