@mx-space/api-client 0.9.2 → 0.10.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 (186) hide show
  1. package/adaptors/axios.ts +3 -2
  2. package/adaptors/umi-request.ts +3 -2
  3. package/build/index.cjs.js +30 -8
  4. package/build/index.cjs.js.map +1 -1
  5. package/build/index.cjs.min.js +1 -1
  6. package/build/index.cjs.min.js.map +1 -1
  7. package/build/index.esm.js +30 -9
  8. package/build/index.esm.js.map +1 -1
  9. package/build/index.esm.min.js +1 -1
  10. package/build/index.esm.min.js.map +1 -1
  11. package/build/index.umd.js +30 -8
  12. package/build/index.umd.js.map +1 -1
  13. package/build/index.umd.min.js +1 -1
  14. package/build/index.umd.min.js.map +1 -1
  15. package/controllers/aggregate.ts +6 -6
  16. package/controllers/base.ts +3 -3
  17. package/controllers/category.ts +7 -7
  18. package/controllers/comment.ts +8 -8
  19. package/controllers/index.ts +3 -0
  20. package/controllers/link.ts +3 -3
  21. package/controllers/note.ts +37 -11
  22. package/controllers/page.ts +7 -7
  23. package/controllers/post.ts +7 -7
  24. package/controllers/project.ts +3 -3
  25. package/controllers/recently.ts +5 -5
  26. package/controllers/say.ts +5 -5
  27. package/controllers/search.ts +8 -8
  28. package/controllers/severless.ts +4 -4
  29. package/controllers/snippet.ts +4 -4
  30. package/controllers/topic.ts +39 -0
  31. package/controllers/user.ts +5 -5
  32. package/core/client.ts +8 -8
  33. package/esm/adaptors/axios.d.ts +2 -2
  34. package/esm/adaptors/axios.js.map +1 -1
  35. package/esm/adaptors/umi-request.d.ts +2 -2
  36. package/esm/adaptors/umi-request.js.map +1 -1
  37. package/esm/controllers/aggregate.d.ts +6 -6
  38. package/esm/controllers/base.d.ts +3 -3
  39. package/esm/controllers/category.d.ts +7 -6
  40. package/esm/controllers/category.js +1 -1
  41. package/esm/controllers/category.js.map +1 -1
  42. package/esm/controllers/comment.d.ts +8 -8
  43. package/esm/controllers/index.d.ts +3 -2
  44. package/esm/controllers/index.js +3 -1
  45. package/esm/controllers/index.js.map +1 -1
  46. package/esm/controllers/link.d.ts +3 -3
  47. package/esm/controllers/note.d.ts +28 -20
  48. package/esm/controllers/note.js +12 -8
  49. package/esm/controllers/note.js.map +1 -1
  50. package/esm/controllers/page.d.ts +7 -7
  51. package/esm/controllers/post.d.ts +7 -7
  52. package/esm/controllers/project.d.ts +3 -3
  53. package/esm/controllers/recently.d.ts +5 -5
  54. package/esm/controllers/say.d.ts +5 -5
  55. package/esm/controllers/search.d.ts +8 -8
  56. package/esm/controllers/severless.d.ts +4 -4
  57. package/esm/controllers/snippet.d.ts +4 -4
  58. package/esm/controllers/topic.d.ts +27 -0
  59. package/esm/controllers/topic.js +18 -0
  60. package/esm/controllers/topic.js.map +1 -0
  61. package/esm/controllers/user.d.ts +5 -5
  62. package/esm/core/client.d.ts +7 -7
  63. package/esm/core/client.js.map +1 -1
  64. package/esm/interfaces/adapter.d.ts +1 -1
  65. package/esm/interfaces/client.d.ts +2 -2
  66. package/esm/models/aggregate.d.ts +7 -7
  67. package/esm/models/base.d.ts +1 -0
  68. package/esm/models/category.d.ts +2 -2
  69. package/esm/models/comment.d.ts +2 -2
  70. package/esm/models/link.d.ts +1 -1
  71. package/esm/models/note.d.ts +1 -1
  72. package/esm/models/page.d.ts +1 -1
  73. package/esm/models/post.d.ts +2 -2
  74. package/esm/models/project.d.ts +1 -1
  75. package/esm/models/recently.d.ts +1 -1
  76. package/esm/models/say.d.ts +1 -1
  77. package/esm/models/snippet.d.ts +1 -1
  78. package/esm/models/topic.d.ts +8 -0
  79. package/esm/models/topic.js +2 -0
  80. package/esm/models/topic.js.map +1 -0
  81. package/esm/models/user.d.ts +1 -1
  82. package/esm/utils/index.d.ts +1 -1
  83. package/interfaces/adapter.ts +1 -1
  84. package/interfaces/client.ts +2 -2
  85. package/lib/adaptors/axios.d.ts +2 -2
  86. package/lib/adaptors/axios.js.map +1 -1
  87. package/lib/adaptors/umi-request.d.ts +2 -2
  88. package/lib/adaptors/umi-request.js.map +1 -1
  89. package/lib/controllers/aggregate.d.ts +6 -6
  90. package/lib/controllers/base.d.ts +3 -3
  91. package/lib/controllers/category.d.ts +7 -6
  92. package/lib/controllers/category.js.map +1 -1
  93. package/lib/controllers/comment.d.ts +8 -8
  94. package/lib/controllers/index.d.ts +3 -2
  95. package/lib/controllers/index.js +4 -1
  96. package/lib/controllers/index.js.map +1 -1
  97. package/lib/controllers/link.d.ts +3 -3
  98. package/lib/controllers/note.d.ts +28 -20
  99. package/lib/controllers/note.js +12 -8
  100. package/lib/controllers/note.js.map +1 -1
  101. package/lib/controllers/page.d.ts +7 -7
  102. package/lib/controllers/post.d.ts +7 -7
  103. package/lib/controllers/project.d.ts +3 -3
  104. package/lib/controllers/recently.d.ts +5 -5
  105. package/lib/controllers/say.d.ts +5 -5
  106. package/lib/controllers/search.d.ts +8 -8
  107. package/lib/controllers/severless.d.ts +4 -4
  108. package/lib/controllers/snippet.d.ts +4 -4
  109. package/lib/controllers/topic.d.ts +27 -0
  110. package/lib/controllers/topic.js +22 -0
  111. package/lib/controllers/topic.js.map +1 -0
  112. package/lib/controllers/user.d.ts +5 -5
  113. package/lib/core/client.d.ts +7 -7
  114. package/lib/core/client.js.map +1 -1
  115. package/lib/interfaces/adapter.d.ts +1 -1
  116. package/lib/interfaces/client.d.ts +2 -2
  117. package/lib/models/aggregate.d.ts +7 -7
  118. package/lib/models/base.d.ts +1 -0
  119. package/lib/models/category.d.ts +2 -2
  120. package/lib/models/comment.d.ts +2 -2
  121. package/lib/models/link.d.ts +1 -1
  122. package/lib/models/note.d.ts +1 -1
  123. package/lib/models/page.d.ts +1 -1
  124. package/lib/models/post.d.ts +2 -2
  125. package/lib/models/project.d.ts +1 -1
  126. package/lib/models/recently.d.ts +1 -1
  127. package/lib/models/say.d.ts +1 -1
  128. package/lib/models/snippet.d.ts +1 -1
  129. package/lib/models/topic.d.ts +8 -0
  130. package/lib/models/topic.js +3 -0
  131. package/lib/models/topic.js.map +1 -0
  132. package/lib/models/user.d.ts +1 -1
  133. package/lib/utils/index.d.ts +1 -1
  134. package/models/aggregate.ts +7 -7
  135. package/models/base.ts +2 -0
  136. package/models/category.ts +2 -2
  137. package/models/comment.ts +2 -2
  138. package/models/link.ts +1 -1
  139. package/models/note.ts +1 -1
  140. package/models/page.ts +1 -1
  141. package/models/post.ts +2 -2
  142. package/models/project.ts +1 -1
  143. package/models/recently.ts +1 -1
  144. package/models/say.ts +1 -1
  145. package/models/snippet.ts +1 -1
  146. package/models/topic.ts +9 -0
  147. package/models/user.ts +1 -1
  148. package/package.json +8 -8
  149. package/types/adaptors/axios.d.ts +2 -2
  150. package/types/adaptors/umi-request.d.ts +2 -2
  151. package/types/controllers/aggregate.d.ts +6 -6
  152. package/types/controllers/base.d.ts +3 -3
  153. package/types/controllers/category.d.ts +7 -6
  154. package/types/controllers/comment.d.ts +8 -8
  155. package/types/controllers/index.d.ts +3 -2
  156. package/types/controllers/link.d.ts +3 -3
  157. package/types/controllers/note.d.ts +28 -20
  158. package/types/controllers/page.d.ts +7 -7
  159. package/types/controllers/post.d.ts +7 -7
  160. package/types/controllers/project.d.ts +3 -3
  161. package/types/controllers/recently.d.ts +5 -5
  162. package/types/controllers/say.d.ts +5 -5
  163. package/types/controllers/search.d.ts +8 -8
  164. package/types/controllers/severless.d.ts +4 -4
  165. package/types/controllers/snippet.d.ts +4 -4
  166. package/types/controllers/topic.d.ts +27 -0
  167. package/types/controllers/user.d.ts +5 -5
  168. package/types/core/client.d.ts +7 -7
  169. package/types/interfaces/adapter.d.ts +1 -1
  170. package/types/interfaces/client.d.ts +2 -2
  171. package/types/models/aggregate.d.ts +7 -7
  172. package/types/models/base.d.ts +1 -0
  173. package/types/models/category.d.ts +2 -2
  174. package/types/models/comment.d.ts +2 -2
  175. package/types/models/link.d.ts +1 -1
  176. package/types/models/note.d.ts +1 -1
  177. package/types/models/page.d.ts +1 -1
  178. package/types/models/post.d.ts +2 -2
  179. package/types/models/project.d.ts +1 -1
  180. package/types/models/recently.d.ts +1 -1
  181. package/types/models/say.d.ts +1 -1
  182. package/types/models/snippet.d.ts +1 -1
  183. package/types/models/topic.d.ts +8 -0
  184. package/types/models/user.d.ts +1 -1
  185. package/types/utils/index.d.ts +1 -1
  186. package/utils/index.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserController = exports.ServerlessController = exports.SnippetController = exports.SearchController = exports.SayController = exports.RecentlyController = exports.ProjectController = exports.PostController = exports.PageController = exports.NoteController = exports.LinkController = exports.CommentController = exports.CategoryController = exports.AggregateController = exports.allContollerNames = exports.allControllers = void 0;
