shufflecom-calculations 4.3.3 → 4.4.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/lib/sports/sports-competition-fixture.types.js.map +1 -1
- package/lib/sports/sports-content-home-page.types.d.ts +17 -0
- package/lib/sports/sports-content-home-page.types.js +10 -0
- package/lib/sports/sports-content-home-page.types.js.map +1 -0
- package/lib/sports/sports-selection.types.d.ts +8 -0
- package/lib/sports/sports-selection.types.js +4 -0
- package/lib/sports/sports-selection.types.js.map +1 -1
- package/lib/sports/sports.types.d.ts +15 -0
- package/lib/sports/sports.types.js +15 -2
- package/lib/sports/sports.types.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/sports/sports-competition-fixture.types.ts +0 -1
- package/src/sports/sports-content-home-page.types.ts +20 -0
- package/src/sports/sports-selection.types.ts +10 -0
- package/src/sports/sports.types.ts +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shufflecom-calculations",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.4.0",
|
|
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": "
|
|
17
|
+
"gitHead": "12c4928ea14e1a42051cac1343a075debff13562"
|
|
18
18
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PrebuildBetFeaturedPrebuilds } from './prebuild-bet.types';
|
|
2
|
+
import { PopularSportsCompetitionsV2Info } from './sports-competition-fixture.types';
|
|
3
|
+
import { SportsContentFeaturedEvents, SportsContentFeaturedOutright } from './sports-content-fixture.types';
|
|
4
|
+
import { PaginatedSportsBoostedSelectionsInfo } from './sports-selection.types';
|
|
5
|
+
import { Nullable, SportsContentType } from './sports.types';
|
|
6
|
+
|
|
7
|
+
export class SportsContentWeight {
|
|
8
|
+
sportsContentType: SportsContentType;
|
|
9
|
+
weight: number;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export class SportsContentHomePage {
|
|
13
|
+
featuredEvents: Nullable<SportsContentFeaturedEvents>;
|
|
14
|
+
featuredOutright: Nullable<SportsContentFeaturedOutright>;
|
|
15
|
+
popularCompetitions: Nullable<PopularSportsCompetitionsV2Info>;
|
|
16
|
+
featuredPrebuilds: Nullable<PrebuildBetFeaturedPrebuilds>;
|
|
17
|
+
sportsCustomBoosts: Nullable<PaginatedSportsBoostedSelectionsInfo>;
|
|
18
|
+
/** Enabled content types with their weights, ordered by weight DESC. */
|
|
19
|
+
weights: SportsContentWeight[];
|
|
20
|
+
}
|
|
@@ -27,6 +27,7 @@ export type SportsMarketSelectionType = {
|
|
|
27
27
|
name: string;
|
|
28
28
|
isOutrightLike: boolean;
|
|
29
29
|
shortName: string;
|
|
30
|
+
startTime: string;
|
|
30
31
|
};
|
|
31
32
|
competition: {
|
|
32
33
|
id: string;
|
|
@@ -41,3 +42,12 @@ export type SportsMarketSelectionType = {
|
|
|
41
42
|
};
|
|
42
43
|
provider: SportsMarketProvider;
|
|
43
44
|
};
|
|
45
|
+
|
|
46
|
+
export type SportsCustomBoostMarketSelectionType = SportsMarketSelectionType & {
|
|
47
|
+
boost: SportsMarketSelectionOddsBoost;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export class PaginatedSportsBoostedSelectionsInfo {
|
|
51
|
+
nodes: SportsCustomBoostMarketSelectionType[];
|
|
52
|
+
nextCursor: string | null;
|
|
53
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import { SportsMatchPhaseLabel } from './sports-match-state.types';
|
|
3
|
+
import { SportsCustomBoostMarketSelectionType } from './sports-selection.types';
|
|
3
4
|
|
|
4
5
|
export enum SportsMarketProvider {
|
|
5
6
|
SHUFFLE = 'SHUFFLE',
|
|
@@ -124,6 +125,20 @@ export enum SportsFixtureBannerType {
|
|
|
124
125
|
SINGLE_ELIMINATION = 'SINGLE_ELIMINATION',
|
|
125
126
|
}
|
|
126
127
|
|
|
128
|
+
/** SPORT_1..SPORT_6 are positional slots on the home page; each holds one popular sport's competitions. */
|
|
129
|
+
export enum SportsContentType {
|
|
130
|
+
HOME_FEATURED_EVENT = 'HOME_FEATURED_EVENT',
|
|
131
|
+
FEATURED_CUSTOM_BETS = 'FEATURED_CUSTOM_BETS',
|
|
132
|
+
FEATURED_OUTRIGHT = 'FEATURED_OUTRIGHT',
|
|
133
|
+
FEATURED_BOOSTS = 'FEATURED_BOOSTS',
|
|
134
|
+
SPORT_1 = 'SPORT_1',
|
|
135
|
+
SPORT_2 = 'SPORT_2',
|
|
136
|
+
SPORT_3 = 'SPORT_3',
|
|
137
|
+
SPORT_4 = 'SPORT_4',
|
|
138
|
+
SPORT_5 = 'SPORT_5',
|
|
139
|
+
SPORT_6 = 'SPORT_6',
|
|
140
|
+
}
|
|
141
|
+
|
|
127
142
|
export enum SportsMarketSelectionTeam {
|
|
128
143
|
HOME = 'HOME',
|
|
129
144
|
AWAY = 'AWAY',
|
|
@@ -665,6 +680,7 @@ export class DisplayGroup extends BaseDisplayGroup {
|
|
|
665
680
|
groupDisplayType: SportsGroupedSelectionsDisplayType;
|
|
666
681
|
playerMarkets: PlayerMarket[] | null;
|
|
667
682
|
groups: Partial<Record<SportsMarketGroup, number>> | null; // For SGM sub-groups
|
|
683
|
+
cmsDescriptionSlug: string | null;
|
|
668
684
|
}
|
|
669
685
|
|
|
670
686
|
export class SelectionGroup {
|
|
@@ -726,6 +742,7 @@ export class SgmSubGroup {
|
|
|
726
742
|
export class SportsMarketInfo {
|
|
727
743
|
odds: SportsNewMarketOddsUpdate[];
|
|
728
744
|
display: DisplayGroup[];
|
|
745
|
+
customBoosts: SportsCustomBoostMarketSelectionType[];
|
|
729
746
|
updatedAt: Nullable<Date>;
|
|
730
747
|
sgmSubGroups: Nullable<SgmSubGroup[]>;
|
|
731
748
|
}
|