fansunited-sdk-esm 1.71.1 → 1.71.2
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.
|
@@ -8,8 +8,8 @@ import PaginationModel from "../../../Global/Models/Pagination/PaginationModel";
|
|
|
8
8
|
import ProfileStatsModel from "../Models/Stats/ProfileStatsModel";
|
|
9
9
|
import ActivityHttps from "../../../Https/ActivityHttps";
|
|
10
10
|
import SDKIdsRemapper from "../../../Remapper/SDKIdsRemapper";
|
|
11
|
-
import { ErrorHandlingModeType } from "../../../Configurator/Types/ConfiguratorTypes";
|
|
12
11
|
import { LocalCacheInterface } from "../../../Global/Interfaces/GlobalInterfaces";
|
|
12
|
+
import SDKConfigurationModel from "../../../Configurator/Models/SDKConfiguraitonModel";
|
|
13
13
|
export default class OwnProfileBuilder {
|
|
14
14
|
private idsRemapper;
|
|
15
15
|
private profileHttps;
|
|
@@ -21,8 +21,8 @@ export default class OwnProfileBuilder {
|
|
|
21
21
|
private expireAt;
|
|
22
22
|
private promises;
|
|
23
23
|
private isFetching;
|
|
24
|
-
private
|
|
25
|
-
constructor(idsRemapper: SDKIdsRemapper, localCache: LocalCacheInterface, profileHttps: ProfileHttps, activityHttps: ActivityHttps
|
|
24
|
+
private configuration;
|
|
25
|
+
constructor(configuration: SDKConfigurationModel, idsRemapper: SDKIdsRemapper, localCache: LocalCacheInterface, profileHttps: ProfileHttps, activityHttps: ActivityHttps);
|
|
26
26
|
private getOwnProfile;
|
|
27
27
|
private delay;
|
|
28
28
|
private setOwnProfile;
|
|
@@ -53,4 +53,11 @@ export default class OwnProfileBuilder {
|
|
|
53
53
|
private setAvatarPromise;
|
|
54
54
|
setAvatar: (avatar: string) => OwnProfileBuilder;
|
|
55
55
|
update: () => Promise<ProfileModel>;
|
|
56
|
+
private clearAllProfileData;
|
|
57
|
+
/**
|
|
58
|
+
* The method checks if the profile from the token is different than the profile
|
|
59
|
+
* from memory or Local Storage.
|
|
60
|
+
*/
|
|
61
|
+
private isNewProfileRequested;
|
|
62
|
+
private extractUserIdFromToken;
|
|
56
63
|
}
|
|
@@ -14,6 +14,7 @@ export default class ProfileFacade {
|
|
|
14
14
|
private activityHttps;
|
|
15
15
|
constructor(localCache: LocalCacheInterface, profileHttps: ProfileHttps, activityHttps?: ActivityHttps);
|
|
16
16
|
getOwn: () => Promise<ProfileModel>;
|
|
17
|
+
getOwnProfileFromCache: () => ProfileModel;
|
|
17
18
|
updateOwnProfile: () => Promise<ProfileModel>;
|
|
18
19
|
getByIds: (ids?: string[], search?: string, disableCache?: boolean) => Promise<ProfileModel[]>;
|
|
19
20
|
getById: (id: string) => Promise<ProfileModel>;
|
|
@@ -25,5 +26,6 @@ export default class ProfileFacade {
|
|
|
25
26
|
showFullnessProfile: (profile: ProfileModel) => FullnessProfile;
|
|
26
27
|
getStats: () => Promise<ProfileStatsModel>;
|
|
27
28
|
getBadges: (disableCache: boolean) => Promise<string[]>;
|
|
29
|
+
clearLocalStorageData: () => void;
|
|
28
30
|
private getLocalStorageData;
|
|
29
31
|
}
|