@arkadiuminc/sdk 2.20.0 → 2.22.0

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,7 +2,9 @@
2
2
  * Reference page:
3
3
  * https://arkadium.atlassian.net/wiki/spaces/DepartmentBusinessOperations/pages/23675756/Standardized+Spec+for+every+game+-+GA+AppInsights
4
4
  */
5
- export declare type DimensionsObject = Partial<Record<Dimension, string | number>>;
5
+ export declare type DimensionsObject = {
6
+ [key: string]: any;
7
+ };
6
8
  export declare enum Dimension {
7
9
  action = "action",
8
10
  /**
@@ -38,6 +38,7 @@ export declare class AppInsightsProvider extends AnalyticsProvider {
38
38
  protected setup(): Promise<void>;
39
39
  private fetchRemoteJson;
40
40
  private onceLoaded;
41
+ private validateProperties;
41
42
  sendEventImpl(eventCategory: string, eventAction: string, dimensions: DimensionsObject): void;
42
43
  sendPageViewImpl(pageName: string, dimensions: DimensionsObject): void;
43
44
  trackExceptionImpl(exception: Error): void;
@@ -11,6 +11,7 @@ export declare enum BackendType {
11
11
  EAGLE = "EAGLE",
12
12
  AARP = "AARP"
13
13
  }
14
+ export declare function getEnv(): ApiEnv;
14
15
  export interface BackendEndpoints {
15
16
  getUserEndpoint: (env: ApiEnv) => string;
16
17
  getPaymentsEndpoint: (env: ApiEnv) => string;
@@ -40,7 +40,7 @@ export { ApiEnv };
40
40
  export declare class ArenaApi {
41
41
  static version: string;
42
42
  private static sdk;
43
- static onGameSDKLoaded(target: any, callback: any): void;
43
+ static onGameSDKLoaded(target: any, callback: any, env?: ApiEnv): void;
44
44
  static dispose(): void;
45
45
  static getInstance(env: ApiEnv, deferInit?: boolean): Promise<ArkadiumArenaSdk>;
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.20.0",
3
+ "version": "2.22.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",