fansunited-sdk-esm 1.26.2 → 1.27.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.
Files changed (27) hide show
  1. package/Core/Exception/ErrorStatuses.d.ts +2 -1
  2. package/Core/Global/Helper.d.ts +0 -1
  3. package/Core/Global/Messages/Messages.d.ts +3 -1
  4. package/Core/Https/LoyaltyHttps.d.ts +3 -0
  5. package/Core/Https/PredictorHttps.d.ts +2 -2
  6. package/Core/Namespaces/Football/Facades/FootballFacade.d.ts +6 -3
  7. package/Core/Namespaces/Football/Football.d.ts +2 -1
  8. package/Core/Namespaces/Football/Models/Match/MatchBasicModel.d.ts +1 -0
  9. package/Core/Namespaces/Football/Models/Match/MatchFullModel.d.ts +1 -0
  10. package/Core/Namespaces/Football/Models/Player/PlayerBasicModel.d.ts +1 -0
  11. package/Core/Namespaces/Football/Models/Player/PlayerFullModel.d.ts +1 -0
  12. package/Core/Namespaces/Football/Models/Team/TeamBasicModel.d.ts +1 -0
  13. package/Core/Namespaces/Football/Models/Team/TeamFullModel.d.ts +1 -0
  14. package/Core/Namespaces/Loyalty/Facade/LoyaltyFacade.d.ts +3 -0
  15. package/Core/Namespaces/Loyalty/Loyalty.d.ts +3 -0
  16. package/Core/Namespaces/Loyalty/Models/EntitiesFollows/EntitiesFollows.d.ts +12 -0
  17. package/Core/Namespaces/Loyalty/Models/Filters/EntitiesFollowsFilters.d.ts +5 -0
  18. package/Core/Namespaces/Loyalty/Service/LoyaltyService.d.ts +7 -0
  19. package/Core/Namespaces/MatchQuiz/Facade/MatchQuizFacade.d.ts +2 -2
  20. package/Core/Namespaces/MatchQuiz/MatchQuiz.d.ts +2 -2
  21. package/Core/Namespaces/TopX/Facade/TopXFacade.d.ts +2 -2
  22. package/Core/Namespaces/TopX/Models/Games/GameByIdModel.d.ts +4 -0
  23. package/Core/Namespaces/TopX/Models/Games/GamesRemapper.d.ts +2 -0
  24. package/Core/Namespaces/TopX/TopX.d.ts +2 -2
  25. package/index.js +4 -31
  26. package/index.js.map +3 -3
  27. package/package.json +1 -1
@@ -6,5 +6,6 @@ export declare enum ErrorStatuses {
6
6
  INVALID_TYPE = "INVALID_TYPE",
7
7
  EXCEEDED_LENGTH = "EXCEEDED_LENGTH",
8
8
  INVALID_TOKEN = "invalid_token",
9
- UNAUTHORIZED = "unauthorized"
9
+ UNAUTHORIZED = "unauthorized",
10
+ INVALID_FILTERS = "invalid_filters"
10
11
  }
@@ -2,7 +2,6 @@ export declare const requestChunkBuild: (ids: string[]) => any;
2
2
  export declare const limitIds: (ids: string[], limit: number) => any;
3
3
  export declare const setBaseUrl: (environment: string, namespace: string) => string;
4
4
  export declare const transformIdsToBeUnique: (ids: string[]) => string[];
5
- export declare const remapKeysToCamelCase: (obj: any) => any;
6
5
  export declare const isDisabledCache: (disableCache: boolean) => boolean;
7
6
  export declare const initDisableCache: () => string;
8
7
  export declare const sortArrayInAscOrder: (array: string[]) => string[];
