fansunited-sdk-esm 1.35.0 → 1.36.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.
@@ -49,6 +49,7 @@ export default class LocalStorage {
49
49
  setClientFeatures: (features: {
50
50
  [key: string]: any;
51
51
  }) => void;
52
+ deleteClientFeatures: () => void;
52
53
  getExpiration: (namespace: string, type: ExparationType) => number;
53
54
  /**
54
55
  * The purpose of this method is to avoid the posibility of having same competitions store in Local Storage.
@@ -2,6 +2,7 @@ import ActionsModel from "../Actions/ActionsModel";
2
2
  import RewardsModel from "../Rewards/RewardsModel";
3
3
  export default class LoyaltyConfigModel {
4
4
  enabled: boolean;
5
+ clientId: string;
5
6
  conditions: {
6
7
  list: string[];
7
8
  };
@@ -1,5 +1,6 @@
1
1
  export default class MatchQuizConfigModel {
2
2
  enabled: boolean;
3
+ clientId: string;
3
4
  defaultMarkets: string[];
4
5
  competitionsWhitelist: string[];
5
6
  }
@@ -1,4 +1,4 @@
1
- import ClientFeaturesModel from "../../../Loyalty/Models/ClientFeatures/LoyaltyConfigModel";
1
+ import LoyaltyConfigModel from "../../../Loyalty/Models/ClientFeatures/LoyaltyConfigModel";
2
2
  import MatchQuizConfigModel from "../../../MatchQuiz/Models/Config/MatchQuizConfigModel";
3
3
  import TopXConfigModel from "../../../TopX/Models/Config/TopXConfigModel";
4
4
  import PredictorConfigModel from "./PredictorConfigModel";
@@ -6,10 +6,11 @@ export default class FeatureConfigRemapper {
6
6
  remapPredictorConfig: (response: any) => PredictorConfigModel;
7
7
  remapTopXConfig: (response: any) => TopXConfigModel;
8
8
  remapMatchQuizConfig: (response: any) => MatchQuizConfigModel;
9
- remapLoyaltyConfig: (response: any) => ClientFeaturesModel;
9
+ remapLoyaltyConfig: (response: any) => LoyaltyConfigModel;
10
10
  private remapRewards;
11
11
  private remapPoints;
12
12
  private remapBadges;
13
13
  private remapBadgeValues;
14
14
  private remapRequirements;
15
+ private remapUserDataConfig;
15
16
  }
@@ -1,8 +1,11 @@
1
1
  import MarketsConfigModel from "./MarketsConfigModel";
2
2
  import SuccessRateScopeModel from "./SuccessRateScopeModel";
3
+ import UserDataConfigModel from "./UserDataConfigModel";
3
4
  export default class PredictorConfigModel {
4
5
  enabled: boolean;
6
+ clientId: string;
5
7
  fullCoverageCompetitions: string[];
6
8
  markets: MarketsConfigModel;
7
9
  successRateScopes: SuccessRateScopeModel;
10
+ userDataConfig: UserDataConfigModel;
8
11
  }
@@ -0,0 +1,5 @@
1
+ export default class UserDataConfigModel {
2
+ storeIp: boolean;
3
+ storeDeviceId: boolean;
4
+ storeAgent: boolean;
5
+ }
@@ -1,5 +1,6 @@
1
1
  export default class TopXConfigModel {
2
2
  enabled: boolean;
3
+ clientId: string;
3
4
  minFixtures: number;
4
5
  maxFixtures: number;
5
6
  competitionsWhitelist: string[];