@mx-space/api-client 3.6.0 → 3.7.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.
package/dist/index.d.cts CHANGED
@@ -231,8 +231,13 @@ interface CategoryModel$1 extends BaseModel {
231
231
  slug: string;
232
232
  name: string;
233
233
  }
234
+ type CategoryChildPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created' | 'summary' | 'tags' | 'pin' | 'count' | 'images'>;
234
235
  type CategoryWithChildrenModel = CategoryModel$1 & {
235
- children: Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created'>[];
236
+ children: CategoryChildPost[]; /** Aggregated tag-name post-count for posts under this category. */
237
+ tagsSum?: Array<{
238
+ name: string;
239
+ count: number;
240
+ }>;
236
241
  };
237
242
  type CategoryEntries = {
238
243
  entries: Record<string, CategoryWithChildrenModel>;
@@ -241,6 +246,7 @@ interface TagModel {
241
246
  count: number;
242
247
  name: string;
243
248
  }
249
+ type TagDetailPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'category' | 'created' | 'modified' | 'summary' | 'tags' | 'pin' | 'count'>;
244
250
  //#endregion
245
251
  //#region models/activity.d.ts
246
252
  interface ActivityPresence {
@@ -1661,7 +1667,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
1661
1667
  getCategoryDetail(id: string): Promise<ResponseProxyExtraRaw<CategoryWithChildrenModel>>;
1662
1668
  getCategoryDetail(ids: string[]): Promise<ResponseProxyExtraRaw<Map<string, CategoryWithChildrenModel>>>;
1663
1669
  getCategoryByIdOrSlug(idOrSlug: string): Promise<CategoryModel$1 & {
1664
- children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1670
+ children: CategoryChildPost[];
1671
+ tagsSum?: Array<{
1672
+ name: string;
1673
+ count: number;
1674
+ }>;
1665
1675
  } & {
1666
1676
  $raw: ResponseWrapper extends {
1667
1677
  data: infer T;
@@ -1688,7 +1698,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
1688
1698
  name: string;
1689
1699
  created: string;
1690
1700
  id: string;
1691
- children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1701
+ children: CategoryChildPost[];
1702
+ tags_sum?: {
1703
+ name: string;
1704
+ count: number;
1705
+ }[] | undefined;
1692
1706
  } : T_1 : never : never;
1693
1707
  } : ResponseWrapper;
1694
1708
  $request: {
@@ -1700,7 +1714,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1700
1714
  }>;
1701
1715
  getTagByName(name: string): Promise<{
1702
1716
  tag: string;
1703
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1717
+ data: TagDetailPost[];
1704
1718
  } & {
1705
1719
  $raw: ResponseWrapper extends {
1706
1720
  data: infer T;
@@ -1710,37 +1724,37 @@ declare class CategoryController<ResponseWrapper> implements IController {
1710
1724
  [key: string]: any;
1711
1725
  data: {
1712
1726
  tag: string;
1713
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1727
+ data: TagDetailPost[];
1714
1728
  };
1715
1729
  } : ResponseWrapper extends {
1716
1730
  data: {
1717
1731
  tag: string;
1718
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1732
+ data: TagDetailPost[];
1719
1733
  };
1720
1734
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
1721
1735
  data: {
1722
1736
  tag: string;
1723
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1737
+ data: TagDetailPost[];
1724
1738
  };
1725
1739
  }) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
1726
1740
  [key: string]: any;
1727
1741
  data: {
1728
1742
  tag: string;
1729
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1743
+ data: TagDetailPost[];
1730
1744
  };
1731
1745
  } : ResponseWrapper extends {
1732
1746
  data: {
1733
1747
  tag: string;
1734
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1748
+ data: TagDetailPost[];
1735
1749
  };
1736
1750
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
1737
1751
  data: {
1738
1752
  tag: string;
1739
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1753
+ data: TagDetailPost[];
1740
1754
  };
1741
1755
  }) ? T_1 extends unknown ? {
1742
1756
  tag: string;
1743
- data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1757
+ data: TagDetailPost[];
1744
1758
  } : T_1 : never : never;
1745
1759
  } : ResponseWrapper;
1746
1760
  $request: {
@@ -1750,7 +1764,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1750
1764
  };
1751
1765
  $serialized: {
1752
1766
  tag: string;
1753
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1767
+ data: TagDetailPost[];
1754
1768
  };
1755
1769
  }>;
1756
1770
  }
