@betorigami/games 0.7.32 → 0.7.34

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
@@ -63,6 +63,7 @@ export declare const translations: {
63
63
  betAmountBelowMinBet: string;
64
64
  betCancelled: string;
65
65
  betDetailsCopied: string;
66
+ betLimitReached: string;
66
67
  betPlaced: string;
67
68
  connectionError: string;
68
69
  errorProcessingBet: string;
@@ -266,6 +267,7 @@ export declare const translations: {
266
267
  betAmountBelowMinBet: string;
267
268
  betCancelled: string;
268
269
  betDetailsCopied: string;
270
+ betLimitReached: string;
269
271
  betPlaced: string;
270
272
  connectionError: string;
271
273
  errorProcessingBet: string;
@@ -605,6 +607,7 @@ export declare const translations: {
605
607
  gameError: string;
606
608
  failedToLoadBetData: string;
607
609
  betDetailsCopied: string;
610
+ betLimitReached: string;
608
611
  failedToShareBetDetails: string;
609
612
  notEnoughBalance: string;
610
613
  errorProcessingBet: string;
@@ -726,6 +729,7 @@ export declare const translations: {
726
729
  betAmountBelowMinBet: string;
727
730
  betCancelled: string;
728
731
  betDetailsCopied: string;
732
+ betLimitReached: string;
729
733
  betPlaced: string;
730
734
  connectionError: string;
731
735
  errorProcessingBet: string;
@@ -929,6 +933,7 @@ export declare const translations: {
929
933
  betAmountBelowMinBet: string;
930
934
  betCancelled: string;
931
935
  betDetailsCopied: string;
936
+ betLimitReached: string;
932
937
  betPlaced: string;
933
938
  connectionError: string;
934
939
  errorProcessingBet: string;
@@ -1132,6 +1137,7 @@ export declare const translations: {
1132
1137
  betAmountBelowMinBet: string;
1133
1138
  betCancelled: string;
1134
1139
  betDetailsCopied: string;
1140
+ betLimitReached: string;
1135
1141
  betPlaced: string;
1136
1142
  connectionError: string;
1137
1143
  errorProcessingBet: string;
@@ -1335,6 +1341,7 @@ export declare const translations: {
1335
1341
  betAmountBelowMinBet: string;
1336
1342
  betCancelled: string;
1337
1343
  betDetailsCopied: string;
1344
+ betLimitReached: string;
1338
1345
  betPlaced: string;
1339
1346
  connectionError: string;
1340
1347
  errorProcessingBet: string;
@@ -1538,6 +1545,7 @@ export declare const translations: {
1538
1545
  betAmountBelowMinBet: string;
1539
1546
  betCancelled: string;
1540
1547
  betDetailsCopied: string;
1548
+ betLimitReached: string;
1541
1549
  betPlaced: string;
1542
1550
  connectionError: string;
1543
1551
  errorProcessingBet: string;
@@ -1741,6 +1749,7 @@ export declare const translations: {
1741
1749
  betAmountBelowMinBet: string;
1742
1750
  betCancelled: string;
1743
1751
  betDetailsCopied: string;
1752
+ betLimitReached: string;
1744
1753
  betPlaced: string;
1745
1754
  connectionError: string;
1746
1755
  errorProcessingBet: string;
@@ -1944,6 +1953,7 @@ export declare const translations: {
1944
1953
  betAmountBelowMinBet: string;
1945
1954
  betCancelled: string;
1946
1955
  betDetailsCopied: string;
1956
+ betLimitReached: string;
1947
1957
  betPlaced: string;
1948
1958
  connectionError: string;
1949
1959
  errorProcessingBet: string;
@@ -2147,6 +2157,7 @@ export declare const translations: {
2147
2157
  betAmountBelowMinBet: string;
2148
2158
  betCancelled: string;
2149
2159
  betDetailsCopied: string;
2160
+ betLimitReached: string;
2150
2161
  betPlaced: string;
2151
2162
  connectionError: string;
2152
2163
  errorProcessingBet: string;
@@ -2350,6 +2361,7 @@ export declare const translations: {
2350
2361
  betAmountBelowMinBet: string;
2351
2362
  betCancelled: string;
2352
2363
  betDetailsCopied: string;
2364
+ betLimitReached: string;
2353
2365
  betPlaced: string;
2354
2366
  connectionError: string;
2355
2367
  errorProcessingBet: string;
@@ -2553,6 +2565,7 @@ export declare const translations: {
2553
2565
  betAmountBelowMinBet: string;
2554
2566
  betCancelled: string;
2555
2567
  betDetailsCopied: string;
2568
+ betLimitReached: string;
2556
2569
  betPlaced: string;
2557
2570
  connectionError: string;
2558
2571
  errorProcessingBet: string;
@@ -2756,6 +2769,7 @@ export declare const translations: {
2756
2769
  betAmountBelowMinBet: string;
2757
2770
  betCancelled: string;
2758
2771
  betDetailsCopied: string;
2772
+ betLimitReached: string;
2759
2773
  betPlaced: string;
2760
2774
  connectionError: string;
2761
2775
  errorProcessingBet: string;
@@ -2959,6 +2973,7 @@ export declare const translations: {
2959
2973
  betAmountBelowMinBet: string;
2960
2974
  betCancelled: string;
2961
2975
  betDetailsCopied: string;
2976
+ betLimitReached: string;
2962
2977
  betPlaced: string;
2963
2978
  connectionError: string;
2964
2979
  errorProcessingBet: string;
@@ -3162,6 +3177,7 @@ export declare const translations: {
3162
3177
  betAmountBelowMinBet: string;
3163
3178
  betCancelled: string;
3164
3179
  betDetailsCopied: string;
3180
+ betLimitReached: string;
3165
3181
  betPlaced: string;
3166
3182
  connectionError: string;
3167
3183
  errorProcessingBet: string;
@@ -3381,7 +3397,6 @@ export type DiceStartAction = {
3381
3397
  };
3382
3398
  export type KenoStartAction = {
3383
3399
  riskLevel: KenoRiskLevel;
3384
- usdAmount: number;
3385
3400
  selectedNumbers: number[];
3386
3401
  };
3387
3402
  export type EndAction = {
@@ -3407,33 +3422,27 @@ export interface Action {
3407
3422
  LIMBO?: LimboStartAction | LimboEndAction;
3408
3423
  MINES?: MinesStartAction | EndAction;
3409
3424
  };
3410
- type: OrigamiActionType;
3411
- actionIndex: number;
3412
- originalActionId: string | null;
3413
3425
  betAmount: string | null;
3414
3426
  payoutAmount: string | null;
3415
- betId: string;
3416
- createdAt: string;
3417
- updatedAt: string;
3418
- webhookId: string;
3427
+ actionIndex: number;
3428
+ type: OrigamiActionType;
3419
3429
  }
3420
3430
  export interface BetResult {
3421
3431
  id: string;
3422
- tenantId: string;
3432
+ nonce: number;
3433
+ amount: string;
3434
+ payout: string | null;
3435
+ currency: Currency;
3423
3436
  userId: string;
3424
- tenantUserId: string;
3425
3437
  gameId: string;
3426
- currency: Currency;
3427
- amount: string;
3428
- payout: string;
3429
- afterBalance: string;
3430
- maxPayoutReached: boolean;
3431
- multiplier: string;
3438
+ multiplier: string | null;
3439
+ tenantId: string;
3432
3440
  clientSeed: string;
3433
- randomValue: string;
3441
+ randomValue: string | null;
3434
3442
  proof: string | null;
3435
- nonce: number;
3436
- betActions: Action[];
3443
+ afterBalance: string | null;
3444
+ tenantUserId: string;
3445
+ betActions: Array<Action>;
3437
3446
  }
3438
3447
  export interface HistoryItem {
3439
3448
  id: string;
@@ -3685,8 +3694,10 @@ declare abstract class GameComponent extends OrigamiElement {
3685
3694
  protected adjustBetAmount(autobetSettings: AutobetSettings, gameOutcome: "Win" | "Loss" | "Draw", originalBetAmount: string, currentBetAmount: string): string;
3686
3695
  protected isPnLWithinLimits(autobetSettings: AutobetSettings, totalPnL: BigNumber): boolean;
3687
3696
  protected updateHistoryWithBet(betResult: BetResult): void;
3697
+ protected showError(message: string): void;
3688
3698
  }
3689
3699
  export type DiceStartArgs = {
3700
+ language: Language;
3690
3701
  currency: Currency;
3691
3702
  amount: string;
3692
3703
  windowId?: string;
@@ -3701,7 +3712,7 @@ declare class DiceApi {
3701
3712
  constructor(authToken: string, baseUrl: string);
3702
3713
  startBet(data: DiceStartArgs): Promise<{
3703
3714
  success: true;
3704
- data: BetResult;
3715
+ data: any;
3705
3716
  error?: undefined;
3706
3717
  } | {
3707
3718
  success: false;
@@ -3754,6 +3765,7 @@ export declare class DiceGame extends GameComponent {
3754
3765
  render(): import("lit-html").TemplateResult<1>;
3755
3766
  }
3756
3767
  export type KenoStartArgs = {
3768
+ language: Language;
3757
3769
  currency: Currency;
3758
3770
  amount: string;
3759
3771
  windowId?: string;
@@ -3767,7 +3779,7 @@ declare class KenoApi {
3767
3779
  constructor(authToken: string, baseUrl: string);
3768
3780
  startBet(data: KenoStartArgs): Promise<{
3769
3781
  success: true;
3770
- data: BetResult;
3782
+ data: any;
3771
3783
  error?: undefined;
3772
3784
  } | {
3773
3785
  success: false;
@@ -3822,6 +3834,7 @@ export declare class KenoGame extends GameComponent {
3822
3834
  firstUpdated(): Promise<void>;
3823
3835
  }
3824
3836
  export type LimboStartArgs = {
3837
+ language: Language;
3825
3838
  currency: Currency;
3826
3839
  amount: string;
3827
3840
  windowId?: string;
@@ -3834,7 +3847,7 @@ declare class LimboApi {
3834
3847
  constructor(authToken: string, baseUrl: string);
3835
3848
  startBet: (data: LimboStartArgs) => Promise<{
3836
3849
  success: true;
3837
- data: BetResult;
3850
+ data: any;
3838
3851
  error?: undefined;
3839
3852
  } | {
3840
3853
  success: false;
@@ -3883,6 +3896,7 @@ export declare class LimboGame extends GameComponent {
3883
3896
  render(): import("lit-html").TemplateResult<1>;
3884
3897
  }
3885
3898
  export type MinesManualStartArgs = {
3899
+ language: Language;
3886
3900
  currency: Currency;
3887
3901
  amount: string;
3888
3902
  minesCount: number;
@@ -3892,6 +3906,7 @@ export type MinesNextArgs = {
3892
3906
  selectedTiles: number[];
3893
3907
  };
3894
3908
  export type MinesAutoArgs = {
3909
+ language: Language;
3895
3910
  currency: Currency;
3896
3911
  amount: string;
3897
3912
  windowId?: string;
@@ -3905,7 +3920,7 @@ declare class MinesApi {
3905
3920
  constructor(authToken: string, baseUrl: string);
3906
3921
  startManualBet(data: MinesManualStartArgs): Promise<{
3907
3922
  success: true;
3908
- data: BetResult;
3923
+ data: any;
3909
3924
  error?: undefined;
3910
3925
  } | {
3911
3926
  success: false;
@@ -3941,7 +3956,7 @@ declare class MinesApi {
3941
3956
  }>;
3942
3957
  autobetPlay(data: MinesAutoArgs): Promise<{
3943
3958
  success: true;
3944
- data: BetResult;
3959
+ data: any;
3945
3960
  error?: undefined;
3946
3961
  } | {
3947
3962
  success: false;
@@ -3960,19 +3975,13 @@ declare class MinesApi {
3960
3975
  static calculateMinesMultiplier: (gemsFound: number, mines: number) => BigNumber;
3961
3976
  static getState: (bet: BetResult) => MinesState;
3962
3977
  }
3963
- export interface MockMinesSettings {
3964
- shouldWin: boolean;
3965
- minePositions?: number[];
3966
- }
3967
3978
  declare class MockMinesApi {
3968
- private static mockSettings;
3969
3979
  private static activeBet;
3970
3980
  private static minePositions;
3971
- static setMockSettings(settings: MockMinesSettings): void;
3972
3981
  private static getRandomValueInRange;
3973
3982
  private static generateMinePositions;
3974
- private static addAction;
3975
- private static updateBetResult;
3983
+ private static createBetAction;
3984
+ private static createMockBetResult;
3976
3985
  startManualBet(data: MinesManualStartArgs): Promise<{
3977
3986
  success: true;
3978
3987
  data: BetResult;