@fecommunity/reactpress-toolkit 1.0.0-beta.1 → 1.0.0

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 (130) hide show
  1. package/README.md +405 -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 +44 -29
  33. package/dist/api/Article.js +42 -31
  34. package/dist/api/ArticleRoute.d.ts +201 -0
  35. package/dist/api/ArticleRoute.js +12 -0
  36. package/dist/api/Auth.d.ts +11 -6
  37. package/dist/api/Auth.js +10 -8
  38. package/dist/api/AuthRoute.d.ts +44 -0
  39. package/dist/api/AuthRoute.js +12 -0
  40. package/dist/api/Category.d.ts +20 -13
  41. package/dist/api/Category.js +18 -15
  42. package/dist/api/CategoryRoute.d.ts +79 -0
  43. package/dist/api/CategoryRoute.js +12 -0
  44. package/dist/api/Comment.d.ts +22 -14
  45. package/dist/api/Comment.js +20 -16
  46. package/dist/api/CommentRoute.d.ts +95 -0
  47. package/dist/api/CommentRoute.js +12 -0
  48. package/dist/api/File.d.ts +16 -10
  49. package/dist/api/File.js +14 -12
  50. package/dist/api/FileRoute.d.ts +63 -0
  51. package/dist/api/FileRoute.js +12 -0
  52. package/dist/api/Knowledge.d.ts +29 -19
  53. package/dist/api/Knowledge.js +27 -22
  54. package/dist/api/KnowledgeRoute.d.ts +125 -0
  55. package/dist/api/KnowledgeRoute.js +12 -0
  56. package/dist/api/Page.d.ts +23 -15
  57. package/dist/api/Page.js +21 -17
  58. package/dist/api/PageRoute.d.ts +95 -0
  59. package/dist/api/PageRoute.js +12 -0
  60. package/dist/api/Search.d.ts +12 -7
  61. package/dist/api/Search.js +11 -9
  62. package/dist/api/SearchRoute.d.ts +46 -0
  63. package/dist/api/SearchRoute.js +12 -0
  64. package/dist/api/Setting.d.ts +10 -6
  65. package/dist/api/Setting.js +8 -8
  66. package/dist/api/SettingRoute.d.ts +31 -0
  67. package/dist/api/SettingRoute.js +12 -0
  68. package/dist/api/Smtp.d.ts +14 -9
  69. package/dist/api/Smtp.js +12 -11
  70. package/dist/api/SmtpRoute.d.ts +47 -0
  71. package/dist/api/SmtpRoute.js +12 -0
  72. package/dist/api/Tag.d.ts +22 -14
  73. package/dist/api/Tag.js +20 -16
  74. package/dist/api/TagRoute.d.ts +95 -0
  75. package/dist/api/TagRoute.js +12 -0
  76. package/dist/api/User.d.ts +15 -8
  77. package/dist/api/User.js +13 -13
  78. package/dist/api/UserRoute.d.ts +60 -0
  79. package/dist/api/UserRoute.js +12 -0
  80. package/dist/api/View.d.ts +19 -12
  81. package/dist/api/View.js +17 -14
  82. package/dist/api/ViewRoute.d.ts +77 -0
  83. package/dist/api/ViewRoute.js +12 -0
  84. package/dist/api/httpClient.d.ts +5 -5
  85. package/dist/api/httpClient.js +4 -2
  86. package/dist/api/index.d.ts +13 -18
  87. package/dist/api/index.js +28 -41
  88. package/dist/api/instance.d.ts +47 -0
  89. package/dist/api/instance.js +71 -0
  90. package/dist/data-contracts.d.ts +245 -0
  91. package/dist/data-contracts.js +12 -0
  92. package/dist/index.d.ts +5 -9
  93. package/dist/index.js +16 -21
  94. package/dist/types/index.d.ts +245 -1
  95. package/dist/types/index.js +10 -17
  96. package/dist/utils/common.d.ts +1 -3
  97. package/dist/utils/common.js +5 -31
  98. package/dist/utils/http.js +4 -6
  99. package/dist/utils/index.d.ts +33 -2
  100. package/dist/utils/index.js +57 -18
  101. package/package.json +11 -6
  102. package/demos/simple.ts +0 -65
  103. package/scripts/generate-api-types.js +0 -571
  104. package/scripts/generate-swagger.js +0 -47
  105. package/scripts/organize-api.js +0 -136
  106. package/src/api/Article.ts +0 -186
  107. package/src/api/Auth.ts +0 -54
  108. package/src/api/Category.ts +0 -82
  109. package/src/api/Comment.ts +0 -95
  110. package/src/api/File.ts +0 -69
  111. package/src/api/Knowledge.ts +0 -122
  112. package/src/api/Page.ts +0 -95
  113. package/src/api/Search.ts +0 -54
  114. package/src/api/Setting.ts +0 -43
  115. package/src/api/Smtp.ts +0 -56
  116. package/src/api/Tag.ts +0 -95
  117. package/src/api/User.ts +0 -72
  118. package/src/api/View.ts +0 -82
  119. package/src/api/api-instance.ts +0 -69
  120. package/src/api/httpClient.ts +0 -140
  121. package/src/api/index.ts +0 -25
  122. package/src/index.ts +0 -18
  123. package/src/types/data-contracts.ts +0 -198
  124. package/src/types/index.ts +0 -4
  125. package/src/utils/common.ts +0 -108
  126. package/src/utils/http.ts +0 -52
  127. package/src/utils/index.ts +0 -5
  128. package/test-final.js +0 -56
  129. package/test-import.js +0 -34
  130. package/tsconfig.json +0 -20
