@arkadiuminc/sdk 2.74.0 → 2.75.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.
|
@@ -44,12 +44,14 @@ export declare class AuthArena extends Auth {
|
|
|
44
44
|
private persistence;
|
|
45
45
|
private eagleId?;
|
|
46
46
|
private arkUserId?;
|
|
47
|
+
private arkUserIdPromise?;
|
|
47
48
|
private arkSessionId?;
|
|
48
49
|
private userProfilePromise?;
|
|
49
50
|
constructor(backendApi: Backend, host: IHost, rpcProvider: RpcProvider, persistence: PersistenceArena);
|
|
50
51
|
getUserProfile(): Promise<UserProfile | null>;
|
|
51
52
|
getUserIdentity(): Promise<UserIdentity>;
|
|
52
53
|
private getOrCreateArkUserId;
|
|
54
|
+
private resolveArkUserId;
|
|
53
55
|
private getOrCreateArkSessionId;
|
|
54
56
|
}
|
|
55
57
|
export declare class AuthGame extends Auth {
|
|
@@ -42,6 +42,7 @@ export interface Wallet {
|
|
|
42
42
|
init?(env: ApiEnv): Promise<void>;
|
|
43
43
|
getGems(): Promise<number>;
|
|
44
44
|
consumeGems(amount: number): Promise<boolean>;
|
|
45
|
+
isInventorySupported(): Promise<boolean>;
|
|
45
46
|
getBundles(): Promise<Bundles>;
|
|
46
47
|
purchaseBundle(bundleSku: string, amountOrOptions?: number | PurchaseBundleOptions): Promise<boolean>;
|
|
47
48
|
getCatalog(): Promise<Items>;
|
|
@@ -78,6 +79,7 @@ export declare class WalletArena implements Wallet, VirtualItemsApiProvider {
|
|
|
78
79
|
* @deprecated Use purchaseBundle instead
|
|
79
80
|
*/
|
|
80
81
|
consumeGems(amount: number): Promise<boolean>;
|
|
82
|
+
isInventorySupported(): Promise<boolean>;
|
|
81
83
|
getBundles(): Promise<Bundles>;
|
|
82
84
|
purchaseBundle(bundleSku: string, amountOrOptions?: number | PurchaseBundleOptions): Promise<boolean>;
|
|
83
85
|
private submitBundlePurchase;
|
|
@@ -101,6 +103,7 @@ export declare class WalletGame implements Wallet {
|
|
|
101
103
|
*/
|
|
102
104
|
consumeGems(amount: number): Promise<boolean>;
|
|
103
105
|
isGemsSupported(): Promise<boolean>;
|
|
106
|
+
isInventorySupported(): Promise<boolean>;
|
|
104
107
|
getBundles(): Promise<Bundles>;
|
|
105
108
|
purchaseBundle(bundleSku: string, amountOrOptions?: number | PurchaseBundleOptions): Promise<boolean>;
|
|
106
109
|
getCatalog(): Promise<Items>;
|