@betorigami/games 3.2.7 → 3.3.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.
@@ -10,6 +10,7 @@ export declare class BlackjackManual extends OrigamiElement {
10
10
  canSplit: boolean;
11
11
  canDouble: boolean;
12
12
  canBuyInsurance: boolean;
13
+ canDeclineInsurance: boolean;
13
14
  showInsurance: boolean;
14
15
  insuranceAmount: string;
15
16
  insuranceUnavailable: boolean;
@@ -8,6 +8,7 @@ export declare class BlackjackGame extends GameComponent {
8
8
  visibleState: BlackjackVisibleState;
9
9
  private history;
10
10
  controlsLocked: boolean;
11
+ private unhandledError;
11
12
  private _loadingAction;
12
13
  suppressNextContentAnimations: boolean;
13
14
  sideBetMode: boolean;
@@ -56,7 +57,6 @@ export declare class BlackjackGame extends GameComponent {
56
57
  blackjackPlay(): Promise<void>;
57
58
  protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
58
59
  triggerForceUIUpdate(): Promise<void>;
59
- triggerShowError(error: string): void;
60
60
  triggerSetActiveBetNonce(nonce: number): void;
61
61
  setHasPendingBet(value: boolean): void;
62
62
  private get insuranceUnavailable();
@@ -1,20 +1,22 @@
1
- import { BetResult } from '@betorigami/game-ui-shared';
1
+ import { ErrorCode, BetResult } from '@betorigami/game-ui-shared';
2
2
  import { BlackjackState } from '@betorigami/game-calculations';
3
3
  import { BlackjackGame } from '../BlackjackGame';
4
4
  import { CardAnimationController } from '../controllers/CardAnimationController';
5
+ type BlackjackBetFailure = {
6
+ success: false;
7
+ error: string;
8
+ errorCode: ErrorCode;
9
+ };
5
10
  type BlackjackBetExecutionResult = {
6
11
  success: true;
7
12
  bjState: BlackjackState;
8
13
  betData: BetResult;
9
- } | {
10
- success: false;
11
- error: string;
12
- };
14
+ } | BlackjackBetFailure;
13
15
  export declare class BetController {
14
16
  private readonly game;
15
17
  private readonly animator;
16
18
  constructor(game: BlackjackGame, animator: CardAnimationController);
17
19
  executeBet(amount: string): Promise<BlackjackBetExecutionResult>;
18
- handleBetExecution(amount: string): Promise<void>;
20
+ handleBetExecution(amount: string): Promise<BlackjackBetExecutionResult>;
19
21
  }
20
22
  export {};
@@ -14,9 +14,11 @@ export declare class KenoApi {
14
14
  success: true;
15
15
  data: any;
16
16
  error?: undefined;
17
+ errorCode?: undefined;
17
18
  } | {
18
19
  success: false;
19
20
  error: string;
21
+ errorCode: import('@betorigami/game-ui-shared').ErrorCode;
20
22
  data?: undefined;
21
23
  }>;
22
24
  }