package/dist/api/index.js CHANGED
@@ -1,43 +1,30 @@
1
1
  "use strict";
2
- // API 客户端索引
3
- // 自动生成,请勿手动修改
4
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
- if (k2 === undefined) k2 = k;
6
- var desc = Object.getOwnPropertyDescriptor(m, k);
7
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
- desc = { enumerable: true, get: function() { return m[k]; } };
9
- }
10
- Object.defineProperty(o, k2, desc);
11
- }) : (function(o, m, k, k2) {
12
- if (k2 === undefined) k2 = k;
13
- o[k2] = m[k];
14
- }));
15
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
- };
18
- var __importDefault = (this && this.__importDefault) || function (mod) {
19
- return (mod && mod.__esModule) ? mod : { "default": mod };
20
- };
2
+ // Auto-generated API module index
21
3
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.api = exports.HttpClient = void 0;
23
- __exportStar(require("./Article"), exports);
24
- __exportStar(require("./Auth"), exports);
25
- __exportStar(require("./Category"), exports);
26
- __exportStar(require("./Comment"), exports);
27
- __exportStar(require("./File"), exports);
28
- __exportStar(require("./Knowledge"), exports);
29
- __exportStar(require("./Page"), exports);
30
- __exportStar(require("./Search"), exports);
31
- __exportStar(require("./Setting"), exports);
32
- __exportStar(require("./Smtp"), exports);
33
- __exportStar(require("./Tag"), exports);
34
- __exportStar(require("./User"), exports);
35
- __exportStar(require("./View"), exports);
36
- __exportStar(require("./httpClient"), exports);
37
- // 导出HttpClient类而不是默认导出
38
- var httpClient_1 = require("./httpClient");
39
- Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return httpClient_1.HttpClient; } });
40
- // API 实例化
41
- __exportStar(require("./api-instance"), exports);
42
- var api_instance_1 = require("./api-instance");
43
- Object.defineProperty(exports, "api", { enumerable: true, get: function () { return __importDefault(api_instance_1).default; } });
4
+ exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = void 0;
5
+ var Article_1 = require("./Article");
6
+ Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
7
+ var Auth_1 = require("./Auth");
8
+ Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
9
+ var Category_1 = require("./Category");
10
+ Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
11
+ var Comment_1 = require("./Comment");
12
+ Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
13
+ var File_1 = require("./File");
14
+ Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
15
+ var Knowledge_1 = require("./Knowledge");
16
+ Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
17
+ var Page_1 = require("./Page");
18
+ Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
19
+ var Search_1 = require("./Search");
20
+ Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
21
+ var Setting_1 = require("./Setting");
22
+ Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
23
+ var Smtp_1 = require("./Smtp");
24
+ Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
25
+ var Tag_1 = require("./Tag");
26
+ Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
27
+ var User_1 = require("./User");
28
+ Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
29
+ var View_1 = require("./View");
30
+ Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
@@ -0,0 +1,47 @@
1
+ import { HttpClient } from './HttpClient';
2
+ import { Article } from './Article';
3
+ import { Auth } from './Auth';
4
+ import { Category } from './Category';
5
+ import { Comment } from './Comment';
6
+ import { File } from './File';
7
+ import { Knowledge } from './Knowledge';
8
+ import { Page } from './Page';
9
+ import { Search } from './Search';
10
+ import { Setting } from './Setting';
11
+ import { Smtp } from './Smtp';
12
+ import { Tag } from './Tag';
13
+ import { User } from './User';
14
+ import { View } from './View';
15
+ export declare const http: HttpClient<unknown>;
16
+ export declare const api: {
17
+ article: Article<unknown>;
18
+ auth: Auth<unknown>;
19
+ category: Category<unknown>;
20
+ comment: Comment<unknown>;
21
+ file: File<unknown>;
22
+ knowledge: Knowledge<unknown>;
23
+ page: Page<unknown>;
24
+ search: Search<unknown>;
25
+ setting: Setting<unknown>;
26
+ smtp: Smtp<unknown>;
27
+ tag: Tag<unknown>;
28
+ user: User<unknown>;
29
+ view: View<unknown>;
30
+ };
31
+ export declare function createApiInstance(config: any): {
32
+ article: Article<unknown>;
33
+ auth: Auth<unknown>;
34
+ category: Category<unknown>;
35
+ comment: Comment<unknown>;
36
+ file: File<unknown>;
37
+ knowledge: Knowledge<unknown>;
38
+ page: Page<unknown>;
39
+ search: Search<unknown>;
40
+ setting: Setting<unknown>;
41
+ smtp: Smtp<unknown>;
42
+ tag: Tag<unknown>;
43
+ user: User<unknown>;
44
+ view: View<unknown>;
45
+ };
46
+ export default api;
47
+ export { Article, Auth, Category, Comment, File, Knowledge, Page, Search, Setting, Smtp, Tag, User, View, };
@@ -0,0 +1,71 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.View = exports.User = exports.Tag = exports.Smtp = exports.Setting = exports.Search = exports.Page = exports.Knowledge = exports.File = exports.Comment = exports.Category = exports.Auth = exports.Article = exports.createApiInstance = exports.api = exports.http = void 0;
4
+ const HttpClient_1 = require("./HttpClient");
5
+ // Auto-generated API instance
6
+ const Article_1 = require("./Article");
7
+ Object.defineProperty(exports, "Article", { enumerable: true, get: function () { return Article_1.Article; } });
8
+ const Auth_1 = require("./Auth");
9
+ Object.defineProperty(exports, "Auth", { enumerable: true, get: function () { return Auth_1.Auth; } });
10
+ const Category_1 = require("./Category");
11
+ Object.defineProperty(exports, "Category", { enumerable: true, get: function () { return Category_1.Category; } });
12
+ const Comment_1 = require("./Comment");
13
+ Object.defineProperty(exports, "Comment", { enumerable: true, get: function () { return Comment_1.Comment; } });
14
+ const File_1 = require("./File");
15
+ Object.defineProperty(exports, "File", { enumerable: true, get: function () { return File_1.File; } });
16
+ const Knowledge_1 = require("./Knowledge");
17
+ Object.defineProperty(exports, "Knowledge", { enumerable: true, get: function () { return Knowledge_1.Knowledge; } });
18
+ const Page_1 = require("./Page");
19
+ Object.defineProperty(exports, "Page", { enumerable: true, get: function () { return Page_1.Page; } });
20
+ const Search_1 = require("./Search");
21
+ Object.defineProperty(exports, "Search", { enumerable: true, get: function () { return Search_1.Search; } });
22
+ const Setting_1 = require("./Setting");
23
+ Object.defineProperty(exports, "Setting", { enumerable: true, get: function () { return Setting_1.Setting; } });
24
+ const Smtp_1 = require("./Smtp");
25
+ Object.defineProperty(exports, "Smtp", { enumerable: true, get: function () { return Smtp_1.Smtp; } });
26
+ const Tag_1 = require("./Tag");
27
+ Object.defineProperty(exports, "Tag", { enumerable: true, get: function () { return Tag_1.Tag; } });
28
+ const User_1 = require("./User");
29
+ Object.defineProperty(exports, "User", { enumerable: true, get: function () { return User_1.User; } });
30
+ const View_1 = require("./View");
31
+ Object.defineProperty(exports, "View", { enumerable: true, get: function () { return View_1.View; } });
32
+ // Create default HTTP client
33
+ exports.http = new HttpClient_1.HttpClient();
34
+ // Create API instance with all modules
35
+ exports.api = {
36
+ article: new Article_1.Article(exports.http),
37
+ auth: new Auth_1.Auth(exports.http),
38
+ category: new Category_1.Category(exports.http),
39
+ comment: new Comment_1.Comment(exports.http),
40
+ file: new File_1.File(exports.http),
41
+ knowledge: new Knowledge_1.Knowledge(exports.http),
42
+ page: new Page_1.Page(exports.http),
43
+ search: new Search_1.Search(exports.http),
44
+ setting: new Setting_1.Setting(exports.http),
45
+ smtp: new Smtp_1.Smtp(exports.http),
46
+ tag: new Tag_1.Tag(exports.http),
47
+ user: new User_1.User(exports.http),
48
+ view: new View_1.View(exports.http),
49
+ };
50
+ // Create custom API instance function
51
+ function createApiInstance(config) {
52
+ const customHttp = new HttpClient_1.HttpClient(config);
53
+ return {
54
+ article: new Article_1.Article(customHttp),
55
+ auth: new Auth_1.Auth(customHttp),
56
+ category: new Category_1.Category(customHttp),
57
+ comment: new Comment_1.Comment(customHttp),
58
+ file: new File_1.File(customHttp),
59
+ knowledge: new Knowledge_1.Knowledge(customHttp),
60
+ page: new Page_1.Page(customHttp),
61
+ search: new Search_1.Search(customHttp),
62
+ setting: new Setting_1.Setting(customHttp),
63
+ smtp: new Smtp_1.Smtp(customHttp),
64
+ tag: new Tag_1.Tag(customHttp),
65
+ user: new User_1.User(customHttp),
66
+ view: new View_1.View(customHttp),
67
+ };
68
+ }
69
+ exports.createApiInstance = createApiInstance;
70
+ // Export default API instance
71
+ exports.default = exports.api;
@@ -0,0 +1,245 @@
1
+ export interface IUser {
2
+ name: string;
3
+ password: string;
4
+ avatar: string;
5
+ email: string;
6
+ role: string;
7
+ status: string;
8
+ type: string;
9
+ /** @format date-time */
10
+ createAt: string;
11
+ /** @format date-time */
12
+ updateAt: string;
13
+ }
14
+ export interface ISetting {
15
+ id: string;
16
+ i18n: string;
17
+ globalSetting: string;
18
+ systemUrl: string;
19
+ systemTitle: string;
20
+ systemSubTitle: string;
21
+ systemLogo: string;
22
+ systemBg: string;
23
+ systemFavicon: string;
24
+ systemNoticeInfo: string;
25
+ systemFooterInfo: string;
26
+ adminSystemUrl: string;
27
+ baiduAnalyticsId: string;
28
+ googleAnalyticsId: string;
29
+ seoKeyword: string;
30
+ seoDesc: string;
31
+ oss: string;
32
+ smtpHost: string;
33
+ smtpPort: string;
34
+ smtpUser: string;
35
+ smtpPass: string;
36
+ smtpFromUser: string;
37
+ /** @format date-time */
38
+ createAt: string;
39
+ /** @format date-time */
40
+ updateAt: string;
41
+ }
42
+ export interface I_SMTP {
43
+ id: string;
44
+ from: string;
45
+ to: string;
46
+ subject: string;
47
+ text: string;
48
+ html: string;
49
+ /** @format date-time */
50
+ createAt: string;
51
+ }
52
+ export interface IFile {
53
+ id: string;
54
+ originalname: string;
55
+ filename: string;
56
+ type: string;
57
+ size: number;
58
+ url: string;
59
+ /** @format date-time */
60
+ createAt: string;
61
+ }
62
+ export interface ITag {
63
+ label: string;
64
+ value: string;
65
+ articles: string[];
66
+ /** @format date-time */
67
+ createAt: string;
68
+ /** @format date-time */
69
+ updateAt: string;
70
+ }
71
+ export interface ICategory {
72
+ id: string;
73
+ label: string;
74
+ value: string;
75
+ articles: string[];
76
+ /** @format date-time */
77
+ createAt: string;
78
+ /** @format date-time */
79
+ updateAt: string;
80
+ }
81
+ export interface IArticle {
82
+ id: string;
83
+ title: string;
84
+ cover: string;
85
+ summary: string;
86
+ content: string;
87
+ html: string;
88
+ toc: string;
89
+ category: ICategory;
90
+ tags: string[];
91
+ status: string;
92
+ views: number;
93
+ likes: number;
94
+ isRecommended: boolean;
95
+ password: string;
96
+ needPassword: boolean;
97
+ isCommentable: boolean;
98
+ /** @format date-time */
99
+ publishAt: string;
100
+ /** @format date-time */
101
+ createAt: string;
102
+ /** @format date-time */
103
+ updateAt: string;
104
+ }
105
+ export interface IKnowledge {
106
+ id: string;
107
+ parentId: string;
108
+ order: number;
109
+ title: string;
110
+ cover: string;
111
+ summary: string;
112
+ content: string;
113
+ html: string;
114
+ toc: string;
115
+ status: string;
116
+ views: number;
117
+ likes: number;
118
+ isCommentable: boolean;
119
+ /** @format date-time */
120
+ publishAt: string;
121
+ /** @format date-time */
122
+ createAt: string;
123
+ /** @format date-time */
124
+ updateAt: string;
125
+ }
126
+ export interface IComment {
127
+ id: string;
128
+ name: string;
129
+ email: string;
130
+ avatar: string;
131
+ content: string;
132
+ html: string;
133
+ pass: boolean;
134
+ userAgent: string;
135
+ hostId: string;
136
+ url: string;
137
+ parentCommentId: string;
138
+ replyUserName: string;
139
+ replyUserEmail: string;
140
+ /** @format date-time */
141
+ createAt: string;
142
+ /** @format date-time */
143
+ updateAt: string;
144
+ }
145
+ export interface IPage {
146
+ id: string;
147
+ cover: string;
148
+ name: string;
149
+ path: string;
150
+ order: number;
151
+ content: string;
152
+ html: string;
153
+ toc: string;
154
+ status: string;
155
+ /** @format date-time */
156
+ publishAt: string;
157
+ views: number;
158
+ /** @format date-time */
159
+ createAt: string;
160
+ /** @format date-time */
161
+ updateAt: string;
162
+ }
163
+ export interface IView {
164
+ ip: string;
165
+ userAgent: string;
166
+ url: string;
167
+ count: number;
168
+ address: string;
169
+ browser: string;
170
+ engine: string;
171
+ os: string;
172
+ device: string;
173
+ /** @format date-time */
174
+ createAt: string;
175
+ /** @format date-time */
176
+ updateAt: string;
177
+ }
178
+ export declare type IUserControllerFindAllData = IUser[];
179
+ export declare type IUserControllerRegisterData = IUser[];
180
+ export declare type IUserControllerUpdateData = IUser[];
181
+ export declare type IUserControllerUpdatePasswordData = IUser[];
182
+ export declare type IAuthControllerLoginData = any;
183
+ export declare type IAuthControllerCreateBookData = any;
184
+ export declare type IAuthControllerLoginWithGithubData = any;
185
+ export declare type ISettingControllerUpdateData = ISetting[];
186
+ export declare type ISettingControllerFindAllData = any;
187
+ export declare type ISmtpControllerCreateData = I_SMTP[];
188
+ export declare type ISmtpControllerFindAllData = any;
189
+ export declare type ISmtpControllerDeleteByIdData = any;
190
+ export declare type IFileControllerUploadFileData = IFile[];
191
+ export declare type IFileControllerFindAllData = any;
192
+ export declare type IFileControllerFindByIdData = any;
193
+ export declare type IFileControllerDeleteByIdData = any;
194
+ export declare type ITagControllerCreateData = ITag[];
195
+ export declare type ITagControllerFindAllData = any;
196
+ export declare type ITagControllerFindByIdData = any;
197
+ export declare type ITagControllerUpdateByIdData = any;
198
+ export declare type ITagControllerDeleteByIdData = any;
199
+ export declare type ITagControllerGetArticleByIdData = any;
200
+ export declare type IArticleControllerCreateData = IArticle[];
201
+ export declare type IArticleControllerFindAllData = any;
202
+ export declare type IArticleControllerFindArticlesByCategoryData = any;
203
+ export declare type IArticleControllerFindArticlesByTagData = any;
204
+ export declare type IArticleControllerGetRecommendArticlesData = any;
205
+ export declare type IArticleControllerGetArchivesData = any;
206
+ export declare type IArticleControllerRecommendData = any;
207
+ export declare type IArticleControllerFindByIdData = any;
208
+ export declare type IArticleControllerUpdateByIdData = any;
209
+ export declare type IArticleControllerDeleteByIdData = any;
210
+ export declare type IArticleControllerCheckPasswordData = any;
211
+ export declare type IArticleControllerUpdateViewsByIdData = any;
212
+ export declare type IArticleControllerUpdateLikesByIdData = any;
213
+ export declare type ICategoryControllerCreateData = ICategory[];
214
+ export declare type ICategoryControllerFindAllData = any;
215
+ export declare type ICategoryControllerFindByIdData = any;
216
+ export declare type ICategoryControllerUpdateByIdData = any;
217
+ export declare type ICategoryControllerDeleteByIdData = any;
218
+ export declare type IKnowledgeControllerCreateBookData = IKnowledge[];
219
+ export declare type IKnowledgeControllerCreateChapterData = IKnowledge[];
220
+ export declare type IKnowledgeControllerDeleteByIdData = any;
221
+ export declare type IKnowledgeControllerUpdateByIdData = any;
222
+ export declare type IKnowledgeControllerFindByIdData = any;
223
+ export declare type IKnowledgeControllerFindAllData = any;
224
+ export declare type IKnowledgeControllerUpdateViewsByIdData = any;
225
+ export declare type IKnowledgeControllerUpdateLikesByIdData = any;
226
+ export declare type ICommentControllerCreateData = IComment[];
227
+ export declare type ICommentControllerFindAllData = any;
228
+ export declare type ICommentControllerFindByIdData = any;
229
+ export declare type ICommentControllerUpdateByIdData = any;
230
+ export declare type ICommentControllerDeleteByIdData = any;
231
+ export declare type ICommentControllerGetArticleCommentsData = any;
232
+ export declare type IPageControllerCreateData = IPage[];
233
+ export declare type IPageControllerFindAllData = any;
234
+ export declare type IPageControllerFindByIdData = any;
235
+ export declare type IPageControllerUpdateByIdData = any;
236
+ export declare type IPageControllerDeleteByIdData = any;
237
+ export declare type IPageControllerUpdateViewsByIdData = any;
238
+ export declare type IViewControllerCreateData = IView[];
239
+ export declare type IViewControllerFindAllData = any;
240
+ export declare type IViewControllerFindByUrlData = any;
241
+ export declare type IViewControllerFindByIdData = any;
242
+ export declare type IViewControllerDeleteByIdData = any;
243
+ export declare type ISearchControllerSearchArticleData = any;
244
+ export declare type ISearchControllerFindAllData = any;
245
+ export declare type ISearchControllerDeleteByIdData = any;
@@ -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/index.d.ts CHANGED
@@ -1,9 +1,5 @@
1
- import * as api from './api';
2
- import * as types from './types';
3
- import * as utils from './utils';
4
- import apiInstance from './api/api-instance';
5
- export { api, types, utils };
6
- export { apiInstance as default };
7
- export * from './api';
8
- export * from './types';
9
- export * from './utils';
1
+ export { api, http, createApiInstance } from './api/instance';
2
+ export { HttpClient } from './api/HttpClient';
3
+ export * as utils from './utils';
4
+ export * as types from './types';
5
+ export { api as default } from './api/instance';
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
1
  "use strict";
