import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces'); import alertm = require('./AlertApi'); import buildm = require('./BuildApi'); import corem = require('./CoreApi'); import dashboardm = require('./DashboardApi'); import extmgmtm = require("./ExtensionManagementApi"); import featuremgmtm = require("./FeatureManagementApi"); import filecontainerm = require('./FileContainerApi'); import gallerym = require('./GalleryApi'); import gitm = require('./GitApi'); import locationsm = require('./LocationsApi'); import managementm = require('./ManagementApi'); import notificationm = require('./NotificationApi'); import policym = require('./PolicyApi'); import profilem = require('./ProfileApi'); import projectm = require('./ProjectAnalysisApi'); import releasem = require('./ReleaseApi'); import securityrolesm = require('./SecurityRolesApi'); import taskagentm = require('./TaskAgentApi'); import taskm = require('./TaskApi'); import testm = require('./TestApi'); import testplanm = require('./TestPlanApi'); import testresultsm = require('./TestResultsApi'); import tfvcm = require('./TfvcApi'); import wikim = require('./WikiApi'); import workm = require('./WorkApi'); import pipelinesm = require('./PipelinesApi'); import cixm = require('./CIXApi'); import workitemtrackingm = require('./WorkItemTrackingApi'); import workitemtrackingprocessm = require('./WorkItemTrackingProcessApi'); import workitemtrackingprocessdefinitionm = require('./WorkItemTrackingProcessDefinitionsApi'); import * as rm from 'typed-rest-client/RestClient'; import vsom = require('./VsoClient'); import lim = require("./interfaces/LocationsInterfaces"); /** * Methods to return handler objects (see handlers folder) */ export declare function getBasicHandler(username: string, password: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler; export declare function getNtlmHandler(username: string, password: string, workstation?: string, domain?: string): VsoBaseInterfaces.IRequestHandler; export declare function getBearerHandler(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler; export declare function getPersonalAccessTokenHandler(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler; export declare function getHandlerFromToken(token: string, allowCrossOriginAuthentication?: boolean): VsoBaseInterfaces.IRequestHandler; export interface IWebApiRequestSettings { productName: string; productVersion: string; } export declare class WebApi { serverUrl: string; authHandler: VsoBaseInterfaces.IRequestHandler; rest: rm.RestClient; vsoClient: vsom.VsoClient; options: VsoBaseInterfaces.IRequestOptions; private _resourceAreas; constructor(defaultUrl: string, authHandler: VsoBaseInterfaces.IRequestHandler, options?: VsoBaseInterfaces.IRequestOptions, requestSettings?: IWebApiRequestSettings); /** * Convenience factory to create with a bearer token. * @param defaultServerUrl default server url to use when creating new apis from factory methods * @param defaultAuthHandler default authentication credentials to use when creating new apis from factory methods */ static createWithBearerToken(defaultUrl: string, token: string, options?: VsoBaseInterfaces.IRequestOptions): WebApi; connect(): Promise; /** * Each factory method can take a serverUrl and a list of handlers * if these aren't provided, the default url and auth handler given to the constructor for this class will be used */ getAlertApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getBuildApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getCoreApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getDashboardApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getExtensionManagementApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getFeatureManagementApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getFileContainerApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getGalleryApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getGitApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getLocationsApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getManagementApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getNotificationApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getPolicyApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getProfileApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getProjectAnalysisApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getSecurityRolesApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getReleaseApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTaskApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTaskAgentApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTestApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTestPlanApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTestResultsApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getTfvcApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getWikiApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getWorkApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getWorkItemTrackingApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getWorkItemTrackingProcessApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getWorkItemTrackingProcessDefinitionApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getPipelinesApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; getCixApi(serverUrl?: string, handlers?: VsoBaseInterfaces.IRequestHandler[]): Promise; /** * Determines if the domain is exluded for proxy via the no_proxy env var * @param url: the server url */ isNoProxyHost: (_url: string) => boolean; private _getResourceAreaUrl; private _getResourceAreas; private _readTaskLibSecrets; }