fansunited-sdk-esm 1.33.4 → 1.34.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.
- package/Core/Exception/ErrorStatuses.d.ts +2 -1
- package/Core/Global/Constants/Tests/SDKConfigurationsTesting.d.ts +11 -0
- package/Core/Global/Messages/Messages.d.ts +2 -1
- package/Core/Namespaces/Profile/Builders/OwnProfileBuilder.d.ts +5 -3
- package/Core/Namespaces/Profile/Service/ProfileService.d.ts +1 -0
- package/index.js +3 -3
- package/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -9,6 +9,17 @@ export declare const SDK_CONFIG_NATIVE: {
|
|
|
9
9
|
getIdToken: () => void;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
+
export declare const SDK_CONFIG_NATIVE_AND_STANDARD: {
|
|
13
|
+
apiKey: string;
|
|
14
|
+
environment: string;
|
|
15
|
+
idSchema: string;
|
|
16
|
+
clientId: string;
|
|
17
|
+
lang: string;
|
|
18
|
+
errorHandlingMode: string;
|
|
19
|
+
authProvider: {
|
|
20
|
+
getIdToken: () => void;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
12
23
|
export declare const SDK_CONFIG_ENETPULSE: {
|
|
13
24
|
apiKey: string;
|
|
14
25
|
environment: string;
|
|
@@ -11,7 +11,8 @@ export declare enum ErrorMessages {
|
|
|
11
11
|
ENTITIES_NEEDED = "At least one of footballCompetitions, footballTeams or footballPlayers properties should be provided for filters.",
|
|
12
12
|
ENTITIES_FOLLOWS_FILTERS_EXCEEDED = "Maximum length per entity should be 24 or less.",
|
|
13
13
|
INVALID_TYPE = "You have provided invalid type. The valid type is ",
|
|
14
|
-
INVALID_VALUE = "You have provided invalid value. The valid value is "
|
|
14
|
+
INVALID_VALUE = "You have provided invalid value. The valid value is ",
|
|
15
|
+
INVALID_AVATAR = "Invalid URL syntax for avatar image."
|
|
15
16
|
}
|
|
16
17
|
export declare const WarningMessages: {
|
|
17
18
|
UNEXPECTED_STATUS_PROP: string;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import LocalStorage from "../../../Global/LocalStorage";
|
|
2
2
|
import ProfileHttps from "../../../Https/ProfileHttps";
|
|
3
|
-
import IdMappingService from "../../../IdMapping/IdMappingService";
|
|
4
|
-
import FootballFacade from "../../Football/Facades/FootballFacade";
|
|
5
3
|
import FollowingModel from "../Models/Following/FollowingModel";
|
|
6
4
|
import InterestModel from "../Models/InterestModel";
|
|
7
5
|
import ProfileModel from "../Models/ProfileModel";
|
|
@@ -11,6 +9,7 @@ import PaginationModel from "../../../Global/Models/Pagination/PaginationModel";
|
|
|
11
9
|
import ProfileStatsModel from "../Models/Stats/ProfileStatsModel";
|
|
12
10
|
import ActivityHttps from "../../../Https/ActivityHttps";
|
|
13
11
|
import SDKIdsRemapper from "../../../Remapper/SDKIdsRemapper";
|
|
12
|
+
import { ErrorHandlingModeType } from "../../../Configurator/Types/ConfiguratorTypes";
|
|
14
13
|
export default class OwnProfileBuilder {
|
|
15
14
|
private idsRemapper;
|
|
16
15
|
private profileHttps;
|
|
@@ -22,7 +21,8 @@ export default class OwnProfileBuilder {
|
|
|
22
21
|
private expireAt;
|
|
23
22
|
private promises;
|
|
24
23
|
private isFetching;
|
|
25
|
-
|
|
24
|
+
private errorHandlingMode;
|
|
25
|
+
constructor(idsRemapper: SDKIdsRemapper, localStorage: LocalStorage, profileHttps: ProfileHttps, activityHttps: ActivityHttps, errorHandlingMode: ErrorHandlingModeType);
|
|
26
26
|
private getOwnProfile;
|
|
27
27
|
private delay;
|
|
28
28
|
private setOwnProfile;
|
|
@@ -50,5 +50,7 @@ export default class OwnProfileBuilder {
|
|
|
50
50
|
private setCountryPromise;
|
|
51
51
|
setCountry: (countryId?: string) => OwnProfileBuilder;
|
|
52
52
|
showFullnessProfile: () => Promise<FullnessProfile>;
|
|
53
|
+
private setAvatarPromise;
|
|
54
|
+
setAvatar: (avatar: string) => OwnProfileBuilder;
|
|
53
55
|
update: () => Promise<ProfileModel>;
|
|
54
56
|
}
|