import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import ProfileInterfaces = require("./interfaces/ProfileInterfaces"); import VSSInterfaces = require("./interfaces/common/VSSInterfaces"); export interface IProfileApi extends basem.ClientApiBase { deleteProfileAttribute(id: string, descriptor: string): Promise; getProfileAttribute(id: string, descriptor: string): Promise; getProfileAttributes(id: string, partition: string, modifiedSince?: string, modifiedAfterRevision?: string, withCoreAttributes?: boolean, coreAttributes?: string): Promise; setProfileAttribute(container: any, id: string, descriptor: string): Promise; setProfileAttributes(attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV[]>, id: string): Promise; getAvatar(id: string, size?: string, format?: string): Promise; getAvatarPreview(container: any, id: string, size?: string, format?: string, displayName?: string): Promise; resetAvatar(id: string): Promise; setAvatar(container: any, id: string): Promise; getGeoRegion(ipaddress: string): Promise; createProfile(createProfileContext: ProfileInterfaces.CreateProfileContext, autoCreate?: boolean): Promise; getProfile(id: string, details?: boolean, withAttributes?: boolean, partition?: string, coreAttributes?: string, forceRefresh?: boolean): Promise; updateProfile(profile: ProfileInterfaces.Profile, id: string): Promise; getRegions(): Promise; getSupportedLcids(): Promise; getUserDefaults(includeAvatar?: boolean): Promise; refreshUserDefaults(id: string): Promise; } export declare class ProfileApi extends basem.ClientApiBase implements IProfileApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); /** * @param {string} id * @param {string} descriptor */ deleteProfileAttribute(id: string, descriptor: string): Promise; /** * @param {string} id * @param {string} descriptor */ getProfileAttribute(id: string, descriptor: string): Promise; /** * @param {string} id * @param {string} partition * @param {string} modifiedSince * @param {string} modifiedAfterRevision * @param {boolean} withCoreAttributes * @param {string} coreAttributes */ getProfileAttributes(id: string, partition: string, modifiedSince?: string, modifiedAfterRevision?: string, withCoreAttributes?: boolean, coreAttributes?: string): Promise; /** * @param {any} container * @param {string} id * @param {string} descriptor */ setProfileAttribute(container: any, id: string, descriptor: string): Promise; /** * @param {VSSInterfaces.VssJsonCollectionWrapperV[]>} attributesCollection * @param {string} id */ setProfileAttributes(attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV[]>, id: string): Promise; /** * @param {string} id * @param {string} size * @param {string} format */ getAvatar(id: string, size?: string, format?: string): Promise; /** * @param {any} container * @param {string} id * @param {string} size * @param {string} format * @param {string} displayName */ getAvatarPreview(container: any, id: string, size?: string, format?: string, displayName?: string): Promise; /** * @param {string} id */ resetAvatar(id: string): Promise; /** * @param {any} container * @param {string} id */ setAvatar(container: any, id: string): Promise; /** * Lookup up country/region based on provided IPv4, null if using the remote IPv4 address. * * @param {string} ipaddress - IPv4 address to be used for reverse lookup, null if using RemoteIPAddress in request context */ getGeoRegion(ipaddress: string): Promise; /** * Create profile * * @param {ProfileInterfaces.CreateProfileContext} createProfileContext - Context for profile creation * @param {boolean} autoCreate - Create profile automatically */ createProfile(createProfileContext: ProfileInterfaces.CreateProfileContext, autoCreate?: boolean): Promise; /** * @param {string} id * @param {boolean} details * @param {boolean} withAttributes * @param {string} partition * @param {string} coreAttributes * @param {boolean} forceRefresh */ getProfile(id: string, details?: boolean, withAttributes?: boolean, partition?: string, coreAttributes?: string, forceRefresh?: boolean): Promise; /** * Update profile * * @param {ProfileInterfaces.Profile} profile - Update profile * @param {string} id - Profile ID */ updateProfile(profile: ProfileInterfaces.Profile, id: string): Promise; /** */ getRegions(): Promise; /** */ getSupportedLcids(): Promise; /** * @param {boolean} includeAvatar */ getUserDefaults(includeAvatar?: boolean): Promise; /** * @param {string} id */ refreshUserDefaults(id: string): Promise; }