@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.
Files changed (124) hide show
  1. package/README.md +190 -0
  2. package/dist/Article.d.ts +121 -0
  3. package/dist/Article.js +189 -0
  4. package/dist/Auth.d.ts +30 -0
  5. package/dist/Auth.js +59 -0
  6. package/dist/Category.d.ts +49 -0
  7. package/dist/Category.js +85 -0
  8. package/dist/Comment.d.ts +58 -0
  9. package/dist/Comment.js +98 -0
  10. package/dist/File.d.ts +40 -0
  11. package/dist/File.js +72 -0
  12. package/dist/HttpClient.d.ts +41 -0
  13. package/dist/HttpClient.js +94 -0
  14. package/dist/Knowledge.d.ts +76 -0
  15. package/dist/Knowledge.js +124 -0
  16. package/dist/Page.d.ts +58 -0
  17. package/dist/Page.js +98 -0
  18. package/dist/Search.d.ts +30 -0
  19. package/dist/Search.js +59 -0
  20. package/dist/Setting.d.ts +22 -0
  21. package/dist/Setting.js +46 -0
  22. package/dist/Smtp.d.ts +31 -0
  23. package/dist/Smtp.js +59 -0
  24. package/dist/Tag.d.ts +58 -0
  25. package/dist/Tag.js +98 -0
  26. package/dist/User.d.ts +41 -0
  27. package/dist/User.js +73 -0
  28. package/dist/View.d.ts +49 -0
  29. package/dist/View.js +85 -0
  30. package/dist/api/ApiInstance.d.ts +39 -0
  31. package/dist/api/ApiInstance.js +46 -0
  32. package/dist/api/Article.d.ts +11 -11
  33. package/dist/api/Article.js +12 -12
  34. package/dist/api/ArticleRoute.d.ts +201 -0
  35. package/dist/api/ArticleRoute.js +12 -0
  36. package/dist/api/Auth.d.ts +5 -5
  37. package/dist/api/Auth.js +6 -6
  38. package/dist/api/AuthRoute.d.ts +44 -0
  39. package/dist/api/AuthRoute.js +12 -0
  40. package/dist/api/Category.d.ts +1 -1
  41. package/dist/api/Category.js +2 -2
  42. package/dist/api/CategoryRoute.d.ts +79 -0
  43. package/dist/api/CategoryRoute.js +12 -0
  44. package/dist/api/Comment.d.ts +3 -3
  45. package/dist/api/Comment.js +4 -4
  46. package/dist/api/CommentRoute.d.ts +95 -0
  47. package/dist/api/CommentRoute.js +12 -0
  48. package/dist/api/File.d.ts +3 -3
  49. package/dist/api/File.js +4 -4
  50. package/dist/api/FileRoute.d.ts +63 -0
  51. package/dist/api/FileRoute.js +12 -0
  52. package/dist/api/Knowledge.d.ts +5 -5
  53. package/dist/api/Knowledge.js +6 -6
  54. package/dist/api/KnowledgeRoute.d.ts +125 -0
  55. package/dist/api/KnowledgeRoute.js +12 -0
  56. package/dist/api/Page.d.ts +3 -3
  57. package/dist/api/Page.js +4 -4
  58. package/dist/api/PageRoute.d.ts +95 -0
  59. package/dist/api/PageRoute.js +12 -0
  60. package/dist/api/Search.d.ts +3 -3
  61. package/dist/api/Search.js +4 -4
  62. package/dist/api/SearchRoute.d.ts +46 -0
  63. package/dist/api/SearchRoute.js +12 -0
  64. package/dist/api/Setting.d.ts +3 -3
  65. package/dist/api/Setting.js +4 -4
  66. package/dist/api/SettingRoute.d.ts +31 -0
  67. package/dist/api/SettingRoute.js +12 -0
  68. package/dist/api/Smtp.d.ts +1 -1
  69. package/dist/api/Smtp.js +2 -2
  70. package/dist/api/SmtpRoute.d.ts +47 -0
  71. package/dist/api/SmtpRoute.js +12 -0
  72. package/dist/api/Tag.d.ts +3 -3
  73. package/dist/api/Tag.js +4 -4
  74. package/dist/api/TagRoute.d.ts +95 -0
  75. package/dist/api/TagRoute.js +12 -0
  76. package/dist/api/User.d.ts +7 -7
  77. package/dist/api/User.js +8 -8
  78. package/dist/api/UserRoute.d.ts +60 -0
  79. package/dist/api/UserRoute.js +12 -0
  80. package/dist/api/View.d.ts +3 -3
  81. package/dist/api/View.js +4 -4
  82. package/dist/api/ViewRoute.d.ts +77 -0
  83. package/dist/api/ViewRoute.js +12 -0
  84. package/dist/api/httpClient.d.ts +1 -0
  85. package/dist/api/httpClient.js +1 -0
  86. package/dist/api/index.d.ts +5 -5
  87. package/dist/api/index.js +6 -7
  88. package/dist/data-contracts.d.ts +245 -0
  89. package/dist/data-contracts.js +12 -0
  90. package/dist/index.d.ts +5 -9
  91. package/dist/index.js +14 -15
  92. package/dist/utils/common.d.ts +1 -3
  93. package/dist/utils/common.js +5 -31
  94. package/dist/utils/http.js +4 -6
  95. package/package.json +5 -3
  96. package/demos/simple.ts +0 -65
  97. package/scripts/generate-api-types.js +0 -571
  98. package/scripts/generate-swagger.js +0 -47
  99. package/scripts/organize-api.js +0 -136
  100. package/src/api/Article.ts +0 -186
  101. package/src/api/Auth.ts +0 -54
  102. package/src/api/Category.ts +0 -82
  103. package/src/api/Comment.ts +0 -95
  104. package/src/api/File.ts +0 -69
  105. package/src/api/Knowledge.ts +0 -122
  106. package/src/api/Page.ts +0 -95
  107. package/src/api/Search.ts +0 -54
  108. package/src/api/Setting.ts +0 -43
  109. package/src/api/Smtp.ts +0 -56
  110. package/src/api/Tag.ts +0 -95
  111. package/src/api/User.ts +0 -72
  112. package/src/api/View.ts +0 -82
  113. package/src/api/api-instance.ts +0 -69
  114. package/src/api/httpClient.ts +0 -140
  115. package/src/api/index.ts +0 -25
  116. package/src/index.ts +0 -18
  117. package/src/types/data-contracts.ts +0 -198
  118. package/src/types/index.ts +0 -4
  119. package/src/utils/common.ts +0 -108
  120. package/src/utils/http.ts +0 -52
  121. package/src/utils/index.ts +0 -5
  122. package/test-final.js +0 -56
  123. package/test-import.js +0 -34
  124. package/tsconfig.json +0 -20
