@betorigami/games 0.7.21 → 0.7.23
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 +35 -16
- package/dist/index.mjs +955 -1085
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -192,6 +192,8 @@ export declare const translations: {
|
|
|
192
192
|
errorProcessingBet: string;
|
|
193
193
|
autobetStopped: string;
|
|
194
194
|
autobetStarted: string;
|
|
195
|
+
betAmountBelowMinBet: string;
|
|
196
|
+
betAmountAboveMaxBet: string;
|
|
195
197
|
};
|
|
196
198
|
fairness: {
|
|
197
199
|
activeClientSeed: string;
|
|
@@ -392,6 +394,8 @@ export declare const translations: {
|
|
|
392
394
|
errorProcessingBet: string;
|
|
393
395
|
autobetStarted: string;
|
|
394
396
|
autobetStopped: string;
|
|
397
|
+
betAmountBelowMinBet: string;
|
|
398
|
+
betAmountAboveMaxBet: string;
|
|
395
399
|
};
|
|
396
400
|
fairness: {
|
|
397
401
|
activeClientSeed: string;
|
|
@@ -446,6 +450,16 @@ export declare const translations: {
|
|
|
446
450
|
};
|
|
447
451
|
};
|
|
448
452
|
export declare function getTranslation(key: TranslationKey, language?: Language, defaultValue?: string): string;
|
|
453
|
+
export interface GameHost {
|
|
454
|
+
addController(controller: any): void;
|
|
455
|
+
}
|
|
456
|
+
declare class HapticController {
|
|
457
|
+
private canVibrate;
|
|
458
|
+
constructor(host: GameHost);
|
|
459
|
+
trigger(duration?: number | number[]): void;
|
|
460
|
+
click(): void;
|
|
461
|
+
lightClick(): void;
|
|
462
|
+
}
|
|
449
463
|
declare enum OrigamiActionType {
|
|
450
464
|
START_BET = "START_BET",// bet started but not yet ended send to the /bet webhook
|
|
451
465
|
END_BET = "END_BET",// bet has been completed. Can be started and ended in 1 webhook or started in 1 and ended in another. send to the /bet webhook
|
|
@@ -521,7 +535,7 @@ export interface HistoryItem {
|
|
|
521
535
|
bet: string;
|
|
522
536
|
win: string;
|
|
523
537
|
}
|
|
524
|
-
|
|
538
|
+
interface GameHost$1 {
|
|
525
539
|
gameData: gameContextType;
|
|
526
540
|
addController(controller: any): void;
|
|
527
541
|
}
|
|
@@ -535,7 +549,7 @@ declare class HistoryController extends EventTarget {
|
|
|
535
549
|
private _hasLoadedMore;
|
|
536
550
|
private _clientSeed;
|
|
537
551
|
private _hasLoadedClientSeed;
|
|
538
|
-
constructor(host: GameHost);
|
|
552
|
+
constructor(host: GameHost$1);
|
|
539
553
|
get historyData(): HistoryItem[];
|
|
540
554
|
get hasData(): boolean | null;
|
|
541
555
|
get isInitialized(): boolean;
|
|
@@ -559,7 +573,7 @@ declare class HistoryController extends EventTarget {
|
|
|
559
573
|
updateClientSeed(newSeed: string): void;
|
|
560
574
|
}
|
|
561
575
|
export type BaseSound = "bet" | "click" | "dice-roll" | "dice-tick" | "half-double" | "keno-clear" | "keno-gem" | "limbo-tick" | "mines-bomb" | "mines-gem" | "secondary" | "toggle" | "win";
|
|
562
|
-
interface GameHost$
|
|
576
|
+
interface GameHost$2 {
|
|
563
577
|
gameData: gameContextType;
|
|
564
578
|
addController(controller: any): void;
|
|
565
579
|
}
|
|
@@ -568,7 +582,7 @@ declare class SoundController {
|
|
|
568
582
|
private muted;
|
|
569
583
|
private audioCtx;
|
|
570
584
|
private buffer;
|
|
571
|
-
constructor(host: GameHost$
|
|
585
|
+
constructor(host: GameHost$2);
|
|
572
586
|
preload(_file: string): void;
|
|
573
587
|
play(soundKey: BaseSound, muted?: boolean, pitch?: number, volume?: number, onEndCallback?: () => void): Promise<AudioBufferSourceNode | void>;
|
|
574
588
|
}
|
|
@@ -577,10 +591,8 @@ export type gameContextType = {
|
|
|
577
591
|
updateBetAmount: (newAmount: BigNumber) => void;
|
|
578
592
|
updateBalance: (newAmount: BigNumber) => void;
|
|
579
593
|
currency: Currency;
|
|
580
|
-
|
|
594
|
+
currencyDecimals: number;
|
|
581
595
|
showCurrencyAsText: boolean;
|
|
582
|
-
isTheatreMode: boolean;
|
|
583
|
-
showFavorites: boolean;
|
|
584
596
|
balance: number;
|
|
585
597
|
baseUrl: string;
|
|
586
598
|
authToken: string;
|
|
@@ -593,13 +605,16 @@ export type gameContextType = {
|
|
|
593
605
|
updateVolume: (volume: number) => void;
|
|
594
606
|
updateInstantBetEnabled: (enabled: boolean) => void;
|
|
595
607
|
language: Language;
|
|
596
|
-
updateLanguage: (language: Language) => void;
|
|
597
608
|
autobetNumberOfBets: number;
|
|
598
609
|
updateAutobetNumberOfBets: (numberOfBets: number) => void;
|
|
599
610
|
soundController?: SoundController;
|
|
600
611
|
historyController?: HistoryController;
|
|
601
|
-
|
|
612
|
+
hapticController?: HapticController;
|
|
613
|
+
lobbyUrl: string;
|
|
602
614
|
depositUrl?: string;
|
|
615
|
+
maxPayout: number;
|
|
616
|
+
minBet: number;
|
|
617
|
+
maxBet: number;
|
|
603
618
|
};
|
|
604
619
|
declare const gameContext: {
|
|
605
620
|
__context__: gameContextType;
|
|
@@ -612,23 +627,27 @@ declare enum OrigamiGame {
|
|
|
612
627
|
}
|
|
613
628
|
export declare class GameProviderWrapper extends OrigamiElement {
|
|
614
629
|
currency: Currency;
|
|
615
|
-
|
|
616
|
-
showFavorites: boolean;
|
|
630
|
+
showCurrencyAsText: boolean;
|
|
617
631
|
balance: number;
|
|
632
|
+
currencyDecimals: number;
|
|
618
633
|
baseUrl: string;
|
|
619
634
|
authToken: string;
|
|
620
|
-
isCryptoMode: boolean;
|
|
621
|
-
showCurrencyAsText: boolean;
|
|
622
635
|
origamiGame: OrigamiGame;
|
|
636
|
+
lobbyUrl: string;
|
|
637
|
+
depositUrl: string | undefined;
|
|
638
|
+
maxPayout: number;
|
|
639
|
+
minBet: number;
|
|
640
|
+
maxBet: number;
|
|
623
641
|
private betAmount;
|
|
624
642
|
private autobetNumberOfBets;
|
|
625
643
|
private hotkeysOpenEnabled;
|
|
626
644
|
private volume;
|
|
627
645
|
private instantBetEnabled;
|
|
628
646
|
private mainWidth;
|
|
629
|
-
|
|
647
|
+
language: Language;
|
|
630
648
|
private _soundController;
|
|
631
649
|
private _historyController;
|
|
650
|
+
private _hapticController;
|
|
632
651
|
protected _gameProvider: ContextProvider<typeof gameContext>;
|
|
633
652
|
connectedCallback(): void;
|
|
634
653
|
disconnectedCallback(): void;
|
|
@@ -641,7 +660,6 @@ export declare class GameProviderWrapper extends OrigamiElement {
|
|
|
641
660
|
updateInstantBetEnabled(enabled: boolean): void;
|
|
642
661
|
updateAutobetNumberOfBets(numberOfBets: number): void;
|
|
643
662
|
updateMainWidth(width: number): void;
|
|
644
|
-
updateLanguage(language: Language): void;
|
|
645
663
|
updateBetAmount(newAmount: BigNumber): void;
|
|
646
664
|
updateBalance(newAmount: BigNumber): void;
|
|
647
665
|
render(): import("lit-html").TemplateResult<1> | undefined;
|
|
@@ -866,7 +884,7 @@ export declare class KenoGame extends GameComponent {
|
|
|
866
884
|
get kenoApi(): KenoApi | MockKenoApi;
|
|
867
885
|
kenoPlay(): Promise<void>;
|
|
868
886
|
private handleBetExecution;
|
|
869
|
-
addToHistory(multiplier: number, won: boolean): void;
|
|
887
|
+
addToHistory(multiplier: number, won: boolean, id: string): void;
|
|
870
888
|
protected executeAutobet(_autobetSettings: AutobetSettings, currentBetAmount: string): Promise<GameBetResult>;
|
|
871
889
|
handleTileClick: (e: KenoTileClickEvent) => void;
|
|
872
890
|
handleRiskChange: (e: KenoRiskChangeEvent) => void;
|
|
@@ -937,6 +955,7 @@ export declare class LimboGame extends GameComponent {
|
|
|
937
955
|
multiplierChange: (e: LimboMultiplierChangeEvent) => void;
|
|
938
956
|
calculateProfitOnWin(): string;
|
|
939
957
|
winChanceChange: (e: LimboWinChanceChangeEvent) => void;
|
|
958
|
+
addToHistory(multiplier: number, won: boolean, id: string): void;
|
|
940
959
|
multiplierAnimationEnd: (e: LimboMultiplierAnimationEndEvent) => void;
|
|
941
960
|
render(): import("lit-html").TemplateResult<1>;
|
|
942
961
|
}
|