@arkadiuminc/sdk 2.9.3 → 2.11.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.
@@ -1,8 +1,9 @@
1
1
  export declare class DisplayAd {
2
- static getInstance(): DisplayAd;
2
+ static domain: string;
3
+ static getInstance(domain?: string): DisplayAd;
3
4
  protected _scriptLoaded: Promise<void>;
4
5
  private ads;
5
- constructor();
6
+ constructor(domain: string);
6
7
  removeAllAds(): void;
7
8
  show(containerId: string, dimensions: number[][]): void;
8
9
  }
@@ -13,7 +13,7 @@ export interface GameAdsContract {
13
13
  }): Promise<{
14
14
  value: number;
15
15
  }>;
16
- showBannerAd(adId: string, dimensions: AdTypes[]): any;
16
+ showBannerAd?(adId: string, dimensions: AdTypes[]): any;
17
17
  }
18
18
  export declare enum AdTypes {
19
19
  AD_300x250 = "AD_300x250",
@@ -32,7 +32,10 @@ export declare class GameAds implements GameAdsContract {
32
32
  private interstitial;
33
33
  private rewarded;
34
34
  private preroll;
35
+ private banner;
35
36
  constructor(rpcProvider: RpcProvider, auth: Auth);
37
+ setVideoAdsDomain(domain: string): void;
38
+ setDisplayAdsDomain(domain: string): void;
36
39
  showPrerollAd({ duration }: {
37
40
  duration?: number;
38
41
  }): Promise<void>;
@@ -44,7 +47,6 @@ export declare class GameAds implements GameAdsContract {
44
47
  }): Promise<{
45
48
  value: number;
46
49
  }>;
47
- showBannerAd(): void;
48
50
  }
49
51
  export declare class GameAdsProxy implements GameAdsContract {
50
52
  bannerSizes: typeof AdTypes;
@@ -1,9 +1,10 @@
1
1
  import { ApiEnv } from "../backend/backend.api";
2
2
  export declare class VideoAd {
3
- static getInstance(): VideoAd;
3
+ static domain: string;
4
+ static getInstance(domain?: string): VideoAd;
4
5
  protected _scriptLoaded: Promise<void>;
5
6
  protected timer: any;
6
- constructor();
7
+ constructor(domain: string);
7
8
  preroll({ duration, env }: {
8
9
  duration?: number | undefined;
9
10
  env?: ApiEnv | undefined;
@@ -7,6 +7,7 @@ export interface IHost {
7
7
  setDetails?(p: Partial<WebEnvironmentDetails>): Promise<void>;
8
8
  openPurchaseForm(r: PurchaseRequest): Promise<void>;
9
9
  onOpenPurchaseForm?(observer: any): any;
10
+ getArenaName(): any;
10
11
  }
11
12
  export declare type PurchaseRequest = {
12
13
  type: string;
@@ -39,6 +40,7 @@ export declare class HostArena implements IHost {
39
40
  openPurchaseForm(pr: PurchaseRequest): Promise<void>;
40
41
  onOpenPurchaseForm(observer: any): () => void;
41
42
  purchaseFormClosed(madePurchase: boolean): Promise<void>;
43
+ getArenaName(): string;
42
44
  }
43
45
  export declare class HostGame implements IHost {
44
46
  private rpcProvider;
@@ -54,5 +56,6 @@ export declare class HostGame implements IHost {
54
56
  openPurchaseForm(r: PurchaseRequest): Promise<void>;
55
57
  onPurchaseFormStateChange(observer: any): () => void;
56
58
  private purchaseFormClosed;
59
+ getArenaName(): Promise<string>;
57
60
  }
58
61
  export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -25,6 +25,7 @@ export declare class PersistenceArena implements IPersistence {
25
25
  export declare class PersistenceGame implements IPersistence {
26
26
  private rpcProvider;
27
27
  private host;
28
+ private remoteStorageBlacklist;
28
29
  /**
29
30
  * @internal
30
31
  */
@@ -34,6 +35,7 @@ export declare class PersistenceGame implements IPersistence {
34
35
  removeLocalStorageItem(key: string): Promise<void>;
35
36
  getCookie(cookieName: string): Promise<string>;
36
37
  private getRemoteStorageCollection;
38
+ private isRemoteStorageBlacklisted;
37
39
  getRemoteStorageItem(key: string): Promise<RemoteStorageValueType | null>;
38
40
  setRemoteStorageItem(key: string, value: RemoteStorageValueType): Promise<void>;
39
41
  removeRemoteStorageItem(key: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.9.3",
3
+ "version": "2.11.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",