@arkadiuminc/sdk 1.1.5 → 1.2.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.
@@ -2,6 +2,7 @@ import { RpcProvider } from '../../core/rpc';
2
2
  import { GameIdReaderContract } from '../environment/environment.api';
3
3
  import { AnalyticProviderEnum, IAnalyticConfig } from './defs';
4
4
  import { DimensionsObject } from './dimensions';
5
+ import { ApiEnv } from '../backend/backend.api';
5
6
  interface EnvironmentVersion {
6
7
  GameKey: string;
7
8
  GameVersion: string;
@@ -20,13 +21,15 @@ export interface AnalyticsApiContract {
20
21
  export declare class AnalyticsApi implements AnalyticsApiContract {
21
22
  private gameReader;
22
23
  private rpcProvider;
24
+ private arenaEnvironment;
23
25
  private providers;
24
26
  private activeProvidersTypes;
25
27
  private info;
26
- constructor(gameReader: GameIdReaderContract, rpcProvider: RpcProvider);
28
+ constructor(gameReader: GameIdReaderContract, rpcProvider: RpcProvider, arenaEnvironment: ApiEnv);
27
29
  getEnvVersion(): Promise<EnvironmentVersion>;
28
30
  setGameVersion(v: string): Promise<void>;
29
31
  setNestVersion(v: string): Promise<void>;
32
+ sendGameSDKInitEvent(version: string): Promise<void>;
30
33
  configureProvider(config: IAnalyticConfig): Promise<void>;
31
34
  sendEvent(eventCategory: string, eventAction: string, dimensions: DimensionsObject): Promise<void>;
32
35
  sendPageView(pageName: string, dimensions: DimensionsObject): Promise<void>;
@@ -190,5 +193,6 @@ export declare class AnalyticsApiProxy implements AnalyticsApiContract {
190
193
  * When player manually quits the game
191
194
  */
192
195
  sendQuitConfirmedPageView(dimensions?: DimensionsObject): void;
196
+ sendGameSDKInitEvent(): void;
193
197
  }
194
198
  export {};
@@ -1,7 +1,8 @@
1
1
  export declare enum AnalyticProviderEnum {
2
2
  CONSOLE = 1,
3
3
  GOOGLE = 2,
4
- APP_INSIGHTS = 3
4
+ APP_INSIGHTS = 3,
5
+ APP_INSIGHTS_SDK = 300
5
6
  }
6
7
  export interface IAnalyticConfig {
7
8
  appId: string;
@@ -70,5 +70,8 @@ export declare enum Dimension {
70
70
  CD1 = "CD1",
71
71
  CD2 = "CD2",
72
72
  CD3 = "CD3",
73
- CD4 = "CD4"
73
+ CD4 = "CD4",
74
+ gameSdkVersion = "gameSdkVersion",
75
+ gameId = "gameId",
76
+ arenaEnvironment = "arenaEnvironment"
74
77
  }
@@ -29,5 +29,6 @@ export declare enum Event {
29
29
  Reward = "Reward",
30
30
  Boost = "Boost",
31
31
  subscriptionBonus = "subscriptionBonus",
32
- Gem_Purchase = "Gem_Purchase"
32
+ Gem_Purchase = "Gem_Purchase",
33
+ Game_Sdk_Initialized = "Game_Sdk_Initialized"
33
34
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "1.1.5",
3
+ "version": "1.2.2",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",