@@ -2601,35 +2615,35 @@ declare class SearchController<ResponseWrapper> implements IController {
2601
2615
  search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
2602
2616
  search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
2603
2617
  search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
2604
- searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2618
+ searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2605
2619
  type: "post";
2606
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2620
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2607
2621
  type: "note";
2608
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2622
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2609
2623
  type: "page";
2610
2624
  })>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2611
2625
  [key: string]: any;
2612
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2626
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2613
2627
  type: "post";
2614
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2628
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2615
2629
  type: "note";
2616
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2630
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2617
2631
  type: "page";
2618
2632
  })>, ResponseWrapper>;
2619
2633
  } : ResponseWrapper extends {
2620
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2634
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2621
2635
  type: "post";
2622
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2636
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2623
2637
  type: "note";
2624
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2638
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2625
2639
  type: "page";
2626
2640
  })>, ResponseWrapper>;
2627
2641
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2628
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2642
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2629
2643
  type: "post";
2630
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2644
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2631
2645
  type: "note";
2632
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2646
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2633
2647
  type: "page";
2634
2648
  })>, ResponseWrapper>;
2635
2649
  }>;
@@ -2773,4 +2787,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
2773
2787
  */
2774
2788
  declare const camelcaseKeys: <T = any>(obj: any) => T;
2775
2789
  //#endregion
2776
- export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
2790
+ export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagDetailPost, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
package/dist/index.d.mts CHANGED
@@ -231,8 +231,13 @@ interface CategoryModel$1 extends BaseModel {
231
231
  slug: string;
232
232
  name: string;
233
233
  }
234
+ type CategoryChildPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created' | 'summary' | 'tags' | 'pin' | 'count' | 'images'>;
234
235
  type CategoryWithChildrenModel = CategoryModel$1 & {
235
- children: Pick<PostModel, 'id' | 'title' | 'slug' | 'modified' | 'created'>[];
236
+ children: CategoryChildPost[]; /** Aggregated tag-name post-count for posts under this category. */
237
+ tagsSum?: Array<{
238
+ name: string;
239
+ count: number;
240
+ }>;
236
241
  };
237
242
  type CategoryEntries = {
238
243
  entries: Record<string, CategoryWithChildrenModel>;
@@ -241,6 +246,7 @@ interface TagModel {
241
246
  count: number;
242
247
  name: string;
243
248
  }
249
+ type TagDetailPost = Pick<PostModel, 'id' | 'title' | 'slug' | 'category' | 'created' | 'modified' | 'summary' | 'tags' | 'pin' | 'count'>;
244
250
  //#endregion
245
251
  //#region models/activity.d.ts
246
252
  interface ActivityPresence {
@@ -1661,7 +1667,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
1661
1667
  getCategoryDetail(id: string): Promise<ResponseProxyExtraRaw<CategoryWithChildrenModel>>;
1662
1668
  getCategoryDetail(ids: string[]): Promise<ResponseProxyExtraRaw<Map<string, CategoryWithChildrenModel>>>;
1663
1669
  getCategoryByIdOrSlug(idOrSlug: string): Promise<CategoryModel$1 & {
1664
- children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1670
+ children: CategoryChildPost[];
1671
+ tagsSum?: Array<{
1672
+ name: string;
1673
+ count: number;
1674
+ }>;
1665
1675
  } & {
1666
1676
  $raw: ResponseWrapper extends {
1667
1677
  data: infer T;
@@ -1688,7 +1698,11 @@ declare class CategoryController<ResponseWrapper> implements IController {
1688
1698
  name: string;
1689
1699
  created: string;
1690
1700
  id: string;
1691
- children: Pick<PostModel, "id" | "title" | "slug" | "modified" | "created">[];
1701
+ children: CategoryChildPost[];
1702
+ tags_sum?: {
1703
+ name: string;
1704
+ count: number;
1705
+ }[] | undefined;
1692
1706
  } : T_1 : never : never;
1693
1707
  } : ResponseWrapper;
1694
1708
  $request: {
@@ -1700,7 +1714,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1700
1714
  }>;
1701
1715
  getTagByName(name: string): Promise<{
1702
1716
  tag: string;
1703
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1717
+ data: TagDetailPost[];
1704
1718
  } & {
1705
1719
  $raw: ResponseWrapper extends {
1706
1720
  data: infer T;
@@ -1710,37 +1724,37 @@ declare class CategoryController<ResponseWrapper> implements IController {
1710
1724
  [key: string]: any;
1711
1725
  data: {
1712
1726
  tag: string;
1713
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1727
+ data: TagDetailPost[];
1714
1728
  };
1715
1729
  } : ResponseWrapper extends {
1716
1730
  data: {
1717
1731
  tag: string;
1718
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1732
+ data: TagDetailPost[];
1719
1733
  };
1720
1734
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
1721
1735
  data: {
1722
1736
  tag: string;
1723
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1737
+ data: TagDetailPost[];
1724
1738
  };
1725
1739
  }) extends infer T_1 ? T_1 extends (ResponseWrapper extends unknown ? {
1726
1740
  [key: string]: any;
1727
1741
  data: {
1728
1742
  tag: string;
1729
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1743
+ data: TagDetailPost[];
1730
1744
  };
1731
1745
  } : ResponseWrapper extends {
1732
1746
  data: {
1733
1747
  tag: string;
1734
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1748
+ data: TagDetailPost[];
1735
1749
  };
1736
1750
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
1737
1751
  data: {
1738
1752
  tag: string;
1739
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1753
+ data: TagDetailPost[];
1740
1754
  };
1741
1755
  }) ? T_1 extends unknown ? {
1742
1756
  tag: string;
1743
- data: Pick<PostModel, "category" | "id" | "title" | "slug" | "created">[];
1757
+ data: TagDetailPost[];
1744
1758
  } : T_1 : never : never;
1745
1759
  } : ResponseWrapper;
1746
1760
  $request: {
@@ -1750,7 +1764,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
1750
1764
  };
1751
1765
  $serialized: {
1752
1766
  tag: string;
1753
- data: Pick<PostModel, "id" | "title" | "slug" | "category" | "created">[];
1767
+ data: TagDetailPost[];
1754
1768
  };
1755
1769
  }>;
1756
1770
  }
@@ -2601,35 +2615,35 @@ declare class SearchController<ResponseWrapper> implements IController {
2601
2615
  search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
2602
2616
  search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
2603
2617
  search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
2604
- searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2618
+ searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2605
2619
  type: "post";
2606
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2620
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2607
2621
  type: "note";
2608
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2622
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2609
2623
  type: "page";
2610
2624
  })>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
