@arkadiuminc/sdk 0.0.17 → 0.0.19
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/pkg/api/features/analytics/analytics.api.d.ts +26 -0
- package/dist/pkg/api/features/backend/backend.api.d.ts +6 -3
- package/dist/pkg/api/features/user-state/user-state.api.d.ts +1 -0
- package/dist/pkg/api/version.d.ts +1 -0
- package/dist/pkg/arkadium-arena-sdk.d.ts +3 -1
- package/dist/pkg/arkadium-game-sdk.d.ts +3 -1
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GameIdReaderContract } from '../environment/environment.api';
|
|
2
|
+
interface EnvironmentVersion {
|
|
3
|
+
GameKey: string;
|
|
4
|
+
GameVersion: string;
|
|
5
|
+
NestVersion: string;
|
|
6
|
+
SdkVersion: string;
|
|
7
|
+
}
|
|
8
|
+
export interface AnalyticsApiContract {
|
|
9
|
+
setGameVersion(v: string): Promise<void>;
|
|
10
|
+
setNestVersion(v: string): Promise<void>;
|
|
11
|
+
getEnvVersion(): Promise<EnvironmentVersion>;
|
|
12
|
+
}
|
|
13
|
+
export declare class AnalyticsApi implements AnalyticsApiContract {
|
|
14
|
+
private gameReader;
|
|
15
|
+
constructor(gameReader: GameIdReaderContract);
|
|
16
|
+
getEnvVersion(): Promise<EnvironmentVersion>;
|
|
17
|
+
private info;
|
|
18
|
+
setGameVersion(v: string): Promise<void>;
|
|
19
|
+
setNestVersion(v: string): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
export declare class AnalyticsApiProxy implements AnalyticsApiContract {
|
|
22
|
+
setGameVersion(v: string): Promise<void>;
|
|
23
|
+
setNestVersion(v: string): Promise<void>;
|
|
24
|
+
getEnvVersion(): Promise<EnvironmentVersion>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -8,9 +8,6 @@ export declare class BackendApi {
|
|
|
8
8
|
user: Awaited<ReturnType<typeof UserApiGateway.prototype.getAuthApi>> | null;
|
|
9
9
|
private paymentsApiGateway;
|
|
10
10
|
private virtualItemApiGateway;
|
|
11
|
-
events: {
|
|
12
|
-
onAuthStateChanged: number;
|
|
13
|
-
};
|
|
14
11
|
private userGateway;
|
|
15
12
|
userGameData: UserGameDataApi | null;
|
|
16
13
|
uiOpenRequest: {
|
|
@@ -19,6 +16,12 @@ export declare class BackendApi {
|
|
|
19
16
|
subscribe: (observer: import("../../utils/observable").ObserverFn<boolean>) => void;
|
|
20
17
|
update(newValue: boolean): void;
|
|
21
18
|
};
|
|
19
|
+
authStatus: {
|
|
20
|
+
observers: import("../../utils/observable").ObserverFn<boolean>[];
|
|
21
|
+
value: boolean;
|
|
22
|
+
subscribe: (observer: import("../../utils/observable").ObserverFn<boolean>) => void;
|
|
23
|
+
update(newValue: boolean): void;
|
|
24
|
+
};
|
|
22
25
|
addEventListener(event: number, cb: () => void): void;
|
|
23
26
|
init(e: ApiEnv, isGameSide: boolean): Promise<void>;
|
|
24
27
|
checkAuth(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const __SDK_VERSION__ = "1.0.0";
|
|
@@ -4,6 +4,7 @@ import { GameLifecycleContract } from './api/features/game-lifecycle/game-lifecy
|
|
|
4
4
|
import { EnvironmentApi } from './api/features/environment/environment.api';
|
|
5
5
|
import { AdsApi } from './api/features/ads/';
|
|
6
6
|
import { UserStateApi } from './api/features/user-state/user-state.api';
|
|
7
|
+
import { AnalyticsApiContract } from './api/features/analytics/analytics.api';
|
|
7
8
|
export declare class ArkadiumGameSdk {
|
|
8
9
|
backendApi: BackendApi;
|
|
9
10
|
environment: EnvironmentApi;
|
|
@@ -11,7 +12,8 @@ export declare class ArkadiumGameSdk {
|
|
|
11
12
|
lifecycle: GameLifecycleContract;
|
|
12
13
|
ads: AdsApi;
|
|
13
14
|
userStateApi: UserStateApi;
|
|
14
|
-
|
|
15
|
+
analytics: AnalyticsApiContract;
|
|
16
|
+
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract);
|
|
15
17
|
initialize(env: ApiEnv, isGameSide: boolean): Promise<void>;
|
|
16
18
|
updateWinReference(target: any): void;
|
|
17
19
|
}
|
|
@@ -4,6 +4,7 @@ import { GameLifecycleContract } from './api/features/game-lifecycle/game-lifecy
|
|
|
4
4
|
import { EnvironmentApi } from './api/features/environment/environment.api';
|
|
5
5
|
import { AdsApi } from './api/features/ads/';
|
|
6
6
|
import { UserStateApi } from './api/features/user-state/user-state.api';
|
|
7
|
+
import { AnalyticsApiContract } from './api/features/analytics/analytics.api';
|
|
7
8
|
export declare class ArkadiumGameSdk {
|
|
8
9
|
backendApi: BackendApi;
|
|
9
10
|
environment: EnvironmentApi;
|
|
@@ -11,7 +12,8 @@ export declare class ArkadiumGameSdk {
|
|
|
11
12
|
lifecycle: GameLifecycleContract;
|
|
12
13
|
ads: AdsApi;
|
|
13
14
|
userStateApi: UserStateApi;
|
|
14
|
-
|
|
15
|
+
analytics: AnalyticsApiContract;
|
|
16
|
+
constructor(backendApi: BackendApi, environment: EnvironmentApi, gameState: GameStateContract, lifecycle: GameLifecycleContract, ads: AdsApi, userStateApi: UserStateApi, analytics: AnalyticsApiContract);
|
|
15
17
|
initialize(env: ApiEnv, isGameSide: boolean): Promise<void>;
|
|
16
18
|
updateWinReference(target: any): void;
|
|
17
19
|
}
|