@mx-space/api-client 4.0.0-next.1 → 4.0.0-next.3
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 +10 -0
- package/dist/index.d.cts +54 -7
- package/dist/index.d.mts +54 -7
- package/dist/index.mjs +10 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1254,6 +1254,15 @@ let CollectionRefTypes = /* @__PURE__ */ function(CollectionRefTypes) {
|
|
|
1254
1254
|
}({});
|
|
1255
1255
|
//#endregion
|
|
1256
1256
|
//#region models/comment.ts
|
|
1257
|
+
/**
|
|
1258
|
+
* 评论锚之模式:block 锚至单 block,range 锚至 block 内字符 range。
|
|
1259
|
+
* 与服务端 `apps/core/src/modules/comment/comment.enum.ts` 同步。
|
|
1260
|
+
*/
|
|
1261
|
+
let CommentAnchorMode = /* @__PURE__ */ function(CommentAnchorMode) {
|
|
1262
|
+
CommentAnchorMode["Block"] = "block";
|
|
1263
|
+
CommentAnchorMode["Range"] = "range";
|
|
1264
|
+
return CommentAnchorMode;
|
|
1265
|
+
}({});
|
|
1257
1266
|
let CommentState = /* @__PURE__ */ function(CommentState) {
|
|
1258
1267
|
CommentState[CommentState["Unread"] = 0] = "Unread";
|
|
1259
1268
|
CommentState[CommentState["Read"] = 1] = "Read";
|
|
@@ -1338,6 +1347,7 @@ exports.AggregateController = AggregateController;
|
|
|
1338
1347
|
exports.CategoryController = CategoryController;
|
|
1339
1348
|
exports.CategoryType = CategoryType;
|
|
1340
1349
|
exports.CollectionRefTypes = CollectionRefTypes;
|
|
1350
|
+
exports.CommentAnchorMode = CommentAnchorMode;
|
|
1341
1351
|
exports.CommentController = CommentController;
|
|
1342
1352
|
exports.CommentState = CommentState;
|
|
1343
1353
|
exports.EnumPageType = EnumPageType;
|
package/dist/index.d.cts
CHANGED
|
@@ -191,7 +191,7 @@ interface PostModelMarkdown {
|
|
|
191
191
|
slug: string;
|
|
192
192
|
categoryId: string;
|
|
193
193
|
category: CategoryModel;
|
|
194
|
-
images?: Image[];
|
|
194
|
+
images?: Image[] | null;
|
|
195
195
|
isPublished: boolean;
|
|
196
196
|
readCount: number;
|
|
197
197
|
likeCount: number;
|
|
@@ -214,7 +214,7 @@ interface PostModelLexical {
|
|
|
214
214
|
slug: string;
|
|
215
215
|
categoryId: string;
|
|
216
216
|
category: CategoryModel;
|
|
217
|
-
images?: Image[];
|
|
217
|
+
images?: Image[] | null;
|
|
218
218
|
isPublished: boolean;
|
|
219
219
|
readCount: number;
|
|
220
220
|
likeCount: number;
|
|
@@ -800,6 +800,50 @@ interface CommentParentPreview {
|
|
|
800
800
|
text: string;
|
|
801
801
|
isDeleted: boolean;
|
|
802
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* 评论锚之模式:block 锚至单 block,range 锚至 block 内字符 range。
|
|
805
|
+
* 与服务端 `apps/core/src/modules/comment/comment.enum.ts` 同步。
|
|
806
|
+
*/
|
|
807
|
+
declare enum CommentAnchorMode {
|
|
808
|
+
Block = "block",
|
|
809
|
+
Range = "range"
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 评论锚定到内容块的元数据。两种 mode 共用一组字段,按 mode 不同取
|
|
813
|
+
* 不同子集;range 模式下 `startOffset`/`endOffset` 必填,block 模式下
|
|
814
|
+
* 二者皆可省。
|
|
815
|
+
*/
|
|
816
|
+
interface CommentAnchorModel {
|
|
817
|
+
mode: CommentAnchorMode;
|
|
818
|
+
blockId: string;
|
|
819
|
+
blockType?: string;
|
|
820
|
+
blockFingerprint?: string;
|
|
821
|
+
snapshotText?: string;
|
|
822
|
+
quote?: string;
|
|
823
|
+
prefix?: string;
|
|
824
|
+
suffix?: string;
|
|
825
|
+
startOffset?: number;
|
|
826
|
+
endOffset?: number;
|
|
827
|
+
contentHashAtCreate?: string;
|
|
828
|
+
contentHashCurrent?: string;
|
|
829
|
+
lastResolvedAt?: string;
|
|
830
|
+
lang?: string | null;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* 评论 ref 摘要:list/admin 端点之 attachRef 注入。orphan ref(目标已删)
|
|
834
|
+
* 时为 null。Mirrors server's `CommentRefSummary`.
|
|
835
|
+
*/
|
|
836
|
+
interface CommentRefSummary {
|
|
837
|
+
id: string;
|
|
838
|
+
type: CollectionRefTypes;
|
|
839
|
+
title?: string;
|
|
840
|
+
slug?: string | null;
|
|
841
|
+
nid?: number;
|
|
842
|
+
category?: {
|
|
843
|
+
name: string;
|
|
844
|
+
slug: string;
|
|
845
|
+
} | null;
|
|
846
|
+
}
|
|
803
847
|
interface CommentModel {
|
|
804
848
|
id: string;
|
|
805
849
|
createdAt: string;
|
|
@@ -808,7 +852,8 @@ interface CommentModel {
|
|
|
808
852
|
state: number;
|
|
809
853
|
author: string | null;
|
|
810
854
|
text: string;
|
|
811
|
-
|
|
855
|
+
/** 仅鉴权 admin 端点附带;公开端点由 `CommentFilterEmailInterceptor` 剥离。 */
|
|
856
|
+
mail?: string | null;
|
|
812
857
|
url: string | null;
|
|
813
858
|
ip: string | null;
|
|
814
859
|
agent: string | null;
|
|
@@ -825,9 +870,11 @@ interface CommentModel {
|
|
|
825
870
|
authProvider: string | null;
|
|
826
871
|
readerId: string | null;
|
|
827
872
|
editedAt: string | null;
|
|
828
|
-
anchor:
|
|
873
|
+
anchor: CommentAnchorModel | null;
|
|
829
874
|
/** 仅 list/detail 端点附加(服务端 attachParentPreview 之结果)。 */
|
|
830
875
|
parent?: CommentParentPreview | null;
|
|
876
|
+
/** admin/list 端点附加(服务端 attachRef 之结果);orphan 时为 null。 */
|
|
877
|
+
ref?: CommentRefSummary | null;
|
|
831
878
|
}
|
|
832
879
|
interface CommentReplyWindow {
|
|
833
880
|
total: number;
|
|
@@ -902,7 +949,7 @@ interface PageModelMarkdown {
|
|
|
902
949
|
contentFormat?: 'markdown';
|
|
903
950
|
content?: undefined;
|
|
904
951
|
meta?: Record<string, any> | null;
|
|
905
|
-
images?: Image[];
|
|
952
|
+
images?: Image[] | null;
|
|
906
953
|
order?: number;
|
|
907
954
|
type?: EnumPageType;
|
|
908
955
|
options?: object;
|
|
@@ -918,7 +965,7 @@ interface PageModelLexical {
|
|
|
918
965
|
contentFormat: 'lexical';
|
|
919
966
|
content: string;
|
|
920
967
|
meta?: Record<string, any> | null;
|
|
921
|
-
images?: Image[];
|
|
968
|
+
images?: Image[] | null;
|
|
922
969
|
order?: number;
|
|
923
970
|
type?: EnumPageType;
|
|
924
971
|
options?: object;
|
|
@@ -2890,4 +2937,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2890
2937
|
*/
|
|
2891
2938
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2892
2939
|
//#endregion
|
|
2893
|
-
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, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentParentPreview, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, CommentUploadConfigDto, CommentUploadResultDto, Coordinate, 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, PageModelLexical, PageModelMarkdown, Pager, PaginateResult, PostContentFormat, PostController, type PostListItem, type PostListOptions, PostModel, PostModelLexical, PostModelMarkdown, PostRelatedSummary, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefSummary, 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, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
2940
|
+
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, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentAnchorMode, CommentAnchorModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentParentPreview, CommentRef, CommentRefSummary, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, CommentUploadConfigDto, CommentUploadResultDto, Coordinate, 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, PageModelLexical, PageModelMarkdown, Pager, PaginateResult, PostContentFormat, PostController, type PostListItem, type PostListOptions, PostModel, PostModelLexical, PostModelMarkdown, PostRelatedSummary, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefSummary, 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, 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
|
@@ -191,7 +191,7 @@ interface PostModelMarkdown {
|
|
|
191
191
|
slug: string;
|
|
192
192
|
categoryId: string;
|
|
193
193
|
category: CategoryModel;
|
|
194
|
-
images?: Image[];
|
|
194
|
+
images?: Image[] | null;
|
|
195
195
|
isPublished: boolean;
|
|
196
196
|
readCount: number;
|
|
197
197
|
likeCount: number;
|
|
@@ -214,7 +214,7 @@ interface PostModelLexical {
|
|
|
214
214
|
slug: string;
|
|
215
215
|
categoryId: string;
|
|
216
216
|
category: CategoryModel;
|
|
217
|
-
images?: Image[];
|
|
217
|
+
images?: Image[] | null;
|
|
218
218
|
isPublished: boolean;
|
|
219
219
|
readCount: number;
|
|
220
220
|
likeCount: number;
|
|
@@ -800,6 +800,50 @@ interface CommentParentPreview {
|
|
|
800
800
|
text: string;
|
|
801
801
|
isDeleted: boolean;
|
|
802
802
|
}
|
|
803
|
+
/**
|
|
804
|
+
* 评论锚之模式:block 锚至单 block,range 锚至 block 内字符 range。
|
|
805
|
+
* 与服务端 `apps/core/src/modules/comment/comment.enum.ts` 同步。
|
|
806
|
+
*/
|
|
807
|
+
declare enum CommentAnchorMode {
|
|
808
|
+
Block = "block",
|
|
809
|
+
Range = "range"
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 评论锚定到内容块的元数据。两种 mode 共用一组字段,按 mode 不同取
|
|
813
|
+
* 不同子集;range 模式下 `startOffset`/`endOffset` 必填,block 模式下
|
|
814
|
+
* 二者皆可省。
|
|
815
|
+
*/
|
|
816
|
+
interface CommentAnchorModel {
|
|
817
|
+
mode: CommentAnchorMode;
|
|
818
|
+
blockId: string;
|
|
819
|
+
blockType?: string;
|
|
820
|
+
blockFingerprint?: string;
|
|
821
|
+
snapshotText?: string;
|
|
822
|
+
quote?: string;
|
|
823
|
+
prefix?: string;
|
|
824
|
+
suffix?: string;
|
|
825
|
+
startOffset?: number;
|
|
826
|
+
endOffset?: number;
|
|
827
|
+
contentHashAtCreate?: string;
|
|
828
|
+
contentHashCurrent?: string;
|
|
829
|
+
lastResolvedAt?: string;
|
|
830
|
+
lang?: string | null;
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* 评论 ref 摘要:list/admin 端点之 attachRef 注入。orphan ref(目标已删)
|
|
834
|
+
* 时为 null。Mirrors server's `CommentRefSummary`.
|
|
835
|
+
*/
|
|
836
|
+
interface CommentRefSummary {
|
|
837
|
+
id: string;
|
|
838
|
+
type: CollectionRefTypes;
|
|
839
|
+
title?: string;
|
|
840
|
+
slug?: string | null;
|
|
841
|
+
nid?: number;
|
|
842
|
+
category?: {
|
|
843
|
+
name: string;
|
|
844
|
+
slug: string;
|
|
845
|
+
} | null;
|
|
846
|
+
}
|
|
803
847
|
interface CommentModel {
|
|
804
848
|
id: string;
|
|
805
849
|
createdAt: string;
|
|
@@ -808,7 +852,8 @@ interface CommentModel {
|
|
|
808
852
|
state: number;
|
|
809
853
|
author: string | null;
|
|
810
854
|
text: string;
|
|
811
|
-
|
|
855
|
+
/** 仅鉴权 admin 端点附带;公开端点由 `CommentFilterEmailInterceptor` 剥离。 */
|
|
856
|
+
mail?: string | null;
|
|
812
857
|
url: string | null;
|
|
813
858
|
ip: string | null;
|
|
814
859
|
agent: string | null;
|
|
@@ -825,9 +870,11 @@ interface CommentModel {
|
|
|
825
870
|
authProvider: string | null;
|
|
826
871
|
readerId: string | null;
|
|
827
872
|
editedAt: string | null;
|
|
828
|
-
anchor:
|
|
873
|
+
anchor: CommentAnchorModel | null;
|
|
829
874
|
/** 仅 list/detail 端点附加(服务端 attachParentPreview 之结果)。 */
|
|
830
875
|
parent?: CommentParentPreview | null;
|
|
876
|
+
/** admin/list 端点附加(服务端 attachRef 之结果);orphan 时为 null。 */
|
|
877
|
+
ref?: CommentRefSummary | null;
|
|
831
878
|
}
|
|
832
879
|
interface CommentReplyWindow {
|
|
833
880
|
total: number;
|
|
@@ -902,7 +949,7 @@ interface PageModelMarkdown {
|
|
|
902
949
|
contentFormat?: 'markdown';
|
|
903
950
|
content?: undefined;
|
|
904
951
|
meta?: Record<string, any> | null;
|
|
905
|
-
images?: Image[];
|
|
952
|
+
images?: Image[] | null;
|
|
906
953
|
order?: number;
|
|
907
954
|
type?: EnumPageType;
|
|
908
955
|
options?: object;
|
|
@@ -918,7 +965,7 @@ interface PageModelLexical {
|
|
|
918
965
|
contentFormat: 'lexical';
|
|
919
966
|
content: string;
|
|
920
967
|
meta?: Record<string, any> | null;
|
|
921
|
-
images?: Image[];
|
|
968
|
+
images?: Image[] | null;
|
|
922
969
|
order?: number;
|
|
923
970
|
type?: EnumPageType;
|
|
924
971
|
options?: object;
|
|
@@ -2890,4 +2937,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2890
2937
|
*/
|
|
2891
2938
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2892
2939
|
//#endregion
|
|
2893
|
-
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, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentParentPreview, CommentRef, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, CommentUploadConfigDto, CommentUploadResultDto, Coordinate, 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, PageModelLexical, PageModelMarkdown, Pager, PaginateResult, PostContentFormat, PostController, type PostListItem, type PostListOptions, PostModel, PostModelLexical, PostModelMarkdown, PostRelatedSummary, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefSummary, 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, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
2940
|
+
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, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryChildPost, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CodeMetadata, CollectionRefTypes, CommentAnchorMode, CommentAnchorModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentParentPreview, CommentRef, CommentRefSummary, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, CommentUploadConfigDto, CommentUploadResultDto, Coordinate, 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, PageModelLexical, PageModelMarkdown, Pager, PaginateResult, PostContentFormat, PostController, type PostListItem, type PostListOptions, PostModel, PostModelLexical, PostModelMarkdown, PostRelatedSummary, ProjectController, ProjectModel, ReaderCommentDto, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyMetadata, RecentlyModel, RecentlyRefSummary, 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, ThirdPartyServiceIntegrationModel, TimelineData, TimelineType, TopicController, TopicModel, TranslationMeta, Url, UrlOptionModel, UserController, UserModel, allControllerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/dist/index.mjs
CHANGED
|
@@ -1250,6 +1250,15 @@ let CollectionRefTypes = /* @__PURE__ */ function(CollectionRefTypes) {
|
|
|
1250
1250
|
}({});
|
|
1251
1251
|
//#endregion
|
|
1252
1252
|
//#region models/comment.ts
|
|
1253
|
+
/**
|
|
1254
|
+
* 评论锚之模式:block 锚至单 block,range 锚至 block 内字符 range。
|
|
1255
|
+
* 与服务端 `apps/core/src/modules/comment/comment.enum.ts` 同步。
|
|
1256
|
+
*/
|
|
1257
|
+
let CommentAnchorMode = /* @__PURE__ */ function(CommentAnchorMode) {
|
|
1258
|
+
CommentAnchorMode["Block"] = "block";
|
|
1259
|
+
CommentAnchorMode["Range"] = "range";
|
|
1260
|
+
return CommentAnchorMode;
|
|
1261
|
+
}({});
|
|
1253
1262
|
let CommentState = /* @__PURE__ */ function(CommentState) {
|
|
1254
1263
|
CommentState[CommentState["Unread"] = 0] = "Unread";
|
|
1255
1264
|
CommentState[CommentState["Read"] = 1] = "Read";
|
|
@@ -1327,4 +1336,4 @@ const SubscribeTypeToBitMap = {
|
|
|
1327
1336
|
//#region index.ts
|
|
1328
1337
|
var api_client_default = createClient;
|
|
1329
1338
|
//#endregion
|
|
1330
|
-
export { AIController, AckController, ActivityController, AggregateController, CategoryController, CategoryType, CollectionRefTypes, CommentController, CommentState, EnumPageType, LinkController, LinkState, LinkType, NoteController, PageController, PostController, ProjectController, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyRefTypes, RecentlyTypeEnum, RequestError, SayController, SearchController, ServerlessController, SnippetController, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeTypeToBitMap, TimelineType, TopicController, UserController, allControllerNames, allControllers, createClient, api_client_default as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
1339
|
+
export { AIController, AckController, ActivityController, AggregateController, CategoryController, CategoryType, CollectionRefTypes, CommentAnchorMode, CommentController, CommentState, EnumPageType, LinkController, LinkState, LinkType, NoteController, PageController, PostController, ProjectController, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyRefTypes, RecentlyTypeEnum, RequestError, SayController, SearchController, ServerlessController, SnippetController, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeTypeToBitMap, TimelineType, TopicController, UserController, allControllerNames, allControllers, createClient, api_client_default as default, camelcaseKeys as simpleCamelcaseKeys };
|