@hyext/types-ext-sdk-hy 3.17.0-beta.15 → 3.17.0-beta.17
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/index.d.ts +107 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -992,6 +992,30 @@ namespace advance {
|
|
|
992
992
|
* @returns 调用结果
|
|
993
993
|
*/
|
|
994
994
|
function offCommonQueueStatusChange(params: OffCommonQueueStatusChangeReq): Promise<void>;
|
|
995
|
+
/**
|
|
996
|
+
* 定制送礼接口
|
|
997
|
+
* @param params - 参数
|
|
998
|
+
* @returns 调用结果
|
|
999
|
+
*/
|
|
1000
|
+
function sendActivityGift(params: SendActivityGiftReq): Promise<SendActivityGiftRsp>;
|
|
1001
|
+
/**
|
|
1002
|
+
* 获取直播间当前特效状态
|
|
1003
|
+
* @param params - 参数
|
|
1004
|
+
* @returns 调用结果
|
|
1005
|
+
*/
|
|
1006
|
+
function getLiveroomEffectStatus(params: GetLiveroomEffectStatusReq): Promise<GetLiveroomEffectStatusRsp>;
|
|
1007
|
+
/**
|
|
1008
|
+
* 监听直播间特效状态变化
|
|
1009
|
+
* @param params - 参数
|
|
1010
|
+
* @returns 调用结果
|
|
1011
|
+
*/
|
|
1012
|
+
function onLiveroomEffectStatusChange(params: OnLiveroomEffectStatusChangeReq): Promise<void>;
|
|
1013
|
+
/**
|
|
1014
|
+
* 取消监听直播间特效状态变化
|
|
1015
|
+
* @param params - 参数
|
|
1016
|
+
* @returns 调用结果
|
|
1017
|
+
*/
|
|
1018
|
+
function offLiveroomEffectStatusChange(params: OffLiveroomEffectStatusChangeReq): Promise<void>;
|
|
995
1019
|
}
|
|
996
1020
|
|
|
997
1021
|
/**
|
|
@@ -1671,6 +1695,87 @@ type OffCommonQueueStatusChangeReq = {
|
|
|
1671
1695
|
type: string;
|
|
1672
1696
|
};
|
|
1673
1697
|
|
|
1698
|
+
/**
|
|
1699
|
+
* 定制送礼接口结果
|
|
1700
|
+
* @property code - 端上送礼结果返回, 0-成功, 1-余额不足, 2-弹窗确认是否送出, 3-需要鉴权的礼物没有这个身份(比如守护、贵族), 4-断网
|
|
1701
|
+
* @property err - 错误信息
|
|
1702
|
+
* @property consumeRsp - 接口回包的base64字符串
|
|
1703
|
+
*/
|
|
1704
|
+
type SendActivityGiftRsp = {
|
|
1705
|
+
code: number;
|
|
1706
|
+
err: string;
|
|
1707
|
+
consumeRsp: string;
|
|
1708
|
+
};
|
|
1709
|
+
|
|
1710
|
+
/**
|
|
1711
|
+
* 定制送礼接口参数
|
|
1712
|
+
* @property giftId - giftId
|
|
1713
|
+
* @property giftCount - giftCount
|
|
1714
|
+
* @property useSelectMic - useSelectMic
|
|
1715
|
+
* @property sourceType - sourceTyp
|
|
1716
|
+
* @property mapParam - mapParam
|
|
1717
|
+
* @property uid - uid
|
|
1718
|
+
* @property secondConfirm - secondConfirm
|
|
1719
|
+
*/
|
|
1720
|
+
type SendActivityGiftReq = {
|
|
1721
|
+
giftId: number;
|
|
1722
|
+
giftCount: number;
|
|
1723
|
+
useSelectMic: boolean;
|
|
1724
|
+
sourceType: string;
|
|
1725
|
+
mapParam: any;
|
|
1726
|
+
uid: string;
|
|
1727
|
+
secondConfirm: boolean;
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1730
|
+
/**
|
|
1731
|
+
* 定制送礼接口结果
|
|
1732
|
+
* @property id - 当前生效的特效,id为空则表示没有此类型的特效在播
|
|
1733
|
+
*/
|
|
1734
|
+
type GetLiveroomEffectStatusRsp = {
|
|
1735
|
+
id: string;
|
|
1736
|
+
};
|
|
1737
|
+
|
|
1738
|
+
/**
|
|
1739
|
+
* 定制送礼接口参数
|
|
1740
|
+
* @property type - 类型
|
|
1741
|
+
*/
|
|
1742
|
+
type GetLiveroomEffectStatusReq = {
|
|
1743
|
+
type: string;
|
|
1744
|
+
};
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* 队列状态变化
|
|
1748
|
+
* @property id - 特效id
|
|
1749
|
+
* @property status - 状态, show-显示, hide-隐藏
|
|
1750
|
+
*/
|
|
1751
|
+
type LiveroomEffectStatus = {
|
|
1752
|
+
id: string;
|
|
1753
|
+
status: string;
|
|
1754
|
+
};
|
|
1755
|
+
|
|
1756
|
+
/**
|
|
1757
|
+
* @param status - 回调参数
|
|
1758
|
+
*/
|
|
1759
|
+
type LiveroomEffectStatusChange = (status: LiveroomEffectStatus) => void;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* 监听直播间特效状态变化参数
|
|
1763
|
+
* @property type - 类型
|
|
1764
|
+
* @property callback - 特效状态变化回调
|
|
1765
|
+
*/
|
|
1766
|
+
type OnLiveroomEffectStatusChangeReq = {
|
|
1767
|
+
type: string;
|
|
1768
|
+
callback: LiveroomEffectStatusChange;
|
|
1769
|
+
};
|
|
1770
|
+
|
|
1771
|
+
/**
|
|
1772
|
+
* 取消监听直播间特效状态变化参数
|
|
1773
|
+
* @property type - 类型
|
|
1774
|
+
*/
|
|
1775
|
+
type OffLiveroomEffectStatusChangeReq = {
|
|
1776
|
+
type: string;
|
|
1777
|
+
};
|
|
1778
|
+
|
|
1674
1779
|
/**
|
|
1675
1780
|
* app模块
|
|
1676
1781
|
*/
|
|
@@ -5003,12 +5108,14 @@ type ReadRsp = {
|
|
|
5003
5108
|
/**
|
|
5004
5109
|
* 读文件参数
|
|
5005
5110
|
* @property fd - 文件描述符
|
|
5111
|
+
* @property arrayBuffer - 数据写入的缓冲区,必须是 ArrayBuffer 实例
|
|
5006
5112
|
* @property [offset] - 缓冲区中的写入偏移量,默认0
|
|
5007
5113
|
* @property [length] - 要从文件中读取的字节数,默认0
|
|
5008
5114
|
* @property [position] - 文件读取的起始位置
|
|
5009
5115
|
*/
|
|
5010
5116
|
type ReadReq = {
|
|
5011
5117
|
fd: string;
|
|
5118
|
+
arrayBuffer: ArrayBuffer;
|
|
5012
5119
|
offset?: number;
|
|
5013
5120
|
length?: number;
|
|
5014
5121
|
position?: number;
|