2611
2625
  [key: string]: any;
2612
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2626
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2613
2627
  type: "post";
2614
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2628
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2615
2629
  type: "note";
2616
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2630
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2617
2631
  type: "page";
2618
2632
  })>, ResponseWrapper>;
2619
2633
  } : ResponseWrapper extends {
2620
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2634
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2621
2635
  type: "post";
2622
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2636
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2623
2637
  type: "note";
2624
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2638
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2625
2639
  type: "page";
2626
2640
  })>, ResponseWrapper>;
2627
2641
  } ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
2628
- data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2642
+ data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2629
2643
  type: "post";
2630
- }) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
2644
+ }) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & SearchResultHighlight & {
2631
2645
  type: "note";
2632
- }) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
2646
+ }) | (Pick<PageModel, "id" | "created" | "title" | "slug" | "modified"> & SearchResultHighlight & {
2633
2647
  type: "page";
2634
2648
  })>, ResponseWrapper>;
2635
2649
  }>;
@@ -2773,4 +2787,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
2773
2787
  */
2774
2788
  declare const camelcaseKeys: <T = any>(obj: any) => T;
2775
2789
  //#endregion
2776
- export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
2790
+ export { AIController, AIDeepReadingModel, AIInsightsModel, AIInsightsStreamEvent, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateSiteInfo, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AnonymousCommentDto, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel$1 as CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, Coordinate, Count, EnumPageType, GithubMetadata, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkMetadata, LinkModel, LinkState, LinkType, MailOptionsModel, MediaMetadata, ModelWithLiked, ModelWithTranslation, MusicMetadata, NoteController, type NoteMiddleListOptions, NoteModel, type NoteTimelineItem, type NoteTopicListItem, type NoteTopicListOptions, NoteWrappedPayload, NoteWrappedWithLikedAndTranslationPayload, NoteWrappedWithLikedPayload, OwnerAllowLoginResult, OwnerSessionResult, PageController, PageModel, Pager, PaginateResult, PostController, type PostListItem, type PostListOptions, PostModel, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RecentlyTypeEnum, RequestError, RoomOmittedNote, RoomOmittedPage, RoomOmittedPost, RoomsData, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagDetailPost, TagModel, TextBaseModel, TextBaseModelLexical, TextBaseModelMarkdown, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-space/api-client",
3
- "version": "3.6.0",
3
+ "version": "3.7.0",
4
4
  "description": "A api client for mx-space server@next",
5
5
  "type": "module",
6
6
  "engines": {