@mx-space/api-client 1.7.0 → 1.7.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/dist/index.cjs CHANGED
@@ -25,6 +25,7 @@ __export(api_client_exports, {
25
25
  AggregateController: () => AggregateController,
26
26
  CategoryController: () => CategoryController,
27
27
  CategoryType: () => CategoryType,
28
+ CollectionRefTypes: () => CollectionRefTypes,
28
29
  CommentController: () => CommentController,
29
30
  CommentState: () => CommentState,
30
31
  EnumPageType: () => EnumPageType,
@@ -1079,6 +1080,19 @@ var TimelineType = /* @__PURE__ */ ((TimelineType2) => {
1079
1080
  return TimelineType2;
1080
1081
  })(TimelineType || {});
1081
1082
 
1083
+ // ../../apps/core/src/constants/db.constant.ts
1084
+ var POST_COLLECTION_NAME = "posts";
1085
+ var NOTE_COLLECTION_NAME = "notes";
1086
+ var PAGE_COLLECTION_NAME = "pages";
1087
+ var RECENTLY_COLLECTION_NAME = "recentlies";
1088
+ var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
1089
+ CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
1090
+ CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
1091
+ CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
1092
+ CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
1093
+ return CollectionRefTypes2;
1094
+ })(CollectionRefTypes || {});
1095
+
1082
1096
  // models/comment.ts
