shufflecom-calculations 4.5.3 → 4.6.2

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.
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPaymentMethodLabel = void 0;
4
4
  const PAYMENT_METHOD_DISPLAY_LABEL = new Map([
5
5
  ['INTERAC', 'Interac®'],
6
- ['INTERAC_ACH', 'Interac e-Transfer®'],
7
- ['INTERAC_ETO', 'eCashout'],
6
+ ['INTERAC_ETO', 'Interac e-Transfer®'],
7
+ ['INTERAC_ACH', 'eCashout'],
8
8
  ]);
9
9
  const getPaymentMethodLabel = (paymentMethod) => {
10
10
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shufflecom-calculations",
3
- "version": "4.5.3",
3
+ "version": "4.6.2",
4
4
  "description": "",
5
5
  "types": "lib/index.d.ts",
6
6
  "main": "lib/index.js",
@@ -14,5 +14,5 @@
14
14
  },
15
15
  "author": "",
16
16
  "license": "ISC",
17
- "gitHead": "5f0c532b9d562a7ab29828c6fe021deb4f7f5056"
17
+ "gitHead": "efbb4916325e1b34b1ce629ef9b579c7a4fac519"
18
18
  }
@@ -0,0 +1,81 @@
1
+ export interface ResolvedGameImage {
2
+ id: string;
3
+ key: string;
4
+ }
5
+
6
+ export interface ResolvedGameTag {
7
+ name: string;
8
+ isEnabled: boolean;
9
+ isThemeTag: boolean;
10
+ isTournamentTag: boolean;
11
+ providerId: string | null;
12
+ }
13
+
14
+ export interface ResolvedGameProvider {
15
+ id: string;
16
+ name: string;
17
+ slug: string;
18
+ image: ResolvedGameImage | null;
19
+ icon: ResolvedGameImage | null;
20
+ disabledFiatCurrencies: string[];
21
+ disabled: boolean;
22
+ restrictionsWhitelist: string[];
23
+ }
24
+
25
+ export interface ResolvedGameAndGameCategory {
26
+ gameId: string;
27
+ gameCategoryName: string;
28
+ main: boolean;
29
+ }
30
+
31
+ export interface ResolvedGameLocalization {
32
+ language: string;
33
+ name: string;
34
+ image: ResolvedGameImage | null;
35
+ }
36
+
37
+ export interface ResolvedGameSource {
38
+ id: string;
39
+ externalId: string;
40
+ }
41
+
42
+ export interface ResolvedGame {
43
+ id: string;
44
+ name: string;
45
+ slug: string;
46
+ externalId: string | null;
47
+ description: string | null;
48
+ image: ResolvedGameImage | null;
49
+ icon: ResolvedGameImage | null;
50
+ provider: ResolvedGameProvider | null;
51
+ tags: ResolvedGameTag[];
52
+ gameAndGameCategories: ResolvedGameAndGameCategory[];
53
+ originalGame: string | null;
54
+ isFavourite: boolean;
55
+ demoMode: boolean;
56
+ edge: string;
57
+ edgeAlert: boolean;
58
+ bonusBuyMultiplier: number;
59
+ accentColor: string;
60
+ status: string;
61
+ beforeRecalledStatus: string | null;
62
+ releasedDate: string | null;
63
+ restrictions: string[] | null;
64
+ exclusiveRegions: string[] | null;
65
+ isRegionRestricted: boolean;
66
+ jurisdictions: string[] | null;
67
+ hasLive: boolean;
68
+ accumulating: boolean;
69
+ rolloverRestricted: boolean;
70
+ sweepStakesPlaythroughRate: number;
71
+ gameSources?: ResolvedGameSource[];
72
+ localizations?: ResolvedGameLocalization[];
73
+ completed?: boolean;
74
+ tournamentId?: string;
75
+ targetMultiplier?: number;
76
+ }
77
+
78
+ export interface PaginatedGameNoAuth {
79
+ totalCount: number | null;
80
+ nodes: ResolvedGame[];
81
+ }
package/src/index.ts CHANGED
@@ -45,6 +45,7 @@ export { Tower, TowerDifficulty, TOWER_DIFFICULTY_TO_CONFIG, TOWER_TOTAL_ROWS }
45
45
  export { Wheel, WheelRiskLevel, WheelSegments, WHEEL_MULTIPLIERS, WHEEL_SEGMENTS_TO_NUMBER } from './games/wheel';
46
46
  export { formatSelectionName } from './sports/sports-name';
47
47
  export { SportsProviderMaxBet, BetradarOverrideLimitType, BETRADAR_OVERRIDE_LIMIT_TO_MAX_BET } from './sports/override-limit-max-bet';
48
+ export { MAX_CUSTOM_BET_ODDS_INPUTS } from './sports/sports-bet';
48
49
  export { Blitz, BlitzResult, BLITZ_MIN_PICKS, BLITZ_MAX_PICKS } from './games/blitz';
49
50
  export { CoinSide, MAX_FLIPS } from './games/coinflip/constants';
50
51
  export * from './games/coinflip/coinflip-rules';
@@ -0,0 +1 @@
1
+ export const MAX_CUSTOM_BET_ODDS_INPUTS = 9;
@@ -3,8 +3,8 @@ import { getPaymentMethodLabel } from './payment-method-display';
3
3
  describe('getPaymentMethodLabel', () => {
4
4
  it('translates known paytech payment methods to their display label', () => {
5
5
  expect(getPaymentMethodLabel('INTERAC')).toBe('Interac®');
6
- expect(getPaymentMethodLabel('INTERAC_ACH')).toBe('Interac e-Transfer®');
7
- expect(getPaymentMethodLabel('INTERAC_ETO')).toBe('eCashout');
6
+ expect(getPaymentMethodLabel('INTERAC_ETO')).toBe('Interac e-Transfer®');
7
+ expect(getPaymentMethodLabel('INTERAC_ACH')).toBe('eCashout');
8
8
  });
9
9
 
10
10
  it('falls back to the raw provider value when the payment method is unmapped', () => {
@@ -1,7 +1,7 @@
1
1
  const PAYMENT_METHOD_DISPLAY_LABEL = new Map<string, string>([
2
2
  ['INTERAC', 'Interac®'],
3
- ['INTERAC_ACH', 'Interac e-Transfer®'],
4
- ['INTERAC_ETO', 'eCashout'],
3
+ ['INTERAC_ETO', 'Interac e-Transfer®'],
4
+ ['INTERAC_ACH', 'eCashout'],
5
5
  ]);
6
6
 
7
7
  export const getPaymentMethodLabel = (paymentMethod: string): string => {