import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import CoreInterfaces = require("./interfaces/CoreInterfaces"); import OperationsInterfaces = require("./interfaces/common/OperationsInterfaces"); import VSSInterfaces = require("./interfaces/common/VSSInterfaces"); export interface ICoreApi extends basem.ClientApiBase { removeProjectAvatar(projectId: string): Promise; setProjectAvatar(avatarBlob: CoreInterfaces.ProjectAvatar, projectId: string): Promise; createConnectedService(connectedServiceCreationData: CoreInterfaces.WebApiConnectedServiceDetails, projectId: string): Promise; getConnectedServiceDetails(projectId: string, name: string): Promise; getConnectedServices(projectId: string, kind?: CoreInterfaces.ConnectedServiceKind): Promise; createIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; deleteIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; getIdentityMru(mruName: string): Promise; updateIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; getTeamMembersWithExtendedProperties(projectId: string, teamId: string, top?: number, skip?: number): Promise; getProcessById(processId: string): Promise; getProcesses(): Promise; getProjectCollection(collectionId: string): Promise; getProjectCollections(top?: number, skip?: number): Promise; getProjectHistoryEntries(minRevision?: number): Promise; getProject(projectId: string, includeCapabilities?: boolean, includeHistory?: boolean): Promise; getProjects(stateFilter?: any, top?: number, skip?: number, continuationToken?: string, getDefaultTeamImageUrl?: boolean): Promise; queueCreateProject(projectToCreate: CoreInterfaces.TeamProject): Promise; queueDeleteProject(projectId: string): Promise; updateProject(projectUpdate: CoreInterfaces.TeamProject, projectId: string): Promise; getProjectsProperties(projectIds: string[], properties?: string[]): Promise; getProjectProperties(projectId: string, keys?: string[]): Promise; setProjectProperties(customHeaders: any, projectId: string, patchDocument: VSSInterfaces.JsonPatchDocument): Promise; createOrUpdateProxy(proxy: CoreInterfaces.Proxy): Promise; deleteProxy(proxyUrl: string, site?: string): Promise; getProxies(proxyUrl?: string): Promise; getAllTeams(mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise; createTeam(team: CoreInterfaces.WebApiTeam, projectId: string): Promise; deleteTeam(projectId: string, teamId: string): Promise; getTeam(projectId: string, teamId: string, expandIdentity?: boolean): Promise; getTeams(projectId: string, mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise; updateTeam(teamData: CoreInterfaces.WebApiTeam, projectId: string, teamId: string): Promise; } export declare class CoreApi extends basem.ClientApiBase implements ICoreApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); static readonly RESOURCE_AREA_ID = "79134c72-4a58-4b42-976c-04e7115f32bf"; /** * Removes the avatar for the project. * * @param {string} projectId - The ID or name of the project. */ removeProjectAvatar(projectId: string): Promise; /** * Sets the avatar for the project. * * @param {CoreInterfaces.ProjectAvatar} avatarBlob - The avatar blob data object to upload. * @param {string} projectId - The ID or name of the project. */ setProjectAvatar(avatarBlob: CoreInterfaces.ProjectAvatar, projectId: string): Promise; /** * @param {CoreInterfaces.WebApiConnectedServiceDetails} connectedServiceCreationData * @param {string} projectId */ createConnectedService(connectedServiceCreationData: CoreInterfaces.WebApiConnectedServiceDetails, projectId: string): Promise; /** * @param {string} projectId * @param {string} name */ getConnectedServiceDetails(projectId: string, name: string): Promise; /** * @param {string} projectId * @param {CoreInterfaces.ConnectedServiceKind} kind */ getConnectedServices(projectId: string, kind?: CoreInterfaces.ConnectedServiceKind): Promise; /** * @param {CoreInterfaces.IdentityData} mruData * @param {string} mruName */ createIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; /** * @param {CoreInterfaces.IdentityData} mruData * @param {string} mruName */ deleteIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; /** * @param {string} mruName */ getIdentityMru(mruName: string): Promise; /** * @param {CoreInterfaces.IdentityData} mruData * @param {string} mruName */ updateIdentityMru(mruData: CoreInterfaces.IdentityData, mruName: string): Promise; /** * Get a list of members for a specific team. * * @param {string} projectId - The name or ID (GUID) of the team project the team belongs to. * @param {string} teamId - The name or ID (GUID) of the team . * @param {number} top * @param {number} skip */ getTeamMembersWithExtendedProperties(projectId: string, teamId: string, top?: number, skip?: number): Promise; /** * Get a process by ID. * * @param {string} processId - ID for a process. */ getProcessById(processId: string): Promise; /** * Get a list of processes. * */ getProcesses(): Promise; /** * Get project collection with the specified id or name. * * @param {string} collectionId */ getProjectCollection(collectionId: string): Promise; /** * Get project collection references for this application. * * @param {number} top * @param {number} skip */ getProjectCollections(top?: number, skip?: number): Promise; /** * Gets the history of changes to the project. * * @param {number} minRevision - The minimum revision number to return in the history. */ getProjectHistoryEntries(minRevision?: number): Promise; /** * Get project with the specified id or name, optionally including capabilities. * * @param {string} projectId * @param {boolean} includeCapabilities - Include capabilities (such as source control) in the team project result (default: false). * @param {boolean} includeHistory - Search within renamed projects (that had such name in the past). */ getProject(projectId: string, includeCapabilities?: boolean, includeHistory?: boolean): Promise; /** * Get all projects in the organization that the authenticated user has access to. * * @param {any} stateFilter - Filter on team projects in a specific team project state (default: WellFormed). * @param {number} top * @param {number} skip * @param {string} continuationToken * @param {boolean} getDefaultTeamImageUrl */ getProjects(stateFilter?: any, top?: number, skip?: number, continuationToken?: string, getDefaultTeamImageUrl?: boolean): Promise; /** * Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status. * * @param {CoreInterfaces.TeamProject} projectToCreate - The project to create. */ queueCreateProject(projectToCreate: CoreInterfaces.TeamProject): Promise; /** * Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status. * * @param {string} projectId - The project id of the project to delete. */ queueDeleteProject(projectId: string): Promise; /** * Update an existing project's name, abbreviation, description, or restore a project. * * @param {CoreInterfaces.TeamProject} projectUpdate - The updates for the project. The state must be set to wellFormed to restore the project. * @param {string} projectId - The project id of the project to update. */ updateProject(projectUpdate: CoreInterfaces.TeamProject, projectId: string): Promise; /** * Get a collection of team project properties for multiple projects. * * @param {string[]} projectIds - A comma-delimited string of team project IDs * @param {string[]} properties */ getProjectsProperties(projectIds: string[], properties?: string[]): Promise; /** * Get a collection of team project properties. * * @param {string} projectId - The team project ID. * @param {string[]} keys - A comma-delimited string of team project property names. Wildcard characters ("?" and "*") are supported. If no key is specified, all properties will be returned. */ getProjectProperties(projectId: string, keys?: string[]): Promise; /** * Create, update, and delete team project properties. * * @param {string} projectId - The team project ID. * @param {VSSInterfaces.JsonPatchDocument} patchDocument - A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name. */ setProjectProperties(customHeaders: any, projectId: string, patchDocument: VSSInterfaces.JsonPatchDocument): Promise; /** * @param {CoreInterfaces.Proxy} proxy */ createOrUpdateProxy(proxy: CoreInterfaces.Proxy): Promise; /** * @param {string} proxyUrl * @param {string} site */ deleteProxy(proxyUrl: string, site?: string): Promise; /** * @param {string} proxyUrl */ getProxies(proxyUrl?: string): Promise; /** * Get a list of all teams. * * @param {boolean} mine - If true, then return all teams requesting user is member. Otherwise return all teams user has read access. * @param {number} top - Maximum number of teams to return. * @param {number} skip - Number of teams to skip. * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object. */ getAllTeams(mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise; /** * Create a team in a team project. * * @param {CoreInterfaces.WebApiTeam} team - The team data used to create the team. * @param {string} projectId - The name or ID (GUID) of the team project in which to create the team. */ createTeam(team: CoreInterfaces.WebApiTeam, projectId: string): Promise; /** * Delete a team. * * @param {string} projectId - The name or ID (GUID) of the team project containing the team to delete. * @param {string} teamId - The name or ID of the team to delete. */ deleteTeam(projectId: string, teamId: string): Promise; /** * Get a specific team. * * @param {string} projectId - The name or ID (GUID) of the team project containing the team. * @param {string} teamId - The name or ID (GUID) of the team. * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object. */ getTeam(projectId: string, teamId: string, expandIdentity?: boolean): Promise; /** * Get a list of teams. * * @param {string} projectId * @param {boolean} mine - If true return all the teams requesting user is member, otherwise return all the teams user has read access. * @param {number} top - Maximum number of teams to return. * @param {number} skip - Number of teams to skip. * @param {boolean} expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object. */ getTeams(projectId: string, mine?: boolean, top?: number, skip?: number, expandIdentity?: boolean): Promise; /** * Update a team's name and/or description. * * @param {CoreInterfaces.WebApiTeam} teamData * @param {string} projectId - The name or ID (GUID) of the team project containing the team to update. * @param {string} teamId - The name of ID of the team to update. */ updateTeam(teamData: CoreInterfaces.WebApiTeam, projectId: string, teamId: string): Promise; }