fansunited-sdk-esm 1.71.2 → 1.72.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/Core/Namespaces/Predictor/Facade/PredictorFacade.d.ts +1 -0
- package/Core/Namespaces/Predictor/Models/Factory/MatchMarketResultsFactory.d.ts +13 -0
- package/Core/Namespaces/Predictor/Models/MatchMarketsResults/MatchCorrectScoreMarketResultModel.d.ts +4 -0
- package/Core/Namespaces/Predictor/Models/MatchMarketsResults/MatchMarketsResultsModel.d.ts +36 -0
- package/Core/Namespaces/Predictor/Models/MatchMarketsResults/MatchPlayerMarketResultModel.d.ts +5 -0
- package/Core/Namespaces/Predictor/Predictor.d.ts +1 -0
- package/Core/Namespaces/Predictor/Service/PredictorService.d.ts +2 -0
- package/index.js +3 -3
- package/index.js.map +4 -4
- package/package.json +1 -1
|
@@ -47,4 +47,5 @@ export default class PredictorFacade {
|
|
|
47
47
|
getUserPredictionsForMatches: (userId: string, matchIds: string[], filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
|
|
48
48
|
getPredictionById: (predictionId: string) => Promise<PredictionResponseModel>;
|
|
49
49
|
getPredictionsByIds: (predictionIds: string[]) => Promise<PredictionResponseModel[]>;
|
|
50
|
+
getMatchMarketsResults: (matchId: string) => Promise<import("../Models/MatchMarketsResults/MatchMarketsResultsModel").default>;
|
|
50
51
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import MatchFullModel from "../../../Football/Models/Match/MatchFullModel";
|
|
2
|
+
import PlayerBasicModel from "../../../Football/Models/Player/PlayerShortModel";
|
|
3
|
+
import MatchMarketsResultsModel from "../MatchMarketsResults/MatchMarketsResultsModel";
|
|
4
|
+
export default class MatchMarketResultsFactory {
|
|
5
|
+
private constructor();
|
|
6
|
+
static createMatchMarketsResultsModel(match: MatchFullModel, playersMap: Map<string, PlayerBasicModel>): MatchMarketsResultsModel;
|
|
7
|
+
private static createOneXTwoResult;
|
|
8
|
+
private static createDoubleChanceResult;
|
|
9
|
+
private static createHalfTimeFullTimeResult;
|
|
10
|
+
private static createMarketResultByCriteria;
|
|
11
|
+
private static createPlayersMarketsResults;
|
|
12
|
+
private static transformPlayerMarketResult;
|
|
13
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import MatchCorrectScoreMarketResultModel from "./MatchCorrectScoreMarketResultModel";
|
|
2
|
+
import MatchPlayerMarketResultModel from "./MatchPlayerMarketResultModel";
|
|
3
|
+
export default class MatchMarketsResultsModel {
|
|
4
|
+
FT_1X2: string;
|
|
5
|
+
HT_1X2: string;
|
|
6
|
+
BOTH_TEAMS_SCORE: boolean;
|
|
7
|
+
DOUBLE_CHANCE: string[];
|
|
8
|
+
HT_FT: string;
|
|
9
|
+
RED_CARD_MATCH: boolean;
|
|
10
|
+
PENALTY_MATCH: boolean;
|
|
11
|
+
CORNERS_MATCH: number;
|
|
12
|
+
PLAYER_YELLOW_CARD: MatchPlayerMarketResultModel[];
|
|
13
|
+
PLAYER_RED_CARD: MatchPlayerMarketResultModel[];
|
|
14
|
+
PLAYER_SCORE_FIRST_GOAL: MatchPlayerMarketResultModel;
|
|
15
|
+
PLAYER_SCORE: MatchPlayerMarketResultModel[];
|
|
16
|
+
PLAYER_SCORE_TWICE: MatchPlayerMarketResultModel[];
|
|
17
|
+
PLAYER_SCORE_HATTRICK: MatchPlayerMarketResultModel[];
|
|
18
|
+
CORRECT_SCORE: MatchCorrectScoreMarketResultModel;
|
|
19
|
+
CORRECT_SCORE_ADVANCED: MatchCorrectScoreMarketResultModel;
|
|
20
|
+
CORRECT_SCORE_HT: MatchCorrectScoreMarketResultModel;
|
|
21
|
+
OVER_GOALS_0_5: boolean;
|
|
22
|
+
OVER_GOALS_1_5: boolean;
|
|
23
|
+
OVER_GOALS_2_5: boolean;
|
|
24
|
+
OVER_GOALS_3_5: boolean;
|
|
25
|
+
OVER_GOALS_4_5: boolean;
|
|
26
|
+
OVER_GOALS_5_5: boolean;
|
|
27
|
+
OVER_GOALS_6_5: boolean;
|
|
28
|
+
OVER_CORNERS_6_5: boolean;
|
|
29
|
+
OVER_CORNERS_7_5: boolean;
|
|
30
|
+
OVER_CORNERS_8_5: boolean;
|
|
31
|
+
OVER_CORNERS_9_5: boolean;
|
|
32
|
+
OVER_CORNERS_10_5: boolean;
|
|
33
|
+
OVER_CORNERS_11_5: boolean;
|
|
34
|
+
OVER_CORNERS_12_5: boolean;
|
|
35
|
+
OVER_CORNERS_13_5: boolean;
|
|
36
|
+
}
|
|
@@ -26,4 +26,5 @@ export default class Predictor {
|
|
|
26
26
|
getUserPredictionsForMatches: (userId: string, matchIds: string[], filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
|
|
27
27
|
getPredictionById: (predictionId: string) => Promise<PredictionResponseModel>;
|
|
28
28
|
getPredictionsByIds: (predictionIds: string[]) => Promise<PredictionResponseModel[]>;
|
|
29
|
+
getMatchMarketsResults: (matchId: string) => Promise<import("./Models/MatchMarketsResults/MatchMarketsResultsModel").default>;
|
|
29
30
|
}
|
|
@@ -11,6 +11,7 @@ import GameMarketsResults from "../../MatchQuiz/Models/GameMarketsResults/GameMa
|
|
|
11
11
|
import MatchSummaryModel from "../Models/Summary/MatchSummaryModel";
|
|
12
12
|
import MainFiltersBQ from "../../../Global/Models/Filters/MainFiltersBQ";
|
|
13
13
|
import ContestWinners from "../../TopX/Models/Games/Winners/ContestWinners";
|
|
14
|
+
import MatchMarketsResultsModel from "../Models/MatchMarketsResults/MatchMarketsResultsModel";
|
|
14
15
|
export default class PredictorService {
|
|
15
16
|
private footballHttps;
|
|
16
17
|
private idMapping;
|
|
@@ -85,4 +86,5 @@ export default class PredictorService {
|
|
|
85
86
|
*/
|
|
86
87
|
private remapMatchIdForResultsMarkets;
|
|
87
88
|
private deleteUnexpectedProperties;
|
|
89
|
+
getMatchMarketsResults: (matchId: string) => Promise<MatchMarketsResultsModel>;
|
|
88
90
|
}
|