1 |
|
2 | import taskagentbasem = require('./TaskAgentApiBase');
|
3 | import TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces");
|
4 | import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
5 | export interface ITaskAgentApi extends taskagentbasem.ITaskAgentApiBase {
|
6 | uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean): Promise<void>;
|
7 | }
|
8 | export declare class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITaskAgentApi {
|
9 | private _handlers;
|
10 | private _options;
|
11 | private _fallbackClient;
|
12 | constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[], options?: VsoBaseInterfaces.IRequestOptions);
|
13 | /**
|
14 | * @param {string} taskId
|
15 | * @param onResult callback function
|
16 | */
|
17 | deleteTaskDefinition(taskId: string): Promise<void>;
|
18 | |
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | getTaskContentZip(taskId: string, versionString: string, visibility: string[], scopeLocal: boolean): Promise<NodeJS.ReadableStream>;
|
26 | |
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 |
|
33 | getTaskDefinition(taskId: string, versionString: string, visibility: string[], scopeLocal: boolean): Promise<TaskAgentInterfaces.TaskDefinition>;
|
34 | |
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 | getTaskDefinitions(taskId: string, visibility: string[], scopeLocal: boolean): Promise<TaskAgentInterfaces.TaskDefinition[]>;
|
41 | |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
|
47 | uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean): Promise<void>;
|
48 | private _getFallbackClient;
|
49 | private _getAccountUrl;
|
50 | }
|