@@ -1,13 +1,13 @@
1
- import { HttpClient, RequestParams } from './httpClient';
1
+ import { HttpClient, RequestParams } from './HttpClient';
2
2
  export declare class Auth<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
3
3
  /**
4
4
  * No description
5
5
  *
6
6
  * @tags Auth
7
- * @name AuthControllerLogin
7
+ * @name login
8
8
  * @request POST:/auth/login
9
9
  */
10
- authControllerLogin: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
10
+ login: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
11
11
  /**
12
12
  * No description
13
13
  *
@@ -20,8 +20,8 @@ export declare class Auth<SecurityDataType = unknown> extends HttpClient<Securit
20
20
  * No description
21
21
  *
22
22
  * @tags Auth
23
- * @name AuthControllerLoginWithGithub
23
+ * @name loginWithGithub
24
24
  * @request POST:/auth/github
25
25
  */
26
- authControllerLoginWithGithub: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
26
+ loginWithGithub: (params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
27
27
  }
package/dist/api/Auth.js CHANGED
@@ -11,18 +11,18 @@
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Auth = void 0;
14
- const httpClient_1 = require("./httpClient");
15
- class Auth extends httpClient_1.HttpClient {
14
+ const HttpClient_1 = require("./HttpClient");
15
+ class Auth extends HttpClient_1.HttpClient {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  /**
19
19
  * No description
20
20
  *
21
21
  * @tags Auth
22
- * @name AuthControllerLogin
22
+ * @name login
23
23
  * @request POST:/auth/login
24
24
  */
25
- this.authControllerLogin = (params = {}) => this.request({
25
+ this.login = (params = {}) => this.request({
26
26
  path: `/auth/login`,
27
27
  method: 'POST',
28
28
  ...params,
@@ -43,10 +43,10 @@ class Auth extends httpClient_1.HttpClient {
43
43
  * No description
44
44
  *
45
45
  * @tags Auth
46
- * @name AuthControllerLoginWithGithub
46
+ * @name loginWithGithub
47
47
  * @request POST:/auth/github
48
48
  */
49
- this.authControllerLoginWithGithub = (params = {}) => this.request({
49
+ this.loginWithGithub = (params = {}) => this.request({
50
50
  path: `/auth/github`,
51
51
  method: 'POST',
52
52
  ...params,
@@ -0,0 +1,44 @@
1
+ export declare namespace Auth {
2
+ /**
3
+ * No description
4
+ * @tags Auth
5
+ * @name login
6
+ * @request POST:/auth/login
7
+ * @response `200` `void`
8
+ */
9
+ namespace login {
10
+ type RequestParams = {};
11
+ type RequestQuery = {};
12
+ type RequestBody = never;
13
+ type RequestHeaders = {};
14
+ type ResponseBody = void;
15
+ }
16
+ /**
17
+ * No description
18
+ * @tags Auth
19
+ * @name createBook
20
+ * @request POST:/auth/admin
21
+ * @response `201` `void`
22
+ */
23
+ namespace createBook {
24
+ type RequestParams = {};
25
+ type RequestQuery = {};
26
+ type RequestBody = never;
27
+ type RequestHeaders = {};
28
+ type ResponseBody = void;
29
+ }
30
+ /**
31
+ * No description
32
+ * @tags Auth
33
+ * @name loginWithGithub
34
+ * @request POST:/auth/github
35
+ * @response `201` `void`
36
+ */
37
+ namespace loginWithGithub {
38
+ type RequestParams = {};
39
+ type RequestQuery = {};
40
+ type RequestBody = never;
41
+ type RequestHeaders = {};
42
+ type ResponseBody = void;
43
+ }
44
+ }
@@ -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 });
@@ -1,5 +1,5 @@
1
1
  import { ICategory } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './httpClient';
2
+ import { HttpClient, RequestParams } from './HttpClient';
3
3
  export declare class Category<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
5
5
  * No description
@@ -11,8 +11,8 @@
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Category = void 0;
14
- const httpClient_1 = require("./httpClient");
15
- class Category extends httpClient_1.HttpClient {
14
+ const HttpClient_1 = require("./HttpClient");
15
+ class Category extends HttpClient_1.HttpClient {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  /**
@@ -0,0 +1,79 @@
1
+ import { ICategory } from '../types/data-contracts';
2
+ export declare namespace Category {
3
+ /**
4
+ * No description
5
+ * @tags Category
6
+ * @name create
7
+ * @request POST:/category
8
+ * @response `200` `(ICategory)[]` 添加分类
9
+ */
10
+ namespace create {
11
+ type RequestParams = {};
12
+ type RequestQuery = {};
13
+ type RequestBody = never;
14
+ type RequestHeaders = {};
15
+ type ResponseBody = ICategory[];
16
+ }
17
+ /**
18
+ * No description
19
+ * @tags Category
20
+ * @name findAll
21
+ * @request GET:/category
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 Category
34
+ * @name findById
35
+ * @request GET:/category/{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 Category
50
+ * @name updateById
51
+ * @request PATCH:/category/{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 Category
66
+ * @name deleteById
67
+ * @request DELETE:/category/{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
+ }
@@ -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 });
@@ -1,5 +1,5 @@
1
1
  import { IComment } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './httpClient';
2
+ import { HttpClient, RequestParams } from './HttpClient';
3
3
  export declare class Comment<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
5
5
  * No description
@@ -45,8 +45,8 @@ export declare class Comment<SecurityDataType = unknown> extends HttpClient<Secu
45
45
  * No description
46
46
  *
47
47
  * @tags Comment
48
- * @name CommentControllerGetArticleComments
48
+ * @name getArticleComments
49
49
  * @request GET:/comment/host/{hostId}
50
50
  */
51
- commentControllerGetArticleComments: (hostId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
51
+ getArticleComments: (hostId: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
52
52
  }
@@ -11,8 +11,8 @@
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Comment = void 0;
14
- const httpClient_1 = require("./httpClient");
15
- class Comment extends httpClient_1.HttpClient {
14
+ const HttpClient_1 = require("./HttpClient");
15
+ class Comment extends HttpClient_1.HttpClient {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  /**
@@ -80,10 +80,10 @@ class Comment extends httpClient_1.HttpClient {
80
80
  * No description
81
81
  *
82
82
  * @tags Comment
83
- * @name CommentControllerGetArticleComments
83
+ * @name getArticleComments
84
84
  * @request GET:/comment/host/{hostId}
85
85
  */
86
- this.commentControllerGetArticleComments = (hostId, params = {}) => this.request({
86
+ this.getArticleComments = (hostId, params = {}) => this.request({
87
87
  path: `/comment/host/${hostId}`,
88
88
  method: 'GET',
89
89
  ...params,
@@ -0,0 +1,95 @@
1
+ import { IComment } from '../types/data-contracts';
2
+ export declare namespace Comment {
3
+ /**
4
+ * No description
5
+ * @tags Comment
6
+ * @name create
7
+ * @request POST:/comment
8
+ * @response `200` `(IComment)[]` 创建评论
9
+ */
10
+ namespace create {
11
+ type RequestParams = {};
12
+ type RequestQuery = {};
13
+ type RequestBody = never;
14
+ type RequestHeaders = {};
15
+ type ResponseBody = IComment[];
16
+ }
17
+ /**
18
+ * No description
19
+ * @tags Comment
20
+ * @name findAll
21
+ * @request GET:/comment
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 Comment
34
+ * @name findById
35
+ * @request GET:/comment/{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 Comment
50
+ * @name updateById
51
+ * @request PATCH:/comment/{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 Comment
66
+ * @name deleteById
67
+ * @request DELETE:/comment/{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 Comment
82
+ * @name getArticleComments
83
+ * @request GET:/comment/host/{hostId}
84
+ * @response `200` `void`
85
+ */
86
+ namespace getArticleComments {
87
+ type RequestParams = {
88
+ hostId: 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 });
@@ -1,14 +1,14 @@
1
1
  import { IFile } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './httpClient';
2
+ import { HttpClient, RequestParams } from './HttpClient';
3
3
  export declare class File<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
5
5
  * No description
6
6
  *
7
7
  * @tags File
8
- * @name FileControllerUploadFile
8
+ * @name uploadFile
9
9
  * @request POST:/file/upload
10
10
  */
11
- fileControllerUploadFile: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IFile[], any, {}>>;
11
+ uploadFile: (params?: RequestParams) => Promise<import("axios").AxiosResponse<IFile[], any, {}>>;
12
12
  /**
13
13
  * No description
14
14
  *
package/dist/api/File.js CHANGED
@@ -11,18 +11,18 @@
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.File = void 0;
14
- const httpClient_1 = require("./httpClient");
15
- class File extends httpClient_1.HttpClient {
14
+ const HttpClient_1 = require("./HttpClient");
15
+ class File extends HttpClient_1.HttpClient {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  /**
19
19
  * No description
20
20
  *
21
21
  * @tags File
22
- * @name FileControllerUploadFile
22
+ * @name uploadFile
23
23
  * @request POST:/file/upload
24
24
  */
25
- this.fileControllerUploadFile = (params = {}) => this.request({
25
+ this.uploadFile = (params = {}) => this.request({
26
26
  path: `/file/upload`,
27
27
  method: 'POST',
28
28
  format: 'json',
@@ -0,0 +1,63 @@
1
+ import { IFile } from '../types/data-contracts';
2
+ export declare namespace File {
3
+ /**
4
+ * No description
5
+ * @tags File
6
+ * @name uploadFile
7
+ * @request POST:/file/upload
8
+ * @response `200` `(IFile)[]` 上传文件
9
+ */
10
+ namespace uploadFile {
11
+ type RequestParams = {};
12
+ type RequestQuery = {};
13
+ type RequestBody = never;
14
+ type RequestHeaders = {};
15
+ type ResponseBody = IFile[];
16
+ }
17
+ /**
18
+ * No description
19
+ * @tags File
20
+ * @name findAll
21
+ * @request GET:/file
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 File
34
+ * @name findById
35
+ * @request GET:/file/{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 File
50
+ * @name deleteById
51
+ * @request DELETE:/file/{id}
52
+ * @response `200` `void`
53
+ */
54
+ namespace deleteById {
55
+ type RequestParams = {
56
+ id: string;
57
+ };
58
+ type RequestQuery = {};
59
+ type RequestBody = never;
60
+ type RequestHeaders = {};
61
+ type ResponseBody = void;
62
+ }
63
+ }
@@ -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 });
@@ -1,5 +1,5 @@
1
1
  import { IKnowledge } from '../types/data-contracts';
2
- import { HttpClient, RequestParams } from './httpClient';
2
+ import { HttpClient, RequestParams } from './HttpClient';
3
3
  export declare class Knowledge<SecurityDataType = unknown> extends HttpClient<SecurityDataType> {
4
4
  /**
5
5
  * No description
@@ -53,16 +53,16 @@ export declare class Knowledge<SecurityDataType = unknown> extends HttpClient<Se
53
53
  * No description
54
54
  *
55
55
  * @tags Knowledge
56
- * @name updateViews
56
+ * @name updateViewsById
57
57
  * @request POST:/Knowledge/{id}/views
58
58
  */
59
- updateViews: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
59
+ updateViewsById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
60
60
  /**
61
61
  * No description
62
62
  *
63
63
  * @tags Knowledge
64
- * @name updateLikes
64
+ * @name updateLikesById
65
65
  * @request POST:/Knowledge/{id}/likes
66
66
  */
67
- updateLikes: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
67
+ updateLikesById: (id: string, params?: RequestParams) => Promise<import("axios").AxiosResponse<void, any, {}>>;
68
68
  }
@@ -11,8 +11,8 @@
11
11
  */
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
13
  exports.Knowledge = void 0;
14
- const httpClient_1 = require("./httpClient");
15
- class Knowledge extends httpClient_1.HttpClient {
14
+ const HttpClient_1 = require("./HttpClient");
15
+ class Knowledge extends HttpClient_1.HttpClient {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  /**
@@ -93,10 +93,10 @@ class Knowledge extends httpClient_1.HttpClient {
93
93
  * No description
94
94
  *
95
95
  * @tags Knowledge
96
- * @name updateViews
96
+ * @name updateViewsById
97
97
  * @request POST:/Knowledge/{id}/views
98
98
  */
99
- this.updateViews = (id, params = {}) => this.request({
99
+ this.updateViewsById = (id, params = {}) => this.request({
100
100
  path: `/Knowledge/${id}/views`,
101
101
  method: 'POST',
102
102
  ...params,
@@ -105,10 +105,10 @@ class Knowledge extends httpClient_1.HttpClient {
105
105
  * No description
106
106
  *
107
107
  * @tags Knowledge
108
- * @name updateLikes
108
+ * @name updateLikesById
109
109
  * @request POST:/Knowledge/{id}/likes
110
110
  */
111
- this.updateLikes = (id, params = {}) => this.request({
111
+ this.updateLikesById = (id, params = {}) => this.request({
112
112
  path: `/Knowledge/${id}/likes`,
113
113
  method: 'POST',
114
114
  ...params,