@arkadiuminc/sdk 2.21.0 → 2.22.1
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.
|
@@ -11,8 +11,8 @@ export interface IHost {
|
|
|
11
11
|
getArenaName(): Promise<string>;
|
|
12
12
|
}
|
|
13
13
|
export declare type PurchaseRequest = {
|
|
14
|
-
type
|
|
15
|
-
currencySku
|
|
14
|
+
type?: string;
|
|
15
|
+
currencySku?: string;
|
|
16
16
|
};
|
|
17
17
|
declare class WebEnvironmentDetails {
|
|
18
18
|
siteName: string;
|
|
@@ -59,7 +59,7 @@ export declare class HostGame implements IHost {
|
|
|
59
59
|
*/
|
|
60
60
|
setGameId(id: string): void;
|
|
61
61
|
getDetails(): Promise<WebEnvironmentDetails>;
|
|
62
|
-
openPurchaseForm(r
|
|
62
|
+
openPurchaseForm(r?: PurchaseRequest): Promise<void>;
|
|
63
63
|
onPurchaseFormStateChange(observer: any): () => void;
|
|
64
64
|
private purchaseFormClosed;
|
|
65
65
|
getArenaName(): Promise<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
|
}
|