fansunited-sdk-esm 1.35.0 → 1.36.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.
- package/Core/Global/Constants/Constants.d.ts +1 -0
- package/Core/Global/LocalStorage.d.ts +1 -0
- package/Core/Namespaces/Loyalty/Models/ClientFeatures/LoyaltyConfigModel.d.ts +1 -0
- package/Core/Namespaces/MatchQuiz/Models/Config/MatchQuizConfigModel.d.ts +1 -0
- package/Core/Namespaces/Predictor/Models/Config/FeatureConfigRemapper.d.ts +3 -2
- package/Core/Namespaces/Predictor/Models/Config/PredictorConfigModel.d.ts +3 -0
- package/Core/Namespaces/Predictor/Models/Config/UserDataConfigModel.d.ts +5 -0
- package/Core/Namespaces/Predictor/Service/PredictorService.d.ts +0 -6
- package/Core/Namespaces/TopX/Models/Config/TopXConfigModel.d.ts +1 -0
- package/index.js +4 -4
- package/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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) =>
|
|
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
|
}
|
|
@@ -27,12 +27,6 @@ export default class PredictorService {
|
|
|
27
27
|
* @returns Predictions with remapped ids.
|
|
28
28
|
*/
|
|
29
29
|
remapPlayerIdToIdSchema: (predictions: PredictionsModel) => Promise<PredictionsModel>;
|
|
30
|
-
/**
|
|
31
|
-
* Converts market from MarketEnums to property in predictions model.
|
|
32
|
-
* @param market
|
|
33
|
-
* @returns Returns name of property market from PredictionsModel.
|
|
34
|
-
*/
|
|
35
|
-
private convertMarket;
|
|
36
30
|
/**
|
|
37
31
|
* Convert market from API request response to market in MarketEnums
|
|
38
32
|
* @param market
|