3
+ exports.TopicController = exports.UserController = exports.ServerlessController = exports.SnippetController = exports.SearchController = exports.SayController = exports.RecentlyController = exports.ProjectController = exports.PostController = exports.PageController = exports.NoteController = exports.LinkController = exports.CommentController = exports.CategoryController = exports.AggregateController = exports.allContollerNames = exports.allControllers = void 0;
4
4
  const aggregate_1 = require("./aggregate");
5
5
  Object.defineProperty(exports, "AggregateController", { enumerable: true, get: function () { return aggregate_1.AggregateController; } });
6
6
  const category_1 = require("./category");
@@ -27,6 +27,8 @@ const severless_1 = require("./severless");
27
27
  Object.defineProperty(exports, "ServerlessController", { enumerable: true, get: function () { return severless_1.ServerlessController; } });
28
28
  const snippet_1 = require("./snippet");
29
29
  Object.defineProperty(exports, "SnippetController", { enumerable: true, get: function () { return snippet_1.SnippetController; } });
30
+ const topic_1 = require("./topic");
31
+ Object.defineProperty(exports, "TopicController", { enumerable: true, get: function () { return topic_1.TopicController; } });
30
32
  const user_1 = require("./user");
31
33
  Object.defineProperty(exports, "UserController", { enumerable: true, get: function () { return user_1.UserController; } });
