@betorigami/games 2.8.1 → 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;
@@ -7502,7 +7504,6 @@ export interface RouletteEndAction {
7502
7504
  result: number[];
7503
7505
  }
7504
7506
  export interface Action {
7505
- id: string;
7506
7507
  data: {
7507
7508
  DICE?: DiceStartAction | EndAction;
7508
7509
  KENO?: KenoStartAction | EndAction;
@@ -7527,7 +7528,6 @@ export interface BetResult {
7527
7528
  nonce: number;
7528
7529
  amount: string;
7529
7530
  payout: string | null;
7530
- currency: Currency;
7531
7531
  userId: string;
7532
7532
  gameId: string;
7533
7533
  multiplier: string | null;
@@ -7559,7 +7559,6 @@ export type AutobetApiSettings = {
7559
7559
  pnlSinceStart: string;
7560
7560
  };
7561
7561
  export interface BaseStartArgs {
7562
- currency: Currency;
7563
7562
  amount: string;
7564
7563
  meta?: {
7565
7564
  autobetSettings?: AutobetApiSettings;
@@ -7630,7 +7629,7 @@ declare abstract class GameComponent extends OrigamiElement {
7630
7629
  protected abstract executeAutobet(autobetSettings: AutobetSettingsWithId, currentBetAmount: string): Promise<GameBetResult>;
7631
7630
  protected adjustBetAmount(autobetSettings: AutobetSettingsWithId, gameOutcome: "Win" | "Loss" | "Draw", originalBetAmount: string, currentBetAmount: string): string;
7632
7631
  protected isPnLWithinLimits(autobetSettings: AutobetSettingsWithId, totalPnL: Big$1): boolean;
7633
- protected updateHistoryWithBet(betResult: NewHistoryItem): void;
7632
+ protected updateHistoryWithBet(betResult: NewBetItem): void;
7634
7633
  protected showError(message: string): void;
7635
7634
  protected playWinFeedback(): void;
7636
7635
  }
@@ -7996,7 +7995,6 @@ export declare class AdvancedDiceGame extends GameComponent {
7996
7995
  render(): import("lit-html").TemplateResult<1>;
7997
7996
  }
7998
7997
  export type RouletteStartArgs = {
7999
- currency: Currency;
8000
7998
  language: Language;
8001
7999
  meta?: {
8002
8000
  autobetSettings: AutobetApiSettings;
@@ -8170,7 +8168,6 @@ export type ErrorBetResult = {
8170
8168
  readonly errorCode: ErrorCode;
8171
8169
  };
8172
8170
  export type BlackjackStartArgs = {
8173
- currency: Currency;
8174
8171
  mainBetAmount: string;
8175
8172
  pairBonusAmount?: string;
8176
8173
  threeCardBonusAmount?: string;