@singcl/ad-execute-manager 1.16.0-alpha.1 → 1.16.0-alpha.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.
@@ -169,6 +169,7 @@ declare class RewardAdNovel extends RewardAdFather {
169
169
  recovered?: import("./typings/ad.js").RecoveredInfo;
170
170
  }): any;
171
171
  /**
172
+ * @private
172
173
  * 广告展示超时设置
173
174
  * @param {object} args
174
175
  * @param {string} args.scene 广告执行场景 必填
@@ -176,12 +177,7 @@ declare class RewardAdNovel extends RewardAdFather {
176
177
  * @param {Function} args.end 结束当前广告任务的回调函数 必填
177
178
  * @param {boolean} [args.preserved] 是否在超时情况下保留广告实例 - 自用参数,非tt API要求的参数
178
179
  */
179
- _setAdTimeout(args: {
180
- scene: string;
181
- timeout?: number;
182
- end: Function;
183
- preserved?: boolean;
184
- }): void;
180
+ private _setAdTimeout;
185
181
  /**
186
182
  * 子类可以选择覆盖此方法
187
183
  * 添加超时情况下结束任务前的回调
@@ -324,6 +320,7 @@ declare class RewardAdNovel extends RewardAdFather {
324
320
  _preservedOnTimeout: boolean;
325
321
  /**
326
322
  * ATTENTION: 广告循环执行内部函数,如果需要循环执行,请使用adCircleInner()函数, 不要直接调用此函数
323
+ * @private
327
324
  * @param {object} [ctx] 广告执行上下文
328
325
  * @param {object} [ctx.options] 广告执行选项
329
326
  * @param {number} [ctx.options.scene] 广告执行场景 必填
@@ -336,23 +333,12 @@ declare class RewardAdNovel extends RewardAdFather {
336
333
  * @param {import('./typings/ad.js').RecoveredInfo} [ctx.recovered] 恢复重试信息
337
334
  * @param {Function} next 执行下一个任务的回调函数,手动调用以继续执行流程
338
335
  */
339
- _adInner(ctx?: {
340
- options?: {
341
- scene?: number;
342
- timeout?: number;
343
- };
344
- collection: {
345
- resolve: (v?: unknown) => void;
346
- before?: (v?: unknown) => void;
347
- success?: (v?: unknown) => void;
348
- prelude?: (v?: unknown) => void;
349
- };
350
- recovered?: import("./typings/ad.js").RecoveredInfo;
351
- }, next?: Function): void;
336
+ private _adInner;
352
337
  _before: (v?: unknown) => void;
353
338
  _success: (v?: unknown) => void;
354
339
  /**
355
340
  * 广告循环执行
341
+ * @public
356
342
  * @param {object} [ctx] 广告执行上下文
357
343
  * @param {object} [ctx.options] 广告执行选项
358
344
  * @param {number} [ctx.options.scene] 广告执行场景 必填
@@ -362,7 +348,7 @@ declare class RewardAdNovel extends RewardAdFather {
362
348
  * @param {(v?: unknown) => void} [ctx.collection.success] 广告执行成功的回调函数
363
349
  * @param {(v?: unknown) => void} [ctx.collection.prelude] 拉起广告前计时的回调函数
364
350
  */
365
- adCircleInner(ctx?: {
351
+ public adCircleInner(ctx?: {
366
352
  options?: {
367
353
  scene?: number;
368
354
  timeout?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singcl/ad-execute-manager",
3
- "version": "1.16.0-alpha.1",
3
+ "version": "1.16.0-alpha.2",
4
4
  "description": "A powerful and flexible ad execution management library for handling reward-based ads, interstitial ads, and other advertising formats in JavaScript applications.",
5
5
  "type": "module",
6
6
  "exports": {