@mx-space/api-client 2.1.2 → 2.3.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.cjs +19 -2
- package/dist/index.d.cts +122 -24
- package/dist/index.d.mts +122 -24
- package/dist/index.mjs +19 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -422,6 +422,9 @@ var CommentController = class {
|
|
|
422
422
|
size: size || 10
|
|
423
423
|
} });
|
|
424
424
|
}
|
|
425
|
+
getThreadReplies(rootCommentId, params = {}) {
|
|
426
|
+
return this.proxy.thread(rootCommentId).get({ params });
|
|
427
|
+
}
|
|
425
428
|
/**
|
|
426
429
|
* 评论
|
|
427
430
|
*/
|
|
@@ -538,14 +541,16 @@ var NoteController = class {
|
|
|
538
541
|
* 日记列表分页
|
|
539
542
|
*/
|
|
540
543
|
getList(page = 1, perPage = 10, options = {}) {
|
|
541
|
-
const { select, sortBy, sortOrder, year } = options;
|
|
544
|
+
const { select, sortBy, sortOrder, year, lang, withSummary } = options;
|
|
542
545
|
return this.proxy.get({ params: {
|
|
543
546
|
page,
|
|
544
547
|
size: perPage,
|
|
545
548
|
select: select?.join(" "),
|
|
546
549
|
sortBy,
|
|
547
550
|
sortOrder,
|
|
548
|
-
year
|
|
551
|
+
year,
|
|
552
|
+
lang,
|
|
553
|
+
withSummary: withSummary ? "1" : void 0
|
|
549
554
|
} });
|
|
550
555
|
}
|
|
551
556
|
/**
|
|
@@ -1242,6 +1247,17 @@ let RecentlyRefTypes = /* @__PURE__ */ function(RecentlyRefTypes) {
|
|
|
1242
1247
|
RecentlyRefTypes["Page"] = "Page";
|
|
1243
1248
|
return RecentlyRefTypes;
|
|
1244
1249
|
}({});
|
|
1250
|
+
let RecentlyTypeEnum = /* @__PURE__ */ function(RecentlyTypeEnum) {
|
|
1251
|
+
RecentlyTypeEnum["Text"] = "text";
|
|
1252
|
+
RecentlyTypeEnum["Book"] = "book";
|
|
1253
|
+
RecentlyTypeEnum["Media"] = "media";
|
|
1254
|
+
RecentlyTypeEnum["Music"] = "music";
|
|
1255
|
+
RecentlyTypeEnum["Github"] = "github";
|
|
1256
|
+
RecentlyTypeEnum["Link"] = "link";
|
|
1257
|
+
RecentlyTypeEnum["Academic"] = "academic";
|
|
1258
|
+
RecentlyTypeEnum["Code"] = "code";
|
|
1259
|
+
return RecentlyTypeEnum;
|
|
1260
|
+
}({});
|
|
1245
1261
|
|
|
1246
1262
|
//#endregion
|
|
1247
1263
|
//#region models/snippet.ts
|
|
@@ -1294,6 +1310,7 @@ exports.RecentlyAttitudeEnum = RecentlyAttitudeEnum;
|
|
|
1294
1310
|
exports.RecentlyAttitudeResultEnum = RecentlyAttitudeResultEnum;
|
|
1295
1311
|
exports.RecentlyController = RecentlyController;
|
|
1296
1312
|
exports.RecentlyRefTypes = RecentlyRefTypes;
|
|
1313
|
+
exports.RecentlyTypeEnum = RecentlyTypeEnum;
|
|
1297
1314
|
exports.RequestError = RequestError;
|
|
1298
1315
|
exports.SayController = SayController;
|
|
1299
1316
|
exports.SearchController = SearchController;
|
package/dist/index.d.cts
CHANGED
|
@@ -731,24 +731,44 @@ interface CommentModel extends BaseModel {
|
|
|
731
731
|
refType: CollectionRefTypes;
|
|
732
732
|
ref: string;
|
|
733
733
|
state: number;
|
|
734
|
-
commentsIndex: number;
|
|
735
734
|
author: string;
|
|
736
735
|
text: string;
|
|
737
736
|
mail?: string;
|
|
738
737
|
url?: string;
|
|
739
738
|
ip?: string;
|
|
740
739
|
agent?: string;
|
|
741
|
-
key: string;
|
|
742
740
|
pin?: boolean;
|
|
743
741
|
avatar: string;
|
|
744
|
-
|
|
745
|
-
|
|
742
|
+
parentCommentId?: string | null;
|
|
743
|
+
rootCommentId?: string | null;
|
|
744
|
+
replyCount?: number;
|
|
745
|
+
latestReplyAt?: string | null;
|
|
746
|
+
isDeleted?: boolean;
|
|
747
|
+
deletedAt?: string;
|
|
746
748
|
isWhispers?: boolean;
|
|
747
749
|
location?: string;
|
|
748
750
|
source?: string;
|
|
749
751
|
readerId?: string;
|
|
750
752
|
editedAt?: string;
|
|
751
753
|
}
|
|
754
|
+
interface CommentReplyWindow {
|
|
755
|
+
total: number;
|
|
756
|
+
returned: number;
|
|
757
|
+
threshold: number;
|
|
758
|
+
hasHidden: boolean;
|
|
759
|
+
hiddenCount: number;
|
|
760
|
+
nextCursor?: string;
|
|
761
|
+
}
|
|
762
|
+
interface CommentThreadItem extends CommentModel {
|
|
763
|
+
replies: CommentModel[];
|
|
764
|
+
replyWindow: CommentReplyWindow;
|
|
765
|
+
}
|
|
766
|
+
interface CommentThreadReplies {
|
|
767
|
+
replies: CommentModel[];
|
|
768
|
+
nextCursor?: string;
|
|
769
|
+
remaining: number;
|
|
770
|
+
done: boolean;
|
|
771
|
+
}
|
|
752
772
|
interface CommentRef {
|
|
753
773
|
id: string;
|
|
754
774
|
categoryId?: string;
|
|
@@ -816,8 +836,74 @@ type RecentlyRefType = {
|
|
|
816
836
|
title: string;
|
|
817
837
|
url: string;
|
|
818
838
|
};
|
|
839
|
+
declare enum RecentlyTypeEnum {
|
|
840
|
+
Text = "text",
|
|
841
|
+
Book = "book",
|
|
842
|
+
Media = "media",
|
|
843
|
+
Music = "music",
|
|
844
|
+
Github = "github",
|
|
845
|
+
Link = "link",
|
|
846
|
+
Academic = "academic",
|
|
847
|
+
Code = "code"
|
|
848
|
+
}
|
|
849
|
+
interface BookMetadata {
|
|
850
|
+
url: string;
|
|
851
|
+
title: string;
|
|
852
|
+
author: string;
|
|
853
|
+
cover?: string;
|
|
854
|
+
rating?: number;
|
|
855
|
+
isbn?: string;
|
|
856
|
+
}
|
|
857
|
+
interface MediaMetadata {
|
|
858
|
+
url: string;
|
|
859
|
+
title: string;
|
|
860
|
+
originalTitle?: string;
|
|
861
|
+
cover?: string;
|
|
862
|
+
rating?: number;
|
|
863
|
+
description?: string;
|
|
864
|
+
genre?: string;
|
|
865
|
+
}
|
|
866
|
+
interface MusicMetadata {
|
|
867
|
+
url: string;
|
|
868
|
+
title: string;
|
|
869
|
+
artist: string;
|
|
870
|
+
album?: string;
|
|
871
|
+
cover?: string;
|
|
872
|
+
source?: string;
|
|
873
|
+
}
|
|
874
|
+
interface GithubMetadata {
|
|
875
|
+
url: string;
|
|
876
|
+
owner: string;
|
|
877
|
+
repo: string;
|
|
878
|
+
description?: string;
|
|
879
|
+
stars?: number;
|
|
880
|
+
language?: string;
|
|
881
|
+
languageColor?: string;
|
|
882
|
+
}
|
|
883
|
+
interface LinkMetadata {
|
|
884
|
+
url: string;
|
|
885
|
+
title?: string;
|
|
886
|
+
description?: string;
|
|
887
|
+
image?: string;
|
|
888
|
+
}
|
|
889
|
+
interface AcademicMetadata {
|
|
890
|
+
url: string;
|
|
891
|
+
title: string;
|
|
892
|
+
authors?: string[];
|
|
893
|
+
arxivId?: string;
|
|
894
|
+
}
|
|
895
|
+
interface CodeMetadata {
|
|
896
|
+
url: string;
|
|
897
|
+
title: string;
|
|
898
|
+
difficulty?: string;
|
|
899
|
+
tags?: string[];
|
|
900
|
+
platform?: string;
|
|
901
|
+
}
|
|
902
|
+
type RecentlyMetadata = BookMetadata | MediaMetadata | MusicMetadata | GithubMetadata | LinkMetadata | AcademicMetadata | CodeMetadata;
|
|
819
903
|
interface RecentlyModel extends BaseCommentIndexModel {
|
|
820
904
|
content: string;
|
|
905
|
+
type: RecentlyTypeEnum;
|
|
906
|
+
metadata?: RecentlyMetadata;
|
|
821
907
|
ref?: RecentlyRefType & {
|
|
822
908
|
[key: string]: any;
|
|
823
909
|
};
|
|
@@ -1477,7 +1563,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1477
1563
|
name: string;
|
|
1478
1564
|
created: string;
|
|
1479
1565
|
id: string;
|
|
1480
|
-
children: Pick<PostModel, "id" | "
|
|
1566
|
+
children: Pick<PostModel, "id" | "created" | "title" | "modified" | "slug">[];
|
|
1481
1567
|
} : T_1 : never : never;
|
|
1482
1568
|
} : ResponseWrapper;
|
|
1483
1569
|
$request: {
|
|
@@ -1529,7 +1615,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1529
1615
|
};
|
|
1530
1616
|
}) ? T_1 extends unknown ? {
|
|
1531
1617
|
tag: string;
|
|
1532
|
-
data: Pick<PostModel, "category" | "id" | "
|
|
1618
|
+
data: Pick<PostModel, "category" | "id" | "created" | "title" | "slug">[];
|
|
1533
1619
|
} : T_1 : never : never;
|
|
1534
1620
|
} : ResponseWrapper;
|
|
1535
1621
|
$request: {
|
|
@@ -1595,30 +1681,40 @@ declare class CommentController<ResponseWrapper> implements IController {
|
|
|
1595
1681
|
* 获取文章的评论列表
|
|
1596
1682
|
* @param refId 文章 Id
|
|
1597
1683
|
*/
|
|
1598
|
-
getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<
|
|
1684
|
+
getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<CommentThreadItem & {
|
|
1599
1685
|
ref: string;
|
|
1600
1686
|
}> & {
|
|
1601
1687
|
readers: Record<string, ReaderModel>;
|
|
1602
1688
|
}, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1603
1689
|
[key: string]: any;
|
|
1604
|
-
data: PaginateResult<
|
|
1690
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1605
1691
|
ref: string;
|
|
1606
1692
|
}> & {
|
|
1607
1693
|
readers: Record<string, ReaderModel>;
|
|
1608
1694
|
};
|
|
1609
1695
|
} : ResponseWrapper extends {
|
|
1610
|
-
data: PaginateResult<
|
|
1696
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1611
1697
|
ref: string;
|
|
1612
1698
|
}> & {
|
|
1613
1699
|
readers: Record<string, ReaderModel>;
|
|
1614
1700
|
};
|
|
1615
1701
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1616
|
-
data: PaginateResult<
|
|
1702
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1617
1703
|
ref: string;
|
|
1618
1704
|
}> & {
|
|
1619
1705
|
readers: Record<string, ReaderModel>;
|
|
1620
1706
|
};
|
|
1621
1707
|
}>;
|
|
1708
|
+
getThreadReplies(rootCommentId: string, params?: PaginationParams & {
|
|
1709
|
+
cursor?: string;
|
|
1710
|
+
}): RequestProxyResult<CommentThreadReplies, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1711
|
+
[key: string]: any;
|
|
1712
|
+
data: CommentThreadReplies;
|
|
1713
|
+
} : ResponseWrapper extends {
|
|
1714
|
+
data: CommentThreadReplies;
|
|
1715
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1716
|
+
data: CommentThreadReplies;
|
|
1717
|
+
}>;
|
|
1622
1718
|
/**
|
|
1623
1719
|
* 评论
|
|
1624
1720
|
*/
|
|
@@ -1714,6 +1810,8 @@ type NoteListOptions = {
|
|
|
1714
1810
|
year?: number;
|
|
1715
1811
|
sortBy?: 'weather' | 'mood' | 'title' | 'created' | 'modified';
|
|
1716
1812
|
sortOrder?: 1 | -1;
|
|
1813
|
+
lang?: string;
|
|
1814
|
+
withSummary?: boolean;
|
|
1717
1815
|
};
|
|
1718
1816
|
type NoteByNidOptions = {
|
|
1719
1817
|
password?: string;
|
|
@@ -1728,7 +1826,7 @@ type NoteMiddleListOptions = {
|
|
|
1728
1826
|
type NoteTopicListOptions = SortOptions & {
|
|
1729
1827
|
lang?: string;
|
|
1730
1828
|
};
|
|
1731
|
-
type NoteTimelineItem = Pick<NoteModel, 'id' | 'title' | 'nid' | 'created' | 'isPublished'> & {
|
|
1829
|
+
type NoteTimelineItem = Pick<NoteModel, 'id' | 'title' | 'nid' | 'slug' | 'created' | 'isPublished'> & {
|
|
1732
1830
|
isTranslated?: boolean;
|
|
1733
1831
|
translationMeta?: TranslationMeta;
|
|
1734
1832
|
};
|
|
@@ -2334,11 +2432,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2334
2432
|
* @param options
|
|
2335
2433
|
* @returns
|
|
2336
2434
|
*/
|
|
2337
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2435
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2338
2436
|
type: "post";
|
|
2339
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2437
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2340
2438
|
type: "note";
|
|
2341
|
-
}) | (Pick<PageModel, "id" | "
|
|
2439
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2342
2440
|
type: "page";
|
|
2343
2441
|
})> & {
|
|
2344
2442
|
/**
|
|
@@ -2347,11 +2445,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2347
2445
|
raw?: any;
|
|
2348
2446
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2349
2447
|
[key: string]: any;
|
|
2350
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2448
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2351
2449
|
type: "post";
|
|
2352
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2450
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2353
2451
|
type: "note";
|
|
2354
|
-
}) | (Pick<PageModel, "id" | "
|
|
2452
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2355
2453
|
type: "page";
|
|
2356
2454
|
})> & {
|
|
2357
2455
|
/**
|
|
@@ -2360,11 +2458,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2360
2458
|
raw?: any;
|
|
2361
2459
|
}, ResponseWrapper>;
|
|
2362
2460
|
} : ResponseWrapper extends {
|
|
2363
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2461
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2364
2462
|
type: "post";
|
|
2365
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2463
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2366
2464
|
type: "note";
|
|
2367
|
-
}) | (Pick<PageModel, "id" | "
|
|
2465
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2368
2466
|
type: "page";
|
|
2369
2467
|
})> & {
|
|
2370
2468
|
/**
|
|
@@ -2373,11 +2471,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2373
2471
|
raw?: any;
|
|
2374
2472
|
}, ResponseWrapper>;
|
|
2375
2473
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2376
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2474
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2377
2475
|
type: "post";
|
|
2378
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2476
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2379
2477
|
type: "note";
|
|
2380
|
-
}) | (Pick<PageModel, "id" | "
|
|
2478
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2381
2479
|
type: "page";
|
|
2382
2480
|
})> & {
|
|
2383
2481
|
/**
|
|
@@ -2526,4 +2624,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2526
2624
|
*/
|
|
2527
2625
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2528
2626
|
//#endregion
|
|
2529
|
-
export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, ModelWithTranslation, 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, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, 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 };
|
|
2627
|
+
export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, 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, 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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -731,24 +731,44 @@ interface CommentModel extends BaseModel {
|
|
|
731
731
|
refType: CollectionRefTypes;
|
|
732
732
|
ref: string;
|
|
733
733
|
state: number;
|
|
734
|
-
commentsIndex: number;
|
|
735
734
|
author: string;
|
|
736
735
|
text: string;
|
|
737
736
|
mail?: string;
|
|
738
737
|
url?: string;
|
|
739
738
|
ip?: string;
|
|
740
739
|
agent?: string;
|
|
741
|
-
key: string;
|
|
742
740
|
pin?: boolean;
|
|
743
741
|
avatar: string;
|
|
744
|
-
|
|
745
|
-
|
|
742
|
+
parentCommentId?: string | null;
|
|
743
|
+
rootCommentId?: string | null;
|
|
744
|
+
replyCount?: number;
|
|
745
|
+
latestReplyAt?: string | null;
|
|
746
|
+
isDeleted?: boolean;
|
|
747
|
+
deletedAt?: string;
|
|
746
748
|
isWhispers?: boolean;
|
|
747
749
|
location?: string;
|
|
748
750
|
source?: string;
|
|
749
751
|
readerId?: string;
|
|
750
752
|
editedAt?: string;
|
|
751
753
|
}
|
|
754
|
+
interface CommentReplyWindow {
|
|
755
|
+
total: number;
|
|
756
|
+
returned: number;
|
|
757
|
+
threshold: number;
|
|
758
|
+
hasHidden: boolean;
|
|
759
|
+
hiddenCount: number;
|
|
760
|
+
nextCursor?: string;
|
|
761
|
+
}
|
|
762
|
+
interface CommentThreadItem extends CommentModel {
|
|
763
|
+
replies: CommentModel[];
|
|
764
|
+
replyWindow: CommentReplyWindow;
|
|
765
|
+
}
|
|
766
|
+
interface CommentThreadReplies {
|
|
767
|
+
replies: CommentModel[];
|
|
768
|
+
nextCursor?: string;
|
|
769
|
+
remaining: number;
|
|
770
|
+
done: boolean;
|
|
771
|
+
}
|
|
752
772
|
interface CommentRef {
|
|
753
773
|
id: string;
|
|
754
774
|
categoryId?: string;
|
|
@@ -816,8 +836,74 @@ type RecentlyRefType = {
|
|
|
816
836
|
title: string;
|
|
817
837
|
url: string;
|
|
818
838
|
};
|
|
839
|
+
declare enum RecentlyTypeEnum {
|
|
840
|
+
Text = "text",
|
|
841
|
+
Book = "book",
|
|
842
|
+
Media = "media",
|
|
843
|
+
Music = "music",
|
|
844
|
+
Github = "github",
|
|
845
|
+
Link = "link",
|
|
846
|
+
Academic = "academic",
|
|
847
|
+
Code = "code"
|
|
848
|
+
}
|
|
849
|
+
interface BookMetadata {
|
|
850
|
+
url: string;
|
|
851
|
+
title: string;
|
|
852
|
+
author: string;
|
|
853
|
+
cover?: string;
|
|
854
|
+
rating?: number;
|
|
855
|
+
isbn?: string;
|
|
856
|
+
}
|
|
857
|
+
interface MediaMetadata {
|
|
858
|
+
url: string;
|
|
859
|
+
title: string;
|
|
860
|
+
originalTitle?: string;
|
|
861
|
+
cover?: string;
|
|
862
|
+
rating?: number;
|
|
863
|
+
description?: string;
|
|
864
|
+
genre?: string;
|
|
865
|
+
}
|
|
866
|
+
interface MusicMetadata {
|
|
867
|
+
url: string;
|
|
868
|
+
title: string;
|
|
869
|
+
artist: string;
|
|
870
|
+
album?: string;
|
|
871
|
+
cover?: string;
|
|
872
|
+
source?: string;
|
|
873
|
+
}
|
|
874
|
+
interface GithubMetadata {
|
|
875
|
+
url: string;
|
|
876
|
+
owner: string;
|
|
877
|
+
repo: string;
|
|
878
|
+
description?: string;
|
|
879
|
+
stars?: number;
|
|
880
|
+
language?: string;
|
|
881
|
+
languageColor?: string;
|
|
882
|
+
}
|
|
883
|
+
interface LinkMetadata {
|
|
884
|
+
url: string;
|
|
885
|
+
title?: string;
|
|
886
|
+
description?: string;
|
|
887
|
+
image?: string;
|
|
888
|
+
}
|
|
889
|
+
interface AcademicMetadata {
|
|
890
|
+
url: string;
|
|
891
|
+
title: string;
|
|
892
|
+
authors?: string[];
|
|
893
|
+
arxivId?: string;
|
|
894
|
+
}
|
|
895
|
+
interface CodeMetadata {
|
|
896
|
+
url: string;
|
|
897
|
+
title: string;
|
|
898
|
+
difficulty?: string;
|
|
899
|
+
tags?: string[];
|
|
900
|
+
platform?: string;
|
|
901
|
+
}
|
|
902
|
+
type RecentlyMetadata = BookMetadata | MediaMetadata | MusicMetadata | GithubMetadata | LinkMetadata | AcademicMetadata | CodeMetadata;
|
|
819
903
|
interface RecentlyModel extends BaseCommentIndexModel {
|
|
820
904
|
content: string;
|
|
905
|
+
type: RecentlyTypeEnum;
|
|
906
|
+
metadata?: RecentlyMetadata;
|
|
821
907
|
ref?: RecentlyRefType & {
|
|
822
908
|
[key: string]: any;
|
|
823
909
|
};
|
|
@@ -1477,7 +1563,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1477
1563
|
name: string;
|
|
1478
1564
|
created: string;
|
|
1479
1565
|
id: string;
|
|
1480
|
-
children: Pick<PostModel, "id" | "
|
|
1566
|
+
children: Pick<PostModel, "id" | "created" | "title" | "modified" | "slug">[];
|
|
1481
1567
|
} : T_1 : never : never;
|
|
1482
1568
|
} : ResponseWrapper;
|
|
1483
1569
|
$request: {
|
|
@@ -1529,7 +1615,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1529
1615
|
};
|
|
1530
1616
|
}) ? T_1 extends unknown ? {
|
|
1531
1617
|
tag: string;
|
|
1532
|
-
data: Pick<PostModel, "category" | "id" | "
|
|
1618
|
+
data: Pick<PostModel, "category" | "id" | "created" | "title" | "slug">[];
|
|
1533
1619
|
} : T_1 : never : never;
|
|
1534
1620
|
} : ResponseWrapper;
|
|
1535
1621
|
$request: {
|
|
@@ -1595,30 +1681,40 @@ declare class CommentController<ResponseWrapper> implements IController {
|
|
|
1595
1681
|
* 获取文章的评论列表
|
|
1596
1682
|
* @param refId 文章 Id
|
|
1597
1683
|
*/
|
|
1598
|
-
getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<
|
|
1684
|
+
getByRefId(refId: string, pagination?: PaginationParams): RequestProxyResult<PaginateResult<CommentThreadItem & {
|
|
1599
1685
|
ref: string;
|
|
1600
1686
|
}> & {
|
|
1601
1687
|
readers: Record<string, ReaderModel>;
|
|
1602
1688
|
}, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1603
1689
|
[key: string]: any;
|
|
1604
|
-
data: PaginateResult<
|
|
1690
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1605
1691
|
ref: string;
|
|
1606
1692
|
}> & {
|
|
1607
1693
|
readers: Record<string, ReaderModel>;
|
|
1608
1694
|
};
|
|
1609
1695
|
} : ResponseWrapper extends {
|
|
1610
|
-
data: PaginateResult<
|
|
1696
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1611
1697
|
ref: string;
|
|
1612
1698
|
}> & {
|
|
1613
1699
|
readers: Record<string, ReaderModel>;
|
|
1614
1700
|
};
|
|
1615
1701
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1616
|
-
data: PaginateResult<
|
|
1702
|
+
data: PaginateResult<CommentThreadItem & {
|
|
1617
1703
|
ref: string;
|
|
1618
1704
|
}> & {
|
|
1619
1705
|
readers: Record<string, ReaderModel>;
|
|
1620
1706
|
};
|
|
1621
1707
|
}>;
|
|
1708
|
+
getThreadReplies(rootCommentId: string, params?: PaginationParams & {
|
|
1709
|
+
cursor?: string;
|
|
1710
|
+
}): RequestProxyResult<CommentThreadReplies, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1711
|
+
[key: string]: any;
|
|
1712
|
+
data: CommentThreadReplies;
|
|
1713
|
+
} : ResponseWrapper extends {
|
|
1714
|
+
data: CommentThreadReplies;
|
|
1715
|
+
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1716
|
+
data: CommentThreadReplies;
|
|
1717
|
+
}>;
|
|
1622
1718
|
/**
|
|
1623
1719
|
* 评论
|
|
1624
1720
|
*/
|
|
@@ -1714,6 +1810,8 @@ type NoteListOptions = {
|
|
|
1714
1810
|
year?: number;
|
|
1715
1811
|
sortBy?: 'weather' | 'mood' | 'title' | 'created' | 'modified';
|
|
1716
1812
|
sortOrder?: 1 | -1;
|
|
1813
|
+
lang?: string;
|
|
1814
|
+
withSummary?: boolean;
|
|
1717
1815
|
};
|
|
1718
1816
|
type NoteByNidOptions = {
|
|
1719
1817
|
password?: string;
|
|
@@ -1728,7 +1826,7 @@ type NoteMiddleListOptions = {
|
|
|
1728
1826
|
type NoteTopicListOptions = SortOptions & {
|
|
1729
1827
|
lang?: string;
|
|
1730
1828
|
};
|
|
1731
|
-
type NoteTimelineItem = Pick<NoteModel, 'id' | 'title' | 'nid' | 'created' | 'isPublished'> & {
|
|
1829
|
+
type NoteTimelineItem = Pick<NoteModel, 'id' | 'title' | 'nid' | 'slug' | 'created' | 'isPublished'> & {
|
|
1732
1830
|
isTranslated?: boolean;
|
|
1733
1831
|
translationMeta?: TranslationMeta;
|
|
1734
1832
|
};
|
|
@@ -2334,11 +2432,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2334
2432
|
* @param options
|
|
2335
2433
|
* @returns
|
|
2336
2434
|
*/
|
|
2337
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2435
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2338
2436
|
type: "post";
|
|
2339
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2437
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2340
2438
|
type: "note";
|
|
2341
|
-
}) | (Pick<PageModel, "id" | "
|
|
2439
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2342
2440
|
type: "page";
|
|
2343
2441
|
})> & {
|
|
2344
2442
|
/**
|
|
@@ -2347,11 +2445,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2347
2445
|
raw?: any;
|
|
2348
2446
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2349
2447
|
[key: string]: any;
|
|
2350
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2448
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2351
2449
|
type: "post";
|
|
2352
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2450
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2353
2451
|
type: "note";
|
|
2354
|
-
}) | (Pick<PageModel, "id" | "
|
|
2452
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2355
2453
|
type: "page";
|
|
2356
2454
|
})> & {
|
|
2357
2455
|
/**
|
|
@@ -2360,11 +2458,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2360
2458
|
raw?: any;
|
|
2361
2459
|
}, ResponseWrapper>;
|
|
2362
2460
|
} : ResponseWrapper extends {
|
|
2363
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2461
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2364
2462
|
type: "post";
|
|
2365
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2463
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2366
2464
|
type: "note";
|
|
2367
|
-
}) | (Pick<PageModel, "id" | "
|
|
2465
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2368
2466
|
type: "page";
|
|
2369
2467
|
})> & {
|
|
2370
2468
|
/**
|
|
@@ -2373,11 +2471,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2373
2471
|
raw?: any;
|
|
2374
2472
|
}, ResponseWrapper>;
|
|
2375
2473
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2376
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2474
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2377
2475
|
type: "post";
|
|
2378
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2476
|
+
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2379
2477
|
type: "note";
|
|
2380
|
-
}) | (Pick<PageModel, "id" | "
|
|
2478
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2381
2479
|
type: "page";
|
|
2382
2480
|
})> & {
|
|
2383
2481
|
/**
|
|
@@ -2526,4 +2624,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2526
2624
|
*/
|
|
2527
2625
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2528
2626
|
//#endregion
|
|
2529
|
-
export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CheckLoggedResult, CollectionRefTypes, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, type HTTPClient, IConfig, IConfigKeys, type IRequestAdapter, Image, LastYearPublication, LatestCombinedItem, LatestData, LatestNoteItem, LatestPostItem, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, ModelWithTranslation, 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, ReaderModel, RecentActivities, RecentComment, RecentLike, RecentNote, RecentPost, RecentRecent, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, 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 };
|
|
2627
|
+
export { AIController, AIDeepReadingModel, AISummaryModel, AISummaryStreamEvent, AITranslationModel, AITranslationStreamEvent, AcademicMetadata, AckController, ActivityController, ActivityPresence, AdminExtraModel, AggregateAIConfig, AggregateController, AggregateRoot, AggregateRootWithTheme, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, AuthUser, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, BetterAuthSession, BetterAuthSessionResult, BetterAuthSignInResult, BetterAuthUser, BetterAuthUserRole, BingSearchOptionsModel, BookMetadata, CategoryController, CategoryEntries, 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, 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 };
|
package/dist/index.mjs
CHANGED
|
@@ -420,6 +420,9 @@ var CommentController = class {
|
|
|
420
420
|
size: size || 10
|
|
421
421
|
} });
|
|
422
422
|
}
|
|
423
|
+
getThreadReplies(rootCommentId, params = {}) {
|
|
424
|
+
return this.proxy.thread(rootCommentId).get({ params });
|
|
425
|
+
}
|
|
423
426
|
/**
|
|
424
427
|
* 评论
|
|
425
428
|
*/
|
|
@@ -536,14 +539,16 @@ var NoteController = class {
|
|
|
536
539
|
* 日记列表分页
|
|
537
540
|
*/
|
|
538
541
|
getList(page = 1, perPage = 10, options = {}) {
|
|
539
|
-
const { select, sortBy, sortOrder, year } = options;
|
|
542
|
+
const { select, sortBy, sortOrder, year, lang, withSummary } = options;
|
|
540
543
|
return this.proxy.get({ params: {
|
|
541
544
|
page,
|
|
542
545
|
size: perPage,
|
|
543
546
|
select: select?.join(" "),
|
|
544
547
|
sortBy,
|
|
545
548
|
sortOrder,
|
|
546
|
-
year
|
|
549
|
+
year,
|
|
550
|
+
lang,
|
|
551
|
+
withSummary: withSummary ? "1" : void 0
|
|
547
552
|
} });
|
|
548
553
|
}
|
|
549
554
|
/**
|
|
@@ -1240,6 +1245,17 @@ let RecentlyRefTypes = /* @__PURE__ */ function(RecentlyRefTypes) {
|
|
|
1240
1245
|
RecentlyRefTypes["Page"] = "Page";
|
|
1241
1246
|
return RecentlyRefTypes;
|
|
1242
1247
|
}({});
|
|
1248
|
+
let RecentlyTypeEnum = /* @__PURE__ */ function(RecentlyTypeEnum) {
|
|
1249
|
+
RecentlyTypeEnum["Text"] = "text";
|
|
1250
|
+
RecentlyTypeEnum["Book"] = "book";
|
|
1251
|
+
RecentlyTypeEnum["Media"] = "media";
|
|
1252
|
+
RecentlyTypeEnum["Music"] = "music";
|
|
1253
|
+
RecentlyTypeEnum["Github"] = "github";
|
|
1254
|
+
RecentlyTypeEnum["Link"] = "link";
|
|
1255
|
+
RecentlyTypeEnum["Academic"] = "academic";
|
|
1256
|
+
RecentlyTypeEnum["Code"] = "code";
|
|
1257
|
+
return RecentlyTypeEnum;
|
|
1258
|
+
}({});
|
|
1243
1259
|
|
|
1244
1260
|
//#endregion
|
|
1245
1261
|
//#region models/snippet.ts
|
|
@@ -1271,4 +1287,4 @@ const SubscribeTypeToBitMap = {
|
|
|
1271
1287
|
var api_client_default = createClient;
|
|
1272
1288
|
|
|
1273
1289
|
//#endregion
|
|
1274
|
-
export { AIController, AckController, ActivityController, AggregateController, CategoryController, CategoryType, CollectionRefTypes, CommentController, CommentState, EnumPageType, LinkController, LinkState, LinkType, NoteController, PageController, PostController, ProjectController, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyRefTypes, 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 };
|
|
1290
|
+
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 };
|