import basem = require('./ClientApiBases'); import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import LocationsInterfaces = require("./interfaces/LocationsInterfaces"); import VSSInterfaces = require("./interfaces/common/VSSInterfaces"); export interface ILocationsApi extends basem.ClientApiBase { getConnectionData(connectOptions?: VSSInterfaces.ConnectOptions, lastChangeId?: number, lastChangeId64?: number): Promise; getResourceArea(areaId: string, enterpriseName?: string, organizationName?: string): Promise; getResourceAreaByHost(areaId: string, hostId: string): Promise; getResourceAreas(enterpriseName?: string, organizationName?: string): Promise; getResourceAreasByHost(hostId: string): Promise; deleteServiceDefinition(serviceType: string, identifier: string): Promise; getServiceDefinition(serviceType: string, identifier: string, allowFaultIn?: boolean, previewFaultIn?: boolean): Promise; getServiceDefinitions(serviceType?: string): Promise; updateServiceDefinitions(serviceDefinitions: VSSInterfaces.VssJsonCollectionWrapperV): Promise; } export declare class LocationsApi extends basem.ClientApiBase implements ILocationsApi { constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions); /** * This was copied and adapted from TeamFoundationConnectionService.Connect() * * @param {VSSInterfaces.ConnectOptions} connectOptions * @param {number} lastChangeId - Obsolete 32-bit LastChangeId * @param {number} lastChangeId64 - Non-truncated 64-bit LastChangeId */ getConnectionData(connectOptions?: VSSInterfaces.ConnectOptions, lastChangeId?: number, lastChangeId64?: number): Promise; /** * @param {string} areaId * @param {string} enterpriseName * @param {string} organizationName */ getResourceArea(areaId: string, enterpriseName?: string, organizationName?: string): Promise; /** * @param {string} areaId * @param {string} hostId */ getResourceAreaByHost(areaId: string, hostId: string): Promise; /** * @param {string} enterpriseName * @param {string} organizationName */ getResourceAreas(enterpriseName?: string, organizationName?: string): Promise; /** * @param {string} hostId */ getResourceAreasByHost(hostId: string): Promise; /** * @param {string} serviceType * @param {string} identifier */ deleteServiceDefinition(serviceType: string, identifier: string): Promise; /** * Finds a given service definition. * * @param {string} serviceType * @param {string} identifier * @param {boolean} allowFaultIn - If true, we will attempt to fault in a host instance mapping if in SPS. * @param {boolean} previewFaultIn - If true, we will calculate and return a host instance mapping, but not persist it. */ getServiceDefinition(serviceType: string, identifier: string, allowFaultIn?: boolean, previewFaultIn?: boolean): Promise; /** * @param {string} serviceType */ getServiceDefinitions(serviceType?: string): Promise; /** * @param {VSSInterfaces.VssJsonCollectionWrapperV} serviceDefinitions */ updateServiceDefinitions(serviceDefinitions: VSSInterfaces.VssJsonCollectionWrapperV): Promise; }