@waline/client 3.14.0 → 3.15.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.
@@ -1,5 +1,4 @@
1
- //#region ../api/dist/index.d.ts
2
- //#region src/utils.d.ts
1
+ //#region ../api/src/utils.d.ts
3
2
  interface BaseAPIOptions {
4
3
  /**
5
4
  * Waline 服务端地址
@@ -27,8 +26,9 @@ interface ErrorStatusResponse {
27
26
  * Error msg
28
27
  */
29
28
  errmsg: string;
30
- } //#endregion
31
- //#region src/articleCounter.d.ts
29
+ }
30
+ //#endregion
31
+ //#region ../api/src/articleCounter.d.ts
32
32
  interface GetArticleCounterOptions extends BaseAPIOptions {
33
33
  /**
34
34
  * 待获取计数器的 path
@@ -98,8 +98,9 @@ declare const updateArticleCounter: ({
98
98
  path,
99
99
  type,
100
100
  action
101
- }: UpdateArticleCounterOptions) => Promise<GetArticleCounterResponse>; //#endregion
102
- //#region src/typings.d.ts
101
+ }: UpdateArticleCounterOptions) => Promise<GetArticleCounterResponse>;
102
+ //#endregion
103
+ //#region ../api/src/typings.d.ts
103
104
  type WalineCommentStatus = 'approved' | 'waiting' | 'spam';
104
105
  type WalineUserType = 'administrator' | 'guest';
105
106
  interface WalineCommentData {
@@ -255,8 +256,9 @@ interface WalineRootComment extends BaseWalineResponseComment {
255
256
  */
256
257
  children: WalineChildComment[];
257
258
  }
258
- type WalineComment = WalineRootComment | WalineChildComment; //#endregion
259
- //#region src/comment.d.ts
259
+ type WalineComment = WalineRootComment | WalineChildComment;
260
+ //#endregion
261
+ //#region ../api/src/comment.d.ts
260
262
  interface GetCommentOptions extends BaseAPIOptions {
261
263
  /**
262
264
  * 待获取评论列表的 path
@@ -444,8 +446,9 @@ declare const updateComment: ({
444
446
  token,
445
447
  objectId,
446
448
  comment
447
- }: UpdateCommentOptions) => Promise<UpdateCommentResponse>; //#endregion
448
- //#region src/commentCount.d.ts
449
+ }: UpdateCommentOptions) => Promise<UpdateCommentResponse>;
450
+ //#endregion
451
+ //#region ../api/src/commentCount.d.ts
449
452
  interface GetCommentCountOptions extends BaseAPIOptions {
450
453
  /**
451
454
  * 待获取评论数的 path
@@ -465,8 +468,9 @@ declare const fetchCommentCount: ({
465
468
  lang,
466
469
  paths,
467
470
  signal
468
- }: GetCommentCountOptions) => Promise<number[]>; //#endregion
469
- //#region src/login.d.ts
471
+ }: GetCommentCountOptions) => Promise<number[]>;
472
+ //#endregion
473
+ //#region ../api/src/login.d.ts
470
474
  interface UserInfo {
471
475
  /**
472
476
  * 显示姓名
@@ -516,8 +520,9 @@ declare const login: ({
516
520
  serverURL
517
521
  }: BaseAPIOptions) => Promise<UserInfo & {
518
522
  remember: boolean;
519
- }>; //#endregion
520
- //#region src/pageview.d.ts
523
+ }>;
524
+ //#endregion
525
+ //#region ../api/src/pageview.d.ts
521
526
  interface GetPageviewOptions extends BaseAPIOptions {
522
527
  /**
523
528
  * 待获取页面的 path
@@ -546,8 +551,9 @@ interface UpdatePageviewOptions extends BaseAPIOptions {
546
551
  */
547
552
  path: string;
548
553
  }
