Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,580 changes: 790 additions & 790 deletions api/BuildApi.ts

Large diffs are not rendered by default.

634 changes: 317 additions & 317 deletions api/CoreApi.ts

Large diffs are not rendered by default.

162 changes: 81 additions & 81 deletions api/FileContainerApiBase.ts

Large diffs are not rendered by default.

1,016 changes: 508 additions & 508 deletions api/GalleryApi.ts

Large diffs are not rendered by default.

2,336 changes: 1,168 additions & 1,168 deletions api/GitApi.ts

Large diffs are not rendered by default.

1,379 changes: 713 additions & 666 deletions api/ReleaseApi.ts

Large diffs are not rendered by default.

32 changes: 21 additions & 11 deletions api/TaskAgentApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces");
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');

export interface ITaskAgentApi extends taskagentbasem.ITaskAgentApiBase {
uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean) : Q.Promise<void>;
uploadTaskDefinition(customHeaders: VsoBaseInterfaces.IHeaders, contentStream: NodeJS.ReadableStream, taskId: string, overwrite: boolean) : Promise<void>;
}

export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITaskAgentApi {
Expand All @@ -28,9 +28,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
*/
public deleteTaskDefinition(
taskId: string
): Q.Promise<void> {
): Promise<void> {

return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
.then((location: ifm.ApiResourceLocation) => {
if (location) {
// the resource exists at the url we were given. go!
Expand All @@ -49,6 +49,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
}
}
});

return <Promise<void>>(<any>promise);
}

/**
Expand All @@ -63,9 +65,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
versionString: string,
visibility: string[],
scopeLocal: boolean
): Q.Promise<NodeJS.ReadableStream> {
): Promise<NodeJS.ReadableStream> {

return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
.then((location: ifm.ApiResourceLocation) => {
if (location) {
// the resource exists at the url we were given. go!
Expand All @@ -84,6 +86,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
}
}
});

return <Promise<NodeJS.ReadableStream>>(<any>promise);
}

/**
Expand All @@ -98,9 +102,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
versionString: string,
visibility: string[],
scopeLocal: boolean
): Q.Promise<TaskAgentInterfaces.TaskDefinition> {
): Promise<TaskAgentInterfaces.TaskDefinition> {

return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
.then((location: ifm.ApiResourceLocation) => {
if (location) {
// the resource exists at the url we were given. go!
Expand All @@ -119,6 +123,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
}
}
});

return <Promise<TaskAgentInterfaces.TaskDefinition>>(<any>promise);
}

/**
Expand All @@ -131,9 +137,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
taskId: string,
visibility: string[],
scopeLocal: boolean
): Q.Promise<TaskAgentInterfaces.TaskDefinition[]> {
): Promise<TaskAgentInterfaces.TaskDefinition[]> {

return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
.then((location: ifm.ApiResourceLocation) => {
if (location) {
// the resource exists at the url we were given. go!
Expand All @@ -152,6 +158,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
}
}
});

return <Promise<TaskAgentInterfaces.TaskDefinition[]>>(<any>promise);
}

/**
Expand All @@ -165,9 +173,9 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
contentStream: NodeJS.ReadableStream,
taskId: string,
overwrite: boolean
): Q.Promise<void> {
): Promise<void> {

return this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
let promise = this.vsoClient.beginGetLocation("distributedtask", "60aac929-f0cd-4bc8-9ce4-6b30e8f1b1bd")
.then((location: ifm.ApiResourceLocation) => {
if (location) {
// the resource exists at the url we were given. go!
Expand All @@ -186,6 +194,8 @@ export class TaskAgentApi extends taskagentbasem.TaskAgentApiBase implements ITa
}
}
});

return <Promise<void>>(<any>promise);
}

/**
Expand Down
Loading