32
34
  exports.allControllers = [
@@ -54,6 +56,7 @@ exports.allContollerNames = [
54
56
  'page',
55
57
  'post',
56
58
  'project',
59
+ 'topic',
57
60
  'recently',
58
61
  'say',
59
62
  'search',
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../controllers/index.ts"],"names":[],"mappings":";;;AAAA,2CAAiD;AAuD/C,oGAvDO,+BAAmB,OAuDP;AAtDrB,yCAA+C;AAuD7C,mGAvDO,6BAAkB,OAuDP;AAtDpB,uCAA6C;AAuD3C,kGAvDO,2BAAiB,OAuDP;AAtDnB,iCAAuC;AAuDrC,+FAvDO,qBAAc,OAuDP;AAtDhB,iCAAuC;AAuDrC,+FAvDO,qBAAc,OAuDP;AAtDhB,iCAAuC;AAuDrC,+FAvDO,qBAAc,OAuDP;AAtDhB,iCAAuC;AAuDrC,+FAvDO,qBAAc,OAuDP;AAtDhB,uCAA6C;AAuD3C,kGAvDO,2BAAiB,OAuDP;AAtDnB,yCAA+C;AAuD7C,mGAvDO,6BAAkB,OAuDP;AAtDpB,+BAAqC;AAuDnC,8FAvDO,mBAAa,OAuDP;AAtDf,qCAA2C;AAuDzC,iGAvDO,yBAAgB,OAuDP;AAtDlB,2CAAkD;AAwDhD,qGAxDO,gCAAoB,OAwDP;AAvDtB,uCAA6C;AAsD3C,kGAtDO,2BAAiB,OAsDP;AArDnB,iCAAuC;AAuDrC,+FAvDO,qBAAc,OAuDP;AArDH,QAAA,cAAc,GAAG;IAC5B,+BAAmB;IACnB,6BAAkB;IAClB,2BAAiB;IACjB,qBAAc;IACd,qBAAc;IACd,qBAAc;IACd,qBAAc;IACd,2BAAiB;IACjB,6BAAkB;IAClB,mBAAa;IACb,yBAAgB;IAChB,2BAAiB;IACjB,gCAAoB;IACpB,qBAAc;CACf,CAAA;AAEY,QAAA,iBAAiB,GAAG;IAC/B,WAAW;IACX,UAAU;IACV,SAAS;IACT,MAAM;IACN,MAAM;IACN,MAAM;IACN,MAAM;IACN,SAAS;IACT,UAAU;IACV,KAAK;IACL,QAAQ;IACR,SAAS;IACT,YAAY;IACZ,MAAM;IAEN,SAAS;IACT,QAAQ;IACR,QAAQ;IACR,WAAW;CACH,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["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AA"}
@@ -1,6 +1,6 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { LinkModel } from '../models/link';
3
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { LinkModel } from '../models/link';
3
+ import type { HTTPClient } from '../core';
4
4
  import { BaseCrudController } from './base';
5
5
  declare module '../core/client' {
6
6
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
@@ -1,10 +1,10 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { SelectFields } from '../interfaces/types';
5
- import { PaginateResult } from '../models/base';
6
- import { NoteModel, NoteWrappedPayload } from '../models/note';
7
- import { HTTPClient } from '../core/client';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler, RequestProxyResult } from '../interfaces/request';
4
+ import type { SelectFields } from '../interfaces/types';
5
+ import type { PaginateResult } from '../models/base';
6
+ import type { NoteModel, NoteWrappedPayload } from '../models/note';
7
+ import type { HTTPClient } from '../core/client';
8
8
  declare module '../core/client' {
9
9
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
10
10
  note: NoteController<ResponseWrapper>;
@@ -25,7 +25,7 @@ export declare class NoteController<ResponseWrapper> implements IController {
25
25
  /**
26
26
  * 最新日记
27
27
  */
28
- getLatest(): import("../interfaces/request").RequestProxyResult<NoteWrappedPayload, ResponseWrapper, ResponseWrapper extends unknown ? {
28
+ getLatest(): RequestProxyResult<NoteWrappedPayload, ResponseWrapper, ResponseWrapper extends unknown ? {
29
29
  [key: string]: any;
30
30
  data: NoteWrappedPayload;
31
31
  } : ResponseWrapper extends {
@@ -34,22 +34,19 @@ export declare class NoteController<ResponseWrapper> implements IController {
34
34
  data: NoteWrappedPayload;
35
35
  }>;
36
36
  /**
37
- * 获取一篇日记
37
+ * 获取一篇日记, 根据 Id 查询需要鉴权
38
38
  * @param id id | nid
39
39
  * @param password 访问密码
40
40
  */
41
- getNoteById(id: string | number, password?: string): import("../interfaces/request").RequestProxyResult<NoteWrappedPayload, ResponseWrapper, ResponseWrapper extends unknown ? {
42
- [key: string]: any;
43
- data: NoteWrappedPayload;
44
- } : ResponseWrapper extends {
45
- data: NoteWrappedPayload;
46
- } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
47
- data: NoteWrappedPayload;
48
- }>;
41
+ getNoteById(id: string): Promise<RequestProxyResult<NoteModel, ResponseWrapper>>;
42
+ getNoteById(id: number): Promise<NoteWrappedPayload>;
43
+ getNoteById(id: number, password: string): Promise<NoteWrappedPayload>;
44
+ getNoteById(id: number, password: undefined, singleResult: true): Promise<RequestProxyResult<NoteModel, ResponseWrapper>>;
45
+ getNoteById(id: number, password: string, singleResult: true): Promise<RequestProxyResult<NoteModel, ResponseWrapper>>;
49
46
  /**
50
47
  * 日记列表分页
51
48
  */
52
- getList(page?: number, perPage?: number, options?: NoteListOptions): import("../interfaces/request").RequestProxyResult<PaginateResult<NoteModel>, ResponseWrapper, ResponseWrapper extends unknown ? {
49
+ getList(page?: number, perPage?: number, options?: NoteListOptions): RequestProxyResult<PaginateResult<NoteModel>, ResponseWrapper, ResponseWrapper extends unknown ? {
53
50
  [key: string]: any;
54
51
  data: PaginateResult<NoteModel>;
55
52
  } : ResponseWrapper extends {
@@ -60,7 +57,7 @@ export declare class NoteController<ResponseWrapper> implements IController {
60
57
  /**
61
58
  * 获取当前日记的上下各 n / 2 篇日记
62
59
  */
63
- getMiddleList(id: string, size?: number): import("../interfaces/request").RequestProxyResult<{
60
+ getMiddleList(id: string, size?: number): RequestProxyResult<{
64
61
  data: Pick<NoteModel, 'id' | 'title' | 'nid' | 'created'>[];
65
62
  size: number;
66
63
  }, ResponseWrapper, ResponseWrapper extends unknown ? {
@@ -83,7 +80,7 @@ export declare class NoteController<ResponseWrapper> implements IController {
83
80
  /**
84
81
  * 喜欢这篇日记
85
82
  */
86
- likeIt(id: string | number): import("../interfaces/request").RequestProxyResult<never, ResponseWrapper, ResponseWrapper extends unknown ? {
83
+ likeIt(id: string | number): RequestProxyResult<never, ResponseWrapper, ResponseWrapper extends unknown ? {
87
84
  [key: string]: any;
88
85
  data: never;
89
86
  } : ResponseWrapper extends {
@@ -91,4 +88,15 @@ export declare class NoteController<ResponseWrapper> implements IController {
91
88
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
92
89
  data: never;
93
90
  }>;
91
+ /**
92
+ * 获取专栏内的所有日记
93
+ */
94
+ getNoteByTopicId(topicId: string, page?: number, size?: number): RequestProxyResult<PaginateResult<NoteModel>, ResponseWrapper, ResponseWrapper extends unknown ? {
95
+ [key: string]: any;
96
+ data: PaginateResult<NoteModel>;
97
+ } : ResponseWrapper extends {
98
+ data: PaginateResult<NoteModel>;
99
+ } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
100
+ data: PaginateResult<NoteModel>;
101
+ }>;
94
102
  }
@@ -18,19 +18,15 @@ class NoteController {
18
18
  getLatest() {
19
19
  return this.proxy.latest.get();
20
20
  }
21
- /**
22
- * 获取一篇日记
23
- * @param id id | nid
24
- * @param password 访问密码
25
- */
26
- getNoteById(id, password) {
21
+ getNoteById(...rest) {
22
+ const [id, password = undefined, singleResult = false] = rest;
27
23
  if (typeof id === 'number') {
28
24
  return this.proxy.nid(id.toString()).get({
29
- params: { password },
25
+ params: { password, single: singleResult ? '1' : undefined },
30
26
  });
31
27
  }
32
28
  else {
33
- return this.proxy(id).get({ params: { password } });
29
+ return this.proxy(id).get();
34
30
  }
35
31
  }
36
32
  /**
@@ -63,6 +59,14 @@ class NoteController {
63
59
  likeIt(id) {
64
60
  return this.proxy.like(id).get();
65
61
  }
62
+ /**
63
+ * 获取专栏内的所有日记
64
+ */
65
+ getNoteByTopicId(topicId, page = 1, size = 10) {
66
+ return this.proxy.topics(topicId).get({
67
+ params: { page, size },
68
+ });
69
+ }
66
70
  }
67
71
  exports.NoteController = NoteController;
68
72
  //# sourceMappingURL=note.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"note.js","sourceRoot":"","sources":["../../controllers/note.ts"],"names":[],"mappings":";;;AAMA,iDAA4C;AAoB5C,MAAa,cAAc;IAIzB,YAAoB,MAAkB;QAAlB,WAAM,GAAN,MAAM,CAAY;QAHtC,SAAI,GAAG,OAAO,CAAA;QACd,SAAI,GAAG,MAAM,CAAA;QAGX,IAAA,oBAAQ,EAAC,IAAI,CAAC,CAAA;IAChB,CAAC;IACD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACrC,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAsB,CAAA;IACpD,CAAC;IAED;;;;OAIG;IAEH,WAAW,CAAC,EAAmB,EAAE,QAAiB;QAChD,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;YAC1B,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAqB;gBAC3D,MAAM,EAAE,EAAE,QAAQ,EAAE;aACrB,CAAC,CAAA;SACH;aAAM;YACL,OAAO,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,CAAqB,EAAE,MAAM,EAAE,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAA;SACxE;IACH,CAAC;IAED;;OAEG;IAEH,OAAO,CAAC,IAAI,GAAG,CAAC,EAAE,OAAO,GAAG,EAAE,EAAE,UAA2B,EAAE;QAC3D,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;QACnD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAA4B;YAC/C,MAAM,EAAE;gBACN,IAAI;gBACJ,IAAI,EAAE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AAhGD,wCAgGC"}
@@ -1,10 +1,10 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { SelectFields } from '../interfaces/types';
5
- import { PaginateResult } from '../models/base';
6
- import { PageModel } from '../models/page';
7
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { SelectFields } from '../interfaces/types';
5
+ import type { PaginateResult } from '../models/base';
6
+ import type { PageModel } from '../models/page';
7
+ import type { HTTPClient } from '../core';
8
8
  declare module '../core/client' {
9
9
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
10
10
  page: PageController<ResponseWrapper>;
@@ -1,10 +1,10 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler, RequestProxyResult } from '../interfaces/request';
4
- import { SelectFields } from '../interfaces/types';
5
- import { PaginateResult } from '../models/base';
6
- import { PostModel } from '../models/post';
7
- import { HTTPClient } from '../core/client';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler, RequestProxyResult } from '../interfaces/request';
4
+ import type { SelectFields } from '../interfaces/types';
5
+ import type { PaginateResult } from '../models/base';
6
+ import type { PostModel } from '../models/post';
7
+ import type { HTTPClient } from '../core/client';
8
8
  declare module '../core/client' {
9
9
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
10
10
  post: PostController<ResponseWrapper>;
@@ -1,6 +1,6 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { ProjectModel } from '../models/project';
3
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { ProjectModel } from '../models/project';
3
+ import type { HTTPClient } from '../core';
4
4
  import { BaseCrudController } from './base';
5
5
  declare module '../core/client' {
6
6
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
@@ -1,8 +1,8 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { RecentlyModel } from '../models/recently';
5
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { RecentlyModel } from '../models/recently';
5
+ import type { HTTPClient } from '../core';
6
6
  declare module '../core/client' {
7
7
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
8
8
  recently: RecentlyController<ResponseWrapper>;
@@ -1,8 +1,8 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { SayModel } from '../models/say';
5
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { SayModel } from '../models/say';
5
+ import type { HTTPClient } from '../core';
6
6
  import { BaseCrudController } from './base';
7
7
  declare module '../core/client' {
8
8
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
@@ -1,11 +1,11 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler, RequestProxyResult } from '../interfaces/request';
4
- import { PaginateResult } from '../models/base';
5
- import { NoteModel } from '../models/note';
6
- import { PostModel } from '../models/post';
7
- import { PageModel } from '..';
8
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler, RequestProxyResult } from '../interfaces/request';
4
+ import type { PaginateResult } from '../models/base';
5
+ import type { NoteModel } from '../models/note';
6
+ import type { PostModel } from '../models/post';
7
+ import type { PageModel } from '..';
8
+ import type { HTTPClient } from '../core';
9
9
  declare module '../core/client' {
10
10
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
11
11
  search: SearchController<ResponseWrapper>;
@@ -1,7 +1,7 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { HTTPClient } from '../core';
5
5
  declare module '../core/client' {
6
6
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
7
7
  serverless: ServerlessController<ResponseWrapper>;
@@ -1,7 +1,7 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { HTTPClient } from '../core';
5
5
  declare module '../core/client' {
6
6
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
7
7
  snippet: SnippetController<ResponseWrapper>;
@@ -0,0 +1,27 @@
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { SayModel } from '../models/say';
5
+ import type { TopicModel } from '../models/topic';
6
+ import type { HTTPClient } from '../core';
7
+ import { BaseCrudController } from './base';
8
+ declare module '../core/client' {
9
+ interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
10
+ topic: TopicController<ResponseWrapper>;
11
+ }
12
+ }
13
+ export declare class TopicController<ResponseWrapper> extends BaseCrudController<SayModel, ResponseWrapper> implements IController {
14
+ protected client: HTTPClient;
15
+ base: string;
16
+ name: string;
17
+ constructor(client: HTTPClient);
18
+ get proxy(): IRequestHandler<ResponseWrapper>;
19
+ getTopicBySlug(slug: string): import("../interfaces/request").RequestProxyResult<TopicModel, ResponseWrapper, ResponseWrapper extends unknown ? {
20
+ [key: string]: any;
21
+ data: TopicModel;
22
+ } : ResponseWrapper extends {
23
+ data: TopicModel;
24
+ } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
25
+ data: TopicModel;
26
+ }>;
27
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TopicController = void 0;
4
+ const auto_bind_1 = require("../utils/auto-bind");
5
+ const base_1 = require("./base");
6
+ class TopicController extends base_1.BaseCrudController {
7
+ constructor(client) {
8
+ super(client);
9
+ this.client = client;
10
+ this.base = 'topics';
11
+ this.name = 'topic';
12
+ (0, auto_bind_1.autoBind)(this);
13
+ }
14
+ get proxy() {
15
+ return this.client.proxy(this.base);
16
+ }
17
+ getTopicBySlug(slug) {
18
+ return this.proxy.slug(slug).get();
19
+ }
20
+ }
21
+ exports.TopicController = TopicController;
22
+ //# sourceMappingURL=topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topic.js","sourceRoot":"","sources":["../../controllers/topic.ts"],"names":[],"mappings":";;;AAKA,iDAA4C;AAG5C,iCAA2C;AAW3C,MAAa,eACX,SAAQ,yBAA6C;IAMrD,YAAsB,MAAkB;QACtC,KAAK,CAAC,MAAM,CAAC,CAAA;QADO,WAAM,GAAN,MAAM,CAAY;QAHxC,SAAI,GAAG,QAAQ,CAAA;QACf,SAAI,GAAG,OAAO,CAAA;QAIZ,IAAA,oBAAQ,EAAC,IAAI,CAAC,CAAA;IAChB,CAAC;IAED,IAAW,KAAK;QACd,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;IACrC,CAAC;IAED,cAAc,CAAC,IAAY;QACzB,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAc,CAAA;IAChD,CAAC;CACF;AAnBD,0CAmBC"}
@@ -1,8 +1,8 @@
1
- import { IRequestAdapter } from '../interfaces/adapter';
2
- import { IController } from '../interfaces/controller';
3
- import { IRequestHandler } from '../interfaces/request';
4
- import { TLogin, UserModel } from '../models/user';
5
- import { HTTPClient } from '../core';
1
+ import type { IRequestAdapter } from '../interfaces/adapter';
2
+ import type { IController } from '../interfaces/controller';
3
+ import type { IRequestHandler } from '../interfaces/request';
4
+ import type { TLogin, UserModel } from '../models/user';
5
+ import type { HTTPClient } from '../core';
6
6
  declare module '../core/client' {
7
7
  interface HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
8
8
  user: UserController<ResponseWrapper>;
@@ -1,13 +1,13 @@
1
- import { IAdaptorRequestResponseType, IRequestAdapter } from '../interfaces/adapter';
2
- import { ClientOptions } from '../interfaces/client';
3
- import { IController } from '../interfaces/controller';
4
- import { IRequestHandler } from '../interfaces/request';
5
- import { Class } from '../interfaces/types';
1
+ import type { IAdaptorRequestResponseType, IRequestAdapter } from '../interfaces/adapter';
2
+ import type { ClientOptions } from '../interfaces/client';
3
+ import type { IController } from '../interfaces/controller';
4
+ import type { IRequestHandler } from '../interfaces/request';
5
+ import type { Class } from '../interfaces/types';
6
6
  export type { HTTPClient };
7
7
  declare class HTTPClient<T extends IRequestAdapter = IRequestAdapter, ResponseWrapper = unknown> {
8
- private _endpoint;
8
+ private readonly _endpoint;
9
9
  private _adaptor;
10
- private _proxy;
10
+ private readonly _proxy;
11
11
  constructor(_endpoint: string, _adaptor: T);
12
12
  private initGetClient;
13
13
  injectControllers(...Controller: Class<IController>[]): void;
@@ -1 +1 @@
1
- {"version":3,"file":"client.js","source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AE,IAAI;oBACxB,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAS,EAAE,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAA;oBACrD,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAA;gBACjC,CAAC;aACF,CAAA;YAED,OAAO,IAAI,KAAK,CAAC,IAAI,EAAE,OAAO,CAAQ,CAAA;QACxC,CAAC,CAAA;IACH,CAAC;CACF;AAED,SAAgB,YAAY,CAA4B,OAAU;IAChE,OAAO,CAOL,QAAgB,EAChB,OAAuB,EACvB,EAAE;QACF,MAAM,MAAM,GAAG,IAAI,UAAU,CAAqB,QAAQ,EAAE,OAAO,CAAC,CAAA;QACpE,MAAM,EAAE,WAAW,EAAE,GAAG,OAAO,IAAI,EAAE,CAAA;QACrC,IAAI,WAAW,EAAE;YACf,MAAM,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAA;SACtC;QACD,OAAO,MAAM,CAAA;IACf,CAAC,CAAA;AACH,CAAC;AAlBD,oCAkBC"}
@@ -1,4 +1,4 @@
1
- import { RequestOptions } from './instance';
1
+ import type { RequestOptions } from './instance';
2
2
  export declare type IAdaptorRequestResponseType<P> = Promise<Record<string, any> & {
3
3
  data: P;
4
4
  }>;
@@ -1,5 +1,5 @@
1
- import { IController } from './controller';
2
- import { Class } from './types';
1
+ import type { IController } from './controller';
2
+ import type { Class } from './types';
3
3
  export declare type ClientOptions = {
4
4
  controllers?: Class<IController>[];
5
5
  };
@@ -1,10 +1,10 @@
1
- import { CategoryModel } from './category';
2
- import { NoteModel } from './note';
3
- import { PageModel } from './page';
4
- import { PostModel } from './post';
5
- import { SayModel } from './say';
6
- import { SeoOptionModel } from './setting';
7
- import { UserModel } from './user';
1
+ import type { CategoryModel } from './category';
2
+ import type { NoteModel } from './note';
3
+ import type { PageModel } from './page';
4
+ import type { PostModel } from './post';
5
+ import type { SayModel } from './say';
6
+ import type { SeoOptionModel } from './setting';
7
+ import type { UserModel } from './user';
8
8
  export interface AggregateRoot {
9
9
  user: UserModel;
10
10
  seo: SeoOptionModel;
@@ -34,4 +34,5 @@ export interface TextBaseModel extends BaseCommentIndexModel {
34
34
  text: string;
35
35
  images?: Image[];
36
36
  modified: string | null;
37
+ meta?: Record<string, string>;
37
38
  }
@@ -1,5 +1,5 @@
1
- import { BaseModel } from './base';
2
- import { PostModel } from './post';
1
+ import type { BaseModel } from './base';
2
+ import type { PostModel } from './post';
3
3
  export declare enum CategoryType {
4
4
  Category = 0,
5
5
  Tag = 1
@@ -1,5 +1,5 @@
1
- import { BaseModel } from './base';
2
- import { CategoryModel } from './category';
1
+ import type { BaseModel } from './base';
2
+ import type { CategoryModel } from './category';
3
3
  export declare enum RefType {
4
4
  Page = "Page",
5
5
  Post = "Post",
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export declare enum LinkType {
3
3
  Friend = 0,
4
4
  Collection = 1
@@ -1,4 +1,4 @@
1
- import { TextBaseModel } from './base';
1
+ import type { TextBaseModel } from './base';
2
2
  export interface NoteModel extends TextBaseModel {
3
3
  hide: boolean;
4
4
  count: {
@@ -1,4 +1,4 @@
1
- import { TextBaseModel } from './base';
1
+ import type { TextBaseModel } from './base';
2
2
  export declare enum EnumPageType {
3
3
  'md' = "md",
4
4
  'html' = "html",
@@ -1,5 +1,5 @@
1
- import { Count, Image, TextBaseModel } from './base';
2
- import { CategoryModel } from './category';
1
+ import type { Count, Image, TextBaseModel } from './base';
2
+ import type { CategoryModel } from './category';
3
3
  export interface PostModel extends TextBaseModel {
4
4
  summary?: string;
5
5
  copyright: boolean;
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export interface ProjectModel extends BaseModel {
3
3
  name: string;
4
4
  previewUrl?: string;
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export interface RecentlyModel extends BaseModel {
3
3
  content: string;
4
4
  project?: string;
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export interface SayModel extends BaseModel {
3
3
  text: string;
4
4
  source?: string;
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export declare enum SnippetType {
3
3
  JSON = "json",
4
4
  Function = "function",
@@ -0,0 +1,8 @@
1
+ import type { BaseModel } from './base';
2
+ export interface TopicModel extends BaseModel {
3
+ description?: string;
4
+ introduce: string;
5
+ name: string;
6
+ slug: string;
7
+ icon?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=topic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"topic.js","sourceRoot":"","sources":["../../models/topic.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- import { BaseModel } from './base';
1
+ import type { BaseModel } from './base';
2
2
  export interface UserModel extends BaseModel {
3
3
  introduce: string;
4
4
  mail: string;
@@ -1,4 +1,4 @@
1
- import { SortOrder } from '../interfaces/options';
1
+ import type { SortOrder } from '../interfaces/options';
2
2
  export declare const isPlainObject: (obj: any) => any;
3
3
  export declare const sortOrderToNumber: (order: SortOrder) => number;
4
4
  export declare const destructureData: (payload: any) => any;
@@ -1,10 +1,10 @@
1
- import { CategoryModel } from './category'
2
- import { NoteModel } from './note'
3
- import { PageModel } from './page'
4
- import { PostModel } from './post'
5
- import { SayModel } from './say'
6
- import { SeoOptionModel } from './setting'
7
- import { UserModel } from './user'
1
+ import type { CategoryModel } from './category'
2
+ import type { NoteModel } from './note'
3
+ import type { PageModel } from './page'
4
+ import type { PostModel } from './post'
5
+ import type { SayModel } from './say'
6
+ import type { SeoOptionModel } from './setting'
7
+ import type { UserModel } from './user'
8
8
 
9
9
  export interface AggregateRoot {
10
10
  user: UserModel
package/models/base.ts CHANGED
@@ -40,4 +40,6 @@ export interface TextBaseModel extends BaseCommentIndexModel {
40
40
  text: string
41
41
  images?: Image[]
42
42
  modified: string | null
43
+
44
+ meta?: Record<string, string>
43
45
  }