@singcl/ad-execute-manager 2.0.1 → 2.0.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singcl/ad-execute-manager",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
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": {
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,229 +0,0 @@
1
- import { AdExecuteManager as e } from "@ad-execute-manager/core";
2
- declare let r: typeof l;
3
- declare let A: typeof c;
4
- declare let n: typeof s;
5
- declare let _: typeof h;
6
- declare class l {
7
- static args: any;
8
- static buildArgs(e: any): void;
9
- static executeWithManager(t: any, r: any): Promise<any>;
10
- constructor(e: any);
11
- _logger: any;
12
- _initSign: string;
13
- _preserveOnEnd: boolean;
14
- _interstitialAd: any;
15
- __ad__: any;
16
- _ttErrorMsgs: string[];
17
- _ttErrorCodes: number[];
18
- _adConfig: any;
19
- initialize(e: any, i: any): this;
20
- initialized(): boolean;
21
- ad(e: any, i?: any): Promise<void>;
22
- addExecuteManager(e: any): Promise<any>;
23
- destroy(): void;
24
- clear(): void;
25
- record(e: any): this;
26
- onClose(e: any): void;
27
- offClose(e: any): void;
28
- show(): any;
29
- load(): any;
30
- onError(e: any): void;
31
- offError(e: any): void;
32
- onLoad(e: any): void;
33
- offLoad(e: any): void;
34
- placeholder(): any;
35
- }
36
- declare class c extends l {
37
- static build(e: any): any;
38
- static getInstance(): any;
39
- static "new"(e: any): c;
40
- _onHalfway: any;
41
- _onShow: any;
42
- _onFinish: any;
43
- _onAlways: any;
44
- _onError: any;
45
- _alwaysCallback: any;
46
- _halfwayCallback: any;
47
- _finishedCallback: any;
48
- _resolve: any;
49
- _next: any;
50
- _scene: any;
51
- _adTypeR: number;
52
- _adTimeout: any;
53
- _adTimeoutTime: number;
54
- _adBeforeShowTimer: any;
55
- _adBeforeShowTime: number;
56
- _adSpeedCloseTimer: any;
57
- _adSpeedCloseTime: number;
58
- _needEndOnTimeout: boolean;
59
- _needSpeedEndOnTimeout: boolean;
60
- bindAdCloseLister: any;
61
- bindAdErrorLister: any;
62
- bindAdLoadLister: any;
63
- bindApiAdErrorLister: any;
64
- _bindShiftCloseLister: any;
65
- _bindShiftErrorLister: any;
66
- initialize(e: any, i: any): this;
67
- _initAdLister(): void;
68
- _initNovelConfig(e: any): void;
69
- novelConfig: f;
70
- _onInnerExecuteBefore(): any;
71
- _onInnerAdShowSuccess(): any;
72
- _setAdTimeout(e: any): void;
73
- _adPreludeInterval(e: any): void;
74
- _clearAdTimeout(): void;
75
- _adShowBeforeAnalytics(e: any): any;
76
- _adShowSuccessAnalytics(e: any): any;
77
- _adShowFailureAnalytics(e: any): any;
78
- _adLoadSuccessAnalytics(e: any): any;
79
- _adLoadFailureAnalytics(e: any): any;
80
- _adCloseSuccessAnalytics(e: any): any;
81
- get rewardAd(): any;
82
- ad(e: any, i?: any): Promise<any>;
83
- _adInner(e: any, i?: any): void;
84
- _before: any;
85
- _success: any;
86
- adLoad(): any;
87
- adShow(): any;
88
- _outerCloseCallback(e: any): void;
89
- _outerHalfwayCallback(e: any): void;
90
- _outerFinishedCallback(e: any): void;
91
- adCloseLister(): void;
92
- adErrorLister(e: any): void;
93
- apiAdErrorLister(e: any): void;
94
- adLoadLister(e: any): void;
95
- adDestroy(): void;
96
- _shiftCloseLister(e: any): void;
97
- _shiftErrorLister(e: any): void;
98
- shift(): void;
99
- }
100
- declare class s {
101
- static args: any;
102
- static buildArgs(e: any): void;
103
- static executeWithManager(t: any, l: any): Promise<any>;
104
- constructor(e: any);
105
- _logger: any;
106
- _adTimeoutTime: number;
107
- _initSign: string;
108
- _preserveOnEnd: boolean;
109
- _rewardAd: any;
110
- __ad__: any;
111
- _ttErrorMsgs: string[];
112
- _ttErrorCodes: number[];
113
- __bindAdErrorForeverHandler: any;
114
- _adConfig: any;
115
- initialize(e: any, i: any): this;
116
- initialized(): boolean;
117
- __adErrorForeverHandler(e: any): void;
118
- adErrorForeverHandler(e: any): any;
119
- ad(e: any, i?: any): Promise<void>;
120
- addExecuteManager(e: any): Promise<any>;
121
- destroy(): void;
122
- clear(): void;
123
- record(e: any): this;
124
- onClose(e: any): void;
125
- offClose(e: any): void;
126
- show(): any;
127
- load(): any;
128
- onError(e: any): void;
129
- offError(e: any): void;
130
- onLoad(e: any): void;
131
- offLoad(e: any): void;
132
- placeholder(): any;
133
- }
134
- declare class h extends s {
135
- static build(e: any): any;
136
- static getInstance(): any;
137
- static "new"(e: any): h;
138
- _onHalfway: any;
139
- _onShow: any;
140
- _onFinish: any;
141
- _onAlways: any;
142
- _onError: any;
143
- _alwaysCallback: any;
144
- _halfwayCallback: any;
145
- _finishedCallback: any;
146
- _resolve: any;
147
- _next: any;
148
- _scene: any;
149
- _adTypeR: number;
150
- _adTimeout: any;
151
- _adBeforeShowTimer: any;
152
- _adBeforeShowTime: number;
153
- _adSpeedCloseTimer: any;
154
- _adSpeedCloseTime: number;
155
- _needEndOnTimeout: boolean;
156
- _needSpeedEndOnTimeout: boolean;
157
- bindAdCloseLister: any;
158
- bindAdErrorLister: any;
159
- bindAdLoadLister: any;
160
- bindApiAdErrorLister: any;
161
- _bindShiftCloseLister: any;
162
- _bindShiftErrorLister: any;
163
- initialize(e: any, i: any): this;
164
- _initAdLister(): void;
165
- _initNovelConfig(e: any): void;
166
- novelConfig: u;
167
- _onInnerExecuteBefore(): any;
168
- _onInnerAdShowSuccess(e: any): any;
169
- _setAdTimeout(e: any): void;
170
- _adTimeoutBeforeEnd(e: any): any;
171
- _adPreludeInterval(e: any): void;
172
- _clearAdTimeout(): void;
173
- _adShowBeforeAnalytics(e: any): any;
174
- _adShowSuccessAnalytics(e: any): any;
175
- _adShowFailureAnalytics(e: any): any;
176
- _adLoadSuccessAnalytics(e: any): any;
177
- _adLoadFailureAnalytics(e: any): any;
178
- _adCloseSuccessAnalytics(e: any): any;
179
- get rewardAd(): any;
180
- ad(e: any, i?: any): Promise<any>;
181
- _recovered: any;
182
- _adInner(e: any, i?: any): void;
183
- _before: any;
184
- _success: any;
185
- adLoad(): any;
186
- adShow(): any;
187
- _outerCloseCallback(e: any): void;
188
- _outerHalfwayCallback(e: any): void;
189
- _outerFinishedCallback(e: any): void;
190
- __adCloseLister__(e: any): void;
191
- adCloseLister(e: any, i: any): void;
192
- __adErrorLister__(e: any): void;
193
- adErrorLister(e: any): any;
194
- __apiAdErrorLister__(e: any): void;
195
- apiAdErrorLister(e: any): any;
196
- __adLoadLister__(e: any): void;
197
- adLoadLister(e: any): any;
198
- adDestroy(): void;
199
- _shiftCloseLister(e: any): void;
200
- _shiftErrorLister(e: any): void;
201
- shift(): void;
202
- }
203
- declare class f {
204
- static "new"(e: any): f;
205
- constructor(e: any);
206
- frequency: {
207
- total: number;
208
- current: number;
209
- };
210
- _init(e: any): void;
211
- _adTimes(e: any): void;
212
- reset(): void;
213
- updateRetry(): void;
214
- remain(): number;
215
- }
216
- declare class u {
217
- static "new"(e: any): u;
218
- constructor(e: any);
219
- frequency: {
220
- total: number;
221
- current: number;
222
- };
223
- _init(e: any): void;
224
- _adTimes(e: any): void;
225
- reset(): void;
226
- updateRetry(): void;
227
- remain(): number;
228
- }
229
- export { e as AdExecuteManager, r as InterstitialAdFather, A as InterstitialAdNovel, n as RewardAdFather, _ as RewardAdNovel };
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,23 +0,0 @@
1
- export { e as AdAnalyticsJS };
2
- declare let e: typeof t;
3
- declare class t {
4
- static instance: any;
5
- static build(n: any): any;
6
- static getInstance(): any;
7
- static "new"(n: any): t;
8
- constructor(e: any);
9
- _logger: any;
10
- _initSign: string;
11
- _needReport: boolean;
12
- _commonConfig: any;
13
- initialize(n: any): any;
14
- track(n: any, t: any, e: any): void;
15
- getCommonInfo(): any;
16
- getTrackCommonInfo(): any;
17
- identify(n: any, t: any): this;
18
- alias(): any;
19
- pages(): any;
20
- page(n: any, t: any): void;
21
- cpage(n: any): void;
22
- placeholder(): any;
23
- }
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,41 +0,0 @@
1
- export { i as AdExecuteManager };
2
- declare let i: typeof t;
3
- declare class t {
4
- static _instance: any;
5
- static getInstance(e: any): any;
6
- static build(e: any): any;
7
- static "new"(e: any): t;
8
- static getSafeInstance(): any;
9
- constructor(t: any);
10
- _taskStack: any[];
11
- _currentBatchTasks: any[];
12
- _isRunning: boolean;
13
- _currentTask: any;
14
- _isForeground: boolean;
15
- _appShowListener: any;
16
- _appHideListener: any;
17
- _enableVisibilityListener: boolean;
18
- _maxRetryCount: number;
19
- _retryQueue: any[];
20
- _errorRetryStrategy: {
21
- timeout: boolean;
22
- background: boolean;
23
- };
24
- logger: e;
25
- initialize(e: any): this;
26
- _initVisibilityListener(): void;
27
- _handleAppHide(): void;
28
- _handleAppShow(): void;
29
- destroyVisibilityListener(): void;
30
- enableVisibilityListener(): void;
31
- disableVisibilityListener(): void;
32
- isVisibilityListenerEnabled(): boolean;
33
- addTask(e: any, t: any): Promise<any>;
34
- _compose(): void;
35
- clearTasks(): void;
36
- getTaskCount(): number;
37
- isRunning(): boolean;
38
- getCurrentTaskId(): any;
39
- whenAllTasksComplete(): Promise<any>;
40
- }
41
- import { Logger as e } from "@ad-execute-manager/helper";
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,96 +0,0 @@
1
- declare class i {
2
- static "new"(e: any): i;
3
- constructor(e: any);
4
- _total: number;
5
- _local_sign: string;
6
- _expire: string;
7
- storage: s;
8
- _init(): void;
9
- _adTimes(): number;
10
- _safeLocalValue(e: any): any;
11
- _initLocalTimes(): void;
12
- updateToday(): void;
13
- remain(): number;
14
- }
15
- declare class e {
16
- static geInstance(t: any): e;
17
- constructor(e?: {});
18
- events: {};
19
- queues: {};
20
- onceEvents: {};
21
- maxListeners: any;
22
- maxQueueSize: any;
23
- maxOnceEvents: any;
24
- on(e: any, t: any): void;
25
- once(e: any, t: any): void;
26
- emit(e: any, ...t: any[]): void;
27
- off(e: any, t: any): void;
28
- removeAllListeners(e: any): void;
29
- }
30
- declare class t {
31
- constructor(e?: {});
32
- prefix: any;
33
- enabled: any;
34
- levels: {
35
- error: number;
36
- warn: number;
37
- info: number;
38
- log: number;
39
- debug: number;
40
- };
41
- currentLevel: any;
42
- enable(): void;
43
- disable(): void;
44
- isEnabled(): any;
45
- setLevel(e: any): void;
46
- formatMessage(e: any, t: any): string;
47
- _log(e: any, t: any, ...s: any[]): void;
48
- error(e: any, ...t: any[]): void;
49
- warn(e: any, ...t: any[]): void;
50
- info(e: any, ...t: any[]): void;
51
- log(e: any, ...t: any[]): void;
52
- debug(e: any, ...t: any[]): void;
53
- }
54
- declare class n {
55
- events: {};
56
- on(e: any, t: any): () => void;
57
- off(e: any, t: any): void;
58
- emit(e: any, ...t: any[]): void;
59
- once(e: any, t: any): void;
60
- listenerCount(e: any): any;
61
- removeAllListeners(): void;
62
- }
63
- declare class o extends Error {
64
- constructor(e: any, t?: {});
65
- stack: string;
66
- errMsg: any;
67
- errorCode: any;
68
- toJSON(): {
69
- name: string;
70
- message: string;
71
- stack: string;
72
- errMsg: any;
73
- errorCode: any;
74
- };
75
- }
76
- declare let r: typeof s;
77
- declare class s {
78
- static "new"(e: any): s;
79
- constructor(e?: {});
80
- config: {
81
- prefix: string;
82
- expire: any;
83
- };
84
- logger: t;
85
- getTodayEndTimestamp(): number;
86
- _setItem(e: any, t: any, s: any): void;
87
- _getItem(e: any): any;
88
- setItem(e: any, t: any, s: any): void;
89
- getItem(e: any): any;
90
- getUserItem(e: any): any;
91
- setUserItem(e: any, t: any, s: any): void;
92
- removeItem(e: any): void;
93
- clear(): void;
94
- keys(): any[];
95
- }
96
- export { i as CountRecorder, e as EventEmitter, t as Logger, n as PubSub, o as SerializableError, r as Storage };
@@ -1 +0,0 @@
1
- export const __esModule: boolean;
@@ -1,69 +0,0 @@
1
- declare let n: typeof t;
2
- declare let r: typeof a;
3
- declare let s: typeof i;
4
- declare class t {
5
- static instance: any;
6
- static build(e: any): any;
7
- static getInstance(): any;
8
- static "new"(e: any): t;
9
- constructor(e: any);
10
- _initSign: string;
11
- _dramaDetailData: any[];
12
- _unlockChapterThreshold: number;
13
- _unlockChapterNum: number;
14
- _unlockChapterWaterLevel: number;
15
- _isReachThreshold: boolean;
16
- _unlockedIdArr: any[];
17
- set drama(e: any[]);
18
- get drama(): any[];
19
- _checkReachThreshold(e?: any[]): void;
20
- _isUnlockThreshold(): boolean;
21
- _unlockChapterIds(e: any, t?: number): any[];
22
- _unlockChapterIdsWithWater(e: any, t?: number): any[];
23
- ready(e: any, t: any, n: any): void;
24
- onProcessUpdate(e: any, t: any): void;
25
- onChapterChange(e: any, t: any): void;
26
- unlockAll(): void;
27
- }
28
- declare class a {
29
- static instance: any;
30
- static build(e: any): any;
31
- static getInstance(): any;
32
- constructor(e: any);
33
- _initSign: string;
34
- _halfway: {
35
- scene: number;
36
- count: number;
37
- }[];
38
- _finished: {
39
- scene: number;
40
- count: number;
41
- }[];
42
- initialize(e: any): void;
43
- _halfwayUpdate(e: any): void;
44
- _halfwayGet(e: any): number;
45
- _halfwayReset(): void;
46
- _finishedUpdate(e: any): void;
47
- _finishedGet(e: any): number;
48
- _finishedReset(): void;
49
- record(e: any): void;
50
- rest(e: any): void;
51
- get(e: any): number;
52
- placeholder(): any;
53
- }
54
- declare class i {
55
- static instance: any;
56
- static build(e: any): any;
57
- static getInstance(): any;
58
- constructor(t: any);
59
- _logger: any;
60
- _initSign: string;
61
- _currScene: any;
62
- _sceneTypeObj: {};
63
- initialize(e: any): void;
64
- addScene(e: any): this;
65
- addSceneType(e?: number): this;
66
- getCurrentScene(): any;
67
- placeholder(): any;
68
- }
69
- export { n as LovelUnlockManager, r as RewardAdGlobalRecorder, s as RewardAdSceneTriggerManager };
@@ -1,14 +0,0 @@
1
- export type IAdType = {
2
- /**
3
- * 激励视频
4
- */
5
- AD_TYPE_REWARD: 1;
6
- /**
7
- * 插屏广告
8
- */
9
- AD_TYPE_INTERSTITIAL: 2;
10
- };
11
- /**
12
- * 广告场景类型文本映射对象(反向映射)
13
- */
14
- export type IAdTypeReverse = { readonly [K in IAdType[keyof IAdType]]: { [P in keyof IAdType]: IAdType[P] extends K ? P : never; }[keyof IAdType]; };
@@ -1,42 +0,0 @@
1
- /**
2
- * 回调函数类型
3
- */
4
- export type Callback = () => any;
5
- export type InterstitialAd = {
6
- /**
7
- * 广告创建后默认是隐藏的,可以通过该方法显示广告
8
- */
9
- show: () => Promise<any>;
10
- /**
11
- * 当广告素材加载出现错误时,可以通过 load 方法手动加载
12
- */
13
- load: () => Promise<any>;
14
- /**
15
- * 销毁广告实例
16
- */
17
- destroy: () => void;
18
- /**
19
- * 绑定广告 load 事件的监听器
20
- */
21
- onLoad: (arg0: Callback) => void;
22
- /**
23
- * 解除绑定 load 事件的监听器
24
- */
25
- offLoad: (arg0: Callback) => void;
26
- /**
27
- * 绑定 error 事件的监听器
28
- */
29
- onError: (arg0: Callback) => void;
30
- /**
31
- * 解除绑定 error 事件的监听器
32
- */
33
- offError: (arg0: Callback) => void;
34
- /**
35
- * 绑定 close 事件的监听器
36
- */
37
- onClose: (arg0: Callback) => void;
38
- /**
39
- * 解除绑定 close 事件的监听器
40
- */
41
- offClose: (arg0: Callback) => void;
42
- };
@@ -1,42 +0,0 @@
1
- /**
2
- * 回调函数类型
3
- */
4
- export type Callback = () => any;
5
- export type RewardedVideoAd = {
6
- /**
7
- * 广告创建后默认是隐藏的,可以通过该方法显示广告
8
- */
9
- show: () => Promise<any>;
10
- /**
11
- * 当广告素材加载出现错误时,可以通过 load 方法手动加载
12
- */
13
- load: () => Promise<any>;
14
- /**
15
- * 销毁广告实例
16
- */
17
- destroy: () => void;
18
- /**
19
- * 绑定广告 load 事件的监听器
20
- */
21
- onLoad: (arg0: Callback) => void;
22
- /**
23
- * 解除绑定 load 事件的监听器
24
- */
25
- offLoad: (arg0: Callback) => void;
26
- /**
27
- * 绑定 error 事件的监听器
28
- */
29
- onError: (arg0: Callback) => void;
30
- /**
31
- * 解除绑定 error 事件的监听器
32
- */
33
- offError: (arg0: Callback) => void;
34
- /**
35
- * 绑定 close 事件的监听器
36
- */
37
- onClose: (arg0: Callback) => void;
38
- /**
39
- * 解除绑定 close 事件的监听器
40
- */
41
- offClose: (arg0: Callback) => void;
42
- };
@@ -1 +0,0 @@
1
- export {};