fansunited-sdk-esm 1.44.1 → 1.45.1

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.
@@ -11,4 +11,5 @@ export default class ActivityRemapper {
11
11
  private remapSinglePredictionsStats;
12
12
  private remapBreakdownSinglePredictionsStats;
13
13
  private remapAchievementsStats;
14
+ private remapDiscussionStats;
14
15
  }
@@ -1,6 +1,7 @@
1
1
  import BadgesValue from "./BadgesValue";
2
+ import GeneralBadgesValue from "./GeneralBadgesValue";
2
3
  export default class BadgesModel {
3
- general: any[];
4
+ general: GeneralBadgesValue[];
4
5
  predictor: BadgesValue[];
5
6
  topX: BadgesValue[];
6
7
  matchQuiz: BadgesValue[];
@@ -1,5 +1,5 @@
1
1
  import RequirementModel from "./RequirementModel";
2
- type BadgeAssets = {
2
+ export type BadgeAssets = {
3
3
  mainImageUrl: string;
4
4
  };
5
5
  export default class BadgesValue {
@@ -9,4 +9,3 @@ export default class BadgesValue {
9
9
  enabled: boolean;
10
10
  requirements: RequirementModel;
11
11
  }
12
- export {};
@@ -0,0 +1,9 @@
1
+ import { BadgeAssets } from "./BadgesValue";
2
+ import GeneralRequirementModel from "./GeneralRequirementModel";
3
+ export default class GeneralBadgesValue {
4
+ id: string;
5
+ label: string;
6
+ assets: BadgeAssets;
7
+ enabled: boolean;
8
+ requirements: GeneralRequirementModel;
9
+ }
@@ -0,0 +1,7 @@
1
+ import RequirementModel from "./RequirementModel";
2
+ export default class GeneralRequirementModel extends RequirementModel {
3
+ postPoints: number;
4
+ postsCount: number;
5
+ reactionsCount: number;
6
+ totalDiscussionPoints: number;
7
+ }
@@ -2,9 +2,9 @@ import Points from "./Points";
2
2
  import PointsValueModel from "./PointsValueModel";
3
3
  export default class PointsModel {
4
4
  general: Points[];
5
- comments: any[];
6
5
  predictor: PointsValueModel[];
7
6
  activity: PointsValueModel[];
8
7
  topX: PointsValueModel[];
9
8
  matchQuiz: PointsValueModel[];
9
+ discussionPost: PointsValueModel[];
10
10
  }
@@ -11,6 +11,8 @@ export default class FeatureConfigRemapper {
11
11
  private remapPoints;
12
12
  private remapBadges;
13
13
  private remapBadgeValues;
14
+ private remapGeneralBadgeValues;
14
15
  private remapRequirements;
16
+ private remapGeneralRequirements;
15
17
  private remapUserDataConfig;
16
18
  }
@@ -0,0 +1,7 @@
1
+ export default class DiscussionStats {
2
+ totalPoints: number;
3
+ postPoints: number;
4
+ postsMade: number;
5
+ reactionPoints: number;
6
+ reactionCount: number;
7
+ }
@@ -1,4 +1,5 @@
1
1
  import AchievementsStats from "./AchievementsStats";
2
+ import DiscussionStats from "./DiscussionStats";
2
3
  import PredictionsStats from "./PredictionsStats";
3
4
  import SuccessRates from "./SuccessRates";
4
5
  export default class ProfileStatsModel {
@@ -10,4 +11,5 @@ export default class ProfileStatsModel {
10
11
  predictions: PredictionsStats;
11
12
  tiers: AchievementsStats[];
12
13
  badges: AchievementsStats[];
14
+ discussions: DiscussionStats;
13
15
  }