@mx-space/api-client 2.2.0 → 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 +12 -0
- package/dist/index.d.cts +76 -10
- package/dist/index.d.mts +76 -10
- package/dist/index.mjs +12 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1247,6 +1247,17 @@ let RecentlyRefTypes = /* @__PURE__ */ function(RecentlyRefTypes) {
|
|
|
1247
1247
|
RecentlyRefTypes["Page"] = "Page";
|
|
1248
1248
|
return RecentlyRefTypes;
|
|
1249
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
|
+
}({});
|
|
1250
1261
|
|
|
1251
1262
|
//#endregion
|
|
1252
1263
|
//#region models/snippet.ts
|
|
@@ -1299,6 +1310,7 @@ exports.RecentlyAttitudeEnum = RecentlyAttitudeEnum;
|
|
|
1299
1310
|
exports.RecentlyAttitudeResultEnum = RecentlyAttitudeResultEnum;
|
|
1300
1311
|
exports.RecentlyController = RecentlyController;
|
|
1301
1312
|
exports.RecentlyRefTypes = RecentlyRefTypes;
|
|
1313
|
+
exports.RecentlyTypeEnum = RecentlyTypeEnum;
|
|
1302
1314
|
exports.RequestError = RequestError;
|
|
1303
1315
|
exports.SayController = SayController;
|
|
1304
1316
|
exports.SearchController = SearchController;
|
package/dist/index.d.cts
CHANGED
|
@@ -836,8 +836,74 @@ type RecentlyRefType = {
|
|
|
836
836
|
title: string;
|
|
837
837
|
url: string;
|
|
838
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;
|
|
839
903
|
interface RecentlyModel extends BaseCommentIndexModel {
|
|
840
904
|
content: string;
|
|
905
|
+
type: RecentlyTypeEnum;
|
|
906
|
+
metadata?: RecentlyMetadata;
|
|
841
907
|
ref?: RecentlyRefType & {
|
|
842
908
|
[key: string]: any;
|
|
843
909
|
};
|
|
@@ -1497,7 +1563,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1497
1563
|
name: string;
|
|
1498
1564
|
created: string;
|
|
1499
1565
|
id: string;
|
|
1500
|
-
children: Pick<PostModel, "id" | "created" | "title" | "
|
|
1566
|
+
children: Pick<PostModel, "id" | "created" | "title" | "modified" | "slug">[];
|
|
1501
1567
|
} : T_1 : never : never;
|
|
1502
1568
|
} : ResponseWrapper;
|
|
1503
1569
|
$request: {
|
|
@@ -2366,11 +2432,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2366
2432
|
* @param options
|
|
2367
2433
|
* @returns
|
|
2368
2434
|
*/
|
|
2369
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2435
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2370
2436
|
type: "post";
|
|
2371
2437
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2372
2438
|
type: "note";
|
|
2373
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2439
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2374
2440
|
type: "page";
|
|
2375
2441
|
})> & {
|
|
2376
2442
|
/**
|
|
@@ -2379,11 +2445,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2379
2445
|
raw?: any;
|
|
2380
2446
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2381
2447
|
[key: string]: any;
|
|
2382
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2448
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2383
2449
|
type: "post";
|
|
2384
2450
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2385
2451
|
type: "note";
|
|
2386
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2452
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2387
2453
|
type: "page";
|
|
2388
2454
|
})> & {
|
|
2389
2455
|
/**
|
|
@@ -2392,11 +2458,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2392
2458
|
raw?: any;
|
|
2393
2459
|
}, ResponseWrapper>;
|
|
2394
2460
|
} : ResponseWrapper extends {
|
|
2395
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2461
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2396
2462
|
type: "post";
|
|
2397
2463
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2398
2464
|
type: "note";
|
|
2399
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2465
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2400
2466
|
type: "page";
|
|
2401
2467
|
})> & {
|
|
2402
2468
|
/**
|
|
@@ -2405,11 +2471,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2405
2471
|
raw?: any;
|
|
2406
2472
|
}, ResponseWrapper>;
|
|
2407
2473
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2408
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2474
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2409
2475
|
type: "post";
|
|
2410
2476
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2411
2477
|
type: "note";
|
|
2412
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2478
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2413
2479
|
type: "page";
|
|
2414
2480
|
})> & {
|
|
2415
2481
|
/**
|
|
@@ -2558,4 +2624,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2558
2624
|
*/
|
|
2559
2625
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2560
2626
|
//#endregion
|
|
2561
|
-
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, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, 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
|
@@ -836,8 +836,74 @@ type RecentlyRefType = {
|
|
|
836
836
|
title: string;
|
|
837
837
|
url: string;
|
|
838
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;
|
|
839
903
|
interface RecentlyModel extends BaseCommentIndexModel {
|
|
840
904
|
content: string;
|
|
905
|
+
type: RecentlyTypeEnum;
|
|
906
|
+
metadata?: RecentlyMetadata;
|
|
841
907
|
ref?: RecentlyRefType & {
|
|
842
908
|
[key: string]: any;
|
|
843
909
|
};
|
|
@@ -1497,7 +1563,7 @@ declare class CategoryController<ResponseWrapper> implements IController {
|
|
|
1497
1563
|
name: string;
|
|
1498
1564
|
created: string;
|
|
1499
1565
|
id: string;
|
|
1500
|
-
children: Pick<PostModel, "id" | "created" | "title" | "
|
|
1566
|
+
children: Pick<PostModel, "id" | "created" | "title" | "modified" | "slug">[];
|
|
1501
1567
|
} : T_1 : never : never;
|
|
1502
1568
|
} : ResponseWrapper;
|
|
1503
1569
|
$request: {
|
|
@@ -2366,11 +2432,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2366
2432
|
* @param options
|
|
2367
2433
|
* @returns
|
|
2368
2434
|
*/
|
|
2369
|
-
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2435
|
+
searchByAlgolia(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2370
2436
|
type: "post";
|
|
2371
2437
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2372
2438
|
type: "note";
|
|
2373
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2439
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2374
2440
|
type: "page";
|
|
2375
2441
|
})> & {
|
|
2376
2442
|
/**
|
|
@@ -2379,11 +2445,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2379
2445
|
raw?: any;
|
|
2380
2446
|
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2381
2447
|
[key: string]: any;
|
|
2382
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2448
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2383
2449
|
type: "post";
|
|
2384
2450
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2385
2451
|
type: "note";
|
|
2386
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2452
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2387
2453
|
type: "page";
|
|
2388
2454
|
})> & {
|
|
2389
2455
|
/**
|
|
@@ -2392,11 +2458,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2392
2458
|
raw?: any;
|
|
2393
2459
|
}, ResponseWrapper>;
|
|
2394
2460
|
} : ResponseWrapper extends {
|
|
2395
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2461
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2396
2462
|
type: "post";
|
|
2397
2463
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2398
2464
|
type: "note";
|
|
2399
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2465
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2400
2466
|
type: "page";
|
|
2401
2467
|
})> & {
|
|
2402
2468
|
/**
|
|
@@ -2405,11 +2471,11 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2405
2471
|
raw?: any;
|
|
2406
2472
|
}, ResponseWrapper>;
|
|
2407
2473
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2408
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "
|
|
2474
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2409
2475
|
type: "post";
|
|
2410
2476
|
}) | (Pick<NoteModel, "id" | "created" | "title" | "modified" | "nid"> & {
|
|
2411
2477
|
type: "note";
|
|
2412
|
-
}) | (Pick<PageModel, "id" | "created" | "title" | "
|
|
2478
|
+
}) | (Pick<PageModel, "id" | "created" | "title" | "modified" | "slug"> & {
|
|
2413
2479
|
type: "page";
|
|
2414
2480
|
})> & {
|
|
2415
2481
|
/**
|
|
@@ -2558,4 +2624,4 @@ declare const allControllerNames: readonly ["ai", "ack", "activity", "aggregate"
|
|
|
2558
2624
|
*/
|
|
2559
2625
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
2560
2626
|
//#endregion
|
|
2561
|
-
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, CommentReplyWindow, CommentState, CommentThreadItem, CommentThreadReplies, 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
|
@@ -1245,6 +1245,17 @@ let RecentlyRefTypes = /* @__PURE__ */ function(RecentlyRefTypes) {
|
|
|
1245
1245
|
RecentlyRefTypes["Page"] = "Page";
|
|
1246
1246
|
return RecentlyRefTypes;
|
|
1247
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
|
+
}({});
|
|
1248
1259
|
|
|
1249
1260
|
//#endregion
|
|
1250
1261
|
//#region models/snippet.ts
|
|
@@ -1276,4 +1287,4 @@ const SubscribeTypeToBitMap = {
|
|
|
1276
1287
|
var api_client_default = createClient;
|
|
1277
1288
|
|
|
1278
1289
|
//#endregion
|
|
1279
|
-
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 };
|