@jolibox/types 1.1.53-beta.0 → 1.1.54
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/dist/commands/api.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const API_GET_SYSTEM_INFO_SYNC = "API.getSystemInfoSync";
|
|
|
5
5
|
export declare const API_ENV = "API.env";
|
|
6
6
|
export declare const API_IS_NATIVE_SUPPORT = "API.isNativeSupport";
|
|
7
7
|
export declare const API_CALL_HOST_METHOD = "API.callHostMethod";
|
|
8
|
-
export declare const API_TRACK = "API.track";
|
|
9
8
|
/**
|
|
10
9
|
* @public
|
|
11
10
|
* Describes the system information of the device and application environment.
|
|
@@ -31,37 +30,11 @@ export interface ICallHostMethodParams {
|
|
|
31
30
|
method: string;
|
|
32
31
|
params: any;
|
|
33
32
|
}
|
|
34
|
-
export declare enum EventType {
|
|
35
|
-
Other = 0,// default
|
|
36
|
-
Route = 1,// event name must be "Route"
|
|
37
|
-
Click = 2,
|
|
38
|
-
View = 3,
|
|
39
|
-
Expose = 4,
|
|
40
|
-
Swipe = 5,
|
|
41
|
-
Input = 6,
|
|
42
|
-
Select = 7,
|
|
43
|
-
SwitchOn = 8,
|
|
44
|
-
SwitchOff = 9,
|
|
45
|
-
Submit = 10,
|
|
46
|
-
Scroll = 11,
|
|
47
|
-
Hide = 12,
|
|
48
|
-
System = 1000,// used for web sdk
|
|
49
|
-
ErrorTrace = 1001,// used for web sdk
|
|
50
|
-
UserDefined = 1002
|
|
51
|
-
}
|
|
52
|
-
export interface ITrackParams {
|
|
53
|
-
event: string;
|
|
54
|
-
eventType: EventType;
|
|
55
|
-
params: {
|
|
56
|
-
[key: string]: any;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
33
|
export interface APICommandParams {
|
|
60
34
|
[API_GET_SYSTEM_INFO]: () => Promise<StandardResponse<ISystemInfo>>;
|
|
61
35
|
[API_GET_SYSTEM_INFO_SYNC]: () => StandardResponse<ISystemInfo>;
|
|
62
36
|
[API_ENV]: () => StandardResponse<Omit<Omit<Env, 'hostUserInfo'>, 'schema'>>;
|
|
63
37
|
[API_IS_NATIVE_SUPPORT]: (params: INativeSupportParams) => StandardResponse<boolean>;
|
|
64
38
|
[API_CALL_HOST_METHOD]: (params: ICallHostMethodParams) => Promise<StandardResponse<void>>;
|
|
65
|
-
[API_TRACK]: (params: ITrackParams) => Promise<StandardResponse<void>>;
|
|
66
39
|
}
|
|
67
40
|
export type APICommandType = keyof APICommandParams;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type TrackEvent = 'jsSdkBegin' | 'onBeforeExit' | 'bootstrapModuleBeginToLoad' | 'bootstrapModuleLoaded' | 'implModuleBeginToLoad' | 'implModuleLoaded' | 'onDocumentReady' | 'joliboxServiceReady' | 'apiInvoked' | 'joliboxSpeedAnalysis' | 'joliboxNetRequestResult' | 'globalJsError' | 'RecommendedGuide' | 'GameItem' | 'loadFinished' | 'unlock_popup_show' | 'coinorder_show' | 'coinorder_click' | 'ad_unlock_click' | 'coin_unlock_click' | 'order_pay_ensure' | 'order_pay_result' | 'mmp_ad_impression' | 'LoginGuideModal' | '
|
|
1
|
+
export type TrackEvent = 'jsSdkBegin' | 'onBeforeExit' | 'bootstrapModuleBeginToLoad' | 'bootstrapModuleLoaded' | 'implModuleBeginToLoad' | 'implModuleLoaded' | 'onDocumentReady' | 'joliboxServiceReady' | 'apiInvoked' | 'joliboxSpeedAnalysis' | 'joliboxNetRequestResult' | 'globalJsError' | 'RecommendedGuide' | 'GameItem' | 'loadFinished' | 'unlock_popup_show' | 'coinorder_show' | 'coinorder_click' | 'ad_unlock_click' | 'coin_unlock_click' | 'order_pay_ensure' | 'order_pay_result' | 'mmp_ad_impression' | 'LoginGuideModal' | 'CallRuntimeLoadFinished' | 'AdBreakJumpOut' | 'AdBreakHide' | 'CallAdsInit' | 'LoadAdsenseCompleted' | 'CallAdConfig' | 'PreventAdsCheating' | 'CallShowAdFn' | 'CallAdBreak' | 'CallAdUnit' | 'CallAdBreakDone' | 'CallBeforeAd' | 'CallAfterAd' | 'CallAdBreakTimeout' | 'CallAFVRequest' | 'CallAFVLoad' | 'CallAFVPlaying' | 'CallAFVCompleted' | 'CallAFVError' | 'AdSenseUnitStatusChanged' | 'OpenGame' | 'PlayGame' | 'CloseGame' | 'LevelFinished' | 'LevelUpgrade' | 'GamePlayEnded' | 'GameFCP' | 'GameLCP' | 'GameTTFB';
|
|
2
2
|
export type PerformanceType = 'bootstrapModuleLoaded' | 'implementModuleLoaded' | 'joliboxGameServiceReady';
|
|
3
3
|
export declare const REPORT_SYSTEM_TIMELINE = "ReportSDK.traceSystemTimeline";
|
|
4
4
|
export declare const REPORT_SYSTEM_LOG = "ReportSDK.traceSystem";
|
|
@@ -4,12 +4,6 @@ export declare const REWARDS_USE_PAYMENT = "Rewards.JOLI_COIN.usePayment";
|
|
|
4
4
|
export declare const REWARDS_USE_JOLICOIN_ADS = "Rewards.ADS-JOLI_COIN.useJolicoin";
|
|
5
5
|
export declare const REWARDS_USE_UNLOGIN_MODAL_ADS = "Rewards.ADS-JOLI_COIN.useUnloginModal";
|
|
6
6
|
export declare const REWARDS_USE_PAYMENT_ADS = "Rewards.ADS-JOLI_COIN.usePayment";
|
|
7
|
-
export declare const REWARDS_USE_GEM = "Rewards.JOLI_GEM.useJolicoin";
|
|
8
|
-
export declare const REWARDS_USE_UNLOGIN_MODAL_GEM = "Rewards.JOLI_GEM.useUnloginModal";
|
|
9
|
-
export declare const REWARDS_USE_PAYMENT_GEM = "Rewards.JOLI_GEM.usePayment";
|
|
10
|
-
export declare const REWARDS_USE_GEM_ADS = "Rewards.ADS-JOLI_GEM.useJolicoin";
|
|
11
|
-
export declare const REWARDS_USE_UNLOGIN_MODAL_GEM_ADS = "Rewards.ADS-JOLI_GEM.useUnloginModal";
|
|
12
|
-
export declare const REWARDS_USE_PAYMENT_GEM_ADS = "Rewards.ADS-JOLI_GEM.usePayment";
|
|
13
7
|
type IRewardsResult<T> = Promise<{
|
|
14
8
|
result: 'SUCCESS' | 'FAILED' | 'CONTINUE';
|
|
15
9
|
data?: T;
|
|
@@ -27,12 +21,6 @@ export interface RewardsCommandParams {
|
|
|
27
21
|
claimedRewardValue: number;
|
|
28
22
|
}>;
|
|
29
23
|
[REWARDS_USE_PAYMENT_ADS]: () => IRewardsResult<void>;
|
|
30
|
-
[REWARDS_USE_GEM]: () => IRewardsResult<void>;
|
|
31
|
-
[REWARDS_USE_UNLOGIN_MODAL_GEM]: () => IRewardsResult<void>;
|
|
32
|
-
[REWARDS_USE_PAYMENT_GEM]: () => IRewardsResult<void>;
|
|
33
|
-
[REWARDS_USE_GEM_ADS]: () => IRewardsResult<void>;
|
|
34
|
-
[REWARDS_USE_UNLOGIN_MODAL_GEM_ADS]: () => IRewardsResult<void>;
|
|
35
|
-
[REWARDS_USE_PAYMENT_GEM_ADS]: () => IRewardsResult<void>;
|
|
36
24
|
}
|
|
37
25
|
export type RewardsCommandType = keyof RewardsCommandParams;
|
|
38
26
|
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jolibox/types",
|
|
3
3
|
"description": "This project is common types used for JS-SDk interfere & implement",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.54",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"typescript": "5.7.3",
|
|
13
|
-
"@jolibox/eslint-config": "1.0.
|
|
13
|
+
"@jolibox/eslint-config": "1.0.0",
|
|
14
14
|
"rimraf": "6.0.1"
|
|
15
15
|
},
|
|
16
16
|
"typedocOptions": {
|