@arkadiuminc/sdk 2.26.0 → 2.26.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/dist/pkg/api/core/debug-provider.d.ts +1 -0
- package/dist/pkg/api/core/logger.d.ts +0 -1
- package/dist/pkg/api/features/analytics/analytics.api.d.ts +5 -1
- package/dist/pkg/api/features/analytics/defs.d.ts +1 -0
- package/dist/pkg/api/features/analytics/events.d.ts +2 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ export interface DebugProvider {
|
|
|
7
7
|
sendDebugEvent(type: string, ...args: any[]): void;
|
|
8
8
|
onDebugEvent?(observer: any): void;
|
|
9
9
|
}
|
|
10
|
+
export declare function isDebugMode(): boolean;
|
|
10
11
|
export declare class DebugProviderArena implements DebugProvider {
|
|
11
12
|
private observers;
|
|
12
13
|
private isDebug;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare function isDebugMode(): boolean;
|
|
2
1
|
export declare function initializationLog(name: string, params?: any): void;
|
|
3
2
|
export declare function rpcRequest(name: string, module: string, parameters: any): void;
|
|
4
3
|
export declare function rpcResponseSending(name: string, fileName: string, parameters: any, result: any): void;
|
|
@@ -3,6 +3,7 @@ import { AnalyticsProviderType, IAnalyticConfig } from './defs';
|
|
|
3
3
|
import { DimensionsObject, Dimension } from './dimensions';
|
|
4
4
|
import { IHost } from '../host';
|
|
5
5
|
import { DebugProvider } from '../../core/debug-provider';
|
|
6
|
+
import { ApiEnv } from '../backend/backend.api';
|
|
6
7
|
|
|
7
8
|
interface EnvironmentVersion {
|
|
8
9
|
GameKey: string;
|
|
@@ -28,15 +29,17 @@ export declare class AnalyticsApi implements AnalyticsApiContract {
|
|
|
28
29
|
private host;
|
|
29
30
|
private rpcProvider;
|
|
30
31
|
private debugProvider;
|
|
32
|
+
private arenaEnvironment;
|
|
31
33
|
private providers;
|
|
32
34
|
private configuredProviders;
|
|
33
35
|
private disabledProviders;
|
|
34
36
|
private info;
|
|
35
37
|
providersTypes: typeof AnalyticsProviderType;
|
|
36
|
-
constructor(host: IHost, rpcProvider: RpcProvider, debugProvider: DebugProvider);
|
|
38
|
+
constructor(host: IHost, rpcProvider: RpcProvider, debugProvider: DebugProvider, arenaEnvironment: ApiEnv);
|
|
37
39
|
getEnvVersion(): Promise<EnvironmentVersion>;
|
|
38
40
|
setGameVersion(v: string): Promise<void>;
|
|
39
41
|
setNestVersion(v: string): Promise<void>;
|
|
42
|
+
sendGameSDKInitEvent(version: string): Promise<void>;
|
|
40
43
|
configureProvider(config: IAnalyticConfig): Promise<void>;
|
|
41
44
|
sendEvent(eventCategory: string, eventAction: string, dimensions: DimensionsObject): Promise<void>;
|
|
42
45
|
sendPageView(pageName: string, dimensions: DimensionsObject): Promise<void>;
|
|
@@ -216,5 +219,6 @@ export declare class AnalyticsApiProxy implements AnalyticsApiContract {
|
|
|
216
219
|
* When player manually quits the game
|
|
217
220
|
*/
|
|
218
221
|
sendQuitConfirmedPageView(dimensions?: DimensionsObject): void;
|
|
222
|
+
sendGameSDKInitEvent(): void;
|
|
219
223
|
}
|
|
220
224
|
export {};
|