Regenerate APIs m141 (#248)
* Regenerate APIs m141 * Updating inputValues to be optional so it doesn't break extending it * Uploaded wrong version, this used most recent client.nustache
This commit is contained in:
Родитель
3657cfc708
Коммит
e852eb9635
1161
api/BuildApi.ts
1161
api/BuildApi.ts
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 CoreInterfaces = require("./interfaces/CoreInterfaces");
|
||||
import OperationsInterfaces = require("./interfaces/common/OperationsInterfaces");
|
||||
|
@ -75,7 +73,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"b4f70219-e18b-42c5-abe3-98b07d35525e",
|
||||
routeValues);
|
||||
|
@ -117,7 +115,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"b4f70219-e18b-42c5-abe3-98b07d35525e",
|
||||
routeValues);
|
||||
|
@ -162,7 +160,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"b4f70219-e18b-42c5-abe3-98b07d35525e",
|
||||
routeValues,
|
||||
|
@ -204,7 +202,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"5ead0b70-2572-4697-97e9-f341069a783a",
|
||||
routeValues);
|
||||
|
@ -245,7 +243,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"5ead0b70-2572-4697-97e9-f341069a783a",
|
||||
routeValues);
|
||||
|
@ -284,7 +282,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"5ead0b70-2572-4697-97e9-f341069a783a",
|
||||
routeValues);
|
||||
|
@ -325,7 +323,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"5ead0b70-2572-4697-97e9-f341069a783a",
|
||||
routeValues);
|
||||
|
@ -378,7 +376,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"294c494c-2600-4d7e-b76c-3dd50c3c95be",
|
||||
routeValues,
|
||||
|
@ -420,7 +418,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"93878975-88c5-4e6a-8abb-7ddd77a8a7d8",
|
||||
routeValues);
|
||||
|
@ -458,7 +456,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"93878975-88c5-4e6a-8abb-7ddd77a8a7d8",
|
||||
routeValues);
|
||||
|
@ -499,7 +497,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"8031090f-ef1d-4af6-85fc-698cd75d42bf",
|
||||
routeValues);
|
||||
|
@ -546,7 +544,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"8031090f-ef1d-4af6-85fc-698cd75d42bf",
|
||||
routeValues,
|
||||
|
@ -589,7 +587,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"6488a877-4749-4954-82ea-7340d36be9f2",
|
||||
routeValues,
|
||||
|
@ -640,7 +638,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"core",
|
||||
"603fe2ac-9723-48b9-88ad-09305aa6c6e1",
|
||||
routeValues,
|
||||
|
@ -667,7 +665,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* Get project references with the specified state
|
||||
* Get all projects in the organization that the authenticated user has access to.
|
||||
*
|
||||
* @param {any} stateFilter - Filter on team projects in a specific team project state (default: WellFormed).
|
||||
* @param {number} top
|
||||
|
@ -694,7 +692,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"core",
|
||||
"603fe2ac-9723-48b9-88ad-09305aa6c6e1",
|
||||
routeValues,
|
||||
|
@ -721,7 +719,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* Queue a project creation.
|
||||
* Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status.
|
||||
*
|
||||
* @param {CoreInterfaces.TeamProject} projectToCreate - The project to create.
|
||||
*/
|
||||
|
@ -735,7 +733,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"core",
|
||||
"603fe2ac-9723-48b9-88ad-09305aa6c6e1",
|
||||
routeValues);
|
||||
|
@ -761,7 +759,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* Queue a project deletion.
|
||||
* Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status.
|
||||
*
|
||||
* @param {string} projectId - The project id of the project to delete.
|
||||
*/
|
||||
|
@ -776,7 +774,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"core",
|
||||
"603fe2ac-9723-48b9-88ad-09305aa6c6e1",
|
||||
routeValues);
|
||||
|
@ -819,7 +817,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"core",
|
||||
"603fe2ac-9723-48b9-88ad-09305aa6c6e1",
|
||||
routeValues);
|
||||
|
@ -866,7 +864,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"4976a71a-4487-49aa-8aab-a1eda469037a",
|
||||
routeValues,
|
||||
|
@ -914,7 +912,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"core",
|
||||
"4976a71a-4487-49aa-8aab-a1eda469037a",
|
||||
routeValues);
|
||||
|
@ -953,7 +951,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"ec1f4311-f2b4-4c15-b2b8-8990b80d2908",
|
||||
routeValues);
|
||||
|
@ -986,6 +984,9 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
proxyUrl: string,
|
||||
site?: string
|
||||
): Promise<void> {
|
||||
if (proxyUrl == null) {
|
||||
throw new TypeError('proxyUrl can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -998,7 +999,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"ec1f4311-f2b4-4c15-b2b8-8990b80d2908",
|
||||
routeValues,
|
||||
|
@ -1041,7 +1042,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"ec1f4311-f2b4-4c15-b2b8-8990b80d2908",
|
||||
routeValues,
|
||||
|
@ -1092,7 +1093,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"7a4d9ee9-3433-4347-b47a-7a80f1cf307e",
|
||||
routeValues,
|
||||
|
@ -1136,7 +1137,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"d30a3dd1-f8ba-442a-b86a-bd0c0c383e59",
|
||||
routeValues);
|
||||
|
@ -1180,7 +1181,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"d30a3dd1-f8ba-442a-b86a-bd0c0c383e59",
|
||||
routeValues);
|
||||
|
@ -1224,7 +1225,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"d30a3dd1-f8ba-442a-b86a-bd0c0c383e59",
|
||||
routeValues);
|
||||
|
@ -1277,7 +1278,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"d30a3dd1-f8ba-442a-b86a-bd0c0c383e59",
|
||||
routeValues,
|
||||
|
@ -1324,7 +1325,7 @@ export class CoreApi extends basem.ClientApiBase implements ICoreApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"core",
|
||||
"d30a3dd1-f8ba-442a-b86a-bd0c0c383e59",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 DashboardInterfaces = require("./interfaces/DashboardInterfaces");
|
||||
import TfsCoreInterfaces = require("./interfaces/CoreInterfaces");
|
||||
|
@ -31,8 +29,8 @@ export interface IDashboardApi extends basem.ClientApiBase {
|
|||
getWidget(teamContext: TfsCoreInterfaces.TeamContext, dashboardId: string, widgetId: string): Promise<DashboardInterfaces.Widget>;
|
||||
replaceWidget(widget: DashboardInterfaces.Widget, teamContext: TfsCoreInterfaces.TeamContext, dashboardId: string, widgetId: string): Promise<DashboardInterfaces.Widget>;
|
||||
updateWidget(widget: DashboardInterfaces.Widget, teamContext: TfsCoreInterfaces.TeamContext, dashboardId: string, widgetId: string): Promise<DashboardInterfaces.Widget>;
|
||||
getWidgetMetadata(contributionId: string): Promise<DashboardInterfaces.WidgetMetadataResponse>;
|
||||
getWidgetTypes(scope: DashboardInterfaces.WidgetScope): Promise<DashboardInterfaces.WidgetTypesResponse>;
|
||||
getWidgetMetadata(contributionId: string, project?: string): Promise<DashboardInterfaces.WidgetMetadataResponse>;
|
||||
getWidgetTypes(scope: DashboardInterfaces.WidgetScope, project?: string): Promise<DashboardInterfaces.WidgetTypesResponse>;
|
||||
}
|
||||
|
||||
export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
||||
|
@ -40,6 +38,8 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
super(baseUrl, handlers, 'node-Dashboard-api', options);
|
||||
}
|
||||
|
||||
public static readonly RESOURCE_AREA_ID = "31c84e0a-3ece-48fd-a29d-100849af99ba";
|
||||
|
||||
/**
|
||||
* Create the supplied dashboard.
|
||||
*
|
||||
|
@ -52,8 +52,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Dashboard> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Dashboard>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -62,7 +66,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -99,8 +103,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -110,7 +118,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -147,8 +155,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Dashboard> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Dashboard>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -158,7 +170,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -193,8 +205,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.DashboardGroup> {
|
||||
|
||||
return new Promise<DashboardInterfaces.DashboardGroup>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -203,7 +219,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -229,7 +245,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* Replace configuration for the specified dashboard.
|
||||
* Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied.
|
||||
*
|
||||
* @param {DashboardInterfaces.Dashboard} dashboard - The Configuration of the dashboard to replace.
|
||||
* @param {TfsCoreInterfaces.TeamContext} teamContext - The team context for the operation
|
||||
|
@ -242,8 +258,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Dashboard> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Dashboard>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -253,7 +273,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -290,8 +310,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.DashboardGroup> {
|
||||
|
||||
return new Promise<DashboardInterfaces.DashboardGroup>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -300,7 +324,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"454b3e51-2e6e-48d4-ad81-978154089351",
|
||||
routeValues);
|
||||
|
@ -339,8 +363,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Widget> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Widget>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -350,7 +378,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"bdcff53a-8355-4172-a00a-40497ea23afc",
|
||||
routeValues);
|
||||
|
@ -389,8 +417,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Dashboard> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Dashboard>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -401,7 +433,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"bdcff53a-8355-4172-a00a-40497ea23afc",
|
||||
routeValues);
|
||||
|
@ -440,8 +472,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Widget> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Widget>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -452,7 +488,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"bdcff53a-8355-4172-a00a-40497ea23afc",
|
||||
routeValues);
|
||||
|
@ -493,8 +529,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Widget> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Widget>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -505,7 +545,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"bdcff53a-8355-4172-a00a-40497ea23afc",
|
||||
routeValues);
|
||||
|
@ -546,8 +586,12 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
): Promise<DashboardInterfaces.Widget> {
|
||||
|
||||
return new Promise<DashboardInterfaces.Widget>(async (resolve, reject) => {
|
||||
let project = teamContext.projectId || teamContext.project;
|
||||
let team = teamContext.teamId || teamContext.team;
|
||||
let project = null;
|
||||
let team = null;
|
||||
if (teamContext) {
|
||||
project = teamContext.projectId || teamContext.project;
|
||||
team = teamContext.teamId || teamContext.team;
|
||||
}
|
||||
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
|
@ -558,7 +602,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.2",
|
||||
"5.0-preview.2",
|
||||
"Dashboard",
|
||||
"bdcff53a-8355-4172-a00a-40497ea23afc",
|
||||
routeValues);
|
||||
|
@ -587,19 +631,22 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
* Get the widget metadata satisfying the specified contribution ID.
|
||||
*
|
||||
* @param {string} contributionId - The ID of Contribution for the Widget
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
public async getWidgetMetadata(
|
||||
contributionId: string
|
||||
contributionId: string,
|
||||
project?: string
|
||||
): Promise<DashboardInterfaces.WidgetMetadataResponse> {
|
||||
|
||||
return new Promise<DashboardInterfaces.WidgetMetadataResponse>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
project: project,
|
||||
contributionId: contributionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Dashboard",
|
||||
"6b3628d3-e96f-4fc7-b176-50240b03b515",
|
||||
routeValues);
|
||||
|
@ -628,13 +675,19 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
* Get all available widget metadata in alphabetical order.
|
||||
*
|
||||
* @param {DashboardInterfaces.WidgetScope} scope
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
public async getWidgetTypes(
|
||||
scope: DashboardInterfaces.WidgetScope
|
||||
scope: DashboardInterfaces.WidgetScope,
|
||||
project?: string
|
||||
): Promise<DashboardInterfaces.WidgetTypesResponse> {
|
||||
if (scope == null) {
|
||||
throw new TypeError('scope can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<DashboardInterfaces.WidgetTypesResponse>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
project: project
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
|
@ -643,7 +696,7 @@ export class DashboardApi extends basem.ClientApiBase implements IDashboardApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Dashboard",
|
||||
"6b3628d3-e96f-4fc7-b176-50240b03b515",
|
||||
routeValues,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,16 +11,14 @@
|
|||
// 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 ExtensionManagementInterfaces = require("./interfaces/ExtensionManagementInterfaces");
|
||||
import GalleryInterfaces = require("./interfaces/GalleryInterfaces");
|
||||
|
||||
export interface IExtensionManagementApi extends basem.ClientApiBase {
|
||||
getAcquisitionOptions(itemId: string, testCommerce?: boolean, isFreeOrTrialInstall?: boolean, isAccountOwner?: boolean): Promise<ExtensionManagementInterfaces.AcquisitionOptions>;
|
||||
getAcquisitionOptions(itemId: string, testCommerce?: boolean, isFreeOrTrialInstall?: boolean, isAccountOwner?: boolean, isLinked?: boolean, isConnectedServer?: boolean, isBuyOperationValid?: boolean): Promise<ExtensionManagementInterfaces.AcquisitionOptions>;
|
||||
requestAcquisition(acquisitionRequest: ExtensionManagementInterfaces.ExtensionAcquisitionRequest): Promise<ExtensionManagementInterfaces.ExtensionAcquisitionRequest>;
|
||||
registerAuthorization(publisherName: string, extensionName: string, registrationId: string): Promise<ExtensionManagementInterfaces.ExtensionAuthorization>;
|
||||
createDocumentByName(doc: any, publisherName: string, extensionName: string, scopeType: string, scopeValue: string, collectionName: string): Promise<any>;
|
||||
|
@ -58,13 +56,22 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
* @param {boolean} testCommerce
|
||||
* @param {boolean} isFreeOrTrialInstall
|
||||
* @param {boolean} isAccountOwner
|
||||
* @param {boolean} isLinked
|
||||
* @param {boolean} isConnectedServer
|
||||
* @param {boolean} isBuyOperationValid
|
||||
*/
|
||||
public async getAcquisitionOptions(
|
||||
itemId: string,
|
||||
testCommerce?: boolean,
|
||||
isFreeOrTrialInstall?: boolean,
|
||||
isAccountOwner?: boolean
|
||||
isAccountOwner?: boolean,
|
||||
isLinked?: boolean,
|
||||
isConnectedServer?: boolean,
|
||||
isBuyOperationValid?: boolean
|
||||
): Promise<ExtensionManagementInterfaces.AcquisitionOptions> {
|
||||
if (itemId == null) {
|
||||
throw new TypeError('itemId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<ExtensionManagementInterfaces.AcquisitionOptions>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -75,11 +82,14 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
testCommerce: testCommerce,
|
||||
isFreeOrTrialInstall: isFreeOrTrialInstall,
|
||||
isAccountOwner: isAccountOwner,
|
||||
isLinked: isLinked,
|
||||
isConnectedServer: isConnectedServer,
|
||||
isBuyOperationValid: isBuyOperationValid,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"288dff58-d13b-468e-9671-0fb754e9398c",
|
||||
routeValues,
|
||||
|
@ -118,7 +128,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"da616457-eed3-4672-92d7-18d21f5c1658",
|
||||
routeValues);
|
||||
|
@ -163,7 +173,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"f21cfc80-d2d2-4248-98bb-7820c74c4606",
|
||||
routeValues);
|
||||
|
@ -173,7 +183,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.ExtensionAuthorization>;
|
||||
res = await this.rest.replace<ExtensionManagementInterfaces.ExtensionAuthorization>(url, options);
|
||||
res = await this.rest.replace<ExtensionManagementInterfaces.ExtensionAuthorization>(url, null, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
|
@ -216,7 +226,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -270,7 +280,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -324,7 +334,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -375,7 +385,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -428,7 +438,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -481,7 +491,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"bbe06c18-1c8b-4fcd-b9c6-1535aaab8749",
|
||||
routeValues);
|
||||
|
@ -527,7 +537,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"56c331f1-ce53-4318-adfd-4db5c52a7a2e",
|
||||
routeValues);
|
||||
|
@ -577,7 +587,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"92755d3d-9a8a-42b3-8a4d-87359fe5aa93",
|
||||
routeValues,
|
||||
|
@ -616,7 +626,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"046c980f-1345-4ce2-bf85-b46d10ff4cfd",
|
||||
routeValues);
|
||||
|
@ -669,7 +679,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"275424d0-c844-4fe2-bda6-04933a1357d8",
|
||||
routeValues,
|
||||
|
@ -710,7 +720,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"275424d0-c844-4fe2-bda6-04933a1357d8",
|
||||
routeValues);
|
||||
|
@ -760,7 +770,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"fb0da285-f23e-4b56-8b53-3ef5f9f6de66",
|
||||
routeValues,
|
||||
|
@ -808,7 +818,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"fb0da285-f23e-4b56-8b53-3ef5f9f6de66",
|
||||
routeValues);
|
||||
|
@ -818,7 +828,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<ExtensionManagementInterfaces.InstalledExtension>;
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.InstalledExtension>(url, options);
|
||||
res = await this.rest.create<ExtensionManagementInterfaces.InstalledExtension>(url, null, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
ExtensionManagementInterfaces.TypeInfo.InstalledExtension,
|
||||
|
@ -861,7 +871,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"fb0da285-f23e-4b56-8b53-3ef5f9f6de66",
|
||||
routeValues,
|
||||
|
@ -901,7 +911,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"e5cc8c09-407b-4867-8319-2ae3338cbf6f",
|
||||
routeValues);
|
||||
|
@ -940,6 +950,9 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
requesterId: string,
|
||||
state: ExtensionManagementInterfaces.ExtensionRequestState
|
||||
): Promise<number> {
|
||||
if (state == null) {
|
||||
throw new TypeError('state can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<number>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -954,7 +967,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"aa93e1f3-511c-4364-8b9c-eb98818f2e0b",
|
||||
routeValues,
|
||||
|
@ -991,7 +1004,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"216b978f-b164-424e-ada2-b77561e842b7",
|
||||
routeValues);
|
||||
|
@ -1028,6 +1041,9 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
extensionName: string,
|
||||
state: ExtensionManagementInterfaces.ExtensionRequestState
|
||||
): Promise<number> {
|
||||
if (state == null) {
|
||||
throw new TypeError('state can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<number>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -1041,7 +1057,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"ba93e1f3-511c-4364-8b9c-eb98818f2e0b",
|
||||
routeValues,
|
||||
|
@ -1084,7 +1100,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"f5afca1e-a728-4294-aa2d-4af0173431b5",
|
||||
routeValues);
|
||||
|
@ -1128,7 +1144,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"f5afca1e-a728-4294-aa2d-4af0173431b5",
|
||||
routeValues);
|
||||
|
@ -1164,7 +1180,7 @@ export class ExtensionManagementApi extends basem.ClientApiBase implements IExte
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"ExtensionManagement",
|
||||
"3a2e24ed-1d6f-4cb2-9f3b-45a96bbfaf50",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 FeatureManagementInterfaces = require("./interfaces/FeatureManagementInterfaces");
|
||||
|
||||
|
@ -51,7 +49,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"c4209f25-7a27-41dd-9f04-06080c7b6afd",
|
||||
routeValues);
|
||||
|
@ -95,7 +93,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"c4209f25-7a27-41dd-9f04-06080c7b6afd",
|
||||
routeValues,
|
||||
|
@ -140,7 +138,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"98911314-3f9b-4eaf-80e8-83900d8e85d9",
|
||||
routeValues);
|
||||
|
@ -195,7 +193,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"98911314-3f9b-4eaf-80e8-83900d8e85d9",
|
||||
routeValues,
|
||||
|
@ -246,7 +244,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"dd291e43-aa9f-4cee-8465-a93c78e414a4",
|
||||
routeValues);
|
||||
|
@ -307,7 +305,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"dd291e43-aa9f-4cee-8465-a93c78e414a4",
|
||||
routeValues,
|
||||
|
@ -348,7 +346,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"2b4486ad-122b-400c-ae65-17b6672c1f9d",
|
||||
routeValues);
|
||||
|
@ -391,7 +389,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"3f810f28-03e2-4239-b0bc-788add3005e5",
|
||||
routeValues);
|
||||
|
@ -440,7 +438,7 @@ export class FeatureManagementApi extends basem.ClientApiBase implements IFeatur
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"FeatureManagement",
|
||||
"f29e997b-c2da-4d15-8380-765788a1a74c",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 FileContainerInterfaces = require("./interfaces/FileContainerInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
@ -55,7 +53,7 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.4",
|
||||
"5.0-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
|
@ -93,6 +91,9 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
itemPath: string,
|
||||
scope?: string
|
||||
): Promise<void> {
|
||||
if (itemPath == null) {
|
||||
throw new TypeError('itemPath can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -106,7 +107,7 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.4",
|
||||
"5.0-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
|
@ -154,7 +155,7 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.4",
|
||||
"5.0-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
|
@ -218,7 +219,7 @@ export class FileContainerApiBase extends basem.ClientApiBase implements IFileCo
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.4",
|
||||
"5.0-preview.4",
|
||||
"Container",
|
||||
"e4f5c81e-e250-447b-9fef-bd48471bea5e",
|
||||
routeValues,
|
||||
|
|
665
api/GitApi.ts
665
api/GitApi.ts
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,19 +11,17 @@
|
|||
// 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 LocationsInterfaces = require("./interfaces/LocationsInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
||||
export interface ILocationsApi extends basem.ClientApiBase {
|
||||
getConnectionData(connectOptions?: VSSInterfaces.ConnectOptions, lastChangeId?: number, lastChangeId64?: number): Promise<LocationsInterfaces.ConnectionData>;
|
||||
getResourceArea(areaId: string, organizationName?: string, accountName?: string): Promise<LocationsInterfaces.ResourceAreaInfo>;
|
||||
getResourceArea(areaId: string, enterpriseName?: string, organizationName?: string): Promise<LocationsInterfaces.ResourceAreaInfo>;
|
||||
getResourceAreaByHost(areaId: string, hostId: string): Promise<LocationsInterfaces.ResourceAreaInfo>;
|
||||
getResourceAreas(organizationName?: string, accountName?: string): Promise<LocationsInterfaces.ResourceAreaInfo[]>;
|
||||
getResourceAreas(enterpriseName?: string, organizationName?: string): Promise<LocationsInterfaces.ResourceAreaInfo[]>;
|
||||
getResourceAreasByHost(hostId: string): Promise<LocationsInterfaces.ResourceAreaInfo[]>;
|
||||
deleteServiceDefinition(serviceType: string, identifier: string): Promise<void>;
|
||||
getServiceDefinition(serviceType: string, identifier: string, allowFaultIn?: boolean, previewFaultIn?: boolean): Promise<LocationsInterfaces.ServiceDefinition>;
|
||||
|
@ -61,7 +59,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"00d9565f-ed9c-4a06-9a50-00e7896ccab4",
|
||||
routeValues,
|
||||
|
@ -89,13 +87,13 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
/**
|
||||
* @param {string} areaId
|
||||
* @param {string} enterpriseName
|
||||
* @param {string} organizationName
|
||||
* @param {string} accountName
|
||||
*/
|
||||
public async getResourceArea(
|
||||
areaId: string,
|
||||
organizationName?: string,
|
||||
accountName?: string
|
||||
enterpriseName?: string,
|
||||
organizationName?: string
|
||||
): Promise<LocationsInterfaces.ResourceAreaInfo> {
|
||||
|
||||
return new Promise<LocationsInterfaces.ResourceAreaInfo>(async (resolve, reject) => {
|
||||
|
@ -104,13 +102,13 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
};
|
||||
|
||||
let queryValues: any = {
|
||||
enterpriseName: enterpriseName,
|
||||
organizationName: organizationName,
|
||||
accountName: accountName,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"e81700f7-3be2-46de-8624-2eb35882fcaa",
|
||||
routeValues,
|
||||
|
@ -144,6 +142,9 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
areaId: string,
|
||||
hostId: string
|
||||
): Promise<LocationsInterfaces.ResourceAreaInfo> {
|
||||
if (hostId == null) {
|
||||
throw new TypeError('hostId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<LocationsInterfaces.ResourceAreaInfo>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -156,7 +157,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"e81700f7-3be2-46de-8624-2eb35882fcaa",
|
||||
routeValues,
|
||||
|
@ -183,12 +184,12 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {string} enterpriseName
|
||||
* @param {string} organizationName
|
||||
* @param {string} accountName
|
||||
*/
|
||||
public async getResourceAreas(
|
||||
organizationName?: string,
|
||||
accountName?: string
|
||||
enterpriseName?: string,
|
||||
organizationName?: string
|
||||
): Promise<LocationsInterfaces.ResourceAreaInfo[]> {
|
||||
|
||||
return new Promise<LocationsInterfaces.ResourceAreaInfo[]>(async (resolve, reject) => {
|
||||
|
@ -196,13 +197,13 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
};
|
||||
|
||||
let queryValues: any = {
|
||||
enterpriseName: enterpriseName,
|
||||
organizationName: organizationName,
|
||||
accountName: accountName,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"e81700f7-3be2-46de-8624-2eb35882fcaa",
|
||||
routeValues,
|
||||
|
@ -234,6 +235,9 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
public async getResourceAreasByHost(
|
||||
hostId: string
|
||||
): Promise<LocationsInterfaces.ResourceAreaInfo[]> {
|
||||
if (hostId == null) {
|
||||
throw new TypeError('hostId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<LocationsInterfaces.ResourceAreaInfo[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -245,7 +249,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"e81700f7-3be2-46de-8624-2eb35882fcaa",
|
||||
routeValues,
|
||||
|
@ -288,7 +292,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"d810a47d-f4f4-4a62-a03f-fa1860585c4c",
|
||||
routeValues);
|
||||
|
@ -341,7 +345,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"d810a47d-f4f4-4a62-a03f-fa1860585c4c",
|
||||
routeValues,
|
||||
|
@ -381,7 +385,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"d810a47d-f4f4-4a62-a03f-fa1860585c4c",
|
||||
routeValues);
|
||||
|
@ -419,7 +423,7 @@ export class LocationsApi extends basem.ClientApiBase implements ILocationsApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"Location",
|
||||
"d810a47d-f4f4-4a62-a03f-fa1860585c4c",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,24 +11,26 @@
|
|||
// 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 NotificationInterfaces = require("./interfaces/NotificationInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
||||
export interface INotificationApi extends basem.ClientApiBase {
|
||||
performBatchNotificationOperations(operation: NotificationInterfaces.BatchNotificationOperation): Promise<void>;
|
||||
getNotificationTracing(subscriptionId: string): Promise<NotificationInterfaces.NotificationTracing>;
|
||||
updateNotificationTracing(setParameters: NotificationInterfaces.NotificationTracingSetParameters, subscriptionId: string): Promise<NotificationInterfaces.NotificationTracing>;
|
||||
listLogs(source: string, entryId?: string, startTime?: Date, endTime?: Date): Promise<NotificationInterfaces.INotificationDiagnosticLog[]>;
|
||||
getSubscriptionDiagnostics(subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
||||
updateSubscriptionDiagnostics(updateParameters: NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters, subscriptionId: string): Promise<NotificationInterfaces.SubscriptionDiagnostics>;
|
||||
publishEvent(notificationEvent: VSSInterfaces.VssNotificationEvent): Promise<VSSInterfaces.VssNotificationEvent>;
|
||||
transformEvent(transformRequest: NotificationInterfaces.EventTransformRequest): Promise<NotificationInterfaces.EventTransformResult>;
|
||||
queryEventTypes(inputValuesQuery: NotificationInterfaces.FieldValuesQuery, eventType: string): Promise<NotificationInterfaces.NotificationEventField[]>;
|
||||
getEventType(eventType: string): Promise<NotificationInterfaces.NotificationEventType>;
|
||||
listEventTypes(publisherId?: string): Promise<NotificationInterfaces.NotificationEventType[]>;
|
||||
getNotificationReasons(notificationId: number): Promise<NotificationInterfaces.NotificationReason>;
|
||||
listNotificationReasons(notificationIds?: number): Promise<NotificationInterfaces.NotificationReason[]>;
|
||||
getSettings(): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
||||
updateSettings(updateParameters: NotificationInterfaces.NotificationAdminSettingsUpdateParameters): Promise<NotificationInterfaces.NotificationAdminSettings>;
|
||||
getSubscriber(subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
||||
updateSubscriber(updateParameters: NotificationInterfaces.NotificationSubscriberUpdateParameters, subscriberId: string): Promise<NotificationInterfaces.NotificationSubscriber>;
|
||||
querySubscriptions(subscriptionQuery: NotificationInterfaces.SubscriptionQuery): Promise<NotificationInterfaces.NotificationSubscription[]>;
|
||||
|
@ -59,7 +61,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"8f3c6ab2-5bae-4537-b16e-f84e0955599e",
|
||||
routeValues);
|
||||
|
@ -84,21 +86,75 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* List diagnostic logs this service.
|
||||
*
|
||||
* @param {string} source
|
||||
* @param {string} entryId
|
||||
* @param {Date} startTime
|
||||
* @param {Date} endTime
|
||||
*/
|
||||
public async listLogs(
|
||||
source: string,
|
||||
entryId?: string,
|
||||
startTime?: Date,
|
||||
endTime?: Date
|
||||
): Promise<NotificationInterfaces.INotificationDiagnosticLog[]> {
|
||||
|
||||
return new Promise<NotificationInterfaces.INotificationDiagnosticLog[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
source: source,
|
||||
entryId: entryId
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
startTime: startTime,
|
||||
endTime: endTime,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"991842f3-eb16-4aea-ac81-81353ef2b75c",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.INotificationDiagnosticLog[]>;
|
||||
res = await this.rest.get<NotificationInterfaces.INotificationDiagnosticLog[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.INotificationDiagnosticLog,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} subscriptionId
|
||||
*/
|
||||
public async getNotificationTracing(
|
||||
public async getSubscriptionDiagnostics(
|
||||
subscriptionId: string
|
||||
): Promise<NotificationInterfaces.NotificationTracing> {
|
||||
): Promise<NotificationInterfaces.SubscriptionDiagnostics> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationTracing>(async (resolve, reject) => {
|
||||
return new Promise<NotificationInterfaces.SubscriptionDiagnostics>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
subscriptionId: subscriptionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"20f1929d-4be7-4c2e-a74e-d47640ff3418",
|
||||
routeValues);
|
||||
|
@ -107,11 +163,11 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationTracing>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationTracing>(url, options);
|
||||
let res: restm.IRestResponse<NotificationInterfaces.SubscriptionDiagnostics>;
|
||||
res = await this.rest.get<NotificationInterfaces.SubscriptionDiagnostics>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.NotificationTracing,
|
||||
NotificationInterfaces.TypeInfo.SubscriptionDiagnostics,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
@ -124,22 +180,22 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {NotificationInterfaces.NotificationTracingSetParameters} setParameters
|
||||
* @param {NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters} updateParameters
|
||||
* @param {string} subscriptionId
|
||||
*/
|
||||
public async updateNotificationTracing(
|
||||
setParameters: NotificationInterfaces.NotificationTracingSetParameters,
|
||||
public async updateSubscriptionDiagnostics(
|
||||
updateParameters: NotificationInterfaces.UpdateSubscripitonDiagnosticsParameters,
|
||||
subscriptionId: string
|
||||
): Promise<NotificationInterfaces.NotificationTracing> {
|
||||
): Promise<NotificationInterfaces.SubscriptionDiagnostics> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationTracing>(async (resolve, reject) => {
|
||||
return new Promise<NotificationInterfaces.SubscriptionDiagnostics>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
subscriptionId: subscriptionId
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"20f1929d-4be7-4c2e-a74e-d47640ff3418",
|
||||
routeValues);
|
||||
|
@ -148,11 +204,11 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationTracing>;
|
||||
res = await this.rest.replace<NotificationInterfaces.NotificationTracing>(url, setParameters, options);
|
||||
let res: restm.IRestResponse<NotificationInterfaces.SubscriptionDiagnostics>;
|
||||
res = await this.rest.replace<NotificationInterfaces.SubscriptionDiagnostics>(url, updateParameters, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.NotificationTracing,
|
||||
NotificationInterfaces.TypeInfo.SubscriptionDiagnostics,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
@ -179,7 +235,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"14c57b7a-c0e6-4555-9f51-e067188fdd8e",
|
||||
routeValues);
|
||||
|
@ -191,6 +247,46 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
let res: restm.IRestResponse<VSSInterfaces.VssNotificationEvent>;
|
||||
res = await this.rest.create<VSSInterfaces.VssNotificationEvent>(url, notificationEvent, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
VSSInterfaces.TypeInfo.VssNotificationEvent,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Tranform a notification event.
|
||||
*
|
||||
* @param {NotificationInterfaces.EventTransformRequest} transformRequest - Object to be transformed.
|
||||
*/
|
||||
public async transformEvent(
|
||||
transformRequest: NotificationInterfaces.EventTransformRequest
|
||||
): Promise<NotificationInterfaces.EventTransformResult> {
|
||||
|
||||
return new Promise<NotificationInterfaces.EventTransformResult>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"9463a800-1b44-450e-9083-f948ea174b45",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.EventTransformResult>;
|
||||
res = await this.rest.create<NotificationInterfaces.EventTransformResult>(url, transformRequest, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
@ -220,7 +316,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"b5bbdd21-c178-4398-b6db-0166d910028a",
|
||||
routeValues);
|
||||
|
@ -261,7 +357,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21",
|
||||
routeValues);
|
||||
|
@ -305,7 +401,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"cc84fb5f-6247-4c7a-aeae-e5a3c3fddb21",
|
||||
routeValues,
|
||||
|
@ -345,7 +441,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"19824fa9-1c76-40e6-9cce-cf0b9ca1cb60",
|
||||
routeValues);
|
||||
|
@ -387,7 +483,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"19824fa9-1c76-40e6-9cce-cf0b9ca1cb60",
|
||||
routeValues,
|
||||
|
@ -413,6 +509,80 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public async getSettings(
|
||||
): Promise<NotificationInterfaces.NotificationAdminSettings> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationAdminSettings>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"cbe076d8-2803-45ff-8d8d-44653686ea2a",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationAdminSettings>;
|
||||
res = await this.rest.get<NotificationInterfaces.NotificationAdminSettings>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.NotificationAdminSettings,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {NotificationInterfaces.NotificationAdminSettingsUpdateParameters} updateParameters
|
||||
*/
|
||||
public async updateSettings(
|
||||
updateParameters: NotificationInterfaces.NotificationAdminSettingsUpdateParameters
|
||||
): Promise<NotificationInterfaces.NotificationAdminSettings> {
|
||||
|
||||
return new Promise<NotificationInterfaces.NotificationAdminSettings>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"cbe076d8-2803-45ff-8d8d-44653686ea2a",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<NotificationInterfaces.NotificationAdminSettings>;
|
||||
res = await this.rest.update<NotificationInterfaces.NotificationAdminSettings>(url, updateParameters, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
NotificationInterfaces.TypeInfo.NotificationAdminSettings,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} subscriberId
|
||||
*/
|
||||
|
@ -427,7 +597,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"4d5caff1-25ba-430b-b808-7a1f352cc197",
|
||||
routeValues);
|
||||
|
@ -468,7 +638,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"4d5caff1-25ba-430b-b808-7a1f352cc197",
|
||||
routeValues);
|
||||
|
@ -508,7 +678,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"6864db85-08c0-4006-8e8e-cc1bebe31675",
|
||||
routeValues);
|
||||
|
@ -548,7 +718,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"70f911d6-abac-488c-85b3-a206bf57e165",
|
||||
routeValues);
|
||||
|
@ -589,7 +759,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"70f911d6-abac-488c-85b3-a206bf57e165",
|
||||
routeValues);
|
||||
|
@ -636,7 +806,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"70f911d6-abac-488c-85b3-a206bf57e165",
|
||||
routeValues,
|
||||
|
@ -685,7 +855,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"70f911d6-abac-488c-85b3-a206bf57e165",
|
||||
routeValues,
|
||||
|
@ -729,7 +899,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"70f911d6-abac-488c-85b3-a206bf57e165",
|
||||
routeValues);
|
||||
|
@ -767,7 +937,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"fa5d24ba-7484-4f3d-888d-4ec6b1974082",
|
||||
routeValues);
|
||||
|
@ -813,7 +983,7 @@ export class NotificationApi extends basem.ClientApiBase implements INotificatio
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"notification",
|
||||
"ed5a3dff-aeb5-41b1-b4f7-89e66e58b62e",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 PolicyInterfaces = require("./interfaces/PolicyInterfaces");
|
||||
|
||||
|
@ -22,7 +20,7 @@ export interface IPolicyApi extends basem.ClientApiBase {
|
|||
createPolicyConfiguration(configuration: PolicyInterfaces.PolicyConfiguration, project: string, configurationId?: number): Promise<PolicyInterfaces.PolicyConfiguration>;
|
||||
deletePolicyConfiguration(project: string, configurationId: number): Promise<void>;
|
||||
getPolicyConfiguration(project: string, configurationId: number): Promise<PolicyInterfaces.PolicyConfiguration>;
|
||||
getPolicyConfigurations(project: string, scope?: string): Promise<PolicyInterfaces.PolicyConfiguration[]>;
|
||||
getPolicyConfigurations(project: string, scope?: string, policyType?: string): Promise<PolicyInterfaces.PolicyConfiguration[]>;
|
||||
updatePolicyConfiguration(configuration: PolicyInterfaces.PolicyConfiguration, project: string, configurationId: number): Promise<PolicyInterfaces.PolicyConfiguration>;
|
||||
getPolicyEvaluation(project: string, evaluationId: string): Promise<PolicyInterfaces.PolicyEvaluationRecord>;
|
||||
requeuePolicyEvaluation(project: string, evaluationId: string): Promise<PolicyInterfaces.PolicyEvaluationRecord>;
|
||||
|
@ -61,7 +59,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"dad91cbe-d183-45f8-9c6e-9c1164472121",
|
||||
routeValues);
|
||||
|
@ -105,7 +103,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"dad91cbe-d183-45f8-9c6e-9c1164472121",
|
||||
routeValues);
|
||||
|
@ -149,7 +147,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"dad91cbe-d183-45f8-9c6e-9c1164472121",
|
||||
routeValues);
|
||||
|
@ -178,11 +176,13 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
* Get a list of policy configurations in a project.
|
||||
*
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} scope - The scope on which a subset of policies is applied.
|
||||
* @param {string} scope - The scope on which a subset of policies is defined.
|
||||
* @param {string} policyType - Filter returned policies to only this type
|
||||
*/
|
||||
public async getPolicyConfigurations(
|
||||
project: string,
|
||||
scope?: string
|
||||
scope?: string,
|
||||
policyType?: string
|
||||
): Promise<PolicyInterfaces.PolicyConfiguration[]> {
|
||||
|
||||
return new Promise<PolicyInterfaces.PolicyConfiguration[]>(async (resolve, reject) => {
|
||||
|
@ -192,11 +192,12 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
let queryValues: any = {
|
||||
scope: scope,
|
||||
policyType: policyType,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"dad91cbe-d183-45f8-9c6e-9c1164472121",
|
||||
routeValues,
|
||||
|
@ -243,7 +244,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"dad91cbe-d183-45f8-9c6e-9c1164472121",
|
||||
routeValues);
|
||||
|
@ -287,7 +288,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"46aecb7a-5d2c-4647-897b-0209505a9fe4",
|
||||
routeValues);
|
||||
|
@ -331,7 +332,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"46aecb7a-5d2c-4647-897b-0209505a9fe4",
|
||||
routeValues);
|
||||
|
@ -341,7 +342,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<PolicyInterfaces.PolicyEvaluationRecord>;
|
||||
res = await this.rest.update<PolicyInterfaces.PolicyEvaluationRecord>(url, options);
|
||||
res = await this.rest.update<PolicyInterfaces.PolicyEvaluationRecord>(url, null, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
PolicyInterfaces.TypeInfo.PolicyEvaluationRecord,
|
||||
|
@ -372,6 +373,9 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
top?: number,
|
||||
skip?: number
|
||||
): Promise<PolicyInterfaces.PolicyEvaluationRecord[]> {
|
||||
if (artifactId == null) {
|
||||
throw new TypeError('artifactId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<PolicyInterfaces.PolicyEvaluationRecord[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -387,7 +391,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"c23ddff5-229c-4d04-a80b-0fdce9f360c8",
|
||||
routeValues,
|
||||
|
@ -435,7 +439,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"fe1e68a2-60d3-43cb-855b-85e41ae97c95",
|
||||
routeValues);
|
||||
|
@ -488,7 +492,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"fe1e68a2-60d3-43cb-855b-85e41ae97c95",
|
||||
routeValues,
|
||||
|
@ -533,7 +537,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"44096322-2d3d-466a-bb30-d1b7de69f61f",
|
||||
routeValues);
|
||||
|
@ -574,7 +578,7 @@ export class PolicyApi extends basem.ClientApiBase implements IPolicyApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"policy",
|
||||
"44096322-2d3d-466a-bb30-d1b7de69f61f",
|
||||
routeValues);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 ProjectAnalysisInterfaces = require("./interfaces/ProjectAnalysisInterfaces");
|
||||
|
||||
|
@ -30,6 +28,8 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
super(baseUrl, handlers, 'node-ProjectAnalysis-api', options);
|
||||
}
|
||||
|
||||
public static readonly RESOURCE_AREA_ID = "7658fa33-b1bf-4580-990f-fac5896773d3";
|
||||
|
||||
/**
|
||||
* @param {string} project - Project ID or project name
|
||||
*/
|
||||
|
@ -44,7 +44,7 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"projectanalysis",
|
||||
"5b02a779-1867-433f-90b7-d23ed5e33e57",
|
||||
routeValues);
|
||||
|
@ -79,6 +79,12 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
fromDate: Date,
|
||||
aggregationType: ProjectAnalysisInterfaces.AggregationType
|
||||
): Promise<ProjectAnalysisInterfaces.ProjectActivityMetrics> {
|
||||
if (fromDate == null) {
|
||||
throw new TypeError('fromDate can not be null or undefined');
|
||||
}
|
||||
if (aggregationType == null) {
|
||||
throw new TypeError('aggregationType can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<ProjectAnalysisInterfaces.ProjectActivityMetrics>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -92,7 +98,7 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"projectanalysis",
|
||||
"e40ae584-9ea6-4f06-a7c7-6284651b466b",
|
||||
routeValues,
|
||||
|
@ -134,6 +140,18 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
skip: number,
|
||||
top: number
|
||||
): Promise<ProjectAnalysisInterfaces.RepositoryActivityMetrics[]> {
|
||||
if (fromDate == null) {
|
||||
throw new TypeError('fromDate can not be null or undefined');
|
||||
}
|
||||
if (aggregationType == null) {
|
||||
throw new TypeError('aggregationType can not be null or undefined');
|
||||
}
|
||||
if (skip == null) {
|
||||
throw new TypeError('skip can not be null or undefined');
|
||||
}
|
||||
if (top == null) {
|
||||
throw new TypeError('top can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<ProjectAnalysisInterfaces.RepositoryActivityMetrics[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -149,7 +167,7 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"projectanalysis",
|
||||
"df7fbbca-630a-40e3-8aa3-7a3faf66947e",
|
||||
routeValues,
|
||||
|
@ -187,6 +205,12 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
fromDate: Date,
|
||||
aggregationType: ProjectAnalysisInterfaces.AggregationType
|
||||
): Promise<ProjectAnalysisInterfaces.RepositoryActivityMetrics> {
|
||||
if (fromDate == null) {
|
||||
throw new TypeError('fromDate can not be null or undefined');
|
||||
}
|
||||
if (aggregationType == null) {
|
||||
throw new TypeError('aggregationType can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<ProjectAnalysisInterfaces.RepositoryActivityMetrics>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -201,7 +225,7 @@ export class ProjectAnalysisApi extends basem.ClientApiBase implements IProjectA
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"projectanalysis",
|
||||
"df7fbbca-630a-40e3-8aa3-7a3faf66947e",
|
||||
routeValues,
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
353
api/TaskApi.ts
353
api/TaskApi.ts
|
@ -1,8 +1,8 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 TaskAgentInterfaces = require("./interfaces/TaskAgentInterfaces");
|
||||
import VSSInterfaces = require("./interfaces/common/VSSInterfaces");
|
||||
|
@ -25,12 +23,14 @@ export interface ITaskApi extends basem.ClientApiBase {
|
|||
getAttachment(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<TaskAgentInterfaces.TaskAttachment>;
|
||||
getAttachmentContent(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string, name: string): Promise<NodeJS.ReadableStream>;
|
||||
getAttachments(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string, type: string): Promise<TaskAgentInterfaces.TaskAttachment[]>;
|
||||
appendTimelineRecordFeed(lines: VSSInterfaces.VssJsonCollectionWrapperV<string[]>, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string): Promise<void>;
|
||||
appendTimelineRecordFeed(lines: TaskAgentInterfaces.TimelineRecordFeedLinesWrapper, scopeIdentifier: string, hubName: string, planId: string, timelineId: string, recordId: string): Promise<void>;
|
||||
appendLogContent(customHeaders: any, contentStream: NodeJS.ReadableStream, scopeIdentifier: string, hubName: string, planId: string, logId: number): Promise<TaskAgentInterfaces.TaskLog>;
|
||||
createLog(log: TaskAgentInterfaces.TaskLog, scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog>;
|
||||
getLog(scopeIdentifier: string, hubName: string, planId: string, logId: number, startLine?: number, endLine?: number): Promise<string[]>;
|
||||
getLogs(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskLog[]>;
|
||||
getQueuedPlanGroups(scopeIdentifier: string, hubName: string, statusFilter?: TaskAgentInterfaces.PlanGroupStatusFilter, count?: number): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>;
|
||||
getPlanGroupsQueueMetrics(scopeIdentifier: string, hubName: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>;
|
||||
getQueuedPlanGroups(scopeIdentifier: string, hubName: string, statusFilter?: TaskAgentInterfaces.PlanGroupStatus, count?: number): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>;
|
||||
getQueuedPlanGroup(scopeIdentifier: string, hubName: string, planGroup: string): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>;
|
||||
getPlan(scopeIdentifier: string, hubName: string, planId: string): Promise<TaskAgentInterfaces.TaskOrchestrationPlan>;
|
||||
getRecords(scopeIdentifier: string, hubName: string, planId: string, timelineId: string, changeId?: number): Promise<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
updateRecords(records: VSSInterfaces.VssJsonCollectionWrapperV<TaskAgentInterfaces.TimelineRecord[]>, scopeIdentifier: string, hubName: string, planId: string, timelineId: string): Promise<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
|
@ -56,7 +56,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
hubName: string,
|
||||
planId: string,
|
||||
type: string
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment[]> {
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskAttachment[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -68,24 +68,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"eb55e5d6-2f30-4295-b5ed-38da50b1fc52",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -113,7 +113,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
recordId: string,
|
||||
type: string,
|
||||
name: string
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment> {
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskAttachment>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -131,23 +131,23 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"7898f959-9cdf-4096-b29e-7f293031629e",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
|
||||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment>;
|
||||
res = await this.rest.uploadStream<TaskAgentInterfaces.TaskAttachment>("PUT", url, contentStream, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
}
|
||||
|
@ -174,7 +174,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
recordId: string,
|
||||
type: string,
|
||||
name: string
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment> {
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskAttachment>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -189,24 +189,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"7898f959-9cdf-4096-b29e-7f293031629e",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -231,7 +231,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
recordId: string,
|
||||
type: string,
|
||||
name: string
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
|
||||
return new Promise<NodeJS.ReadableStream>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -246,13 +246,13 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"7898f959-9cdf-4096-b29e-7f293031629e",
|
||||
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);
|
||||
|
@ -278,7 +278,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
timelineId: string,
|
||||
recordId: string,
|
||||
type: string
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment[]> {
|
||||
): Promise<TaskAgentInterfaces.TaskAttachment[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskAttachment[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -292,24 +292,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"7898f959-9cdf-4096-b29e-7f293031629e",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskAttachment[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskAttachment[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TaskAttachment,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -318,7 +318,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
}
|
||||
|
||||
/**
|
||||
* @param {VSSInterfaces.VssJsonCollectionWrapperV<string[]>} lines
|
||||
* @param {TaskAgentInterfaces.TimelineRecordFeedLinesWrapper} lines
|
||||
* @param {string} scopeIdentifier - The project GUID to scope the request
|
||||
* @param {string} hubName - The name of the server hub: "build" for the Build server or "rm" for the Release Management server
|
||||
* @param {string} planId
|
||||
|
@ -326,13 +326,13 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
* @param {string} recordId
|
||||
*/
|
||||
public async appendTimelineRecordFeed(
|
||||
lines: VSSInterfaces.VssJsonCollectionWrapperV<string[]>,
|
||||
lines: TaskAgentInterfaces.TimelineRecordFeedLinesWrapper,
|
||||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string,
|
||||
timelineId: string,
|
||||
recordId: string
|
||||
): Promise<void> {
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -345,24 +345,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"858983e4-19bd-4c5e-864c-507b59b58b12",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<void>;
|
||||
res = await this.rest.create<void>(url, lines, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -384,7 +384,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
hubName: string,
|
||||
planId: string,
|
||||
logId: number
|
||||
): Promise<TaskAgentInterfaces.TaskLog> {
|
||||
): Promise<TaskAgentInterfaces.TaskLog> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskLog>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -399,23 +399,23 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"46f5667d-263a-4684-91b1-dff7fdcf64e2",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
|
||||
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
verData.apiVersion);
|
||||
options.additionalHeaders = customHeaders;
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog>;
|
||||
res = await this.rest.uploadStream<TaskAgentInterfaces.TaskLog>("POST", url, contentStream, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string
|
||||
): Promise<TaskAgentInterfaces.TaskLog> {
|
||||
): Promise<TaskAgentInterfaces.TaskLog> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskLog>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -447,24 +447,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"46f5667d-263a-4684-91b1-dff7fdcf64e2",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.TaskLog>(url, log, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -487,7 +487,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
logId: number,
|
||||
startLine?: number,
|
||||
endLine?: number
|
||||
): Promise<string[]> {
|
||||
): Promise<string[]> {
|
||||
|
||||
return new Promise<string[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -501,28 +501,28 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
startLine: startLine,
|
||||
endLine: endLine,
|
||||
};
|
||||
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"46f5667d-263a-4684-91b1-dff7fdcf64e2",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
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);
|
||||
null,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -539,7 +539,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string
|
||||
): Promise<TaskAgentInterfaces.TaskLog[]> {
|
||||
): Promise<TaskAgentInterfaces.TaskLog[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskLog[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -550,24 +550,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"46f5667d-263a-4684-91b1-dff7fdcf64e2",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskLog[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskLog[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TaskLog,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -578,15 +578,57 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
/**
|
||||
* @param {string} scopeIdentifier - The project GUID to scope the request
|
||||
* @param {string} hubName - The name of the server hub: "build" for the Build server or "rm" for the Release Management server
|
||||
* @param {TaskAgentInterfaces.PlanGroupStatusFilter} statusFilter
|
||||
*/
|
||||
public async getPlanGroupsQueueMetrics(
|
||||
scopeIdentifier: string,
|
||||
hubName: string
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeIdentifier: scopeIdentifier,
|
||||
hubName: hubName
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"038fd4d5-cda7-44ca-92c0-935843fee1a7",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationPlanGroupsQueueMetrics[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationPlanGroupsQueueMetrics,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} scopeIdentifier - The project GUID to scope the request
|
||||
* @param {string} hubName - The name of the server hub: "build" for the Build server or "rm" for the Release Management server
|
||||
* @param {TaskAgentInterfaces.PlanGroupStatus} statusFilter
|
||||
* @param {number} count
|
||||
*/
|
||||
public async getQueuedPlanGroups(
|
||||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
statusFilter?: TaskAgentInterfaces.PlanGroupStatusFilter,
|
||||
statusFilter?: TaskAgentInterfaces.PlanGroupStatus,
|
||||
count?: number
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]> {
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -598,28 +640,73 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
statusFilter: statusFilter,
|
||||
count: count,
|
||||
};
|
||||
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"0dd73091-3e36-4f43-b443-1b76dd426d84",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationQueuedPlanGroup,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationQueuedPlanGroup,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {string} scopeIdentifier - The project GUID to scope the request
|
||||
* @param {string} hubName - The name of the server hub: "build" for the Build server or "rm" for the Release Management server
|
||||
* @param {string} planGroup
|
||||
*/
|
||||
public async getQueuedPlanGroup(
|
||||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planGroup: string
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
scopeIdentifier: scopeIdentifier,
|
||||
hubName: hubName,
|
||||
planGroup: planGroup
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"65fd0708-bc1e-447b-a731-0587c5464e5b",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationQueuedPlanGroup>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationQueuedPlanGroup,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -636,7 +723,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationPlan> {
|
||||
): Promise<TaskAgentInterfaces.TaskOrchestrationPlan> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TaskOrchestrationPlan>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -647,24 +734,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"5cecd946-d704-471e-a45f-3b4064fcfaba",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TaskOrchestrationPlan>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TaskOrchestrationPlan>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationPlan,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.TaskOrchestrationPlan,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -685,7 +772,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
planId: string,
|
||||
timelineId: string,
|
||||
changeId?: number
|
||||
): Promise<TaskAgentInterfaces.TimelineRecord[]> {
|
||||
): Promise<TaskAgentInterfaces.TimelineRecord[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TimelineRecord[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -698,28 +785,28 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
let queryValues: any = {
|
||||
changeId: changeId,
|
||||
};
|
||||
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"8893bc5b-35b2-4be7-83cb-99e683551db4",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.TimelineRecord[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TimelineRecord,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TimelineRecord,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -740,7 +827,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
hubName: string,
|
||||
planId: string,
|
||||
timelineId: string
|
||||
): Promise<TaskAgentInterfaces.TimelineRecord[]> {
|
||||
): Promise<TaskAgentInterfaces.TimelineRecord[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.TimelineRecord[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -752,24 +839,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"8893bc5b-35b2-4be7-83cb-99e683551db4",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.TimelineRecord[]>;
|
||||
res = await this.rest.update<TaskAgentInterfaces.TimelineRecord[]>(url, records, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.TimelineRecord,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.TimelineRecord,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -788,7 +875,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string
|
||||
): Promise<TaskAgentInterfaces.Timeline> {
|
||||
): Promise<TaskAgentInterfaces.Timeline> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.Timeline>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -799,24 +886,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"83597576-cc2c-453c-bea6-2882ae6a1653",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline>;
|
||||
res = await this.rest.create<TaskAgentInterfaces.Timeline>(url, timeline, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -835,7 +922,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
hubName: string,
|
||||
planId: string,
|
||||
timelineId: string
|
||||
): Promise<void> {
|
||||
): Promise<void> {
|
||||
|
||||
return new Promise<void>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -847,24 +934,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"83597576-cc2c-453c-bea6-2882ae6a1653",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
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);
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -887,7 +974,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
timelineId: string,
|
||||
changeId?: number,
|
||||
includeRecords?: boolean
|
||||
): Promise<TaskAgentInterfaces.Timeline> {
|
||||
): Promise<TaskAgentInterfaces.Timeline> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.Timeline>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -901,28 +988,28 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
changeId: changeId,
|
||||
includeRecords: includeRecords,
|
||||
};
|
||||
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"83597576-cc2c-453c-bea6-2882ae6a1653",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.Timeline>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
false);
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
@ -939,7 +1026,7 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
scopeIdentifier: string,
|
||||
hubName: string,
|
||||
planId: string
|
||||
): Promise<TaskAgentInterfaces.Timeline[]> {
|
||||
): Promise<TaskAgentInterfaces.Timeline[]> {
|
||||
|
||||
return new Promise<TaskAgentInterfaces.Timeline[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -950,24 +1037,24 @@ export class TaskApi extends basem.ClientApiBase implements ITaskApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"3.2-preview.1",
|
||||
"5.0-preview.1",
|
||||
"distributedtask",
|
||||
"83597576-cc2c-453c-bea6-2882ae6a1653",
|
||||
routeValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TaskAgentInterfaces.Timeline[]>;
|
||||
res = await this.rest.get<TaskAgentInterfaces.Timeline[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
true);
|
||||
TaskAgentInterfaces.TypeInfo.Timeline,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
|
|
1449
api/TestApi.ts
1449
api/TestApi.ts
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
170
api/TfvcApi.ts
170
api/TfvcApi.ts
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 TfvcInterfaces = require("./interfaces/TfvcInterfaces");
|
||||
|
||||
|
@ -30,11 +28,11 @@ export interface ITfvcApi extends basem.ClientApiBase {
|
|||
getChangesetWorkItems(id?: number): Promise<TfvcInterfaces.AssociatedWorkItem[]>;
|
||||
getItemsBatch(itemRequestData: TfvcInterfaces.TfvcItemRequestData, project?: string): Promise<TfvcInterfaces.TfvcItem[][]>;
|
||||
getItemsBatchZip(itemRequestData: TfvcInterfaces.TfvcItemRequestData, project?: string): Promise<NodeJS.ReadableStream>;
|
||||
getItem(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor): Promise<TfvcInterfaces.TfvcItem>;
|
||||
getItemContent(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor): Promise<NodeJS.ReadableStream>;
|
||||
getItem(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor, includeContent?: boolean): Promise<TfvcInterfaces.TfvcItem>;
|
||||
getItemContent(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor, includeContent?: boolean): Promise<NodeJS.ReadableStream>;
|
||||
getItems(project?: string, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, includeLinks?: boolean, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor): Promise<TfvcInterfaces.TfvcItem[]>;
|
||||
getItemText(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor): Promise<NodeJS.ReadableStream>;
|
||||
getItemZip(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor): Promise<NodeJS.ReadableStream>;
|
||||
getItemText(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor, includeContent?: boolean): Promise<NodeJS.ReadableStream>;
|
||||
getItemZip(path: string, project?: string, fileName?: string, download?: boolean, scopePath?: string, recursionLevel?: TfvcInterfaces.VersionControlRecursionType, versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor, includeContent?: boolean): Promise<NodeJS.ReadableStream>;
|
||||
getLabelItems(labelId: string, top?: number, skip?: number): Promise<TfvcInterfaces.TfvcItem[]>;
|
||||
getLabel(labelId: string, requestData: TfvcInterfaces.TfvcLabelRequestData, project?: string): Promise<TfvcInterfaces.TfvcLabel>;
|
||||
getLabels(requestData: TfvcInterfaces.TfvcLabelRequestData, project?: string, top?: number, skip?: number): Promise<TfvcInterfaces.TfvcLabelRef[]>;
|
||||
|
@ -42,6 +40,7 @@ export interface ITfvcApi extends basem.ClientApiBase {
|
|||
getShelveset(shelvesetId: string, requestData?: TfvcInterfaces.TfvcShelvesetRequestData): Promise<TfvcInterfaces.TfvcShelveset>;
|
||||
getShelvesets(requestData?: TfvcInterfaces.TfvcShelvesetRequestData, top?: number, skip?: number): Promise<TfvcInterfaces.TfvcShelvesetRef[]>;
|
||||
getShelvesetWorkItems(shelvesetId: string): Promise<TfvcInterfaces.AssociatedWorkItem[]>;
|
||||
getTfvcStatistics(project?: string, scopePath?: string): Promise<TfvcInterfaces.TfvcStatistics>;
|
||||
}
|
||||
|
||||
export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
||||
|
@ -49,6 +48,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
super(baseUrl, handlers, 'node-Tfvc-api', options);
|
||||
}
|
||||
|
||||
public static readonly RESOURCE_AREA_ID = "8aa40520-446d-40e6-89f6-9c9f9ce44c48";
|
||||
|
||||
/**
|
||||
* Get a single branch hierarchy at the given path with parents or children as specified.
|
||||
*
|
||||
|
@ -63,6 +64,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
includeParent?: boolean,
|
||||
includeChildren?: boolean
|
||||
): Promise<TfvcInterfaces.TfvcBranch> {
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcBranch>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -77,7 +81,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"bc1f417e-239d-42e7-85e1-76e80cb2d6eb",
|
||||
routeValues,
|
||||
|
@ -134,7 +138,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"bc1f417e-239d-42e7-85e1-76e80cb2d6eb",
|
||||
routeValues,
|
||||
|
@ -174,6 +178,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
includeDeleted?: boolean,
|
||||
includeLinks?: boolean
|
||||
): Promise<TfvcInterfaces.TfvcBranchRef[]> {
|
||||
if (scopePath == null) {
|
||||
throw new TypeError('scopePath can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcBranchRef[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -188,7 +195,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"bc1f417e-239d-42e7-85e1-76e80cb2d6eb",
|
||||
routeValues,
|
||||
|
@ -239,7 +246,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"f32b86f2-15b9-4fe6-81b1-6f8938617ee5",
|
||||
routeValues,
|
||||
|
@ -283,7 +290,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"tfvc",
|
||||
"0bc8f0a4-6bfb-42a9-ba84-139da7b99c49",
|
||||
routeValues);
|
||||
|
@ -357,7 +364,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"tfvc",
|
||||
"0bc8f0a4-6bfb-42a9-ba84-139da7b99c49",
|
||||
routeValues,
|
||||
|
@ -417,7 +424,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.3",
|
||||
"5.0-preview.3",
|
||||
"tfvc",
|
||||
"0bc8f0a4-6bfb-42a9-ba84-139da7b99c49",
|
||||
routeValues,
|
||||
|
@ -458,7 +465,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"b7e7c173-803c-4fea-9ec8-31ee35c5502a",
|
||||
routeValues);
|
||||
|
@ -499,7 +506,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"64ae0bea-1d71-47c9-a9e5-fe73f5ea0ff4",
|
||||
routeValues);
|
||||
|
@ -542,7 +549,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"fe6f827b-5f64-480f-b8af-1eca3b80e833",
|
||||
routeValues);
|
||||
|
@ -585,7 +592,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"fe6f827b-5f64-480f-b8af-1eca3b80e833",
|
||||
routeValues);
|
||||
|
@ -611,7 +618,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
* @param {boolean} download - If true, create a downloadable attachment.
|
||||
* @param {string} scopePath - Version control path of a folder to return multiple items.
|
||||
* @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
|
||||
* @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
|
||||
*/
|
||||
public async getItem(
|
||||
path: string,
|
||||
|
@ -620,8 +628,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
download?: boolean,
|
||||
scopePath?: string,
|
||||
recursionLevel?: TfvcInterfaces.VersionControlRecursionType,
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor,
|
||||
includeContent?: boolean
|
||||
): Promise<TfvcInterfaces.TfvcItem> {
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcItem>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -635,11 +647,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
scopePath: scopePath,
|
||||
recursionLevel: recursionLevel,
|
||||
versionDescriptor: versionDescriptor,
|
||||
includeContent: includeContent,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"ba9fc436-9a38-4578-89d6-e4f3241f5040",
|
||||
routeValues,
|
||||
|
@ -674,7 +687,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
* @param {boolean} download - If true, create a downloadable attachment.
|
||||
* @param {string} scopePath - Version control path of a folder to return multiple items.
|
||||
* @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
|
||||
* @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
|
||||
*/
|
||||
public async getItemContent(
|
||||
path: string,
|
||||
|
@ -683,8 +697,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
download?: boolean,
|
||||
scopePath?: string,
|
||||
recursionLevel?: TfvcInterfaces.VersionControlRecursionType,
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor,
|
||||
includeContent?: boolean
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<NodeJS.ReadableStream>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -698,11 +716,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
scopePath: scopePath,
|
||||
recursionLevel: recursionLevel,
|
||||
versionDescriptor: versionDescriptor,
|
||||
includeContent: includeContent,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"ba9fc436-9a38-4578-89d6-e4f3241f5040",
|
||||
routeValues,
|
||||
|
@ -751,7 +770,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"ba9fc436-9a38-4578-89d6-e4f3241f5040",
|
||||
routeValues,
|
||||
|
@ -786,7 +805,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
* @param {boolean} download - If true, create a downloadable attachment.
|
||||
* @param {string} scopePath - Version control path of a folder to return multiple items.
|
||||
* @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
|
||||
* @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
|
||||
*/
|
||||
public async getItemText(
|
||||
path: string,
|
||||
|
@ -795,8 +815,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
download?: boolean,
|
||||
scopePath?: string,
|
||||
recursionLevel?: TfvcInterfaces.VersionControlRecursionType,
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor,
|
||||
includeContent?: boolean
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<NodeJS.ReadableStream>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -810,11 +834,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
scopePath: scopePath,
|
||||
recursionLevel: recursionLevel,
|
||||
versionDescriptor: versionDescriptor,
|
||||
includeContent: includeContent,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"ba9fc436-9a38-4578-89d6-e4f3241f5040",
|
||||
routeValues,
|
||||
|
@ -841,7 +866,8 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
* @param {boolean} download - If true, create a downloadable attachment.
|
||||
* @param {string} scopePath - Version control path of a folder to return multiple items.
|
||||
* @param {TfvcInterfaces.VersionControlRecursionType} recursionLevel - None (just the item), or OneLevel (contents of a folder).
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor
|
||||
* @param {TfvcInterfaces.TfvcVersionDescriptor} versionDescriptor - Version descriptor. Default is null.
|
||||
* @param {boolean} includeContent - Set to true to include item content when requesting json. Default is false.
|
||||
*/
|
||||
public async getItemZip(
|
||||
path: string,
|
||||
|
@ -850,8 +876,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
download?: boolean,
|
||||
scopePath?: string,
|
||||
recursionLevel?: TfvcInterfaces.VersionControlRecursionType,
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor
|
||||
versionDescriptor?: TfvcInterfaces.TfvcVersionDescriptor,
|
||||
includeContent?: boolean
|
||||
): Promise<NodeJS.ReadableStream> {
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<NodeJS.ReadableStream>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -865,11 +895,12 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
scopePath: scopePath,
|
||||
recursionLevel: recursionLevel,
|
||||
versionDescriptor: versionDescriptor,
|
||||
includeContent: includeContent,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"ba9fc436-9a38-4578-89d6-e4f3241f5040",
|
||||
routeValues,
|
||||
|
@ -912,7 +943,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"06166e34-de17-4b60-8cd1-23182a346fda",
|
||||
routeValues,
|
||||
|
@ -950,6 +981,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
requestData: TfvcInterfaces.TfvcLabelRequestData,
|
||||
project?: string
|
||||
): Promise<TfvcInterfaces.TfvcLabel> {
|
||||
if (requestData == null) {
|
||||
throw new TypeError('requestData can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcLabel>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -963,7 +997,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"a5d9bd7f-b661-4d0e-b9be-d9c16affae54",
|
||||
routeValues,
|
||||
|
@ -1003,6 +1037,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
top?: number,
|
||||
skip?: number
|
||||
): Promise<TfvcInterfaces.TfvcLabelRef[]> {
|
||||
if (requestData == null) {
|
||||
throw new TypeError('requestData can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcLabelRef[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -1017,7 +1054,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"a5d9bd7f-b661-4d0e-b9be-d9c16affae54",
|
||||
routeValues,
|
||||
|
@ -1055,6 +1092,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
top?: number,
|
||||
skip?: number
|
||||
): Promise<TfvcInterfaces.TfvcChange[]> {
|
||||
if (shelvesetId == null) {
|
||||
throw new TypeError('shelvesetId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcChange[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -1068,7 +1108,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"dbaf075b-0445-4c34-9e5b-82292f856522",
|
||||
routeValues,
|
||||
|
@ -1104,6 +1144,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
shelvesetId: string,
|
||||
requestData?: TfvcInterfaces.TfvcShelvesetRequestData
|
||||
): Promise<TfvcInterfaces.TfvcShelveset> {
|
||||
if (shelvesetId == null) {
|
||||
throw new TypeError('shelvesetId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcShelveset>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -1116,7 +1159,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"e36d44fb-e907-4b0a-b194-f83f1ed32ad3",
|
||||
routeValues,
|
||||
|
@ -1167,7 +1210,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"e36d44fb-e907-4b0a-b194-f83f1ed32ad3",
|
||||
routeValues,
|
||||
|
@ -1201,6 +1244,9 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
public async getShelvesetWorkItems(
|
||||
shelvesetId: string
|
||||
): Promise<TfvcInterfaces.AssociatedWorkItem[]> {
|
||||
if (shelvesetId == null) {
|
||||
throw new TypeError('shelvesetId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<TfvcInterfaces.AssociatedWorkItem[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -1212,7 +1258,7 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"a7a0c1c1-373e-425a-b031-a519474d743d",
|
||||
routeValues,
|
||||
|
@ -1238,4 +1284,52 @@ export class TfvcApi extends basem.ClientApiBase implements ITfvcApi {
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Provides File Count and Uncompressed Bytes for a Collection/Project at a particular scope for TFVC.
|
||||
*
|
||||
* @param {string} project - Project ID or project name
|
||||
* @param {string} scopePath - '$/' for collection, '$/project' for specific project
|
||||
*/
|
||||
public async getTfvcStatistics(
|
||||
project?: string,
|
||||
scopePath?: string
|
||||
): Promise<TfvcInterfaces.TfvcStatistics> {
|
||||
|
||||
return new Promise<TfvcInterfaces.TfvcStatistics>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
project: project
|
||||
};
|
||||
|
||||
let queryValues: any = {
|
||||
scopePath: scopePath,
|
||||
};
|
||||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"5.0-preview.1",
|
||||
"tfvc",
|
||||
"e15c74c0-3605-40e0-aed4-4cc61e549ed8",
|
||||
routeValues,
|
||||
queryValues);
|
||||
|
||||
let url: string = verData.requestUrl;
|
||||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<TfvcInterfaces.TfvcStatistics>;
|
||||
res = await this.rest.get<TfvcInterfaces.TfvcStatistics>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
null,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
||||
}
|
||||
catch (err) {
|
||||
reject(err);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 GitInterfaces = require("./interfaces/GitInterfaces");
|
||||
import WikiInterfaces = require("./interfaces/WikiInterfaces");
|
||||
|
@ -35,6 +33,8 @@ export class WikiApi extends basem.ClientApiBase implements IWikiApi {
|
|||
super(baseUrl, handlers, 'node-Wiki-api', options);
|
||||
}
|
||||
|
||||
public static readonly RESOURCE_AREA_ID = "bf7d82a0-8aa5-4613-94ef-6172a5ea01f3";
|
||||
|
||||
/**
|
||||
* Gets metadata or content of the wiki page for the provided path. Content negotiation is done based on the `Accept` header sent in the request.
|
||||
*
|
||||
|
@ -155,6 +155,12 @@ export class WikiApi extends basem.ClientApiBase implements IWikiApi {
|
|||
path: string,
|
||||
oldPath?: string
|
||||
): Promise<WikiInterfaces.WikiPageViewStats> {
|
||||
if (wikiVersion == null) {
|
||||
throw new TypeError('wikiVersion can not be null or undefined');
|
||||
}
|
||||
if (path == null) {
|
||||
throw new TypeError('path can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<WikiInterfaces.WikiPageViewStats>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -181,7 +187,7 @@ export class WikiApi extends basem.ClientApiBase implements IWikiApi {
|
|||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WikiInterfaces.WikiPageViewStats>;
|
||||
res = await this.rest.create<WikiInterfaces.WikiPageViewStats>(url, options);
|
||||
res = await this.rest.create<WikiInterfaces.WikiPageViewStats>(url, null, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
WikiInterfaces.TypeInfo.WikiPageViewStats,
|
||||
|
|
561
api/WorkApi.ts
561
api/WorkApi.ts
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,10 +11,8 @@
|
|||
// 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 WorkItemTrackingProcessDefinitionsInterfaces = require("./interfaces/WorkItemTrackingProcessDefinitionsInterfaces");
|
||||
|
||||
|
@ -60,9 +58,9 @@ export interface IWorkItemTrackingProcessDefinitionsApi extends basem.ClientApiB
|
|||
getWorkItemType(processId: string, witRefName: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
|
||||
getWorkItemTypes(processId: string, expand?: WorkItemTrackingProcessDefinitionsInterfaces.GetWorkItemTypeExpand): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel[]>;
|
||||
updateWorkItemType(workItemTypeUpdate: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeUpdateModel, processId: string, witRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeModel>;
|
||||
addFieldToWorkItemType(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>;
|
||||
getWorkItemTypeField(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>;
|
||||
getWorkItemTypeFields(processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel[]>;
|
||||
addFieldToWorkItemType(field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
|
||||
getWorkItemTypeField(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
|
||||
getWorkItemTypeFields(processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>;
|
||||
removeFieldFromWorkItemType(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<void>;
|
||||
}
|
||||
|
||||
|
@ -71,6 +69,8 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
super(baseUrl, handlers, 'node-WorkItemTracking-api', options);
|
||||
}
|
||||
|
||||
public static readonly RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
|
||||
|
||||
/**
|
||||
* Creates a single behavior in the given process.
|
||||
*
|
||||
|
@ -89,7 +89,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"47a651f4-fb70-43bf-b96b-7c0ba947142b",
|
||||
routeValues);
|
||||
|
@ -133,7 +133,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"47a651f4-fb70-43bf-b96b-7c0ba947142b",
|
||||
routeValues);
|
||||
|
@ -177,7 +177,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"47a651f4-fb70-43bf-b96b-7c0ba947142b",
|
||||
routeValues);
|
||||
|
@ -218,7 +218,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"47a651f4-fb70-43bf-b96b-7c0ba947142b",
|
||||
routeValues);
|
||||
|
@ -264,7 +264,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"47a651f4-fb70-43bf-b96b-7c0ba947142b",
|
||||
routeValues);
|
||||
|
@ -313,7 +313,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"e2e3166a-627a-4e9b-85b2-d6a097bbd731",
|
||||
routeValues);
|
||||
|
@ -365,7 +365,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"e2e3166a-627a-4e9b-85b2-d6a097bbd731",
|
||||
routeValues);
|
||||
|
@ -415,7 +415,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"e2e3166a-627a-4e9b-85b2-d6a097bbd731",
|
||||
routeValues);
|
||||
|
@ -473,7 +473,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"e2e3166a-627a-4e9b-85b2-d6a097bbd731",
|
||||
routeValues,
|
||||
|
@ -517,7 +517,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"f36c66c7-911d-4163-8938-d3c5d0d7f5aa",
|
||||
routeValues);
|
||||
|
@ -560,7 +560,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"f36c66c7-911d-4163-8938-d3c5d0d7f5aa",
|
||||
routeValues);
|
||||
|
@ -612,7 +612,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"2617828b-e850-4375-a92a-04855704d4c3",
|
||||
routeValues);
|
||||
|
@ -667,7 +667,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"2617828b-e850-4375-a92a-04855704d4c3",
|
||||
routeValues);
|
||||
|
@ -720,7 +720,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"2617828b-e850-4375-a92a-04855704d4c3",
|
||||
routeValues);
|
||||
|
@ -767,6 +767,12 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
removeFromPageId: string,
|
||||
removeFromSectionId: string
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group> {
|
||||
if (removeFromPageId == null) {
|
||||
throw new TypeError('removeFromPageId can not be null or undefined');
|
||||
}
|
||||
if (removeFromSectionId == null) {
|
||||
throw new TypeError('removeFromSectionId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -784,7 +790,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"2617828b-e850-4375-a92a-04855704d4c3",
|
||||
routeValues,
|
||||
|
@ -830,6 +836,9 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
groupId: string,
|
||||
removeFromSectionId: string
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group> {
|
||||
if (removeFromSectionId == null) {
|
||||
throw new TypeError('removeFromSectionId can not be null or undefined');
|
||||
}
|
||||
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.Group>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
|
@ -846,7 +855,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"2617828b-e850-4375-a92a-04855704d4c3",
|
||||
routeValues,
|
||||
|
@ -891,7 +900,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"3eacc80a-ddca-4404-857a-6331aac99063",
|
||||
routeValues);
|
||||
|
@ -929,7 +938,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"b45cc931-98e3-44a1-b1cd-2e8e9c6dc1c6",
|
||||
routeValues);
|
||||
|
@ -969,7 +978,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"0b6179e2-23ce-46b2-b094-2ffa5ee70286",
|
||||
routeValues);
|
||||
|
@ -1010,7 +1019,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"0b6179e2-23ce-46b2-b094-2ffa5ee70286",
|
||||
routeValues);
|
||||
|
@ -1051,7 +1060,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"0b6179e2-23ce-46b2-b094-2ffa5ee70286",
|
||||
routeValues);
|
||||
|
@ -1094,7 +1103,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"0b6179e2-23ce-46b2-b094-2ffa5ee70286",
|
||||
routeValues);
|
||||
|
@ -1140,7 +1149,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1b4ac126-59b2-4f37-b4df-0a48ba807edb",
|
||||
routeValues);
|
||||
|
@ -1186,7 +1195,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1b4ac126-59b2-4f37-b4df-0a48ba807edb",
|
||||
routeValues);
|
||||
|
@ -1233,7 +1242,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1b4ac126-59b2-4f37-b4df-0a48ba807edb",
|
||||
routeValues);
|
||||
|
@ -1279,7 +1288,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1326,7 +1335,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1373,7 +1382,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1417,7 +1426,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1466,7 +1475,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1515,7 +1524,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"4303625d-08f4-4461-b14b-32c65bba5599",
|
||||
routeValues);
|
||||
|
@ -1561,7 +1570,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"921dfb88-ef57-4c69-94e5-dd7da2d7031d",
|
||||
routeValues);
|
||||
|
@ -1608,7 +1617,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"921dfb88-ef57-4c69-94e5-dd7da2d7031d",
|
||||
routeValues);
|
||||
|
@ -1652,7 +1661,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"921dfb88-ef57-4c69-94e5-dd7da2d7031d",
|
||||
routeValues);
|
||||
|
@ -1699,7 +1708,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"921dfb88-ef57-4c69-94e5-dd7da2d7031d",
|
||||
routeValues);
|
||||
|
@ -1725,7 +1734,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
}
|
||||
|
||||
/**
|
||||
* Updates a behavior for the work item type of the process.
|
||||
* Updates default work item type for the behavior of the process.
|
||||
*
|
||||
* @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeBehavior} behavior
|
||||
* @param {string} processId - The ID of the process
|
||||
|
@ -1745,7 +1754,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"921dfb88-ef57-4c69-94e5-dd7da2d7031d",
|
||||
routeValues);
|
||||
|
@ -1788,7 +1797,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1ce0acad-4638-49c3-969c-04aa65ba6bea",
|
||||
routeValues);
|
||||
|
@ -1832,7 +1841,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1ce0acad-4638-49c3-969c-04aa65ba6bea",
|
||||
routeValues);
|
||||
|
@ -1882,7 +1891,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1ce0acad-4638-49c3-969c-04aa65ba6bea",
|
||||
routeValues,
|
||||
|
@ -1930,7 +1939,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1ce0acad-4638-49c3-969c-04aa65ba6bea",
|
||||
routeValues,
|
||||
|
@ -1977,7 +1986,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"1ce0acad-4638-49c3-969c-04aa65ba6bea",
|
||||
routeValues);
|
||||
|
@ -2005,17 +2014,17 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
/**
|
||||
* Adds a field to the work item type in the process.
|
||||
*
|
||||
* @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel} field
|
||||
* @param {WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2} field
|
||||
* @param {string} processId - The ID of the process
|
||||
* @param {string} witRefNameForFields - Work item type reference name for the field
|
||||
*/
|
||||
public async addFieldToWorkItemType(
|
||||
field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel,
|
||||
field: WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2,
|
||||
processId: string,
|
||||
witRefNameForFields: string
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel> {
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2> {
|
||||
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>(async (resolve, reject) => {
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
processId: processId,
|
||||
witRefNameForFields: witRefNameForFields
|
||||
|
@ -2023,7 +2032,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"976713b4-a62e-499e-94dc-eeb869ea9126",
|
||||
routeValues);
|
||||
|
@ -2032,11 +2041,11 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>;
|
||||
res = await this.rest.create<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>(url, field, options);
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
|
||||
res = await this.rest.create<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>(url, field, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
@ -2049,7 +2058,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
}
|
||||
|
||||
/**
|
||||
* Retuens a single field in the work item type of the process.
|
||||
* Returns a single field in the work item type of the process.
|
||||
*
|
||||
* @param {string} processId - The ID of the process
|
||||
* @param {string} witRefNameForFields - Work item type reference name for fields
|
||||
|
@ -2059,9 +2068,9 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
processId: string,
|
||||
witRefNameForFields: string,
|
||||
fieldRefName: string
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel> {
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2> {
|
||||
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>(async (resolve, reject) => {
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
processId: processId,
|
||||
witRefNameForFields: witRefNameForFields,
|
||||
|
@ -2070,7 +2079,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"976713b4-a62e-499e-94dc-eeb869ea9126",
|
||||
routeValues);
|
||||
|
@ -2079,11 +2088,11 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>;
|
||||
res = await this.rest.get<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel>(url, options);
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>;
|
||||
res = await this.rest.get<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2,
|
||||
false);
|
||||
|
||||
resolve(ret);
|
||||
|
@ -2104,9 +2113,9 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
public async getWorkItemTypeFields(
|
||||
processId: string,
|
||||
witRefNameForFields: string
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel[]> {
|
||||
): Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]> {
|
||||
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel[]>(async (resolve, reject) => {
|
||||
return new Promise<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>(async (resolve, reject) => {
|
||||
let routeValues: any = {
|
||||
processId: processId,
|
||||
witRefNameForFields: witRefNameForFields
|
||||
|
@ -2114,7 +2123,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"976713b4-a62e-499e-94dc-eeb869ea9126",
|
||||
routeValues);
|
||||
|
@ -2123,11 +2132,11 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
let options: restm.IRequestOptions = this.createRequestOptions('application/json',
|
||||
verData.apiVersion);
|
||||
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel[]>;
|
||||
res = await this.rest.get<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel[]>(url, options);
|
||||
let res: restm.IRestResponse<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>;
|
||||
res = await this.rest.get<WorkItemTrackingProcessDefinitionsInterfaces.WorkItemTypeFieldModel2[]>(url, options);
|
||||
|
||||
let ret = this.formatResponse(res.result,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel,
|
||||
WorkItemTrackingProcessDefinitionsInterfaces.TypeInfo.WorkItemTypeFieldModel2,
|
||||
true);
|
||||
|
||||
resolve(ret);
|
||||
|
@ -2161,7 +2170,7 @@ export class WorkItemTrackingProcessDefinitionsApi extends basem.ClientApiBase i
|
|||
|
||||
try {
|
||||
let verData: vsom.ClientVersioningData = await this.vsoClient.getVersioningData(
|
||||
"4.1-preview.1",
|
||||
"5.0-preview.1",
|
||||
"processDefinitions",
|
||||
"976713b4-a62e-499e-94dc-eeb869ea9126",
|
||||
routeValues);
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -34,20 +34,20 @@ export enum ConnectedServiceKind {
|
|||
}
|
||||
|
||||
export interface IdentityData {
|
||||
identityIds: string[];
|
||||
identityIds?: string[];
|
||||
}
|
||||
|
||||
export interface Process extends ProcessReference {
|
||||
_links: any;
|
||||
description: string;
|
||||
id: string;
|
||||
isDefault: boolean;
|
||||
type: ProcessType;
|
||||
_links?: any;
|
||||
description?: string;
|
||||
id?: string;
|
||||
isDefault?: boolean;
|
||||
type?: ProcessType;
|
||||
}
|
||||
|
||||
export interface ProcessReference {
|
||||
name: string;
|
||||
url: string;
|
||||
name?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export enum ProcessType {
|
||||
|
@ -66,31 +66,31 @@ export enum ProjectChangeType {
|
|||
* Contains information of the project
|
||||
*/
|
||||
export interface ProjectInfo {
|
||||
abbreviation: string;
|
||||
description: string;
|
||||
id: string;
|
||||
lastUpdateTime: Date;
|
||||
name: string;
|
||||
properties: ProjectProperty[];
|
||||
abbreviation?: string;
|
||||
description?: string;
|
||||
id?: string;
|
||||
lastUpdateTime?: Date;
|
||||
name?: string;
|
||||
properties?: ProjectProperty[];
|
||||
/**
|
||||
* Current revision of the project
|
||||
*/
|
||||
revision: number;
|
||||
state: any;
|
||||
uri: string;
|
||||
version: number;
|
||||
visibility: ProjectVisibility;
|
||||
revision?: number;
|
||||
state?: any;
|
||||
uri?: string;
|
||||
version?: number;
|
||||
visibility?: ProjectVisibility;
|
||||
}
|
||||
|
||||
export interface ProjectMessage {
|
||||
project: ProjectInfo;
|
||||
projectChangeType: ProjectChangeType;
|
||||
shouldInvalidateSystemStore: boolean;
|
||||
project?: ProjectInfo;
|
||||
projectChangeType?: ProjectChangeType;
|
||||
shouldInvalidateSystemStore?: boolean;
|
||||
}
|
||||
|
||||
export interface ProjectProperty {
|
||||
name: string;
|
||||
value: any;
|
||||
name?: string;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
export enum ProjectVisibility {
|
||||
|
@ -98,47 +98,48 @@ export enum ProjectVisibility {
|
|||
Private = 0,
|
||||
Organization = 1,
|
||||
Public = 2,
|
||||
SystemPrivate = 3,
|
||||
}
|
||||
|
||||
export interface Proxy {
|
||||
authorization: ProxyAuthorization;
|
||||
authorization?: ProxyAuthorization;
|
||||
/**
|
||||
* This is a description string
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* The friendly name of the server
|
||||
*/
|
||||
friendlyName: string;
|
||||
globalDefault: boolean;
|
||||
friendlyName?: string;
|
||||
globalDefault?: boolean;
|
||||
/**
|
||||
* This is a string representation of the site that the proxy server is located in (e.g. "NA-WA-RED")
|
||||
*/
|
||||
site: string;
|
||||
siteDefault: boolean;
|
||||
site?: string;
|
||||
siteDefault?: boolean;
|
||||
/**
|
||||
* The URL of the proxy server
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface ProxyAuthorization {
|
||||
/**
|
||||
* Gets or sets the endpoint used to obtain access tokens from the configured token service.
|
||||
*/
|
||||
authorizationUrl: string;
|
||||
authorizationUrl?: string;
|
||||
/**
|
||||
* Gets or sets the client identifier for this proxy.
|
||||
*/
|
||||
clientId: string;
|
||||
clientId?: string;
|
||||
/**
|
||||
* Gets or sets the user identity to authorize for on-prem.
|
||||
*/
|
||||
identity: IdentitiesInterfaces.IdentityDescriptor;
|
||||
identity?: IdentitiesInterfaces.IdentityDescriptor;
|
||||
/**
|
||||
* Gets or sets the public key used to verify the identity of this proxy. Only specify on hosted.
|
||||
*/
|
||||
publicKey: VSSInterfaces.PublicKey;
|
||||
publicKey?: VSSInterfaces.PublicKey;
|
||||
}
|
||||
|
||||
export enum SourceControlTypes {
|
||||
|
@ -153,19 +154,19 @@ export interface TeamContext {
|
|||
/**
|
||||
* The team project Id or name. Ignored if ProjectId is set.
|
||||
*/
|
||||
project: string;
|
||||
project?: string;
|
||||
/**
|
||||
* The Team Project ID. Required if Project is not set.
|
||||
*/
|
||||
projectId: string;
|
||||
projectId?: string;
|
||||
/**
|
||||
* The Team Id or name. Ignored if TeamId is set.
|
||||
*/
|
||||
team: string;
|
||||
team?: string;
|
||||
/**
|
||||
* The Team Id
|
||||
*/
|
||||
teamId: string;
|
||||
teamId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -175,15 +176,15 @@ export interface TeamProject extends TeamProjectReference {
|
|||
/**
|
||||
* The links to other objects related to this object.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Set of capabilities this project has (such as process template & version control).
|
||||
*/
|
||||
capabilities: { [key: string] : { [key: string] : string; }; };
|
||||
capabilities?: { [key: string] : { [key: string] : string; }; };
|
||||
/**
|
||||
* The shallow ref to the default team.
|
||||
*/
|
||||
defaultTeam: WebApiTeamRef;
|
||||
defaultTeam?: WebApiTeamRef;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -193,15 +194,19 @@ export interface TeamProjectCollection extends TeamProjectCollectionReference {
|
|||
/**
|
||||
* The links to other objects related to this object.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Project collection description.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* True if collection supports inherited process customization model.
|
||||
*/
|
||||
enableInheritedProcessCustomization?: boolean;
|
||||
/**
|
||||
* Project collection state.
|
||||
*/
|
||||
state: string;
|
||||
state?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -211,15 +216,15 @@ export interface TeamProjectCollectionReference {
|
|||
/**
|
||||
* Collection Id.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Collection Name.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Collection REST Url.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -229,104 +234,104 @@ export interface TeamProjectReference {
|
|||
/**
|
||||
* Project abbreviation.
|
||||
*/
|
||||
abbreviation: string;
|
||||
abbreviation?: string;
|
||||
/**
|
||||
* The project's description (if any).
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Project identifier.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Project name.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Project revision.
|
||||
*/
|
||||
revision: number;
|
||||
revision?: number;
|
||||
/**
|
||||
* Project state.
|
||||
*/
|
||||
state: any;
|
||||
state?: any;
|
||||
/**
|
||||
* Url to the full version of the object.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
/**
|
||||
* Project visibility.
|
||||
*/
|
||||
visibility: ProjectVisibility;
|
||||
visibility?: ProjectVisibility;
|
||||
}
|
||||
|
||||
/**
|
||||
* A data transfer object that stores the metadata associated with the creation of temporary data.
|
||||
*/
|
||||
export interface TemporaryDataCreatedDTO extends TemporaryDataDTO {
|
||||
expirationDate: Date;
|
||||
id: string;
|
||||
url: string;
|
||||
expirationDate?: Date;
|
||||
id?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* A data transfer object that stores the metadata associated with the temporary data.
|
||||
*/
|
||||
export interface TemporaryDataDTO {
|
||||
expirationSeconds: number;
|
||||
origin: string;
|
||||
value: any;
|
||||
expirationSeconds?: number;
|
||||
origin?: string;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
export interface WebApiConnectedService extends WebApiConnectedServiceRef {
|
||||
/**
|
||||
* The user who did the OAuth authentication to created this service
|
||||
*/
|
||||
authenticatedBy: VSSInterfaces.IdentityRef;
|
||||
authenticatedBy?: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* Extra description on the service.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Friendly Name of service connection
|
||||
*/
|
||||
friendlyName: string;
|
||||
friendlyName?: string;
|
||||
/**
|
||||
* Id/Name of the connection service. For Ex: Subscription Id for Azure Connection
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* The kind of service.
|
||||
*/
|
||||
kind: string;
|
||||
kind?: string;
|
||||
/**
|
||||
* The project associated with this service
|
||||
*/
|
||||
project: TeamProjectReference;
|
||||
project?: TeamProjectReference;
|
||||
/**
|
||||
* Optional uri to connect directly to the service such as https://windows.azure.com
|
||||
*/
|
||||
serviceUri: string;
|
||||
serviceUri?: string;
|
||||
}
|
||||
|
||||
export interface WebApiConnectedServiceDetails extends WebApiConnectedServiceRef {
|
||||
/**
|
||||
* Meta data for service connection
|
||||
*/
|
||||
connectedServiceMetaData: WebApiConnectedService;
|
||||
connectedServiceMetaData?: WebApiConnectedService;
|
||||
/**
|
||||
* Credential info
|
||||
*/
|
||||
credentialsXml: string;
|
||||
credentialsXml?: string;
|
||||
/**
|
||||
* Optional uri to connect directly to the service such as https://windows.azure.com
|
||||
*/
|
||||
endPoint: string;
|
||||
endPoint?: string;
|
||||
}
|
||||
|
||||
export interface WebApiConnectedServiceRef {
|
||||
id: string;
|
||||
url: string;
|
||||
id?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -343,45 +348,45 @@ export interface WebApiProject extends TeamProjectReference {
|
|||
/**
|
||||
* Set of capabilities this project has
|
||||
*/
|
||||
capabilities: { [key: string] : { [key: string] : string; }; };
|
||||
capabilities?: { [key: string] : { [key: string] : string; }; };
|
||||
/**
|
||||
* Reference to collection which contains this project
|
||||
*/
|
||||
collection: WebApiProjectCollectionRef;
|
||||
collection?: WebApiProjectCollectionRef;
|
||||
/**
|
||||
* Default team for this project
|
||||
*/
|
||||
defaultTeam: WebApiTeamRef;
|
||||
defaultTeam?: WebApiTeamRef;
|
||||
}
|
||||
|
||||
export interface WebApiProjectCollection extends WebApiProjectCollectionRef {
|
||||
/**
|
||||
* Project collection description
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Project collection state
|
||||
*/
|
||||
state: string;
|
||||
state?: string;
|
||||
}
|
||||
|
||||
export interface WebApiProjectCollectionRef {
|
||||
/**
|
||||
* Collection Tfs Url (Host Url)
|
||||
*/
|
||||
collectionUrl: string;
|
||||
collectionUrl?: string;
|
||||
/**
|
||||
* Collection Guid
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Collection Name
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Collection REST Url
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -391,45 +396,47 @@ export interface WebApiTagDefinition {
|
|||
/**
|
||||
* Whether or not the tag definition is active.
|
||||
*/
|
||||
active: boolean;
|
||||
active?: boolean;
|
||||
/**
|
||||
* ID of the tag definition.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* The name of the tag definition.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Resource URL for the Tag Definition.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface WebApiTeam extends WebApiTeamRef {
|
||||
/**
|
||||
* Team description
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Identity REST API Url to this team
|
||||
*/
|
||||
identityUrl: string;
|
||||
identityUrl?: string;
|
||||
projectId?: string;
|
||||
projectName?: string;
|
||||
}
|
||||
|
||||
export interface WebApiTeamRef {
|
||||
/**
|
||||
* Team (Identity) Guid. A Team Foundation ID.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Team name
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Team REST API Url
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
@ -463,7 +470,6 @@ export var TypeInfo = {
|
|||
},
|
||||
ProjectVisibility: {
|
||||
enumValues: {
|
||||
"unchanged": -1,
|
||||
"private": 0,
|
||||
"organization": 1,
|
||||
"public": 2
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -16,60 +16,60 @@
|
|||
* Model of a Dashboard.
|
||||
*/
|
||||
export interface Dashboard {
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Description of the dashboard.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Server defined version tracking value, used for edit collision detection.
|
||||
*/
|
||||
eTag: string;
|
||||
eTag?: string;
|
||||
/**
|
||||
* ID of the Dashboard. Provided by service at creation time.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Name of the Dashboard.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard.
|
||||
*/
|
||||
ownerId: string;
|
||||
ownerId?: string;
|
||||
/**
|
||||
* Position of the dashboard, within a dashboard group. If unset at creation time, position is decided by the service.
|
||||
*/
|
||||
position: number;
|
||||
position?: number;
|
||||
/**
|
||||
* Interval for client to automatically refresh the dashboard. Expressed in minutes.
|
||||
*/
|
||||
refreshInterval: number;
|
||||
url: string;
|
||||
refreshInterval?: number;
|
||||
url?: string;
|
||||
/**
|
||||
* The set of Widgets on the dashboard.
|
||||
*/
|
||||
widgets: Widget[];
|
||||
widgets?: Widget[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Describes a list of dashboards associated to an owner. Currently, teams own dashboard groups.
|
||||
*/
|
||||
export interface DashboardGroup {
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* A list of Dashboards held by the Dashboard Group
|
||||
*/
|
||||
dashboardEntries: DashboardGroupEntry[];
|
||||
dashboardEntries?: DashboardGroupEntry[];
|
||||
/**
|
||||
* Deprecated: The old permission model describing the level of permissions for the current team. Pre-M125.
|
||||
*/
|
||||
permission: GroupMemberPermission;
|
||||
permission?: GroupMemberPermission;
|
||||
/**
|
||||
* A permissions bit mask describing the security permissions of the current team for dashboards. When this permission is the value None, use GroupMemberPermission. Permissions are evaluated based on the presence of a value other than None, else the GroupMemberPermission will be saved.
|
||||
*/
|
||||
teamDashboardPermission: TeamDashboardPermission;
|
||||
url: string;
|
||||
teamDashboardPermission?: TeamDashboardPermission;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -109,15 +109,15 @@ export interface LightboxOptions {
|
|||
/**
|
||||
* Height of desired lightbox, in pixels
|
||||
*/
|
||||
height: number;
|
||||
height?: number;
|
||||
/**
|
||||
* True to allow lightbox resizing, false to disallow lightbox resizing, defaults to false.
|
||||
*/
|
||||
resizable: boolean;
|
||||
resizable?: boolean;
|
||||
/**
|
||||
* Width of desired lightbox, in pixels
|
||||
*/
|
||||
width: number;
|
||||
width?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -127,15 +127,15 @@ export interface SemanticVersion {
|
|||
/**
|
||||
* Major version when you make incompatible API changes
|
||||
*/
|
||||
major: number;
|
||||
major?: number;
|
||||
/**
|
||||
* Minor version when you add functionality in a backwards-compatible manner
|
||||
*/
|
||||
minor: number;
|
||||
minor?: number;
|
||||
/**
|
||||
* Patch version when you make backwards-compatible bug fixes
|
||||
*/
|
||||
patch: number;
|
||||
patch?: number;
|
||||
}
|
||||
|
||||
export enum TeamDashboardPermission {
|
||||
|
@ -151,39 +151,43 @@ export enum TeamDashboardPermission {
|
|||
* Widget data
|
||||
*/
|
||||
export interface Widget {
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Refers to the allowed sizes for the widget. This gets populated when user wants to configure the widget
|
||||
*/
|
||||
allowedSizes: WidgetSize[];
|
||||
allowedSizes?: WidgetSize[];
|
||||
/**
|
||||
* Read-Only Property from Dashboard Service. Indicates if settings are blocked for the current user.
|
||||
*/
|
||||
areSettingsBlockedForUser?: boolean;
|
||||
/**
|
||||
* Refers to unique identifier of a feature artifact. Used for pinning+unpinning a specific artifact.
|
||||
*/
|
||||
artifactId: string;
|
||||
configurationContributionId: string;
|
||||
configurationContributionRelativeId: string;
|
||||
contentUri: string;
|
||||
artifactId?: string;
|
||||
configurationContributionId?: string;
|
||||
configurationContributionRelativeId?: string;
|
||||
contentUri?: string;
|
||||
/**
|
||||
* The id of the underlying contribution defining the supplied Widget Configuration.
|
||||
*/
|
||||
contributionId: string;
|
||||
contributionId?: string;
|
||||
/**
|
||||
* Optional partial dashboard content, to support exchanging dashboard-level version ETag for widget-level APIs
|
||||
*/
|
||||
dashboard: Dashboard;
|
||||
eTag: string;
|
||||
id: string;
|
||||
isEnabled: boolean;
|
||||
isNameConfigurable: boolean;
|
||||
lightboxOptions: LightboxOptions;
|
||||
loadingImageUrl: string;
|
||||
name: string;
|
||||
position: WidgetPosition;
|
||||
settings: string;
|
||||
settingsVersion: SemanticVersion;
|
||||
size: WidgetSize;
|
||||
typeId: string;
|
||||
url: string;
|
||||
dashboard?: Dashboard;
|
||||
eTag?: string;
|
||||
id?: string;
|
||||
isEnabled?: boolean;
|
||||
isNameConfigurable?: boolean;
|
||||
lightboxOptions?: LightboxOptions;
|
||||
loadingImageUrl?: string;
|
||||
name?: string;
|
||||
position?: WidgetPosition;
|
||||
settings?: string;
|
||||
settingsVersion?: SemanticVersion;
|
||||
size?: WidgetSize;
|
||||
typeId?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -193,97 +197,97 @@ export interface WidgetMetadata {
|
|||
/**
|
||||
* Sizes supported by the Widget.
|
||||
*/
|
||||
allowedSizes: WidgetSize[];
|
||||
allowedSizes?: WidgetSize[];
|
||||
/**
|
||||
* Opt-in boolean that indicates if the widget requires the Analytics Service to function. Widgets requiring the analytics service are hidden from the catalog if the Analytics Service is not available.
|
||||
*/
|
||||
analyticsServiceRequired: boolean;
|
||||
analyticsServiceRequired?: boolean;
|
||||
/**
|
||||
* Resource for an icon in the widget catalog.
|
||||
*/
|
||||
catalogIconUrl: string;
|
||||
catalogIconUrl?: string;
|
||||
/**
|
||||
* Opt-in URL string pointing at widget information. Defaults to extension marketplace URL if omitted
|
||||
*/
|
||||
catalogInfoUrl: string;
|
||||
catalogInfoUrl?: string;
|
||||
/**
|
||||
* The id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.
|
||||
*/
|
||||
configurationContributionId: string;
|
||||
configurationContributionId?: string;
|
||||
/**
|
||||
* The relative id of the underlying contribution defining the supplied Widget custom configuration UI. Null if custom configuration UI is not available.
|
||||
*/
|
||||
configurationContributionRelativeId: string;
|
||||
configurationContributionRelativeId?: string;
|
||||
/**
|
||||
* Indicates if the widget requires configuration before being added to dashboard.
|
||||
*/
|
||||
configurationRequired: boolean;
|
||||
configurationRequired?: boolean;
|
||||
/**
|
||||
* Uri for the widget content to be loaded from .
|
||||
*/
|
||||
contentUri: string;
|
||||
contentUri?: string;
|
||||
/**
|
||||
* The id of the underlying contribution defining the supplied Widget.
|
||||
*/
|
||||
contributionId: string;
|
||||
contributionId?: string;
|
||||
/**
|
||||
* Optional default settings to be copied into widget settings.
|
||||
*/
|
||||
defaultSettings: string;
|
||||
defaultSettings?: string;
|
||||
/**
|
||||
* Summary information describing the widget.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Widgets can be disabled by the app store. We'll need to gracefully handle for: - persistence (Allow) - Requests (Tag as disabled, and provide context)
|
||||
*/
|
||||
isEnabled: boolean;
|
||||
isEnabled?: boolean;
|
||||
/**
|
||||
* Opt-out boolean that indicates if the widget supports widget name/title configuration. Widgets ignoring the name should set it to false in the manifest.
|
||||
*/
|
||||
isNameConfigurable: boolean;
|
||||
isNameConfigurable?: boolean;
|
||||
/**
|
||||
* Opt-out boolean indicating if the widget is hidden from the catalog. Commonly, this is used to allow developers to disable creation of a deprecated widget. A widget must have a functional default state, or have a configuration experience, in order to be visible from the catalog.
|
||||
*/
|
||||
isVisibleFromCatalog: boolean;
|
||||
isVisibleFromCatalog?: boolean;
|
||||
/**
|
||||
* Opt-in properties for customizing widget presentation in a "lightbox" dialog.
|
||||
*/
|
||||
lightboxOptions: LightboxOptions;
|
||||
lightboxOptions?: LightboxOptions;
|
||||
/**
|
||||
* Resource for a loading placeholder image on dashboard
|
||||
*/
|
||||
loadingImageUrl: string;
|
||||
loadingImageUrl?: string;
|
||||
/**
|
||||
* User facing name of the widget type. Each widget must use a unique value here.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Publisher Name of this kind of widget.
|
||||
*/
|
||||
publisherName: string;
|
||||
publisherName?: string;
|
||||
/**
|
||||
* Data contract required for the widget to function and to work in its container.
|
||||
*/
|
||||
supportedScopes: WidgetScope[];
|
||||
supportedScopes?: WidgetScope[];
|
||||
/**
|
||||
* Contribution target IDs
|
||||
*/
|
||||
targets: string[];
|
||||
targets?: string[];
|
||||
/**
|
||||
* Deprecated: locally unique developer-facing id of this kind of widget. ContributionId provides a globally unique identifier for widget types.
|
||||
*/
|
||||
typeId: string;
|
||||
typeId?: string;
|
||||
}
|
||||
|
||||
export interface WidgetMetadataResponse {
|
||||
uri: string;
|
||||
widgetMetadata: WidgetMetadata;
|
||||
uri?: string;
|
||||
widgetMetadata?: WidgetMetadata;
|
||||
}
|
||||
|
||||
export interface WidgetPosition {
|
||||
column: number;
|
||||
row: number;
|
||||
column?: number;
|
||||
row?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -304,25 +308,25 @@ export interface WidgetSize {
|
|||
/**
|
||||
* The Width of the widget, expressed in dashboard grid columns.
|
||||
*/
|
||||
columnSpan: number;
|
||||
columnSpan?: number;
|
||||
/**
|
||||
* The height of the widget, expressed in dashboard grid rows.
|
||||
*/
|
||||
rowSpan: number;
|
||||
rowSpan?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wrapper class to support HTTP header generation using CreateResponse, ClientHeaderParameter and ClientResponseType in WidgetV2Controller
|
||||
*/
|
||||
export interface WidgetsVersionedList {
|
||||
eTag: string[];
|
||||
widgets: Widget[];
|
||||
eTag?: string[];
|
||||
widgets?: Widget[];
|
||||
}
|
||||
|
||||
export interface WidgetTypesResponse {
|
||||
_links: any;
|
||||
uri: string;
|
||||
widgetTypes: WidgetMetadata[];
|
||||
_links?: any;
|
||||
uri?: string;
|
||||
widgetTypes?: WidgetMetadata[];
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -19,39 +19,59 @@ export interface ContributedFeature {
|
|||
/**
|
||||
* Named links describing the feature
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* If true, the feature is enabled unless overridden at some scope
|
||||
*/
|
||||
defaultState: boolean;
|
||||
defaultState?: boolean;
|
||||
/**
|
||||
* Rules for setting the default value if not specified by any setting/scope. Evaluated in order until a rule returns an Enabled or Disabled state (not Undefined)
|
||||
*/
|
||||
defaultValueRules: ContributedFeatureValueRule[];
|
||||
defaultValueRules?: ContributedFeatureValueRule[];
|
||||
/**
|
||||
* The description of the feature
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Extra properties for the feature
|
||||
*/
|
||||
featureProperties?: { [key: string] : any; };
|
||||
/**
|
||||
* Handler for listening to setter calls on feature value. These listeners are only invoked after a successful set has occured
|
||||
*/
|
||||
featureStateChangedListeners?: ContributedFeatureListener[];
|
||||
/**
|
||||
* The full contribution id of the feature
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* If this is set to true, then the id for this feature will be added to the list of claims for the request.
|
||||
*/
|
||||
includeAsClaim?: boolean;
|
||||
/**
|
||||
* The friendly name of the feature
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Suggested order to display feature in.
|
||||
*/
|
||||
order?: number;
|
||||
/**
|
||||
* Rules for overriding a feature value. These rules are run before explicit user/host state values are checked. They are evaluated in order until a rule returns an Enabled or Disabled state (not Undefined)
|
||||
*/
|
||||
overrideRules: ContributedFeatureValueRule[];
|
||||
overrideRules?: ContributedFeatureValueRule[];
|
||||
/**
|
||||
* The scopes/levels at which settings can set the enabled/disabled state of this feature
|
||||
*/
|
||||
scopes: ContributedFeatureSettingScope[];
|
||||
scopes?: ContributedFeatureSettingScope[];
|
||||
/**
|
||||
* The service instance id of the service that owns this feature
|
||||
*/
|
||||
serviceInstanceType: string;
|
||||
serviceInstanceType?: string;
|
||||
/**
|
||||
* Tags associated with the feature.
|
||||
*/
|
||||
tags?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -72,6 +92,23 @@ export enum ContributedFeatureEnabledValue {
|
|||
Enabled = 1,
|
||||
}
|
||||
|
||||
export interface ContributedFeatureHandlerSettings {
|
||||
/**
|
||||
* Name of the handler to run
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Properties to feed to the handler
|
||||
*/
|
||||
properties?: { [key: string] : any; };
|
||||
}
|
||||
|
||||
/**
|
||||
* An identifier and properties used to pass into a handler for a listener or plugin
|
||||
*/
|
||||
export interface ContributedFeatureListener extends ContributedFeatureHandlerSettings {
|
||||
}
|
||||
|
||||
/**
|
||||
* The scope to which a feature setting applies
|
||||
*/
|
||||
|
@ -79,11 +116,11 @@ export interface ContributedFeatureSettingScope {
|
|||
/**
|
||||
* The name of the settings scope to use when reading/writing the setting
|
||||
*/
|
||||
settingScope: string;
|
||||
settingScope?: string;
|
||||
/**
|
||||
* Whether this is a user-scope or this is a host-wide (all users) setting
|
||||
*/
|
||||
userScoped: boolean;
|
||||
userScoped?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -93,23 +130,23 @@ export interface ContributedFeatureState {
|
|||
/**
|
||||
* The full contribution id of the feature
|
||||
*/
|
||||
featureId: string;
|
||||
featureId?: string;
|
||||
/**
|
||||
* True if the effective state was set by an override rule (indicating that the state cannot be managed by the end user)
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
/**
|
||||
* Reason that the state was set (by a plugin/rule).
|
||||
*/
|
||||
reason: string;
|
||||
reason?: string;
|
||||
/**
|
||||
* The scope at which this state applies
|
||||
*/
|
||||
scope: ContributedFeatureSettingScope;
|
||||
scope?: ContributedFeatureSettingScope;
|
||||
/**
|
||||
* The current state of this feature
|
||||
*/
|
||||
state: ContributedFeatureEnabledValue;
|
||||
state?: ContributedFeatureEnabledValue;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -119,29 +156,21 @@ export interface ContributedFeatureStateQuery {
|
|||
/**
|
||||
* The list of feature ids to query
|
||||
*/
|
||||
featureIds: string[];
|
||||
featureIds?: string[];
|
||||
/**
|
||||
* The query result containing the current feature states for each of the queried feature ids
|
||||
*/
|
||||
featureStates: { [key: string] : ContributedFeatureState; };
|
||||
featureStates?: { [key: string] : ContributedFeatureState; };
|
||||
/**
|
||||
* A dictionary of scope values (project name, etc.) to use in the query (if querying across scopes)
|
||||
*/
|
||||
scopeValues: { [key: string] : string; };
|
||||
scopeValues?: { [key: string] : string; };
|
||||
}
|
||||
|
||||
/**
|
||||
* A rule for dynamically getting the enabled/disabled state of a feature
|
||||
*/
|
||||
export interface ContributedFeatureValueRule {
|
||||
/**
|
||||
* Name of the IContributedFeatureValuePlugin to run
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* Properties to feed to the IContributedFeatureValuePlugin
|
||||
*/
|
||||
properties: { [key: string] : any; };
|
||||
export interface ContributedFeatureValueRule extends ContributedFeatureHandlerSettings {
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -65,19 +65,19 @@ export interface FileContainer {
|
|||
/**
|
||||
* Download Url for the content of this item.
|
||||
*/
|
||||
contentLocation: string;
|
||||
contentLocation?: string;
|
||||
/**
|
||||
* Owner.
|
||||
*/
|
||||
createdBy: string;
|
||||
createdBy?: string;
|
||||
/**
|
||||
* Creation date.
|
||||
*/
|
||||
dateCreated: Date;
|
||||
dateCreated?: Date;
|
||||
/**
|
||||
* Description.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Id.
|
||||
*/
|
||||
|
@ -85,35 +85,35 @@ export interface FileContainer {
|
|||
/**
|
||||
* Location of the item resource.
|
||||
*/
|
||||
itemLocation: string;
|
||||
itemLocation?: string;
|
||||
/**
|
||||
* ItemStore Locator for this container.
|
||||
*/
|
||||
locatorPath: string;
|
||||
locatorPath?: string;
|
||||
/**
|
||||
* Name.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Options the container can have.
|
||||
*/
|
||||
options: ContainerOptions;
|
||||
options?: ContainerOptions;
|
||||
/**
|
||||
* Project Id.
|
||||
*/
|
||||
scopeIdentifier: string;
|
||||
scopeIdentifier?: string;
|
||||
/**
|
||||
* Security token of the artifact associated with the container.
|
||||
*/
|
||||
securityToken: string;
|
||||
securityToken?: string;
|
||||
/**
|
||||
* Identifier of the optional encryption key.
|
||||
*/
|
||||
signingKeyId: string;
|
||||
signingKeyId?: string;
|
||||
/**
|
||||
* Total size of the files in bytes.
|
||||
*/
|
||||
size: number;
|
||||
size?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -124,47 +124,47 @@ export interface FileContainerItem {
|
|||
* Container Id.
|
||||
*/
|
||||
containerId: number;
|
||||
contentId: number[];
|
||||
contentId?: number[];
|
||||
/**
|
||||
* Download Url for the content of this item.
|
||||
*/
|
||||
contentLocation: string;
|
||||
contentLocation?: string;
|
||||
/**
|
||||
* Creator.
|
||||
*/
|
||||
createdBy: string;
|
||||
createdBy?: string;
|
||||
/**
|
||||
* Creation date.
|
||||
*/
|
||||
dateCreated: Date;
|
||||
dateCreated?: Date;
|
||||
/**
|
||||
* Last modified date.
|
||||
*/
|
||||
dateLastModified: Date;
|
||||
dateLastModified?: Date;
|
||||
/**
|
||||
* Encoding of the file. Zero if not a file.
|
||||
*/
|
||||
fileEncoding: number;
|
||||
fileEncoding?: number;
|
||||
/**
|
||||
* Hash value of the file. Null if not a file.
|
||||
*/
|
||||
fileHash: number[];
|
||||
fileHash?: number[];
|
||||
/**
|
||||
* Id of the file content.
|
||||
*/
|
||||
fileId: number;
|
||||
fileId?: number;
|
||||
/**
|
||||
* Length of the file. Zero if not of a file.
|
||||
*/
|
||||
fileLength: number;
|
||||
fileLength?: number;
|
||||
/**
|
||||
* Type of the file. Zero if not a file.
|
||||
*/
|
||||
fileType: number;
|
||||
fileType?: number;
|
||||
/**
|
||||
* Location of the item resource.
|
||||
*/
|
||||
itemLocation: string;
|
||||
itemLocation?: string;
|
||||
/**
|
||||
* Type of the item: Folder, File or String.
|
||||
*/
|
||||
|
@ -172,7 +172,7 @@ export interface FileContainerItem {
|
|||
/**
|
||||
* Modifier.
|
||||
*/
|
||||
lastModifiedBy: string;
|
||||
lastModifiedBy?: string;
|
||||
/**
|
||||
* Unique path that identifies the item.
|
||||
*/
|
||||
|
@ -180,12 +180,12 @@ export interface FileContainerItem {
|
|||
/**
|
||||
* Project Id.
|
||||
*/
|
||||
scopeIdentifier: string;
|
||||
scopeIdentifier?: string;
|
||||
/**
|
||||
* Status of the item: Created or Pending Upload.
|
||||
*/
|
||||
status: ContainerItemStatus;
|
||||
ticket: string;
|
||||
ticket?: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,498 @@
|
|||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
*
|
||||
* ---------------------------------------------------------
|
||||
* Generated file, DO NOT EDIT
|
||||
* ---------------------------------------------------------
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
|
||||
|
||||
|
||||
export interface GraphCachePolicies {
|
||||
/**
|
||||
* Size of the cache
|
||||
*/
|
||||
cacheSize?: number;
|
||||
}
|
||||
|
||||
export interface GraphDescriptorResult {
|
||||
/**
|
||||
* This field contains zero or more interesting links about the graph descriptor. These links may be invoked to obtain additional relationships or more detailed information about this graph descriptor.
|
||||
*/
|
||||
_links?: any;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents a set of data used to communicate with a federated provider on behalf of a particular user.
|
||||
*/
|
||||
export interface GraphFederatedProviderData {
|
||||
/**
|
||||
* The access token that can be used to communicated with the federated provider on behalf on the target identity, if we were able to successfully acquire one, otherwise <code>null</code>, if we were not.
|
||||
*/
|
||||
accessToken?: string;
|
||||
/**
|
||||
* Whether or not the immediate provider (i.e. AAD) has indicated that we can call them to attempt to get an access token to communicate with the federated provider on behalf of the target identity.
|
||||
*/
|
||||
canQueryAccessToken?: boolean;
|
||||
/**
|
||||
* The name of the federated provider, e.g. "github.com".
|
||||
*/
|
||||
providerName?: string;
|
||||
/**
|
||||
* The descriptor of the graph subject to which this federated provider data corresponds.
|
||||
*/
|
||||
subjectDescriptor?: string;
|
||||
/**
|
||||
* The version number of this federated provider data, which corresponds to when it was last updated. Can be used to prevent returning stale provider data from the cache when the caller is aware of a newer version, such as to prevent local cache poisoning from a remote cache or store. This is the app layer equivalent of the data layer sequence ID.
|
||||
*/
|
||||
version?: number;
|
||||
}
|
||||
|
||||
export interface GraphGlobalExtendedPropertyBatch {
|
||||
propertyNameFilters?: string[];
|
||||
subjectDescriptors?: string[];
|
||||
}
|
||||
|
||||
export interface GraphGroup extends GraphMember {
|
||||
/**
|
||||
* A short phrase to help human readers disambiguate groups with similar names
|
||||
*/
|
||||
description?: string;
|
||||
isCrossProject?: boolean;
|
||||
isDeleted?: boolean;
|
||||
isGlobalScope?: boolean;
|
||||
isRestrictedVisible?: boolean;
|
||||
localScopeId?: string;
|
||||
scopeId?: string;
|
||||
scopeName?: string;
|
||||
scopeType?: string;
|
||||
securingHostId?: string;
|
||||
specialType?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do not attempt to use this type to create a new group. This type does not contain sufficient fields to create a new group.
|
||||
*/
|
||||
export interface GraphGroupCreationContext {
|
||||
/**
|
||||
* Optional: If provided, we will use this identifier for the storage key of the created group
|
||||
*/
|
||||
storageKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new group using the mail address as a reference to an existing group from an external AD or AAD backed provider. This is the subset of GraphGroup fields required for creation of a group for the AAD and AD use case.
|
||||
*/
|
||||
export interface GraphGroupMailAddressCreationContext extends GraphGroupCreationContext {
|
||||
/**
|
||||
* This should be the mail address or the group in the source AD or AAD provider. Example: jamal@contoso.com Team Services will communicate with the source provider to fill all other fields on creation.
|
||||
*/
|
||||
mailAddress: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new group using the OriginID as a reference to an existing group from an external AD or AAD backed provider. This is the subset of GraphGroup fields required for creation of a group for the AD and AAD use case.
|
||||
*/
|
||||
export interface GraphGroupOriginIdCreationContext extends GraphGroupCreationContext {
|
||||
/**
|
||||
* This should be the object id or sid of the group from the source AD or AAD provider. Example: d47d025a-ce2f-4a79-8618-e8862ade30dd Team Services will communicate with the source provider to fill all other fields on creation.
|
||||
*/
|
||||
originId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new Vsts group that is not backed by an external provider.
|
||||
*/
|
||||
export interface GraphGroupVstsCreationContext extends GraphGroupCreationContext {
|
||||
/**
|
||||
* For internal use only in back compat scenarios.
|
||||
*/
|
||||
crossProject?: boolean;
|
||||
/**
|
||||
* Used by VSTS groups; if set this will be the group description, otherwise ignored
|
||||
*/
|
||||
description?: string;
|
||||
descriptor?: string;
|
||||
/**
|
||||
* Used by VSTS groups; if set this will be the group DisplayName, otherwise ignored
|
||||
*/
|
||||
displayName: string;
|
||||
/**
|
||||
* For internal use only in back compat scenarios.
|
||||
*/
|
||||
restrictedVisibility?: boolean;
|
||||
/**
|
||||
* For internal use only in back compat scenarios.
|
||||
*/
|
||||
specialGroupType?: string;
|
||||
}
|
||||
|
||||
export interface GraphMember extends GraphSubject {
|
||||
/**
|
||||
* This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AD the name of the domain, for AAD the tenantID of the directory, for VSTS groups the ScopeId, etc)
|
||||
*/
|
||||
domain?: string;
|
||||
/**
|
||||
* The email address of record for a given graph member. This may be different than the principal name.
|
||||
*/
|
||||
mailAddress?: string;
|
||||
/**
|
||||
* This is the PrincipalName of this graph member from the source provider. The source provider may change this field over time and it is not guaranteed to be immutable for the life of the graph member by VSTS.
|
||||
*/
|
||||
principalName?: string;
|
||||
}
|
||||
|
||||
export enum GraphMemberSearchFactor {
|
||||
/**
|
||||
* Domain qualified account name (domain\alias)
|
||||
*/
|
||||
PrincipalName = 0,
|
||||
/**
|
||||
* Display name
|
||||
*/
|
||||
DisplayName = 1,
|
||||
/**
|
||||
* Administrators group
|
||||
*/
|
||||
AdministratorsGroup = 2,
|
||||
/**
|
||||
* Find the identity using the identifier (SID)
|
||||
*/
|
||||
Identifier = 3,
|
||||
/**
|
||||
* Email address
|
||||
*/
|
||||
MailAddress = 4,
|
||||
/**
|
||||
* A general search for an identity.
|
||||
*/
|
||||
General = 5,
|
||||
/**
|
||||
* Alternate login username (Basic Auth Alias)
|
||||
*/
|
||||
Alias = 6,
|
||||
/**
|
||||
* Find identity using DirectoryAlias
|
||||
*/
|
||||
DirectoryAlias = 8,
|
||||
}
|
||||
|
||||
export interface GraphMembership {
|
||||
/**
|
||||
* This field contains zero or more interesting links about the graph membership. These links may be invoked to obtain additional relationships or more detailed information about this graph membership.
|
||||
*/
|
||||
_links?: any;
|
||||
containerDescriptor?: string;
|
||||
memberDescriptor?: string;
|
||||
}
|
||||
|
||||
export interface GraphMembershipState {
|
||||
/**
|
||||
* This field contains zero or more interesting links about the graph membership state. These links may be invoked to obtain additional relationships or more detailed information about this graph membership state.
|
||||
*/
|
||||
_links?: any;
|
||||
active?: boolean;
|
||||
}
|
||||
|
||||
export interface GraphMembershipTraversal {
|
||||
/**
|
||||
* Reason why the subject could not be traversed completely
|
||||
*/
|
||||
incompletenessReason?: string;
|
||||
/**
|
||||
* When true, the subject is traversed completely
|
||||
*/
|
||||
isComplete?: boolean;
|
||||
/**
|
||||
* The traversed subject descriptor
|
||||
*/
|
||||
subjectDescriptor?: string;
|
||||
/**
|
||||
* Subject descriptor ids of the traversed members
|
||||
*/
|
||||
traversedSubjectIds?: string[];
|
||||
/**
|
||||
* Subject descriptors of the traversed members
|
||||
*/
|
||||
traversedSubjects?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Who is the provider for this user and what is the identifier and domain that is used to uniquely identify the user.
|
||||
*/
|
||||
export interface GraphProviderInfo {
|
||||
/**
|
||||
* The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
|
||||
*/
|
||||
descriptor?: string;
|
||||
/**
|
||||
* This represents the name of the container of origin for a graph member. (For MSA this is "Windows Live ID", for AAD the tenantID of the directory.)
|
||||
*/
|
||||
domain?: string;
|
||||
/**
|
||||
* The type of source provider for the origin identifier (ex: "aad", "msa")
|
||||
*/
|
||||
origin?: string;
|
||||
/**
|
||||
* The unique identifier from the system of origin. (For MSA this is the PUID in hex notation, for AAD this is the object id.)
|
||||
*/
|
||||
originId?: string;
|
||||
}
|
||||
|
||||
export interface GraphScope extends GraphSubject {
|
||||
/**
|
||||
* The subject descriptor that references the administrators group for this scope. Only members of this group can change the contents of this scope or assign other users permissions to access this scope.
|
||||
*/
|
||||
administratorDescriptor?: string;
|
||||
/**
|
||||
* When true, this scope is also a securing host for one or more scopes.
|
||||
*/
|
||||
isGlobal?: boolean;
|
||||
/**
|
||||
* The subject descriptor for the closest account or organization in the ancestor tree of this scope.
|
||||
*/
|
||||
parentDescriptor?: string;
|
||||
/**
|
||||
* The type of this scope. Typically ServiceHost or TeamProject.
|
||||
*/
|
||||
scopeType?: IdentitiesInterfaces.GroupScopeType;
|
||||
/**
|
||||
* The subject descriptor for the containing organization in the ancestor tree of this scope.
|
||||
*/
|
||||
securingHostDescriptor?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* This type is the subset of fields that can be provided by the user to create a Vsts scope. Scope creation is currently limited to internal back-compat scenarios. End users that attempt to create a scope with this API will fail.
|
||||
*/
|
||||
export interface GraphScopeCreationContext {
|
||||
/**
|
||||
* Set this field to override the default description of this scope's admin group.
|
||||
*/
|
||||
adminGroupDescription?: string;
|
||||
/**
|
||||
* All scopes have an Administrator Group that controls access to the contents of the scope. Set this field to use a non-default group name for that administrators group.
|
||||
*/
|
||||
adminGroupName?: string;
|
||||
/**
|
||||
* Set this optional field if this scope is created on behalf of a user other than the user making the request. This should be the Id of the user that is not the requester.
|
||||
*/
|
||||
creatorId?: string;
|
||||
/**
|
||||
* The scope must be provided with a unique name within the parent scope. This means the created scope can have a parent or child with the same name, but no siblings with the same name.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* The type of scope being created.
|
||||
*/
|
||||
scopeType?: IdentitiesInterfaces.GroupScopeType;
|
||||
/**
|
||||
* An optional ID that uniquely represents the scope within it's parent scope. If this parameter is not provided, Vsts will generate on automatically.
|
||||
*/
|
||||
storageKey?: string;
|
||||
}
|
||||
|
||||
export interface GraphStorageKeyResult {
|
||||
/**
|
||||
* This field contains zero or more interesting links about the graph storage key. These links may be invoked to obtain additional relationships or more detailed information about this graph storage key.
|
||||
*/
|
||||
_links?: any;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface GraphSubject extends GraphSubjectBase {
|
||||
/**
|
||||
* [Internal Use Only] The legacy descriptor is here in case you need to access old version IMS using identity descriptor.
|
||||
*/
|
||||
legacyDescriptor?: string;
|
||||
/**
|
||||
* The type of source provider for the origin identifier (ex:AD, AAD, MSA)
|
||||
*/
|
||||
origin?: string;
|
||||
/**
|
||||
* The unique identifier from the system of origin. Typically a sid, object id or Guid. Linking and unlinking operations can cause this value to change for a user because the user is not backed by a different provider and has a different unique id in the new provider.
|
||||
*/
|
||||
originId?: string;
|
||||
/**
|
||||
* This field identifies the type of the graph subject (ex: Group, Scope, User).
|
||||
*/
|
||||
subjectKind?: string;
|
||||
}
|
||||
|
||||
export interface GraphSubjectBase {
|
||||
/**
|
||||
* This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
|
||||
*/
|
||||
_links?: any;
|
||||
/**
|
||||
* The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
|
||||
*/
|
||||
descriptor?: string;
|
||||
/**
|
||||
* This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* This url is the full route to the source resource of this graph subject.
|
||||
*/
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface GraphSubjectLookup {
|
||||
lookupKeys?: GraphSubjectLookupKey[];
|
||||
}
|
||||
|
||||
export interface GraphSubjectLookupKey {
|
||||
descriptor?: string;
|
||||
}
|
||||
|
||||
export interface GraphSystemSubject extends GraphSubject {
|
||||
}
|
||||
|
||||
export enum GraphTraversalDirection {
|
||||
Unknown = 0,
|
||||
Down = 1,
|
||||
Up = 2,
|
||||
}
|
||||
|
||||
export interface GraphUser extends GraphMember {
|
||||
isDeletedInOrigin?: boolean;
|
||||
metadataUpdateDate?: Date;
|
||||
/**
|
||||
* The meta type of the user in the origin, such as "member", "guest", etc. See UserMetaType for the set of possible values.
|
||||
*/
|
||||
metaType?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Do not attempt to use this type to create a new user. Use one of the subclasses instead. This type does not contain sufficient fields to create a new user.
|
||||
*/
|
||||
export interface GraphUserCreationContext {
|
||||
/**
|
||||
* Optional: If provided, we will use this identifier for the storage key of the created user
|
||||
*/
|
||||
storageKey?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new user using the mail address as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its mail address in the backing provider.
|
||||
*/
|
||||
export interface GraphUserMailAddressCreationContext extends GraphUserCreationContext {
|
||||
mailAddress: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new user using the OriginID as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its unique ID in the backing provider.
|
||||
*/
|
||||
export interface GraphUserOriginIdCreationContext extends GraphUserCreationContext {
|
||||
/**
|
||||
* This should be the object id or sid of the user from the source AD or AAD provider. Example: d47d025a-ce2f-4a79-8618-e8862ade30dd Team Services will communicate with the source provider to fill all other fields on creation.
|
||||
*/
|
||||
originId: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Use this type to create a new user using the principal name as a reference to an existing user from an external AD or AAD backed provider. This is the subset of GraphUser fields required for creation of a GraphUser for the AD and AAD use case when looking up the user by its principal name in the backing provider.
|
||||
*/
|
||||
export interface GraphUserPrincipalNameCreationContext extends GraphUserCreationContext {
|
||||
/**
|
||||
* This should be the principal name or upn of the user in the source AD or AAD provider. Example: jamal@contoso.com Team Services will communicate with the source provider to fill all other fields on creation.
|
||||
*/
|
||||
principalName: string;
|
||||
}
|
||||
|
||||
export enum IdentityShardingState {
|
||||
Undefined = 0,
|
||||
Enabled = 1,
|
||||
Disabled = 2,
|
||||
}
|
||||
|
||||
export interface PagedGraphGroups {
|
||||
/**
|
||||
* This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request.
|
||||
*/
|
||||
continuationToken?: string[];
|
||||
/**
|
||||
* The enumerable list of groups found within a page.
|
||||
*/
|
||||
graphGroups?: GraphGroup[];
|
||||
}
|
||||
|
||||
export interface PagedGraphUsers {
|
||||
/**
|
||||
* This will be non-null if there is another page of data. There will never be more than one continuation token returned by a request.
|
||||
*/
|
||||
continuationToken?: string[];
|
||||
/**
|
||||
* The enumerable set of users found within a page.
|
||||
*/
|
||||
graphUsers?: GraphUser[];
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
GraphMemberSearchFactor: {
|
||||
enumValues: {
|
||||
"principalName": 0,
|
||||
"displayName": 1,
|
||||
"administratorsGroup": 2,
|
||||
"identifier": 3,
|
||||
"mailAddress": 4,
|
||||
"general": 5,
|
||||
"alias": 6,
|
||||
"directoryAlias": 8
|
||||
}
|
||||
},
|
||||
GraphScope: <any>{
|
||||
},
|
||||
GraphScopeCreationContext: <any>{
|
||||
},
|
||||
GraphTraversalDirection: {
|
||||
enumValues: {
|
||||
"unknown": 0,
|
||||
"down": 1,
|
||||
"up": 2
|
||||
}
|
||||
},
|
||||
GraphUser: <any>{
|
||||
},
|
||||
IdentityShardingState: {
|
||||
enumValues: {
|
||||
"undefined": 0,
|
||||
"enabled": 1,
|
||||
"disabled": 2
|
||||
}
|
||||
},
|
||||
PagedGraphUsers: <any>{
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.GraphScope.fields = {
|
||||
scopeType: {
|
||||
enumType: IdentitiesInterfaces.TypeInfo.GroupScopeType
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.GraphScopeCreationContext.fields = {
|
||||
scopeType: {
|
||||
enumType: IdentitiesInterfaces.TypeInfo.GroupScopeType
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.GraphUser.fields = {
|
||||
metadataUpdateDate: {
|
||||
isDate: true,
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.PagedGraphUsers.fields = {
|
||||
graphUsers: {
|
||||
isArray: true,
|
||||
typeInfo: TypeInfo.GraphUser
|
||||
}
|
||||
};
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -19,11 +19,15 @@ export interface ChangedIdentities {
|
|||
/**
|
||||
* Changed Identities
|
||||
*/
|
||||
identities: Identity[];
|
||||
identities?: Identity[];
|
||||
/**
|
||||
* More data available, set to true if pagesize is specified.
|
||||
*/
|
||||
moreData?: boolean;
|
||||
/**
|
||||
* Last Identity SequenceId
|
||||
*/
|
||||
sequenceContext: ChangedIdentitiesContext;
|
||||
sequenceContext?: ChangedIdentitiesContext;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -33,27 +37,35 @@ export interface ChangedIdentitiesContext {
|
|||
/**
|
||||
* Last Group SequenceId
|
||||
*/
|
||||
groupSequenceId: number;
|
||||
groupSequenceId?: number;
|
||||
/**
|
||||
* Last Identity SequenceId
|
||||
*/
|
||||
identitySequenceId: number;
|
||||
identitySequenceId?: number;
|
||||
/**
|
||||
* Last Group OrganizationIdentitySequenceId
|
||||
*/
|
||||
organizationIdentitySequenceId?: number;
|
||||
/**
|
||||
* Page size
|
||||
*/
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface CreateScopeInfo {
|
||||
adminGroupDescription: string;
|
||||
adminGroupName: string;
|
||||
creatorId: string;
|
||||
parentScopeId: string;
|
||||
scopeName: string;
|
||||
scopeType: GroupScopeType;
|
||||
adminGroupDescription?: string;
|
||||
adminGroupName?: string;
|
||||
creatorId?: string;
|
||||
parentScopeId?: string;
|
||||
scopeName?: string;
|
||||
scopeType?: GroupScopeType;
|
||||
}
|
||||
|
||||
export interface FrameworkIdentityInfo {
|
||||
displayName: string;
|
||||
identifier: string;
|
||||
identityType: FrameworkIdentityType;
|
||||
role: string;
|
||||
displayName?: string;
|
||||
identifier?: string;
|
||||
identityType?: FrameworkIdentityType;
|
||||
role?: string;
|
||||
}
|
||||
|
||||
export enum FrameworkIdentityType {
|
||||
|
@ -64,10 +76,10 @@ export enum FrameworkIdentityType {
|
|||
}
|
||||
|
||||
export interface GroupMembership {
|
||||
active: boolean;
|
||||
descriptor: IdentityDescriptor;
|
||||
id: string;
|
||||
queriedId: string;
|
||||
active?: boolean;
|
||||
descriptor?: IdentityDescriptor;
|
||||
id?: string;
|
||||
queriedId?: string;
|
||||
}
|
||||
|
||||
export enum GroupScopeType {
|
||||
|
@ -76,36 +88,43 @@ export enum GroupScopeType {
|
|||
TeamProject = 2,
|
||||
}
|
||||
|
||||
export interface Identity {
|
||||
export interface Identity extends IdentityBase {
|
||||
}
|
||||
|
||||
/**
|
||||
* Base Identity class to allow "trimmed" identity class in the GetConnectionData API Makes sure that on-the-wire representations of the derived classes are compatible with each other (e.g. Server responds with PublicIdentity object while client deserializes it as Identity object) Derived classes should not have additional [DataMember] properties
|
||||
*/
|
||||
export interface IdentityBase {
|
||||
/**
|
||||
* The custom display name for the identity (if any). Setting this property to an empty string will clear the existing custom display name. Setting this property to null will not affect the existing persisted value (since null values do not get sent over the wire or to the database)
|
||||
*/
|
||||
customDisplayName: string;
|
||||
descriptor: IdentityDescriptor;
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
isContainer: boolean;
|
||||
masterId: string;
|
||||
memberIds: string[];
|
||||
memberOf: IdentityDescriptor[];
|
||||
members: IdentityDescriptor[];
|
||||
metaTypeId: number;
|
||||
properties: any;
|
||||
customDisplayName?: string;
|
||||
descriptor?: IdentityDescriptor;
|
||||
id?: string;
|
||||
isActive?: boolean;
|
||||
isContainer?: boolean;
|
||||
masterId?: string;
|
||||
memberIds?: string[];
|
||||
memberOf?: IdentityDescriptor[];
|
||||
members?: IdentityDescriptor[];
|
||||
metaTypeId?: number;
|
||||
properties?: any;
|
||||
/**
|
||||
* The display name for the identity as specified by the source identity provider.
|
||||
*/
|
||||
providerDisplayName: string;
|
||||
resourceVersion: number;
|
||||
subjectDescriptor: string;
|
||||
uniqueUserId: number;
|
||||
providerDisplayName?: string;
|
||||
resourceVersion?: number;
|
||||
subjectDescriptor?: string;
|
||||
uniqueUserId?: number;
|
||||
}
|
||||
|
||||
export interface IdentityBatchInfo {
|
||||
descriptors: IdentityDescriptor[];
|
||||
identityIds: string[];
|
||||
includeRestrictedVisibility: boolean;
|
||||
propertyNames: string[];
|
||||
queryMembership: QueryMembership;
|
||||
descriptors?: IdentityDescriptor[];
|
||||
identityIds?: string[];
|
||||
includeRestrictedVisibility?: boolean;
|
||||
propertyNames?: string[];
|
||||
queryMembership?: QueryMembership;
|
||||
subjectDescriptors?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -115,45 +134,72 @@ export interface IdentityDescriptor {
|
|||
/**
|
||||
* The unique identifier for this identity, not exceeding 256 chars, which will be persisted.
|
||||
*/
|
||||
identifier: string;
|
||||
identifier?: string;
|
||||
/**
|
||||
* Type of descriptor (for example, Windows, Passport, etc.).
|
||||
*/
|
||||
identityType: string;
|
||||
identityType?: string;
|
||||
}
|
||||
|
||||
export interface IdentityScope {
|
||||
administrators: IdentityDescriptor;
|
||||
administrators?: IdentityDescriptor;
|
||||
id: string;
|
||||
isActive: boolean;
|
||||
isGlobal: boolean;
|
||||
localScopeId: string;
|
||||
name: string;
|
||||
parentId: string;
|
||||
scopeType: GroupScopeType;
|
||||
securingHostId: string;
|
||||
subjectDescriptor: string;
|
||||
isActive?: boolean;
|
||||
isGlobal?: boolean;
|
||||
localScopeId?: string;
|
||||
name?: string;
|
||||
parentId?: string;
|
||||
scopeType?: GroupScopeType;
|
||||
securingHostId?: string;
|
||||
subjectDescriptor?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identity information.
|
||||
*/
|
||||
export interface IdentitySelf {
|
||||
accountName: string;
|
||||
displayName: string;
|
||||
id: string;
|
||||
tenants: TenantInfo[];
|
||||
/**
|
||||
* The UserPrincipalName (UPN) of the account. This value comes from the source provider.
|
||||
*/
|
||||
accountName?: string;
|
||||
/**
|
||||
* The display name. For AAD accounts with multiple tenants this is the display name of the profile in the home tenant.
|
||||
*/
|
||||
displayName?: string;
|
||||
/**
|
||||
* This represents the name of the container of origin. For AAD accounts this is the tenantID of the home tenant. For MSA accounts this is the string "Windows Live ID".
|
||||
*/
|
||||
domain?: string;
|
||||
/**
|
||||
* This is the VSID of the home tenant profile. If the profile is signed into the home tenant or if the profile has no tenants then this Id is the same as the Id returned by the profile/profiles/me endpoint. Going forward it is recommended that you use the combined values of Origin, OriginId and Domain to uniquely identify a user rather than this Id.
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* The type of source provider for the origin identifier. For MSA accounts this is "msa". For AAD accounts this is "aad".
|
||||
*/
|
||||
origin?: string;
|
||||
/**
|
||||
* The unique identifier from the system of origin. If there are multiple tenants this is the unique identifier of the account in the home tenant. (For MSA this is the PUID in hex notation, for AAD this is the object id.)
|
||||
*/
|
||||
originId?: string;
|
||||
/**
|
||||
* For AAD accounts this is all of the tenants that this account is a member of.
|
||||
*/
|
||||
tenants?: TenantInfo[];
|
||||
}
|
||||
|
||||
export interface IdentitySnapshot {
|
||||
groups: Identity[];
|
||||
identityIds: string[];
|
||||
memberships: GroupMembership[];
|
||||
scopeId: string;
|
||||
scopes: IdentityScope[];
|
||||
groups?: Identity[];
|
||||
identityIds?: string[];
|
||||
memberships?: GroupMembership[];
|
||||
scopeId?: string;
|
||||
scopes?: IdentityScope[];
|
||||
}
|
||||
|
||||
export interface IdentityUpdateData {
|
||||
id: string;
|
||||
index: number;
|
||||
updated: boolean;
|
||||
id?: string;
|
||||
index?: number;
|
||||
updated?: boolean;
|
||||
}
|
||||
|
||||
export enum QueryMembership {
|
||||
|
@ -184,10 +230,15 @@ export enum ReadIdentitiesOptions {
|
|||
FilterIllegalMemberships = 1,
|
||||
}
|
||||
|
||||
export interface SwapIdentityInfo {
|
||||
id1?: string;
|
||||
id2?: string;
|
||||
}
|
||||
|
||||
export interface TenantInfo {
|
||||
homeTenant: boolean;
|
||||
tenantId: string;
|
||||
tenantName: string;
|
||||
homeTenant?: boolean;
|
||||
tenantId?: string;
|
||||
tenantName?: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
@ -262,4 +313,4 @@ TypeInfo.IdentitySnapshot.fields = {
|
|||
isArray: true,
|
||||
typeInfo: TypeInfo.IdentityScope
|
||||
}
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -11,20 +11,21 @@
|
|||
"use strict";
|
||||
|
||||
import IdentitiesInterfaces = require("../interfaces/IdentitiesInterfaces");
|
||||
import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
||||
|
||||
|
||||
export interface AccessMapping {
|
||||
accessPoint: string;
|
||||
displayName: string;
|
||||
moniker: string;
|
||||
accessPoint?: string;
|
||||
displayName?: string;
|
||||
moniker?: string;
|
||||
/**
|
||||
* The service which owns this access mapping e.g. TFS, ELS, etc.
|
||||
*/
|
||||
serviceOwner: string;
|
||||
serviceOwner?: string;
|
||||
/**
|
||||
* Part of the access mapping which applies context after the access point of the server.
|
||||
*/
|
||||
virtualDirectory: string;
|
||||
virtualDirectory?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -34,31 +35,35 @@ export interface ConnectionData {
|
|||
/**
|
||||
* The Id of the authenticated user who made this request. More information about the user can be obtained by passing this Id to the Identity service
|
||||
*/
|
||||
authenticatedUser: IdentitiesInterfaces.Identity;
|
||||
authenticatedUser?: IdentitiesInterfaces.Identity;
|
||||
/**
|
||||
* The Id of the authorized user who made this request. More information about the user can be obtained by passing this Id to the Identity service
|
||||
*/
|
||||
authorizedUser: IdentitiesInterfaces.Identity;
|
||||
authorizedUser?: IdentitiesInterfaces.Identity;
|
||||
/**
|
||||
* The id for the server.
|
||||
*/
|
||||
deploymentId: string;
|
||||
deploymentId?: string;
|
||||
/**
|
||||
* The type for the server Hosted/OnPremises.
|
||||
*/
|
||||
deploymentType?: VSSInterfaces.DeploymentFlags;
|
||||
/**
|
||||
* The instance id for this host.
|
||||
*/
|
||||
instanceId: string;
|
||||
instanceId?: string;
|
||||
/**
|
||||
* The last user access for this instance. Null if not requested specifically.
|
||||
*/
|
||||
lastUserAccess: Date;
|
||||
lastUserAccess?: Date;
|
||||
/**
|
||||
* Data that the location service holds.
|
||||
*/
|
||||
locationServiceData: LocationServiceData;
|
||||
locationServiceData?: LocationServiceData;
|
||||
/**
|
||||
* The virtual directory of the host we are talking to.
|
||||
*/
|
||||
webApplicationRelativeDirectory: string;
|
||||
webApplicationRelativeDirectory?: string;
|
||||
}
|
||||
|
||||
export enum InheritLevel {
|
||||
|
@ -70,8 +75,8 @@ export enum InheritLevel {
|
|||
}
|
||||
|
||||
export interface LocationMapping {
|
||||
accessMappingMoniker: string;
|
||||
location: string;
|
||||
accessMappingMoniker?: string;
|
||||
location?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -81,35 +86,35 @@ export interface LocationServiceData {
|
|||
/**
|
||||
* Data about the access mappings contained by this location service.
|
||||
*/
|
||||
accessMappings: AccessMapping[];
|
||||
accessMappings?: AccessMapping[];
|
||||
/**
|
||||
* Data that the location service holds.
|
||||
*/
|
||||
clientCacheFresh: boolean;
|
||||
clientCacheFresh?: boolean;
|
||||
/**
|
||||
* The time to live on the location service cache.
|
||||
*/
|
||||
clientCacheTimeToLive: number;
|
||||
clientCacheTimeToLive?: number;
|
||||
/**
|
||||
* The default access mapping moniker for the server.
|
||||
*/
|
||||
defaultAccessMappingMoniker: string;
|
||||
defaultAccessMappingMoniker?: string;
|
||||
/**
|
||||
* The obsolete id for the last change that took place on the server (use LastChangeId64).
|
||||
*/
|
||||
lastChangeId: number;
|
||||
lastChangeId?: number;
|
||||
/**
|
||||
* The non-truncated 64-bit id for the last change that took place on the server.
|
||||
*/
|
||||
lastChangeId64: number;
|
||||
lastChangeId64?: number;
|
||||
/**
|
||||
* Data about the service definitions contained by this location service.
|
||||
*/
|
||||
serviceDefinitions: ServiceDefinition[];
|
||||
serviceDefinitions?: ServiceDefinition[];
|
||||
/**
|
||||
* The identifier of the deployment which is hosting this location data (e.g. SPS, TFS, ELS, Napa, etc.)
|
||||
*/
|
||||
serviceOwner: string;
|
||||
serviceOwner?: string;
|
||||
}
|
||||
|
||||
export enum RelativeToSetting {
|
||||
|
@ -119,45 +124,45 @@ export enum RelativeToSetting {
|
|||
}
|
||||
|
||||
export interface ResourceAreaInfo {
|
||||
id: string;
|
||||
locationUrl: string;
|
||||
name: string;
|
||||
id?: string;
|
||||
locationUrl?: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface ServiceDefinition {
|
||||
description: string;
|
||||
displayName: string;
|
||||
identifier: string;
|
||||
inheritLevel: InheritLevel;
|
||||
locationMappings: LocationMapping[];
|
||||
description?: string;
|
||||
displayName?: string;
|
||||
identifier?: string;
|
||||
inheritLevel?: InheritLevel;
|
||||
locationMappings?: LocationMapping[];
|
||||
/**
|
||||
* Maximum api version that this resource supports (current server version for this resource). Copied from <c>ApiResourceLocation</c>.
|
||||
*/
|
||||
maxVersion: string;
|
||||
maxVersion?: string;
|
||||
/**
|
||||
* Minimum api version that this resource supports. Copied from <c>ApiResourceLocation</c>.
|
||||
*/
|
||||
minVersion: string;
|
||||
parentIdentifier: string;
|
||||
parentServiceType: string;
|
||||
properties: any;
|
||||
relativePath: string;
|
||||
relativeToSetting: RelativeToSetting;
|
||||
minVersion?: string;
|
||||
parentIdentifier?: string;
|
||||
parentServiceType?: string;
|
||||
properties?: any;
|
||||
relativePath?: string;
|
||||
relativeToSetting?: RelativeToSetting;
|
||||
/**
|
||||
* The latest version of this resource location that is in "Release" (non-preview) mode. Copied from <c>ApiResourceLocation</c>.
|
||||
*/
|
||||
releasedVersion: string;
|
||||
releasedVersion?: string;
|
||||
/**
|
||||
* The current resource version supported by this resource location. Copied from <c>ApiResourceLocation</c>.
|
||||
*/
|
||||
resourceVersion: number;
|
||||
resourceVersion?: number;
|
||||
/**
|
||||
* The service which owns this definition e.g. TFS, ELS, etc.
|
||||
*/
|
||||
serviceOwner: string;
|
||||
serviceType: string;
|
||||
status: ServiceStatus;
|
||||
toolId: string;
|
||||
serviceOwner?: string;
|
||||
serviceType?: string;
|
||||
status?: ServiceStatus;
|
||||
toolId?: string;
|
||||
}
|
||||
|
||||
export enum ServiceStatus {
|
||||
|
@ -199,6 +204,9 @@ export var TypeInfo = {
|
|||
};
|
||||
|
||||
TypeInfo.ConnectionData.fields = {
|
||||
deploymentType: {
|
||||
enumType: VSSInterfaces.TypeInfo.DeploymentFlags
|
||||
},
|
||||
lastUserAccess: {
|
||||
isDate: true,
|
||||
},
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -20,15 +20,15 @@ export interface PolicyConfiguration extends VersionedPolicyConfigurationRef {
|
|||
/**
|
||||
* The links to other objects related to this object.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* A reference to the identity that created the policy.
|
||||
*/
|
||||
createdBy: VSSInterfaces.IdentityRef;
|
||||
createdBy?: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* The date and time when the policy was created.
|
||||
*/
|
||||
createdDate: Date;
|
||||
createdDate?: Date;
|
||||
/**
|
||||
* Indicates whether the policy is blocking.
|
||||
*/
|
||||
|
@ -36,7 +36,7 @@ export interface PolicyConfiguration extends VersionedPolicyConfigurationRef {
|
|||
/**
|
||||
* Indicates whether the policy has been (soft) deleted.
|
||||
*/
|
||||
isDeleted: boolean;
|
||||
isDeleted?: boolean;
|
||||
/**
|
||||
* Indicates whether the policy is enabled.
|
||||
*/
|
||||
|
@ -54,15 +54,15 @@ export interface PolicyConfigurationRef {
|
|||
/**
|
||||
* The policy configuration ID.
|
||||
*/
|
||||
id: number;
|
||||
id?: number;
|
||||
/**
|
||||
* The policy configuration type.
|
||||
*/
|
||||
type: PolicyTypeRef;
|
||||
type?: PolicyTypeRef;
|
||||
/**
|
||||
* The URL where the policy configuration can be retrieved.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -72,35 +72,35 @@ export interface PolicyEvaluationRecord {
|
|||
/**
|
||||
* Links to other related objects
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* A string which uniquely identifies the target of a policy evaluation.
|
||||
*/
|
||||
artifactId: string;
|
||||
artifactId?: string;
|
||||
/**
|
||||
* Time when this policy finished evaluating on this pull request.
|
||||
*/
|
||||
completedDate: Date;
|
||||
completedDate?: Date;
|
||||
/**
|
||||
* Contains all configuration data for the policy which is being evaluated.
|
||||
*/
|
||||
configuration: PolicyConfiguration;
|
||||
configuration?: PolicyConfiguration;
|
||||
/**
|
||||
* Internal context data of this policy evaluation.
|
||||
*/
|
||||
context: any;
|
||||
context?: any;
|
||||
/**
|
||||
* Guid which uniquely identifies this evaluation record (one policy running on one pull request).
|
||||
*/
|
||||
evaluationId: string;
|
||||
evaluationId?: string;
|
||||
/**
|
||||
* Time when this policy was first evaluated on this pull request.
|
||||
*/
|
||||
startedDate: Date;
|
||||
startedDate?: Date;
|
||||
/**
|
||||
* Status of the policy (Running, Approved, Failed, etc.)
|
||||
*/
|
||||
status: PolicyEvaluationStatus;
|
||||
status?: PolicyEvaluationStatus;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -140,11 +140,11 @@ export interface PolicyType extends PolicyTypeRef {
|
|||
/**
|
||||
* The links to other objects related to this object.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Detailed description of the policy type.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -154,7 +154,7 @@ export interface PolicyTypeRef {
|
|||
/**
|
||||
* Display name of the policy type.
|
||||
*/
|
||||
displayName: string;
|
||||
displayName?: string;
|
||||
/**
|
||||
* The policy type ID.
|
||||
*/
|
||||
|
@ -162,7 +162,7 @@ export interface PolicyTypeRef {
|
|||
/**
|
||||
* The URL where the policy type can be retrieved.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -172,7 +172,7 @@ export interface VersionedPolicyConfigurationRef extends PolicyConfigurationRef
|
|||
/**
|
||||
* The policy configuration revision ID.
|
||||
*/
|
||||
revision: number;
|
||||
revision?: number;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -18,56 +18,62 @@ export enum AggregationType {
|
|||
}
|
||||
|
||||
export interface AnalyzerDescriptor {
|
||||
description: string;
|
||||
description?: string;
|
||||
id: string;
|
||||
majorVersion: number;
|
||||
minorVersion: number;
|
||||
majorVersion?: number;
|
||||
minorVersion?: number;
|
||||
name: string;
|
||||
patchVersion: number;
|
||||
patchVersion?: number;
|
||||
}
|
||||
|
||||
export interface CodeChangeTrendItem {
|
||||
time: Date;
|
||||
value: number;
|
||||
time?: Date;
|
||||
value?: number;
|
||||
}
|
||||
|
||||
export interface LanguageStatistics {
|
||||
bytes: number;
|
||||
files: number;
|
||||
filesPercentage: number;
|
||||
languagePercentage: number;
|
||||
name: string;
|
||||
export interface LanguageMetricsSecuredObject {
|
||||
namespaceId?: string;
|
||||
projectId?: string;
|
||||
requiredPermissions?: number;
|
||||
}
|
||||
|
||||
export interface LanguageStatistics extends LanguageMetricsSecuredObject {
|
||||
bytes?: number;
|
||||
files?: number;
|
||||
filesPercentage?: number;
|
||||
languagePercentage?: number;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface ProjectActivityMetrics {
|
||||
authorsCount: number;
|
||||
codeChangesCount: number;
|
||||
codeChangesTrend: CodeChangeTrendItem[];
|
||||
projectId: string;
|
||||
pullRequestsCompletedCount: number;
|
||||
pullRequestsCreatedCount: number;
|
||||
authorsCount?: number;
|
||||
codeChangesCount?: number;
|
||||
codeChangesTrend?: CodeChangeTrendItem[];
|
||||
projectId?: string;
|
||||
pullRequestsCompletedCount?: number;
|
||||
pullRequestsCreatedCount?: number;
|
||||
}
|
||||
|
||||
export interface ProjectLanguageAnalytics {
|
||||
id: string;
|
||||
languageBreakdown: LanguageStatistics[];
|
||||
repositoryLanguageAnalytics: RepositoryLanguageAnalytics[];
|
||||
resultPhase: ResultPhase;
|
||||
url: string;
|
||||
export interface ProjectLanguageAnalytics extends LanguageMetricsSecuredObject {
|
||||
id?: string;
|
||||
languageBreakdown?: LanguageStatistics[];
|
||||
repositoryLanguageAnalytics?: RepositoryLanguageAnalytics[];
|
||||
resultPhase?: ResultPhase;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface RepositoryActivityMetrics {
|
||||
codeChangesCount: number;
|
||||
codeChangesTrend: CodeChangeTrendItem[];
|
||||
repositoryId: string;
|
||||
codeChangesCount?: number;
|
||||
codeChangesTrend?: CodeChangeTrendItem[];
|
||||
repositoryId?: string;
|
||||
}
|
||||
|
||||
export interface RepositoryLanguageAnalytics {
|
||||
id: string;
|
||||
languageBreakdown: LanguageStatistics[];
|
||||
name: string;
|
||||
resultPhase: ResultPhase;
|
||||
updatedTime: Date;
|
||||
export interface RepositoryLanguageAnalytics extends LanguageMetricsSecuredObject {
|
||||
id?: string;
|
||||
languageBreakdown?: LanguageStatistics[];
|
||||
name?: string;
|
||||
resultPhase?: ResultPhase;
|
||||
updatedTime?: Date;
|
||||
}
|
||||
|
||||
export enum ResultPhase {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -15,96 +15,100 @@ import VSSInterfaces = require("../interfaces/common/VSSInterfaces");
|
|||
|
||||
|
||||
export interface AssociatedWorkItem {
|
||||
assignedTo: string;
|
||||
assignedTo?: string;
|
||||
/**
|
||||
* Id of associated the work item.
|
||||
*/
|
||||
id: number;
|
||||
state: string;
|
||||
title: string;
|
||||
id?: number;
|
||||
state?: string;
|
||||
title?: string;
|
||||
/**
|
||||
* REST Url of the work item.
|
||||
*/
|
||||
url: string;
|
||||
webUrl: string;
|
||||
workItemType: string;
|
||||
url?: string;
|
||||
webUrl?: string;
|
||||
workItemType?: string;
|
||||
}
|
||||
|
||||
export interface Change<T> {
|
||||
/**
|
||||
* The type of change that was made to the item.
|
||||
*/
|
||||
changeType: VersionControlChangeType;
|
||||
changeType?: VersionControlChangeType;
|
||||
/**
|
||||
* Current version.
|
||||
*/
|
||||
item: T;
|
||||
item?: T;
|
||||
/**
|
||||
* Content of the item after the change.
|
||||
*/
|
||||
newContent: ItemContent;
|
||||
newContent?: ItemContent;
|
||||
/**
|
||||
* Path of the item on the server.
|
||||
*/
|
||||
sourceServerItem: string;
|
||||
sourceServerItem?: string;
|
||||
/**
|
||||
* URL to retrieve the item.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface CheckinNote {
|
||||
name: string;
|
||||
value: string;
|
||||
name?: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface FileContentMetadata {
|
||||
contentType: string;
|
||||
encoding: number;
|
||||
extension: string;
|
||||
fileName: string;
|
||||
isBinary: boolean;
|
||||
isImage: boolean;
|
||||
vsLink: string;
|
||||
contentType?: string;
|
||||
encoding?: number;
|
||||
extension?: string;
|
||||
fileName?: string;
|
||||
isBinary?: boolean;
|
||||
isImage?: boolean;
|
||||
vsLink?: string;
|
||||
}
|
||||
|
||||
export interface GitRepository {
|
||||
_links: any;
|
||||
defaultBranch: string;
|
||||
id: string;
|
||||
_links?: any;
|
||||
defaultBranch?: string;
|
||||
id?: string;
|
||||
/**
|
||||
* True if the repository was created as a fork
|
||||
*/
|
||||
isFork: boolean;
|
||||
name: string;
|
||||
parentRepository: GitRepositoryRef;
|
||||
project: TfsCoreInterfaces.TeamProjectReference;
|
||||
remoteUrl: string;
|
||||
sshUrl: string;
|
||||
url: string;
|
||||
validRemoteUrls: string[];
|
||||
isFork?: boolean;
|
||||
name?: string;
|
||||
parentRepository?: GitRepositoryRef;
|
||||
project?: TfsCoreInterfaces.TeamProjectReference;
|
||||
remoteUrl?: string;
|
||||
/**
|
||||
* Compressed size (bytes) of the repository.
|
||||
*/
|
||||
size?: number;
|
||||
sshUrl?: string;
|
||||
url?: string;
|
||||
validRemoteUrls?: string[];
|
||||
}
|
||||
|
||||
export interface GitRepositoryRef {
|
||||
/**
|
||||
* Team Project Collection where this Fork resides
|
||||
*/
|
||||
collection: TfsCoreInterfaces.TeamProjectCollectionReference;
|
||||
id: string;
|
||||
collection?: TfsCoreInterfaces.TeamProjectCollectionReference;
|
||||
id?: string;
|
||||
/**
|
||||
* True if the repository was created as a fork
|
||||
*/
|
||||
isFork: boolean;
|
||||
name: string;
|
||||
project: TfsCoreInterfaces.TeamProjectReference;
|
||||
remoteUrl: string;
|
||||
sshUrl: string;
|
||||
url: string;
|
||||
isFork?: boolean;
|
||||
name?: string;
|
||||
project?: TfsCoreInterfaces.TeamProjectReference;
|
||||
remoteUrl?: string;
|
||||
sshUrl?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface ItemContent {
|
||||
content: string;
|
||||
contentType: ItemContentType;
|
||||
content?: string;
|
||||
contentType?: ItemContentType;
|
||||
}
|
||||
|
||||
export enum ItemContentType {
|
||||
|
@ -113,154 +117,155 @@ export enum ItemContentType {
|
|||
}
|
||||
|
||||
export interface ItemModel {
|
||||
_links: any;
|
||||
contentMetadata: FileContentMetadata;
|
||||
isFolder: boolean;
|
||||
isSymLink: boolean;
|
||||
path: string;
|
||||
url: string;
|
||||
_links?: any;
|
||||
content?: string;
|
||||
contentMetadata?: FileContentMetadata;
|
||||
isFolder?: boolean;
|
||||
isSymLink?: boolean;
|
||||
path?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface TfvcBranch extends TfvcBranchRef {
|
||||
/**
|
||||
* List of children for the branch.
|
||||
*/
|
||||
children: TfvcBranch[];
|
||||
children?: TfvcBranch[];
|
||||
/**
|
||||
* List of branch mappings.
|
||||
*/
|
||||
mappings: TfvcBranchMapping[];
|
||||
mappings?: TfvcBranchMapping[];
|
||||
/**
|
||||
* Path of the branch's parent.
|
||||
*/
|
||||
parent: TfvcShallowBranchRef;
|
||||
parent?: TfvcShallowBranchRef;
|
||||
/**
|
||||
* List of paths of the related branches.
|
||||
*/
|
||||
relatedBranches: TfvcShallowBranchRef[];
|
||||
relatedBranches?: TfvcShallowBranchRef[];
|
||||
}
|
||||
|
||||
export interface TfvcBranchMapping {
|
||||
/**
|
||||
* Depth of the branch.
|
||||
*/
|
||||
depth: string;
|
||||
depth?: string;
|
||||
/**
|
||||
* Server item for the branch.
|
||||
*/
|
||||
serverItem: string;
|
||||
serverItem?: string;
|
||||
/**
|
||||
* Type of the branch.
|
||||
*/
|
||||
type: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface TfvcBranchRef extends TfvcShallowBranchRef {
|
||||
/**
|
||||
* A collection of REST reference links.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Creation date of the branch.
|
||||
*/
|
||||
createdDate: Date;
|
||||
createdDate?: Date;
|
||||
/**
|
||||
* Description of the branch.
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Is the branch deleted?
|
||||
*/
|
||||
isDeleted: boolean;
|
||||
isDeleted?: boolean;
|
||||
/**
|
||||
* Alias or display name of user
|
||||
*/
|
||||
owner: VSSInterfaces.IdentityRef;
|
||||
owner?: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* URL to retrieve the item.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface TfvcChange extends Change<TfvcItem> {
|
||||
/**
|
||||
* List of merge sources in case of rename or branch creation.
|
||||
*/
|
||||
mergeSources: TfvcMergeSource[];
|
||||
mergeSources?: TfvcMergeSource[];
|
||||
/**
|
||||
* Version at which a (shelved) change was pended against
|
||||
*/
|
||||
pendingVersion: number;
|
||||
pendingVersion?: number;
|
||||
}
|
||||
|
||||
export interface TfvcChangeset extends TfvcChangesetRef {
|
||||
/**
|
||||
* Account Id of the changeset.
|
||||
*/
|
||||
accountId: string;
|
||||
accountId?: string;
|
||||
/**
|
||||
* List of associated changes.
|
||||
*/
|
||||
changes: TfvcChange[];
|
||||
changes?: TfvcChange[];
|
||||
/**
|
||||
* Checkin Notes for the changeset.
|
||||
*/
|
||||
checkinNotes: CheckinNote[];
|
||||
checkinNotes?: CheckinNote[];
|
||||
/**
|
||||
* Collection Id of the changeset.
|
||||
*/
|
||||
collectionId: string;
|
||||
collectionId?: string;
|
||||
/**
|
||||
* Are more changes available.
|
||||
*/
|
||||
hasMoreChanges: boolean;
|
||||
hasMoreChanges?: boolean;
|
||||
/**
|
||||
* Policy Override for the changeset.
|
||||
*/
|
||||
policyOverride: TfvcPolicyOverrideInfo;
|
||||
policyOverride?: TfvcPolicyOverrideInfo;
|
||||
/**
|
||||
* Team Project Ids for the changeset.
|
||||
*/
|
||||
teamProjectIds: string[];
|
||||
teamProjectIds?: string[];
|
||||
/**
|
||||
* List of work items associated with the changeset.
|
||||
*/
|
||||
workItems: AssociatedWorkItem[];
|
||||
workItems?: AssociatedWorkItem[];
|
||||
}
|
||||
|
||||
export interface TfvcChangesetRef {
|
||||
/**
|
||||
* A collection of REST reference links.
|
||||
*/
|
||||
_links: any;
|
||||
_links?: any;
|
||||
/**
|
||||
* Alias or display name of user
|
||||
*/
|
||||
author: VSSInterfaces.IdentityRef;
|
||||
author?: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* Id of the changeset.
|
||||
*/
|
||||
changesetId: number;
|
||||
changesetId?: number;
|
||||
/**
|
||||
* Alias or display name of user
|
||||
*/
|
||||
checkedInBy: VSSInterfaces.IdentityRef;
|
||||
checkedInBy?: VSSInterfaces.IdentityRef;
|
||||
/**
|
||||
* Comment for the changeset.
|
||||
*/
|
||||
comment: string;
|
||||
comment?: string;
|
||||
/**
|
||||
* Was the Comment result truncated?
|
||||
*/
|
||||
commentTruncated: boolean;
|
||||
commentTruncated?: boolean;
|
||||
/**
|
||||
* Creation date of the changeset.
|
||||
*/
|
||||
createdDate: Date;
|
||||
createdDate?: Date;
|
||||
/**
|
||||
* URL to retrieve the item.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -270,213 +275,234 @@ export interface TfvcChangesetSearchCriteria {
|
|||
/**
|
||||
* Alias or display name of user who made the changes
|
||||
*/
|
||||
author: string;
|
||||
author?: string;
|
||||
/**
|
||||
* Whether or not to follow renames for the given item being queried
|
||||
*/
|
||||
followRenames: boolean;
|
||||
followRenames?: boolean;
|
||||
/**
|
||||
* If provided, only include changesets created after this date (string) Think of a better name for this.
|
||||
*/
|
||||
fromDate: string;
|
||||
fromDate?: string;
|
||||
/**
|
||||
* If provided, only include changesets after this changesetID
|
||||
*/
|
||||
fromId: number;
|
||||
fromId?: number;
|
||||
/**
|
||||
* Whether to include the _links field on the shallow references
|
||||
*/
|
||||
includeLinks: boolean;
|
||||
includeLinks?: boolean;
|
||||
/**
|
||||
* Path of item to search under
|
||||
*/
|
||||
itemPath: string;
|
||||
itemPath?: string;
|
||||
mappings?: TfvcMappingFilter[];
|
||||
/**
|
||||
* If provided, only include changesets created before this date (string) Think of a better name for this.
|
||||
*/
|
||||
toDate: string;
|
||||
toDate?: string;
|
||||
/**
|
||||
* If provided, a version descriptor for the latest change list to include
|
||||
*/
|
||||
toId: number;
|
||||
toId?: number;
|
||||
}
|
||||
|
||||
export interface TfvcChangesetsRequestData {
|
||||
/**
|
||||
* List of changeset Ids.
|
||||
*/
|
||||
changesetIds: number[];
|
||||
changesetIds?: number[];
|
||||
/**
|
||||
* Length of the comment.
|
||||
*/
|
||||
commentLength: number;
|
||||
commentLength?: number;
|
||||
/**
|
||||
* Whether to include the _links field on the shallow references
|
||||
*/
|
||||
includeLinks: boolean;
|
||||
includeLinks?: boolean;
|
||||
}
|
||||
|
||||
export interface TfvcItem extends ItemModel {
|
||||
changeDate: Date;
|
||||
deletionId: number;
|
||||
changeDate?: Date;
|
||||
deletionId?: number;
|
||||
/**
|
||||
* File encoding from database, -1 represents binary.
|
||||
*/
|
||||
encoding?: number;
|
||||
/**
|
||||
* MD5 hash as a base 64 string, applies to files only.
|
||||
*/
|
||||
hashValue: string;
|
||||
isBranch: boolean;
|
||||
isPendingChange: boolean;
|
||||
hashValue?: string;
|
||||
isBranch?: boolean;
|
||||
isPendingChange?: boolean;
|
||||
/**
|
||||
* The size of the file, if applicable.
|
||||
*/
|
||||
size: number;
|
||||
version: number;
|
||||
size?: number;
|
||||
version?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Item path and Version descriptor properties
|
||||
*/
|
||||
export interface TfvcItemDescriptor {
|
||||
path: string;
|
||||
recursionLevel: VersionControlRecursionType;
|
||||
version: string;
|
||||
versionOption: TfvcVersionOption;
|
||||
versionType: TfvcVersionType;
|
||||
path?: string;
|
||||
recursionLevel?: VersionControlRecursionType;
|
||||
version?: string;
|
||||
versionOption?: TfvcVersionOption;
|
||||
versionType?: TfvcVersionType;
|
||||
}
|
||||
|
||||
export interface TfvcItemRequestData {
|
||||
/**
|
||||
* If true, include metadata about the file type
|
||||
*/
|
||||
includeContentMetadata: boolean;
|
||||
includeContentMetadata?: boolean;
|
||||
/**
|
||||
* Whether to include the _links field on the shallow references
|
||||
*/
|
||||
includeLinks: boolean;
|
||||
itemDescriptors: TfvcItemDescriptor[];
|
||||
includeLinks?: boolean;
|
||||
itemDescriptors?: TfvcItemDescriptor[];
|
||||
}
|
||||
|
||||
export interface TfvcLabel extends TfvcLabelRef {
|
||||
items: TfvcItem[];
|
||||
items?: TfvcItem[];
|
||||
}
|
||||
|
||||
export interface TfvcLabelRef {
|
||||
_links: any;
|
||||
description: string;
|
||||
id: number;
|
||||
labelScope: string;
|
||||
modifiedDate: Date;
|
||||
name: string;
|
||||
owner: VSSInterfaces.IdentityRef;
|
||||
url: string;
|
||||
_links?: any;
|
||||
description?: string;
|
||||
id?: number;
|
||||
labelScope?: string;
|
||||
modifiedDate?: Date;
|
||||
name?: string;
|
||||
owner?: VSSInterfaces.IdentityRef;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface TfvcLabelRequestData {
|
||||
/**
|
||||
* Whether to include the _links field on the shallow references
|
||||
*/
|
||||
includeLinks: boolean;
|
||||
itemLabelFilter: string;
|
||||
labelScope: string;
|
||||
maxItemCount: number;
|
||||
name: string;
|
||||
owner: string;
|
||||
includeLinks?: boolean;
|
||||
itemLabelFilter?: string;
|
||||
labelScope?: string;
|
||||
maxItemCount?: number;
|
||||
name?: string;
|
||||
owner?: string;
|
||||
}
|
||||
|
||||
export interface TfvcMappingFilter {
|
||||
exclude?: boolean;
|
||||
serverPath?: string;
|
||||
}
|
||||
|
||||
export interface TfvcMergeSource {
|
||||
/**
|
||||
* Indicates if this a rename source. If false, it is a merge source.
|
||||
*/
|
||||
isRename: boolean;
|
||||
isRename?: boolean;
|
||||
/**
|
||||
* The server item of the merge source
|
||||
*/
|
||||
serverItem: string;
|
||||
serverItem?: string;
|
||||
/**
|
||||
* Start of the version range
|
||||
*/
|
||||
versionFrom: number;
|
||||
versionFrom?: number;
|
||||
/**
|
||||
* End of the version range
|
||||
*/
|
||||
versionTo: number;
|
||||
versionTo?: number;
|
||||
}
|
||||
|
||||
export interface TfvcPolicyFailureInfo {
|
||||
message: string;
|
||||
policyName: string;
|
||||
message?: string;
|
||||
policyName?: string;
|
||||
}
|
||||
|
||||
export interface TfvcPolicyOverrideInfo {
|
||||
comment: string;
|
||||
policyFailures: TfvcPolicyFailureInfo[];
|
||||
comment?: string;
|
||||
policyFailures?: TfvcPolicyFailureInfo[];
|
||||
}
|
||||
|
||||
export interface TfvcShallowBranchRef {
|
||||
/**
|
||||
* Path for the branch.
|
||||
*/
|
||||
path: string;
|
||||
path?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the deep shelveset class
|
||||
*/
|
||||
export interface TfvcShelveset extends TfvcShelvesetRef {
|
||||
changes: TfvcChange[];
|
||||
notes: CheckinNote[];
|
||||
policyOverride: TfvcPolicyOverrideInfo;
|
||||
workItems: AssociatedWorkItem[];
|
||||
changes?: TfvcChange[];
|
||||
notes?: CheckinNote[];
|
||||
policyOverride?: TfvcPolicyOverrideInfo;
|
||||
workItems?: AssociatedWorkItem[];
|
||||
}
|
||||
|
||||
/**
|
||||
* This is the shallow shelveset class
|
||||
*/
|
||||
export interface TfvcShelvesetRef {
|
||||
_links: any;
|
||||
comment: string;
|
||||
commentTruncated: boolean;
|
||||
createdDate: Date;
|
||||
id: string;
|
||||
name: string;
|
||||
owner: VSSInterfaces.IdentityRef;
|
||||
url: string;
|
||||
_links?: any;
|
||||
comment?: string;
|
||||
commentTruncated?: boolean;
|
||||
createdDate?: Date;
|
||||
id?: string;
|
||||
name?: string;
|
||||
owner?: VSSInterfaces.IdentityRef;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface TfvcShelvesetRequestData {
|
||||
/**
|
||||
* Whether to include policyOverride and notes Only applies when requesting a single deep shelveset
|
||||
*/
|
||||
includeDetails: boolean;
|
||||
includeDetails?: boolean;
|
||||
/**
|
||||
* Whether to include the _links field on the shallow references. Does not apply when requesting a single deep shelveset object. Links will always be included in the deep shelveset.
|
||||
*/
|
||||
includeLinks: boolean;
|
||||
includeLinks?: boolean;
|
||||
/**
|
||||
* Whether to include workItems
|
||||
*/
|
||||
includeWorkItems: boolean;
|
||||
includeWorkItems?: boolean;
|
||||
/**
|
||||
* Max number of changes to include
|
||||
*/
|
||||
maxChangeCount: number;
|
||||
maxChangeCount?: number;
|
||||
/**
|
||||
* Max length of comment
|
||||
*/
|
||||
maxCommentLength: number;
|
||||
maxCommentLength?: number;
|
||||
/**
|
||||
* Shelveset's name
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Owner's ID. Could be a name or a guid.
|
||||
*/
|
||||
owner: string;
|
||||
owner?: string;
|
||||
}
|
||||
|
||||
export interface TfvcStatistics {
|
||||
/**
|
||||
* Id of the last changeset the stats are based on.
|
||||
*/
|
||||
changesetId?: number;
|
||||
/**
|
||||
* Count of files at the requested scope.
|
||||
*/
|
||||
fileCountTotal?: number;
|
||||
}
|
||||
|
||||
export interface TfvcVersionDescriptor {
|
||||
version: string;
|
||||
versionOption: TfvcVersionOption;
|
||||
versionType: TfvcVersionType;
|
||||
version?: string;
|
||||
versionOption?: TfvcVersionOption;
|
||||
versionType?: TfvcVersionType;
|
||||
}
|
||||
|
||||
export enum TfvcVersionOption {
|
||||
|
@ -515,10 +541,10 @@ export enum VersionControlChangeType {
|
|||
}
|
||||
|
||||
export interface VersionControlProjectInfo {
|
||||
defaultSourceControlType: TfsCoreInterfaces.SourceControlTypes;
|
||||
project: TfsCoreInterfaces.TeamProjectReference;
|
||||
supportsGit: boolean;
|
||||
supportsTFVC: boolean;
|
||||
defaultSourceControlType?: TfsCoreInterfaces.SourceControlTypes;
|
||||
project?: TfsCoreInterfaces.TeamProjectReference;
|
||||
supportsGit?: boolean;
|
||||
supportsTFVC?: boolean;
|
||||
}
|
||||
|
||||
export enum VersionControlRecursionType {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -20,15 +20,15 @@ export interface Wiki extends WikiCreateParameters {
|
|||
/**
|
||||
* The head commit associated with the git repository backing up the wiki.
|
||||
*/
|
||||
headCommit: string;
|
||||
headCommit?: string;
|
||||
/**
|
||||
* The ID of the wiki which is same as the ID of the Git repository that it is backed by.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* The git repository that backs up the wiki.
|
||||
*/
|
||||
repository: GitInterfaces.GitRepository;
|
||||
repository?: GitInterfaces.GitRepository;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -38,11 +38,11 @@ export interface WikiAttachment {
|
|||
/**
|
||||
* Name of the wiki attachment file.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Path of the wiki attachment file.
|
||||
*/
|
||||
path: string;
|
||||
path?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -52,11 +52,11 @@ export interface WikiAttachmentResponse {
|
|||
/**
|
||||
* Defines properties for wiki attachment file.
|
||||
*/
|
||||
attachment: WikiAttachment;
|
||||
attachment?: WikiAttachment;
|
||||
/**
|
||||
* Contains the list of ETag values from the response header of the attachments API call. The first item in the list contains the version of the wiki attachment.
|
||||
*/
|
||||
eTag: string[];
|
||||
eTag?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,23 +66,23 @@ export interface WikiCreateBaseParameters {
|
|||
/**
|
||||
* Folder path inside repository which is shown as Wiki. Not required for ProjectWiki type.
|
||||
*/
|
||||
mappedPath: string;
|
||||
mappedPath?: string;
|
||||
/**
|
||||
* Wiki name.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* ID of the project in which the wiki is to be created.
|
||||
*/
|
||||
projectId: string;
|
||||
projectId?: string;
|
||||
/**
|
||||
* ID of the git repository that backs up the wiki. Not required for ProjectWiki type.
|
||||
*/
|
||||
repositoryId: string;
|
||||
repositoryId?: string;
|
||||
/**
|
||||
* Type of the wiki.
|
||||
*/
|
||||
type: WikiType;
|
||||
type?: WikiType;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -92,11 +92,11 @@ export interface WikiCreateParameters {
|
|||
/**
|
||||
* Wiki name.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* ID of the project in which the wiki is to be created.
|
||||
*/
|
||||
projectId: string;
|
||||
projectId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -106,7 +106,7 @@ export interface WikiCreateParametersV2 extends WikiCreateBaseParameters {
|
|||
/**
|
||||
* Version of the wiki. Not required for ProjectWiki type.
|
||||
*/
|
||||
version: GitInterfaces.GitVersionDescriptor;
|
||||
version?: GitInterfaces.GitVersionDescriptor;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -116,35 +116,35 @@ export interface WikiPage extends WikiPageCreateOrUpdateParameters {
|
|||
/**
|
||||
* Path of the git item corresponding to the wiki page stored in the backing Git repository.
|
||||
*/
|
||||
gitItemPath: string;
|
||||
gitItemPath?: string;
|
||||
/**
|
||||
* True if a page is non-conforming, i.e. 1) if the name doesn't match page naming standards. 2) if the page does not have a valid entry in the appropriate order file.
|
||||
*/
|
||||
isNonConformant: boolean;
|
||||
isNonConformant?: boolean;
|
||||
/**
|
||||
* True if this page has subpages under its path.
|
||||
*/
|
||||
isParentPage: boolean;
|
||||
isParentPage?: boolean;
|
||||
/**
|
||||
* Order of the wiki page, relative to other pages in the same hierarchy level.
|
||||
*/
|
||||
order: number;
|
||||
order?: number;
|
||||
/**
|
||||
* Path of the wiki page.
|
||||
*/
|
||||
path: string;
|
||||
path?: string;
|
||||
/**
|
||||
* Remote web url to the wiki page.
|
||||
*/
|
||||
remoteUrl: string;
|
||||
remoteUrl?: string;
|
||||
/**
|
||||
* List of subpages of the current page.
|
||||
*/
|
||||
subPages: WikiPage[];
|
||||
subPages?: WikiPage[];
|
||||
/**
|
||||
* REST url for this wiki page.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -154,7 +154,7 @@ export interface WikiPageCreateOrUpdateParameters {
|
|||
/**
|
||||
* Content of the wiki page.
|
||||
*/
|
||||
content: string;
|
||||
content?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -164,7 +164,7 @@ export interface WikiPageMove extends WikiPageMoveParameters {
|
|||
/**
|
||||
* Resultant page of this page move operation.
|
||||
*/
|
||||
page: WikiPage;
|
||||
page?: WikiPage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -174,15 +174,15 @@ export interface WikiPageMoveParameters {
|
|||
/**
|
||||
* New order of the wiki page.
|
||||
*/
|
||||
newOrder: number;
|
||||
newOrder?: number;
|
||||
/**
|
||||
* New path of the wiki page.
|
||||
*/
|
||||
newPath: string;
|
||||
newPath?: string;
|
||||
/**
|
||||
* Current path of the wiki page.
|
||||
*/
|
||||
path: string;
|
||||
path?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -192,11 +192,11 @@ export interface WikiPageMoveResponse {
|
|||
/**
|
||||
* Contains the list of ETag values from the response header of the page move API call. The first item in the list contains the version of the wiki page subject to page move.
|
||||
*/
|
||||
eTag: string[];
|
||||
eTag?: string[];
|
||||
/**
|
||||
* Defines properties for wiki page move.
|
||||
*/
|
||||
pageMove: WikiPageMove;
|
||||
pageMove?: WikiPageMove;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -206,11 +206,11 @@ export interface WikiPageResponse {
|
|||
/**
|
||||
* Contains the list of ETag values from the response header of the pages API call. The first item in the list contains the version of the wiki page.
|
||||
*/
|
||||
eTag: string[];
|
||||
eTag?: string[];
|
||||
/**
|
||||
* Defines properties for wiki page.
|
||||
*/
|
||||
page: WikiPage;
|
||||
page?: WikiPage;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -220,15 +220,15 @@ export interface WikiPageViewStats {
|
|||
/**
|
||||
* Wiki page view count.
|
||||
*/
|
||||
count: number;
|
||||
count?: number;
|
||||
/**
|
||||
* Wiki page last viewed time.
|
||||
*/
|
||||
lastViewedTime: Date;
|
||||
lastViewedTime?: Date;
|
||||
/**
|
||||
* Wiki page path.
|
||||
*/
|
||||
path: string;
|
||||
path?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -243,25 +243,29 @@ export interface WikiUpdatedNotificationMessage {
|
|||
/**
|
||||
* Collection host Id for which the wikis are updated.
|
||||
*/
|
||||
collectionId: string;
|
||||
collectionId?: string;
|
||||
/**
|
||||
* Project Id for which the wikis are updated.
|
||||
*/
|
||||
projectId: string;
|
||||
projectId?: string;
|
||||
/**
|
||||
* Repository Id associated with the particular wiki which is added, updated or deleted.
|
||||
*/
|
||||
repositoryId: string;
|
||||
repositoryId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Wiki update parameters.
|
||||
*/
|
||||
export interface WikiUpdateParameters {
|
||||
/**
|
||||
* Name for wiki.
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
* Versions of the wiki.
|
||||
*/
|
||||
versions: GitInterfaces.GitVersionDescriptor[];
|
||||
versions?: GitInterfaces.GitVersionDescriptor[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -271,23 +275,23 @@ export interface WikiV2 extends WikiCreateBaseParameters {
|
|||
/**
|
||||
* ID of the wiki.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Properties of the wiki.
|
||||
*/
|
||||
properties: { [key: string] : string; };
|
||||
properties?: { [key: string] : string; };
|
||||
/**
|
||||
* Remote web url to the wiki.
|
||||
*/
|
||||
remoteUrl: string;
|
||||
remoteUrl?: string;
|
||||
/**
|
||||
* REST url for this wiki.
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
/**
|
||||
* Versions of the wiki.
|
||||
*/
|
||||
versions: GitInterfaces.GitVersionDescriptor[];
|
||||
versions?: GitInterfaces.GitVersionDescriptor[];
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -16,65 +16,69 @@ export interface BehaviorCreateModel {
|
|||
/**
|
||||
* Color
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Optional - Id
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* Parent behavior id
|
||||
*/
|
||||
inherits: string;
|
||||
inherits?: string;
|
||||
/**
|
||||
* Name of the behavior
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
export interface BehaviorModel {
|
||||
/**
|
||||
* Is the behavior abstract (i.e. can not be associated with any work item type)
|
||||
*/
|
||||
abstract: boolean;
|
||||
abstract?: boolean;
|
||||
/**
|
||||
* Color
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Description
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Behavior Id
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Parent behavior reference
|
||||
*/
|
||||
inherits: WorkItemBehaviorReference;
|
||||
inherits?: WorkItemBehaviorReference;
|
||||
/**
|
||||
* Behavior Name
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Is the behavior overrides a behavior from system process
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
/**
|
||||
* Rank
|
||||
*/
|
||||
rank: number;
|
||||
rank?: number;
|
||||
/**
|
||||
* Url of the behavior
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface BehaviorReplaceModel {
|
||||
/**
|
||||
* Color
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Behavior Name
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -84,86 +88,86 @@ export interface Control {
|
|||
/**
|
||||
* Contribution for the control.
|
||||
*/
|
||||
contribution: WitContribution;
|
||||
contribution?: WitContribution;
|
||||
/**
|
||||
* Type of the control.
|
||||
*/
|
||||
controlType: string;
|
||||
controlType?: string;
|
||||
/**
|
||||
* Height of the control, for html controls.
|
||||
*/
|
||||
height: number;
|
||||
height?: number;
|
||||
/**
|
||||
* The id for the layout node.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
|
||||
*/
|
||||
inherited: boolean;
|
||||
inherited?: boolean;
|
||||
/**
|
||||
* A value indicating if the layout node is contribution or not.
|
||||
*/
|
||||
isContribution: boolean;
|
||||
isContribution?: boolean;
|
||||
/**
|
||||
* Label for the field
|
||||
*/
|
||||
label: string;
|
||||
label?: string;
|
||||
/**
|
||||
* Inner text of the control.
|
||||
*/
|
||||
metadata: string;
|
||||
order: number;
|
||||
metadata?: string;
|
||||
order?: number;
|
||||
/**
|
||||
* A value indicating whether this layout node has been overridden by a child layout.
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
/**
|
||||
* A value indicating if the control is readonly.
|
||||
*/
|
||||
readOnly: boolean;
|
||||
readOnly?: boolean;
|
||||
/**
|
||||
* A value indicating if the control should be hidden or not.
|
||||
*/
|
||||
visible: boolean;
|
||||
visible?: boolean;
|
||||
/**
|
||||
* Watermark text for the textbox.
|
||||
*/
|
||||
watermark: string;
|
||||
watermark?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Represents the extensions part of the layout
|
||||
*/
|
||||
export interface Extension {
|
||||
id: string;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export interface FieldModel {
|
||||
/**
|
||||
* Description about field
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* ID of the field
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Name of the field
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Reference to picklist in this field
|
||||
*/
|
||||
pickList: PickListMetadataModel;
|
||||
pickList?: PickListMetadataModel;
|
||||
/**
|
||||
* Type of field
|
||||
*/
|
||||
type: FieldType;
|
||||
type?: FieldType;
|
||||
/**
|
||||
* Url to the field
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export enum FieldType {
|
||||
|
@ -184,23 +188,23 @@ export enum FieldType {
|
|||
}
|
||||
|
||||
export interface FieldUpdate {
|
||||
description: string;
|
||||
id: string;
|
||||
description?: string;
|
||||
id?: string;
|
||||
}
|
||||
|
||||
export interface FormLayout {
|
||||
/**
|
||||
* Gets and sets extensions list
|
||||
*/
|
||||
extensions: Extension[];
|
||||
extensions?: Extension[];
|
||||
/**
|
||||
* Top level tabs of the layout.
|
||||
*/
|
||||
pages: Page[];
|
||||
pages?: Page[];
|
||||
/**
|
||||
* Headers controls of the layout.
|
||||
*/
|
||||
systemControls: Control[];
|
||||
systemControls?: Control[];
|
||||
}
|
||||
|
||||
export enum GetWorkItemTypeExpand {
|
||||
|
@ -217,94 +221,94 @@ export interface Group {
|
|||
/**
|
||||
* Contribution for the group.
|
||||
*/
|
||||
contribution: WitContribution;
|
||||
contribution?: WitContribution;
|
||||
/**
|
||||
* Controls to be put in the group.
|
||||
*/
|
||||
controls: Control[];
|
||||
controls?: Control[];
|
||||
/**
|
||||
* The height for the contribution.
|
||||
*/
|
||||
height: number;
|
||||
height?: number;
|
||||
/**
|
||||
* The id for the layout node.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
|
||||
*/
|
||||
inherited: boolean;
|
||||
inherited?: boolean;
|
||||
/**
|
||||
* A value indicating if the layout node is contribution are not.
|
||||
*/
|
||||
isContribution: boolean;
|
||||
isContribution?: boolean;
|
||||
/**
|
||||
* Label for the group.
|
||||
*/
|
||||
label: string;
|
||||
label?: string;
|
||||
/**
|
||||
* Order in which the group should appear in the section.
|
||||
*/
|
||||
order: number;
|
||||
order?: number;
|
||||
/**
|
||||
* A value indicating whether this layout node has been overridden by a child layout.
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
/**
|
||||
* A value indicating if the group should be hidden or not.
|
||||
*/
|
||||
visible: boolean;
|
||||
visible?: boolean;
|
||||
}
|
||||
|
||||
export interface HideStateModel {
|
||||
hidden: boolean;
|
||||
hidden?: boolean;
|
||||
}
|
||||
|
||||
export interface Page {
|
||||
/**
|
||||
* Contribution for the page.
|
||||
*/
|
||||
contribution: WitContribution;
|
||||
contribution?: WitContribution;
|
||||
/**
|
||||
* The id for the layout node.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* A value indicating whether this layout node has been inherited from a parent layout. This is expected to only be only set by the combiner.
|
||||
*/
|
||||
inherited: boolean;
|
||||
inherited?: boolean;
|
||||
/**
|
||||
* A value indicating if the layout node is contribution are not.
|
||||
*/
|
||||
isContribution: boolean;
|
||||
isContribution?: boolean;
|
||||
/**
|
||||
* The label for the page.
|
||||
*/
|
||||
label: string;
|
||||
label?: string;
|
||||
/**
|
||||
* A value indicating whether any user operations are permitted on this page and the contents of this page
|
||||
*/
|
||||
locked: boolean;
|
||||
locked?: boolean;
|
||||
/**
|
||||
* Order in which the page should appear in the layout.
|
||||
*/
|
||||
order: number;
|
||||
order?: number;
|
||||
/**
|
||||
* A value indicating whether this layout node has been overridden by a child layout.
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
/**
|
||||
* The icon for the page.
|
||||
*/
|
||||
pageType: PageType;
|
||||
pageType?: PageType;
|
||||
/**
|
||||
* The sections of the page.
|
||||
*/
|
||||
sections: Section[];
|
||||
sections?: Section[];
|
||||
/**
|
||||
* A value indicating if the page should be hidden or not.
|
||||
*/
|
||||
visible: boolean;
|
||||
visible?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -318,139 +322,139 @@ export enum PageType {
|
|||
}
|
||||
|
||||
export interface PickListItemModel {
|
||||
id: string;
|
||||
value: string;
|
||||
id?: string;
|
||||
value?: string;
|
||||
}
|
||||
|
||||
export interface PickListMetadataModel {
|
||||
/**
|
||||
* ID of the picklist
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Is input values by user only limited to suggested values
|
||||
*/
|
||||
isSuggested: boolean;
|
||||
isSuggested?: boolean;
|
||||
/**
|
||||
* Name of the picklist
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Type of picklist
|
||||
*/
|
||||
type: string;
|
||||
type?: string;
|
||||
/**
|
||||
* Url of the picklist
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface PickListModel extends PickListMetadataModel {
|
||||
/**
|
||||
* A list of PicklistItemModel
|
||||
*/
|
||||
items: PickListItemModel[];
|
||||
items?: PickListItemModel[];
|
||||
}
|
||||
|
||||
/**
|
||||
* A layout node holding groups together in a page
|
||||
*/
|
||||
export interface Section {
|
||||
groups: Group[];
|
||||
groups?: Group[];
|
||||
/**
|
||||
* The id for the layout node.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* A value indicating whether this layout node has been overridden by a child layout.
|
||||
*/
|
||||
overridden: boolean;
|
||||
overridden?: boolean;
|
||||
}
|
||||
|
||||
export interface WitContribution {
|
||||
/**
|
||||
* The id for the contribution.
|
||||
*/
|
||||
contributionId: string;
|
||||
contributionId?: string;
|
||||
/**
|
||||
* The height for the contribution.
|
||||
*/
|
||||
height: number;
|
||||
height?: number;
|
||||
/**
|
||||
* A dictionary holding key value pairs for contribution inputs.
|
||||
*/
|
||||
inputs: { [key: string] : any; };
|
||||
inputs?: { [key: string] : any; };
|
||||
/**
|
||||
* A value indicating if the contribution should be show on deleted workItem.
|
||||
*/
|
||||
showOnDeletedWorkItem: boolean;
|
||||
showOnDeletedWorkItem?: boolean;
|
||||
}
|
||||
|
||||
export interface WorkItemBehaviorReference {
|
||||
/**
|
||||
* The ID of the reference behavior
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* The url of the reference behavior
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface WorkItemStateInputModel {
|
||||
/**
|
||||
* Color of the state
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Name of the state
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Order in which state should appear
|
||||
*/
|
||||
order: number;
|
||||
order?: number;
|
||||
/**
|
||||
* Category of the state
|
||||
*/
|
||||
stateCategory: string;
|
||||
stateCategory?: string;
|
||||
}
|
||||
|
||||
export interface WorkItemStateResultModel {
|
||||
/**
|
||||
* Color of the state
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Is the state hidden
|
||||
*/
|
||||
hidden: boolean;
|
||||
hidden?: boolean;
|
||||
/**
|
||||
* The ID of the State
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Name of the state
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Order in which state should appear
|
||||
*/
|
||||
order: number;
|
||||
order?: number;
|
||||
/**
|
||||
* Category of the state
|
||||
*/
|
||||
stateCategory: string;
|
||||
stateCategory?: string;
|
||||
/**
|
||||
* Url of the state
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface WorkItemTypeBehavior {
|
||||
behavior: WorkItemBehaviorReference;
|
||||
isDefault: boolean;
|
||||
url: string;
|
||||
behavior?: WorkItemBehaviorReference;
|
||||
isDefault?: boolean;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -464,84 +468,99 @@ export enum WorkItemTypeClass {
|
|||
|
||||
export interface WorkItemTypeFieldModel {
|
||||
allowGroups: boolean;
|
||||
defaultValue: string;
|
||||
name: string;
|
||||
pickList: PickListMetadataModel;
|
||||
readOnly: boolean;
|
||||
referenceName: string;
|
||||
required: boolean;
|
||||
type: FieldType;
|
||||
url: string;
|
||||
defaultValue?: string;
|
||||
name?: string;
|
||||
pickList?: PickListMetadataModel;
|
||||
readOnly?: boolean;
|
||||
referenceName?: string;
|
||||
required?: boolean;
|
||||
type?: FieldType;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* New version of WorkItemTypeFieldModel supporting defaultValue as object (such as IdentityRef)
|
||||
*/
|
||||
export interface WorkItemTypeFieldModel2 {
|
||||
allowGroups: boolean;
|
||||
defaultValue?: any;
|
||||
name?: string;
|
||||
pickList?: PickListMetadataModel;
|
||||
readOnly?: boolean;
|
||||
referenceName?: string;
|
||||
required?: boolean;
|
||||
type?: FieldType;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface WorkItemTypeModel {
|
||||
/**
|
||||
* Behaviors of the work item type
|
||||
*/
|
||||
behaviors: WorkItemTypeBehavior[];
|
||||
behaviors?: WorkItemTypeBehavior[];
|
||||
/**
|
||||
* Class of the work item type
|
||||
*/
|
||||
class: WorkItemTypeClass;
|
||||
class?: WorkItemTypeClass;
|
||||
/**
|
||||
* Color of the work item type
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Description of the work item type
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Icon of the work item type
|
||||
*/
|
||||
icon: string;
|
||||
icon?: string;
|
||||
/**
|
||||
* The ID of the work item type
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Parent WIT Id/Internal ReferenceName that it inherits from
|
||||
*/
|
||||
inherits: string;
|
||||
inherits?: string;
|
||||
/**
|
||||
* Is work item type disabled
|
||||
*/
|
||||
isDisabled: boolean;
|
||||
isDisabled?: boolean;
|
||||
/**
|
||||
* Layout of the work item type
|
||||
*/
|
||||
layout: FormLayout;
|
||||
layout?: FormLayout;
|
||||
/**
|
||||
* Name of the work item type
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* States of the work item type
|
||||
*/
|
||||
states: WorkItemStateResultModel[];
|
||||
states?: WorkItemStateResultModel[];
|
||||
/**
|
||||
* Url of the work item type
|
||||
*/
|
||||
url: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface WorkItemTypeUpdateModel {
|
||||
/**
|
||||
* Color of the work item type
|
||||
*/
|
||||
color: string;
|
||||
color?: string;
|
||||
/**
|
||||
* Description of the work item type
|
||||
*/
|
||||
description: string;
|
||||
description?: string;
|
||||
/**
|
||||
* Icon of the work item type
|
||||
*/
|
||||
icon: string;
|
||||
icon?: string;
|
||||
/**
|
||||
* Is the workitem type to be disabled
|
||||
*/
|
||||
isDisabled: boolean;
|
||||
isDisabled?: boolean;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
|
@ -594,6 +613,8 @@ export var TypeInfo = {
|
|||
},
|
||||
WorkItemTypeFieldModel: <any>{
|
||||
},
|
||||
WorkItemTypeFieldModel2: <any>{
|
||||
},
|
||||
WorkItemTypeModel: <any>{
|
||||
},
|
||||
};
|
||||
|
@ -623,6 +644,12 @@ TypeInfo.WorkItemTypeFieldModel.fields = {
|
|||
}
|
||||
};
|
||||
|
||||
TypeInfo.WorkItemTypeFieldModel2.fields = {
|
||||
type: {
|
||||
enumType: TypeInfo.FieldType
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.WorkItemTypeModel.fields = {
|
||||
class: {
|
||||
enumType: TypeInfo.WorkItemTypeClass
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -244,7 +244,7 @@ export interface InputValuesQuery {
|
|||
/**
|
||||
* The input values to return on input, and the result from the consumer on output.
|
||||
*/
|
||||
inputValues: InputValues[];
|
||||
inputValues?: InputValues[];
|
||||
/**
|
||||
* Subscription containing information about the publisher/consumer and the current input values
|
||||
*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -23,22 +23,22 @@ export enum AccountLicenseType {
|
|||
}
|
||||
|
||||
export interface AccountUserLicense {
|
||||
license: number;
|
||||
source: LicensingSource;
|
||||
license?: number;
|
||||
source?: LicensingSource;
|
||||
}
|
||||
|
||||
export interface ApplicationStatus {
|
||||
extensions: ExtensionApplicationStatus[];
|
||||
isTruncated: boolean;
|
||||
licenses: LicenseApplicationStatus[];
|
||||
option: RuleOption;
|
||||
status: OperationsInterfaces.OperationStatus;
|
||||
extensions?: ExtensionApplicationStatus[];
|
||||
isTruncated?: boolean;
|
||||
licenses?: LicenseApplicationStatus[];
|
||||
option?: RuleOption;
|
||||
status?: OperationsInterfaces.OperationStatus;
|
||||
}
|
||||
|
||||
export interface ExtensionApplicationStatus extends LicensingApplicationStatus {
|
||||
extensionId: string;
|
||||
incompatible: number;
|
||||
unassigned: number;
|
||||
extensionId?: string;
|
||||
incompatible?: number;
|
||||
unassigned?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -48,19 +48,19 @@ export interface ExtensionRule {
|
|||
/**
|
||||
* Extension Id
|
||||
*/
|
||||
extensionId: string;
|
||||
extensionId?: string;
|
||||
/**
|
||||
* Status of the group rule (applied, missing licenses, etc)
|
||||
*/
|
||||
status: GroupLicensingRuleStatus;
|
||||
status?: GroupLicensingRuleStatus;
|
||||
}
|
||||
|
||||
export interface GraphSubjectLookup {
|
||||
lookupKeys: GraphSubjectLookupKey[];
|
||||
lookupKeys?: GraphSubjectLookupKey[];
|
||||
}
|
||||
|
||||
export interface GraphSubjectLookupKey {
|
||||
descriptor: string;
|
||||
descriptor?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -70,15 +70,15 @@ export interface GroupLicensingRule {
|
|||
/**
|
||||
* Extension Rules
|
||||
*/
|
||||
extensionRules: ExtensionRule[];
|
||||
extensionRules?: ExtensionRule[];
|
||||
/**
|
||||
* License Rule
|
||||
*/
|
||||
licenseRule: LicenseRule;
|
||||
licenseRule?: LicenseRule;
|
||||
/**
|
||||
* SubjectDescriptor for the rule
|
||||
*/
|
||||
subjectDescriptor: string;
|
||||
subjectDescriptor?: string;
|
||||
}
|
||||
|
||||
export enum GroupLicensingRuleStatus {
|
||||
|
@ -107,19 +107,19 @@ export interface GroupLicensingRuleUpdate {
|
|||
/**
|
||||
* Extensions to Add
|
||||
*/
|
||||
extensionsToAdd: string[];
|
||||
extensionsToAdd?: string[];
|
||||
/**
|
||||
* Extensions to Remove
|
||||
*/
|
||||
extensionsToRemove: string[];
|
||||
extensionsToRemove?: string[];
|
||||
/**
|
||||
* New License
|
||||
*/
|
||||
license: License;
|
||||
license?: License;
|
||||
/**
|
||||
* SubjectDescriptor for the rule
|
||||
*/
|
||||
subjectDescriptor: string;
|
||||
subjectDescriptor?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -129,12 +129,12 @@ export interface License {
|
|||
/**
|
||||
* Gets the source of the license
|
||||
*/
|
||||
source: LicensingSource;
|
||||
source?: LicensingSource;
|
||||
}
|
||||
|
||||
export interface LicenseApplicationStatus extends LicensingApplicationStatus {
|
||||
accountUserLicense: AccountUserLicense;
|
||||
license: License;
|
||||
accountUserLicense?: AccountUserLicense;
|
||||
license?: License;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -144,21 +144,21 @@ export interface LicenseRule {
|
|||
/**
|
||||
* The last time the rule was executed (regardless of whether any changes were made)
|
||||
*/
|
||||
lastExecuted: Date;
|
||||
lastExecuted?: Date;
|
||||
/**
|
||||
* License
|
||||
*/
|
||||
license: License;
|
||||
license?: License;
|
||||
/**
|
||||
* Status of the group rule (applied, missing licenses, etc)
|
||||
*/
|
||||
status: GroupLicensingRuleStatus;
|
||||
status?: GroupLicensingRuleStatus;
|
||||
}
|
||||
|
||||
export interface LicensingApplicationStatus {
|
||||
assigned: number;
|
||||
failed: number;
|
||||
insufficientResources: number;
|
||||
assigned?: number;
|
||||
failed?: number;
|
||||
insufficientResources?: number;
|
||||
}
|
||||
|
||||
export enum LicensingSource {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* ---------------------------------------------------------
|
||||
* Copyright(C) Microsoft Corporation. All rights reserved.
|
||||
* ---------------------------------------------------------
|
||||
|
@ -10,11 +10,9 @@
|
|||
|
||||
"use strict";
|
||||
|
||||
import GraphInterfaces = require("../GraphInterfaces");
|
||||
|
||||
|
||||
export interface AnonymousObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Information about the location of a REST API resource
|
||||
*/
|
||||
|
@ -22,35 +20,35 @@ export interface ApiResourceLocation {
|
|||
/**
|
||||
* Area name for this resource
|
||||
*/
|
||||
area: string;
|
||||
area?: string;
|
||||
/**
|
||||
* Unique Identifier for this location
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Maximum api version that this resource supports (current server version for this resource)
|
||||
*/
|
||||
maxVersion: string;
|
||||
maxVersion?: string;
|
||||
/**
|
||||
* Minimum api version that this resource supports
|
||||
*/
|
||||
minVersion: string;
|
||||
minVersion?: string;
|
||||
/**
|
||||
* The latest version of this resource location that is in "Release" (non-preview) mode
|
||||
*/
|
||||
releasedVersion: string;
|
||||
releasedVersion?: string;
|
||||
/**
|
||||
* Resource name
|
||||
*/
|
||||
resourceName: string;
|
||||
resourceName?: string;
|
||||
/**
|
||||
* The current resource version supported by this resource location
|
||||
*/
|
||||
resourceVersion: number;
|
||||
resourceVersion?: number;
|
||||
/**
|
||||
* This location's route template (templated relative path)
|
||||
*/
|
||||
routeTemplate: string;
|
||||
routeTemplate?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -60,15 +58,96 @@ export interface ApiResourceVersion {
|
|||
/**
|
||||
* String representation of the Public API version. This is the version that the public sees and is used for a large group of services (e.g. the TFS 1.0 API)
|
||||
*/
|
||||
apiVersion: string;
|
||||
apiVersion?: string;
|
||||
/**
|
||||
* Is the public API version in preview
|
||||
*/
|
||||
isPreview: boolean;
|
||||
isPreview?: boolean;
|
||||
/**
|
||||
* Internal resource version. This is defined per-resource and is used to support build-to-build compatibility of API changes within a given (in-preview) public api version. For example, within the TFS 1.0 API release cycle, while it is still in preview, a resource's data structure may be changed. This resource can be versioned such that older clients will still work (requests will be sent to the older version) and new/upgraded clients will talk to the new version of the resource.
|
||||
*/
|
||||
resourceVersion: number;
|
||||
resourceVersion?: number;
|
||||
}
|
||||
|
||||
export interface AuditLogEntry {
|
||||
/**
|
||||
* The action if for the event, i.e Git.CreateRepo, Project.RenameProject
|
||||
*/
|
||||
actionId?: string;
|
||||
/**
|
||||
* ActivityId
|
||||
*/
|
||||
activityId?: string;
|
||||
/**
|
||||
* The Actor's CUID
|
||||
*/
|
||||
actorCUID?: string;
|
||||
/**
|
||||
* The Actor's User Id
|
||||
*/
|
||||
actorUserId?: string;
|
||||
/**
|
||||
* Type of authentication used by the author
|
||||
*/
|
||||
authenticationMechanism?: string;
|
||||
/**
|
||||
* This allows us to group things together, like one user action that caused a cascade of event entries (project creation).
|
||||
*/
|
||||
correlationId?: string;
|
||||
/**
|
||||
* External data such as CUIDs, item names, etc.
|
||||
*/
|
||||
data?: { [key: string] : any; };
|
||||
/**
|
||||
* EventId, should be unique
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
* IP Address where the event was originated
|
||||
*/
|
||||
iPAddress?: string;
|
||||
/**
|
||||
* The org, collection or project Id
|
||||
*/
|
||||
scopeId?: string;
|
||||
/**
|
||||
* The type of the scope, collection, org, project, etc.
|
||||
*/
|
||||
scopeType?: AuditScopeType;
|
||||
/**
|
||||
* The time when the event occurred in UTC
|
||||
*/
|
||||
timestamp?: Date;
|
||||
/**
|
||||
* The user agent from the request
|
||||
*/
|
||||
userAgent?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of scope from where the event is originated
|
||||
*/
|
||||
export enum AuditScopeType {
|
||||
/**
|
||||
* The scope is not known or has not been set
|
||||
*/
|
||||
Unknown = 0,
|
||||
/**
|
||||
* Deployment
|
||||
*/
|
||||
Deployment = 1,
|
||||
/**
|
||||
* Organization
|
||||
*/
|
||||
Organization = 2,
|
||||
/**
|
||||
* Collection
|
||||
*/
|
||||
Collection = 4,
|
||||
/**
|
||||
* Project
|
||||
*/
|
||||
Project = 8,
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -97,6 +176,12 @@ export enum ConnectOptions {
|
|||
IncludeNonInheritedDefinitionsOnly = 8,
|
||||
}
|
||||
|
||||
export enum DeploymentFlags {
|
||||
None = 0,
|
||||
Hosted = 1,
|
||||
OnPremises = 2,
|
||||
}
|
||||
|
||||
/**
|
||||
* Defines an "actor" for an event.
|
||||
*/
|
||||
|
@ -104,11 +189,11 @@ export interface EventActor {
|
|||
/**
|
||||
* Required: This is the identity of the user for the specified role.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Required: The event specific name of a role.
|
||||
*/
|
||||
role: string;
|
||||
role?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -118,32 +203,31 @@ export interface EventScope {
|
|||
/**
|
||||
* Required: This is the identity of the scope for the type.
|
||||
*/
|
||||
id: string;
|
||||
id?: string;
|
||||
/**
|
||||
* Optional: The display name of the scope
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Required: The event specific type of a scope.
|
||||
*/
|
||||
type: string;
|
||||
type?: string;
|
||||
}
|
||||
|
||||
export interface IdentityRef {
|
||||
directoryAlias: string;
|
||||
displayName: string;
|
||||
id: string;
|
||||
imageUrl: string;
|
||||
inactive: boolean;
|
||||
isAadIdentity: boolean;
|
||||
isContainer: boolean;
|
||||
profileUrl: string;
|
||||
uniqueName: string;
|
||||
url: string;
|
||||
export interface IdentityRef extends GraphInterfaces.GraphSubjectBase {
|
||||
directoryAlias?: string;
|
||||
id?: string;
|
||||
imageUrl?: string;
|
||||
inactive?: boolean;
|
||||
isAadIdentity?: boolean;
|
||||
isContainer?: boolean;
|
||||
isDeletedInOrigin?: boolean;
|
||||
profileUrl?: string;
|
||||
uniqueName?: string;
|
||||
}
|
||||
|
||||
export interface IdentityRefWithEmail extends IdentityRef {
|
||||
preferredEmailAddress: string;
|
||||
preferredEmailAddress?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -159,7 +243,7 @@ export interface JsonPatchOperation {
|
|||
/**
|
||||
* The path to copy from for the Move/Copy operation.
|
||||
*/
|
||||
from: string;
|
||||
from?: string;
|
||||
/**
|
||||
* The patch operation
|
||||
*/
|
||||
|
@ -171,7 +255,7 @@ export interface JsonPatchOperation {
|
|||
/**
|
||||
* The value for the operation. This is either a primitive or a JToken.
|
||||
*/
|
||||
value: any;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
export interface JsonWebToken {
|
||||
|
@ -199,77 +283,140 @@ export interface PublicKey {
|
|||
/**
|
||||
* Gets or sets the exponent for the public key.
|
||||
*/
|
||||
exponent: number[];
|
||||
exponent?: number[];
|
||||
/**
|
||||
* Gets or sets the modulus for the public key.
|
||||
*/
|
||||
modulus: number[];
|
||||
modulus?: number[];
|
||||
}
|
||||
|
||||
export interface Publisher {
|
||||
/**
|
||||
* Name of the publishing service.
|
||||
*/
|
||||
name: string;
|
||||
name?: string;
|
||||
/**
|
||||
* Service Owner Guid Eg. Tfs : 00025394-6065-48CA-87D9-7F5672854EF7
|
||||
*/
|
||||
serviceOwnerId: string;
|
||||
serviceOwnerId?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* The class to represent a REST reference link. RFC: http://tools.ietf.org/html/draft-kelly-json-hal-06 The RFC is not fully implemented, additional properties are allowed on the reference link but as of yet we don't have a need for them.
|
||||
*/
|
||||
export interface ReferenceLink {
|
||||
href: string;
|
||||
href?: string;
|
||||
}
|
||||
|
||||
export interface ResourceRef {
|
||||
id: string;
|
||||
url: string;
|
||||
id?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
export interface ServiceEvent {
|
||||
/**
|
||||
* This is the id of the type. Constants that will be used by subscribers to identify/filter events being published on a topic.
|
||||
*/
|
||||
eventType: string;
|
||||
eventType?: string;
|
||||
/**
|
||||
* This is the service that published this event.
|
||||
*/
|
||||
publisher: Publisher;
|
||||
publisher?: Publisher;
|
||||
/**
|
||||
* The resource object that carries specific information about the event. The object must have the ServiceEventObject applied for serialization/deserialization to work.
|
||||
*/
|
||||
resource: any;
|
||||
resource?: any;
|
||||
/**
|
||||
* This dictionary carries the context descriptors along with their ids.
|
||||
*/
|
||||
resourceContainers: { [key: string] : any; };
|
||||
resourceContainers?: { [key: string] : any; };
|
||||
/**
|
||||
* This is the version of the resource.
|
||||
*/
|
||||
resourceVersion: string;
|
||||
resourceVersion?: string;
|
||||
}
|
||||
|
||||
export interface TeamMember {
|
||||
identity: IdentityRef;
|
||||
isTeamAdmin: boolean;
|
||||
identity?: IdentityRef;
|
||||
isTeamAdmin?: boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* A single secured timing consisting of a duration and start time
|
||||
*/
|
||||
export interface TimingEntry {
|
||||
/**
|
||||
* Duration of the entry in ticks
|
||||
*/
|
||||
elapsedTicks?: number;
|
||||
/**
|
||||
* Properties to distinguish timings within the same group or to provide data to send with telemetry
|
||||
*/
|
||||
properties?: { [key: string] : any; };
|
||||
/**
|
||||
* Offset from Server Request Context start time in microseconds
|
||||
*/
|
||||
startOffset?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* A set of secured performance timings all keyed off of the same string
|
||||
*/
|
||||
export interface TimingGroup {
|
||||
/**
|
||||
* The total number of timing entries associated with this group
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* Overall duration of all entries in this group in ticks
|
||||
*/
|
||||
elapsedTicks?: number;
|
||||
/**
|
||||
* A list of timing entries in this group. Only the first few entries in each group are collected.
|
||||
*/
|
||||
timings?: TimingEntry[];
|
||||
}
|
||||
|
||||
/**
|
||||
* This class describes a trace filter, i.e. a set of criteria on whether or not a trace event should be emitted
|
||||
*/
|
||||
export interface TraceFilter {
|
||||
area?: string;
|
||||
exceptionType?: string;
|
||||
isEnabled?: boolean;
|
||||
layer?: string;
|
||||
level?: number;
|
||||
method?: string;
|
||||
/**
|
||||
* Used to serialize additional identity information (display name, etc) to clients. Not set by default. Server-side callers should use OwnerId.
|
||||
*/
|
||||
owner?: IdentityRef;
|
||||
ownerId?: string;
|
||||
path?: string;
|
||||
processName?: string;
|
||||
service?: string;
|
||||
serviceHost?: string;
|
||||
timeCreated?: Date;
|
||||
traceId?: string;
|
||||
tracepoint?: number;
|
||||
uri?: string;
|
||||
userAgent?: string;
|
||||
userLogin?: string;
|
||||
}
|
||||
|
||||
export interface VssJsonCollectionWrapper extends VssJsonCollectionWrapperBase {
|
||||
value: any[];
|
||||
value?: any[];
|
||||
}
|
||||
|
||||
/**
|
||||
* This class is used to serialized collections as a single JSON object on the wire, to avoid serializing JSON arrays directly to the client, which can be a security hole
|
||||
*/
|
||||
export interface VssJsonCollectionWrapperV<T> extends VssJsonCollectionWrapperBase {
|
||||
value: T;
|
||||
value?: T;
|
||||
}
|
||||
|
||||
export interface VssJsonCollectionWrapperBase {
|
||||
count: number;
|
||||
count?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -279,38 +426,65 @@ export interface VssNotificationEvent {
|
|||
/**
|
||||
* Optional: A list of actors which are additional identities with corresponding roles that are relevant to the event.
|
||||
*/
|
||||
actors: EventActor[];
|
||||
actors?: EventActor[];
|
||||
/**
|
||||
* Optional: A list of artifacts referenced or impacted by this event.
|
||||
*/
|
||||
artifactUris: string[];
|
||||
artifactUris?: string[];
|
||||
/**
|
||||
* Required: The event payload. If Data is a string, it must be in Json or XML format. Otherwise it must have a serialization format attribute.
|
||||
*/
|
||||
data: any;
|
||||
data?: any;
|
||||
/**
|
||||
* Required: The name of the event. This event must be registered in the context it is being fired.
|
||||
*/
|
||||
eventType: string;
|
||||
eventType?: string;
|
||||
/**
|
||||
* How long before the event expires and will be cleaned up. The default is to use the system default.
|
||||
*/
|
||||
expiresIn?: any;
|
||||
/**
|
||||
* The id of the item, artifact, extension, project, etc.
|
||||
*/
|
||||
itemId?: string;
|
||||
/**
|
||||
* How long to wait before processing this event. The default is to process immediately.
|
||||
*/
|
||||
processDelay?: any;
|
||||
/**
|
||||
* Optional: A list of scopes which are are relevant to the event.
|
||||
*/
|
||||
scopes: EventScope[];
|
||||
scopes?: EventScope[];
|
||||
/**
|
||||
* This is the time the original source event for this VssNotificationEvent was created. For example, for something like a build completion notification SourceEventCreatedTime should be the time the build finished not the time this event was raised.
|
||||
*/
|
||||
sourceEventCreatedTime?: Date;
|
||||
}
|
||||
|
||||
export interface WrappedException {
|
||||
customProperties: { [key: string] : any; };
|
||||
errorCode: number;
|
||||
eventId: number;
|
||||
helpLink: string;
|
||||
innerException: WrappedException;
|
||||
message: string;
|
||||
stackTrace: string;
|
||||
typeKey: string;
|
||||
typeName: string;
|
||||
customProperties?: { [key: string] : any; };
|
||||
errorCode?: number;
|
||||
eventId?: number;
|
||||
helpLink?: string;
|
||||
innerException?: WrappedException;
|
||||
message?: string;
|
||||
stackTrace?: string;
|
||||
typeKey?: string;
|
||||
typeName?: string;
|
||||
}
|
||||
|
||||
export var TypeInfo = {
|
||||
AuditLogEntry: <any>{
|
||||
},
|
||||
AuditScopeType: {
|
||||
enumValues: {
|
||||
"unknown": 0,
|
||||
"deployment": 1,
|
||||
"organization": 2,
|
||||
"collection": 4,
|
||||
"project": 8
|
||||
}
|
||||
},
|
||||
ConnectOptions: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
|
@ -320,6 +494,13 @@ export var TypeInfo = {
|
|||
"includeNonInheritedDefinitionsOnly": 8
|
||||
}
|
||||
},
|
||||
DeploymentFlags: {
|
||||
enumValues: {
|
||||
"none": 0,
|
||||
"hosted": 1,
|
||||
"onPremises": 2
|
||||
}
|
||||
},
|
||||
JsonPatchOperation: <any>{
|
||||
},
|
||||
JWTAlgorithm: {
|
||||
|
@ -339,6 +520,19 @@ export var TypeInfo = {
|
|||
"test": 5
|
||||
}
|
||||
},
|
||||
TraceFilter: <any>{
|
||||
},
|
||||
VssNotificationEvent: <any>{
|
||||
},
|
||||
};
|
||||
|
||||
TypeInfo.AuditLogEntry.fields = {
|
||||
scopeType: {
|
||||
enumType: TypeInfo.AuditScopeType
|
||||
},
|
||||
timestamp: {
|
||||
isDate: true,
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.JsonPatchOperation.fields = {
|
||||
|
@ -346,3 +540,15 @@ TypeInfo.JsonPatchOperation.fields = {
|
|||
enumType: TypeInfo.Operation
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.TraceFilter.fields = {
|
||||
timeCreated: {
|
||||
isDate: true,
|
||||
}
|
||||
};
|
||||
|
||||
TypeInfo.VssNotificationEvent.fields = {
|
||||
sourceEventCreatedTime: {
|
||||
isDate: true,
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "azure-devops-node-api",
|
||||
"version": "6.6.3",
|
||||
"version": "7.0.0",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "azure-devops-node-api",
|
||||
"description": "Node client for Azure DevOps and TFS REST APIs",
|
||||
"version": "6.6.3",
|
||||
"version": "7.0.0",
|
||||
"main": "./WebApi.js",
|
||||
"types": "./WebApi.d.ts",
|
||||
"scripts": {
|
||||
|
|
|
@ -234,7 +234,7 @@ export async function run() {
|
|||
/********** Work Item Tracking Process **********/
|
||||
printSectionStart('Work Item Tracking Process');
|
||||
const workItemTrackingProcessApi = await vstsCollectionLevel.getWorkItemTrackingProcessApi();
|
||||
const processes: ProcessModel[] = await workItemTrackingProcessApi.getProcesses();
|
||||
const processes: ProcessModel[] = await workItemTrackingProcessApi.getListOfProcesses();
|
||||
|
||||
if (processes) {
|
||||
console.log(`found ${processes.length} processes`);
|
||||
|
|
Загрузка…
Ссылка в новой задаче