1 | import basem = require('./ClientApiBases');
|
2 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
3 | import CoreInterfaces = require("./interfaces/CoreInterfaces");
|
4 | import OperationsInterfaces = require("./interfaces/common/OperationsInterfaces");
|
5 | import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
6 | export interface ICoreApi extends basem.ClientApiBase {
|
7 | removeProjectAvatar(projectId: string): Promise<void>;
|
8 | setProjectAvatar(avatarBlob: CoreInterfaces.ProjectAvatar, projectId: string): Promise<void>;
|
9 | getProjectTeamsByCategory(projectId: string, expandIdentity?: boolean, top?: number, skip?: number): Promise<CoreInterfaces.CategorizedWebApiTeams>;
|
10 | createConnectedService(connectedServiceCreationData: CoreInterfaces.WebApiConnectedServiceDetails, projectId: string): Promise<CoreInterfaces.WebApiConnectedService>;
|
11 | getConnectedServiceDetails(projectId: string, name: string): Promise<CoreInterfaces.WebApiConnectedServiceDetails>;
|
12 | getConnectedServices(projectId: string, kind?: CoreInterfaces.ConnectedServiceKind): Promise<CoreInterfaces.WebApiConnectedService[]>;
|
13 | createIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
14 | deleteIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
15 | getIdentityMru(mruName: string): Promise<VSSInterfaces.IdentityRef[]>;
|
16 | updateIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
17 | getTeamMembersWithExtendedProperties(projectId: string, teamId: string, top?: number, skip?: number): Promise<VSSInterfaces.TeamMember[]>;
|
18 | getProcessById(processId: string): Promise<CoreInterfaces.Process>;
|
19 | getProcesses(): Promise<CoreInterfaces.Process[]>;
|
20 | getProjectCollection(collectionId: string): Promise<CoreInterfaces.TeamProjectCollection>;
|
21 | getProjectCollections(top?: number, skip?: number): Promise<CoreInterfaces.TeamProjectCollectionReference[]>;
|
22 | getProjectHistoryEntries(minRevision?: number): Promise<CoreInterfaces.ProjectInfo[]>;
|
23 | getProject(projectId: string, includeCapabilities?: boolean, includeHistory?: boolean): Promise<CoreInterfaces.TeamProject>;
|
24 | getProjects(stateFilter?: any, top?: number, skip?: number, continuationToken?: number, getDefaultTeamImageUrl?: boolean): Promise<VSSInterfaces.PagedList<CoreInterfaces.TeamProjectReference>>;
|
25 | queueCreateProject(projectToCreate: CoreInterfaces.TeamProject): Promise<OperationsInterfaces.OperationReference>;
|
26 | queueDeleteProject(projectId: string): Promise<OperationsInterfaces.OperationReference>;
|
27 | updateProject(projectUpdate: CoreInterfaces.TeamProject, projectId: string): Promise<OperationsInterfaces.OperationReference>;
|
28 | getProjectsProperties(projectIds: string[], properties?: string[]): Promise<CoreInterfaces.ProjectProperties[]>;
|
29 | getProjectProperties(projectId: string, keys?: string[]): Promise<CoreInterfaces.ProjectProperty[]>;
|
30 | setProjectProperties(customHeaders: any, projectId: string, patchDocument: VSSInterfaces.JsonPatchDocument): Promise<void>;
|
31 | createOrUpdateProxy(proxy: CoreInterfaces.Proxy): Promise<CoreInterfaces.Proxy>;
|
32 | deleteProxy(proxyUrl: string, site?: string): Promise<void>;
|
33 | getProxies(proxyUrl?: string): Promise<CoreInterfaces.Proxy[]>;
|
34 | getAllTeams(mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam[]>;
|
35 | createTeam(team: CoreInterfaces.WebApiTeam, projectId: string): Promise<CoreInterfaces.WebApiTeam>;
|
36 | deleteTeam(projectId: string, teamId: string): Promise<void>;
|
37 | getTeam(projectId: string, teamId: string, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam>;
|
38 | getTeams(projectId: string, mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam[]>;
|
39 | updateTeam(teamData: CoreInterfaces.WebApiTeam, projectId: string, teamId: string): Promise<CoreInterfaces.WebApiTeam>;
|
40 | }
|
41 | export declare class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
42 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
43 | static readonly RESOURCE_AREA_ID = "79134c72-4a58-4b42-976c-04e7115f32bf";
|
44 | /**
|
45 | * Removes the avatar for the project.
|
46 | *
|
47 | * @param {string} projectId - The ID or name of the project.
|
48 | */
|
49 | removeProjectAvatar(projectId: string): Promise<void>;
|
50 | |
51 |
|
52 |
|
53 |
|
54 |
|
55 |
|
56 | setProjectAvatar(avatarBlob: CoreInterfaces.ProjectAvatar, projectId: string): Promise<void>;
|
57 | |
58 |
|
59 |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 | getProjectTeamsByCategory(projectId: string, expandIdentity?: boolean, top?: number, skip?: number): Promise<CoreInterfaces.CategorizedWebApiTeams>;
|
66 | |
67 |
|
68 |
|
69 |
|
70 | createConnectedService(connectedServiceCreationData: CoreInterfaces.WebApiConnectedServiceDetails, projectId: string): Promise<CoreInterfaces.WebApiConnectedService>;
|
71 | |
72 |
|
73 |
|
74 |
|
75 | getConnectedServiceDetails(projectId: string, name: string): Promise<CoreInterfaces.WebApiConnectedServiceDetails>;
|
76 | |
77 |
|
78 |
|
79 |
|
80 | getConnectedServices(projectId: string, kind?: CoreInterfaces.ConnectedServiceKind): Promise<CoreInterfaces.WebApiConnectedService[]>;
|
81 | |
82 |
|
83 |
|
84 |
|
85 | createIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
86 | |
87 |
|
88 |
|
89 |
|
90 | deleteIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
91 | |
92 |
|
93 |
|
94 | getIdentityMru(mruName: string): Promise<VSSInterfaces.IdentityRef[]>;
|
95 | |
96 |
|
97 |
|
98 |
|
99 | updateIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise<void>;
|
100 | |
101 |
|
102 |
|
103 |
|
104 |
|
105 |
|
106 |
|
107 |
|
108 | getTeamMembersWithExtendedProperties(projectId: string, teamId: string, top?: number, skip?: number): Promise<VSSInterfaces.TeamMember[]>;
|
109 | |
110 |
|
111 |
|
112 |
|
113 |
|
114 | getProcessById(processId: string): Promise<CoreInterfaces.Process>;
|
115 | |
116 |
|
117 |
|
118 |
|
119 | getProcesses(): Promise<CoreInterfaces.Process[]>;
|
120 | |
121 |
|
122 |
|
123 |
|
124 |
|
125 | getProjectCollection(collectionId: string): Promise<CoreInterfaces.TeamProjectCollection>;
|
126 | |
127 |
|
128 |
|
129 |
|
130 |
|
131 |
|
132 | getProjectCollections(top?: number, skip?: number): Promise<CoreInterfaces.TeamProjectCollectionReference[]>;
|
133 | |
134 |
|
135 |
|
136 |
|
137 |
|
138 | getProjectHistoryEntries(minRevision?: number): Promise<CoreInterfaces.ProjectInfo[]>;
|
139 | |
140 |
|
141 |
|
142 |
|
143 |
|
144 |
|
145 |
|
146 | getProject(projectId: string, includeCapabilities?: boolean, includeHistory?: boolean): Promise<CoreInterfaces.TeamProject>;
|
147 | |
148 |
|
149 |
|
150 |
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 | getProjects(stateFilter?: any, top?: number, skip?: number, continuationToken?: number, getDefaultTeamImageUrl?: boolean): Promise<VSSInterfaces.PagedList<CoreInterfaces.TeamProjectReference>>;
|
157 | |
158 |
|
159 |
|
160 |
|
161 |
|
162 | queueCreateProject(projectToCreate: CoreInterfaces.TeamProject): Promise<OperationsInterfaces.OperationReference>;
|
163 | |
164 |
|
165 |
|
166 |
|
167 |
|
168 | queueDeleteProject(projectId: string): Promise<OperationsInterfaces.OperationReference>;
|
169 | |
170 |
|
171 |
|
172 |
|
173 |
|
174 |
|
175 | updateProject(projectUpdate: CoreInterfaces.TeamProject, projectId: string): Promise<OperationsInterfaces.OperationReference>;
|
176 | |
177 |
|
178 |
|
179 |
|
180 |
|
181 |
|
182 | getProjectsProperties(projectIds: string[], properties?: string[]): Promise<CoreInterfaces.ProjectProperties[]>;
|
183 | |
184 |
|
185 |
|
186 |
|
187 |
|
188 |
|
189 | getProjectProperties(projectId: string, keys?: string[]): Promise<CoreInterfaces.ProjectProperty[]>;
|
190 | |
191 |
|
192 |
|
193 |
|
194 |
|
195 |
|
196 | setProjectProperties(customHeaders: any, projectId: string, patchDocument: VSSInterfaces.JsonPatchDocument): Promise<void>;
|
197 | |
198 |
|
199 |
|
200 | createOrUpdateProxy(proxy: CoreInterfaces.Proxy): Promise<CoreInterfaces.Proxy>;
|
201 | |
202 |
|
203 |
|
204 |
|
205 | deleteProxy(proxyUrl: string, site?: string): Promise<void>;
|
206 | |
207 |
|
208 |
|
209 | getProxies(proxyUrl?: string): Promise<CoreInterfaces.Proxy[]>;
|
210 | |
211 |
|
212 |
|
213 |
|
214 |
|
215 |
|
216 |
|
217 |
|
218 | getAllTeams(mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam[]>;
|
219 | |
220 |
|
221 |
|
222 |
|
223 |
|
224 |
|
225 | createTeam(team: CoreInterfaces.WebApiTeam, projectId: string): Promise<CoreInterfaces.WebApiTeam>;
|
226 | |
227 |
|
228 |
|
229 |
|
230 |
|
231 |
|
232 | deleteTeam(projectId: string, teamId: string): Promise<void>;
|
233 | |
234 |
|
235 |
|
236 |
|
237 |
|
238 |
|
239 |
|
240 | getTeam(projectId: string, teamId: string, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam>;
|
241 | |
242 |
|
243 |
|
244 |
|
245 |
|
246 |
|
247 |
|
248 |
|
249 |
|
250 | getTeams(projectId: string, mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise<CoreInterfaces.WebApiTeam[]>;
|
251 | |
252 |
|
253 |
|
254 |
|
255 |
|
256 |
|
257 |
|
258 | updateTeam(teamData: CoreInterfaces.WebApiTeam, projectId: string, teamId: string): Promise<CoreInterfaces.WebApiTeam>;
|
259 | }
|