fishpi 0.1.13 → 0.1.15

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/lib/index.d.ts CHANGED
@@ -2536,6 +2536,7 @@ interface IRedPacketStatusMsg {
2536
2536
  }
2537
2537
 
2538
2538
  interface IUserLite {
2539
+ oId: string;
2539
2540
  userAvatarURL: string;
2540
2541
  userNickname: string;
2541
2542
  userName: string;
@@ -3488,7 +3489,7 @@ declare class RegisterInfo implements IRegisterInfo {
3488
3489
  /**
3489
3490
  * 举报接口数据
3490
3491
  */
3491
- declare class Report$1 implements IReport {
3492
+ declare class Report implements IReport {
3492
3493
  /**
3493
3494
  * 举报对象的 oId
3494
3495
  */
@@ -3583,6 +3584,123 @@ interface IUploadInfo {
3583
3584
  [key: string]: string;
3584
3585
  };
3585
3586
  }
3587
+ /**
3588
+ * VIP 信息
3589
+ */
3590
+ interface IUserVIP {
3591
+ /**
3592
+ * VIP Id
3593
+ */
3594
+ oId: string;
3595
+ /**
3596
+ * VIP 状态
3597
+ */
3598
+ state: number;
3599
+ /**
3600
+ * 用户 Id
3601
+ */
3602
+ userId: string;
3603
+ /**
3604
+ * 是否 VIP
3605
+ */
3606
+ jointVip: boolean;
3607
+ /**
3608
+ * 颜色
3609
+ */
3610
+ color: string;
3611
+ /**
3612
+ * 是否有下划线
3613
+ */
3614
+ underline: boolean;
3615
+ /**
3616
+ * 是否有金属质感
3617
+ */
3618
+ metal: boolean;
3619
+ /**
3620
+ * 是否自动签到
3621
+ */
3622
+ autoCheckin: number;
3623
+ /**
3624
+ * 是否加粗
3625
+ */
3626
+ bold: boolean;
3627
+ /**
3628
+ * 等级代码
3629
+ */
3630
+ lvCode: string;
3631
+ /**
3632
+ * 过期时间
3633
+ */
3634
+ expiresAt: number;
3635
+ /**
3636
+ * 创建时间
3637
+ */
3638
+ createdAt: number;
3639
+ /**
3640
+ * 更新时间
3641
+ */
3642
+ updatedAt: number;
3643
+ }
3644
+ declare class UserVIP implements IUserVIP {
3645
+ /**
3646
+ * VIP Id
3647
+ */
3648
+ oId: string;
3649
+ /**
3650
+ * VIP 状态
3651
+ */
3652
+ state: number;
3653
+ /**
3654
+ * 用户 Id
3655
+ */
3656
+ userId: string;
3657
+ /**
3658
+ * 是否 VIP
3659
+ */
3660
+ jointVip: boolean;
3661
+ /**
3662
+ * 颜色
3663
+ */
3664
+ color: string;
3665
+ /**
3666
+ * 是否有下划线
3667
+ */
3668
+ underline: boolean;
3669
+ /**
3670
+ * 是否有金属质感
3671
+ */
3672
+ metal: boolean;
3673
+ /**
3674
+ * 是否自动签到
3675
+ */
3676
+ autoCheckin: number;
3677
+ /**
3678
+ * 是否加粗
3679
+ */
3680
+ bold: boolean;
3681
+ /**
3682
+ * 等级代码
3683
+ */
3684
+ lvCode: string;
3685
+ /**
3686
+ * 过期时间
3687
+ */
3688
+ expiresAt: number;
3689
+ /**
3690
+ * 创建时间
3691
+ */
3692
+ createdAt: number;
3693
+ /**
3694
+ * 更新时间
3695
+ */
3696
+ updatedAt: number;
3697
+ get isVip(): boolean;
3698
+ get vipName(): string;
3699
+ get expireDate(): Date;
3700
+ get createDate(): Date;
3701
+ get updateDate(): Date;
3702
+ static from(data: any): UserVIP;
3703
+ }
3586
3704
  /**
3587
3705
  * 举报接口数据
3588
3706
  */
@@ -3754,11 +3872,16 @@ declare class FishPi {
3754
3872
  userNickname: string;
3755
3873
  userName: string;
3756
3874
  }[]>;
3875
+ /**
3876
+ * 获取用户 VIP 信息
3877
+ * @param userId 用户 oId
3878
+ */
3879
+ vipInfo(userId: string): Promise<UserVIP>;
3757
3880
  /**
3758
3881
  * 举报
3759
3882
  * @param data 举报信息
3760
3883
  */
3761
- report(data: Report): Promise<void>;
3884
+ report(data: IReport): Promise<void>;
3762
3885
  /**
3763
3886
  * 获取操作日志
3764
3887
  * @param page 页码
@@ -3788,5 +3911,5 @@ declare class FishPi {
3788
3911
 
3789
3912
  declare function FingerTo(key: string): Finger;
3790
3913
 
3791
- export { Account, Article, ArticleChannel, ArticleComment, ArticleDetail, ArticleList, ArticleListType, ArticlePost, ArticleStatus, ArticleTag, ArticleType, AtUser, Author, Breezemoon, BreezemoonContent, BreezemoonList, Chat, ChatContentType, ChatMessageType, ChatRoom, ChatRoomMessageType, ChatRoomSource, ClientType, Comment, CommentPost, DataType, Emoji, Finger, FingerTo, FishPi, GestureType, Metal, MetalAttr, MetalBase, MoFishGame, Notice, NoticeCommandType, NoticeType, Pagination, PreRegisterInfo, PublicStatus, RedPacketType, Redpacket, RegisterInfo, Report$1 as Report, ReportDataType, ReportType, User, UserAppRole, UserBagType, UserInfo, VoteStatus, VoteType, YesNoStatus, FishPi as default };
3792
- export type { CustomMsg, DiscussMsg, IAccount, IArticleHeat, IArticlePost, IAtUser, IBarragerMsg, IChatData, IChatNotice, IChatQuery, IChatRevoke, IChatRoomMessage, IChatRoomMsg, IChatRoomNode, IChatRoomNodeInfo, IChatRoomSource, ICommentPost, ILog, IMetal, IMetalAttr, IMetalBase, IMoFishGame, IMusicMessage, IMuteItem, INoticeArticle, INoticeAt, INoticeBreezemoon, INoticeCommand, INoticeComment, INoticeCount, INoticeIdleChat, INoticePoint, INoticeReply, INoticeSystem, INoticeUnReadCount, INoticeWarnBroadcast, IOnlineInfo, IPreRegisterInfo, IRedPacketBase, IRedPacketGot, IRedPacketInfo, IRedPacketMessage, IRedPacketStatusMsg, IRedpacket, IRegisterInfo, IReport, IUploadInfo, IUserBag, IUserIP, IUserLite, IWeatherData, IWeatherMessage, NoticeList, RevokeMsg };
3914
+ export { Account, Article, ArticleChannel, ArticleComment, ArticleDetail, ArticleList, ArticleListType, ArticlePost, ArticleStatus, ArticleTag, ArticleType, AtUser, Author, Breezemoon, BreezemoonContent, BreezemoonList, Chat, ChatContentType, ChatMessageType, ChatRoom, ChatRoomMessageType, ChatRoomSource, ClientType, Comment, CommentPost, DataType, Emoji, Finger, FingerTo, FishPi, GestureType, Metal, MetalAttr, MetalBase, MoFishGame, Notice, NoticeCommandType, NoticeType, Pagination, PreRegisterInfo, PublicStatus, RedPacketType, Redpacket, RegisterInfo, Report, ReportDataType, ReportType, User, UserAppRole, UserBagType, UserInfo, UserVIP, VoteStatus, VoteType, YesNoStatus, FishPi as default };
3915
+ export type { CustomMsg, DiscussMsg, IAccount, IArticleHeat, IArticlePost, IAtUser, IBarragerMsg, IChatData, IChatNotice, IChatQuery, IChatRevoke, IChatRoomMessage, IChatRoomMsg, IChatRoomNode, IChatRoomNodeInfo, IChatRoomSource, ICommentPost, ILog, IMetal, IMetalAttr, IMetalBase, IMoFishGame, IMusicMessage, IMuteItem, INoticeArticle, INoticeAt, INoticeBreezemoon, INoticeCommand, INoticeComment, INoticeCount, INoticeIdleChat, INoticePoint, INoticeReply, INoticeSystem, INoticeUnReadCount, INoticeWarnBroadcast, IOnlineInfo, IPreRegisterInfo, IRedPacketBase, IRedPacketGot, IRedPacketInfo, IRedPacketMessage, IRedPacketStatusMsg, IRedpacket, IRegisterInfo, IReport, IUploadInfo, IUserBag, IUserIP, IUserLite, IUserVIP, IWeatherData, IWeatherMessage, NoticeList, RevokeMsg };