fansunited-sdk-esm 1.45.1 → 1.46.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/Messages/Messages.d.ts +2 -1
- package/Core/Https/ProfileHttps.d.ts +1 -1
- package/Core/Namespaces/Profile/Facade/ProfileFacade.d.ts +1 -1
- package/Core/Namespaces/Profile/Profile.d.ts +1 -1
- package/index.js +3 -3
- package/index.js.map +3 -3
- package/package.json +1 -1
|
@@ -8,5 +8,6 @@ export declare enum ErrorStatuses {
|
|
|
8
8
|
INVALID_TOKEN = "invalid_token",
|
|
9
9
|
UNAUTHORIZED = "unauthorized",
|
|
10
10
|
INVALID_FILTERS = "invalid_filters",
|
|
11
|
-
INVALID_AVATAR = "invalid_avatar"
|
|
11
|
+
INVALID_AVATAR = "invalid_avatar",
|
|
12
|
+
INVALID_METHOD_CALL = "invalid_method_call"
|
|
12
13
|
}
|
|
@@ -11,7 +11,8 @@ export declare enum ErrorMessages {
|
|
|
11
11
|
ENTITIES_FOLLOWS_FILTERS_EXCEEDED = "Maximum length per entity should be 24 or less.",
|
|
12
12
|
INVALID_TYPE = "You have provided invalid type. The valid type is ",
|
|
13
13
|
INVALID_VALUE = "You have provided invalid value. The valid value is ",
|
|
14
|
-
INVALID_AVATAR = "Invalid URL syntax for avatar image."
|
|
14
|
+
INVALID_AVATAR = "Invalid URL syntax for avatar image.",
|
|
15
|
+
INVALID_GET_PROFILES_METHOD_CALL = "The method 'getByIds' from Profile namespace is not called correctly. You need to provide 'profileIds' OR 'search' parameters to the method, but you can't use both of them or neither of them."
|
|
15
16
|
}
|
|
16
17
|
export declare const WarningMessages: {
|
|
17
18
|
UNEXPECTED_STATUS_PROP: string;
|
|
@@ -14,7 +14,7 @@ export default class ProfileHttps extends Https {
|
|
|
14
14
|
constructor(configuration: SDKConfiguraitonModel);
|
|
15
15
|
getCountries: (disableCache: boolean) => Promise<ProfileCountryModel[]>;
|
|
16
16
|
getProfile: (id?: string) => Promise<ProfileModel>;
|
|
17
|
-
getProfiles: (profiles
|
|
17
|
+
getProfiles: (profiles?: string[], search?: string, disableCache?: boolean) => Promise<ProfileModel[]>;
|
|
18
18
|
getFollowers: (filters?: FollowFilters, id?: string) => Promise<PaginationModel>;
|
|
19
19
|
getFollowing: (filters?: FollowFilters, id?: string) => Promise<PaginationModel>;
|
|
20
20
|
follow: (profiles: string[]) => Promise<FollowingModel[]>;
|
|
@@ -15,7 +15,7 @@ export default class ProfileFacade {
|
|
|
15
15
|
constructor(localCache: LocalCacheInterface, profileHttps: ProfileHttps, activityHttps?: ActivityHttps);
|
|
16
16
|
getOwn: () => Promise<ProfileModel>;
|
|
17
17
|
updateOwnProfile: () => Promise<ProfileModel>;
|
|
18
|
-
getByIds: (ids
|
|
18
|
+
getByIds: (ids?: string[], search?: string, disableCache?: boolean) => Promise<ProfileModel[]>;
|
|
19
19
|
getById: (id: string) => Promise<ProfileModel>;
|
|
20
20
|
getCountries: (disableCache?: boolean) => Promise<ProfileCountryModel[]>;
|
|
21
21
|
getFollowers: (filters?: FollowFilters, id?: string) => Promise<PaginationModel>;
|
|
@@ -16,5 +16,5 @@ export default class Profile {
|
|
|
16
16
|
getOwn: () => OwnProfileBuilder;
|
|
17
17
|
getById: (id: string) => ProfileBuilder;
|
|
18
18
|
getCountries: (disableCache?: boolean) => Promise<import("./Models/ProfileCountryModel").default[]>;
|
|
19
|
-
getByIds: (profileIds
|
|
19
|
+
getByIds: (profileIds?: string[], search?: string, disableCache?: boolean) => Promise<import("./Models/ProfileModel").default[]>;
|
|
20
20
|
}
|