2
- // Auto-generated API client
3
- // Generated from Swagger/OpenAPI specification
2
+ // Main index file for ReactPress Toolkit
4
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
4
  if (k2 === undefined) k2 = k;
6
5
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -24,23 +23,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
23
  __setModuleDefault(result, mod);
25
24
  return result;
26
25
  };
27
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
29
- };
30
- var __importDefault = (this && this.__importDefault) || function (mod) {
31
- return (mod && mod.__esModule) ? mod : { "default": mod };
32
- };
33
26
  Object.defineProperty(exports, "__esModule", { value: true });
34
- exports.default = exports.utils = exports.types = exports.api = void 0;
35
- const api = __importStar(require("./api"));
36
- exports.api = api;
37
- const types = __importStar(require("./types"));
38
- exports.types = types;
39
- const utils = __importStar(require("./utils"));
40
- exports.utils = utils;
41
- const api_instance_1 = __importDefault(require("./api/api-instance"));
42
- exports.default = api_instance_1.default;
43
- // Also export individual items for backward compatibility
44
- __exportStar(require("./api"), exports);
45
- __exportStar(require("./types"), exports);
46
- __exportStar(require("./utils"), exports);
27
+ exports.default = exports.types = exports.utils = exports.HttpClient = exports.createApiInstance = exports.http = exports.api = void 0;
28
+ // Export API instance and HTTP client
29
+ var instance_1 = require("./api/instance");
30
+ Object.defineProperty(exports, "api", { enumerable: true, get: function () { return instance_1.api; } });
31
+ Object.defineProperty(exports, "http", { enumerable: true, get: function () { return instance_1.http; } });
32
+ Object.defineProperty(exports, "createApiInstance", { enumerable: true, get: function () { return instance_1.createApiInstance; } });
33
+ var HttpClient_1 = require("./api/HttpClient");
34
+ Object.defineProperty(exports, "HttpClient", { enumerable: true, get: function () { return HttpClient_1.HttpClient; } });
35
+ // Export utility functions
36
+ exports.utils = __importStar(require("./utils"));
37
+ // Re-export types for convenience
38
+ exports.types = __importStar(require("./types"));
39
+ // Export default API instance
40
+ var instance_2 = require("./api/instance");
41
+ Object.defineProperty(exports, "default", { enumerable: true, get: function () { return instance_2.api; } });