fansunited-sdk-esm 1.16.0 → 1.18.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.
@@ -1,6 +1,6 @@
1
1
  export declare type StatType = {
2
- homeTeam: any;
3
- awayTeam: any;
2
+ homeTeam: number;
3
+ awayTeam: number;
4
4
  };
5
5
  export declare type ScoresType = {
6
6
  homeGoals: any;
@@ -1,18 +1,63 @@
1
1
  import { StatType } from "../StatType";
2
2
  export default class StatsModel {
3
3
  corners: StatType;
4
+ cornersFirstHalf: StatType;
5
+ cornersSecondHalf: StatType;
6
+ cornersExtraTime: StatType;
4
7
  crosses: StatType;
8
+ crossesFirstHalf: StatType;
9
+ crossesSecondHalf: StatType;
10
+ crossesExtraTime: StatType;
5
11
  offside: StatType;
12
+ offsideFirstHalf: StatType;
13
+ offsideSecondHalf: StatType;
14
+ offsideExtraTime: StatType;
6
15
  shotsOn: StatType;
16
+ shotsOnFirstHalf: StatType;
17
+ shotsOnSecondHalf: StatType;
18
+ shotsOnExtraTime: StatType;
7
19
  throwIn: StatType;
20
+ throwInFirstHalf: StatType;
21
+ throwInSecondHalf: StatType;
22
+ throwInExtraTime: StatType;
8
23
  redCards: StatType;
24
+ redCardsFirstHalf: StatType;
25
+ redCardsSecondHalf: StatType;
26
+ redCardsExtraTime: StatType;
9
27
  shotsOff: StatType;
28
+ shotsOffFirstHalf: StatType;
29
+ shotsOffSecondHalf: StatType;
30
+ shotsOffExtraTime: StatType;
10
31
  goalKicks: StatType;
32
+ goalKicksFirstHalf: StatType;
33
+ goalKicksSecondHalf: StatType;
34
+ goalKicksExtraTime: StatType;
11
35
  possession: StatType;
36
+ possessionFirstHalf: StatType;
37
+ possessionSecondHalf: StatType;
38
+ possessionExtraTime: StatType;
12
39
  treatments: StatType;
40
+ treatmentsFirstHalf: StatType;
41
+ treatmentsSecondHalf: StatType;
42
+ treatmentsExtraTime: StatType;
13
43
  yellowCards: StatType;
44
+ yellowCardsFirstHalf: StatType;
45
+ yellowCardsSecondHalf: StatType;
46
+ yellowCardsExtraTime: StatType;
14
47
  shotsBlocked: StatType;
48
+ shotsBlockedFirstHalf: StatType;
49
+ shotsBlockedSecondHalf: StatType;
50
+ shotsBlockedExtraTime: StatType;
15
51
  substitutions: StatType;
52
+ substitutionsFirstHalf: StatType;
53
+ substitutionsSecondHalf: StatType;
54
+ substitutionsExtraTime: StatType;
16
55
  counterAttacks: StatType;
56
+ counterAttacksFirstHalf: StatType;
57
+ counterAttacksSecondHalf: StatType;
58
+ counterAttacksExtraTime: StatType;
17
59
  foulsCommitted: StatType;
60
+ foulsCommittedFirstHalf: StatType;
61
+ foulsCommittedSecondHalf: StatType;
62
+ foulsCommittedExtraTime: StatType;
18
63
  }
@@ -13,6 +13,7 @@ export default class TemplateModel {
13
13
  gameIds: string[];
14
14
  gameTypes: string[];
15
15
  competitionIds: string[];
16
+ excludedProfileIds: string[];
16
17
  rules: string;
17
18
  flags: string[];
18
19
  images: ImagesModel;
@@ -1,4 +1,5 @@
1
1
  import ImagesModel from "../../../../Global/Models/Images/ImagesModel";
2
+ import RelatedGame from "../../../TopX/Models/Games/RelatedGame";
2
3
  import TimeTiebreaker from "../../../TopX/Models/Games/TimeTiebreaker";
3
4
  import FixturesMatchQuizModel from "../Fixtures/FixturesMatchQuizModel";
4
5
  export default class GamesMatchQuizListModel {
@@ -13,6 +14,8 @@ export default class GamesMatchQuizListModel {
13
14
  tiebreaker: TimeTiebreaker;
14
15
  predictionId: string;
15
16
  participantsCount: number;
17
+ related: RelatedGame[];
18
+ excludedProfileIds: string[];
16
19
  rules: string;
17
20
  flags: string[];
18
21
  points: number;
@@ -1,5 +1,6 @@
1
1
  import ImagesModel from "../../../../Global/Models/Images/ImagesModel";
2
2
  import FixturesGamesModel from "../Fixtures/FixturesGamesModel";
3
+ import RelatedGame from "./RelatedGame";
3
4
  import TimeTiebreaker from "./TimeTiebreaker";
4
5
  export default class GamesListModel {
5
6
  id: string;
@@ -12,6 +13,8 @@ export default class GamesListModel {
12
13
  fixtures: FixturesGamesModel[];
13
14
  tiebreaker: TimeTiebreaker;
14
15
  participantsCount: number;
16
+ related: RelatedGame[];
17
+ excludedProfileIds: string[];
15
18
  rules: string;
16
19
  flags: string[];
17
20
  images: ImagesModel;
@@ -25,4 +25,5 @@ export default class GamesRemapper {
25
25
  private remapResults;
26
26
  private remapTiebreaker;
27
27
  private remapTimeTiebreaker;
28
+ private remapRelated;
28
29
  }
@@ -1,5 +1,6 @@
1
1
  import ImagesModel from "../../../../Global/Models/Images/ImagesModel";
2
2
  import FixturesTopXModel from "../Fixtures/FixturesTopXModel";
3
+ import RelatedGame from "./RelatedGame";
3
4
  import TimeTiebreaker from "./TimeTiebreaker";
4
5
  export default class GamesTopXListModel {
5
6
  id: string;
@@ -13,6 +14,8 @@ export default class GamesTopXListModel {
13
14
  tiebreaker: TimeTiebreaker;
14
15
  predictionId: string;
15
16
  participantsCount: number;
17
+ related: RelatedGame[];
18
+ excludedProfileIds: string[];
16
19
  rules: string;
17
20
  flags: string[];
18
21
  points: number;
@@ -0,0 +1,4 @@
1
+ export default class RelatedGame {
2
+ entityId: string;
3
+ entityType: string;
4
+ }