@betorigami/games 2.8.2 → 2.8.3

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.
package/dist/index.d.ts CHANGED
@@ -6954,12 +6954,14 @@ interface GameHost$1 {
6954
6954
  gameData: gameContextType;
6955
6955
  addController(controller: any): void;
6956
6956
  }
6957
- export type NewHistoryItem = {
6957
+ export type NewBetItem = {
6958
6958
  readonly id: string;
6959
- readonly currency: Currency;
6960
6959
  readonly amount: string | number;
6961
6960
  readonly payout: string | number | null;
6962
6961
  };
6962
+ export type NewHistoryItem = NewBetItem & {
6963
+ readonly currency: Currency;
6964
+ };
6963
6965
  declare class HistoryController extends EventTarget {
6964
6966
  private host;
6965
6967
  private _historyData;
@@ -7526,7 +7528,6 @@ export interface BetResult {
7526
7528
  nonce: number;
7527
7529
  amount: string;
7528
7530
  payout: string | null;
7529
- currency: Currency;
7530
7531
  userId: string;
7531
7532
  gameId: string;
7532
7533
  multiplier: string | null;
@@ -7558,7 +7559,6 @@ export type AutobetApiSettings = {
7558
7559
  pnlSinceStart: string;
7559
7560
  };
7560
7561
  export interface BaseStartArgs {
7561
- currency: Currency;
7562
7562
  amount: string;
7563
7563
  meta?: {
7564
7564
  autobetSettings?: AutobetApiSettings;
@@ -7629,7 +7629,7 @@ declare abstract class GameComponent extends OrigamiElement {
7629
7629
  protected abstract executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
7630
7630
  protected adjustBetAmount(autobetSettings: AutobetSettingsWithId, gameOutcome: "Win" | "Loss" | "Draw", originalBetAmount: string, currentBetAmount: string): string;
7631
7631
  protected isPnLWithinLimits(autobetSettings: AutobetSettingsWithId, totalPnL: Big$1): boolean;
7632
- protected updateHistoryWithBet(betResult: NewHistoryItem): void;
7632
+ protected updateHistoryWithBet(betResult: NewBetItem): void;
7633
7633
  protected showError(message: string): void;
7634
7634
  protected playWinFeedback(): void;
7635
7635
  }
@@ -7995,7 +7995,6 @@ export declare class AdvancedDiceGame extends GameComponent {
7995
7995
  render(): import("lit-html").TemplateResult<1>;
7996
7996
  }
7997
7997
  export type RouletteStartArgs = {
7998
- currency: Currency;
7999
7998
  language: Language;
8000
7999
  meta?: {
8001
8000
  autobetSettings: AutobetApiSettings;
@@ -8169,7 +8168,6 @@ export type ErrorBetResult = {
8169
8168
  readonly errorCode: ErrorCode;
8170
8169
  };
8171
8170
  export type BlackjackStartArgs = {
8172
- currency: Currency;
8173
8171
  mainBetAmount: string;
8174
8172
  pairBonusAmount?: string;
8175
8173
  threeCardBonusAmount?: string;