more apis (#87)
This commit is contained in:
Родитель
064fa8d593
Коммит
ad797fd91e
|
@ -59,7 +59,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<AccountsInterfaces.Account>;
|
||||
res = await this.rest.create<AccountsInterfaces.Account>(url, info, options);
|
||||
|
||||
|
@ -104,7 +105,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<AccountsInterfaces.Account>;
|
||||
res = await this.rest.get<AccountsInterfaces.Account>(url, options);
|
||||
|
||||
|
@ -154,7 +156,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<AccountsInterfaces.Account[]>;
|
||||
res = await this.rest.get<AccountsInterfaces.Account[]>(url, options);
|
||||
|
||||
|
@ -192,7 +195,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<AccountsInterfaces.AccountNameAvailability>;
|
||||
res = await this.rest.get<AccountsInterfaces.AccountNameAvailability>(url, options);
|
||||
|
||||
|
@ -227,7 +231,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<AccountsInterfaces.AccountRegion[]>;
|
||||
res = await this.rest.get<AccountsInterfaces.AccountRegion[]>(url, options);
|
||||
|
||||
|
@ -262,7 +267,8 @@ export class AccountsApi extends basem.ClientApiBase implements IAccountsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<{ [key: string] : string; }>;
|
||||
res = await this.rest.get<{ [key: string] : string; }>(url, options);
|
||||
|
||||
|
|
156
api/BuildApi.ts
156
api/BuildApi.ts
|
@ -111,7 +111,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildArtifact>;
|
||||
res = await this.rest.create<BuildInterfaces.BuildArtifact>(url, artifact, options);
|
||||
|
||||
|
@ -161,7 +162,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildArtifact>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildArtifact>(url, options);
|
||||
|
||||
|
@ -247,7 +249,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildArtifact[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildArtifact[]>(url, options);
|
||||
|
||||
|
@ -295,7 +298,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
|
@ -346,7 +350,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildBadge>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildBadge>(url, options);
|
||||
|
||||
|
@ -397,7 +402,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
|
@ -440,7 +446,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -490,7 +497,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Build>;
|
||||
res = await this.rest.get<BuildInterfaces.Build>(url, options);
|
||||
|
||||
|
@ -594,7 +602,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Build[]>;
|
||||
res = await this.rest.get<BuildInterfaces.Build[]>(url, options);
|
||||
|
||||
|
@ -646,7 +655,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Build>;
|
||||
res = await this.rest.create<BuildInterfaces.Build>(url, build, options);
|
||||
|
||||
|
@ -691,7 +701,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Build>;
|
||||
res = await this.rest.update<BuildInterfaces.Build>(url, build, options);
|
||||
|
||||
|
@ -733,7 +744,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Build[]>;
|
||||
res = await this.rest.update<BuildInterfaces.Build[]>(url, builds, options);
|
||||
|
||||
|
@ -789,7 +801,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Change[]>;
|
||||
res = await this.rest.get<BuildInterfaces.Change[]>(url, options);
|
||||
|
||||
|
@ -842,7 +855,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Change[]>;
|
||||
res = await this.rest.get<BuildInterfaces.Change[]>(url, options);
|
||||
|
||||
|
@ -882,7 +896,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildController>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildController>(url, options);
|
||||
|
||||
|
@ -926,7 +941,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildController[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildController[]>(url, options);
|
||||
|
||||
|
@ -978,7 +994,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinition>;
|
||||
res = await this.rest.create<BuildInterfaces.BuildDefinition>(url, definition, options);
|
||||
|
||||
|
@ -1021,7 +1038,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1080,7 +1098,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinition>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildDefinition>(url, options);
|
||||
|
||||
|
@ -1163,7 +1182,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinitionReference[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildDefinitionReference[]>(url, options);
|
||||
|
||||
|
@ -1218,7 +1238,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinition>;
|
||||
res = await this.rest.replace<BuildInterfaces.BuildDefinition>(url, definition, options);
|
||||
|
||||
|
@ -1263,7 +1284,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Folder>;
|
||||
res = await this.rest.replace<BuildInterfaces.Folder>(url, folder, options);
|
||||
|
||||
|
@ -1306,7 +1328,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1356,7 +1379,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Folder[]>;
|
||||
res = await this.rest.get<BuildInterfaces.Folder[]>(url, options);
|
||||
|
||||
|
@ -1401,7 +1425,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Folder>;
|
||||
res = await this.rest.create<BuildInterfaces.Folder>(url, folder, options);
|
||||
|
||||
|
@ -1506,7 +1531,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -1549,7 +1575,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildLog[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildLog[]>(url, options);
|
||||
|
||||
|
@ -1635,7 +1662,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildMetric[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildMetric[]>(url, options);
|
||||
|
||||
|
@ -1685,7 +1713,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildMetric[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildMetric[]>(url, options);
|
||||
|
||||
|
@ -1723,7 +1752,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildOptionDefinition[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildOptionDefinition[]>(url, options);
|
||||
|
||||
|
@ -1773,7 +1803,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildReportMetadata>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildReportMetadata>(url, options);
|
||||
|
||||
|
@ -1851,7 +1882,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildResourceUsage>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildResourceUsage>(url, options);
|
||||
|
||||
|
@ -1894,7 +1926,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinitionRevision[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildDefinitionRevision[]>(url, options);
|
||||
|
||||
|
@ -1929,7 +1962,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildSettings>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildSettings>(url, options);
|
||||
|
||||
|
@ -1968,7 +2002,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildSettings>;
|
||||
res = await this.rest.update<BuildInterfaces.BuildSettings>(url, settings, options);
|
||||
|
||||
|
@ -2014,7 +2049,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.replace<string[]>(url, options);
|
||||
|
||||
|
@ -2059,7 +2095,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, tags, options);
|
||||
|
||||
|
@ -2105,7 +2142,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.del<string[]>(url, options);
|
||||
|
||||
|
@ -2148,7 +2186,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -2194,7 +2233,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.replace<string[]>(url, options);
|
||||
|
||||
|
@ -2239,7 +2279,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, tags, options);
|
||||
|
||||
|
@ -2285,7 +2326,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.del<string[]>(url, options);
|
||||
|
||||
|
@ -2335,7 +2377,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -2373,7 +2416,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -2416,7 +2460,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2459,7 +2504,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinitionTemplate>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildDefinitionTemplate>(url, options);
|
||||
|
||||
|
@ -2497,7 +2543,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinitionTemplate[]>;
|
||||
res = await this.rest.get<BuildInterfaces.BuildDefinitionTemplate[]>(url, options);
|
||||
|
||||
|
@ -2542,7 +2589,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.BuildDefinitionTemplate>;
|
||||
res = await this.rest.replace<BuildInterfaces.BuildDefinitionTemplate>(url, template, options);
|
||||
|
||||
|
@ -2598,7 +2646,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<BuildInterfaces.Timeline>;
|
||||
res = await this.rest.get<BuildInterfaces.Timeline>(url, options);
|
||||
|
||||
|
@ -2648,7 +2697,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.ResourceRef[]>;
|
||||
res = await this.rest.get<VSSInterfaces.ResourceRef[]>(url, options);
|
||||
|
||||
|
@ -2700,7 +2750,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.ResourceRef[]>;
|
||||
res = await this.rest.create<VSSInterfaces.ResourceRef[]>(url, commitIds, options);
|
||||
|
||||
|
@ -2753,7 +2804,8 @@ export class BuildApi extends basem.ClientApiBase implements IBuildApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.ResourceRef[]>;
|
||||
res = await this.rest.get<VSSInterfaces.ResourceRef[]>(url, options);
|
||||
|
||||
|
|
|
@ -66,7 +66,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -106,7 +107,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Message[]>;
|
||||
res = await this.rest.get<ChatInterfaces.Message[]>(url, options);
|
||||
|
||||
|
@ -149,7 +151,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Message>;
|
||||
res = await this.rest.get<ChatInterfaces.Message>(url, options);
|
||||
|
||||
|
@ -191,7 +194,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Message>;
|
||||
res = await this.rest.create<ChatInterfaces.Message>(url, messageUpdate, options);
|
||||
|
||||
|
@ -236,7 +240,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Message>;
|
||||
res = await this.rest.update<ChatInterfaces.Message>(url, messageUpdate, options);
|
||||
|
||||
|
@ -275,7 +280,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Room>;
|
||||
res = await this.rest.create<ChatInterfaces.Room>(url, roomUpdate, options);
|
||||
|
||||
|
@ -315,7 +321,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -350,7 +357,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Room[]>;
|
||||
res = await this.rest.get<ChatInterfaces.Room[]>(url, options);
|
||||
|
||||
|
@ -390,7 +398,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Room>;
|
||||
res = await this.rest.get<ChatInterfaces.Room>(url, options);
|
||||
|
||||
|
@ -432,7 +441,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.Room>;
|
||||
res = await this.rest.update<ChatInterfaces.Room>(url, roomUpdate, options);
|
||||
|
||||
|
@ -472,7 +482,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.User[]>;
|
||||
res = await this.rest.get<ChatInterfaces.User[]>(url, options);
|
||||
|
||||
|
@ -515,7 +526,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ChatInterfaces.User>;
|
||||
res = await this.rest.get<ChatInterfaces.User>(url, options);
|
||||
|
||||
|
@ -560,7 +572,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.replace<void>(url, userUpdate, options);
|
||||
|
||||
|
@ -603,7 +616,8 @@ export class ChatApi extends basem.ClientApiBase implements IChatApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
|
|
@ -52,7 +52,8 @@ export class ContributionsApi extends basem.ClientApiBase implements IContributi
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ContributionsInterfaces.ContributionNodeQueryResult>;
|
||||
res = await this.rest.create<ContributionsInterfaces.ContributionNodeQueryResult>(url, query, options);
|
||||
|
||||
|
@ -89,7 +90,8 @@ export class ContributionsApi extends basem.ClientApiBase implements IContributi
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ContributionsInterfaces.DataProviderResult>;
|
||||
res = await this.rest.create<ContributionsInterfaces.DataProviderResult>(url, query, options);
|
||||
|
||||
|
@ -137,7 +139,8 @@ export class ContributionsApi extends basem.ClientApiBase implements IContributi
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ContributionsInterfaces.InstalledExtension[]>;
|
||||
res = await this.rest.get<ContributionsInterfaces.InstalledExtension[]>(url, options);
|
||||
|
||||
|
@ -185,7 +188,8 @@ export class ContributionsApi extends basem.ClientApiBase implements IContributi
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ContributionsInterfaces.InstalledExtension>;
|
||||
res = await this.rest.get<ContributionsInterfaces.InstalledExtension>(url, options);
|
||||
|
||||
|
|
|
@ -67,7 +67,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Dashboard>;
|
||||
res = await this.rest.create<DashboardInterfaces.Dashboard>(url, dashboard, options);
|
||||
|
||||
|
@ -112,7 +113,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -157,7 +159,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Dashboard>;
|
||||
res = await this.rest.get<DashboardInterfaces.Dashboard>(url, options);
|
||||
|
||||
|
@ -199,7 +202,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.DashboardGroup>;
|
||||
res = await this.rest.get<DashboardInterfaces.DashboardGroup>(url, options);
|
||||
|
||||
|
@ -246,7 +250,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Dashboard>;
|
||||
res = await this.rest.replace<DashboardInterfaces.Dashboard>(url, dashboard, options);
|
||||
|
||||
|
@ -290,7 +295,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.DashboardGroup>;
|
||||
res = await this.rest.replace<DashboardInterfaces.DashboardGroup>(url, group, options);
|
||||
|
||||
|
@ -337,7 +343,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Widget>;
|
||||
res = await this.rest.create<DashboardInterfaces.Widget>(url, widget, options);
|
||||
|
||||
|
@ -385,7 +392,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Dashboard>;
|
||||
res = await this.rest.del<DashboardInterfaces.Dashboard>(url, options);
|
||||
|
||||
|
@ -433,7 +441,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Widget>;
|
||||
res = await this.rest.get<DashboardInterfaces.Widget>(url, options);
|
||||
|
||||
|
@ -483,7 +492,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Widget>;
|
||||
res = await this.rest.replace<DashboardInterfaces.Widget>(url, widget, options);
|
||||
|
||||
|
@ -533,7 +543,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.Widget>;
|
||||
res = await this.rest.update<DashboardInterfaces.Widget>(url, widget, options);
|
||||
|
||||
|
@ -571,7 +582,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.WidgetMetadataResponse>;
|
||||
res = await this.rest.get<DashboardInterfaces.WidgetMetadataResponse>(url, options);
|
||||
|
||||
|
@ -615,7 +627,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<DashboardInterfaces.WidgetTypesResponse>;
|
||||
res = await this.rest.get<DashboardInterfaces.WidgetTypesResponse>(url, options);
|
||||
|
||||
|
|
|
@ -0,0 +1,562 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
||||
import DelegatedAuthorizationInterfaces = require("./interfaces/DelegatedAuthorizationInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
||||
export interface IDelegatedAuthorizationApi extends basem.ClientApiBase {
|
||||
authorize(redirectUri: string, responseType: DelegatedAuthorizationInterfaces.ResponseType, clientId: string, scopes: string, userId?: string): Promise<DelegatedAuthorizationInterfaces.AuthorizationDecision>;
|
||||
getAuthorizations(userId?: string): Promise<DelegatedAuthorizationInterfaces.AuthorizationDetails[]>;
|
||||
initiateAuthorization(redirectUri: string, responseType: DelegatedAuthorizationInterfaces.ResponseType, clientId: string, scopes: string, userId?: string): Promise<DelegatedAuthorizationInterfaces.AuthorizationDescription>;
|
||||
revokeAuthorization(authorizationId: string, userId?: string): Promise<void>;
|
||||
host(clientId: string): Promise<void>;
|
||||
revoke(clientId: string, hostId?: string): Promise<void>;
|
||||
create(registration: DelegatedAuthorizationInterfaces.Registration, includeSecret?: boolean): Promise<DelegatedAuthorizationInterfaces.Registration>;
|
||||
delete(registrationId: string): Promise<void>;
|
||||
get(registrationId: string, includeSecret: boolean): Promise<DelegatedAuthorizationInterfaces.Registration>;
|
||||
list(): Promise<DelegatedAuthorizationInterfaces.Registration[]>;
|
||||
update(registration: DelegatedAuthorizationInterfaces.Registration, includeSecret?: boolean): Promise<DelegatedAuthorizationInterfaces.Registration>;
|
||||
getSecret(registrationId: string): Promise<VSSInterfaces.JsonWebToken>;
|
||||
}
|
||||
|
||||
export class DelegatedAuthorizationApi extends basem.ClientApiBase implements IDelegatedAuthorizationApi {
|
||||
constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[]) {
|
||||
super(baseUrl, handlers, 'node-DelegatedAuthorization-api');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} redirectUri
|
||||
* @param {DelegatedAuthorizationInterfaces.ResponseType} responseType
|
||||
* @param {string} clientId
|
||||
* @param {string} scopes
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async authorize(
|
||||
redirectUri: string,
|
||||
responseType: DelegatedAuthorizationInterfaces.ResponseType,
|
||||
clientId: string,
|
||||
scopes: string,
|
||||
userId?: string
|
||||
): Promise<DelegatedAuthorizationInterfaces.AuthorizationDecision> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.AuthorizationDecision>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
responseType: responseType,
|
||||
clientId: clientId,
|
||||
scopes: scopes,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.AuthorizationDecision>;
|
||||
res = await this.rest.create<DelegatedAuthorizationInterfaces.AuthorizationDecision>(url, redirectUri, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.AuthorizationDecision,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async getAuthorizations(
|
||||
userId?: string
|
||||
): Promise<DelegatedAuthorizationInterfaces.AuthorizationDetails[]> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.AuthorizationDetails[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.AuthorizationDetails[]>;
|
||||
res = await this.rest.get<DelegatedAuthorizationInterfaces.AuthorizationDetails[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.AuthorizationDetails,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} redirectUri
|
||||
* @param {DelegatedAuthorizationInterfaces.ResponseType} responseType
|
||||
* @param {string} clientId
|
||||
* @param {string} scopes
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async initiateAuthorization(
|
||||
redirectUri: string,
|
||||
responseType: DelegatedAuthorizationInterfaces.ResponseType,
|
||||
clientId: string,
|
||||
scopes: string,
|
||||
userId?: string
|
||||
): Promise<DelegatedAuthorizationInterfaces.AuthorizationDescription> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.AuthorizationDescription>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
responseType: responseType,
|
||||
clientId: clientId,
|
||||
scopes: scopes,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.AuthorizationDescription>;
|
||||
res = await this.rest.get<DelegatedAuthorizationInterfaces.AuthorizationDescription>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.AuthorizationDescription,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} authorizationId
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async revokeAuthorization(
|
||||
authorizationId: string,
|
||||
userId?: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
authorizationId: authorizationId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} clientId
|
||||
*/
|
||||
public async host(
|
||||
clientId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
clientId: clientId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"7372fdd9-238c-467c-b0f2-995f4bfe0d94",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} clientId
|
||||
* @param {string} hostId
|
||||
*/
|
||||
public async revoke(
|
||||
clientId: string,
|
||||
hostId?: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
clientId: clientId,
|
||||
hostId: hostId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"7372fdd9-238c-467c-b0f2-995f4bfe0d94",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {DelegatedAuthorizationInterfaces.Registration} registration
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async create(
|
||||
registration: DelegatedAuthorizationInterfaces.Registration,
|
||||
includeSecret?: boolean
|
||||
): Promise<DelegatedAuthorizationInterfaces.Registration> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.Registration>;
|
||||
res = await this.rest.replace<DelegatedAuthorizationInterfaces.Registration>(url, registration, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
*/
|
||||
public async delete(
|
||||
registrationId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async get(
|
||||
registrationId: string,
|
||||
includeSecret: boolean
|
||||
): Promise<DelegatedAuthorizationInterfaces.Registration> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.Registration>;
|
||||
res = await this.rest.get<DelegatedAuthorizationInterfaces.Registration>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async list(
|
||||
): Promise<DelegatedAuthorizationInterfaces.Registration[]> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.Registration[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.Registration[]>;
|
||||
res = await this.rest.get<DelegatedAuthorizationInterfaces.Registration[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.Registration,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {DelegatedAuthorizationInterfaces.Registration} registration
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async update(
|
||||
registration: DelegatedAuthorizationInterfaces.Registration,
|
||||
includeSecret?: boolean
|
||||
): Promise<DelegatedAuthorizationInterfaces.Registration> {
|
||||
|
||||
return new Promise<DelegatedAuthorizationInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<DelegatedAuthorizationInterfaces.Registration>;
|
||||
res = await this.rest.create<DelegatedAuthorizationInterfaces.Registration>(url, registration, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
DelegatedAuthorizationInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
*/
|
||||
public async getSecret(
|
||||
registrationId: string
|
||||
): Promise<VSSInterfaces.JsonWebToken> {
|
||||
|
||||
return new Promise<VSSInterfaces.JsonWebToken>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"f37e5023-dfbe-490e-9e40-7b7fb6b67887",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<VSSInterfaces.JsonWebToken>;
|
||||
res = await this.rest.get<VSSInterfaces.JsonWebToken>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -82,7 +82,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.AcquisitionOptions>;
|
||||
res = await this.rest.get<ExtensionManagementInterfaces.AcquisitionOptions>(url, options);
|
||||
|
||||
|
@ -119,7 +120,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.ExtensionAcquisitionRequest>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.ExtensionAcquisitionRequest>(url, acquisitionRequest, options);
|
||||
|
||||
|
@ -163,7 +165,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.ExtensionAuthorization>;
|
||||
res = await this.rest.replace<ExtensionManagementInterfaces.ExtensionAuthorization>(url, options);
|
||||
|
||||
|
@ -215,7 +218,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any>;
|
||||
res = await this.rest.create<any>(url, doc, options);
|
||||
|
||||
|
@ -268,7 +272,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -321,7 +326,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any>;
|
||||
res = await this.rest.get<any>(url, options);
|
||||
|
||||
|
@ -371,7 +377,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any[]>;
|
||||
res = await this.rest.get<any[]>(url, options);
|
||||
|
||||
|
@ -423,7 +430,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any>;
|
||||
res = await this.rest.replace<any>(url, doc, options);
|
||||
|
||||
|
@ -475,7 +483,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any>;
|
||||
res = await this.rest.update<any>(url, doc, options);
|
||||
|
||||
|
@ -518,7 +527,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.ExtensionDataCollection[]>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.ExtensionDataCollection[]>(url, collectionQuery, options);
|
||||
|
||||
|
@ -566,7 +576,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.ExtensionState[]>;
|
||||
res = await this.rest.get<ExtensionManagementInterfaces.ExtensionState[]>(url, options);
|
||||
|
||||
|
@ -603,7 +614,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension[]>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.InstalledExtension[]>(url, query, options);
|
||||
|
||||
|
@ -654,7 +666,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension[]>;
|
||||
res = await this.rest.get<ExtensionManagementInterfaces.InstalledExtension[]>(url, options);
|
||||
|
||||
|
@ -691,7 +704,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension>;
|
||||
res = await this.rest.update<ExtensionManagementInterfaces.InstalledExtension>(url, extension, options);
|
||||
|
||||
|
@ -739,7 +753,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension>;
|
||||
res = await this.rest.get<ExtensionManagementInterfaces.InstalledExtension>(url, options);
|
||||
|
||||
|
@ -783,7 +798,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.InstalledExtension>(url, options);
|
||||
|
||||
|
@ -834,7 +850,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -872,7 +889,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.UserExtensionPolicy>;
|
||||
res = await this.rest.get<GalleryInterfaces.UserExtensionPolicy>(url, options);
|
||||
|
||||
|
@ -925,7 +943,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<number>;
|
||||
res = await this.rest.update<number>(url, rejectMessage, options);
|
||||
|
||||
|
@ -960,7 +979,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.RequestedExtension[]>;
|
||||
res = await this.rest.get<ExtensionManagementInterfaces.RequestedExtension[]>(url, options);
|
||||
|
||||
|
@ -1010,7 +1030,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<number>;
|
||||
res = await this.rest.update<number>(url, rejectMessage, options);
|
||||
|
||||
|
@ -1051,7 +1072,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1094,7 +1116,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.RequestedExtension>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.RequestedExtension>(url, requestMessage, options);
|
||||
|
||||
|
@ -1129,7 +1152,8 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeature>;
|
||||
res = await this.rest.get<FeatureManagementInterfaces.ContributedFeature>(url, options);
|
||||
|
||||
|
@ -102,7 +103,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeature[]>;
|
||||
res = await this.rest.get<FeatureManagementInterfaces.ContributedFeature[]>(url, options);
|
||||
|
||||
|
@ -145,7 +147,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureState>;
|
||||
res = await this.rest.get<FeatureManagementInterfaces.ContributedFeatureState>(url, options);
|
||||
|
||||
|
@ -200,7 +203,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureState>;
|
||||
res = await this.rest.update<FeatureManagementInterfaces.ContributedFeatureState>(url, feature, options);
|
||||
|
||||
|
@ -249,7 +253,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureState>;
|
||||
res = await this.rest.get<FeatureManagementInterfaces.ContributedFeatureState>(url, options);
|
||||
|
||||
|
@ -310,7 +315,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureState>;
|
||||
res = await this.rest.update<FeatureManagementInterfaces.ContributedFeatureState>(url, feature, options);
|
||||
|
||||
|
@ -349,7 +355,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureStateQuery>;
|
||||
res = await this.rest.create<FeatureManagementInterfaces.ContributedFeatureStateQuery>(url, query, options);
|
||||
|
||||
|
@ -391,7 +398,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureStateQuery>;
|
||||
res = await this.rest.create<FeatureManagementInterfaces.ContributedFeatureStateQuery>(url, query, options);
|
||||
|
||||
|
@ -439,7 +447,8 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FeatureManagementInterfaces.ContributedFeatureStateQuery>;
|
||||
res = await this.rest.create<FeatureManagementInterfaces.ContributedFeatureStateQuery>(url, query, options);
|
||||
|
||||
|
|
|
@ -10,9 +10,8 @@
|
|||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
|
||||
import restm = require('./RestClient');
|
||||
import httpm = require('./HttpClient');
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
|
@ -46,7 +45,6 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
): Promise<FileContainerInterfaces.FileContainerItem[]> {
|
||||
|
||||
return new Promise<FileContainerInterfaces.FileContainerItem[]>(async (resolve, reject) => {
|
||||
|
||||
let routeValues: any = {
|
||||
containerId: containerId
|
||||
};
|
||||
|
@ -57,19 +55,24 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.1-preview.4",
|
||||
"3.2-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let apiVersion: string = verData.apiVersion;
|
||||
|
||||
let res: restm.IRestClientResponse = await this.restClient.create(url, apiVersion, items, null);
|
||||
let serializationData = { responseTypeMetadata: FileContainerInterfaces.TypeInfo.FileContainerItem, responseIsCollection: true };
|
||||
let deserializedResult = serm.ContractSerializer.serialize(res.result, serializationData, true);
|
||||
resolve(deserializedResult);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FileContainerInterfaces.FileContainerItem[]>;
|
||||
res = await this.rest.create<FileContainerInterfaces.FileContainerItem[]>(url, items, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
FileContainerInterfaces.TypeInfo.FileContainerItem,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
|
@ -92,7 +95,6 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
|
||||
let routeValues: any = {
|
||||
containerId: containerId
|
||||
};
|
||||
|
@ -104,19 +106,24 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.1-preview.4",
|
||||
"3.2-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let apiVersion: string = verData.apiVersion;
|
||||
|
||||
let res: restm.IRestClientResponse = await this.restClient.del(url, apiVersion, null);
|
||||
let serializationData = { responseIsCollection: false };
|
||||
let deserializedResult = serm.ContractSerializer.serialize(res.result, serializationData, true);
|
||||
resolve(null);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
|
@ -137,7 +144,6 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
): Promise<FileContainerInterfaces.FileContainer[]> {
|
||||
|
||||
return new Promise<FileContainerInterfaces.FileContainer[]>(async (resolve, reject) => {
|
||||
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
|
@ -148,19 +154,24 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.1-preview.4",
|
||||
"3.2-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let apiVersion: string = verData.apiVersion;
|
||||
|
||||
let res: restm.IRestClientResponse = await this.restClient.get(url, apiVersion, null);
|
||||
let serializationData = { responseTypeMetadata: FileContainerInterfaces.TypeInfo.FileContainer, responseIsCollection: true };
|
||||
let deserializedResult = serm.ContractSerializer.serialize(res.result, serializationData, true);
|
||||
resolve(deserializedResult);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FileContainerInterfaces.FileContainer[]>;
|
||||
res = await this.rest.get<FileContainerInterfaces.FileContainer[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
FileContainerInterfaces.TypeInfo.FileContainer,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
|
@ -191,7 +202,6 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
): Promise<FileContainerInterfaces.FileContainerItem[]> {
|
||||
|
||||
return new Promise<FileContainerInterfaces.FileContainerItem[]>(async (resolve, reject) => {
|
||||
|
||||
let routeValues: any = {
|
||||
containerId: containerId
|
||||
};
|
||||
|
@ -208,19 +218,24 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.1-preview.4",
|
||||
"3.2-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let apiVersion: string = verData.apiVersion;
|
||||
|
||||
let res: restm.IRestClientResponse = await this.restClient.get(url, apiVersion, null);
|
||||
let serializationData = { responseTypeMetadata: FileContainerInterfaces.TypeInfo.FileContainerItem, responseIsCollection: true };
|
||||
let deserializedResult = serm.ContractSerializer.serialize(res.result, serializationData, true);
|
||||
resolve(deserializedResult);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FileContainerInterfaces.FileContainerItem[]>;
|
||||
res = await this.rest.get<FileContainerInterfaces.FileContainerItem[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
FileContainerInterfaces.TypeInfo.FileContainerItem,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
|
|
|
@ -59,7 +59,7 @@ export interface IGalleryApi extends compatBase.GalleryCompatHttpClientBase {
|
|||
updateQuestion(question: GalleryInterfaces.Question, publisherName: string, extensionName: string, questionId: number): Promise<GalleryInterfaces.Question>;
|
||||
createResponse(response: GalleryInterfaces.Response, publisherName: string, extensionName: string, questionId: number): Promise<GalleryInterfaces.Response>;
|
||||
updateResponse(response: GalleryInterfaces.Response, publisherName: string, extensionName: string, questionId: number, responseId: number): Promise<GalleryInterfaces.Response>;
|
||||
getExtensionReports(publisherName: string, extensionName: string, days?: number): Promise<string>;
|
||||
getExtensionReports(publisherName: string, extensionName: string, days?: number, count?: number, afterDate?: Date): Promise<any>;
|
||||
getReviews(publisherName: string, extensionName: string, count?: number, filterOptions?: GalleryInterfaces.ReviewFilterOptions, beforeDate?: Date, afterDate?: Date): Promise<GalleryInterfaces.ReviewsResult>;
|
||||
createReview(review: GalleryInterfaces.Review, pubName: string, extName: string): Promise<GalleryInterfaces.Review>;
|
||||
deleteReview(pubName: string, extName: string, reviewId: number): Promise<void>;
|
||||
|
@ -104,7 +104,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
@ -145,7 +146,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -189,7 +191,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
@ -233,7 +236,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -284,7 +288,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.AcquisitionOptions>;
|
||||
res = await this.rest.get<GalleryInterfaces.AcquisitionOptions>(url, options);
|
||||
|
||||
|
@ -321,7 +326,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionAcquisitionRequest>;
|
||||
res = await this.rest.create<GalleryInterfaces.ExtensionAcquisitionRequest>(url, acquisitionRequest, options);
|
||||
|
||||
|
@ -510,7 +516,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.AzurePublisher>;
|
||||
res = await this.rest.replace<GalleryInterfaces.AzurePublisher>(url, options);
|
||||
|
||||
|
@ -548,7 +555,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.AzurePublisher>;
|
||||
res = await this.rest.get<GalleryInterfaces.AzurePublisher>(url, options);
|
||||
|
||||
|
@ -590,7 +598,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -638,7 +647,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.CategoriesResult>;
|
||||
res = await this.rest.get<GalleryInterfaces.CategoriesResult>(url, options);
|
||||
|
||||
|
@ -731,7 +741,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionEvents>;
|
||||
res = await this.rest.get<GalleryInterfaces.ExtensionEvents>(url, options);
|
||||
|
||||
|
@ -770,7 +781,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, extensionEvents, options);
|
||||
|
||||
|
@ -814,7 +826,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionQueryResult>;
|
||||
res = await this.rest.create<GalleryInterfaces.ExtensionQueryResult>(url, extensionQuery, options);
|
||||
|
||||
|
@ -857,6 +870,7 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.uploadStream<GalleryInterfaces.PublishedExtension>("POST", url, contentStream, options);
|
||||
|
@ -901,7 +915,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -949,7 +964,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.get<GalleryInterfaces.PublishedExtension>(url, options);
|
||||
|
||||
|
@ -987,7 +1003,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.replace<GalleryInterfaces.PublishedExtension>(url, options);
|
||||
|
||||
|
@ -1033,6 +1050,7 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.uploadStream<GalleryInterfaces.PublishedExtension>("POST", url, contentStream, options);
|
||||
|
@ -1080,7 +1098,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1134,7 +1153,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.get<GalleryInterfaces.PublishedExtension>(url, options);
|
||||
|
||||
|
@ -1183,6 +1203,7 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.uploadStream<GalleryInterfaces.PublishedExtension>("PUT", url, contentStream, options);
|
||||
|
@ -1230,7 +1251,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublishedExtension>;
|
||||
res = await this.rest.update<GalleryInterfaces.PublishedExtension>(url, options);
|
||||
|
||||
|
@ -1267,7 +1289,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, azureRestApiRequestModel, options);
|
||||
|
||||
|
@ -1404,7 +1427,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.PublisherQueryResult>;
|
||||
res = await this.rest.create<GalleryInterfaces.PublisherQueryResult>(url, publisherQuery, options);
|
||||
|
||||
|
@ -1441,7 +1465,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Publisher>;
|
||||
res = await this.rest.create<GalleryInterfaces.Publisher>(url, publisher, options);
|
||||
|
||||
|
@ -1479,7 +1504,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1524,7 +1550,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Publisher>;
|
||||
res = await this.rest.get<GalleryInterfaces.Publisher>(url, options);
|
||||
|
||||
|
@ -1564,7 +1591,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Publisher>;
|
||||
res = await this.rest.replace<GalleryInterfaces.Publisher>(url, publisher, options);
|
||||
|
||||
|
@ -1617,7 +1645,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.QuestionsResult>;
|
||||
res = await this.rest.get<GalleryInterfaces.QuestionsResult>(url, options);
|
||||
|
||||
|
@ -1662,7 +1691,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Question>;
|
||||
res = await this.rest.create<GalleryInterfaces.Question>(url, question, options);
|
||||
|
||||
|
@ -1710,7 +1740,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Question>;
|
||||
res = await this.rest.update<GalleryInterfaces.Question>(url, question, options);
|
||||
|
||||
|
@ -1758,7 +1789,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Response>;
|
||||
res = await this.rest.create<GalleryInterfaces.Response>(url, response, options);
|
||||
|
||||
|
@ -1809,7 +1841,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Response>;
|
||||
res = await this.rest.update<GalleryInterfaces.Response>(url, response, options);
|
||||
|
||||
|
@ -1832,14 +1865,18 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
* @param {string} publisherName - Name of the publisher who published the extension
|
||||
* @param {string} extensionName - Name of the extension
|
||||
* @param {number} days - Last n days report
|
||||
* @param {number} count - Number of events to be returned
|
||||
* @param {Date} afterDate - Use if you want to fetch events newer than the specified date
|
||||
*/
|
||||
public async getExtensionReports(
|
||||
publisherName: string,
|
||||
extensionName: string,
|
||||
days?: number
|
||||
): Promise<string> {
|
||||
days?: number,
|
||||
count?: number,
|
||||
afterDate?: Date
|
||||
): Promise<any> {
|
||||
|
||||
return new Promise<string>(async (resolve, reject) => {
|
||||
return new Promise<any>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
publisherName: publisherName,
|
||||
extensionName: extensionName
|
||||
|
@ -1847,6 +1884,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let queryValues: any = {
|
||||
days: days,
|
||||
count: count,
|
||||
afterDate: afterDate,
|
||||
};
|
||||
|
||||
try {
|
||||
|
@ -1859,9 +1898,10 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<any>;
|
||||
res = await this.rest.get<any>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
|
@ -1918,7 +1958,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ReviewsResult>;
|
||||
res = await this.rest.get<GalleryInterfaces.ReviewsResult>(url, options);
|
||||
|
||||
|
@ -1963,7 +2004,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.Review>;
|
||||
res = await this.rest.create<GalleryInterfaces.Review>(url, review, options);
|
||||
|
||||
|
@ -2009,7 +2051,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2057,7 +2100,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ReviewPatch>;
|
||||
res = await this.rest.update<GalleryInterfaces.ReviewPatch>(url, reviewPatch, options);
|
||||
|
||||
|
@ -2094,7 +2138,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionCategory>;
|
||||
res = await this.rest.create<GalleryInterfaces.ExtensionCategory>(url, category, options);
|
||||
|
||||
|
@ -2137,7 +2182,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<{ [key: string] : any; }>;
|
||||
res = await this.rest.get<{ [key: string] : any; }>(url, options);
|
||||
|
||||
|
@ -2179,7 +2225,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, entries, options);
|
||||
|
||||
|
@ -2224,7 +2271,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
@ -2262,7 +2310,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
|
@ -2305,7 +2354,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, extensionStatisticsUpdate, options);
|
||||
|
||||
|
@ -2353,7 +2403,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionDailyStats>;
|
||||
res = await this.rest.get<GalleryInterfaces.ExtensionDailyStats>(url, options);
|
||||
|
||||
|
@ -2371,9 +2422,11 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} publisherName
|
||||
* @param {string} extensionName
|
||||
* @param {string} version
|
||||
* This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats.
|
||||
*
|
||||
* @param {string} publisherName - Name of the publisher
|
||||
* @param {string} extensionName - Name of the extension
|
||||
* @param {string} version - Version of the extension
|
||||
*/
|
||||
public async getExtensionDailyStatsAnonymous(
|
||||
publisherName: string,
|
||||
|
@ -2397,7 +2450,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GalleryInterfaces.ExtensionDailyStats>;
|
||||
res = await this.rest.get<GalleryInterfaces.ExtensionDailyStats>(url, options);
|
||||
|
||||
|
@ -2448,7 +2502,8 @@ export class GalleryApi extends compatBase.GalleryCompatHttpClientBase implement
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
|
253
api/GitApi.ts
253
api/GitApi.ts
|
@ -149,7 +149,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitAnnotatedTag>;
|
||||
res = await this.rest.create<GitInterfaces.GitAnnotatedTag>(url, tagObject, options);
|
||||
|
||||
|
@ -195,7 +196,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitAnnotatedTag>;
|
||||
res = await this.rest.get<GitInterfaces.GitAnnotatedTag>(url, options);
|
||||
|
||||
|
@ -251,7 +253,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitBlobRef>;
|
||||
res = await this.rest.get<GitInterfaces.GitBlobRef>(url, options);
|
||||
|
||||
|
@ -447,7 +450,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitBranchStats>;
|
||||
res = await this.rest.get<GitInterfaces.GitBranchStats>(url, options);
|
||||
|
||||
|
@ -497,7 +501,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitBranchStats[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitBranchStats[]>(url, options);
|
||||
|
||||
|
@ -542,7 +547,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitBranchStats[]>;
|
||||
res = await this.rest.create<GitInterfaces.GitBranchStats[]>(url, searchCriteria, options);
|
||||
|
||||
|
@ -598,7 +604,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitChanges>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommitChanges>(url, options);
|
||||
|
||||
|
@ -641,7 +648,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCherryPick>;
|
||||
res = await this.rest.create<GitInterfaces.GitCherryPick>(url, cherryPickToCreate, options);
|
||||
|
||||
|
@ -685,7 +693,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCherryPick>;
|
||||
res = await this.rest.get<GitInterfaces.GitCherryPick>(url, options);
|
||||
|
||||
|
@ -733,7 +742,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCherryPick>;
|
||||
res = await this.rest.get<GitInterfaces.GitCherryPick>(url, options);
|
||||
|
||||
|
@ -786,7 +796,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommit>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommit>(url, options);
|
||||
|
||||
|
@ -842,7 +853,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitRef[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommitRef[]>(url, options);
|
||||
|
||||
|
@ -901,7 +913,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitRef[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommitRef[]>(url, options);
|
||||
|
||||
|
@ -959,7 +972,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitRef[]>;
|
||||
res = await this.rest.create<GitInterfaces.GitCommitRef[]>(url, searchCriteria, options);
|
||||
|
||||
|
@ -999,7 +1013,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitDeletedRepository[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitDeletedRepository[]>(url, options);
|
||||
|
||||
|
@ -1044,7 +1059,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitImportRequest>;
|
||||
res = await this.rest.create<GitInterfaces.GitImportRequest>(url, importRequest, options);
|
||||
|
||||
|
@ -1090,7 +1106,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitImportRequest>;
|
||||
res = await this.rest.get<GitInterfaces.GitImportRequest>(url, options);
|
||||
|
||||
|
@ -1140,7 +1157,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitImportRequest[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitImportRequest[]>(url, options);
|
||||
|
||||
|
@ -1188,7 +1206,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitImportRequest>;
|
||||
res = await this.rest.update<GitInterfaces.GitImportRequest>(url, importRequestToUpdate, options);
|
||||
|
||||
|
@ -1256,7 +1275,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitItem>;
|
||||
res = await this.rest.get<GitInterfaces.GitItem>(url, options);
|
||||
|
||||
|
@ -1385,7 +1405,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitItem[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitItem[]>(url, options);
|
||||
|
||||
|
@ -1552,7 +1573,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitItem[][]>;
|
||||
res = await this.rest.create<GitInterfaces.GitItem[][]>(url, requestData, options);
|
||||
|
||||
|
@ -1609,6 +1631,7 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Attachment>;
|
||||
res = await this.rest.uploadStream<GitInterfaces.Attachment>("POST", url, contentStream, options);
|
||||
|
@ -1655,7 +1678,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1739,7 +1763,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Attachment[]>;
|
||||
res = await this.rest.get<GitInterfaces.Attachment[]>(url, options);
|
||||
|
||||
|
@ -1828,7 +1853,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitRef[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommitRef[]>(url, options);
|
||||
|
||||
|
@ -1874,7 +1900,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitCommitRef[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitCommitRef[]>(url, options);
|
||||
|
||||
|
@ -1923,7 +1950,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitConflict>;
|
||||
res = await this.rest.get<GitInterfaces.GitConflict>(url, options);
|
||||
|
||||
|
@ -1982,7 +2010,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitConflict[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitConflict[]>(url, options);
|
||||
|
||||
|
@ -2033,7 +2062,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitConflict>;
|
||||
res = await this.rest.update<GitInterfaces.GitConflict>(url, conflict, options);
|
||||
|
||||
|
@ -2093,7 +2123,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestIterationChanges>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestIterationChanges>(url, options);
|
||||
|
||||
|
@ -2140,7 +2171,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestIteration>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestIteration>(url, options);
|
||||
|
||||
|
@ -2191,7 +2223,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestIteration[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestIteration[]>(url, options);
|
||||
|
||||
|
@ -2236,7 +2269,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestQuery>;
|
||||
res = await this.rest.create<GitInterfaces.GitPullRequestQuery>(url, queries, options);
|
||||
|
||||
|
@ -2287,7 +2321,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.IdentityRefWithVote>;
|
||||
res = await this.rest.replace<GitInterfaces.IdentityRefWithVote>(url, reviewer, options);
|
||||
|
||||
|
@ -2335,7 +2370,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.IdentityRefWithVote[]>;
|
||||
res = await this.rest.create<GitInterfaces.IdentityRefWithVote[]>(url, reviewers, options);
|
||||
|
||||
|
@ -2384,7 +2420,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2433,7 +2470,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.IdentityRefWithVote>;
|
||||
res = await this.rest.get<GitInterfaces.IdentityRefWithVote>(url, options);
|
||||
|
||||
|
@ -2479,7 +2517,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.IdentityRefWithVote[]>;
|
||||
res = await this.rest.get<GitInterfaces.IdentityRefWithVote[]>(url, options);
|
||||
|
||||
|
@ -2519,7 +2558,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequest>(url, options);
|
||||
|
||||
|
@ -2575,7 +2615,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequest[]>(url, options);
|
||||
|
||||
|
@ -2620,7 +2661,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest>;
|
||||
res = await this.rest.create<GitInterfaces.GitPullRequest>(url, gitPullRequestToCreate, options);
|
||||
|
||||
|
@ -2685,7 +2727,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequest>(url, options);
|
||||
|
||||
|
@ -2744,7 +2787,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequest[]>(url, options);
|
||||
|
||||
|
@ -2792,7 +2836,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequest>;
|
||||
res = await this.rest.update<GitInterfaces.GitPullRequest>(url, gitPullRequestToUpdate, options);
|
||||
|
||||
|
@ -2838,7 +2883,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, userMessage, options);
|
||||
|
||||
|
@ -2889,7 +2935,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus>;
|
||||
res = await this.rest.create<GitInterfaces.GitPullRequestStatus>(url, status, options);
|
||||
|
||||
|
@ -2941,7 +2988,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestStatus>(url, options);
|
||||
|
||||
|
@ -2990,7 +3038,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestStatus[]>(url, options);
|
||||
|
||||
|
@ -3038,7 +3087,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus>;
|
||||
res = await this.rest.create<GitInterfaces.GitPullRequestStatus>(url, status, options);
|
||||
|
||||
|
@ -3087,7 +3137,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestStatus>(url, options);
|
||||
|
||||
|
@ -3133,7 +3184,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestStatus[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestStatus[]>(url, options);
|
||||
|
||||
|
@ -3184,7 +3236,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Comment>;
|
||||
res = await this.rest.create<GitInterfaces.Comment>(url, comment, options);
|
||||
|
||||
|
@ -3236,7 +3289,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3288,7 +3342,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Comment>;
|
||||
res = await this.rest.get<GitInterfaces.Comment>(url, options);
|
||||
|
||||
|
@ -3337,7 +3392,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Comment[]>;
|
||||
res = await this.rest.get<GitInterfaces.Comment[]>(url, options);
|
||||
|
||||
|
@ -3391,7 +3447,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.Comment>;
|
||||
res = await this.rest.update<GitInterfaces.Comment>(url, comment, options);
|
||||
|
||||
|
@ -3439,7 +3496,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestCommentThread>;
|
||||
res = await this.rest.create<GitInterfaces.GitPullRequestCommentThread>(url, commentThread, options);
|
||||
|
||||
|
@ -3498,7 +3556,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestCommentThread>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestCommentThread>(url, options);
|
||||
|
||||
|
@ -3554,7 +3613,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestCommentThread[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPullRequestCommentThread[]>(url, options);
|
||||
|
||||
|
@ -3605,7 +3665,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPullRequestCommentThread>;
|
||||
res = await this.rest.update<GitInterfaces.GitPullRequestCommentThread>(url, commentThread, options);
|
||||
|
||||
|
@ -3651,7 +3712,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.AssociatedWorkItem[]>;
|
||||
res = await this.rest.get<GitInterfaces.AssociatedWorkItem[]>(url, options);
|
||||
|
||||
|
@ -3696,7 +3758,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPush>;
|
||||
res = await this.rest.create<GitInterfaces.GitPush>(url, push, options);
|
||||
|
||||
|
@ -3752,7 +3815,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPush>;
|
||||
res = await this.rest.get<GitInterfaces.GitPush>(url, options);
|
||||
|
||||
|
@ -3808,7 +3872,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitPush[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitPush[]>(url, options);
|
||||
|
||||
|
@ -3853,7 +3918,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, refLockRequest, options);
|
||||
|
||||
|
@ -3909,7 +3975,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRef[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitRef[]>(url, options);
|
||||
|
||||
|
@ -3962,7 +4029,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRef>;
|
||||
res = await this.rest.update<GitInterfaces.GitRef>(url, newRefInfo, options);
|
||||
|
||||
|
@ -4014,7 +4082,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRefUpdateResult[]>;
|
||||
res = await this.rest.create<GitInterfaces.GitRefUpdateResult[]>(url, refUpdates, options);
|
||||
|
||||
|
@ -4056,7 +4125,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRefFavorite>;
|
||||
res = await this.rest.create<GitInterfaces.GitRefFavorite>(url, favorite, options);
|
||||
|
||||
|
@ -4097,7 +4167,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -4138,7 +4209,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRefFavorite>;
|
||||
res = await this.rest.get<GitInterfaces.GitRefFavorite>(url, options);
|
||||
|
||||
|
@ -4188,7 +4260,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRefFavorite[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitRefFavorite[]>(url, options);
|
||||
|
||||
|
@ -4230,7 +4303,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRepository>;
|
||||
res = await this.rest.create<GitInterfaces.GitRepository>(url, gitRepositoryToCreate, options);
|
||||
|
||||
|
@ -4273,7 +4347,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -4323,7 +4398,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRepository[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitRepository[]>(url, options);
|
||||
|
||||
|
@ -4364,7 +4440,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRepository>;
|
||||
res = await this.rest.get<GitInterfaces.GitRepository>(url, options);
|
||||
|
||||
|
@ -4409,7 +4486,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRepository>;
|
||||
res = await this.rest.update<GitInterfaces.GitRepository>(url, newRepositoryInfo, options);
|
||||
|
||||
|
@ -4452,7 +4530,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRevert>;
|
||||
res = await this.rest.create<GitInterfaces.GitRevert>(url, revertToCreate, options);
|
||||
|
||||
|
@ -4496,7 +4575,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRevert>;
|
||||
res = await this.rest.get<GitInterfaces.GitRevert>(url, options);
|
||||
|
||||
|
@ -4544,7 +4624,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitRevert>;
|
||||
res = await this.rest.get<GitInterfaces.GitRevert>(url, options);
|
||||
|
||||
|
@ -4590,7 +4671,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitStatus>;
|
||||
res = await this.rest.create<GitInterfaces.GitStatus>(url, gitCommitStatusToCreate, options);
|
||||
|
||||
|
@ -4647,7 +4729,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitStatus[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitStatus[]>(url, options);
|
||||
|
||||
|
@ -4690,7 +4773,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitSuggestion[]>;
|
||||
res = await this.rest.get<GitInterfaces.GitSuggestion[]>(url, options);
|
||||
|
||||
|
@ -4747,7 +4831,8 @@ export class GitApi extends basem.ClientApiBase implements IGitApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<GitInterfaces.GitTreeRef>;
|
||||
res = await this.rest.get<GitInterfaces.GitTreeRef>(url, options);
|
||||
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,994 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
||||
|
||||
export interface ILicensingApi extends basem.ClientApiBase {
|
||||
getExtensionLicenseUsage(): Promise<common/LicensingInterfaces.AccountLicenseExtensionUsage[]>;
|
||||
getCertificate(): Promise<NodeJS.ReadableStream>;
|
||||
getClientRights(rightName?: string, productVersion?: string, edition?: string, relType?: string, includeCertificate?: boolean, canary?: string, machineId?: string): Promise<common/LicensingInterfaces.ClientRightsContainer>;
|
||||
assignAvailableAccountEntitlement(userId: string): Promise<common/LicensingInterfaces.AccountEntitlement>;
|
||||
getAccountEntitlement(): Promise<common/LicensingInterfaces.AccountEntitlement>;
|
||||
assignAccountEntitlementForUser(body: common/LicensingInterfaces.AccountEntitlementUpdateModel, userId: string): Promise<common/LicensingInterfaces.AccountEntitlement>;
|
||||
deleteUserEntitlements(userId: string): Promise<void>;
|
||||
getAccountEntitlementForUser(userId: string, determineRights?: boolean): Promise<common/LicensingInterfaces.AccountEntitlement>;
|
||||
obtainAvailableAccountEntitlements(userIds: string[]): Promise<common/LicensingInterfaces.AccountEntitlement[]>;
|
||||
assignExtensionToAllEligibleUsers(extensionId: string): Promise<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
getEligibleUsersForExtension(extensionId: string, options: common/LicensingInterfaces.ExtensionFilterOptions): Promise<string[]>;
|
||||
getExtensionStatusForUsers(extensionId: string): Promise<{ [key: string] : common/LicensingInterfaces.ExtensionAssignmentDetails; }>;
|
||||
assignExtensionToUsers(body: common/LicensingInterfaces.ExtensionAssignment): Promise<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
getExtensionsAssignedToUser(userId: string): Promise<{ [key: string] : common/LicensingInterfaces.LicensingSource; }>;
|
||||
unassignExtensionFromUsers(body: common/LicensingInterfaces.ExtensionAssignment): Promise<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
getExtensionsAssignedToUsers(userIds: string[]): Promise<{ [key: string] : string[]; }>;
|
||||
getExtensionLicenseData(extensionId: string): Promise<common/LicensingInterfaces.ExtensionLicenseData>;
|
||||
registerExtensionLicense(extensionLicenseData: common/LicensingInterfaces.ExtensionLicenseData): Promise<boolean>;
|
||||
computeExtensionRights(ids: string[]): Promise<{ [key: string] : boolean; }>;
|
||||
getExtensionRights(): Promise<common/LicensingInterfaces.ExtensionRightsResult>;
|
||||
getMsdnPresence(): Promise<void>;
|
||||
getEntitlements(): Promise<common/LicensingInterfaces.MsdnEntitlement[]>;
|
||||
getAccountLicensesUsage(): Promise<common/LicensingInterfaces.AccountLicenseUsage[]>;
|
||||
getUsageRights(rightName?: string): Promise<common/LicensingInterfaces.IUsageRight[]>;
|
||||
}
|
||||
|
||||
export class LicensingApi extends basem.ClientApiBase implements ILicensingApi {
|
||||
constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[]) {
|
||||
super(baseUrl, handlers, 'node-Licensing-api');
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getExtensionLicenseUsage(
|
||||
): Promise<common/LicensingInterfaces.AccountLicenseExtensionUsage[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountLicenseExtensionUsage[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Licensing",
|
||||
"01bce8d3-c130-480f-a332-474ae3f6662e",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountLicenseExtensionUsage[]>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.AccountLicenseExtensionUsage[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getCertificate(
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
|
||||
return new Promise<NodeJS.ReadableStream>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"2e0dbce7-a327-4bc0-a291-056139393f6d",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
|
||||
let apiVersion: string = verData.apiVersion;
|
||||
let accept: string = this.createAcceptHeader("application/octet-stream", apiVersion);
|
||||
resolve((await this.http.get(url, { "Accept": accept })).message);
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} rightName
|
||||
* @param {string} productVersion
|
||||
* @param {string} edition
|
||||
* @param {string} relType
|
||||
* @param {boolean} includeCertificate
|
||||
* @param {string} canary
|
||||
* @param {string} machineId
|
||||
*/
|
||||
public async getClientRights(
|
||||
rightName?: string,
|
||||
productVersion?: string,
|
||||
edition?: string,
|
||||
relType?: string,
|
||||
includeCertificate?: boolean,
|
||||
canary?: string,
|
||||
machineId?: string
|
||||
): Promise<common/LicensingInterfaces.ClientRightsContainer> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ClientRightsContainer>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
rightName: rightName
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
productVersion: productVersion,
|
||||
edition: edition,
|
||||
relType: relType,
|
||||
includeCertificate: includeCertificate,
|
||||
canary: canary,
|
||||
machineId: machineId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"643c72da-eaee-4163-9f07-d748ef5c2a0c",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ClientRightsContainer>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.ClientRightsContainer>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign an available entitilement to a user
|
||||
*
|
||||
* @param {string} userId - The user to which to assign the entitilement
|
||||
*/
|
||||
public async assignAvailableAccountEntitlement(
|
||||
userId: string
|
||||
): Promise<common/LicensingInterfaces.AccountEntitlement> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountEntitlement>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
userId: userId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountEntitlement>;
|
||||
res = await this.rest.create<common/LicensingInterfaces.AccountEntitlement>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountEntitlement,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getAccountEntitlement(
|
||||
): Promise<common/LicensingInterfaces.AccountEntitlement> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountEntitlement>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"c01e9fd5-0d8c-4d5e-9a68-734bd8da6a38",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountEntitlement>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.AccountEntitlement>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountEntitlement,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Assign an explicit account entitlement
|
||||
*
|
||||
* @param {common/LicensingInterfaces.AccountEntitlementUpdateModel} body - The update model for the entitlement
|
||||
* @param {string} userId - The id of the user
|
||||
*/
|
||||
public async assignAccountEntitlementForUser(
|
||||
body: common/LicensingInterfaces.AccountEntitlementUpdateModel,
|
||||
userId: string
|
||||
): Promise<common/LicensingInterfaces.AccountEntitlement> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountEntitlement>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"6490e566-b299-49a7-a4e4-28749752581f",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountEntitlement>;
|
||||
res = await this.rest.replace<common/LicensingInterfaces.AccountEntitlement>(url, body, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountEntitlement,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async deleteUserEntitlements(
|
||||
userId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"6490e566-b299-49a7-a4e4-28749752581f",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the entitlements for a user
|
||||
*
|
||||
* @param {string} userId - The id of the user
|
||||
* @param {boolean} determineRights
|
||||
*/
|
||||
public async getAccountEntitlementForUser(
|
||||
userId: string,
|
||||
determineRights?: boolean
|
||||
): Promise<common/LicensingInterfaces.AccountEntitlement> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountEntitlement>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
determineRights: determineRights,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"6490e566-b299-49a7-a4e4-28749752581f",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountEntitlement>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.AccountEntitlement>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountEntitlement,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns AccountEntitlements that are currently assigned to the given list of users in the account
|
||||
*
|
||||
* @param {string[]} userIds - List of user Ids.
|
||||
*/
|
||||
public async obtainAvailableAccountEntitlements(
|
||||
userIds: string[]
|
||||
): Promise<common/LicensingInterfaces.AccountEntitlement[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountEntitlement[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Licensing",
|
||||
"cc3a0130-78ad-4a00-b1ca-49bef42f4656",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountEntitlement[]>;
|
||||
res = await this.rest.create<common/LicensingInterfaces.AccountEntitlement[]>(url, userIds, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountEntitlement,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns the access to the given extension for all eligible users in the account that do not already have access to the extension though bundle or account assignment
|
||||
*
|
||||
* @param {string} extensionId - The extension id to assign the access to.
|
||||
*/
|
||||
public async assignExtensionToAllEligibleUsers(
|
||||
extensionId: string
|
||||
): Promise<common/LicensingInterfaces.ExtensionOperationResult[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ExtensionOperationResult[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
extensionId: extensionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"5434f182-7f32-4135-8326-9340d887c08a",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
res = await this.rest.replace<common/LicensingInterfaces.ExtensionOperationResult[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionOperationResult,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns users that are currently eligible to assign the extension to. the list is filtered based on the value of ExtensionFilterOptions
|
||||
*
|
||||
* @param {string} extensionId - The extension to check the eligibility of the users for.
|
||||
* @param {common/LicensingInterfaces.ExtensionFilterOptions} options - The options to filter the list.
|
||||
*/
|
||||
public async getEligibleUsersForExtension(
|
||||
extensionId: string,
|
||||
options: common/LicensingInterfaces.ExtensionFilterOptions
|
||||
): Promise<string[]> {
|
||||
|
||||
return new Promise<string[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
extensionId: extensionId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
options: options,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"5434f182-7f32-4135-8326-9340d887c08a",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns extension assignment status of all account users for the given extension
|
||||
*
|
||||
* @param {string} extensionId - The extension to check the status of the users for.
|
||||
*/
|
||||
public async getExtensionStatusForUsers(
|
||||
extensionId: string
|
||||
): Promise<{ [key: string] : common/LicensingInterfaces.ExtensionAssignmentDetails; }> {
|
||||
|
||||
return new Promise<{ [key: string] : common/LicensingInterfaces.ExtensionAssignmentDetails; }>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
extensionId: extensionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"5434f182-7f32-4135-8326-9340d887c08a",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<{ [key: string] : common/LicensingInterfaces.ExtensionAssignmentDetails; }>;
|
||||
res = await this.rest.get<{ [key: string] : common/LicensingInterfaces.ExtensionAssignmentDetails; }>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionAssignmentDetails,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Assigns the access to the given extension for a given list of users
|
||||
*
|
||||
* @param {common/LicensingInterfaces.ExtensionAssignment} body - The extension assignment details.
|
||||
*/
|
||||
public async assignExtensionToUsers(
|
||||
body: common/LicensingInterfaces.ExtensionAssignment
|
||||
): Promise<common/LicensingInterfaces.ExtensionOperationResult[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ExtensionOperationResult[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"8cec75ea-044f-4245-ab0d-a82dafcc85ea",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
res = await this.rest.replace<common/LicensingInterfaces.ExtensionOperationResult[]>(url, body, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionOperationResult,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns extensions that are currently assigned to the user in the account
|
||||
*
|
||||
* @param {string} userId - The user's identity id.
|
||||
*/
|
||||
public async getExtensionsAssignedToUser(
|
||||
userId: string
|
||||
): Promise<{ [key: string] : common/LicensingInterfaces.LicensingSource; }> {
|
||||
|
||||
return new Promise<{ [key: string] : common/LicensingInterfaces.LicensingSource; }>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"8cec75ea-044f-4245-ab0d-a82dafcc85ea",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<{ [key: string] : common/LicensingInterfaces.LicensingSource; }>;
|
||||
res = await this.rest.get<{ [key: string] : common/LicensingInterfaces.LicensingSource; }>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.LicensingSource,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Revokes the access to the given extension for a given list of users
|
||||
*
|
||||
* @param {common/LicensingInterfaces.ExtensionAssignment} body - The extension assignment details.
|
||||
*/
|
||||
public async unassignExtensionFromUsers(
|
||||
body: common/LicensingInterfaces.ExtensionAssignment
|
||||
): Promise<common/LicensingInterfaces.ExtensionOperationResult[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ExtensionOperationResult[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"8cec75ea-044f-4245-ab0d-a82dafcc85ea",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ExtensionOperationResult[]>;
|
||||
res = await this.rest.del<common/LicensingInterfaces.ExtensionOperationResult[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionOperationResult,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns extensions that are currently assigned to the given list of users in the account
|
||||
*
|
||||
* @param {string[]} userIds - List of user Ids.
|
||||
*/
|
||||
public async getExtensionsAssignedToUsers(
|
||||
userIds: string[]
|
||||
): Promise<{ [key: string] : string[]; }> {
|
||||
|
||||
return new Promise<{ [key: string] : string[]; }>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Licensing",
|
||||
"1d42ddc2-3e7d-4daa-a0eb-e12c1dbd7c72",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<{ [key: string] : string[]; }>;
|
||||
res = await this.rest.replace<{ [key: string] : string[]; }>(url, userIds, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} extensionId
|
||||
*/
|
||||
public async getExtensionLicenseData(
|
||||
extensionId: string
|
||||
): Promise<common/LicensingInterfaces.ExtensionLicenseData> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ExtensionLicenseData>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
extensionId: extensionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Licensing",
|
||||
"004a420a-7bef-4b7f-8a50-22975d2067cc",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ExtensionLicenseData>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.ExtensionLicenseData>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionLicenseData,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {common/LicensingInterfaces.ExtensionLicenseData} extensionLicenseData
|
||||
*/
|
||||
public async registerExtensionLicense(
|
||||
extensionLicenseData: common/LicensingInterfaces.ExtensionLicenseData
|
||||
): Promise<boolean> {
|
||||
|
||||
return new Promise<boolean>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Licensing",
|
||||
"004a420a-7bef-4b7f-8a50-22975d2067cc",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<boolean>;
|
||||
res = await this.rest.create<boolean>(url, extensionLicenseData, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} ids
|
||||
*/
|
||||
public async computeExtensionRights(
|
||||
ids: string[]
|
||||
): Promise<{ [key: string] : boolean; }> {
|
||||
|
||||
return new Promise<{ [key: string] : boolean; }>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"5f1dbe21-f748-47c7-b5fd-3770c8bc2c08",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<{ [key: string] : boolean; }>;
|
||||
res = await this.rest.create<{ [key: string] : boolean; }>(url, ids, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getExtensionRights(
|
||||
): Promise<common/LicensingInterfaces.ExtensionRightsResult> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.ExtensionRightsResult>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"5f1dbe21-f748-47c7-b5fd-3770c8bc2c08",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.ExtensionRightsResult>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.ExtensionRightsResult>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.ExtensionRightsResult,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getMsdnPresence(
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"69522c3f-eecc-48d0-b333-f69ffb8fa6cc",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.get<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getEntitlements(
|
||||
): Promise<common/LicensingInterfaces.MsdnEntitlement[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.MsdnEntitlement[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"1cc6137e-12d5-4d44-a4f2-765006c9e85d",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.MsdnEntitlement[]>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.MsdnEntitlement[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.MsdnEntitlement,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getAccountLicensesUsage(
|
||||
): Promise<common/LicensingInterfaces.AccountLicenseUsage[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.AccountLicenseUsage[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"d3266b87-d395-4e91-97a5-0215b81a0b7d",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.AccountLicenseUsage[]>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.AccountLicenseUsage[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.AccountLicenseUsage,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} rightName
|
||||
*/
|
||||
public async getUsageRights(
|
||||
rightName?: string
|
||||
): Promise<common/LicensingInterfaces.IUsageRight[]> {
|
||||
|
||||
return new Promise<common/LicensingInterfaces.IUsageRight[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
rightName: rightName
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"licensing",
|
||||
"d09ac573-58fe-4948-af97-793db40a7e16",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<common/LicensingInterfaces.IUsageRight[]>;
|
||||
res = await this.rest.get<common/LicensingInterfaces.IUsageRight[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
common/LicensingInterfaces.TypeInfo.IUsageRight,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -67,7 +67,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<LocationsInterfaces.ConnectionData>;
|
||||
res = await this.rest.get<LocationsInterfaces.ConnectionData>(url, options);
|
||||
|
||||
|
@ -105,7 +106,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<LocationsInterfaces.ResourceAreaInfo>;
|
||||
res = await this.rest.get<LocationsInterfaces.ResourceAreaInfo>(url, options);
|
||||
|
||||
|
@ -140,7 +142,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<LocationsInterfaces.ResourceAreaInfo[]>;
|
||||
res = await this.rest.get<LocationsInterfaces.ResourceAreaInfo[]>(url, options);
|
||||
|
||||
|
@ -181,7 +184,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -229,7 +233,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<LocationsInterfaces.ServiceDefinition>;
|
||||
res = await this.rest.get<LocationsInterfaces.ServiceDefinition>(url, options);
|
||||
|
||||
|
@ -267,7 +272,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<LocationsInterfaces.ServiceDefinition[]>;
|
||||
res = await this.rest.get<LocationsInterfaces.ServiceDefinition[]>(url, options);
|
||||
|
||||
|
@ -304,7 +310,8 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, serviceDefinitions, options);
|
||||
|
||||
|
|
|
@ -22,10 +22,8 @@ import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
|||
export interface INotificationApi extends basem.ClientApiBase {
|
||||
performBatchNotificationOperations(operation: NotificationInterfaces.BatchNotificationOperation): Promise<void>;
|
||||
publishEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
||||
queryEventTypes(inputValuesQuery: NotificationInterfaces.FieldValuesQuery, eventType: string): Promise<NotificationInterfaces.NotificationEventField[]>;
|
||||
getEventType(eventType: string): Promise<NotificationInterfaces.NotificationEventType>;
|
||||
listEventTypes(publisherId?: string): Promise<NotificationInterfaces.NotificationEventType[]>;
|
||||
queryStatistics(statisticsQuery: NotificationInterfaces.NotificationStatisticsQuery): Promise<NotificationInterfaces.NotificationStatistic[]>;
|
||||
querySubscriptions(subscriptionQuery: NotificationInterfaces.SubscriptionQuery): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
||||
createSubscription(createParameters: NotificationInterfaces.NotificationSubscriptionCreateParameters): Promise<NotificationInterfaces.NotificationSubscription>;
|
||||
deleteSubscription(subscriptionId: string): Promise<void>;
|
||||
|
@ -61,7 +59,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, operation, options);
|
||||
|
||||
|
@ -100,7 +99,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.VssNotificationEvent>;
|
||||
res = await this.rest.create<VSSInterfaces.VssNotificationEvent>(url, notificationEvent, options);
|
||||
|
||||
|
@ -117,46 +117,6 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {NotificationInterfaces.FieldValuesQuery} inputValuesQuery
|
||||
* @param {string} eventType
|
||||
*/
|
||||
public async queryEventTypes(
|
||||
inputValuesQuery: NotificationInterfaces.FieldValuesQuery,
|
||||
eventType: string
|
||||
): Promise<NotificationInterfaces.NotificationEventField[]> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationEventField[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
eventType: eventType
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"notification",
|
||||
"b5bbdd21-c178-4398-b6db-0166d910028a",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationEventField[]>;
|
||||
res = await this.rest.create<NotificationInterfaces.NotificationEventField[]>(url, inputValuesQuery, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a specific event type.
|
||||
*
|
||||
|
@ -180,7 +140,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationEventType>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationEventType>(url, options);
|
||||
|
||||
|
@ -198,9 +159,9 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* List available event types for this service. Optionally filter by event types for the specified publisher.
|
||||
* List available event types for this service. Optionally filter by only event types for the specified publisher.
|
||||
*
|
||||
* @param {string} publisherId
|
||||
* @param {string} publisherId - Limit to event types for this publisher
|
||||
*/
|
||||
public async listEventTypes(
|
||||
publisherId?: string
|
||||
|
@ -224,7 +185,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationEventType[]>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationEventType[]>(url, options);
|
||||
|
||||
|
@ -242,44 +204,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {NotificationInterfaces.NotificationStatisticsQuery} statisticsQuery
|
||||
*/
|
||||
public async queryStatistics(
|
||||
statisticsQuery: NotificationInterfaces.NotificationStatisticsQuery
|
||||
): Promise<NotificationInterfaces.NotificationStatistic[]> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationStatistic[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"notification",
|
||||
"77878ce9-6391-49af-aa9d-768ac784461f",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationStatistic[]>;
|
||||
res = await this.rest.create<NotificationInterfaces.NotificationStatistic[]>(url, statisticsQuery, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.NotificationStatistic,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Query for notification subscriptions.
|
||||
* Query for subscriptions. A subscription is returned if it matches one or more of the specified conditions.
|
||||
*
|
||||
* @param {NotificationInterfaces.SubscriptionQuery} subscriptionQuery
|
||||
*/
|
||||
|
@ -300,7 +225,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscription[]>;
|
||||
res = await this.rest.create<NotificationInterfaces.NotificationSubscription[]>(url, subscriptionQuery, options);
|
||||
|
||||
|
@ -318,7 +244,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Create a notification subscription.
|
||||
* Create a new subscription.
|
||||
*
|
||||
* @param {NotificationInterfaces.NotificationSubscriptionCreateParameters} createParameters
|
||||
*/
|
||||
|
@ -339,7 +265,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscription>;
|
||||
res = await this.rest.create<NotificationInterfaces.NotificationSubscription>(url, createParameters, options);
|
||||
|
||||
|
@ -357,7 +284,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Delete a notification subscription.
|
||||
* Delete a subscription.
|
||||
*
|
||||
* @param {string} subscriptionId
|
||||
*/
|
||||
|
@ -379,7 +306,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -397,7 +325,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Get a notification subscription.
|
||||
* Get a notification subscription by its ID.
|
||||
*
|
||||
* @param {string} subscriptionId
|
||||
* @param {NotificationInterfaces.SubscriptionQueryFlags} queryFlags
|
||||
|
@ -426,7 +354,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscription>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationSubscription>(url, options);
|
||||
|
||||
|
@ -444,7 +373,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Get a list of subscriptions for the specified subscriber. If no subscriber is specified, subscriptions for the calling user are returned.
|
||||
* Get a list of subscriptions. If no subscriber is specified, subscriptions for the calling user are returned.
|
||||
*
|
||||
* @param {string} subscriber
|
||||
* @param {NotificationInterfaces.SubscriptionQueryFlags} queryFlags
|
||||
|
@ -473,7 +402,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscription[]>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationSubscription[]>(url, options);
|
||||
|
||||
|
@ -491,7 +421,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Update an existing notification subscription.
|
||||
* Update an existing subscription. Depending on the type of subscription and permissions, the caller can update the description, filter settings, channel (delivery) settings and more.
|
||||
*
|
||||
* @param {NotificationInterfaces.NotificationSubscriptionUpdateParameters} updateParameters
|
||||
* @param {string} subscriptionId
|
||||
|
@ -515,7 +445,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscription>;
|
||||
res = await this.rest.update<NotificationInterfaces.NotificationSubscription>(url, updateParameters, options);
|
||||
|
||||
|
@ -550,7 +481,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationSubscriptionTemplate[]>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationSubscriptionTemplate[]>(url, options);
|
||||
|
||||
|
@ -568,9 +500,11 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* Update the specified users' settings for the specified subscription. User settings can only be applied to shared subscriptions, like team subscriptions or default subscriptions. This API is typically used to opt in or out of a shared subscription.
|
||||
*
|
||||
* @param {NotificationInterfaces.SubscriptionUserSettings} userSettings
|
||||
* @param {string} subscriptionId
|
||||
* @param {string} userId
|
||||
* @param {string} userId - ID of the user or "me" to indicate the calling user
|
||||
*/
|
||||
public async updateSubscriptionUserSettings(
|
||||
userSettings: NotificationInterfaces.SubscriptionUserSettings,
|
||||
|
@ -593,7 +527,8 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.SubscriptionUserSettings>;
|
||||
res = await this.rest.replace<NotificationInterfaces.SubscriptionUserSettings>(url, userSettings, options);
|
||||
|
||||
|
|
|
@ -64,7 +64,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration>;
|
||||
res = await this.rest.create<PolicyInterfaces.PolicyConfiguration>(url, configuration, options);
|
||||
|
||||
|
@ -105,7 +106,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -146,7 +148,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyConfiguration>(url, options);
|
||||
|
||||
|
@ -184,7 +187,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration[]>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyConfiguration[]>(url, options);
|
||||
|
||||
|
@ -227,7 +231,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration>;
|
||||
res = await this.rest.replace<PolicyInterfaces.PolicyConfiguration>(url, configuration, options);
|
||||
|
||||
|
@ -268,7 +273,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyEvaluationRecord>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyEvaluationRecord>(url, options);
|
||||
|
||||
|
@ -309,7 +315,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyEvaluationRecord>;
|
||||
res = await this.rest.update<PolicyInterfaces.PolicyEvaluationRecord>(url, options);
|
||||
|
||||
|
@ -363,7 +370,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyEvaluationRecord[]>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyEvaluationRecord[]>(url, options);
|
||||
|
||||
|
@ -407,7 +415,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyConfiguration>(url, options);
|
||||
|
||||
|
@ -458,7 +467,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyConfiguration[]>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyConfiguration[]>(url, options);
|
||||
|
||||
|
@ -499,7 +509,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyType>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyType>(url, options);
|
||||
|
||||
|
@ -537,7 +548,8 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyType[]>;
|
||||
res = await this.rest.get<PolicyInterfaces.PolicyType[]>(url, options);
|
||||
|
||||
|
|
|
@ -0,0 +1,799 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
||||
import ProfileInterfaces = require("./interfaces/ProfileInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
||||
export interface IProfileApi extends basem.ClientApiBase {
|
||||
deleteProfileAttribute(id: string, descriptor: string): Promise<void>;
|
||||
getProfileAttribute(id: string, descriptor: string): Promise<ProfileInterfaces.ProfileAttribute>;
|
||||
getProfileAttributes(id: string, partition: string, modifiedSince?: string, modifiedAfterRevision?: string, withCoreAttributes?: boolean, coreAttributes?: string): Promise<ProfileInterfaces.ProfileAttribute[]>;
|
||||
setProfileAttribute(container: any, id: string, descriptor: string): Promise<void>;
|
||||
setProfileAttributes(attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV<ProfileInterfaces.ProfileAttributeBase<any>[]>, id: string): Promise<void>;
|
||||
getAvatar(id: string, size?: string, format?: string): Promise<ProfileInterfaces.Avatar>;
|
||||
getAvatarPreview(container: any, id: string, size?: string, format?: string, displayName?: string): Promise<ProfileInterfaces.Avatar>;
|
||||
resetAvatar(id: string): Promise<void>;
|
||||
setAvatar(container: any, id: string): Promise<void>;
|
||||
getGeoRegion(ipaddress: string): Promise<ProfileInterfaces.GeoRegion>;
|
||||
createProfile(createProfileContext: ProfileInterfaces.CreateProfileContext, autoCreate?: boolean): Promise<ProfileInterfaces.Profile>;
|
||||
getProfile(id: string, details?: boolean, withAttributes?: boolean, partition?: string, coreAttributes?: string, forceRefresh?: boolean): Promise<ProfileInterfaces.Profile>;
|
||||
updateProfile(profile: ProfileInterfaces.Profile, id: string): Promise<void>;
|
||||
getRegions(): Promise<ProfileInterfaces.ProfileRegions>;
|
||||
getSupportedLcids(): Promise<string[]>;
|
||||
getUserDefaults(includeAvatar?: boolean): Promise<ProfileInterfaces.Profile>;
|
||||
refreshUserDefaults(id: string): Promise<ProfileInterfaces.Profile>;
|
||||
}
|
||||
|
||||
export class ProfileApi extends basem.ClientApiBase implements IProfileApi {
|
||||
constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[]) {
|
||||
super(baseUrl, handlers, 'node-Profile-api');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} descriptor
|
||||
*/
|
||||
public async deleteProfileAttribute(
|
||||
id: string,
|
||||
descriptor: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
descriptor: descriptor,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"Profile",
|
||||
"1392b6ac-d511-492e-af5b-2263e5545a5d",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} descriptor
|
||||
*/
|
||||
public async getProfileAttribute(
|
||||
id: string,
|
||||
descriptor: string
|
||||
): Promise<ProfileInterfaces.ProfileAttribute> {
|
||||
|
||||
return new Promise<ProfileInterfaces.ProfileAttribute>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
descriptor: descriptor,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"Profile",
|
||||
"1392b6ac-d511-492e-af5b-2263e5545a5d",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.ProfileAttribute>;
|
||||
res = await this.rest.get<ProfileInterfaces.ProfileAttribute>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.ProfileAttribute,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} partition
|
||||
* @param {string} modifiedSince
|
||||
* @param {string} modifiedAfterRevision
|
||||
* @param {boolean} withCoreAttributes
|
||||
* @param {string} coreAttributes
|
||||
*/
|
||||
public async getProfileAttributes(
|
||||
id: string,
|
||||
partition: string,
|
||||
modifiedSince?: string,
|
||||
modifiedAfterRevision?: string,
|
||||
withCoreAttributes?: boolean,
|
||||
coreAttributes?: string
|
||||
): Promise<ProfileInterfaces.ProfileAttribute[]> {
|
||||
|
||||
return new Promise<ProfileInterfaces.ProfileAttribute[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
partition: partition,
|
||||
modifiedSince: modifiedSince,
|
||||
modifiedAfterRevision: modifiedAfterRevision,
|
||||
withCoreAttributes: withCoreAttributes,
|
||||
coreAttributes: coreAttributes,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"Profile",
|
||||
"1392b6ac-d511-492e-af5b-2263e5545a5d",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.ProfileAttribute[]>;
|
||||
res = await this.rest.get<ProfileInterfaces.ProfileAttribute[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.ProfileAttribute,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} container
|
||||
* @param {string} id
|
||||
* @param {string} descriptor
|
||||
*/
|
||||
public async setProfileAttribute(
|
||||
container: any,
|
||||
id: string,
|
||||
descriptor: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
descriptor: descriptor,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"Profile",
|
||||
"1392b6ac-d511-492e-af5b-2263e5545a5d",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.replace<void>(url, container, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {VSSInterfaces.VssJsonCollectionWrapperV<ProfileInterfaces.ProfileAttributeBase<any>[]>} attributesCollection
|
||||
* @param {string} id
|
||||
*/
|
||||
public async setProfileAttributes(
|
||||
attributesCollection: VSSInterfaces.VssJsonCollectionWrapperV<ProfileInterfaces.ProfileAttributeBase<any>[]>,
|
||||
id: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"Profile",
|
||||
"1392b6ac-d511-492e-af5b-2263e5545a5d",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, attributesCollection, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {string} size
|
||||
* @param {string} format
|
||||
*/
|
||||
public async getAvatar(
|
||||
id: string,
|
||||
size?: string,
|
||||
format?: string
|
||||
): Promise<ProfileInterfaces.Avatar> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Avatar>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
size: size,
|
||||
format: format,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"67436615-b382-462a-b659-5367a492fb3c",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Avatar>;
|
||||
res = await this.rest.get<ProfileInterfaces.Avatar>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Avatar,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} container
|
||||
* @param {string} id
|
||||
* @param {string} size
|
||||
* @param {string} format
|
||||
* @param {string} displayName
|
||||
*/
|
||||
public async getAvatarPreview(
|
||||
container: any,
|
||||
id: string,
|
||||
size?: string,
|
||||
format?: string,
|
||||
displayName?: string
|
||||
): Promise<ProfileInterfaces.Avatar> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Avatar>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
size: size,
|
||||
format: format,
|
||||
displayName: displayName,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"67436615-b382-462a-b659-5367a492fb3c",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Avatar>;
|
||||
res = await this.rest.create<ProfileInterfaces.Avatar>(url, container, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Avatar,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
*/
|
||||
public async resetAvatar(
|
||||
id: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"67436615-b382-462a-b659-5367a492fb3c",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} container
|
||||
* @param {string} id
|
||||
*/
|
||||
public async setAvatar(
|
||||
container: any,
|
||||
id: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"67436615-b382-462a-b659-5367a492fb3c",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.replace<void>(url, container, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Lookup up country/region based on provided IPv4, null if using the remote IPv4 address.
|
||||
*
|
||||
* @param {string} ipaddress - IPv4 address to be used for reverse lookup, null if using RemoteIPAddress in request context
|
||||
*/
|
||||
public async getGeoRegion(
|
||||
ipaddress: string
|
||||
): Promise<ProfileInterfaces.GeoRegion> {
|
||||
|
||||
return new Promise<ProfileInterfaces.GeoRegion>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
ipaddress: ipaddress,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"3bcda9c0-3078-48a5-a1e0-83bd05931ad0",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.GeoRegion>;
|
||||
res = await this.rest.get<ProfileInterfaces.GeoRegion>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Create profile
|
||||
*
|
||||
* @param {ProfileInterfaces.CreateProfileContext} createProfileContext - Context for profile creation
|
||||
* @param {boolean} autoCreate - Create profile automatically
|
||||
*/
|
||||
public async createProfile(
|
||||
createProfileContext: ProfileInterfaces.CreateProfileContext,
|
||||
autoCreate?: boolean
|
||||
): Promise<ProfileInterfaces.Profile> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Profile>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
autoCreate: autoCreate,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.3",
|
||||
"Profile",
|
||||
"f83735dc-483f-4238-a291-d45f6080a9af",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Profile>;
|
||||
res = await this.rest.create<ProfileInterfaces.Profile>(url, createProfileContext, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Profile,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
* @param {boolean} details
|
||||
* @param {boolean} withAttributes
|
||||
* @param {string} partition
|
||||
* @param {string} coreAttributes
|
||||
* @param {boolean} forceRefresh
|
||||
*/
|
||||
public async getProfile(
|
||||
id: string,
|
||||
details?: boolean,
|
||||
withAttributes?: boolean,
|
||||
partition?: string,
|
||||
coreAttributes?: string,
|
||||
forceRefresh?: boolean
|
||||
): Promise<ProfileInterfaces.Profile> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Profile>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
details: details,
|
||||
withAttributes: withAttributes,
|
||||
partition: partition,
|
||||
coreAttributes: coreAttributes,
|
||||
forceRefresh: forceRefresh,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.3",
|
||||
"Profile",
|
||||
"f83735dc-483f-4238-a291-d45f6080a9af",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Profile>;
|
||||
res = await this.rest.get<ProfileInterfaces.Profile>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Profile,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Update profile
|
||||
*
|
||||
* @param {ProfileInterfaces.Profile} profile - Update profile
|
||||
* @param {string} id - Profile ID
|
||||
*/
|
||||
public async updateProfile(
|
||||
profile: ProfileInterfaces.Profile,
|
||||
id: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.3",
|
||||
"Profile",
|
||||
"f83735dc-483f-4238-a291-d45f6080a9af",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, profile, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getRegions(
|
||||
): Promise<ProfileInterfaces.ProfileRegions> {
|
||||
|
||||
return new Promise<ProfileInterfaces.ProfileRegions>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"92d8d1c9-26b8-4774-a929-d640a73da524",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.ProfileRegions>;
|
||||
res = await this.rest.get<ProfileInterfaces.ProfileRegions>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getSupportedLcids(
|
||||
): Promise<string[]> {
|
||||
|
||||
return new Promise<string[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"d5bd1aa6-c269-4bcd-ad32-75fa17475584",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {boolean} includeAvatar
|
||||
*/
|
||||
public async getUserDefaults(
|
||||
includeAvatar?: boolean
|
||||
): Promise<ProfileInterfaces.Profile> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Profile>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeAvatar: includeAvatar,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"b583a356-1da7-4237-9f4c-1deb2edbc7e8",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Profile>;
|
||||
res = await this.rest.get<ProfileInterfaces.Profile>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Profile,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} id
|
||||
*/
|
||||
public async refreshUserDefaults(
|
||||
id: string
|
||||
): Promise<ProfileInterfaces.Profile> {
|
||||
|
||||
return new Promise<ProfileInterfaces.Profile>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
id: id
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Profile",
|
||||
"b583a356-1da7-4237-9f4c-1deb2edbc7e8",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<ProfileInterfaces.Profile>;
|
||||
res = await this.rest.replace<ProfileInterfaces.Profile>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ProfileInterfaces.TypeInfo.Profile,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -35,7 +35,7 @@ export interface IReleaseApi extends basem.ClientApiBase {
|
|||
getReleaseDefinitions(project: string, searchText?: string, expand?: ReleaseInterfaces.ReleaseDefinitionExpands, artifactType?: string, artifactSourceId?: string, top?: number, continuationToken?: string, queryOrder?: ReleaseInterfaces.ReleaseDefinitionQueryOrder, path?: string, isExactNameMatch?: boolean, tagFilter?: string[], propertyFilters?: string[]): Promise<ReleaseInterfaces.ReleaseDefinition[]>;
|
||||
getReleaseDefinitionsForArtifactSource(project: string, artifactType: string, artifactSourceId: string, expand?: ReleaseInterfaces.ReleaseDefinitionExpands): Promise<ReleaseInterfaces.ReleaseDefinition[]>;
|
||||
updateReleaseDefinition(releaseDefinition: ReleaseInterfaces.ReleaseDefinition, project: string): Promise<ReleaseInterfaces.ReleaseDefinition>;
|
||||
getDeployments(project: string, definitionId?: number, definitionEnvironmentId?: number, createdBy?: string, minModifiedTime?: Date, maxModifiedTime?: Date, deploymentStatus?: ReleaseInterfaces.DeploymentStatus, operationStatus?: ReleaseInterfaces.DeploymentOperationStatus, latestAttemptsOnly?: boolean, queryOrder?: ReleaseInterfaces.ReleaseQueryOrder, top?: number, continuationToken?: number): Promise<ReleaseInterfaces.Deployment[]>;
|
||||
getDeployments(project: string, definitionId?: number, definitionEnvironmentId?: number, createdBy?: string, minModifiedTime?: Date, maxModifiedTime?: Date, deploymentStatus?: ReleaseInterfaces.DeploymentStatus, operationStatus?: ReleaseInterfaces.DeploymentOperationStatus, latestAttemptsOnly?: boolean, queryOrder?: ReleaseInterfaces.ReleaseQueryOrder, top?: number, continuationToken?: number, createdFor?: string): Promise<ReleaseInterfaces.Deployment[]>;
|
||||
getDeploymentsForMultipleEnvironments(queryParameters: ReleaseInterfaces.DeploymentQueryParameters, project: string): Promise<ReleaseInterfaces.Deployment[]>;
|
||||
getReleaseEnvironment(project: string, releaseId: number, environmentId: number): Promise<ReleaseInterfaces.ReleaseEnvironment>;
|
||||
updateReleaseEnvironment(environmentUpdateData: ReleaseInterfaces.ReleaseEnvironmentUpdateMetadata, project: string, releaseId: number, environmentId: number): Promise<ReleaseInterfaces.ReleaseEnvironment>;
|
||||
|
@ -52,8 +52,6 @@ export interface IReleaseApi extends basem.ClientApiBase {
|
|||
updateFolder(folder: ReleaseInterfaces.Folder, project: string, path: string): Promise<ReleaseInterfaces.Folder>;
|
||||
getReleaseHistory(project: string, releaseId: number): Promise<ReleaseInterfaces.ReleaseRevision[]>;
|
||||
getInputValues(query: FormInputInterfaces.InputValuesQuery, project: string): Promise<FormInputInterfaces.InputValuesQuery>;
|
||||
getIPAddress(): Promise<string>;
|
||||
getSupportedIPDetectionMethods(ipDetectionMethods: string): Promise<string[]>;
|
||||
getLog(project: string, releaseId: number, environmentId: number, taskId: number, attemptId?: number): Promise<NodeJS.ReadableStream>;
|
||||
getLogs(project: string, releaseId: number): Promise<NodeJS.ReadableStream>;
|
||||
getTaskLog(project: string, releaseId: number, environmentId: number, releaseDeployPhaseId: number, taskId: number): Promise<NodeJS.ReadableStream>;
|
||||
|
@ -126,7 +124,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.AgentArtifactDefinition[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.AgentArtifactDefinition[]>(url, options);
|
||||
|
||||
|
@ -167,7 +166,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseApproval>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseApproval>(url, options);
|
||||
|
||||
|
@ -215,7 +215,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseApproval>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseApproval>(url, options);
|
||||
|
||||
|
@ -258,7 +259,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseApproval>;
|
||||
res = await this.rest.update<ReleaseInterfaces.ReleaseApproval>(url, approval, options);
|
||||
|
||||
|
@ -324,7 +326,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseApproval[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseApproval[]>(url, options);
|
||||
|
||||
|
@ -375,7 +378,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Change[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Change[]>(url, options);
|
||||
|
||||
|
@ -415,7 +419,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.create<string>(url, configData, options);
|
||||
|
||||
|
@ -460,7 +465,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.DefinitionEnvironmentReference[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.DefinitionEnvironmentReference[]>(url, options);
|
||||
|
||||
|
@ -500,7 +506,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinition>;
|
||||
res = await this.rest.create<ReleaseInterfaces.ReleaseDefinition>(url, releaseDefinition, options);
|
||||
|
||||
|
@ -541,7 +548,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -589,7 +597,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinition>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinition>(url, options);
|
||||
|
||||
|
@ -705,7 +714,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinition[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinition[]>(url, options);
|
||||
|
||||
|
@ -756,7 +766,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinition[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinition[]>(url, options);
|
||||
|
||||
|
@ -796,7 +807,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinition>;
|
||||
res = await this.rest.replace<ReleaseInterfaces.ReleaseDefinition>(url, releaseDefinition, options);
|
||||
|
||||
|
@ -826,6 +838,7 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
* @param {ReleaseInterfaces.ReleaseQueryOrder} queryOrder
|
||||
* @param {number} top
|
||||
* @param {number} continuationToken
|
||||
* @param {string} createdFor
|
||||
*/
|
||||
public async getDeployments(
|
||||
project: string,
|
||||
|
@ -839,7 +852,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
latestAttemptsOnly?: boolean,
|
||||
queryOrder?: ReleaseInterfaces.ReleaseQueryOrder,
|
||||
top?: number,
|
||||
continuationToken?: number
|
||||
continuationToken?: number,
|
||||
createdFor?: string
|
||||
): Promise<ReleaseInterfaces.Deployment[]> {
|
||||
|
||||
return new Promise<ReleaseInterfaces.Deployment[]>(async (resolve, reject) => {
|
||||
|
@ -859,6 +873,7 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
queryOrder: queryOrder,
|
||||
'$top': top,
|
||||
continuationToken: continuationToken,
|
||||
createdFor: createdFor,
|
||||
};
|
||||
|
||||
try {
|
||||
|
@ -871,7 +886,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Deployment[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Deployment[]>(url, options);
|
||||
|
||||
|
@ -911,7 +927,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Deployment[]>;
|
||||
res = await this.rest.create<ReleaseInterfaces.Deployment[]>(url, queryParameters, options);
|
||||
|
||||
|
@ -955,7 +972,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseEnvironment>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseEnvironment>(url, options);
|
||||
|
||||
|
@ -1001,7 +1019,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseEnvironment>;
|
||||
res = await this.rest.update<ReleaseInterfaces.ReleaseEnvironment>(url, environmentUpdateData, options);
|
||||
|
||||
|
@ -1041,7 +1060,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate>;
|
||||
res = await this.rest.create<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate>(url, template, options);
|
||||
|
||||
|
@ -1086,7 +1106,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1131,7 +1152,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate>(url, options);
|
||||
|
||||
|
@ -1169,7 +1191,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinitionEnvironmentTemplate[]>(url, options);
|
||||
|
||||
|
@ -1219,7 +1242,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.FavoriteItem[]>;
|
||||
res = await this.rest.create<ReleaseInterfaces.FavoriteItem[]>(url, favoriteItems, options);
|
||||
|
||||
|
@ -1270,7 +1294,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1318,7 +1343,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.FavoriteItem[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.FavoriteItem[]>(url, options);
|
||||
|
||||
|
@ -1363,7 +1389,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Folder>;
|
||||
res = await this.rest.create<ReleaseInterfaces.Folder>(url, folder, options);
|
||||
|
||||
|
@ -1406,7 +1433,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1456,7 +1484,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Folder[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Folder[]>(url, options);
|
||||
|
||||
|
@ -1501,7 +1530,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Folder>;
|
||||
res = await this.rest.update<ReleaseInterfaces.Folder>(url, folder, options);
|
||||
|
||||
|
@ -1542,7 +1572,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseRevision[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseRevision[]>(url, options);
|
||||
|
||||
|
@ -1582,7 +1613,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<FormInputInterfaces.InputValuesQuery>;
|
||||
res = await this.rest.create<FormInputInterfaces.InputValuesQuery>(url, query, options);
|
||||
|
||||
|
@ -1599,81 +1631,6 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getIPAddress(
|
||||
): Promise<string> {
|
||||
|
||||
return new Promise<string>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Release",
|
||||
"0208d263-120f-478c-91e8-fe0d27b1abf1",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets supported IP detection methods for request source
|
||||
*
|
||||
* @param {string} ipDetectionMethods
|
||||
*/
|
||||
public async getSupportedIPDetectionMethods(
|
||||
ipDetectionMethods: string
|
||||
): Promise<string[]> {
|
||||
|
||||
return new Promise<string[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
ipDetectionMethods: ipDetectionMethods
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"Release",
|
||||
"0208d263-120f-478c-91e8-fe0d27b1abf1",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {number} releaseId
|
||||
|
@ -1825,7 +1782,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ManualIntervention>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ManualIntervention>(url, options);
|
||||
|
||||
|
@ -1866,7 +1824,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ManualIntervention[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ManualIntervention[]>(url, options);
|
||||
|
||||
|
@ -1912,7 +1871,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ManualIntervention>;
|
||||
res = await this.rest.update<ReleaseInterfaces.ManualIntervention>(url, manualInterventionUpdateMetadata, options);
|
||||
|
||||
|
@ -1957,7 +1917,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Metric[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Metric[]>(url, options);
|
||||
|
||||
|
@ -2002,7 +1963,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ProjectReference[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ProjectReference[]>(url, options);
|
||||
|
||||
|
@ -2101,7 +2063,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Release[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Release[]>(url, options);
|
||||
|
||||
|
@ -2141,7 +2104,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Release>;
|
||||
res = await this.rest.create<ReleaseInterfaces.Release>(url, releaseStartMetadata, options);
|
||||
|
||||
|
@ -2189,7 +2153,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2240,7 +2205,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Release>;
|
||||
res = await this.rest.get<ReleaseInterfaces.Release>(url, options);
|
||||
|
||||
|
@ -2294,7 +2260,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinitionSummary>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinitionSummary>(url, options);
|
||||
|
||||
|
@ -2383,7 +2350,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.replace<void>(url, options);
|
||||
|
||||
|
@ -2426,7 +2394,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Release>;
|
||||
res = await this.rest.replace<ReleaseInterfaces.Release>(url, release, options);
|
||||
|
||||
|
@ -2469,7 +2438,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.Release>;
|
||||
res = await this.rest.update<ReleaseInterfaces.Release>(url, releaseUpdateMetadata, options);
|
||||
|
||||
|
@ -2507,7 +2477,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseSettings>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseSettings>(url, options);
|
||||
|
||||
|
@ -2549,7 +2520,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseSettings>;
|
||||
res = await this.rest.replace<ReleaseInterfaces.ReleaseSettings>(url, releaseSettings, options);
|
||||
|
||||
|
@ -2627,7 +2599,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseDefinitionRevision[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseDefinitionRevision[]>(url, options);
|
||||
|
||||
|
@ -2668,7 +2641,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.SummaryMailSection[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.SummaryMailSection[]>(url, options);
|
||||
|
||||
|
@ -2711,7 +2685,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, mailMessage, options);
|
||||
|
||||
|
@ -2752,7 +2727,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -2798,7 +2774,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.update<string[]>(url, options);
|
||||
|
||||
|
@ -2843,7 +2820,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, tags, options);
|
||||
|
||||
|
@ -2889,7 +2867,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.del<string[]>(url, options);
|
||||
|
||||
|
@ -2932,7 +2911,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -2978,7 +2958,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.update<string[]>(url, options);
|
||||
|
||||
|
@ -3023,7 +3004,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, tags, options);
|
||||
|
||||
|
@ -3069,7 +3051,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.del<string[]>(url, options);
|
||||
|
||||
|
@ -3112,7 +3095,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -3150,7 +3134,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -3201,7 +3186,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseTask[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseTask[]>(url, options);
|
||||
|
||||
|
@ -3248,7 +3234,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseTask[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseTask[]>(url, options);
|
||||
|
||||
|
@ -3286,7 +3273,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ArtifactTypeDefinition[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ArtifactTypeDefinition[]>(url, options);
|
||||
|
||||
|
@ -3331,7 +3319,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ArtifactVersionQueryResult>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ArtifactVersionQueryResult>(url, options);
|
||||
|
||||
|
@ -3371,7 +3360,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ArtifactVersionQueryResult>;
|
||||
res = await this.rest.create<ReleaseInterfaces.ArtifactVersionQueryResult>(url, artifacts, options);
|
||||
|
||||
|
@ -3422,7 +3412,8 @@ export class ReleaseApi extends basem.ClientApiBase implements IReleaseApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ReleaseInterfaces.ReleaseWorkItemRef[]>;
|
||||
res = await this.rest.get<ReleaseInterfaces.ReleaseWorkItemRef[]>(url, options);
|
||||
|
||||
|
|
|
@ -0,0 +1,290 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
||||
import SecurityRolesInterfaces = require("./interfaces/SecurityRolesInterfaces");
|
||||
|
||||
export interface ISecurityRolesApi extends basem.ClientApiBase {
|
||||
getRoleAssignments(scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
||||
removeRoleAssignment(scopeId: string, resourceId: string, identityId: string): Promise<void>;
|
||||
removeRoleAssignments(identityIds: string[], scopeId: string, resourceId: string): Promise<void>;
|
||||
setRoleAssignment(roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef, scopeId: string, resourceId: string, identityId: string): Promise<SecurityRolesInterfaces.RoleAssignment>;
|
||||
setRoleAssignments(roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[], scopeId: string, resourceId: string): Promise<SecurityRolesInterfaces.RoleAssignment[]>;
|
||||
getRoleDefinitions(scopeId: string): Promise<SecurityRolesInterfaces.SecurityRole[]>;
|
||||
}
|
||||
|
||||
export class SecurityRolesApi extends basem.ClientApiBase implements ISecurityRolesApi {
|
||||
constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[]) {
|
||||
super(baseUrl, handlers, 'node-SecurityRoles-api');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} scopeId
|
||||
* @param {string} resourceId
|
||||
*/
|
||||
public async getRoleAssignments(
|
||||
scopeId: string,
|
||||
resourceId: string
|
||||
): Promise<SecurityRolesInterfaces.RoleAssignment[]> {
|
||||
|
||||
return new Promise<SecurityRolesInterfaces.RoleAssignment[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId,
|
||||
resourceId: resourceId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"9461c234-c84c-4ed2-b918-2f0f92ad0a35",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<SecurityRolesInterfaces.RoleAssignment[]>;
|
||||
res = await this.rest.get<SecurityRolesInterfaces.RoleAssignment[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
SecurityRolesInterfaces.TypeInfo.RoleAssignment,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} scopeId
|
||||
* @param {string} resourceId
|
||||
* @param {string} identityId
|
||||
*/
|
||||
public async removeRoleAssignment(
|
||||
scopeId: string,
|
||||
resourceId: string,
|
||||
identityId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId,
|
||||
resourceId: resourceId,
|
||||
identityId: identityId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"9461c234-c84c-4ed2-b918-2f0f92ad0a35",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string[]} identityIds
|
||||
* @param {string} scopeId
|
||||
* @param {string} resourceId
|
||||
*/
|
||||
public async removeRoleAssignments(
|
||||
identityIds: string[],
|
||||
scopeId: string,
|
||||
resourceId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId,
|
||||
resourceId: resourceId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"9461c234-c84c-4ed2-b918-2f0f92ad0a35",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.update<void>(url, identityIds, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {SecurityRolesInterfaces.UserRoleAssignmentRef} roleAssignment
|
||||
* @param {string} scopeId
|
||||
* @param {string} resourceId
|
||||
* @param {string} identityId
|
||||
*/
|
||||
public async setRoleAssignment(
|
||||
roleAssignment: SecurityRolesInterfaces.UserRoleAssignmentRef,
|
||||
scopeId: string,
|
||||
resourceId: string,
|
||||
identityId: string
|
||||
): Promise<SecurityRolesInterfaces.RoleAssignment> {
|
||||
|
||||
return new Promise<SecurityRolesInterfaces.RoleAssignment>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId,
|
||||
resourceId: resourceId,
|
||||
identityId: identityId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"9461c234-c84c-4ed2-b918-2f0f92ad0a35",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<SecurityRolesInterfaces.RoleAssignment>;
|
||||
res = await this.rest.replace<SecurityRolesInterfaces.RoleAssignment>(url, roleAssignment, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
SecurityRolesInterfaces.TypeInfo.RoleAssignment,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {SecurityRolesInterfaces.UserRoleAssignmentRef[]} roleAssignments
|
||||
* @param {string} scopeId
|
||||
* @param {string} resourceId
|
||||
*/
|
||||
public async setRoleAssignments(
|
||||
roleAssignments: SecurityRolesInterfaces.UserRoleAssignmentRef[],
|
||||
scopeId: string,
|
||||
resourceId: string
|
||||
): Promise<SecurityRolesInterfaces.RoleAssignment[]> {
|
||||
|
||||
return new Promise<SecurityRolesInterfaces.RoleAssignment[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId,
|
||||
resourceId: resourceId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"9461c234-c84c-4ed2-b918-2f0f92ad0a35",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<SecurityRolesInterfaces.RoleAssignment[]>;
|
||||
res = await this.rest.replace<SecurityRolesInterfaces.RoleAssignment[]>(url, roleAssignments, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
SecurityRolesInterfaces.TypeInfo.RoleAssignment,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} scopeId
|
||||
*/
|
||||
public async getRoleDefinitions(
|
||||
scopeId: string
|
||||
): Promise<SecurityRolesInterfaces.SecurityRole[]> {
|
||||
|
||||
return new Promise<SecurityRolesInterfaces.SecurityRole[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeId: scopeId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"securityroles",
|
||||
"f4cc9a86-453c-48d2-b44d-d3bd5c105f4f",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<SecurityRolesInterfaces.SecurityRole[]>;
|
||||
res = await this.rest.get<SecurityRolesInterfaces.SecurityRole[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
|
@ -66,7 +66,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.ConsumerAction>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.ConsumerAction>(url, options);
|
||||
|
||||
|
@ -104,7 +105,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.ConsumerAction[]>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.ConsumerAction[]>(url, options);
|
||||
|
||||
|
@ -142,7 +144,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Consumer>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Consumer>(url, options);
|
||||
|
||||
|
@ -177,7 +180,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Consumer[]>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Consumer[]>(url, options);
|
||||
|
||||
|
@ -214,7 +218,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, eventsRequestData, options);
|
||||
|
||||
|
@ -251,7 +256,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.SubscriptionInputValuesQuery>;
|
||||
res = await this.rest.create<ServiceHooksInterfaces.SubscriptionInputValuesQuery>(url, inputValuesQuery, options);
|
||||
|
||||
|
@ -292,7 +298,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Notification>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Notification>(url, options);
|
||||
|
||||
|
@ -343,7 +350,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Notification[]>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Notification[]>(url, options);
|
||||
|
||||
|
@ -380,7 +388,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.NotificationsQuery>;
|
||||
res = await this.rest.create<ServiceHooksInterfaces.NotificationsQuery>(url, query, options);
|
||||
|
||||
|
@ -417,7 +426,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Subscription>;
|
||||
res = await this.rest.create<ServiceHooksInterfaces.Subscription>(url, subscription, options);
|
||||
|
||||
|
@ -455,7 +465,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -493,7 +504,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Subscription>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Subscription>(url, options);
|
||||
|
||||
|
@ -544,7 +556,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Subscription[]>;
|
||||
res = await this.rest.get<ServiceHooksInterfaces.Subscription[]>(url, options);
|
||||
|
||||
|
@ -581,7 +594,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Subscription>;
|
||||
res = await this.rest.replace<ServiceHooksInterfaces.Subscription>(url, subscription, options);
|
||||
|
||||
|
@ -618,7 +632,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.SubscriptionsQuery>;
|
||||
res = await this.rest.create<ServiceHooksInterfaces.SubscriptionsQuery>(url, query, options);
|
||||
|
||||
|
@ -655,7 +670,8 @@ export class ServiceHooksApi extends basem.ClientApiBase implements IServiceHook
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ServiceHooksInterfaces.Notification>;
|
||||
res = await this.rest.create<ServiceHooksInterfaces.Notification>(url, testNotification, options);
|
||||
|
||||
|
|
|
@ -101,6 +101,7 @@ export interface ITaskAgentApiBase extends basem.ClientApiBase {
|
|||
getServiceEndpointDetails(project: string, endpointId: string): Promise<TaskAgentInterfaces.ServiceEndpoint>;
|
||||
getServiceEndpoints(project: string, type?: string, authSchemes?: string[], endpointIds?: string[], includeFailed?: boolean): Promise<TaskAgentInterfaces.ServiceEndpoint[]>;
|
||||
updateServiceEndpoint(endpoint: TaskAgentInterfaces.ServiceEndpoint, project: string, endpointId: string): Promise<TaskAgentInterfaces.ServiceEndpoint>;
|
||||
updateServiceEndpoints(endpoints: TaskAgentInterfaces.ServiceEndpoint[], project: string): Promise<TaskAgentInterfaces.ServiceEndpoint[]>;
|
||||
getServiceEndpointTypes(type?: string, scheme?: string): Promise<TaskAgentInterfaces.ServiceEndpointType[]>;
|
||||
createAgentSession(session: TaskAgentInterfaces.TaskAgentSession, poolId: number): Promise<TaskAgentInterfaces.TaskAgentSession>;
|
||||
deleteAgentSession(poolId: number, sessionId: string): Promise<void>;
|
||||
|
@ -154,7 +155,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgent>(url, agent, options);
|
||||
|
||||
|
@ -195,7 +197,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -249,7 +252,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgent>(url, options);
|
||||
|
||||
|
@ -306,7 +310,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgent[]>(url, options);
|
||||
|
||||
|
@ -349,7 +354,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskAgent>(url, agent, options);
|
||||
|
||||
|
@ -392,7 +398,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TaskAgent>(url, agent, options);
|
||||
|
||||
|
@ -427,7 +434,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.AzureSubscriptionQueryResult>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.AzureSubscriptionQueryResult>(url, options);
|
||||
|
||||
|
@ -468,7 +476,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.create<string>(url, options);
|
||||
|
||||
|
@ -508,7 +517,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentGroup>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.DeploymentGroup>(url, deploymentGroup, options);
|
||||
|
||||
|
@ -549,7 +559,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -600,7 +611,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentGroup>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentGroup>(url, options);
|
||||
|
||||
|
@ -651,7 +663,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentGroup[]>(url, options);
|
||||
|
||||
|
@ -694,7 +707,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentGroup>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.DeploymentGroup>(url, deploymentGroup, options);
|
||||
|
||||
|
@ -733,7 +747,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, endpoint, options);
|
||||
|
||||
|
@ -781,7 +796,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskHubLicenseDetails>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskHubLicenseDetails>(url, options);
|
||||
|
||||
|
@ -821,7 +837,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskHubLicenseDetails>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskHubLicenseDetails>(url, taskHubLicenseDetails, options);
|
||||
|
||||
|
@ -858,7 +875,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.InputValidationRequest>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.InputValidationRequest>(url, inputValidationRequest, options);
|
||||
|
||||
|
@ -909,7 +927,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -950,7 +969,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentJobRequest>(url, options);
|
||||
|
||||
|
@ -998,7 +1018,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentJobRequest[]>(url, options);
|
||||
|
||||
|
@ -1046,7 +1067,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentJobRequest[]>(url, options);
|
||||
|
||||
|
@ -1094,7 +1116,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentJobRequest[]>(url, options);
|
||||
|
||||
|
@ -1134,7 +1157,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentJobRequest>(url, request, options);
|
||||
|
||||
|
@ -1184,7 +1208,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentJobRequest>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TaskAgentJobRequest>(url, request, options);
|
||||
|
||||
|
@ -1225,7 +1250,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.create<string>(url, options);
|
||||
|
||||
|
@ -1265,7 +1291,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachineGroup>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.DeploymentMachineGroup>(url, machineGroup, options);
|
||||
|
||||
|
@ -1306,7 +1333,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1354,7 +1382,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachineGroup>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentMachineGroup>(url, options);
|
||||
|
||||
|
@ -1402,7 +1431,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachineGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentMachineGroup[]>(url, options);
|
||||
|
||||
|
@ -1445,7 +1475,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachineGroup>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.DeploymentMachineGroup>(url, machineGroup, options);
|
||||
|
||||
|
@ -1493,7 +1524,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachine[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentMachine[]>(url, options);
|
||||
|
||||
|
@ -1536,7 +1568,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachine[]>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.DeploymentMachine[]>(url, deploymentMachines, options);
|
||||
|
||||
|
@ -1584,7 +1617,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachine[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.DeploymentMachine[]>(url, options);
|
||||
|
||||
|
@ -1627,7 +1661,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.DeploymentMachine[]>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.DeploymentMachine[]>(url, deploymentMachines, options);
|
||||
|
||||
|
@ -1667,7 +1702,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>(url, definition, options);
|
||||
|
||||
|
@ -1708,7 +1744,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1749,7 +1786,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>(url, options);
|
||||
|
||||
|
@ -1787,7 +1825,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition[]>(url, options);
|
||||
|
||||
|
@ -1830,7 +1869,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskAgentPoolMaintenanceDefinition>(url, definition, options);
|
||||
|
||||
|
@ -1871,7 +1911,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1912,7 +1953,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>(url, options);
|
||||
|
||||
|
@ -1991,7 +2033,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob[]>(url, options);
|
||||
|
||||
|
@ -2031,7 +2074,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>(url, job, options);
|
||||
|
||||
|
@ -2074,7 +2118,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TaskAgentPoolMaintenanceJob>(url, job, options);
|
||||
|
||||
|
@ -2122,7 +2167,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2170,7 +2216,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentMessage>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentMessage>(url, options);
|
||||
|
||||
|
@ -2215,7 +2262,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
@ -2253,7 +2301,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
|
@ -2300,7 +2349,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, message, options);
|
||||
|
||||
|
@ -2344,7 +2394,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.PackageMetadata>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.PackageMetadata>(url, options);
|
||||
|
||||
|
@ -2392,7 +2443,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.PackageMetadata[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.PackageMetadata[]>(url, options);
|
||||
|
||||
|
@ -2430,7 +2482,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.IdentityRef[]>;
|
||||
res = await this.rest.get<VSSInterfaces.IdentityRef[]>(url, options);
|
||||
|
||||
|
@ -2467,7 +2520,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPool>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentPool>(url, pool, options);
|
||||
|
||||
|
@ -2505,7 +2559,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2553,7 +2608,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPool>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPool>(url, options);
|
||||
|
||||
|
@ -2604,7 +2660,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPool[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentPool[]>(url, options);
|
||||
|
||||
|
@ -2644,7 +2701,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentPool>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TaskAgentPool>(url, pool, options);
|
||||
|
||||
|
@ -2682,7 +2740,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<VSSInterfaces.IdentityRef[]>;
|
||||
res = await this.rest.get<VSSInterfaces.IdentityRef[]>(url, options);
|
||||
|
||||
|
@ -2722,7 +2781,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentQueue>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentQueue>(url, queue, options);
|
||||
|
||||
|
@ -2760,7 +2820,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.replace<void>(url, options);
|
||||
|
||||
|
@ -2801,7 +2862,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2849,7 +2911,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentQueue>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentQueue>(url, options);
|
||||
|
||||
|
@ -2897,7 +2960,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentQueue[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAgentQueue[]>(url, options);
|
||||
|
||||
|
@ -2938,7 +3002,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskGroupRevision[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskGroupRevision[]>(url, options);
|
||||
|
||||
|
@ -2981,7 +3046,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3077,7 +3143,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.SecureFile>(url, options);
|
||||
|
||||
|
@ -3130,7 +3197,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.SecureFile[]>(url, options);
|
||||
|
||||
|
@ -3180,7 +3248,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.SecureFile[]>(url, options);
|
||||
|
||||
|
@ -3229,7 +3298,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile[]>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.SecureFile[]>(url, condition, options);
|
||||
|
||||
|
@ -3274,7 +3344,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.SecureFile>(url, secureFile, options);
|
||||
|
||||
|
@ -3316,7 +3387,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile[]>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.SecureFile[]>(url, secureFiles, options);
|
||||
|
||||
|
@ -3371,6 +3443,7 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.SecureFile>;
|
||||
res = await this.rest.uploadStream<TaskAgentInterfaces.SecureFile>("POST", url, contentStream, options);
|
||||
|
@ -3417,7 +3490,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpointRequestResult>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.ServiceEndpointRequestResult>(url, serviceEndpointRequest, options);
|
||||
|
||||
|
@ -3459,7 +3533,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.create<string[]>(url, binding, options);
|
||||
|
||||
|
@ -3499,7 +3574,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpoint>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.ServiceEndpoint>(url, endpoint, options);
|
||||
|
||||
|
@ -3540,7 +3616,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3581,7 +3658,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpoint>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.ServiceEndpoint>(url, options);
|
||||
|
||||
|
@ -3635,7 +3713,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpoint[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.ServiceEndpoint[]>(url, options);
|
||||
|
||||
|
@ -3678,7 +3757,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpoint>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.ServiceEndpoint>(url, endpoint, options);
|
||||
|
||||
|
@ -3695,6 +3775,47 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {TaskAgentInterfaces.ServiceEndpoint[]} endpoints
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
public async updateServiceEndpoints(
|
||||
endpoints: TaskAgentInterfaces.ServiceEndpoint[],
|
||||
project: string
|
||||
): Promise<TaskAgentInterfaces.ServiceEndpoint[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.ServiceEndpoint[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
project: project
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"distributedtask",
|
||||
"dca61d2f-3444-410a-b5ec-db2fc4efb4c5",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpoint[]>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.ServiceEndpoint[]>(url, endpoints, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} type
|
||||
* @param {string} scheme
|
||||
|
@ -3723,7 +3844,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.ServiceEndpointType[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.ServiceEndpointType[]>(url, options);
|
||||
|
||||
|
@ -3763,7 +3885,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgentSession>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskAgentSession>(url, session, options);
|
||||
|
||||
|
@ -3804,7 +3927,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3844,7 +3968,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskGroup>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskGroup>(url, taskGroup, options);
|
||||
|
||||
|
@ -3885,7 +4010,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3974,7 +4100,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskGroup[]>(url, options);
|
||||
|
||||
|
@ -4014,7 +4141,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskGroup>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskGroup>(url, taskGroup, options);
|
||||
|
||||
|
@ -4052,7 +4180,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -4147,7 +4276,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskDefinition>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskDefinition>(url, options);
|
||||
|
||||
|
@ -4195,7 +4325,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskDefinition[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskDefinition[]>(url, options);
|
||||
|
||||
|
@ -4243,7 +4374,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskAgent>(url, options);
|
||||
|
||||
|
@ -4286,7 +4418,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAgent>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.TaskAgent>(url, userCapabilities, options);
|
||||
|
||||
|
@ -4326,7 +4459,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.VariableGroup>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.VariableGroup>(url, group, options);
|
||||
|
||||
|
@ -4367,7 +4501,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -4408,7 +4543,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.VariableGroup>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.VariableGroup>(url, options);
|
||||
|
||||
|
@ -4456,7 +4592,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.VariableGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.VariableGroup[]>(url, options);
|
||||
|
||||
|
@ -4501,7 +4638,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.VariableGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.VariableGroup[]>(url, options);
|
||||
|
||||
|
@ -4544,7 +4682,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.VariableGroup>;
|
||||
res = await this.rest.replace<TaskAgentInterfaces.VariableGroup>(url, group, options);
|
||||
|
||||
|
@ -4581,7 +4720,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.AadOauthTokenResult>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.AadOauthTokenResult>(url, authenticationRequest, options);
|
||||
|
||||
|
@ -4629,7 +4769,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.create<string>(url, options);
|
||||
|
||||
|
@ -4664,7 +4805,8 @@ export class TaskAgentApiBase extends basem.ClientApiBase implements ITaskAgentA
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string>;
|
||||
res = await this.rest.get<string>(url, options);
|
||||
|
||||
|
|
|
@ -75,7 +75,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment[]>(url, options);
|
||||
|
||||
|
@ -139,6 +140,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment>;
|
||||
res = await this.rest.uploadStream<TaskAgentInterfaces.TaskAttachment>("PUT", url, contentStream, options);
|
||||
|
@ -194,7 +196,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment>(url, options);
|
||||
|
||||
|
@ -296,7 +299,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment[]>(url, options);
|
||||
|
||||
|
@ -348,7 +352,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, lines, options);
|
||||
|
||||
|
@ -403,6 +408,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog>;
|
||||
res = await this.rest.uploadStream<TaskAgentInterfaces.TaskLog>("POST", url, contentStream, options);
|
||||
|
@ -448,7 +454,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskLog>(url, log, options);
|
||||
|
||||
|
@ -505,7 +512,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<string[]>;
|
||||
res = await this.rest.get<string[]>(url, options);
|
||||
|
||||
|
@ -549,7 +557,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskLog[]>(url, options);
|
||||
|
||||
|
@ -600,7 +609,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>(url, options);
|
||||
|
||||
|
@ -644,7 +654,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationPlan>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationPlan>(url, options);
|
||||
|
||||
|
@ -698,7 +709,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TimelineRecord[]>(url, options);
|
||||
|
||||
|
@ -747,7 +759,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TimelineRecord[]>(url, records, options);
|
||||
|
||||
|
@ -793,7 +806,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.Timeline>(url, timeline, options);
|
||||
|
||||
|
@ -840,7 +854,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -897,7 +912,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.Timeline>(url, options);
|
||||
|
||||
|
@ -941,7 +957,8 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.Timeline[]>(url, options);
|
||||
|
||||
|
|
261
api/TestApi.ts
261
api/TestApi.ts
|
@ -151,7 +151,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestActionResultModel[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestActionResultModel[]>(url, options);
|
||||
|
||||
|
@ -207,7 +208,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestAttachmentReference>;
|
||||
res = await this.rest.create<TestInterfaces.TestAttachmentReference>(url, attachmentRequestModel, options);
|
||||
|
||||
|
@ -253,7 +255,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestAttachmentReference>;
|
||||
res = await this.rest.create<TestInterfaces.TestAttachmentReference>(url, attachmentRequestModel, options);
|
||||
|
||||
|
@ -341,7 +344,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestAttachment[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestAttachment[]>(url, options);
|
||||
|
||||
|
@ -426,7 +430,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestAttachmentReference>;
|
||||
res = await this.rest.create<TestInterfaces.TestAttachmentReference>(url, attachmentRequestModel, options);
|
||||
|
||||
|
@ -508,7 +513,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestAttachment[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestAttachment[]>(url, options);
|
||||
|
||||
|
@ -591,7 +597,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.WorkItemReference[]>;
|
||||
res = await this.rest.get<TestInterfaces.WorkItemReference[]>(url, options);
|
||||
|
||||
|
@ -639,7 +646,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CloneOperationInformation>;
|
||||
res = await this.rest.get<TestInterfaces.CloneOperationInformation>(url, options);
|
||||
|
||||
|
@ -682,7 +690,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CloneOperationInformation>;
|
||||
res = await this.rest.create<TestInterfaces.CloneOperationInformation>(url, cloneRequestBody, options);
|
||||
|
||||
|
@ -728,7 +737,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CloneOperationInformation>;
|
||||
res = await this.rest.create<TestInterfaces.CloneOperationInformation>(url, cloneRequestBody, options);
|
||||
|
||||
|
@ -776,7 +786,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.BuildCoverage[]>;
|
||||
res = await this.rest.get<TestInterfaces.BuildCoverage[]>(url, options);
|
||||
|
||||
|
@ -824,7 +835,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CodeCoverageSummary>;
|
||||
res = await this.rest.get<TestInterfaces.CodeCoverageSummary>(url, options);
|
||||
|
||||
|
@ -873,7 +885,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, coverageData, options);
|
||||
|
||||
|
@ -921,7 +934,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRunCoverage[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestRunCoverage[]>(url, options);
|
||||
|
||||
|
@ -961,7 +975,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestConfiguration>;
|
||||
res = await this.rest.create<TestInterfaces.TestConfiguration>(url, testConfiguration, options);
|
||||
|
||||
|
@ -1002,7 +1017,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1043,7 +1059,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestConfiguration>;
|
||||
res = await this.rest.get<TestInterfaces.TestConfiguration>(url, options);
|
||||
|
||||
|
@ -1097,7 +1114,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestConfiguration[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestConfiguration[]>(url, options);
|
||||
|
||||
|
@ -1140,7 +1158,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestConfiguration>;
|
||||
res = await this.rest.update<TestInterfaces.TestConfiguration>(url, testConfiguration, options);
|
||||
|
||||
|
@ -1180,7 +1199,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CustomTestFieldDefinition[]>;
|
||||
res = await this.rest.create<TestInterfaces.CustomTestFieldDefinition[]>(url, newFields, options);
|
||||
|
||||
|
@ -1225,7 +1245,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.CustomTestFieldDefinition[]>;
|
||||
res = await this.rest.get<TestInterfaces.CustomTestFieldDefinition[]>(url, options);
|
||||
|
||||
|
@ -1265,7 +1286,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultHistory>;
|
||||
res = await this.rest.create<TestInterfaces.TestResultHistory>(url, filter, options);
|
||||
|
||||
|
@ -1319,7 +1341,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestIterationDetailsModel>;
|
||||
res = await this.rest.get<TestInterfaces.TestIterationDetailsModel>(url, options);
|
||||
|
||||
|
@ -1370,7 +1393,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestIterationDetailsModel[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestIterationDetailsModel[]>(url, options);
|
||||
|
||||
|
@ -1411,7 +1435,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestMessageLogDetails[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestMessageLogDetails[]>(url, options);
|
||||
|
||||
|
@ -1465,7 +1490,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultParameterModel[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestResultParameterModel[]>(url, options);
|
||||
|
||||
|
@ -1505,7 +1531,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPlan>;
|
||||
res = await this.rest.create<TestInterfaces.TestPlan>(url, testPlan, options);
|
||||
|
||||
|
@ -1546,7 +1573,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1587,7 +1615,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPlan>;
|
||||
res = await this.rest.get<TestInterfaces.TestPlan>(url, options);
|
||||
|
||||
|
@ -1644,7 +1673,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPlan[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestPlan[]>(url, options);
|
||||
|
||||
|
@ -1687,7 +1717,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPlan>;
|
||||
res = await this.rest.update<TestInterfaces.TestPlan>(url, planUpdateModel, options);
|
||||
|
||||
|
@ -1741,7 +1772,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPoint>;
|
||||
res = await this.rest.get<TestInterfaces.TestPoint>(url, options);
|
||||
|
||||
|
@ -1810,7 +1842,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPoint[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestPoint[]>(url, options);
|
||||
|
||||
|
@ -1859,7 +1892,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPoint[]>;
|
||||
res = await this.rest.update<TestInterfaces.TestPoint[]>(url, pointUpdateModel, options);
|
||||
|
||||
|
@ -1909,7 +1943,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestPointsQuery>;
|
||||
res = await this.rest.create<TestInterfaces.TestPointsQuery>(url, query, options);
|
||||
|
||||
|
@ -1966,7 +2001,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultsDetails>;
|
||||
res = await this.rest.get<TestInterfaces.TestResultsDetails>(url, options);
|
||||
|
||||
|
@ -2026,7 +2062,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultsDetails>;
|
||||
res = await this.rest.get<TestInterfaces.TestResultsDetails>(url, options);
|
||||
|
||||
|
@ -2069,7 +2106,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultDocument>;
|
||||
res = await this.rest.create<TestInterfaces.TestResultDocument>(url, document, options);
|
||||
|
||||
|
@ -2107,7 +2145,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.ResultRetentionSettings>;
|
||||
res = await this.rest.get<TestInterfaces.ResultRetentionSettings>(url, options);
|
||||
|
||||
|
@ -2147,7 +2186,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.ResultRetentionSettings>;
|
||||
res = await this.rest.update<TestInterfaces.ResultRetentionSettings>(url, retentionSettings, options);
|
||||
|
||||
|
@ -2190,7 +2230,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestCaseResult[]>;
|
||||
res = await this.rest.create<TestInterfaces.TestCaseResult[]>(url, results, options);
|
||||
|
||||
|
@ -2241,7 +2282,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestCaseResult>;
|
||||
res = await this.rest.get<TestInterfaces.TestCaseResult>(url, options);
|
||||
|
||||
|
@ -2295,7 +2337,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestCaseResult[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestCaseResult[]>(url, options);
|
||||
|
||||
|
@ -2338,7 +2381,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestCaseResult[]>;
|
||||
res = await this.rest.update<TestInterfaces.TestCaseResult[]>(url, results, options);
|
||||
|
||||
|
@ -2378,7 +2422,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultsQuery>;
|
||||
res = await this.rest.create<TestInterfaces.TestResultsQuery>(url, query, options);
|
||||
|
||||
|
@ -2432,7 +2477,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultSummary>;
|
||||
res = await this.rest.get<TestInterfaces.TestResultSummary>(url, options);
|
||||
|
||||
|
@ -2489,7 +2535,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultSummary>;
|
||||
res = await this.rest.get<TestInterfaces.TestResultSummary>(url, options);
|
||||
|
||||
|
@ -2529,7 +2576,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestResultSummary[]>;
|
||||
res = await this.rest.create<TestInterfaces.TestResultSummary[]>(url, releases, options);
|
||||
|
||||
|
@ -2576,7 +2624,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSummaryForWorkItem[]>;
|
||||
res = await this.rest.create<TestInterfaces.TestSummaryForWorkItem[]>(url, resultsContext, options);
|
||||
|
||||
|
@ -2616,7 +2665,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.AggregatedDataForResultTrend[]>;
|
||||
res = await this.rest.create<TestInterfaces.AggregatedDataForResultTrend[]>(url, filter, options);
|
||||
|
||||
|
@ -2656,7 +2706,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.AggregatedDataForResultTrend[]>;
|
||||
res = await this.rest.create<TestInterfaces.AggregatedDataForResultTrend[]>(url, filter, options);
|
||||
|
||||
|
@ -2697,7 +2748,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRunStatistic>;
|
||||
res = await this.rest.get<TestInterfaces.TestRunStatistic>(url, options);
|
||||
|
||||
|
@ -2737,7 +2789,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRun>;
|
||||
res = await this.rest.create<TestInterfaces.TestRun>(url, testRun, options);
|
||||
|
||||
|
@ -2778,7 +2831,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -2819,7 +2873,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRun>;
|
||||
res = await this.rest.get<TestInterfaces.TestRun>(url, options);
|
||||
|
||||
|
@ -2885,7 +2940,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRun[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestRun[]>(url, options);
|
||||
|
||||
|
@ -2928,7 +2984,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestRun>;
|
||||
res = await this.rest.update<TestInterfaces.TestRun>(url, runUpdateModel, options);
|
||||
|
||||
|
@ -2972,7 +3029,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSession>;
|
||||
res = await this.rest.create<TestInterfaces.TestSession>(url, testSession, options);
|
||||
|
||||
|
@ -3033,7 +3091,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSession[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestSession[]>(url, options);
|
||||
|
||||
|
@ -3077,7 +3136,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSession>;
|
||||
res = await this.rest.update<TestInterfaces.TestSession>(url, testSession, options);
|
||||
|
||||
|
@ -3118,7 +3178,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3159,7 +3220,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3200,7 +3262,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.SuiteEntry[]>;
|
||||
res = await this.rest.get<TestInterfaces.SuiteEntry[]>(url, options);
|
||||
|
||||
|
@ -3243,7 +3306,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.SuiteEntry[]>;
|
||||
res = await this.rest.update<TestInterfaces.SuiteEntry[]>(url, suiteEntries, options);
|
||||
|
||||
|
@ -3290,7 +3354,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.SuiteTestCase[]>;
|
||||
res = await this.rest.create<TestInterfaces.SuiteTestCase[]>(url, options);
|
||||
|
||||
|
@ -3337,7 +3402,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.SuiteTestCase>;
|
||||
res = await this.rest.get<TestInterfaces.SuiteTestCase>(url, options);
|
||||
|
||||
|
@ -3381,7 +3447,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.SuiteTestCase[]>;
|
||||
res = await this.rest.get<TestInterfaces.SuiteTestCase[]>(url, options);
|
||||
|
||||
|
@ -3428,7 +3495,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3474,7 +3542,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSuite[]>;
|
||||
res = await this.rest.create<TestInterfaces.TestSuite[]>(url, testSuite, options);
|
||||
|
||||
|
@ -3518,7 +3587,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3569,7 +3639,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSuite>;
|
||||
res = await this.rest.get<TestInterfaces.TestSuite>(url, options);
|
||||
|
||||
|
@ -3626,7 +3697,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSuite[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestSuite[]>(url, options);
|
||||
|
||||
|
@ -3672,7 +3744,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSuite>;
|
||||
res = await this.rest.update<TestInterfaces.TestSuite>(url, suiteUpdateModel, options);
|
||||
|
||||
|
@ -3714,7 +3787,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSuite[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestSuite[]>(url, options);
|
||||
|
||||
|
@ -3755,7 +3829,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3795,7 +3870,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<number>;
|
||||
res = await this.rest.create<number>(url, testSettings, options);
|
||||
|
||||
|
@ -3836,7 +3912,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3877,7 +3954,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestSettings>;
|
||||
res = await this.rest.get<TestInterfaces.TestSettings>(url, options);
|
||||
|
||||
|
@ -3917,7 +3995,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestVariable>;
|
||||
res = await this.rest.create<TestInterfaces.TestVariable>(url, testVariable, options);
|
||||
|
||||
|
@ -3958,7 +4037,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -3999,7 +4079,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestVariable>;
|
||||
res = await this.rest.get<TestInterfaces.TestVariable>(url, options);
|
||||
|
||||
|
@ -4047,7 +4128,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestVariable[]>;
|
||||
res = await this.rest.get<TestInterfaces.TestVariable[]>(url, options);
|
||||
|
||||
|
@ -4090,7 +4172,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestVariable>;
|
||||
res = await this.rest.update<TestInterfaces.TestVariable>(url, testVariable, options);
|
||||
|
||||
|
@ -4130,7 +4213,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.WorkItemToTestLinks>;
|
||||
res = await this.rest.create<TestInterfaces.WorkItemToTestLinks>(url, workItemToTestLinks, options);
|
||||
|
||||
|
@ -4178,7 +4262,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<boolean>;
|
||||
res = await this.rest.del<boolean>(url, options);
|
||||
|
||||
|
@ -4223,7 +4308,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.TestToWorkItemLinks>;
|
||||
res = await this.rest.create<TestInterfaces.TestToWorkItemLinks>(url, options);
|
||||
|
||||
|
@ -4283,7 +4369,8 @@ export class TestApi extends basem.ClientApiBase implements ITestApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TestInterfaces.WorkItemReference[]>;
|
||||
res = await this.rest.get<TestInterfaces.WorkItemReference[]>(url, options);
|
||||
|
||||
|
|
|
@ -85,7 +85,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcBranch>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcBranch>(url, options);
|
||||
|
||||
|
@ -141,7 +142,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcBranch[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcBranch[]>(url, options);
|
||||
|
||||
|
@ -194,7 +196,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcBranchRef[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcBranchRef[]>(url, options);
|
||||
|
||||
|
@ -244,7 +247,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChange[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcChange[]>(url, options);
|
||||
|
||||
|
@ -284,7 +288,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChangesetRef>;
|
||||
res = await this.rest.create<TfvcInterfaces.TfvcChangesetRef>(url, changeset, options);
|
||||
|
||||
|
@ -358,7 +363,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChangeset>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcChangeset>(url, options);
|
||||
|
||||
|
@ -417,7 +423,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChangesetRef[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcChangesetRef[]>(url, options);
|
||||
|
||||
|
@ -454,7 +461,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChangesetRef[]>;
|
||||
res = await this.rest.create<TfvcInterfaces.TfvcChangesetRef[]>(url, changesetsRequestData, options);
|
||||
|
||||
|
@ -492,7 +500,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.AssociatedWorkItem[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.AssociatedWorkItem[]>(url, options);
|
||||
|
||||
|
@ -534,7 +543,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcItem[][]>;
|
||||
res = await this.rest.create<TfvcInterfaces.TfvcItem[][]>(url, itemRequestData, options);
|
||||
|
||||
|
@ -631,7 +641,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcItem>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcItem>(url, options);
|
||||
|
||||
|
@ -742,7 +753,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcItem[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcItem[]>(url, options);
|
||||
|
||||
|
@ -902,7 +914,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcItem[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcItem[]>(url, options);
|
||||
|
||||
|
@ -952,7 +965,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcLabel>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcLabel>(url, options);
|
||||
|
||||
|
@ -1005,7 +1019,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcLabelRef[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcLabelRef[]>(url, options);
|
||||
|
||||
|
@ -1055,7 +1070,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcChange[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcChange[]>(url, options);
|
||||
|
||||
|
@ -1102,7 +1118,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcShelveset>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcShelveset>(url, options);
|
||||
|
||||
|
@ -1152,7 +1169,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcShelvesetRef[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcShelvesetRef[]>(url, options);
|
||||
|
||||
|
@ -1196,7 +1214,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.AssociatedWorkItem[]>;
|
||||
res = await this.rest.get<TfvcInterfaces.AssociatedWorkItem[]>(url, options);
|
||||
|
||||
|
|
|
@ -0,0 +1,562 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
import * as restm from 'typed-rest-client/RestClient';
|
||||
import * as httpm from 'typed-rest-client/HttpClient';
|
||||
import vsom = require('./VsoClient');
|
||||
import basem = require('./ClientApiBases');
|
||||
import serm = require('./Serialization');
|
||||
import VsoBaseInterfaces = require('./interfaces/common/VsoBaseInterfaces');
|
||||
import TokenInterfaces = require("./interfaces/TokenInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
||||
export interface ITokenApi extends basem.ClientApiBase {
|
||||
authorize(redirectUri: string, responseType: TokenInterfaces.ResponseType, clientId: string, scopes: string, userId?: string): Promise<TokenInterfaces.AuthorizationDecision>;
|
||||
getAuthorizations(userId?: string): Promise<TokenInterfaces.AuthorizationDetails[]>;
|
||||
initiateAuthorization(redirectUri: string, responseType: TokenInterfaces.ResponseType, clientId: string, scopes: string, userId?: string): Promise<TokenInterfaces.AuthorizationDescription>;
|
||||
revokeAuthorization(authorizationId: string, userId?: string): Promise<void>;
|
||||
host(clientId: string): Promise<void>;
|
||||
revoke(clientId: string, hostId?: string): Promise<void>;
|
||||
create(registration: TokenInterfaces.Registration, includeSecret?: boolean): Promise<TokenInterfaces.Registration>;
|
||||
delete(registrationId: string): Promise<void>;
|
||||
get(registrationId: string, includeSecret: boolean): Promise<TokenInterfaces.Registration>;
|
||||
list(): Promise<TokenInterfaces.Registration[]>;
|
||||
update(registration: TokenInterfaces.Registration, includeSecret?: boolean): Promise<TokenInterfaces.Registration>;
|
||||
getSecret(registrationId: string): Promise<VSSInterfaces.JsonWebToken>;
|
||||
}
|
||||
|
||||
export class TokenApi extends basem.ClientApiBase implements ITokenApi {
|
||||
constructor(baseUrl: string, handlers: VsoBaseInterfaces.IRequestHandler[]) {
|
||||
super(baseUrl, handlers, 'node-Token-api');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} redirectUri
|
||||
* @param {TokenInterfaces.ResponseType} responseType
|
||||
* @param {string} clientId
|
||||
* @param {string} scopes
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async authorize(
|
||||
redirectUri: string,
|
||||
responseType: TokenInterfaces.ResponseType,
|
||||
clientId: string,
|
||||
scopes: string,
|
||||
userId?: string
|
||||
): Promise<TokenInterfaces.AuthorizationDecision> {
|
||||
|
||||
return new Promise<TokenInterfaces.AuthorizationDecision>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
responseType: responseType,
|
||||
clientId: clientId,
|
||||
scopes: scopes,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.AuthorizationDecision>;
|
||||
res = await this.rest.create<TokenInterfaces.AuthorizationDecision>(url, redirectUri, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.AuthorizationDecision,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async getAuthorizations(
|
||||
userId?: string
|
||||
): Promise<TokenInterfaces.AuthorizationDetails[]> {
|
||||
|
||||
return new Promise<TokenInterfaces.AuthorizationDetails[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.AuthorizationDetails[]>;
|
||||
res = await this.rest.get<TokenInterfaces.AuthorizationDetails[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.AuthorizationDetails,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} redirectUri
|
||||
* @param {TokenInterfaces.ResponseType} responseType
|
||||
* @param {string} clientId
|
||||
* @param {string} scopes
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async initiateAuthorization(
|
||||
redirectUri: string,
|
||||
responseType: TokenInterfaces.ResponseType,
|
||||
clientId: string,
|
||||
scopes: string,
|
||||
userId?: string
|
||||
): Promise<TokenInterfaces.AuthorizationDescription> {
|
||||
|
||||
return new Promise<TokenInterfaces.AuthorizationDescription>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
responseType: responseType,
|
||||
clientId: clientId,
|
||||
scopes: scopes,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.AuthorizationDescription>;
|
||||
res = await this.rest.get<TokenInterfaces.AuthorizationDescription>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.AuthorizationDescription,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} authorizationId
|
||||
* @param {string} userId
|
||||
*/
|
||||
public async revokeAuthorization(
|
||||
authorizationId: string,
|
||||
userId?: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
userId: userId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
authorizationId: authorizationId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"efbf6e0c-1150-43fd-b869-7e2b04fc0d09",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} clientId
|
||||
*/
|
||||
public async host(
|
||||
clientId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
clientId: clientId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"7372fdd9-238c-467c-b0f2-995f4bfe0d94",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} clientId
|
||||
* @param {string} hostId
|
||||
*/
|
||||
public async revoke(
|
||||
clientId: string,
|
||||
hostId?: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
clientId: clientId,
|
||||
hostId: hostId,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"7372fdd9-238c-467c-b0f2-995f4bfe0d94",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {TokenInterfaces.Registration} registration
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async create(
|
||||
registration: TokenInterfaces.Registration,
|
||||
includeSecret?: boolean
|
||||
): Promise<TokenInterfaces.Registration> {
|
||||
|
||||
return new Promise<TokenInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.Registration>;
|
||||
res = await this.rest.replace<TokenInterfaces.Registration>(url, registration, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
*/
|
||||
public async delete(
|
||||
registrationId: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async get(
|
||||
registrationId: string,
|
||||
includeSecret: boolean
|
||||
): Promise<TokenInterfaces.Registration> {
|
||||
|
||||
return new Promise<TokenInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.Registration>;
|
||||
res = await this.rest.get<TokenInterfaces.Registration>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async list(
|
||||
): Promise<TokenInterfaces.Registration[]> {
|
||||
|
||||
return new Promise<TokenInterfaces.Registration[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.Registration[]>;
|
||||
res = await this.rest.get<TokenInterfaces.Registration[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.Registration,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {TokenInterfaces.Registration} registration
|
||||
* @param {boolean} includeSecret
|
||||
*/
|
||||
public async update(
|
||||
registration: TokenInterfaces.Registration,
|
||||
includeSecret?: boolean
|
||||
): Promise<TokenInterfaces.Registration> {
|
||||
|
||||
return new Promise<TokenInterfaces.Registration>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
includeSecret: includeSecret,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.2",
|
||||
"DelegatedAuth",
|
||||
"909cd090-3005-480d-a1b4-220b76cb0afe",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<TokenInterfaces.Registration>;
|
||||
res = await this.rest.create<TokenInterfaces.Registration>(url, registration, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TokenInterfaces.TypeInfo.Registration,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} registrationId
|
||||
*/
|
||||
public async getSecret(
|
||||
registrationId: string
|
||||
): Promise<VSSInterfaces.JsonWebToken> {
|
||||
|
||||
return new Promise<VSSInterfaces.JsonWebToken>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
registrationId: registrationId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"DelegatedAuth",
|
||||
"f37e5023-dfbe-490e-9e40-7b7fb6b67887",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let res: restm.IRestResponse<VSSInterfaces.JsonWebToken>;
|
||||
res = await this.rest.get<VSSInterfaces.JsonWebToken>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
193
api/WorkApi.ts
193
api/WorkApi.ts
|
@ -44,16 +44,16 @@ export interface IWorkApi extends basem.ClientApiBase {
|
|||
updateBoardChart(chart: WorkInterfaces.BoardChart, teamContext: TfsCoreInterfaces.TeamContext, board: string, name: string): Promise<WorkInterfaces.BoardChart>;
|
||||
getBoardColumns(teamContext: TfsCoreInterfaces.TeamContext, board: string): Promise<WorkInterfaces.BoardColumn[]>;
|
||||
updateBoardColumns(boardColumns: WorkInterfaces.BoardColumn[], teamContext: TfsCoreInterfaces.TeamContext, board: string): Promise<WorkInterfaces.BoardColumn[]>;
|
||||
getDeliveryTimelineData(teamContext: TfsCoreInterfaces.TeamContext, id: string, revision?: number, startDate?: Date, endDate?: Date): Promise<WorkInterfaces.DeliveryViewData>;
|
||||
getDeliveryTimelineData(project: string, id: string, revision?: number, startDate?: Date, endDate?: Date): Promise<WorkInterfaces.DeliveryViewData>;
|
||||
deleteTeamIteration(teamContext: TfsCoreInterfaces.TeamContext, id: string): Promise<void>;
|
||||
getTeamIteration(teamContext: TfsCoreInterfaces.TeamContext, id: string): Promise<WorkInterfaces.TeamSettingsIteration>;
|
||||
getTeamIterations(teamContext: TfsCoreInterfaces.TeamContext, timeframe?: string): Promise<WorkInterfaces.TeamSettingsIteration[]>;
|
||||
postTeamIteration(iteration: WorkInterfaces.TeamSettingsIteration, teamContext: TfsCoreInterfaces.TeamContext): Promise<WorkInterfaces.TeamSettingsIteration>;
|
||||
createPlan(postedPlan: WorkInterfaces.CreatePlan, teamContext: TfsCoreInterfaces.TeamContext): Promise<WorkInterfaces.Plan>;
|
||||
deletePlan(teamContext: TfsCoreInterfaces.TeamContext, id: string): Promise<void>;
|
||||
getPlan(teamContext: TfsCoreInterfaces.TeamContext, id: string): Promise<WorkInterfaces.Plan>;
|
||||
getPlans(teamContext: TfsCoreInterfaces.TeamContext): Promise<WorkInterfaces.Plan[]>;
|
||||
updatePlan(updatedPlan: WorkInterfaces.UpdatePlan, teamContext: TfsCoreInterfaces.TeamContext, id: string): Promise<WorkInterfaces.Plan>;
|
||||
createPlan(postedPlan: WorkInterfaces.CreatePlan, project: string): Promise<WorkInterfaces.Plan>;
|
||||
deletePlan(project: string, id: string): Promise<void>;
|
||||
getPlan(project: string, id: string): Promise<WorkInterfaces.Plan>;
|
||||
getPlans(project: string): Promise<WorkInterfaces.Plan[]>;
|
||||
updatePlan(updatedPlan: WorkInterfaces.UpdatePlan, project: string, id: string): Promise<WorkInterfaces.Plan>;
|
||||
getProcessConfiguration(project: string): Promise<WorkInterfaces.ProcessConfiguration>;
|
||||
getBoardRows(teamContext: TfsCoreInterfaces.TeamContext, board: string): Promise<WorkInterfaces.BoardRow[]>;
|
||||
updateBoardRows(boardRows: WorkInterfaces.BoardRow[], teamContext: TfsCoreInterfaces.TeamContext, board: string): Promise<WorkInterfaces.BoardRow[]>;
|
||||
|
@ -95,7 +95,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BacklogConfiguration>;
|
||||
res = await this.rest.get<WorkInterfaces.BacklogConfiguration>(url, options);
|
||||
|
||||
|
@ -133,7 +134,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardSuggestedValue[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardSuggestedValue[]>(url, options);
|
||||
|
||||
|
@ -180,7 +182,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardFilterSettings>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardFilterSettings>(url, options);
|
||||
|
||||
|
@ -229,7 +232,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardFilterSettings>;
|
||||
res = await this.rest.update<WorkInterfaces.BoardFilterSettings>(url, filterSettings, options);
|
||||
|
||||
|
@ -283,7 +287,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.ParentChildWIMap[]>;
|
||||
res = await this.rest.get<WorkInterfaces.ParentChildWIMap[]>(url, options);
|
||||
|
||||
|
@ -321,7 +326,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardSuggestedValue[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardSuggestedValue[]>(url, options);
|
||||
|
||||
|
@ -368,7 +374,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.Board>;
|
||||
res = await this.rest.get<WorkInterfaces.Board>(url, options);
|
||||
|
||||
|
@ -410,7 +417,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardReference[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardReference[]>(url, options);
|
||||
|
||||
|
@ -459,7 +467,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<{ [key: string] : string; }>;
|
||||
res = await this.rest.replace<{ [key: string] : string; }>(url, options, options);
|
||||
|
||||
|
@ -504,7 +513,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardUserSettings>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardUserSettings>(url, options);
|
||||
|
||||
|
@ -553,7 +563,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardUserSettings>;
|
||||
res = await this.rest.update<WorkInterfaces.BoardUserSettings>(url, boardUserSettings, options);
|
||||
|
||||
|
@ -598,7 +609,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamMemberCapacity[]>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamMemberCapacity[]>(url, options);
|
||||
|
||||
|
@ -646,7 +658,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamMemberCapacity>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamMemberCapacity>(url, options);
|
||||
|
||||
|
@ -693,7 +706,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamMemberCapacity[]>;
|
||||
res = await this.rest.replace<WorkInterfaces.TeamMemberCapacity[]>(url, capacities, options);
|
||||
|
||||
|
@ -743,7 +757,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamMemberCapacity>;
|
||||
res = await this.rest.update<WorkInterfaces.TeamMemberCapacity>(url, patch, options);
|
||||
|
||||
|
@ -790,7 +805,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardCardRuleSettings>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardCardRuleSettings>(url, options);
|
||||
|
||||
|
@ -839,7 +855,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardCardRuleSettings>;
|
||||
res = await this.rest.update<WorkInterfaces.BoardCardRuleSettings>(url, boardCardRuleSettings, options);
|
||||
|
||||
|
@ -886,7 +903,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardCardSettings>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardCardSettings>(url, options);
|
||||
|
||||
|
@ -935,7 +953,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardCardSettings>;
|
||||
res = await this.rest.replace<WorkInterfaces.BoardCardSettings>(url, boardCardSettingsToSave, options);
|
||||
|
||||
|
@ -985,7 +1004,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardChart>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardChart>(url, options);
|
||||
|
||||
|
@ -1032,7 +1052,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardChartReference[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardChartReference[]>(url, options);
|
||||
|
||||
|
@ -1084,7 +1105,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardChart>;
|
||||
res = await this.rest.update<WorkInterfaces.BoardChart>(url, chart, options);
|
||||
|
||||
|
@ -1129,7 +1151,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardColumn[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardColumn[]>(url, options);
|
||||
|
||||
|
@ -1176,7 +1199,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardColumn[]>;
|
||||
res = await this.rest.replace<WorkInterfaces.BoardColumn[]>(url, boardColumns, options);
|
||||
|
||||
|
@ -1196,14 +1220,14 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
/**
|
||||
* Get Delivery View Data
|
||||
*
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} id - Identifier for delivery view
|
||||
* @param {number} revision - Revision of the plan for which you want data. If the current plan is a different revision you will get an ViewRevisionMismatchException exception. If you do not supply a revision you will get data for the latest revision.
|
||||
* @param {Date} startDate - The start date of timeline
|
||||
* @param {Date} endDate - The end date of timeline
|
||||
*/
|
||||
public async getDeliveryTimelineData(
|
||||
teamContext: TfsCoreInterfaces.TeamContext,
|
||||
project: string,
|
||||
id: string,
|
||||
revision?: number,
|
||||
startDate?: Date,
|
||||
|
@ -1211,12 +1235,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
): Promise<WorkInterfaces.DeliveryViewData> {
|
||||
|
||||
return new Promise<WorkInterfaces.DeliveryViewData>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team,
|
||||
id: id
|
||||
};
|
||||
|
||||
|
@ -1236,7 +1256,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.DeliveryViewData>;
|
||||
res = await this.rest.get<WorkInterfaces.DeliveryViewData>(url, options);
|
||||
|
||||
|
@ -1281,7 +1302,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1326,7 +1348,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSettingsIteration>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamSettingsIteration>(url, options);
|
||||
|
||||
|
@ -1375,7 +1398,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSettingsIteration[]>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamSettingsIteration[]>(url, options);
|
||||
|
||||
|
@ -1419,7 +1443,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSettingsIteration>;
|
||||
res = await this.rest.create<WorkInterfaces.TeamSettingsIteration>(url, iteration, options);
|
||||
|
||||
|
@ -1440,20 +1465,16 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
* Add a new plan for the team
|
||||
*
|
||||
* @param {WorkInterfaces.CreatePlan} postedPlan - Plan definition
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
public async createPlan(
|
||||
postedPlan: WorkInterfaces.CreatePlan,
|
||||
teamContext: TfsCoreInterfaces.TeamContext
|
||||
project: string
|
||||
): Promise<WorkInterfaces.Plan> {
|
||||
|
||||
return new Promise<WorkInterfaces.Plan>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team
|
||||
project: project
|
||||
};
|
||||
|
||||
try {
|
||||
|
@ -1465,7 +1486,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.Plan>;
|
||||
res = await this.rest.create<WorkInterfaces.Plan>(url, postedPlan, options);
|
||||
|
||||
|
@ -1485,21 +1507,17 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
/**
|
||||
* Delete the specified plan
|
||||
*
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} id - Identifier of the plan
|
||||
*/
|
||||
public async deletePlan(
|
||||
teamContext: TfsCoreInterfaces.TeamContext,
|
||||
project: string,
|
||||
id: string
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team,
|
||||
id: id
|
||||
};
|
||||
|
||||
|
@ -1512,7 +1530,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1532,21 +1551,17 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
/**
|
||||
* Get the information for the specified plan
|
||||
*
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} id - Identifier of the plan
|
||||
*/
|
||||
public async getPlan(
|
||||
teamContext: TfsCoreInterfaces.TeamContext,
|
||||
project: string,
|
||||
id: string
|
||||
): Promise<WorkInterfaces.Plan> {
|
||||
|
||||
return new Promise<WorkInterfaces.Plan>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team,
|
||||
id: id
|
||||
};
|
||||
|
||||
|
@ -1559,7 +1574,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.Plan>;
|
||||
res = await this.rest.get<WorkInterfaces.Plan>(url, options);
|
||||
|
||||
|
@ -1577,19 +1593,15 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
public async getPlans(
|
||||
teamContext: TfsCoreInterfaces.TeamContext
|
||||
project: string
|
||||
): Promise<WorkInterfaces.Plan[]> {
|
||||
|
||||
return new Promise<WorkInterfaces.Plan[]>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team
|
||||
project: project
|
||||
};
|
||||
|
||||
try {
|
||||
|
@ -1601,7 +1613,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.Plan[]>;
|
||||
res = await this.rest.get<WorkInterfaces.Plan[]>(url, options);
|
||||
|
||||
|
@ -1622,22 +1635,18 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
* Update the information for the specified plan
|
||||
*
|
||||
* @param {WorkInterfaces.UpdatePlan} updatedPlan - Plan definition to be updated
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} id - Identifier of the plan
|
||||
*/
|
||||
public async updatePlan(
|
||||
updatedPlan: WorkInterfaces.UpdatePlan,
|
||||
teamContext: TfsCoreInterfaces.TeamContext,
|
||||
project: string,
|
||||
id: string
|
||||
): Promise<WorkInterfaces.Plan> {
|
||||
|
||||
return new Promise<WorkInterfaces.Plan>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
team: team,
|
||||
id: id
|
||||
};
|
||||
|
||||
|
@ -1650,7 +1659,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.Plan>;
|
||||
res = await this.rest.replace<WorkInterfaces.Plan>(url, updatedPlan, options);
|
||||
|
||||
|
@ -1688,7 +1698,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.ProcessConfiguration>;
|
||||
res = await this.rest.get<WorkInterfaces.ProcessConfiguration>(url, options);
|
||||
|
||||
|
@ -1733,7 +1744,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardRow[]>;
|
||||
res = await this.rest.get<WorkInterfaces.BoardRow[]>(url, options);
|
||||
|
||||
|
@ -1780,7 +1792,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.BoardRow[]>;
|
||||
res = await this.rest.replace<WorkInterfaces.BoardRow[]>(url, boardRows, options);
|
||||
|
||||
|
@ -1825,7 +1838,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSettingsDaysOff>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamSettingsDaysOff>(url, options);
|
||||
|
||||
|
@ -1872,7 +1886,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSettingsDaysOff>;
|
||||
res = await this.rest.update<WorkInterfaces.TeamSettingsDaysOff>(url, daysOffPatch, options);
|
||||
|
||||
|
@ -1914,7 +1929,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamFieldValues>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamFieldValues>(url, options);
|
||||
|
||||
|
@ -1958,7 +1974,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamFieldValues>;
|
||||
res = await this.rest.update<WorkInterfaces.TeamFieldValues>(url, patch, options);
|
||||
|
||||
|
@ -2000,7 +2017,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSetting>;
|
||||
res = await this.rest.get<WorkInterfaces.TeamSetting>(url, options);
|
||||
|
||||
|
@ -2044,7 +2062,8 @@ export class WorkApi extends basem.ClientApiBase implements IWorkApi {
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkInterfaces.TeamSetting>;
|
||||
res = await this.rest.update<WorkInterfaces.TeamSetting>(url, teamSettingsPatch, options);
|
||||
|
||||
|
|
|
@ -113,7 +113,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.AccountMyWorkResult>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.AccountMyWorkResult>(url, options);
|
||||
|
||||
|
@ -148,7 +149,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.AccountRecentActivityWorkItemModel[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.AccountRecentActivityWorkItemModel[]>(url, options);
|
||||
|
||||
|
@ -203,6 +205,7 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.AttachmentReference>;
|
||||
res = await this.rest.uploadStream<WorkItemTrackingInterfaces.AttachmentReference>("POST", url, contentStream, options);
|
||||
|
@ -327,7 +330,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemClassificationNode[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemClassificationNode[]>(url, options);
|
||||
|
||||
|
@ -373,7 +377,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemClassificationNode>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.WorkItemClassificationNode>(url, postedNode, options);
|
||||
|
||||
|
@ -424,7 +429,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -475,7 +481,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemClassificationNode>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemClassificationNode>(url, options);
|
||||
|
||||
|
@ -521,7 +528,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemClassificationNode>;
|
||||
res = await this.rest.update<WorkItemTrackingInterfaces.WorkItemClassificationNode>(url, postedNode, options);
|
||||
|
||||
|
@ -564,7 +572,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemComment>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemComment>(url, options);
|
||||
|
||||
|
@ -617,7 +626,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemComments>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemComments>(url, options);
|
||||
|
||||
|
@ -658,7 +668,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -701,7 +712,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemField>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemField>(url, options);
|
||||
|
||||
|
@ -748,7 +760,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemField[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemField[]>(url, options);
|
||||
|
||||
|
@ -793,7 +806,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.QueryHierarchyItem>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.QueryHierarchyItem>(url, postedQuery, options);
|
||||
|
||||
|
@ -834,7 +848,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -887,7 +902,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.QueryHierarchyItem[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.QueryHierarchyItem[]>(url, options);
|
||||
|
||||
|
@ -943,7 +959,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.QueryHierarchyItem>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.QueryHierarchyItem>(url, options);
|
||||
|
||||
|
@ -993,7 +1010,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.QueryHierarchyItem>;
|
||||
res = await this.rest.update<WorkItemTrackingInterfaces.QueryHierarchyItem>(url, queryUpdate, options);
|
||||
|
||||
|
@ -1034,7 +1052,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1075,7 +1094,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemDelete>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemDelete>(url, options);
|
||||
|
||||
|
@ -1113,7 +1133,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemDeleteShallowReference[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemDeleteShallowReference[]>(url, options);
|
||||
|
||||
|
@ -1158,7 +1179,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemDeleteReference[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemDeleteReference[]>(url, options);
|
||||
|
||||
|
@ -1201,7 +1223,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemDelete>;
|
||||
res = await this.rest.update<WorkItemTrackingInterfaces.WorkItemDelete>(url, payload, options);
|
||||
|
||||
|
@ -1251,7 +1274,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItem>(url, options);
|
||||
|
||||
|
@ -1304,7 +1328,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItem[]>(url, options);
|
||||
|
||||
|
@ -1343,7 +1368,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, ruleEngineInput, options);
|
||||
|
||||
|
@ -1389,7 +1415,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTemplate>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.WorkItemTemplate>(url, template, options);
|
||||
|
||||
|
@ -1440,7 +1467,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTemplateReference[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemTemplateReference[]>(url, options);
|
||||
|
||||
|
@ -1487,7 +1515,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.del<void>(url, options);
|
||||
|
||||
|
@ -1534,7 +1563,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTemplate>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemTemplate>(url, options);
|
||||
|
||||
|
@ -1583,7 +1613,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTemplate>;
|
||||
res = await this.rest.replace<WorkItemTrackingInterfaces.WorkItemTemplate>(url, templateContent, options);
|
||||
|
||||
|
@ -1626,7 +1657,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemUpdate>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemUpdate>(url, options);
|
||||
|
||||
|
@ -1676,7 +1708,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemUpdate[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemUpdate[]>(url, options);
|
||||
|
||||
|
@ -1732,7 +1765,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemQueryResult>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.WorkItemQueryResult>(url, wiql, options);
|
||||
|
||||
|
@ -1786,7 +1820,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemQueryResult>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemQueryResult>(url, options);
|
||||
|
||||
|
@ -1839,7 +1874,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.ReportingWorkItemLinksBatch>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.ReportingWorkItemLinksBatch>(url, options);
|
||||
|
||||
|
@ -1879,7 +1915,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemRelationType>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemRelationType>(url, options);
|
||||
|
||||
|
@ -1914,7 +1951,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemRelationType[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemRelationType[]>(url, options);
|
||||
|
||||
|
@ -1988,7 +2026,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.ReportingWorkItemRevisionsBatch>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.ReportingWorkItemRevisionsBatch>(url, options);
|
||||
|
||||
|
@ -2043,7 +2082,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.ReportingWorkItemRevisionsBatch>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.ReportingWorkItemRevisionsBatch>(url, filter, options);
|
||||
|
||||
|
@ -2088,7 +2128,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemDelete>;
|
||||
res = await this.rest.del<WorkItemTrackingInterfaces.WorkItemDelete>(url, options);
|
||||
|
||||
|
@ -2141,7 +2182,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItem>(url, options);
|
||||
|
||||
|
@ -2197,7 +2239,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItem[]>(url, options);
|
||||
|
||||
|
@ -2251,7 +2294,9 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem>;
|
||||
res = await this.rest.update<WorkItemTrackingInterfaces.WorkItem>(url, document, options);
|
||||
|
||||
|
@ -2308,7 +2353,9 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.WorkItem>(url, document, options);
|
||||
|
||||
|
@ -2364,7 +2411,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItem>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItem>(url, options);
|
||||
|
||||
|
@ -2403,7 +2451,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.ProjectWorkItemStateColors[]>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.ProjectWorkItemStateColors[]>(url, projectNames, options);
|
||||
|
||||
|
@ -2441,7 +2490,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTypeCategory[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemTypeCategory[]>(url, options);
|
||||
|
||||
|
@ -2484,7 +2534,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTypeCategory>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemTypeCategory>(url, options);
|
||||
|
||||
|
@ -2523,7 +2574,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<{ key: string; value: WorkItemTrackingInterfaces.WorkItemTypeColor[] }[]>;
|
||||
res = await this.rest.create<{ key: string; value: WorkItemTrackingInterfaces.WorkItemTypeColor[] }[]>(url, projectNames, options);
|
||||
|
||||
|
@ -2566,7 +2618,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemType>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemType>(url, options);
|
||||
|
||||
|
@ -2604,7 +2657,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemType[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemType[]>(url, options);
|
||||
|
||||
|
@ -2650,7 +2704,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.FieldDependentRule>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.FieldDependentRule>(url, options);
|
||||
|
||||
|
@ -2693,7 +2748,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemStateColor[]>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemStateColor[]>(url, options);
|
||||
|
||||
|
@ -2743,7 +2799,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.WorkItemTypeTemplate>;
|
||||
res = await this.rest.get<WorkItemTrackingInterfaces.WorkItemTypeTemplate>(url, options);
|
||||
|
||||
|
@ -2785,7 +2842,8 @@ export class WorkItemTrackingApi extends basem.ClientApiBase implements IWorkIte
|
|||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingInterfaces.ProvisioningResult>;
|
||||
res = await this.rest.create<WorkItemTrackingInterfaces.ProvisioningResult>(url, updateModel, options);
|
||||
|
||||
|
|
|
@ -15,12 +15,24 @@ import TfsCoreInterfaces = require("../interfaces/CoreInterfaces");
|
|||
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
||||
|
||||
|
||||
export interface AgentPoolQueue extends ShallowReference {
|
||||
export interface AgentPoolQueue {
|
||||
_links: any;
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The pool used by this queue.
|
||||
*/
|
||||
pool: TaskAgentPoolReference;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export enum AgentStatus {
|
||||
|
@ -229,7 +241,7 @@ export interface Build {
|
|||
|
||||
export interface BuildAgent {
|
||||
buildDirectory: string;
|
||||
controller: ShallowReference;
|
||||
controller: XamlBuildControllerReference;
|
||||
createdDate: Date;
|
||||
description: string;
|
||||
enabled: boolean;
|
||||
|
@ -237,7 +249,7 @@ export interface BuildAgent {
|
|||
messageQueueUrl: string;
|
||||
name: string;
|
||||
reservedForBuild: string;
|
||||
server: ShallowReference;
|
||||
server: XamlBuildServerReference;
|
||||
status: AgentStatus;
|
||||
statusMessage: string;
|
||||
updatedDate: Date;
|
||||
|
@ -245,6 +257,21 @@ export interface BuildAgent {
|
|||
url: string;
|
||||
}
|
||||
|
||||
export interface BuildAgentReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface BuildArtifact {
|
||||
/**
|
||||
* The artifact id
|
||||
|
@ -296,7 +323,7 @@ export interface BuildChangesCalculatedEvent extends BuildUpdatedEvent {
|
|||
export interface BuildCompletedEvent extends BuildUpdatedEvent {
|
||||
}
|
||||
|
||||
export interface BuildController extends ShallowReference {
|
||||
export interface BuildController extends XamlBuildControllerReference {
|
||||
_links: any;
|
||||
/**
|
||||
* The date the controller was created.
|
||||
|
@ -476,7 +503,7 @@ export interface BuildDeletedEvent extends RealtimeBuildEvent {
|
|||
|
||||
export interface BuildDeployment {
|
||||
deployment: BuildSummary;
|
||||
sourceBuild: ShallowReference;
|
||||
sourceBuild: XamlBuildReference;
|
||||
}
|
||||
|
||||
export interface BuildDestroyedEvent extends RealtimeBuildEvent {
|
||||
|
@ -783,8 +810,8 @@ export enum BuildResult {
|
|||
}
|
||||
|
||||
export interface BuildServer {
|
||||
agents: ShallowReference[];
|
||||
controller: ShallowReference;
|
||||
agents: BuildAgentReference[];
|
||||
controller: XamlBuildControllerReference;
|
||||
id: number;
|
||||
isVirtual: boolean;
|
||||
messageQueueUrl: string;
|
||||
|
@ -838,7 +865,7 @@ export enum BuildStatus {
|
|||
}
|
||||
|
||||
export interface BuildSummary {
|
||||
build: ShallowReference;
|
||||
build: XamlBuildReference;
|
||||
finishTime: Date;
|
||||
keepForever: boolean;
|
||||
quality: string;
|
||||
|
@ -912,7 +939,7 @@ export interface ContinuousDeploymentDefinition {
|
|||
/**
|
||||
* The definition associated with the continuous deployment
|
||||
*/
|
||||
definition: ShallowReference;
|
||||
definition: XamlDefinitionReference;
|
||||
gitBranch: string;
|
||||
hostedServiceName: string;
|
||||
project: TfsCoreInterfaces.TeamProjectReference;
|
||||
|
@ -999,11 +1026,19 @@ export enum DefinitionQueueStatus {
|
|||
/**
|
||||
* A reference to a definition.
|
||||
*/
|
||||
export interface DefinitionReference extends ShallowReference {
|
||||
export interface DefinitionReference {
|
||||
/**
|
||||
* The date the definition was created
|
||||
*/
|
||||
createdDate: Date;
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* The path this definitions belongs to
|
||||
*/
|
||||
|
@ -1028,6 +1063,10 @@ export interface DefinitionReference extends ShallowReference {
|
|||
* The Uri of the definition
|
||||
*/
|
||||
uri: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export enum DefinitionTriggerType {
|
||||
|
@ -1109,21 +1148,21 @@ export interface Deployment {
|
|||
}
|
||||
|
||||
/**
|
||||
* Deployment iformation for type "Build"
|
||||
* Deployment information for type "Build"
|
||||
*/
|
||||
export interface DeploymentBuild extends Deployment {
|
||||
buildId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deployment iformation for type "Deploy"
|
||||
* Deployment information for type "Deploy"
|
||||
*/
|
||||
export interface DeploymentDeploy extends Deployment {
|
||||
message: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Deployment iformation for type "Test"
|
||||
* Deployment information for type "Test"
|
||||
*/
|
||||
export interface DeploymentTest extends Deployment {
|
||||
runId: number;
|
||||
|
@ -1259,25 +1298,6 @@ export enum ProcessTemplateType {
|
|||
Upgrade = 2,
|
||||
}
|
||||
|
||||
export interface PropertyValue {
|
||||
/**
|
||||
* Guid of identity that changed this property value
|
||||
*/
|
||||
changedBy: string;
|
||||
/**
|
||||
* The date this property value was changed
|
||||
*/
|
||||
changedDate: Date;
|
||||
/**
|
||||
* Name in the name value mapping
|
||||
*/
|
||||
propertyName: string;
|
||||
/**
|
||||
* Value in the name value mapping
|
||||
*/
|
||||
value: any;
|
||||
}
|
||||
|
||||
export interface PullRequestTrigger extends BuildTrigger {
|
||||
branchFilters: string[];
|
||||
}
|
||||
|
@ -1348,21 +1368,6 @@ export enum RepositoryCleanOptions {
|
|||
AllBuildDir = 3,
|
||||
}
|
||||
|
||||
export interface RequestReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the requestor
|
||||
*/
|
||||
requestedFor: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface RetentionPolicy {
|
||||
artifacts: string[];
|
||||
artifactTypesToDelete: string[];
|
||||
|
@ -1451,24 +1456,6 @@ export enum ServiceHostStatus {
|
|||
Offline = 2,
|
||||
}
|
||||
|
||||
/**
|
||||
* An abstracted reference to some other resource. This class is used to provide the build data contracts with a uniform way to reference other resources in a way that provides easy traversal through links.
|
||||
*/
|
||||
export interface ShallowReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface SvnMappingDetails {
|
||||
depth: number;
|
||||
ignoreExternals: boolean;
|
||||
|
@ -1652,6 +1639,21 @@ export interface WorkspaceTemplate {
|
|||
workspaceId: number;
|
||||
}
|
||||
|
||||
export interface XamlBuildControllerReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface XamlBuildDefinition extends DefinitionReference {
|
||||
_links: any;
|
||||
/**
|
||||
|
@ -1682,7 +1684,7 @@ export interface XamlBuildDefinition extends DefinitionReference {
|
|||
/**
|
||||
* The last build on this definition
|
||||
*/
|
||||
lastBuild: ShallowReference;
|
||||
lastBuild: XamlBuildReference;
|
||||
/**
|
||||
* The repository
|
||||
*/
|
||||
|
@ -1697,6 +1699,51 @@ export interface XamlBuildDefinition extends DefinitionReference {
|
|||
triggerType: DefinitionTriggerType;
|
||||
}
|
||||
|
||||
export interface XamlBuildReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface XamlBuildServerReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export interface XamlDefinitionReference {
|
||||
/**
|
||||
* Id of the resource
|
||||
*/
|
||||
id: number;
|
||||
/**
|
||||
* Name of the linked resource (definition name, controller name, etc.)
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Full http link to the resource
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
AgentPoolQueue: {
|
||||
fields: <any>null
|
||||
|
@ -1724,6 +1771,9 @@ export var TypeInfo = {
|
|||
BuildAgent: {
|
||||
fields: <any>null
|
||||
},
|
||||
BuildAgentReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
BuildArtifact: {
|
||||
fields: <any>null
|
||||
},
|
||||
|
@ -2038,9 +2088,6 @@ export var TypeInfo = {
|
|||
"upgrade": 2,
|
||||
}
|
||||
},
|
||||
PropertyValue: {
|
||||
fields: <any>null
|
||||
},
|
||||
PullRequestTrigger: {
|
||||
fields: <any>null
|
||||
},
|
||||
|
@ -2077,9 +2124,6 @@ export var TypeInfo = {
|
|||
"allBuildDir": 3,
|
||||
}
|
||||
},
|
||||
RequestReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
RetentionPolicy: {
|
||||
fields: <any>null
|
||||
},
|
||||
|
@ -2108,9 +2152,6 @@ export var TypeInfo = {
|
|||
"offline": 2,
|
||||
}
|
||||
},
|
||||
ShallowReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
SvnMappingDetails: {
|
||||
fields: <any>null
|
||||
},
|
||||
|
@ -2189,9 +2230,21 @@ export var TypeInfo = {
|
|||
WorkspaceTemplate: {
|
||||
fields: <any>null
|
||||
},
|
||||
XamlBuildControllerReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
XamlBuildDefinition: {
|
||||
fields: <any>null
|
||||
},
|
||||
XamlBuildReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
XamlBuildServerReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
XamlDefinitionReference: {
|
||||
fields: <any>null
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AgentPoolQueue.fields = {
|
||||
|
@ -2279,13 +2332,13 @@ TypeInfo.Build.fields = {
|
|||
|
||||
TypeInfo.BuildAgent.fields = {
|
||||
controller: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildControllerReference
|
||||
},
|
||||
createdDate: {
|
||||
isDate: true,
|
||||
},
|
||||
server: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildServerReference
|
||||
},
|
||||
status: {
|
||||
enumType: TypeInfo.AgentStatus
|
||||
|
@ -2295,6 +2348,9 @@ TypeInfo.BuildAgent.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.BuildAgentReference.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.BuildArtifact.fields = {
|
||||
resource: {
|
||||
typeInfo: TypeInfo.ArtifactResource
|
||||
|
@ -2504,7 +2560,7 @@ TypeInfo.BuildDeployment.fields = {
|
|||
typeInfo: TypeInfo.BuildSummary
|
||||
},
|
||||
sourceBuild: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildReference
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -2618,10 +2674,10 @@ TypeInfo.BuildResourceUsage.fields = {
|
|||
TypeInfo.BuildServer.fields = {
|
||||
agents: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.BuildAgentReference
|
||||
},
|
||||
controller: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildControllerReference
|
||||
},
|
||||
status: {
|
||||
enumType: TypeInfo.ServiceHostStatus
|
||||
|
@ -2648,7 +2704,7 @@ TypeInfo.BuildStartedEvent.fields = {
|
|||
|
||||
TypeInfo.BuildSummary.fields = {
|
||||
build: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildReference
|
||||
},
|
||||
finishTime: {
|
||||
isDate: true,
|
||||
|
@ -2703,7 +2759,7 @@ TypeInfo.ContinuousDeploymentDefinition.fields = {
|
|||
typeInfo: TfsCoreInterfaces.TypeInfo.WebApiConnectedServiceRef
|
||||
},
|
||||
definition: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlDefinitionReference
|
||||
},
|
||||
project: {
|
||||
typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
||||
|
@ -2782,12 +2838,6 @@ TypeInfo.Issue.fields = {
|
|||
TypeInfo.MappingDetails.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.PropertyValue.fields = {
|
||||
changedDate: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.PullRequestTrigger.fields = {
|
||||
triggerType: {
|
||||
enumType: TypeInfo.DefinitionTriggerType
|
||||
|
@ -2797,12 +2847,6 @@ TypeInfo.PullRequestTrigger.fields = {
|
|||
TypeInfo.RealtimeBuildEvent.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.RequestReference.fields = {
|
||||
requestedFor: {
|
||||
typeInfo: VSSInterfaces.TypeInfo.IdentityRef
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.RetentionPolicy.fields = {
|
||||
};
|
||||
|
||||
|
@ -2822,9 +2866,6 @@ TypeInfo.ScheduleTrigger.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.ShallowReference.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.SvnMappingDetails.fields = {
|
||||
};
|
||||
|
||||
|
@ -2936,6 +2977,9 @@ TypeInfo.WorkspaceTemplate.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.XamlBuildControllerReference.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.XamlBuildDefinition.fields = {
|
||||
controller: {
|
||||
typeInfo: TypeInfo.BuildController
|
||||
|
@ -2947,7 +2991,7 @@ TypeInfo.XamlBuildDefinition.fields = {
|
|||
isDate: true,
|
||||
},
|
||||
lastBuild: {
|
||||
typeInfo: TypeInfo.ShallowReference
|
||||
typeInfo: TypeInfo.XamlBuildReference
|
||||
},
|
||||
project: {
|
||||
typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
||||
|
@ -2968,3 +3012,12 @@ TypeInfo.XamlBuildDefinition.fields = {
|
|||
enumType: TypeInfo.DefinitionType
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.XamlBuildReference.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.XamlBuildServerReference.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.XamlDefinitionReference.fields = {
|
||||
};
|
||||
|
|
|
@ -24,76 +24,10 @@ export interface AccessTokenResult {
|
|||
validTo: Date;
|
||||
}
|
||||
|
||||
export interface Authorization {
|
||||
accessIssued: Date;
|
||||
audience: string;
|
||||
authorizationId: string;
|
||||
identityId: string;
|
||||
isAccessUsed: boolean;
|
||||
isValid: boolean;
|
||||
redirectUri: string;
|
||||
registrationId: string;
|
||||
scopes: string;
|
||||
source: string;
|
||||
validFrom: Date;
|
||||
validTo: Date;
|
||||
}
|
||||
|
||||
export interface AuthorizationDecision {
|
||||
authorization: Authorization;
|
||||
authorizationError: AuthorizationError;
|
||||
authorizationGrant: AuthorizationGrant;
|
||||
hasError: boolean;
|
||||
isAuthorized: boolean;
|
||||
}
|
||||
|
||||
export interface AuthorizationDescription {
|
||||
clientRegistration: Registration;
|
||||
hasError: boolean;
|
||||
initiationError: InitiationError;
|
||||
scopeDescriptions: AuthorizationScopeDescription[];
|
||||
}
|
||||
|
||||
export interface AuthorizationDetails {
|
||||
authorization: Authorization;
|
||||
clientRegistration: Registration;
|
||||
scopeDescriptions: AuthorizationScopeDescription[];
|
||||
}
|
||||
|
||||
export enum AuthorizationError {
|
||||
None = 0,
|
||||
ClientIdRequired = 1,
|
||||
InvalidClientId = 2,
|
||||
ResponseTypeRequired = 3,
|
||||
ResponseTypeNotSupported = 4,
|
||||
ScopeRequired = 5,
|
||||
InvalidScope = 6,
|
||||
RedirectUriRequired = 7,
|
||||
InsecureRedirectUri = 8,
|
||||
InvalidRedirectUri = 9,
|
||||
InvalidUserId = 10,
|
||||
InvalidUserType = 11,
|
||||
AccessDenied = 12,
|
||||
}
|
||||
|
||||
export interface AuthorizationGrant {
|
||||
grantType: GrantType;
|
||||
}
|
||||
|
||||
export interface AuthorizationScopeDescription {
|
||||
description: string;
|
||||
market: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export enum ClientType {
|
||||
Confidential = 0,
|
||||
Public = 1,
|
||||
MediumTrust = 2,
|
||||
HighTrust = 3,
|
||||
FullTrust = 4,
|
||||
}
|
||||
|
||||
export enum GrantType {
|
||||
None = 0,
|
||||
JwtBearer = 1,
|
||||
|
@ -102,65 +36,10 @@ export enum GrantType {
|
|||
ClientCredentials = 4,
|
||||
}
|
||||
|
||||
export interface HostAuthorization {
|
||||
hostId: string;
|
||||
id: string;
|
||||
isValid: boolean;
|
||||
registrationId: string;
|
||||
}
|
||||
|
||||
export enum InitiationError {
|
||||
None = 0,
|
||||
ClientIdRequired = 1,
|
||||
InvalidClientId = 2,
|
||||
ResponseTypeRequired = 3,
|
||||
ResponseTypeNotSupported = 4,
|
||||
ScopeRequired = 5,
|
||||
InvalidScope = 6,
|
||||
RedirectUriRequired = 7,
|
||||
InsecureRedirectUri = 8,
|
||||
InvalidRedirectUri = 9,
|
||||
}
|
||||
|
||||
export interface RefreshTokenGrant extends AuthorizationGrant {
|
||||
jwt: VSSInterfaces.JsonWebToken;
|
||||
}
|
||||
|
||||
export interface Registration {
|
||||
clientType: ClientType;
|
||||
identityId: string;
|
||||
isValid: boolean;
|
||||
isWellKnown: boolean;
|
||||
organizationLocation: string;
|
||||
organizationName: string;
|
||||
/**
|
||||
* Raw cert data string from public key. This will be used for authenticating medium trust clients.
|
||||
*/
|
||||
publicKey: string;
|
||||
redirectUris: string[];
|
||||
registrationDescription: string;
|
||||
registrationId: string;
|
||||
registrationLocation: string;
|
||||
registrationLogoSecureLocation: string;
|
||||
registrationName: string;
|
||||
registrationPrivacyStatementLocation: string;
|
||||
registrationTermsOfServiceLocation: string;
|
||||
responseTypes: string;
|
||||
scopes: string;
|
||||
secret: string;
|
||||
secretVersionId: string;
|
||||
}
|
||||
|
||||
export enum ResponseType {
|
||||
None = 0,
|
||||
Assertion = 1,
|
||||
IdToken = 2,
|
||||
TenantPicker = 3,
|
||||
SignoutToken = 4,
|
||||
AppToken = 5,
|
||||
Code = 6,
|
||||
}
|
||||
|
||||
export enum TokenError {
|
||||
None = 0,
|
||||
GrantTypeRequired = 1,
|
||||
|
@ -198,50 +77,9 @@ export var TypeInfo = {
|
|||
AccessTokenResult: {
|
||||
fields: <any>null
|
||||
},
|
||||
Authorization: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDecision: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDescription: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDetails: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"clientIdRequired": 1,
|
||||
"invalidClientId": 2,
|
||||
"responseTypeRequired": 3,
|
||||
"responseTypeNotSupported": 4,
|
||||
"scopeRequired": 5,
|
||||
"invalidScope": 6,
|
||||
"redirectUriRequired": 7,
|
||||
"insecureRedirectUri": 8,
|
||||
"invalidRedirectUri": 9,
|
||||
"invalidUserId": 10,
|
||||
"invalidUserType": 11,
|
||||
"accessDenied": 12,
|
||||
}
|
||||
},
|
||||
AuthorizationGrant: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationScopeDescription: {
|
||||
fields: <any>null
|
||||
},
|
||||
ClientType: {
|
||||
enumValues: {
|
||||
"confidential": 0,
|
||||
"public": 1,
|
||||
"mediumTrust": 2,
|
||||
"highTrust": 3,
|
||||
"fullTrust": 4,
|
||||
}
|
||||
},
|
||||
GrantType: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
|
@ -251,40 +89,9 @@ export var TypeInfo = {
|
|||
"clientCredentials": 4,
|
||||
}
|
||||
},
|
||||
HostAuthorization: {
|
||||
fields: <any>null
|
||||
},
|
||||
InitiationError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"clientIdRequired": 1,
|
||||
"invalidClientId": 2,
|
||||
"responseTypeRequired": 3,
|
||||
"responseTypeNotSupported": 4,
|
||||
"scopeRequired": 5,
|
||||
"invalidScope": 6,
|
||||
"redirectUriRequired": 7,
|
||||
"insecureRedirectUri": 8,
|
||||
"invalidRedirectUri": 9,
|
||||
}
|
||||
},
|
||||
RefreshTokenGrant: {
|
||||
fields: <any>null
|
||||
},
|
||||
Registration: {
|
||||
fields: <any>null
|
||||
},
|
||||
ResponseType: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"assertion": 1,
|
||||
"idToken": 2,
|
||||
"tenantPicker": 3,
|
||||
"signoutToken": 4,
|
||||
"appToken": 5,
|
||||
"code": 6,
|
||||
}
|
||||
},
|
||||
TokenError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
|
@ -336,68 +143,12 @@ TypeInfo.AccessTokenResult.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.Authorization.fields = {
|
||||
accessIssued: {
|
||||
isDate: true,
|
||||
},
|
||||
validFrom: {
|
||||
isDate: true,
|
||||
},
|
||||
validTo: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDecision.fields = {
|
||||
authorization: {
|
||||
typeInfo: TypeInfo.Authorization
|
||||
},
|
||||
authorizationError: {
|
||||
enumType: TypeInfo.AuthorizationError
|
||||
},
|
||||
authorizationGrant: {
|
||||
typeInfo: TypeInfo.AuthorizationGrant
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDescription.fields = {
|
||||
clientRegistration: {
|
||||
typeInfo: TypeInfo.Registration
|
||||
},
|
||||
initiationError: {
|
||||
enumType: TypeInfo.InitiationError
|
||||
},
|
||||
scopeDescriptions: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.AuthorizationScopeDescription
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDetails.fields = {
|
||||
authorization: {
|
||||
typeInfo: TypeInfo.Authorization
|
||||
},
|
||||
clientRegistration: {
|
||||
typeInfo: TypeInfo.Registration
|
||||
},
|
||||
scopeDescriptions: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.AuthorizationScopeDescription
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationGrant.fields = {
|
||||
grantType: {
|
||||
enumType: TypeInfo.GrantType
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationScopeDescription.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.HostAuthorization.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.RefreshTokenGrant.fields = {
|
||||
grantType: {
|
||||
enumType: TypeInfo.GrantType
|
||||
|
@ -406,9 +157,3 @@ TypeInfo.RefreshTokenGrant.fields = {
|
|||
typeInfo: VSSInterfaces.TypeInfo.JsonWebToken
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.Registration.fields = {
|
||||
clientType: {
|
||||
enumType: TypeInfo.ClientType
|
||||
},
|
||||
};
|
||||
|
|
|
@ -748,6 +748,29 @@ export interface ExtensionRequestEvent {
|
|||
updateType: ExtensionRequestUpdateType;
|
||||
}
|
||||
|
||||
export interface ExtensionRequestsEvent {
|
||||
/**
|
||||
* The extension which has been requested
|
||||
*/
|
||||
extension: GalleryInterfaces.PublishedExtension;
|
||||
/**
|
||||
* Information about the host for which this extension is requested
|
||||
*/
|
||||
host: ExtensionHost;
|
||||
/**
|
||||
* Gallery host url
|
||||
*/
|
||||
links: ExtensionRequestUrls;
|
||||
/**
|
||||
* The extension request object
|
||||
*/
|
||||
requests: ExtensionRequest[];
|
||||
/**
|
||||
* The type of update that was made
|
||||
*/
|
||||
updateType: ExtensionRequestUpdateType;
|
||||
}
|
||||
|
||||
export enum ExtensionRequestState {
|
||||
/**
|
||||
* The request has been opened, but not yet responded to
|
||||
|
@ -1206,6 +1229,9 @@ export var TypeInfo = {
|
|||
ExtensionRequestEvent: {
|
||||
fields: <any>null
|
||||
},
|
||||
ExtensionRequestsEvent: {
|
||||
fields: <any>null
|
||||
},
|
||||
ExtensionRequestState: {
|
||||
enumValues: {
|
||||
"open": 0,
|
||||
|
@ -1531,6 +1557,25 @@ TypeInfo.ExtensionRequestEvent.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.ExtensionRequestsEvent.fields = {
|
||||
extension: {
|
||||
typeInfo: GalleryInterfaces.TypeInfo.PublishedExtension
|
||||
},
|
||||
host: {
|
||||
typeInfo: TypeInfo.ExtensionHost
|
||||
},
|
||||
links: {
|
||||
typeInfo: TypeInfo.ExtensionRequestUrls
|
||||
},
|
||||
requests: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.ExtensionRequest
|
||||
},
|
||||
updateType: {
|
||||
enumType: TypeInfo.ExtensionRequestUpdateType
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.ExtensionRequestUrls.fields = {
|
||||
};
|
||||
|
||||
|
|
|
@ -1287,7 +1287,6 @@ export interface ReviewsResult {
|
|||
* List of reviews
|
||||
*/
|
||||
reviews: Review[];
|
||||
totalIgnoredReviewCount: number;
|
||||
/**
|
||||
* Count of total review items
|
||||
*/
|
||||
|
|
|
@ -1309,15 +1309,6 @@ export interface GitRefUpdateResult {
|
|||
updateStatus: GitRefUpdateStatus;
|
||||
}
|
||||
|
||||
export interface GitRefUpdateResultSet {
|
||||
countFailed: number;
|
||||
countSucceeded: number;
|
||||
pushCorrelationId: string;
|
||||
pushIds: { [key: string] : number; };
|
||||
pushTime: Date;
|
||||
results: GitRefUpdateResult[];
|
||||
}
|
||||
|
||||
export enum GitRefUpdateStatus {
|
||||
/**
|
||||
* Indicates that the ref update request was completed successfully.
|
||||
|
@ -2565,9 +2556,6 @@ export var TypeInfo = {
|
|||
GitRefUpdateResult: {
|
||||
fields: <any>null
|
||||
},
|
||||
GitRefUpdateResultSet: {
|
||||
fields: <any>null
|
||||
},
|
||||
GitRefUpdateStatus: {
|
||||
enumValues: {
|
||||
"succeeded": 0,
|
||||
|
@ -4202,16 +4190,6 @@ TypeInfo.GitRefUpdateResult.fields = {
|
|||
},
|
||||
};
|
||||
|
||||
TypeInfo.GitRefUpdateResultSet.fields = {
|
||||
pushTime: {
|
||||
isDate: true,
|
||||
},
|
||||
results: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.GitRefUpdateResult
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.GitRepository.fields = {
|
||||
project: {
|
||||
typeInfo: TfsCoreInterfaces.TypeInfo.TeamProjectReference
|
||||
|
|
|
@ -119,9 +119,9 @@ export enum RelativeToSetting {
|
|||
}
|
||||
|
||||
export interface ResourceAreaInfo {
|
||||
areaId: string;
|
||||
areaName: string;
|
||||
id: string;
|
||||
locationUrl: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
export interface ServiceDefinition {
|
||||
|
|
|
@ -709,6 +709,10 @@ export enum SubscriptionQueryFlags {
|
|||
* For a subscription the caller does not have permission to view, return basic (non-confidential) information.
|
||||
*/
|
||||
AlwaysReturnBasicInformation = 22,
|
||||
/**
|
||||
* To include subscriptions from other services, this is only needed for contributed subscriptions
|
||||
*/
|
||||
IncludeRemoteContributedSubscriptions = 50,
|
||||
/**
|
||||
* Include all group, invalid, and subscriptions marked for deletion.
|
||||
*/
|
||||
|
@ -742,6 +746,14 @@ export enum SubscriptionStatus {
|
|||
* Subscription is disabled and will be deleted.
|
||||
*/
|
||||
PendingDeletion = -100,
|
||||
/**
|
||||
* Subscription is disabled because the identity is no longer active
|
||||
*/
|
||||
DisabledInactiveIdentity = -8,
|
||||
/**
|
||||
* Subscription is disabled because message queue is not supported.
|
||||
*/
|
||||
DisabledMessageQueueNotSupported = -7,
|
||||
/**
|
||||
* Subscription is disabled because its subscriber is unknown.
|
||||
*/
|
||||
|
@ -983,6 +995,7 @@ export var TypeInfo = {
|
|||
"includeDeletedSubscriptions": 4,
|
||||
"includeFilterDetails": 8,
|
||||
"alwaysReturnBasicInformation": 22,
|
||||
"includeRemoteContributedSubscriptions": 50,
|
||||
"includeAllSubscriptions": 7,
|
||||
}
|
||||
},
|
||||
|
@ -996,6 +1009,8 @@ export var TypeInfo = {
|
|||
enumValues: {
|
||||
"jailedByNotificationsVolume": -200,
|
||||
"pendingDeletion": -100,
|
||||
"disabledInactiveIdentity": -8,
|
||||
"disabledMessageQueueNotSupported": -7,
|
||||
"disabledMissingIdentity": -6,
|
||||
"disabledInvalidRoleExpression": -5,
|
||||
"disabledInvalidPathClause": -4,
|
||||
|
|
|
@ -0,0 +1,231 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
|
||||
export interface AttributeDescriptor {
|
||||
attributeName: string;
|
||||
containerName: string;
|
||||
}
|
||||
|
||||
export interface AttributesContainer {
|
||||
attributes: { [key: string] : ProfileAttribute; };
|
||||
containerName: string;
|
||||
revision: number;
|
||||
}
|
||||
|
||||
export interface Avatar {
|
||||
isAutoGenerated: boolean;
|
||||
size: AvatarSize;
|
||||
timeStamp: Date;
|
||||
value: number[];
|
||||
}
|
||||
|
||||
export enum AvatarSize {
|
||||
Small = 0,
|
||||
Medium = 1,
|
||||
Large = 2,
|
||||
}
|
||||
|
||||
export interface CoreProfileAttribute extends ProfileAttributeBase<any> {
|
||||
}
|
||||
|
||||
export interface Country {
|
||||
code: string;
|
||||
englishName: string;
|
||||
}
|
||||
|
||||
export interface CreateProfileContext {
|
||||
cIData: { [key: string] : any; };
|
||||
contactWithOffers: boolean;
|
||||
countryName: string;
|
||||
displayName: string;
|
||||
emailAddress: string;
|
||||
hasAccount: boolean;
|
||||
language: string;
|
||||
phoneNumber: string;
|
||||
}
|
||||
|
||||
export interface GeoRegion {
|
||||
regionCode: string;
|
||||
}
|
||||
|
||||
export interface Profile {
|
||||
applicationContainer: AttributesContainer;
|
||||
coreAttributes: { [key: string] : CoreProfileAttribute; };
|
||||
coreRevision: number;
|
||||
id: string;
|
||||
revision: number;
|
||||
timeStamp: Date;
|
||||
}
|
||||
|
||||
export interface ProfileAttribute extends ProfileAttributeBase<string> {
|
||||
}
|
||||
|
||||
export interface ProfileAttributeBase<T> {
|
||||
descriptor: AttributeDescriptor;
|
||||
revision: number;
|
||||
timeStamp: Date;
|
||||
value: T;
|
||||
}
|
||||
|
||||
/**
|
||||
* Country/region information
|
||||
*/
|
||||
export interface ProfileRegion {
|
||||
/**
|
||||
* The two-letter code defined in ISO 3166 for the country/region.
|
||||
*/
|
||||
code: string;
|
||||
/**
|
||||
* Localized country/region name
|
||||
*/
|
||||
name: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Container of country/region information
|
||||
*/
|
||||
export interface ProfileRegions {
|
||||
/**
|
||||
* List of country/region code with contact consent requirement type of notice
|
||||
*/
|
||||
noticeContactConsentRequirementRegions: string[];
|
||||
/**
|
||||
* List of country/region code with contact consent requirement type of opt-out
|
||||
*/
|
||||
optOutContactConsentRequirementRegions: string[];
|
||||
/**
|
||||
* List of country/regions
|
||||
*/
|
||||
regions: ProfileRegion[];
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
AttributeDescriptor: {
|
||||
fields: <any>null
|
||||
},
|
||||
AttributesContainer: {
|
||||
fields: <any>null
|
||||
},
|
||||
Avatar: {
|
||||
fields: <any>null
|
||||
},
|
||||
AvatarSize: {
|
||||
enumValues: {
|
||||
"small": 0,
|
||||
"medium": 1,
|
||||
"large": 2,
|
||||
}
|
||||
},
|
||||
CoreProfileAttribute: {
|
||||
fields: <any>null
|
||||
},
|
||||
Country: {
|
||||
fields: <any>null
|
||||
},
|
||||
CreateProfileContext: {
|
||||
fields: <any>null
|
||||
},
|
||||
GeoRegion: {
|
||||
fields: <any>null
|
||||
},
|
||||
Profile: {
|
||||
fields: <any>null
|
||||
},
|
||||
ProfileAttribute: {
|
||||
fields: <any>null
|
||||
},
|
||||
ProfileAttributeBase: {
|
||||
fields: <any>null
|
||||
},
|
||||
ProfileRegion: {
|
||||
fields: <any>null
|
||||
},
|
||||
ProfileRegions: {
|
||||
fields: <any>null
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AttributeDescriptor.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.AttributesContainer.fields = {
|
||||
attributes: {
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.Avatar.fields = {
|
||||
size: {
|
||||
enumType: TypeInfo.AvatarSize
|
||||
},
|
||||
timeStamp: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.CoreProfileAttribute.fields = {
|
||||
descriptor: {
|
||||
typeInfo: TypeInfo.AttributeDescriptor
|
||||
},
|
||||
timeStamp: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.Country.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.CreateProfileContext.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.GeoRegion.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.Profile.fields = {
|
||||
applicationContainer: {
|
||||
typeInfo: TypeInfo.AttributesContainer
|
||||
},
|
||||
coreAttributes: {
|
||||
},
|
||||
timeStamp: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.ProfileAttribute.fields = {
|
||||
descriptor: {
|
||||
typeInfo: TypeInfo.AttributeDescriptor
|
||||
},
|
||||
timeStamp: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.ProfileAttributeBase.fields = {
|
||||
descriptor: {
|
||||
typeInfo: TypeInfo.AttributeDescriptor
|
||||
},
|
||||
timeStamp: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.ProfileRegion.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.ProfileRegions.fields = {
|
||||
regions: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.ProfileRegion
|
||||
},
|
||||
};
|
|
@ -34,9 +34,6 @@ export enum AgentArtifactType {
|
|||
ExternalTfsBuild = 8,
|
||||
Custom = 9,
|
||||
Tfvc = 10,
|
||||
Svn = 11,
|
||||
ExternalGit = 12,
|
||||
Pipeline = 13,
|
||||
}
|
||||
|
||||
export interface AgentBasedDeployPhase extends DeployPhase {
|
||||
|
@ -1312,9 +1309,6 @@ export var TypeInfo = {
|
|||
"externalTfsBuild": 8,
|
||||
"custom": 9,
|
||||
"tfvc": 10,
|
||||
"svn": 11,
|
||||
"externalGit": 12,
|
||||
"pipeline": 13,
|
||||
}
|
||||
},
|
||||
AgentBasedDeployPhase: {
|
||||
|
|
|
@ -0,0 +1,126 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
||||
|
||||
|
||||
export enum RoleAccess {
|
||||
/**
|
||||
* Access has been explicitly set.
|
||||
*/
|
||||
Assigned = 1,
|
||||
/**
|
||||
* Access has been inherited from a higher scope.
|
||||
*/
|
||||
Inherited = 2,
|
||||
}
|
||||
|
||||
export interface RoleAssignment {
|
||||
/**
|
||||
* Designates the role as explicitly assigned or inherited.
|
||||
*/
|
||||
access: RoleAccess;
|
||||
/**
|
||||
* User friendly description of access assignment.
|
||||
*/
|
||||
accessDisplayName: string;
|
||||
/**
|
||||
* The user to whom the role is assigned.
|
||||
*/
|
||||
identity: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* The role assigned to the user.
|
||||
*/
|
||||
role: SecurityRole;
|
||||
}
|
||||
|
||||
export interface SecurityRole {
|
||||
/**
|
||||
* Permissions the role is allowed.
|
||||
*/
|
||||
allowPermissions: number;
|
||||
/**
|
||||
* Permissions the role is denied.
|
||||
*/
|
||||
denyPermissions: number;
|
||||
/**
|
||||
* Description of user access defined by the role
|
||||
*/
|
||||
description: string;
|
||||
/**
|
||||
* User friendly name of the role.
|
||||
*/
|
||||
displayName: string;
|
||||
/**
|
||||
* Globally unique identifier for the role.
|
||||
*/
|
||||
identifier: string;
|
||||
/**
|
||||
* Unique name of the role in the scope.
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Returns the id of the ParentScope.
|
||||
*/
|
||||
scope: string;
|
||||
}
|
||||
|
||||
export interface UserRoleAssignmentRef {
|
||||
/**
|
||||
* The name of the role assigned.
|
||||
*/
|
||||
roleName: string;
|
||||
/**
|
||||
* Identifier of the user given the role assignment.
|
||||
*/
|
||||
uniqueName: string;
|
||||
/**
|
||||
* Unique id of the user given the role assignment.
|
||||
*/
|
||||
userId: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
RoleAccess: {
|
||||
enumValues: {
|
||||
"assigned": 1,
|
||||
"inherited": 2,
|
||||
}
|
||||
},
|
||||
RoleAssignment: {
|
||||
fields: <any>null
|
||||
},
|
||||
SecurityRole: {
|
||||
fields: <any>null
|
||||
},
|
||||
UserRoleAssignmentRef: {
|
||||
fields: <any>null
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.RoleAssignment.fields = {
|
||||
access: {
|
||||
enumType: TypeInfo.RoleAccess
|
||||
},
|
||||
identity: {
|
||||
typeInfo: VSSInterfaces.TypeInfo.IdentityRef
|
||||
},
|
||||
role: {
|
||||
typeInfo: TypeInfo.SecurityRole
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.SecurityRole.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.UserRoleAssignmentRef.fields = {
|
||||
};
|
|
@ -0,0 +1,414 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
||||
|
||||
|
||||
export interface AccessTokenResult {
|
||||
accessToken: VSSInterfaces.JsonWebToken;
|
||||
accessTokenError: TokenError;
|
||||
authorizationId: string;
|
||||
errorDescription: string;
|
||||
hasError: boolean;
|
||||
refreshToken: RefreshTokenGrant;
|
||||
tokenType: string;
|
||||
validTo: Date;
|
||||
}
|
||||
|
||||
export interface Authorization {
|
||||
accessIssued: Date;
|
||||
audience: string;
|
||||
authorizationId: string;
|
||||
identityId: string;
|
||||
isAccessUsed: boolean;
|
||||
isValid: boolean;
|
||||
redirectUri: string;
|
||||
registrationId: string;
|
||||
scopes: string;
|
||||
source: string;
|
||||
validFrom: Date;
|
||||
validTo: Date;
|
||||
}
|
||||
|
||||
export interface AuthorizationDecision {
|
||||
authorization: Authorization;
|
||||
authorizationError: AuthorizationError;
|
||||
authorizationGrant: AuthorizationGrant;
|
||||
hasError: boolean;
|
||||
isAuthorized: boolean;
|
||||
}
|
||||
|
||||
export interface AuthorizationDescription {
|
||||
clientRegistration: Registration;
|
||||
hasError: boolean;
|
||||
initiationError: InitiationError;
|
||||
scopeDescriptions: AuthorizationScopeDescription[];
|
||||
}
|
||||
|
||||
export interface AuthorizationDetails {
|
||||
authorization: Authorization;
|
||||
clientRegistration: Registration;
|
||||
scopeDescriptions: AuthorizationScopeDescription[];
|
||||
}
|
||||
|
||||
export enum AuthorizationError {
|
||||
None = 0,
|
||||
ClientIdRequired = 1,
|
||||
InvalidClientId = 2,
|
||||
ResponseTypeRequired = 3,
|
||||
ResponseTypeNotSupported = 4,
|
||||
ScopeRequired = 5,
|
||||
InvalidScope = 6,
|
||||
RedirectUriRequired = 7,
|
||||
InsecureRedirectUri = 8,
|
||||
InvalidRedirectUri = 9,
|
||||
InvalidUserId = 10,
|
||||
InvalidUserType = 11,
|
||||
AccessDenied = 12,
|
||||
}
|
||||
|
||||
export interface AuthorizationGrant {
|
||||
grantType: GrantType;
|
||||
}
|
||||
|
||||
export interface AuthorizationScopeDescription {
|
||||
description: string;
|
||||
market: string;
|
||||
title: string;
|
||||
}
|
||||
|
||||
export enum ClientType {
|
||||
Confidential = 0,
|
||||
Public = 1,
|
||||
MediumTrust = 2,
|
||||
HighTrust = 3,
|
||||
FullTrust = 4,
|
||||
}
|
||||
|
||||
export enum GrantType {
|
||||
None = 0,
|
||||
JwtBearer = 1,
|
||||
RefreshToken = 2,
|
||||
Implicit = 3,
|
||||
ClientCredentials = 4,
|
||||
}
|
||||
|
||||
export interface HostAuthorization {
|
||||
hostId: string;
|
||||
id: string;
|
||||
isValid: boolean;
|
||||
registrationId: string;
|
||||
}
|
||||
|
||||
export enum InitiationError {
|
||||
None = 0,
|
||||
ClientIdRequired = 1,
|
||||
InvalidClientId = 2,
|
||||
ResponseTypeRequired = 3,
|
||||
ResponseTypeNotSupported = 4,
|
||||
ScopeRequired = 5,
|
||||
InvalidScope = 6,
|
||||
RedirectUriRequired = 7,
|
||||
InsecureRedirectUri = 8,
|
||||
InvalidRedirectUri = 9,
|
||||
}
|
||||
|
||||
export interface RefreshTokenGrant extends AuthorizationGrant {
|
||||
jwt: VSSInterfaces.JsonWebToken;
|
||||
}
|
||||
|
||||
export interface Registration {
|
||||
clientType: ClientType;
|
||||
identityId: string;
|
||||
isValid: boolean;
|
||||
isWellKnown: boolean;
|
||||
organizationLocation: string;
|
||||
organizationName: string;
|
||||
/**
|
||||
* Raw cert data string from public key. This will be used for authenticating medium trust clients.
|
||||
*/
|
||||
publicKey: string;
|
||||
redirectUris: string[];
|
||||
registrationDescription: string;
|
||||
registrationId: string;
|
||||
registrationLocation: string;
|
||||
registrationLogoSecureLocation: string;
|
||||
registrationName: string;
|
||||
registrationPrivacyStatementLocation: string;
|
||||
registrationTermsOfServiceLocation: string;
|
||||
responseTypes: string;
|
||||
scopes: string;
|
||||
secret: string;
|
||||
secretVersionId: string;
|
||||
}
|
||||
|
||||
export enum ResponseType {
|
||||
None = 0,
|
||||
Assertion = 1,
|
||||
IdToken = 2,
|
||||
TenantPicker = 3,
|
||||
SignoutToken = 4,
|
||||
AppToken = 5,
|
||||
Code = 6,
|
||||
}
|
||||
|
||||
export enum TokenError {
|
||||
None = 0,
|
||||
GrantTypeRequired = 1,
|
||||
AuthorizationGrantRequired = 2,
|
||||
ClientSecretRequired = 3,
|
||||
RedirectUriRequired = 4,
|
||||
InvalidAuthorizationGrant = 5,
|
||||
InvalidAuthorizationScopes = 6,
|
||||
InvalidRefreshToken = 7,
|
||||
AuthorizationNotFound = 8,
|
||||
AuthorizationGrantExpired = 9,
|
||||
AccessAlreadyIssued = 10,
|
||||
InvalidRedirectUri = 11,
|
||||
AccessTokenNotFound = 12,
|
||||
InvalidAccessToken = 13,
|
||||
AccessTokenAlreadyRefreshed = 14,
|
||||
InvalidClientSecret = 15,
|
||||
ClientSecretExpired = 16,
|
||||
ServerError = 17,
|
||||
AccessDenied = 18,
|
||||
AccessTokenKeyRequired = 19,
|
||||
InvalidAccessTokenKey = 20,
|
||||
FailedToGetAccessToken = 21,
|
||||
InvalidClientId = 22,
|
||||
InvalidClient = 23,
|
||||
InvalidValidTo = 24,
|
||||
InvalidUserId = 25,
|
||||
FailedToIssueAccessToken = 26,
|
||||
AuthorizationGrantScopeMissing = 27,
|
||||
InvalidPublicAccessTokenKey = 28,
|
||||
InvalidPublicAccessToken = 29,
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
AccessTokenResult: {
|
||||
fields: <any>null
|
||||
},
|
||||
Authorization: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDecision: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDescription: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationDetails: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"clientIdRequired": 1,
|
||||
"invalidClientId": 2,
|
||||
"responseTypeRequired": 3,
|
||||
"responseTypeNotSupported": 4,
|
||||
"scopeRequired": 5,
|
||||
"invalidScope": 6,
|
||||
"redirectUriRequired": 7,
|
||||
"insecureRedirectUri": 8,
|
||||
"invalidRedirectUri": 9,
|
||||
"invalidUserId": 10,
|
||||
"invalidUserType": 11,
|
||||
"accessDenied": 12,
|
||||
}
|
||||
},
|
||||
AuthorizationGrant: {
|
||||
fields: <any>null
|
||||
},
|
||||
AuthorizationScopeDescription: {
|
||||
fields: <any>null
|
||||
},
|
||||
ClientType: {
|
||||
enumValues: {
|
||||
"confidential": 0,
|
||||
"public": 1,
|
||||
"mediumTrust": 2,
|
||||
"highTrust": 3,
|
||||
"fullTrust": 4,
|
||||
}
|
||||
},
|
||||
GrantType: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"jwtBearer": 1,
|
||||
"refreshToken": 2,
|
||||
"implicit": 3,
|
||||
"clientCredentials": 4,
|
||||
}
|
||||
},
|
||||
HostAuthorization: {
|
||||
fields: <any>null
|
||||
},
|
||||
InitiationError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"clientIdRequired": 1,
|
||||
"invalidClientId": 2,
|
||||
"responseTypeRequired": 3,
|
||||
"responseTypeNotSupported": 4,
|
||||
"scopeRequired": 5,
|
||||
"invalidScope": 6,
|
||||
"redirectUriRequired": 7,
|
||||
"insecureRedirectUri": 8,
|
||||
"invalidRedirectUri": 9,
|
||||
}
|
||||
},
|
||||
RefreshTokenGrant: {
|
||||
fields: <any>null
|
||||
},
|
||||
Registration: {
|
||||
fields: <any>null
|
||||
},
|
||||
ResponseType: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"assertion": 1,
|
||||
"idToken": 2,
|
||||
"tenantPicker": 3,
|
||||
"signoutToken": 4,
|
||||
"appToken": 5,
|
||||
"code": 6,
|
||||
}
|
||||
},
|
||||
TokenError: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"grantTypeRequired": 1,
|
||||
"authorizationGrantRequired": 2,
|
||||
"clientSecretRequired": 3,
|
||||
"redirectUriRequired": 4,
|
||||
"invalidAuthorizationGrant": 5,
|
||||
"invalidAuthorizationScopes": 6,
|
||||
"invalidRefreshToken": 7,
|
||||
"authorizationNotFound": 8,
|
||||
"authorizationGrantExpired": 9,
|
||||
"accessAlreadyIssued": 10,
|
||||
"invalidRedirectUri": 11,
|
||||
"accessTokenNotFound": 12,
|
||||
"invalidAccessToken": 13,
|
||||
"accessTokenAlreadyRefreshed": 14,
|
||||
"invalidClientSecret": 15,
|
||||
"clientSecretExpired": 16,
|
||||
"serverError": 17,
|
||||
"accessDenied": 18,
|
||||
"accessTokenKeyRequired": 19,
|
||||
"invalidAccessTokenKey": 20,
|
||||
"failedToGetAccessToken": 21,
|
||||
"invalidClientId": 22,
|
||||
"invalidClient": 23,
|
||||
"invalidValidTo": 24,
|
||||
"invalidUserId": 25,
|
||||
"failedToIssueAccessToken": 26,
|
||||
"authorizationGrantScopeMissing": 27,
|
||||
"invalidPublicAccessTokenKey": 28,
|
||||
"invalidPublicAccessToken": 29,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AccessTokenResult.fields = {
|
||||
accessToken: {
|
||||
typeInfo: VSSInterfaces.TypeInfo.JsonWebToken
|
||||
},
|
||||
accessTokenError: {
|
||||
enumType: TypeInfo.TokenError
|
||||
},
|
||||
refreshToken: {
|
||||
typeInfo: TypeInfo.RefreshTokenGrant
|
||||
},
|
||||
validTo: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.Authorization.fields = {
|
||||
accessIssued: {
|
||||
isDate: true,
|
||||
},
|
||||
validFrom: {
|
||||
isDate: true,
|
||||
},
|
||||
validTo: {
|
||||
isDate: true,
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDecision.fields = {
|
||||
authorization: {
|
||||
typeInfo: TypeInfo.Authorization
|
||||
},
|
||||
authorizationError: {
|
||||
enumType: TypeInfo.AuthorizationError
|
||||
},
|
||||
authorizationGrant: {
|
||||
typeInfo: TypeInfo.AuthorizationGrant
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDescription.fields = {
|
||||
clientRegistration: {
|
||||
typeInfo: TypeInfo.Registration
|
||||
},
|
||||
initiationError: {
|
||||
enumType: TypeInfo.InitiationError
|
||||
},
|
||||
scopeDescriptions: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.AuthorizationScopeDescription
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationDetails.fields = {
|
||||
authorization: {
|
||||
typeInfo: TypeInfo.Authorization
|
||||
},
|
||||
clientRegistration: {
|
||||
typeInfo: TypeInfo.Registration
|
||||
},
|
||||
scopeDescriptions: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.AuthorizationScopeDescription
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationGrant.fields = {
|
||||
grantType: {
|
||||
enumType: TypeInfo.GrantType
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuthorizationScopeDescription.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.HostAuthorization.fields = {
|
||||
};
|
||||
|
||||
TypeInfo.RefreshTokenGrant.fields = {
|
||||
grantType: {
|
||||
enumType: TypeInfo.GrantType
|
||||
},
|
||||
jwt: {
|
||||
typeInfo: VSSInterfaces.TypeInfo.JsonWebToken
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.Registration.fields = {
|
||||
clientType: {
|
||||
enumType: TypeInfo.ClientType
|
||||
},
|
||||
};
|
Загрузка…
Ссылка в новой задаче