1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import ProfileInterfaces = require("./interfaces/ProfileInterfaces");
|
4 | import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
5 | export interface IProfileApi extends basem.ClientApiBase {
|
6 | deleteProfileAttribute(id: string, descriptor: string): Promise<void>;
|
7 | getProfileAttribute(id: string, descriptor: string): Promise<ProfileInterfaces.ProfileAttribute>;
|
8 | getProfileAttributes(id: string, partition: string, modifiedSince?: string, modifiedAfterRevision?: string, withCoreAttributes?: boolean, coreAttributes?: string): Promise<ProfileInterfaces.ProfileAttribute[]>;
|
9 | setProfileAttribute(container: any, id: string, descriptor: string): Promise<void>;
|
10 | setProfileAttributes(attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV<ProfileInterfaces.ProfileAttributeBase<any>[]>, id: string): Promise<void>;
|
11 | getAvatar(id: string, size?: string, format?: string): Promise<ProfileInterfaces.Avatar>;
|
12 | getAvatarPreview(container: any, id: string, size?: string, format?: string, displayName?: string): Promise<ProfileInterfaces.Avatar>;
|
13 | resetAvatar(id: string): Promise<void>;
|
14 | setAvatar(container: any, id: string): Promise<void>;
|
15 | getGeoRegion(ipaddress: string): Promise<ProfileInterfaces.GeoRegion>;
|
16 | createProfile(createProfileContext: ProfileInterfaces.CreateProfileContext, autoCreate?: boolean): Promise<ProfileInterfaces.Profile>;
|
17 | getProfile(id: string, details?: boolean, withAttributes?: boolean, partition?: string, coreAttributes?: string, forceRefresh?: boolean): Promise<ProfileInterfaces.Profile>;
|
18 | updateProfile(profile: ProfileInterfaces.Profile, id: string): Promise<void>;
|
19 | getRegions(): Promise<ProfileInterfaces.ProfileRegions>;
|
20 | getSupportedLcids(): Promise<string[]>;
|
21 | getUserDefaults(includeAvatar?: boolean): Promise<ProfileInterfaces.Profile>;
|
22 | refreshUserDefaults(id: string): Promise<ProfileInterfaces.Profile>;
|
23 | }
|
24 | export declare class ProfileApi extends basem.ClientApiBase implements IProfileApi {
|
25 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
26 | /**
|
27 | * @param {string} id
|
28 | * @param {string} descriptor
|
29 | */
|
30 | deleteProfileAttribute(id: string, descriptor: string): Promise<void>;
|
31 | |
32 |
|
33 |
|
34 |
|
35 | getProfileAttribute(id: string, descriptor: string): Promise<ProfileInterfaces.ProfileAttribute>;
|
36 | |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
|
42 |
|
43 |
|
44 | getProfileAttributes(id: string, partition: string, modifiedSince?: string, modifiedAfterRevision?: string, withCoreAttributes?: boolean, coreAttributes?: string): Promise<ProfileInterfaces.ProfileAttribute[]>;
|
45 | |
46 |
|
47 |
|
48 |
|
49 |
|
50 | setProfileAttribute(container: any, id: string, descriptor: string): Promise<void>;
|
51 | |
52 |
|
53 |
|
54 |
|
55 | setProfileAttributes(attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV<ProfileInterfaces.ProfileAttributeBase<any>[]>, id: string): Promise<void>;
|
56 | |
57 |
|
58 |
|
59 |
|
60 |
|
61 | getAvatar(id: string, size?: string, format?: string): Promise<ProfileInterfaces.Avatar>;
|
62 | |
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 | getAvatarPreview(container: any, id: string, size?: string, format?: string, displayName?: string): Promise<ProfileInterfaces.Avatar>;
|
70 | |
71 |
|
72 |
|
73 | resetAvatar(id: string): Promise<void>;
|
74 | |
75 |
|
76 |
|
77 |
|
78 | setAvatar(container: any, id: string): Promise<void>;
|
79 | |
80 |
|
81 |
|
82 |
|
83 |
|
84 | getGeoRegion(ipaddress: string): Promise<ProfileInterfaces.GeoRegion>;
|
85 | |
86 |
|
87 |
|
88 |
|
89 |
|
90 |
|
91 | createProfile(createProfileContext: ProfileInterfaces.CreateProfileContext, autoCreate?: boolean): Promise<ProfileInterfaces.Profile>;
|
92 | |
93 |
|
94 |
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 | getProfile(id: string, details?: boolean, withAttributes?: boolean, partition?: string, coreAttributes?: string, forceRefresh?: boolean): Promise<ProfileInterfaces.Profile>;
|
101 | |
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 | updateProfile(profile: ProfileInterfaces.Profile, id: string): Promise<void>;
|
108 | |
109 |
|
110 | getRegions(): Promise<ProfileInterfaces.ProfileRegions>;
|
111 | |
112 |
|
113 | getSupportedLcids(): Promise<string[]>;
|
114 | |
115 |
|
116 |
|
117 | getUserDefaults(includeAvatar?: boolean): Promise<ProfileInterfaces.Profile>;
|
118 | |
119 |
|
120 |
|
121 | refreshUserDefaults(id: string): Promise<ProfileInterfaces.Profile>;
|
122 | }
|