@betorigami/games 2.1.2 → 2.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.
- package/dist/index.d.ts +206 -2
- package/dist/index.mjs +1515 -879
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import { BaccaratGameInputs, BaccaratGameOutputs, Color, Column, Dozen, Half, Parity, RouletteType } from '@betorigami/game-calculations';
|
|
3
|
+
import { BaccaratGameInputs, BaccaratGameOutputs, Color, Column, Dozen, Half, Parity, PlayResult, RouletteType } from '@betorigami/game-calculations';
|
|
4
4
|
import { ContextProvider } from '@lit/context';
|
|
5
5
|
import Big$1 from 'big.js';
|
|
6
6
|
import { CSSResult, LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
@@ -40,7 +40,8 @@ declare enum OrigamiGame {
|
|
|
40
40
|
PLINKO = "PLINKO",
|
|
41
41
|
ADVANCED_DICE = "ADVANCED_DICE",
|
|
42
42
|
ROULETTE = "ROULETTE",
|
|
43
|
-
BACCARAT = "BACCARAT"
|
|
43
|
+
BACCARAT = "BACCARAT",
|
|
44
|
+
BLACKJACK = "BLACKJACK"
|
|
44
45
|
}
|
|
45
46
|
export type SeasonTheme = "DEFAULT" | "HORRORGAMI" | "JOLLYGAMI";
|
|
46
47
|
declare const SUPPORTED_EDGE_PERCENTAGES: readonly [
|
|
@@ -103,6 +104,8 @@ export declare const translations: {
|
|
|
103
104
|
onLoss: string;
|
|
104
105
|
onWin: string;
|
|
105
106
|
reset: string;
|
|
107
|
+
placeBet: string;
|
|
108
|
+
placeBets: string;
|
|
106
109
|
startAutobet: string;
|
|
107
110
|
stopAutobet: string;
|
|
108
111
|
stopOnLoss: string;
|
|
@@ -432,6 +435,8 @@ export declare const translations: {
|
|
|
432
435
|
onLoss: string;
|
|
433
436
|
onWin: string;
|
|
434
437
|
reset: string;
|
|
438
|
+
placeBet: string;
|
|
439
|
+
placeBets: string;
|
|
435
440
|
startAutobet: string;
|
|
436
441
|
stopAutobet: string;
|
|
437
442
|
stopOnLoss: string;
|
|
@@ -761,11 +766,22 @@ export declare const translations: {
|
|
|
761
766
|
onLoss: string;
|
|
762
767
|
onWin: string;
|
|
763
768
|
reset: string;
|
|
769
|
+
placeBet: string;
|
|
770
|
+
placeBets: string;
|
|
764
771
|
startAutobet: string;
|
|
765
772
|
stopAutobet: string;
|
|
766
773
|
stopOnLoss: string;
|
|
767
774
|
stopOnProfit: string;
|
|
768
775
|
};
|
|
776
|
+
blackjack: {
|
|
777
|
+
seats: string;
|
|
778
|
+
hit: string;
|
|
779
|
+
stand: string;
|
|
780
|
+
split: string;
|
|
781
|
+
double: string;
|
|
782
|
+
buyInsurance: string;
|
|
783
|
+
noInsurance: string;
|
|
784
|
+
};
|
|
769
785
|
clipboard: {
|
|
770
786
|
linkCopied: string;
|
|
771
787
|
};
|
|
@@ -870,6 +886,17 @@ export declare const translations: {
|
|
|
870
886
|
verifyOutcome: string;
|
|
871
887
|
};
|
|
872
888
|
gameInfo: {
|
|
889
|
+
blackjack: {
|
|
890
|
+
how1: string;
|
|
891
|
+
how2: string;
|
|
892
|
+
how3: string;
|
|
893
|
+
how4: string;
|
|
894
|
+
how5: string;
|
|
895
|
+
how6: string;
|
|
896
|
+
overview: string;
|
|
897
|
+
provablyFair: string;
|
|
898
|
+
strategyTip: string;
|
|
899
|
+
};
|
|
873
900
|
baccarat: {
|
|
874
901
|
how1: string;
|
|
875
902
|
how2: string;
|
|
@@ -1091,6 +1118,8 @@ export declare const translations: {
|
|
|
1091
1118
|
onLoss: string;
|
|
1092
1119
|
onWin: string;
|
|
1093
1120
|
reset: string;
|
|
1121
|
+
placeBet: string;
|
|
1122
|
+
placeBets: string;
|
|
1094
1123
|
startAutobet: string;
|
|
1095
1124
|
stopAutobet: string;
|
|
1096
1125
|
stopOnLoss: string;
|
|
@@ -1420,6 +1449,8 @@ export declare const translations: {
|
|
|
1420
1449
|
onLoss: string;
|
|
1421
1450
|
onWin: string;
|
|
1422
1451
|
reset: string;
|
|
1452
|
+
placeBet: string;
|
|
1453
|
+
placeBets: string;
|
|
1423
1454
|
startAutobet: string;
|
|
1424
1455
|
stopAutobet: string;
|
|
1425
1456
|
stopOnLoss: string;
|
|
@@ -1749,6 +1780,8 @@ export declare const translations: {
|
|
|
1749
1780
|
onLoss: string;
|
|
1750
1781
|
onWin: string;
|
|
1751
1782
|
reset: string;
|
|
1783
|
+
placeBet: string;
|
|
1784
|
+
placeBets: string;
|
|
1752
1785
|
startAutobet: string;
|
|
1753
1786
|
stopAutobet: string;
|
|
1754
1787
|
stopOnLoss: string;
|
|
@@ -2078,6 +2111,8 @@ export declare const translations: {
|
|
|
2078
2111
|
onLoss: string;
|
|
2079
2112
|
onWin: string;
|
|
2080
2113
|
reset: string;
|
|
2114
|
+
placeBet: string;
|
|
2115
|
+
placeBets: string;
|
|
2081
2116
|
startAutobet: string;
|
|
2082
2117
|
stopAutobet: string;
|
|
2083
2118
|
stopOnLoss: string;
|
|
@@ -2407,6 +2442,8 @@ export declare const translations: {
|
|
|
2407
2442
|
onLoss: string;
|
|
2408
2443
|
onWin: string;
|
|
2409
2444
|
reset: string;
|
|
2445
|
+
placeBet: string;
|
|
2446
|
+
placeBets: string;
|
|
2410
2447
|
startAutobet: string;
|
|
2411
2448
|
stopAutobet: string;
|
|
2412
2449
|
stopOnLoss: string;
|
|
@@ -2736,6 +2773,8 @@ export declare const translations: {
|
|
|
2736
2773
|
onLoss: string;
|
|
2737
2774
|
onWin: string;
|
|
2738
2775
|
reset: string;
|
|
2776
|
+
placeBet: string;
|
|
2777
|
+
placeBets: string;
|
|
2739
2778
|
startAutobet: string;
|
|
2740
2779
|
stopAutobet: string;
|
|
2741
2780
|
stopOnLoss: string;
|
|
@@ -3065,6 +3104,8 @@ export declare const translations: {
|
|
|
3065
3104
|
onLoss: string;
|
|
3066
3105
|
onWin: string;
|
|
3067
3106
|
reset: string;
|
|
3107
|
+
placeBet: string;
|
|
3108
|
+
placeBets: string;
|
|
3068
3109
|
startAutobet: string;
|
|
3069
3110
|
stopAutobet: string;
|
|
3070
3111
|
stopOnLoss: string;
|
|
@@ -3394,6 +3435,8 @@ export declare const translations: {
|
|
|
3394
3435
|
onLoss: string;
|
|
3395
3436
|
onWin: string;
|
|
3396
3437
|
reset: string;
|
|
3438
|
+
placeBet: string;
|
|
3439
|
+
placeBets: string;
|
|
3397
3440
|
startAutobet: string;
|
|
3398
3441
|
stopAutobet: string;
|
|
3399
3442
|
stopOnLoss: string;
|
|
@@ -3723,6 +3766,8 @@ export declare const translations: {
|
|
|
3723
3766
|
onLoss: string;
|
|
3724
3767
|
onWin: string;
|
|
3725
3768
|
reset: string;
|
|
3769
|
+
placeBet: string;
|
|
3770
|
+
placeBets: string;
|
|
3726
3771
|
startAutobet: string;
|
|
3727
3772
|
stopAutobet: string;
|
|
3728
3773
|
stopOnLoss: string;
|
|
@@ -4052,6 +4097,8 @@ export declare const translations: {
|
|
|
4052
4097
|
onLoss: string;
|
|
4053
4098
|
onWin: string;
|
|
4054
4099
|
reset: string;
|
|
4100
|
+
placeBet: string;
|
|
4101
|
+
placeBets: string;
|
|
4055
4102
|
startAutobet: string;
|
|
4056
4103
|
stopAutobet: string;
|
|
4057
4104
|
stopOnLoss: string;
|
|
@@ -4381,6 +4428,8 @@ export declare const translations: {
|
|
|
4381
4428
|
onLoss: string;
|
|
4382
4429
|
onWin: string;
|
|
4383
4430
|
reset: string;
|
|
4431
|
+
placeBet: string;
|
|
4432
|
+
placeBets: string;
|
|
4384
4433
|
startAutobet: string;
|
|
4385
4434
|
stopAutobet: string;
|
|
4386
4435
|
stopOnLoss: string;
|
|
@@ -4710,6 +4759,8 @@ export declare const translations: {
|
|
|
4710
4759
|
onLoss: string;
|
|
4711
4760
|
onWin: string;
|
|
4712
4761
|
reset: string;
|
|
4762
|
+
placeBet: string;
|
|
4763
|
+
placeBets: string;
|
|
4713
4764
|
startAutobet: string;
|
|
4714
4765
|
stopAutobet: string;
|
|
4715
4766
|
stopOnLoss: string;
|
|
@@ -5039,6 +5090,8 @@ export declare const translations: {
|
|
|
5039
5090
|
onLoss: string;
|
|
5040
5091
|
onWin: string;
|
|
5041
5092
|
reset: string;
|
|
5093
|
+
placeBet: string;
|
|
5094
|
+
placeBets: string;
|
|
5042
5095
|
startAutobet: string;
|
|
5043
5096
|
stopAutobet: string;
|
|
5044
5097
|
stopOnLoss: string;
|
|
@@ -5368,6 +5421,8 @@ export declare const translations: {
|
|
|
5368
5421
|
onLoss: string;
|
|
5369
5422
|
onWin: string;
|
|
5370
5423
|
reset: string;
|
|
5424
|
+
placeBet: string;
|
|
5425
|
+
placeBets: string;
|
|
5371
5426
|
startAutobet: string;
|
|
5372
5427
|
stopAutobet: string;
|
|
5373
5428
|
stopOnLoss: string;
|
|
@@ -6298,6 +6353,7 @@ export interface Action {
|
|
|
6298
6353
|
ADVANCED_DICE?: AdvancedDiceStartAction | EndAction;
|
|
6299
6354
|
ROULETTE?: RouletteStartAction | RouletteEndAction;
|
|
6300
6355
|
BACCARAT?: BaccaratGameInputs | BaccaratEndAction;
|
|
6356
|
+
BLACKJACK?: PlayResult;
|
|
6301
6357
|
};
|
|
6302
6358
|
betAmount: string | null;
|
|
6303
6359
|
payoutAmount: string | null;
|
|
@@ -6866,5 +6922,153 @@ export declare class BaccaratGame extends ChipTableGameComponent {
|
|
|
6866
6922
|
protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
|
|
6867
6923
|
render(): import("lit-html").TemplateResult<1>;
|
|
6868
6924
|
}
|
|
6925
|
+
export type BlackjackStartArgs = {
|
|
6926
|
+
currency: Currency;
|
|
6927
|
+
amount: string;
|
|
6928
|
+
};
|
|
6929
|
+
export type BlackjackNextArgs = {
|
|
6930
|
+
betId: string;
|
|
6931
|
+
type: "BLACKJACK_HIT" | "BLACKJACK_STAND";
|
|
6932
|
+
};
|
|
6933
|
+
declare class BlackjackApi {
|
|
6934
|
+
private authToken;
|
|
6935
|
+
private baseUrl;
|
|
6936
|
+
constructor(authToken: string, baseUrl: string);
|
|
6937
|
+
startBet(data: BlackjackStartArgs): Promise<{
|
|
6938
|
+
success: true;
|
|
6939
|
+
data: BetResult;
|
|
6940
|
+
error?: undefined;
|
|
6941
|
+
} | {
|
|
6942
|
+
success: false;
|
|
6943
|
+
error: string;
|
|
6944
|
+
data?: undefined;
|
|
6945
|
+
}>;
|
|
6946
|
+
next(data: BlackjackNextArgs): Promise<{
|
|
6947
|
+
success: true;
|
|
6948
|
+
data: BetResult;
|
|
6949
|
+
error?: undefined;
|
|
6950
|
+
} | {
|
|
6951
|
+
success: false;
|
|
6952
|
+
error: string;
|
|
6953
|
+
data?: undefined;
|
|
6954
|
+
}>;
|
|
6955
|
+
getActiveBet(): Promise<{
|
|
6956
|
+
success: false;
|
|
6957
|
+
error: string;
|
|
6958
|
+
data?: undefined;
|
|
6959
|
+
} | {
|
|
6960
|
+
success: true;
|
|
6961
|
+
data: BetResult;
|
|
6962
|
+
error?: undefined;
|
|
6963
|
+
}>;
|
|
6964
|
+
}
|
|
6965
|
+
declare class MockBlackjackApi {
|
|
6966
|
+
private static activeBet;
|
|
6967
|
+
private static previousPlayResults;
|
|
6968
|
+
private static cardSequence;
|
|
6969
|
+
private static betAmount;
|
|
6970
|
+
private static betCurrency;
|
|
6971
|
+
startBet(data: BlackjackStartArgs): Promise<{
|
|
6972
|
+
success: true;
|
|
6973
|
+
data: BetResult;
|
|
6974
|
+
}>;
|
|
6975
|
+
next(data: BlackjackNextArgs): Promise<{
|
|
6976
|
+
success: false;
|
|
6977
|
+
error: string;
|
|
6978
|
+
data?: undefined;
|
|
6979
|
+
} | {
|
|
6980
|
+
success: true;
|
|
6981
|
+
data: BetResult;
|
|
6982
|
+
error?: undefined;
|
|
6983
|
+
}>;
|
|
6984
|
+
getActiveBet(): Promise<{
|
|
6985
|
+
success: false;
|
|
6986
|
+
error: string;
|
|
6987
|
+
data?: undefined;
|
|
6988
|
+
} | {
|
|
6989
|
+
success: true;
|
|
6990
|
+
data: BetResult;
|
|
6991
|
+
error?: undefined;
|
|
6992
|
+
}>;
|
|
6993
|
+
}
|
|
6994
|
+
export declare class BlackjackGame extends GameComponent {
|
|
6995
|
+
static styles: import("lit").CSSResult[];
|
|
6996
|
+
private isManualPlaying;
|
|
6997
|
+
private resultMultiplier;
|
|
6998
|
+
private history;
|
|
6999
|
+
private stage;
|
|
7000
|
+
private dealerCards;
|
|
7001
|
+
private playerHands;
|
|
7002
|
+
private activeHandIndex;
|
|
7003
|
+
private controlsLocked;
|
|
7004
|
+
private suppressNextContentAnimations;
|
|
7005
|
+
private sideBetMode;
|
|
7006
|
+
private perfectPairsAmount;
|
|
7007
|
+
private twentyOnePlusThreeAmount;
|
|
7008
|
+
private betData;
|
|
7009
|
+
private actionBusy;
|
|
7010
|
+
private insuranceBetAmount;
|
|
7011
|
+
private isSplitRound;
|
|
7012
|
+
private currentBetAmount;
|
|
7013
|
+
private _blackjackManualEl?;
|
|
7014
|
+
get isToggleDisabled(): boolean;
|
|
7015
|
+
get areInputsDisabled(): boolean;
|
|
7016
|
+
get blackjackApi(): BlackjackApi | MockBlackjackApi;
|
|
7017
|
+
private addToHistory;
|
|
7018
|
+
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
7019
|
+
private checkForActiveSession;
|
|
7020
|
+
private addPlayerCard;
|
|
7021
|
+
private addDealerCard;
|
|
7022
|
+
private handleBetExecution;
|
|
7023
|
+
blackjackPlay(): Promise<void>;
|
|
7024
|
+
protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
|
|
7025
|
+
private playDealSound;
|
|
7026
|
+
private playFlipSound;
|
|
7027
|
+
private revealDealerHole;
|
|
7028
|
+
private revealDealerCards;
|
|
7029
|
+
private finishRound;
|
|
7030
|
+
private waitForAllCardsToBeIdle;
|
|
7031
|
+
private accumulateBetActions;
|
|
7032
|
+
private onBuyInsurance;
|
|
7033
|
+
private onDeclineInsurance;
|
|
7034
|
+
private afterInsuranceDecision;
|
|
7035
|
+
private onHit;
|
|
7036
|
+
private onStand;
|
|
7037
|
+
private onSplit;
|
|
7038
|
+
private advanceSplitHand;
|
|
7039
|
+
private dealerPlaySplitRound;
|
|
7040
|
+
private finishSplitRound;
|
|
7041
|
+
private handBestValue;
|
|
7042
|
+
private randomUICard;
|
|
7043
|
+
private cardValueForSplit;
|
|
7044
|
+
private settleSideBets;
|
|
7045
|
+
private evaluatePerfectPairs;
|
|
7046
|
+
private evaluateTwentyOnePlusThree;
|
|
7047
|
+
private onBetModeChange;
|
|
7048
|
+
private onPerfectPairsAmountChange;
|
|
7049
|
+
private onTwentyOnePlusThreeAmountChange;
|
|
7050
|
+
private onCardFlip;
|
|
7051
|
+
private waitForCardDealComplete;
|
|
7052
|
+
private get canInteract();
|
|
7053
|
+
private get canHit();
|
|
7054
|
+
private get canStand();
|
|
7055
|
+
private get canDouble();
|
|
7056
|
+
private get canSplit();
|
|
7057
|
+
private isSpacebarDisabled;
|
|
7058
|
+
private handleSpacebar;
|
|
7059
|
+
private isHitDisabled;
|
|
7060
|
+
private handleHit;
|
|
7061
|
+
private isStandDisabled;
|
|
7062
|
+
private handleStand;
|
|
7063
|
+
private isSplitDisabled;
|
|
7064
|
+
private handleSplit;
|
|
7065
|
+
private isDoubleDisabled;
|
|
7066
|
+
private isAcceptInsuranceDisabled;
|
|
7067
|
+
private handleAcceptInsurance;
|
|
7068
|
+
private isNoInsuranceDisabled;
|
|
7069
|
+
private handleNoInsurance;
|
|
7070
|
+
constructor();
|
|
7071
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7072
|
+
}
|
|
6869
7073
|
|
|
6870
7074
|
export {};
|