@hyext/types-ext-sdk-hy 4.2.7-beta.1 → 4.2.7-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.
- package/index.d.ts +34 -0
- package/package.json +2 -2
package/index.d.ts
CHANGED
|
@@ -736,6 +736,17 @@ namespace ad {
|
|
|
736
736
|
* @returns 调用结果
|
|
737
737
|
*/
|
|
738
738
|
function setCustomAdStyle(params: SetCustomAdStyleReq): Promise<SetCustomAdStyleRsp>;
|
|
739
|
+
/**
|
|
740
|
+
* 监听原生模版广告组件的reward消息
|
|
741
|
+
* @param params - 传入参数
|
|
742
|
+
* @returns 调用结果
|
|
743
|
+
*/
|
|
744
|
+
function onCustomAdReward(params: OnCustomAdRewardReq): Promise<void>;
|
|
745
|
+
/**
|
|
746
|
+
* 取消监听原生模版广告组件的reward消息
|
|
747
|
+
* @returns 调用结果
|
|
748
|
+
*/
|
|
749
|
+
function offCustomAdReward(): Promise<void>;
|
|
739
750
|
}
|
|
740
751
|
|
|
741
752
|
/**
|
|
@@ -1383,6 +1394,29 @@ type SetCustomAdStyleRsp = {
|
|
|
1383
1394
|
errno: number;
|
|
1384
1395
|
};
|
|
1385
1396
|
|
|
1397
|
+
/**
|
|
1398
|
+
* 原生模版广告组件reward消息
|
|
1399
|
+
* @property customAdId - 原生模板广告组件id
|
|
1400
|
+
* @property isSuccess - 是否成功
|
|
1401
|
+
*/
|
|
1402
|
+
type OnCustomAdRewardNotice = {
|
|
1403
|
+
customAdId: string;
|
|
1404
|
+
isSuccess: boolean;
|
|
1405
|
+
};
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* @param notice - 原生模版广告组件reward消息
|
|
1409
|
+
*/
|
|
1410
|
+
type OnCustomAdRewardCallback = (notice: OnCustomAdRewardNotice) => void;
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* 监听原生模版广告组件的reward消息参数
|
|
1414
|
+
* @property callback - 消息回调函数
|
|
1415
|
+
*/
|
|
1416
|
+
type OnCustomAdRewardReq = {
|
|
1417
|
+
callback: OnCustomAdRewardCallback;
|
|
1418
|
+
};
|
|
1419
|
+
|
|
1386
1420
|
/**
|
|
1387
1421
|
* 高级模块
|
|
1388
1422
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyext/types-ext-sdk-hy",
|
|
3
|
-
"version": "4.2.7-beta.
|
|
3
|
+
"version": "4.2.7-beta.2",
|
|
4
4
|
"description": "TypeScript definitions for sdk",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"main": "",
|
|
@@ -9,4 +9,4 @@
|
|
|
9
9
|
],
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC"
|
|
12
|
-
}
|
|
12
|
+
}
|