@@ -7,7 +7,9 @@ export declare enum ErrorMessages {
7
7
  QUERY_PARAM_FILTERS_LIMIT_EXCEEDED = "Maximum limit for filtering games is 50 or less.",
8
8
  INVALID_PREDICTION_FIELD = "Prediction field is invalid. For more information please visit our documentation",
9
9
  INVALID_TOKEN = "Invalid JWT token is provided",
10
- EXPIRED_TOKEN = "The provided JWT token is expired"
10
+ EXPIRED_TOKEN = "The provided JWT token is expired",
11
+ ENTITIES_NEEDED = "At least one of footballCompetitions, footballTeams or footballPlayers properties should be provided for filters.",
12
+ ENTITIES_FOLLOWS_FILTERS_EXCEEDED = "Maximum length per entity should be 10 or less."
11
13
  }
12
14
  export declare const WarningMessages: {
13
15
  UNEXPECTED_STATUS_PROP: string;
@@ -6,6 +6,8 @@ import RankingsFilters from "../Namespaces/Loyalty/Models/Filters/RankingsFilter
6
6
  import TemplateModel from "../Namespaces/Loyalty/Models/Template/TemplateModel";
7
7
  import HighestSuccessRateModel from "../Namespaces/Loyalty/Models/HighestSuccessRate/HighestSuccessRateModel";
8
8
  import Https from "./Https";
9
+ import EntitiesFollowsFilters from "../Namespaces/Loyalty/Models/Filters/EntitiesFollowsFilters";
10
+ import EntitiesFollows from "../Namespaces/Loyalty/Models/EntitiesFollows/EntitiesFollows";
9
11
  export default class LoyaltyHttps extends Https {
10
12
  private templateRemapper;
11
13
  private leaderboardRemapper;
@@ -18,4 +20,5 @@ export default class LoyaltyHttps extends Https {
18
20
  getLeaderboardForGame: (gameId: string, disableCache: boolean, filters: LoyaltyFilters) => Promise<PaginationModel>;
19
21
  getUserRankings: (userId: string, filters: RankingsFilters, disableCache: boolean) => Promise<FootballPaginationModel>;
20
22
  getHighestSuccessRate: (market: string, disableCache: boolean) => Promise<HighestSuccessRateModel[]>;
23
+ getEntitiesFollows: (filters: EntitiesFollowsFilters, disableCache: boolean) => Promise<EntitiesFollows>;
21
24
  }
@@ -6,11 +6,11 @@ import PredictionsFilters from "../Namespaces/Predictor/Models/Predictions/Predi
6
6
  import GamesFilters from "../Namespaces/TopX/Models/Games/GamesFilters";
7
7
  import IdMappingService from "../IdMapping/IdMappingService";
8
8
  import TopXPredictionRequestModel from "../Namespaces/TopX/Models/Prediction/TopXPredictionRequestModel";
9
- import GamesListModel from "../Namespaces/TopX/Models/Games/GamesListModel";
10
9
  import PaginationModel from "../Global/Models/Pagination/PaginationModel";
11
10
  import MainFiltersBQ from "../Global/Models/Filters/MainFiltersBQ";
12
11
  import Https from "./Https";
13
12
  import ContestWinners from "../Namespaces/TopX/Models/Games/Winners/ContestWinners";
13
+ import GameByIdModel from "../Namespaces/TopX/Models/Games/GameByIdModel";
14
14
  export default class PredictorHttps extends Https {
15
15
  private predictionRemapper;
16
16
  private matchSummaryRemapper;
@@ -25,7 +25,7 @@ export default class PredictorHttps extends Https {
25
25
  getUserPredictions: (userId: string, disableCache: boolean, filters?: PredictionsFilters) => Promise<PaginationModel>;
26
26
  getUserPredictionsNoRemap: (userId: string, filters?: PredictionsFilters) => Promise<any>;
27
27
  getGames: (filters: GamesFilters, disableCache?: boolean) => Promise<PaginationModel>;
28
- getGameById: (gameId: string, disableCache: boolean) => Promise<GamesListModel>;
28
+ getGameById: (gameId: string, disableCache: boolean) => Promise<GameByIdModel>;
29
29
  getGamePredictions: (gameId: string, disableCache: boolean, filters?: PredictionsFilters) => Promise<PaginationModel>;
30
30
  getUserGameEditions: (filters: GamesFilters, disableCache: boolean) => Promise<PaginationModel>;
31
31
  getGameResults: (gameId: string, disableCache: boolean, filters?: MainFiltersBQ) => Promise<PaginationModel>;
@@ -1,12 +1,15 @@
1
1
  import LocalStorage from "../../../Global/LocalStorage";
2
2
  import FootballHttps from "../../../Https/FootballHttps";
3
3
  import IdMappingService from "../../../IdMapping/IdMappingService";
4
+ import CompetitionsFacade from "./CompetitionsFacade";
5
+ import TeamsFacade from "./TeamsFacade";
4
6
  import TeamBasicModel from "../Models/Team/TeamBasicModel";
5
7
  import TeamFullModel from "../Models/Team/TeamFullModel";
6
8
  import CompetitionBasicModel from "../Models/Competition/CompetitionBasicModel";
7
9
  import CompetitionFullModel from "../Models/Competition/CompetitionFullModel";
8
10
  import FootballCountryModel from "../Models/Country/FootballCountryModel";
9
11
  import MatchFullModel from "../Models/Match/MatchFullModel";
12
+ import PlayerFacade from "./PlayerFacade";
10
13
  import TopPlayerModel from "../Models/Player/TopPlayerModel";
11
14
  import PlayerFullModel from "../Models/Player/PlayerFullModel";
12
15
  import SearchModel from "../Models/Search/SearchModel";
@@ -20,9 +23,9 @@ import SDKConfigurationModel from "../../../Configurator/Models/SDKConfiguraiton
20
23
  import PlayerBasicModel from "../Models/Player/PlayerBasicModel";
21
24
  export default class FootballFacade {
22
25
  private countriesFacade;
23
- private competitionsFacade;
24
- private teamsFacade;
25
- private playerFacade;
26
+ competitionsFacade: CompetitionsFacade;
27
+ teamsFacade: TeamsFacade;
28
+ playerFacade: PlayerFacade;
26
29
  private matchFacade;
27
30
  private searchFacade;
28
31
  constructor(config: SDKConfigurationModel, localStorage: LocalStorage, https: FootballHttps, idMapping: IdMappingService);
@@ -1,4 +1,5 @@
1
1
  import SDKConfigurationModel from "../../Configurator/Models/SDKConfiguraitonModel";
2
+ import FootballFacade from "./Facades/FootballFacade";
2
3
  import FootballCountryModel from "../Football/Models/Country/FootballCountryModel";
3
4
  import CompetitionBasicModel from "./Models/Competition/CompetitionBasicModel";
4
5
  import CompetitionFullModel from "./Models/Competition/CompetitionFullModel";
@@ -18,7 +19,7 @@ export default class Football {
18
19
  private https;
19
20
  private idMapping;
20
21
  private localStorage;
21
- private footballFacade;
22
+ footballFacade: FootballFacade;
22
23
  constructor(config: SDKConfigurationModel);
23
24
  getCountries: (disableCache?: boolean) => Promise<FootballCountryModel[]>;
24
25
  getCompetitions: (filters?: CompetitionFilters, disableCache?: boolean) => Promise<CompetitionBasicModel[]>;
@@ -8,6 +8,7 @@ export default class MatchBasicModel {
8
8
  availableMarkets: string[];
9
9
  homeTeam: TeamBasicModel;
10
10
  awayTeam: TeamBasicModel;
11
+ isDeleted: boolean;
11
12
  lineupsConfirmed: boolean;
12
13
  startedAt: string;
13
14
  minute: string;
@@ -11,6 +11,7 @@ export default class MatchFullModel {
11
11
  finishedAt: string;
12
12
  updatedAt: string;
13
13
  availableMarkets: string[];
14
+ isDeleted: boolean;
14
15
  homeTeam: TeamBasicModel;
15
16
  awayTeam: TeamBasicModel;
16
17
  lineupsConfirmed: boolean;
@@ -9,5 +9,6 @@ export default class PlayerBasicModel {
9
9
  name: string;
10
10
  position: string;
11
11
  assets: {};
12
+ isDeleted: boolean;
12
13
  teams: TeamBasicModel[];
13
14
  }
@@ -10,6 +10,7 @@ export default class PlayerFullModel {
10
10
  name: string;
11
11
  position: string;
12
12
  assets: {};
13
+ isDeleted: boolean;
13
14
  competitions: CompetitionBasicModel[];
14
15
  teams: TeamBasicModel[];
15
16
  }
@@ -9,4 +9,5 @@ export default class TeamBasicModel {
9
9
  national: boolean;
10
10
  fullName: string;
11
11
  shortName: string;
12
+ isDeleted: boolean;
12
13
  }
@@ -13,6 +13,7 @@ export default class TeamFullModel {
13
13
  national: boolean;
14
14
  fullName: string;
15
15
  shortName: string;
16
+ isDeleted: boolean;
16
17
  colors: TeamColors;
17
18
  squad: PlayerSquadModel[];
18
19
  }
@@ -12,6 +12,8 @@ import ProfileHttps from "../../../Https/ProfileHttps";
12
12
  import LocalStorage from "../../../Global/LocalStorage";
13
13
  import HighestSuccessRateModel from "../Models/HighestSuccessRate/HighestSuccessRateModel";
14
14
  import ContestWinners from "../../TopX/Models/Games/Winners/ContestWinners";
15
+ import EntitiesFollowsFilters from "../Models/Filters/EntitiesFollowsFilters";
16
+ import EntitiesFollows from "../Models/EntitiesFollows/EntitiesFollows";
15
17
  export default class LoyaltyFacade {
16
18
  private config;
17
19
  private clientHttps;
@@ -35,5 +37,6 @@ export default class LoyaltyFacade {
35
37
  getUserRankings: (userId: string, filters?: RankingsFilters, disableCache?: boolean) => Promise<FootballPaginationModel>;
36
38
  getHighestSuccessRate: (market: string, disableCache: boolean) => Promise<HighestSuccessRateModel[]>;
37
39
  getTemplateWinners: (templateId: string) => Promise<ContestWinners>;
40
+ getEntitiesFollows: (filters: EntitiesFollowsFilters, disableCache: boolean) => Promise<EntitiesFollows>;
38
41
  private getModelsForUserRankings;
39
42
  }
@@ -7,6 +7,8 @@ import { FeaturesConfigModels } from "../../Global/Types/GlobalTypes";
7
7
  import RankingsFilters from "./Models/Filters/RankingsFilters";
8
8
  import HighestSuccessRateModel from "./Models/HighestSuccessRate/HighestSuccessRateModel";
9
9
  import ContestWinners from "../TopX/Models/Games/Winners/ContestWinners";
10
+ import EntitiesFollowsFilters from "./Models/Filters/EntitiesFollowsFilters";
11
+ import EntitiesFollows from "./Models/EntitiesFollows/EntitiesFollows";
10
12
  export default class Loyalty {
11
13
  private clientHttps;
12
14
  private profileHttps;
@@ -24,4 +26,5 @@ export default class Loyalty {
24
26
  getUserRankings: (userId: string, filters?: RankingsFilters, disableCache?: boolean) => Promise<import("../Football/Models/Pagination/FootballPaginationModel").default>;
25
27
  getHighestSuccessRate: (market?: string, disableCache?: boolean) => Promise<HighestSuccessRateModel[]>;
26
28
  getTemplateWinners: (templateId: string) => Promise<ContestWinners>;
29
+ getEntitiesFollows: (filters: EntitiesFollowsFilters, disableCache?: boolean) => Promise<EntitiesFollows>;
27
30
  }
@@ -0,0 +1,12 @@
1
+ import CompetitionBasicModel from "../../../Football/Models/Competition/CompetitionBasicModel";
2
+ import PlayerBasicModel from "../../../Football/Models/Player/PlayerBasicModel";
3
+ import TeamBasicModel from "../../../Football/Models/Team/TeamBasicModel";
4
+ export interface EntitiesFollowsBreakdown {
5
+ id: string;
6
+ model: CompetitionBasicModel | TeamBasicModel | PlayerBasicModel;
7
+ count: number;
8
+ }
9
+ export default class EntitiesFollows {
10
+ count: number;
11
+ breakdown: EntitiesFollowsBreakdown[];
12
+ }
@@ -0,0 +1,5 @@
1
+ export default class EntitiesFollowsFilters {
2
+ footballCompetitions?: string[];
3
+ footballTeams?: string[];
4
+ footballPlayers?: string[];
5
+ }
@@ -4,6 +4,8 @@ import GamesListModel from "../../TopX/Models/Games/GamesListModel";
4
4
  import ContestWinners from "../../TopX/Models/Games/Winners/ContestWinners";
5
5
  import BadgesModel from "../Models/Badges/BadgesModel";
6
6
  import ClientBadges from "../Models/Badges/ClientBadges";
7
+ import EntitiesFollows from "../Models/EntitiesFollows/EntitiesFollows";
8
+ import EntitiesFollowsFilters from "../Models/Filters/EntitiesFollowsFilters";
7
9
  import HighestSuccessRateModel from "../Models/HighestSuccessRate/HighestSuccessRateModel";
8
10
  import LeaderboardModel from "../Models/Leaderboard/LeaderboardModel";
9
11
  import RankingsModel from "../Models/Rankings/RankingsModel";
@@ -12,6 +14,8 @@ import { FiltersType } from "../Types/LoyaltyTypes";
12
14
  export default class LoyaltyService {
13
15
  private idMappingService;
14
16
  private profileNamespace;
17
+ private footballNamespace;
18
+ private errorHandlingMode;
15
19
  constructor(config: SDKConfigurationModel);
16
20
  remapTemplatesIds: (templates: TemplateModel[]) => Promise<TemplateModel[]>;
17
21
  addProfileModelToLeaderboad: (leaderboard: any[]) => Promise<LeaderboardModel[]>;
@@ -21,5 +25,8 @@ export default class LoyaltyService {
21
25
  extractRankingsIdsMap: (rankings: RankingsModel[]) => string[][];
22
26
  setModelsForUserRankings: (topXGames: GamesListModel[], matchQuizGames: GamesListModel[], templates: TemplateModel[], userRankings: FootballPaginationModel) => FootballPaginationModel;
23
27
  completeContestWinners: (contestWinners: ContestWinners) => Promise<ContestWinners>;
28
+ validateEntitiesFollowsFilters: (filters: EntitiesFollowsFilters) => void;
29
+ remapEntitiesFollowsFilters: (filters: EntitiesFollowsFilters) => Promise<any>;
30
+ addModelsToEntitiesFollows: (entitiesFollows: EntitiesFollows) => Promise<EntitiesFollows>;
24
31
  private extractEnabledBadgesId;
25
32
  }
@@ -6,10 +6,10 @@ import PredictionsFilters from "../../Predictor/Models/Predictions/PredictionsFi
6
6
  import { FeaturesConfigModels } from "../../../Global/Types/GlobalTypes";
7
7
  import GameModel from "../../TopX/Models/Games/GameModel";
8
8
  import GamesFilters from "../../TopX/Models/Games/GamesFilters";
9
- import GamesListModel from "../../TopX/Models/Games/GamesListModel";
10
9
  import GameMarketsResults from "../Models/GameMarketsResults/GameMarketsResults";
11
10
  import MainFiltersBQ from "../../../Global/Models/Filters/MainFiltersBQ";
12
11
  import ContestWinners from "../../TopX/Models/Games/Winners/ContestWinners";
12
+ import GameByIdModel from "../../TopX/Models/Games/GameByIdModel";
13
13
  export default class MatchQuizFacade {
14
14
  private predictorHttps;
15
15
  private predictorService;
@@ -22,7 +22,7 @@ export default class MatchQuizFacade {
22
22
  play: (matchQuizPrediction: PredictionRequestModel) => Promise<PredictionResponseModel>;
23
23
  delete: (gameId: string) => Promise<boolean>;
24
24
  getGames: (filters?: GamesFilters, disableCache?: boolean) => Promise<PaginationModel>;
25
- getGameById: (gameId: string, disableCache?: boolean) => Promise<GamesListModel>;
25
+ getGameById: (gameId: string, disableCache?: boolean) => Promise<GameByIdModel>;
26
26
  getGamePredictions: (gameId: string, filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
27
27
  getGameResults: (gameId: string, filters?: MainFiltersBQ, disableCache?: boolean) => Promise<PaginationModel>;
28
28
  getCurrentGameResults: (disableCache?: boolean) => Promise<GameModel>;
@@ -6,10 +6,10 @@ import PredictionsFilters from "../Predictor/Models/Predictions/PredictionsFilte
6
6
  import { FeaturesConfigModels } from "../../Global/Types/GlobalTypes";
7
7
  import GameModel from "../TopX/Models/Games/GameModel";
8
8
  import GamesFilters from "../TopX/Models/Games/GamesFilters";
9
- import GamesListModel from "../TopX/Models/Games/GamesListModel";
10
9
  import GameMarketsResults from "./Models/GameMarketsResults/GameMarketsResults";
11
10
  import MainFiltersBQ from "../../Global/Models/Filters/MainFiltersBQ";
12
11
  import ContestWinners from "../TopX/Models/Games/Winners/ContestWinners";
12
+ import GameByIdModel from "../TopX/Models/Games/GameByIdModel";
13
13
  export default class MatchQuiz {
14
14
  private matchQuizFacade;
15
15
  constructor(config: SDKConfigurationModel);
@@ -17,7 +17,7 @@ export default class MatchQuiz {
17
17
  play: (matchQuizPrediction: PredictionRequestModel) => Promise<PredictionResponseModel>;
18
18
  delete: (gameId: string) => Promise<boolean>;
19
19
  getGames: (filters?: GamesFilters, disableCache?: boolean) => Promise<PaginationModel>;
20
- getGameById: (gameId: string, disableCache?: boolean) => Promise<GamesListModel>;
20
+ getGameById: (gameId: string, disableCache?: boolean) => Promise<GameByIdModel>;
21
21
  getGamePredictions: (gameId: string, filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
22
22
  getGameResults: (gameId: string, filters?: MainFiltersBQ, disableCache?: boolean) => Promise<PaginationModel>;
23
23
  getCurrentGameResults: (disableCache?: boolean) => Promise<GameModel>;
@@ -4,7 +4,6 @@ import IdMappingService from "../../../IdMapping/IdMappingService";
4
4
  import PredictionResponseModel from "../../Predictor/Models/Predictions/PredictionResponseModel";
5
5
  import PredictorService from "../../Predictor/Service/PredictorService";
6
6
  import GamesFilters from "../Models/Games/GamesFilters";
7
- import GamesListModel from "../Models/Games/GamesListModel";
8
7
  import PaginationModel from "../../../Global/Models/Pagination/PaginationModel";
9
8
  import TopXPredictionRequestModel from "../Models/Prediction/TopXPredictionRequestModel";
10
9
  import PredictionsFilters from "../../Predictor/Models/Predictions/PredictionsFilters";
@@ -13,6 +12,7 @@ import GameMarketsResults from "../../MatchQuiz/Models/GameMarketsResults/GameMa
13
12
  import PredictorValidator from "../../Predictor/Validator/PredictorValidator";
14
13
  import MainFiltersBQ from "../../../Global/Models/Filters/MainFiltersBQ";
15
14
  import ContestWinners from "../Models/Games/Winners/ContestWinners";
15
+ import GameByIdModel from "../Models/Games/GameByIdModel";
16
16
  export default class TopXFacade {
17
17
  readonly idMapping: IdMappingService;
18
18
  readonly predictorHttps: PredictorHttps;
@@ -23,7 +23,7 @@ export default class TopXFacade {
23
23
  constructor(config: SDKConfigurationModel, idMapping: IdMappingService);
24
24
  getConfig: () => Promise<FeaturesConfigModels>;
25
25
  getGames: (filters?: GamesFilters, disableCache?: boolean) => Promise<PaginationModel>;
26
- getGameById: (gameId: string, disableCache?: boolean) => Promise<GamesListModel>;
26
+ getGameById: (gameId: string, disableCache?: boolean) => Promise<GameByIdModel>;
27
27
  getGamePredictions: (gameId: string, filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
28
28
  getGameResults: (gameId: string, filters?: MainFiltersBQ, disableCache?: boolean) => Promise<PaginationModel>;
29
29
  getCurrentGameResults: (disableCache?: boolean) => Promise<any>;
@@ -0,0 +1,4 @@
1
+ import GamesListModel from "./GamesListModel";
2
+ export default class GameByIdModel extends GamesListModel {
3
+ adContent: string;
4
+ }
@@ -5,9 +5,11 @@ import GamesTopXListModel from "./GamesTopXListModel";
5
5
  import PaginationModel from "../../../../Global/Models/Pagination/PaginationModel";
6
6
  import GameMarketsResults from "../../../MatchQuiz/Models/GameMarketsResults/GameMarketsResults";
7
7
  import ContestWinners from "./Winners/ContestWinners";
8
+ import GameByIdModel from "./GameByIdModel";
8
9
  export default class GamesRemapper {
9
10
  remapPaginatedGames: (paginatedGames: any) => PaginationModel;
10
11
  remapGamesListResponse: (gamesList: any) => GamesListModel;
12
+ remapGameByIdResponse: (gameById: any) => GameByIdModel;
11
13
  private remapFixturesResponse;
12
14
  remapPaginatedUserTopXEditions: (userGameEditions: any) => PaginationModel;
13
15
  remapUserTopXEditionsResponse: (gamesList: any) => GamesTopXListModel;
@@ -2,20 +2,20 @@ import SDKConfigurationModel from "../../Configurator/Models/SDKConfiguraitonMod
2
2
  import PredictionResponseModel from "../Predictor/Models/Predictions/PredictionResponseModel";
3
3
  import GameModel from "./Models/Games/GameModel";
4
4
  import GamesFilters from "./Models/Games/GamesFilters";
5
- import GamesListModel from "./Models/Games/GamesListModel";
6
5
  import PaginationModel from "../../Global/Models/Pagination/PaginationModel";
7
6
  import TopXPredictionRequestModel from "./Models/Prediction/TopXPredictionRequestModel";
8
7
  import PredictionsFilters from "../Predictor/Models/Predictions/PredictionsFilters";
9
8
  import GameMarketsResults from "../MatchQuiz/Models/GameMarketsResults/GameMarketsResults";
10
9
  import MainFiltersBQ from "../../Global/Models/Filters/MainFiltersBQ";
11
10
  import ContestWinners from "./Models/Games/Winners/ContestWinners";
11
+ import GameByIdModel from "./Models/Games/GameByIdModel";
12
12
  export default class TopX {
13
13
  private topXFacade;
14
14
  private idMapping;
15
15
  constructor(config: SDKConfigurationModel);
16
16
  getConfig: () => Promise<import("../../Global/Types/GlobalTypes").FeaturesConfigModels>;
17
17
  getGames: (filters?: GamesFilters, disableCache?: boolean) => Promise<PaginationModel>;
18
- getGameById: (gameId: string, disableCache?: boolean) => Promise<GamesListModel>;
18
+ getGameById: (gameId: string, disableCache?: boolean) => Promise<GameByIdModel>;
19
19
  getGamePredictions: (gameId: string, filters?: PredictionsFilters, disableCache?: boolean) => Promise<PaginationModel>;
20
20
  getGameResults: (gameId: string, filters?: MainFiltersBQ, disableCache?: boolean) => Promise<PaginationModel>;
21
21
  getCurrentGameResults: (disableCache?: boolean) => Promise<GameModel>;