@hyext/types-ext-sdk-hy 4.0.2 → 4.1.0-beta.2

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.
Files changed (2) hide show
  1. package/index.d.ts +76 -0
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1395,6 +1395,16 @@ type SendGiftTUInfo = {
1395
1395
  mapParam?: any;
1396
1396
  };
1397
1397
 
1398
+ /**
1399
+ * 送礼前显示自定义的二次确认配置
1400
+ * @property promptMessage - 拼接的提示文字,默认值为空字符串
1401
+ * @property buttonMessage - 确认按钮文字,默认值是"立刻送出"
1402
+ */
1403
+ type ShowCustomConfirm = {
1404
+ promptMessage: string;
1405
+ buttonMessage: string;
1406
+ };
1407
+
1398
1408
  /**
1399
1409
  * 定制送礼接口结果
1400
1410
  * @property code - 端上送礼结果返回, 0-成功, 2-弹窗确认取消送出, 4-断网, 5-礼物不存在, 6-主播不能给自己
@@ -1415,6 +1425,7 @@ type SendActivityGiftRsp = {
1415
1425
  * @property sourceType - 礼物来源
1416
1426
  * @property [mapParam] - 普通透传参数
1417
1427
  * @property [uid] - 指定送礼目标uid,优先级高于useSelectMic
1428
+ * @property [showCustomConfirm] - 送礼前显示自定义的二次确认,传入则显示弹窗
1418
1429
  */
1419
1430
  type SendActivityGiftReq = {
1420
1431
  giftId: number;
@@ -1423,6 +1434,7 @@ type SendActivityGiftReq = {
1423
1434
  sourceType: string;
1424
1435
  mapParam?: any;
1425
1436
  uid?: string;
1437
+ showCustomConfirm?: ShowCustomConfirm;
1426
1438
  };
1427
1439
 
1428
1440
  /**
@@ -9848,6 +9860,23 @@ namespace ui {
9848
9860
  * @returns 调用结果
9849
9861
  */
9850
9862
  function setBackgroundColor(params?: SetBackgroundColorReq): Promise<void>;
9863
+ /**
9864
+ * 申请公屏位移位置
9865
+ * @param [params] - 调用参数
9866
+ * @returns 调用结果
9867
+ */
9868
+ function applysPubScreenOffset(params?: ApplysPubScreenOffsetReq): Promise<ApplysPubScreenOffsetRsp>;
9869
+ /**
9870
+ * 监听申请公屏位移位置状态改变
9871
+ * @param params - 调用参数
9872
+ * @returns 调用结果
9873
+ */
9874
+ function onApplysPubScreenOffsetNotice(params: OnApplysPubScreenOffsetNoticeReq): Promise<void>;
9875
+ /**
9876
+ * 取消监听申请公屏位移位置状态改变
9877
+ * @returns 调用结果
9878
+ */
9879
+ function offApplysPubScreenOffsetNotice(): Promise<void>;
9851
9880
  }
9852
9881
 
9853
9882
  /**
@@ -10313,6 +10342,53 @@ type SetBackgroundColorReq = {
10313
10342
  darkColor: string;
10314
10343
  };
10315
10344
 
10345
+ /**
10346
+ * 申请公屏位移位置结果
10347
+ * @property canSet - 是否允许按传入的参数设置公屏区域位移
10348
+ */
10349
+ type ApplysPubScreenOffsetRsp = {
10350
+ canSet: boolean;
10351
+ };
10352
+
10353
+ /**
10354
+ * 申请公屏位移位置参数
10355
+ * @property top - 公屏顶部偏移量
10356
+ */
10357
+ type ApplysPubScreenOffsetReq = {
10358
+ top: number;
10359
+ };
10360
+
10361
+ /**
10362
+ * 公屏偏移量
10363
+ * @property top - 公屏顶部位移量
10364
+ */
10365
+ type PubScreenOffset = {
10366
+ top: number;
10367
+ };
10368
+
10369
+ /**
10370
+ * 公屏位移位置状态改变信息
10371
+ * @property canSet - 是否允许按传入的参数设置公屏区域位移
10372
+ */
10373
+ type ApplysPubScreenOffsetNotice = {
10374
+ canSet: boolean;
10375
+ };
10376
+
10377
+ /**
10378
+ * @param notice - 公屏位移位置状态改变信息
10379
+ */
10380
+ type ApplysPubScreenOffsetCallback = (notice: ApplysPubScreenOffsetNotice) => void;
10381
+
10382
+ /**
10383
+ * 监听申请公屏位移位置状态改变参数
10384
+ * @property offset - 公屏偏移量
10385
+ * @property callback - 申请公屏位移位置状态改变事件
10386
+ */
10387
+ type OnApplysPubScreenOffsetNoticeReq = {
10388
+ offset: PubScreenOffset;
10389
+ callback: ApplysPubScreenOffsetCallback;
10390
+ };
10391
+
10316
10392
  /**
10317
10393
  * HY vidoe
10318
10394
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "4.0.2",
3
+ "version": "4.1.0-beta.2",
4
4
  "description": "TypeScript definitions for sdk",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",