@arkadiuminc/sdk 2.67.0 → 2.68.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.
@@ -7,6 +7,11 @@ export declare type AdsConfig = {
7
7
  adTypes?: string[];
8
8
  cooldown?: number;
9
9
  };
10
+ export declare enum GameConfigProperty {
11
+ hasGems = "hasGems",
12
+ hasEagle = "hasEagle",
13
+ slug = "slug"
14
+ }
10
15
  declare type LifecycleBlacklistEntry = {
11
16
  games?: string[];
12
17
  platformTypes?: ArenaType[];
@@ -218,7 +223,8 @@ export declare class ConfigService {
218
223
  private isPlatform;
219
224
  private isPlatformType;
220
225
  private isGame;
226
+ resetGameConfig(): void;
221
227
  setGameConfig(gameConfig: any): void;
222
- getGameConfigProperty(property: string, defaultValue?: any): any;
228
+ getGameConfigProperty(property: GameConfigProperty, defaultValue?: any): any;
223
229
  }
224
230
  export {};
@@ -59,10 +59,8 @@ export declare class WalletArena implements Wallet, VirtualItemsApiProvider {
59
59
  */
60
60
  getGems(): Promise<number>;
61
61
  /**
62
- * Consumes the desired amount of gems from the user wallet
63
- * @param amount
64
- * @returns true if the spending of the gem amount was successful, false otherwise
65
- */
62
+ * @deprecated Use purchaseBundle instead
63
+ */
66
64
  consumeGems(amount: number): Promise<boolean>;
67
65
  getBundles(): Promise<Bundles>;
68
66
  purchaseBundle(bundleSku: string, amount?: number): Promise<boolean>;
@@ -82,10 +80,8 @@ export declare class WalletGame implements Wallet {
82
80
  */
83
81
  getGems(): Promise<number>;
84
82
  /**
85
- * Consumes the desired amount of gems from the user wallet
86
- * @param amount
87
- * @returns true if the spending of the gem amount was successful, false otherwise
88
- */
83
+ * @deprecated Use purchaseBundle instead
84
+ */
89
85
  consumeGems(amount: number): Promise<boolean>;
90
86
  isGemsSupported(): Promise<boolean>;
91
87
  getBundles(): Promise<Bundles>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.67.0",
3
+ "version": "2.68.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",