1083
1097
  var CommentState = /* @__PURE__ */ ((CommentState2) => {
1084
1098
  CommentState2[CommentState2["Unread"] = 0] = "Unread";
@@ -1150,6 +1164,7 @@ var api_client_default = createClient;
1150
1164
  AggregateController,
1151
1165
  CategoryController,
1152
1166
  CategoryType,
1167
+ CollectionRefTypes,
1153
1168
  CommentController,
1154
1169
  CommentState,
1155
1170
  EnumPageType,
package/dist/index.d.cts CHANGED
@@ -1498,4 +1498,4 @@ interface SnippetModel<T = unknown> extends BaseModel {
1498
1498
  */
1499
1499
  declare const camelcaseKeys: <T = any>(obj: any) => T;
1500
1500
 
1501
- export { AckController, ActivityController, AdminExtraModel, AggregateController, type AggregateRoot, type AggregateRootWithTheme, type AggregateStat, type AggregateTop, type AggregateTopNote, type AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, type BaseCommentIndexModel, type BaseModel, CategoryController, type CategoryEntries, type CategoryModel, CategoryType, type CategoryWithChildrenModel, CommentController, type CommentDto, type CommentModel, CommentOptionsModel, type CommentRef, CommentState, type Coordinate, type Count, EnumPageType, HTTPClient, type IConfig, type IConfigKeys, type Image, LinkController, type LinkModel, LinkState, LinkType, MailOptionsModel, type ModelWithLiked, NoteController, type NoteModel, type NoteMusicRecord, type NoteWrappedPayload, type NoteWrappedWithLikedPayload, PageController, type PageModel, type Pager, type PaginateResult, PostController, type PostModel, ProjectController, type ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, type RecentlyModel, type RecentlyRefType, RecentlyRefTypes, RequestError, SayController, type SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, type SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, type SubscribeType, SubscribeTypeToBitMap, type TLogin, type TagModel, type TextBaseModel, type TimelineData, TimelineType, TopicController, type TopicModel, type Url, UrlOptionModel, UserController, type UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
1501
+ export { AckController, ActivityController, AdminExtraModel, AggregateController, type AggregateRoot, type AggregateRootWithTheme, type AggregateStat, type AggregateTop, type AggregateTopNote, type AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, type BaseCommentIndexModel, type BaseModel, CategoryController, type CategoryEntries, type CategoryModel, CategoryType, type CategoryWithChildrenModel, CollectionRefTypes, CommentController, type CommentDto, type CommentModel, CommentOptionsModel, type CommentRef, CommentState, type Coordinate, type Count, EnumPageType, HTTPClient, type IConfig, type IConfigKeys, type Image, LinkController, type LinkModel, LinkState, LinkType, MailOptionsModel, type ModelWithLiked, NoteController, type NoteModel, type NoteMusicRecord, type NoteWrappedPayload, type NoteWrappedWithLikedPayload, PageController, type PageModel, type Pager, type PaginateResult, PostController, type PostModel, ProjectController, type ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, type RecentlyModel, type RecentlyRefType, RecentlyRefTypes, RequestError, SayController, type SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, type SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, type SubscribeType, SubscribeTypeToBitMap, type TLogin, type TagModel, type TextBaseModel, type TimelineData, TimelineType, TopicController, type TopicModel, type Url, UrlOptionModel, UserController, type UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
package/dist/index.d.ts CHANGED
@@ -1498,4 +1498,4 @@ interface SnippetModel<T = unknown> extends BaseModel {
1498
1498
  */
1499
1499
  declare const camelcaseKeys: <T = any>(obj: any) => T;
1500
1500
 
1501
- export { AckController, ActivityController, AdminExtraModel, AggregateController, type AggregateRoot, type AggregateRootWithTheme, type AggregateStat, type AggregateTop, type AggregateTopNote, type AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, type BaseCommentIndexModel, type BaseModel, CategoryController, type CategoryEntries, type CategoryModel, CategoryType, type CategoryWithChildrenModel, CommentController, type CommentDto, type CommentModel, CommentOptionsModel, type CommentRef, CommentState, type Coordinate, type Count, EnumPageType, HTTPClient, type IConfig, type IConfigKeys, type Image, LinkController, type LinkModel, LinkState, LinkType, MailOptionsModel, type ModelWithLiked, NoteController, type NoteModel, type NoteMusicRecord, type NoteWrappedPayload, type NoteWrappedWithLikedPayload, PageController, type PageModel, type Pager, type PaginateResult, PostController, type PostModel, ProjectController, type ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, type RecentlyModel, type RecentlyRefType, RecentlyRefTypes, RequestError, SayController, type SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, type SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, type SubscribeType, SubscribeTypeToBitMap, type TLogin, type TagModel, type TextBaseModel, type TimelineData, TimelineType, TopicController, type TopicModel, type Url, UrlOptionModel, UserController, type UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
1501
+ export { AckController, ActivityController, AdminExtraModel, AggregateController, type AggregateRoot, type AggregateRootWithTheme, type AggregateStat, type AggregateTop, type AggregateTopNote, type AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, type BaseCommentIndexModel, type BaseModel, CategoryController, type CategoryEntries, type CategoryModel, CategoryType, type CategoryWithChildrenModel, CollectionRefTypes, CommentController, type CommentDto, type CommentModel, CommentOptionsModel, type CommentRef, CommentState, type Coordinate, type Count, EnumPageType, HTTPClient, type IConfig, type IConfigKeys, type Image, LinkController, type LinkModel, LinkState, LinkType, MailOptionsModel, type ModelWithLiked, NoteController, type NoteModel, type NoteMusicRecord, type NoteWrappedPayload, type NoteWrappedWithLikedPayload, PageController, type PageModel, type Pager, type PaginateResult, PostController, type PostModel, ProjectController, type ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, type RecentlyModel, type RecentlyRefType, RecentlyRefTypes, RequestError, SayController, type SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, type SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, type SubscribeType, SubscribeTypeToBitMap, type TLogin, type TagModel, type TextBaseModel, type TimelineData, TimelineType, TopicController, type TopicModel, type Url, UrlOptionModel, UserController, type UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
@@ -1016,6 +1016,19 @@
1016
1016
  return TimelineType2;
1017
1017
  })(TimelineType || {});
1018
1018
 
1019
+ // ../../apps/core/src/constants/db.constant.ts
1020
+ var POST_COLLECTION_NAME = "posts";
1021
+ var NOTE_COLLECTION_NAME = "notes";
1022
+ var PAGE_COLLECTION_NAME = "pages";
1023
+ var RECENTLY_COLLECTION_NAME = "recentlies";
1024
+ var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
1025
+ CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
1026
+ CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
1027
+ CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
1028
+ CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
1029
+ return CollectionRefTypes2;
1030
+ })(CollectionRefTypes || {});
1031
+
1019
1032
  // models/comment.ts
1020
1033
  var CommentState = /* @__PURE__ */ ((CommentState2) => {
1021
1034
  CommentState2[CommentState2["Unread"] = 0] = "Unread";
package/dist/index.js CHANGED
@@ -1014,6 +1014,19 @@ var TimelineType = /* @__PURE__ */ ((TimelineType2) => {
1014
1014
  return TimelineType2;
1015
1015
  })(TimelineType || {});
1016
1016
 
1017
+ // ../../apps/core/src/constants/db.constant.ts
1018
+ var POST_COLLECTION_NAME = "posts";
1019
+ var NOTE_COLLECTION_NAME = "notes";
1020
+ var PAGE_COLLECTION_NAME = "pages";
1021
+ var RECENTLY_COLLECTION_NAME = "recentlies";
1022
+ var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
1023
+ CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
1024
+ CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
1025
+ CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
1026
+ CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
1027
+ return CollectionRefTypes2;
1028
+ })(CollectionRefTypes || {});
1029
+
1017
1030
  // models/comment.ts
1018
1031
  var CommentState = /* @__PURE__ */ ((CommentState2) => {
1019
1032
  CommentState2[CommentState2["Unread"] = 0] = "Unread";
@@ -1084,6 +1097,7 @@ export {
1084
1097
  AggregateController,
1085
1098
  CategoryController,
1086
1099
  CategoryType,
1100
+ CollectionRefTypes,
1087
1101
  CommentController,
1088
1102
  CommentState,
1089
1103
  EnumPageType,
package/models/comment.ts CHANGED
@@ -1,7 +1,9 @@
1
- import type { CollectionRefTypes } from '@core/constants/db.constant'
2
1
  import type { BaseModel } from './base'
3
2
  import type { CategoryModel } from './category'
4
3
 
4
+ import { CollectionRefTypes } from '@core/constants/db.constant'
5
+
6
+ export { CollectionRefTypes }
5
7
  export interface CommentModel extends BaseModel {
6
8
  refType: CollectionRefTypes
7
9
  ref: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "1.7.0",
3
+ "version": "1.7.2",
4
4
  "type": "module",
5
5
  "description": "A api client for mx-space server@next",
6
6
  "author": "Innei",