@betorigami/games 2.1.1 → 2.2.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 +145 -2
- package/dist/index.mjs +1397 -885
- 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 [
|
|
@@ -766,6 +767,15 @@ export declare const translations: {
|
|
|
766
767
|
stopOnLoss: string;
|
|
767
768
|
stopOnProfit: string;
|
|
768
769
|
};
|
|
770
|
+
blackjack: {
|
|
771
|
+
seats: string;
|
|
772
|
+
hit: string;
|
|
773
|
+
stand: string;
|
|
774
|
+
split: string;
|
|
775
|
+
double: string;
|
|
776
|
+
buyInsurance: string;
|
|
777
|
+
noInsurance: string;
|
|
778
|
+
};
|
|
769
779
|
clipboard: {
|
|
770
780
|
linkCopied: string;
|
|
771
781
|
};
|
|
@@ -870,6 +880,17 @@ export declare const translations: {
|
|
|
870
880
|
verifyOutcome: string;
|
|
871
881
|
};
|
|
872
882
|
gameInfo: {
|
|
883
|
+
blackjack: {
|
|
884
|
+
how1: string;
|
|
885
|
+
how2: string;
|
|
886
|
+
how3: string;
|
|
887
|
+
how4: string;
|
|
888
|
+
how5: string;
|
|
889
|
+
how6: string;
|
|
890
|
+
overview: string;
|
|
891
|
+
provablyFair: string;
|
|
892
|
+
strategyTip: string;
|
|
893
|
+
};
|
|
873
894
|
baccarat: {
|
|
874
895
|
how1: string;
|
|
875
896
|
how2: string;
|
|
@@ -6298,6 +6319,7 @@ export interface Action {
|
|
|
6298
6319
|
ADVANCED_DICE?: AdvancedDiceStartAction | EndAction;
|
|
6299
6320
|
ROULETTE?: RouletteStartAction | RouletteEndAction;
|
|
6300
6321
|
BACCARAT?: BaccaratGameInputs | BaccaratEndAction;
|
|
6322
|
+
BLACKJACK?: PlayResult;
|
|
6301
6323
|
};
|
|
6302
6324
|
betAmount: string | null;
|
|
6303
6325
|
payoutAmount: string | null;
|
|
@@ -6866,5 +6888,126 @@ export declare class BaccaratGame extends ChipTableGameComponent {
|
|
|
6866
6888
|
protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
|
|
6867
6889
|
render(): import("lit-html").TemplateResult<1>;
|
|
6868
6890
|
}
|
|
6891
|
+
export type BlackjackStartArgs = {
|
|
6892
|
+
currency: Currency;
|
|
6893
|
+
amount: string;
|
|
6894
|
+
};
|
|
6895
|
+
export type BlackjackNextArgs = {
|
|
6896
|
+
betId: string;
|
|
6897
|
+
type: "BLACKJACK_HIT" | "BLACKJACK_STAND";
|
|
6898
|
+
};
|
|
6899
|
+
declare class BlackjackApi {
|
|
6900
|
+
private authToken;
|
|
6901
|
+
private baseUrl;
|
|
6902
|
+
constructor(authToken: string, baseUrl: string);
|
|
6903
|
+
startBet(data: BlackjackStartArgs): Promise<{
|
|
6904
|
+
success: true;
|
|
6905
|
+
data: BetResult;
|
|
6906
|
+
error?: undefined;
|
|
6907
|
+
} | {
|
|
6908
|
+
success: false;
|
|
6909
|
+
error: string;
|
|
6910
|
+
data?: undefined;
|
|
6911
|
+
}>;
|
|
6912
|
+
next(data: BlackjackNextArgs): Promise<{
|
|
6913
|
+
success: true;
|
|
6914
|
+
data: BetResult;
|
|
6915
|
+
error?: undefined;
|
|
6916
|
+
} | {
|
|
6917
|
+
success: false;
|
|
6918
|
+
error: string;
|
|
6919
|
+
data?: undefined;
|
|
6920
|
+
}>;
|
|
6921
|
+
getActiveBet(): Promise<{
|
|
6922
|
+
success: false;
|
|
6923
|
+
error: string;
|
|
6924
|
+
data?: undefined;
|
|
6925
|
+
} | {
|
|
6926
|
+
success: true;
|
|
6927
|
+
data: BetResult;
|
|
6928
|
+
error?: undefined;
|
|
6929
|
+
}>;
|
|
6930
|
+
}
|
|
6931
|
+
declare class MockBlackjackApi {
|
|
6932
|
+
private static activeBet;
|
|
6933
|
+
private static previousPlayResults;
|
|
6934
|
+
private static cardSequence;
|
|
6935
|
+
private static betAmount;
|
|
6936
|
+
private static betCurrency;
|
|
6937
|
+
startBet(data: BlackjackStartArgs): Promise<{
|
|
6938
|
+
success: true;
|
|
6939
|
+
data: BetResult;
|
|
6940
|
+
}>;
|
|
6941
|
+
next(data: BlackjackNextArgs): Promise<{
|
|
6942
|
+
success: false;
|
|
6943
|
+
error: string;
|
|
6944
|
+
data?: undefined;
|
|
6945
|
+
} | {
|
|
6946
|
+
success: true;
|
|
6947
|
+
data: BetResult;
|
|
6948
|
+
error?: undefined;
|
|
6949
|
+
}>;
|
|
6950
|
+
getActiveBet(): Promise<{
|
|
6951
|
+
success: false;
|
|
6952
|
+
error: string;
|
|
6953
|
+
data?: undefined;
|
|
6954
|
+
} | {
|
|
6955
|
+
success: true;
|
|
6956
|
+
data: BetResult;
|
|
6957
|
+
error?: undefined;
|
|
6958
|
+
}>;
|
|
6959
|
+
}
|
|
6960
|
+
export declare class BlackjackGame extends GameComponent {
|
|
6961
|
+
static styles: import("lit").CSSResult[];
|
|
6962
|
+
private isManualPlaying;
|
|
6963
|
+
private resultMultiplier;
|
|
6964
|
+
private history;
|
|
6965
|
+
private stage;
|
|
6966
|
+
private dealerCards;
|
|
6967
|
+
private playerHands;
|
|
6968
|
+
private activeHandIndex;
|
|
6969
|
+
private controlsLocked;
|
|
6970
|
+
private suppressNextContentAnimations;
|
|
6971
|
+
private betData;
|
|
6972
|
+
private actionBusy;
|
|
6973
|
+
private _blackjackManualEl?;
|
|
6974
|
+
get isToggleDisabled(): boolean;
|
|
6975
|
+
get areInputsDisabled(): boolean;
|
|
6976
|
+
get blackjackApi(): BlackjackApi | MockBlackjackApi;
|
|
6977
|
+
private addToHistory;
|
|
6978
|
+
firstUpdated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
6979
|
+
private checkForActiveSession;
|
|
6980
|
+
private addPlayerCard;
|
|
6981
|
+
private addDealerCard;
|
|
6982
|
+
private handleBetExecution;
|
|
6983
|
+
blackjackPlay(): Promise<void>;
|
|
6984
|
+
protected executeAutobet(_autobetSettings: AutobetSettingsWithId, _currentBetAmount: string): Promise<GameBetResult>;
|
|
6985
|
+
private playDealSound;
|
|
6986
|
+
private playFlipSound;
|
|
6987
|
+
private revealDealerHole;
|
|
6988
|
+
private revealDealerCards;
|
|
6989
|
+
private finishRound;
|
|
6990
|
+
private waitForAllCardsToBeIdle;
|
|
6991
|
+
private accumulateBetActions;
|
|
6992
|
+
private onHit;
|
|
6993
|
+
private onStand;
|
|
6994
|
+
private onCardFlip;
|
|
6995
|
+
private waitForCardDealComplete;
|
|
6996
|
+
private get canInteract();
|
|
6997
|
+
private get canHit();
|
|
6998
|
+
private get canStand();
|
|
6999
|
+
private get canDouble();
|
|
7000
|
+
private get canSplit();
|
|
7001
|
+
private isSpacebarDisabled;
|
|
7002
|
+
private handleSpacebar;
|
|
7003
|
+
private isHitDisabled;
|
|
7004
|
+
private handleHit;
|
|
7005
|
+
private isStandDisabled;
|
|
7006
|
+
private handleStand;
|
|
7007
|
+
private isSplitDisabled;
|
|
7008
|
+
private isDoubleDisabled;
|
|
7009
|
+
constructor();
|
|
7010
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
7011
|
+
}
|
|
6869
7012
|
|
|
6870
7013
|
export {};
|