549
- declare const updatePageview: (options: UpdatePageviewOptions) => Promise<GetArticleCounterResponse>; //#endregion
550
- //#region src/recentComment.d.ts
554
+ declare const updatePageview: (options: UpdatePageviewOptions) => Promise<GetArticleCounterResponse>;
555
+ //#endregion
556
+ //#region ../api/src/recentComment.d.ts
551
557
  interface GetRecentCommentOptions extends BaseAPIOptions {
552
558
  /**
553
559
  * 获取评论的数量
@@ -582,8 +588,9 @@ declare const getRecentComment: ({
582
588
  count,
583
589
  signal,
584
590
  token
585
- }: GetRecentCommentOptions) => Promise<RecentCommentData[]>; //#endregion
586
- //#region src/user.d.ts
591
+ }: GetRecentCommentOptions) => Promise<RecentCommentData[]>;
592
+ //#endregion
593
+ //#region ../api/src/user.d.ts
587
594
  interface GetUserListOptions extends BaseAPIOptions {
588
595
  /**
589
596
  * 每页个数
@@ -609,7 +616,7 @@ declare const getUserList: ({
609
616
  signal,
610
617
  pageSize,
611
618
  lang
612
- }: GetUserListOptions) => Promise<WalineUser[]>; //#endregion
619
+ }: GetUserListOptions) => Promise<WalineUser[]>;
613
620
  //#endregion
614
621
  //#region src/typings/base.d.ts
615
622
  type WalineCommentSorting = 'latest' | 'oldest' | 'hottest';
@@ -1379,4 +1386,5 @@ declare const Star: ({
1379
1386
  onRate
1380
1387
  }: WalineStarOptions) => WalineStarResult;
1381
1388
  //#endregion
1382
- export { AddCommentOptions, AddCommentResponse, BaseWalineResponseComment, CounterFields, DeleteCommentOptions, DeleteCommentResponse, GetArticleCounterOptions, GetArticleCounterResponse, GetArticleCounterResponseItem, GetCommentCountOptions, GetCommentOptions, GetCommentResponse, GetRecentCommentOptions, GetUserListOptions, GetUserListResponse, RecentCommentData, RecentComments, Star, UpdateArticleCounterOptions, UpdateCommentOptions, UpdateCommentResponse, UpdatePageviewOptions, UserInfo, UserList, WalineAbort, WalineChildComment, WalineComment, WalineCommentCountOptions, WalineCommentData, WalineCommentSorting, WalineCommentStatus, WalineDateLocale, WalineEmojiInfo, WalineEmojiMaps, WalineEmojiPresets, WalineHighlighter, WalineImageUploader, WalineInitOptions, WalineInstance, WalineLevelLocale, WalineLocale, WalineLoginStatus, WalineMeta, WalinePageviewCountOptions, WalineProps, WalineReactionLocale, WalineRecentCommentsOptions, WalineRecentCommentsResult, WalineRootComment, WalineSearchImageData, WalineSearchOptions, WalineSearchResult, WalineStarOptions, WalineStarResult, WalineTeXRenderer, WalineUser, WalineUserListOptions, WalineUserListResult, WalineUserType, addComment, commentCount, DEFAULT_LOCALES as defaultLocales, deleteComment, fetchCommentCount, getArticleCounter, getComment, getPageview, getRecentComment, getUserList, init, login, pageviewCount, updateArticleCounter, updateComment, updatePageview, version };
1389
+ export { AddCommentOptions, AddCommentResponse, type BaseWalineResponseComment, CounterFields, DeleteCommentOptions, DeleteCommentResponse, GetArticleCounterOptions, GetArticleCounterResponse, GetArticleCounterResponseItem, GetCommentCountOptions, GetCommentOptions, GetCommentResponse, GetRecentCommentOptions, GetUserListOptions, GetUserListResponse, RecentCommentData, RecentComments, Star, UpdateArticleCounterOptions, UpdateCommentOptions, UpdateCommentResponse, UpdatePageviewOptions, UserInfo, UserList, type WalineAbort, type WalineChildComment, type WalineComment, WalineCommentCountOptions, type WalineCommentData, type WalineCommentSorting, type WalineCommentStatus, type WalineDateLocale, type WalineEmojiInfo, type WalineEmojiMaps, type WalineEmojiPresets, type WalineHighlighter, type WalineImageUploader, type WalineInitOptions, WalineInstance, type WalineLevelLocale, type WalineLocale, type WalineLoginStatus, type WalineMeta, WalinePageviewCountOptions, type WalineProps, type WalineReactionLocale, WalineRecentCommentsOptions, WalineRecentCommentsResult, type WalineRootComment, type WalineSearchImageData, type WalineSearchOptions, type WalineSearchResult, WalineStarOptions, WalineStarResult, type WalineTeXRenderer, WalineUser, WalineUserListOptions, WalineUserListResult, type WalineUserType, addComment, commentCount, DEFAULT_LOCALES as defaultLocales, deleteComment, fetchCommentCount, getArticleCounter, getComment, getPageview, getRecentComment, getUserList, init, login, pageviewCount, updateArticleCounter, updateComment, updatePageview, version };
1390
+ //# sourceMappingURL=waline.d.ts.map