floating-live 0.15.0-beta.3 → 0.15.0-beta.4

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/enums.d.ts CHANGED
@@ -7,7 +7,9 @@ export declare enum RoomStatus {
7
7
  /** 正在轮播 */
8
8
  round = 2,
9
9
  /** 被封禁 */
10
- banned = -1
10
+ banned = -1,
11
+ /** 已上锁 */
12
+ locked = -2
11
13
  }
12
14
  /** 图片大小 */
13
15
  export declare enum ImageSize {
package/dist/enums.js CHANGED
@@ -12,6 +12,8 @@ var RoomStatus;
12
12
  RoomStatus[RoomStatus["round"] = 2] = "round";
13
13
  /** 被封禁 */
14
14
  RoomStatus[RoomStatus["banned"] = -1] = "banned";
15
+ /** 已上锁 */
16
+ RoomStatus[RoomStatus["locked"] = -2] = "locked";
15
17
  })(RoomStatus = exports.RoomStatus || (exports.RoomStatus = {}));
16
18
  /** 图片大小 */
17
19
  var ImageSize;
@@ -16,9 +16,9 @@ export declare namespace Message {
16
16
  /** 其他属性 */
17
17
  [attr: string]: any;
18
18
  }
19
- /** 文本聊天消息 */
20
- interface Chat extends Base {
21
- type: "chat";
19
+ /** 聊天消息 */
20
+ interface Comment extends Base {
21
+ type: "comment";
22
22
  info: {
23
23
  /** 用户信息 */
24
24
  user: UserInfo;
@@ -140,7 +140,43 @@ export declare namespace Message {
140
140
  type: "live_detail";
141
141
  info: RoomDetail;
142
142
  }
143
- type All = Chat | Gift | Interact | Membership | Superchat | Block | LiveStart | LiveEnd | LiveCut | LiveDetail | LiveStats;
143
+ interface Lottery extends Base {
144
+ type: "lottery";
145
+ info: {
146
+ id: number;
147
+ award: GiftInfo;
148
+ };
149
+ }
150
+ interface LotteryResult extends Base {
151
+ type: "lottery_result";
152
+ info: {
153
+ id: number;
154
+ award: GiftInfo;
155
+ result: UserInfo[];
156
+ };
157
+ }
158
+ interface Redpacket extends Base {
159
+ type: "redpacket";
160
+ info: {
161
+ id: number;
162
+ gifts?: GiftInfo[];
163
+ value?: number;
164
+ currency?: string | number;
165
+ };
166
+ }
167
+ interface RedpacketResult extends Base {
168
+ type: "redpacket_result";
169
+ info: {
170
+ id: number;
171
+ result: {
172
+ user: UserInfo;
173
+ gift?: GiftInfo;
174
+ value?: number;
175
+ currency?: string | number;
176
+ }[];
177
+ };
178
+ }
179
+ type All = Comment | Gift | Interact | Membership | Superchat | Block | LiveStart | LiveEnd | LiveCut | LiveDetail | LiveStats | Lottery | LotteryResult | Redpacket | RedpacketResult;
144
180
  }
145
181
  /** 用户信息 */
146
182
  export interface UserInfo {
@@ -200,11 +236,13 @@ export interface GiftInfo {
200
236
  /** 礼物连击id */
201
237
  comboId?: string;
202
238
  /** 人民币价值 */
203
- cny?: number;
239
+ money?: number;
204
240
  /** 行为 */
205
241
  action?: string;
206
242
  /** 随机礼物信息 */
207
243
  blindGift?: GiftInfo;
208
244
  /** 图片信息 */
209
245
  image?: string;
246
+ /** 单位 */
247
+ unit?: string;
210
248
  }
@@ -79,15 +79,18 @@ export interface PlatformInfo {
79
79
  };
80
80
  /** 礼物信息 */
81
81
  gift?: {
82
+ /** 默认送出礼物行为 */
82
83
  action: string;
83
84
  };
85
+ /** 统计信息 */
86
+ stats?: Record<string, string>;
84
87
  /** 货币信息 */
85
88
  currency?: Record<string, {
86
89
  /** 货币名称 */
87
90
  name: string;
88
91
  /** 1货币面值等值value (1面值/1数值) */
89
92
  ratio: number;
90
- /** 1单位消费现金等值value (1.00CNY/1数值) (若为0则为免费货币) */
91
- cash?: number;
93
+ /** 1单位消费金额等值value (1.00CNY/1数值) (若为0则为免费货币) */
94
+ money?: number;
92
95
  }>;
93
96
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "floating-live",
3
- "version": "0.15.0-beta.3",
3
+ "version": "0.15.0-beta.4",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",