azure-devops-extension-api 2.221.0 → 2.223.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Build.d.ts +8 -0
- package/Core/Core.d.ts +10 -0
- package/Core/CoreClient.d.ts +9 -0
- package/Core/CoreClient.js +28 -0
- package/Core/CoreClient.min.js +1 -1
- package/Git/GitClient.d.ts +4 -4
- package/Git/GitClient.js +4 -4
- package/ServiceEndpoint/ServiceEndpoint.d.ts +1 -0
- package/TaskAgent/TaskAgent.d.ts +4 -0
- package/Test/Test.d.ts +22 -0
- package/TestResults/TestResultsClient.d.ts +2 -2
- package/package.json +1 -1
package/Build/Build.d.ts
CHANGED
|
@@ -2042,10 +2042,18 @@ export interface PipelineGeneralSettings {
|
|
|
2042
2042
|
* If enabled, audit logs will be generated whenever someone queues a pipeline run and defines variables that are not marked as "Settable at queue time".
|
|
2043
2043
|
*/
|
|
2044
2044
|
auditEnforceSettableVar: boolean;
|
|
2045
|
+
/**
|
|
2046
|
+
* Disable classic build pipelines creation.
|
|
2047
|
+
*/
|
|
2048
|
+
disableClassicBuildPipelineCreation: boolean;
|
|
2045
2049
|
/**
|
|
2046
2050
|
* Disable classic pipelines creation.
|
|
2047
2051
|
*/
|
|
2048
2052
|
disableClassicPipelineCreation: boolean;
|
|
2053
|
+
/**
|
|
2054
|
+
* Disable classic release pipelines creation.
|
|
2055
|
+
*/
|
|
2056
|
+
disableClassicReleasePipelineCreation: boolean;
|
|
2049
2057
|
/**
|
|
2050
2058
|
* If enabled, scope of access for all non-release pipelines reduces to the current project.
|
|
2051
2059
|
*/
|
package/Core/Core.d.ts
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import * as Identities from "../Identities/Identities";
|
|
2
2
|
import * as WebApi from "../WebApi/WebApi";
|
|
3
|
+
export interface CategorizedWebApiTeams {
|
|
4
|
+
/**
|
|
5
|
+
* Teams that the user is a member of.
|
|
6
|
+
*/
|
|
7
|
+
myTeams: WebApiTeam[];
|
|
8
|
+
/**
|
|
9
|
+
* Teams that the user can read but is not member of.
|
|
10
|
+
*/
|
|
11
|
+
otherReadableTeams: WebApiTeam[];
|
|
12
|
+
}
|
|
3
13
|
export declare enum ConnectedServiceKind {
|
|
4
14
|
/**
|
|
5
15
|
* Custom or unknown service
|
package/Core/CoreClient.d.ts
CHANGED
|
@@ -19,6 +19,15 @@ export declare class CoreRestClient extends RestClientBase {
|
|
|
19
19
|
* @param projectId - The ID or name of the project.
|
|
20
20
|
*/
|
|
21
21
|
setProjectAvatar(avatarBlob: Core.ProjectAvatar, projectId: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Gets list of user readable teams in a project and teams user is member of (excluded from readable list).
|
|
24
|
+
*
|
|
25
|
+
* @param projectId - The name or ID (GUID) of the team project containing the teams to retrieve.
|
|
26
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
27
|
+
* @param top - Maximum number of teams to return.
|
|
28
|
+
* @param skip - Number of teams to skip.
|
|
29
|
+
*/
|
|
30
|
+
getProjectTeamsByCategory(projectId: string, expandIdentity?: boolean, top?: number, skip?: number): Promise<Core.CategorizedWebApiTeams>;
|
|
22
31
|
/**
|
|
23
32
|
* @param connectedServiceCreationData -
|
|
24
33
|
* @param projectId -
|
package/Core/CoreClient.js
CHANGED
|
@@ -96,6 +96,34 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
96
96
|
});
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
|
+
/**
|
|
100
|
+
* Gets list of user readable teams in a project and teams user is member of (excluded from readable list).
|
|
101
|
+
*
|
|
102
|
+
* @param projectId - The name or ID (GUID) of the team project containing the teams to retrieve.
|
|
103
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
104
|
+
* @param top - Maximum number of teams to return.
|
|
105
|
+
* @param skip - Number of teams to skip.
|
|
106
|
+
*/
|
|
107
|
+
CoreRestClient.prototype.getProjectTeamsByCategory = function (projectId, expandIdentity, top, skip) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
109
|
+
var queryValues;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
queryValues = {
|
|
112
|
+
'$expandIdentity': expandIdentity,
|
|
113
|
+
'$top': top,
|
|
114
|
+
'$skip': skip
|
|
115
|
+
};
|
|
116
|
+
return [2 /*return*/, this.beginRequest({
|
|
117
|
+
apiVersion: "7.1-preview.1",
|
|
118
|
+
routeTemplate: "_apis/projects/{projectId}/categorizedTeams/",
|
|
119
|
+
routeValues: {
|
|
120
|
+
projectId: projectId
|
|
121
|
+
},
|
|
122
|
+
queryParams: queryValues
|
|
123
|
+
})];
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
};
|
|
99
127
|
/**
|
|
100
128
|
* @param connectedServiceCreationData -
|
|
101
129
|
* @param projectId -
|
package/Core/CoreClient.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function u(e){try{s(o.next(e))}catch(e){n(e)}}function a(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,a)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.removeProjectAvatar=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:e}})]})})},t.prototype.setProjectAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:t},body:e})]})})},t.prototype.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(s){return u={stateFilter:e,$top:t,$skip:r,continuationToken:i,getDefaultTeamImageUrl:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectsProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectIds:e&&e.join(","),properties:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projectsproperties",queryParams:r})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:e,$top:t,$skip:r,$expandIdentity:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/teams",queryParams:i})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expandIdentity:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t},queryParams:o})]})})},t.prototype.getTeams=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$mine:t,$top:r,$skip:o,$expandIdentity:i},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:n})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=i});
|
|
1
|
+
var __extends=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,o){return new(r||(r=Promise))(function(i,n){function u(e){try{s(o.next(e))}catch(e){n(e)}}function a(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,a)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.removeProjectAvatar=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:e}})]})})},t.prototype.setProjectAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectTeamsByCategory=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$expandIdentity:t,$top:r,$skip:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/categorizedTeams/",routeValues:{projectId:e},queryParams:i})]})})},t.prototype.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(s){return u={stateFilter:e,$top:t,$skip:r,continuationToken:i,getDefaultTeamImageUrl:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectsProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectIds:e&&e.join(","),properties:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projectsproperties",queryParams:r})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:e,$top:t,$skip:r,$expandIdentity:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/teams",queryParams:i})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expandIdentity:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t},queryParams:o})]})})},t.prototype.getTeams=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$mine:t,$top:r,$skip:o,$expandIdentity:i},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:n})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=i});
|
package/Git/GitClient.d.ts
CHANGED
|
@@ -698,7 +698,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
698
698
|
*/
|
|
699
699
|
updatePullRequestIterationStatuses(patchDocument: WebApi.JsonPatchDocument, repositoryId: string, pullRequestId: number, iterationId: number, project?: string): Promise<void>;
|
|
700
700
|
/**
|
|
701
|
-
* Create a label for a specified pull request. The only required field is the name of the new label.
|
|
701
|
+
* Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
|
|
702
702
|
*
|
|
703
703
|
* @param label - Label to assign to the pull request.
|
|
704
704
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
@@ -708,7 +708,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
708
708
|
*/
|
|
709
709
|
createPullRequestLabel(label: TfsCore.WebApiCreateTagRequestData, repositoryId: string, pullRequestId: number, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
|
|
710
710
|
/**
|
|
711
|
-
* Removes a label from the set of those assigned to the pull request.
|
|
711
|
+
* Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
|
|
712
712
|
*
|
|
713
713
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
714
714
|
* @param pullRequestId - ID of the pull request.
|
|
@@ -718,7 +718,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
718
718
|
*/
|
|
719
719
|
deletePullRequestLabels(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<void>;
|
|
720
720
|
/**
|
|
721
|
-
* Retrieves a single label that has been assigned to a pull request.
|
|
721
|
+
* Retrieves a single label (tag) that has been assigned to a pull request.
|
|
722
722
|
*
|
|
723
723
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
724
724
|
* @param pullRequestId - ID of the pull request.
|
|
@@ -728,7 +728,7 @@ export declare class GitRestClient extends RestClientBase {
|
|
|
728
728
|
*/
|
|
729
729
|
getPullRequestLabel(repositoryId: string, pullRequestId: number, labelIdOrName: string, project?: string, projectId?: string): Promise<TfsCore.WebApiTagDefinition>;
|
|
730
730
|
/**
|
|
731
|
-
* Get all the labels assigned to a pull request.
|
|
731
|
+
* Get all the labels (tags) assigned to a pull request.
|
|
732
732
|
*
|
|
733
733
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
734
734
|
* @param pullRequestId - ID of the pull request.
|
package/Git/GitClient.js
CHANGED
|
@@ -2084,7 +2084,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
2084
2084
|
});
|
|
2085
2085
|
};
|
|
2086
2086
|
/**
|
|
2087
|
-
* Create a label for a specified pull request. The only required field is the name of the new label.
|
|
2087
|
+
* Create a tag (if that does not exists yet) and add that as a label (tag) for a specified pull request. The only required field is the name of the new label (tag).
|
|
2088
2088
|
*
|
|
2089
2089
|
* @param label - Label to assign to the pull request.
|
|
2090
2090
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
@@ -2115,7 +2115,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
2115
2115
|
});
|
|
2116
2116
|
};
|
|
2117
2117
|
/**
|
|
2118
|
-
* Removes a label from the set of those assigned to the pull request.
|
|
2118
|
+
* Removes a label (tag) from the set of those assigned to the pull request. The tag itself will not be deleted.
|
|
2119
2119
|
*
|
|
2120
2120
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
2121
2121
|
* @param pullRequestId - ID of the pull request.
|
|
@@ -2146,7 +2146,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
2146
2146
|
});
|
|
2147
2147
|
};
|
|
2148
2148
|
/**
|
|
2149
|
-
* Retrieves a single label that has been assigned to a pull request.
|
|
2149
|
+
* Retrieves a single label (tag) that has been assigned to a pull request.
|
|
2150
2150
|
*
|
|
2151
2151
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
2152
2152
|
* @param pullRequestId - ID of the pull request.
|
|
@@ -2176,7 +2176,7 @@ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serial
|
|
|
2176
2176
|
});
|
|
2177
2177
|
};
|
|
2178
2178
|
/**
|
|
2179
|
-
* Get all the labels assigned to a pull request.
|
|
2179
|
+
* Get all the labels (tags) assigned to a pull request.
|
|
2180
2180
|
*
|
|
2181
2181
|
* @param repositoryId - The repository ID of the pull request’s target branch.
|
|
2182
2182
|
* @param pullRequestId - ID of the pull request.
|
package/TaskAgent/TaskAgent.d.ts
CHANGED
|
@@ -2622,6 +2622,10 @@ export interface TaskCommandRestrictions {
|
|
|
2622
2622
|
mode: TaskCommandMode;
|
|
2623
2623
|
}
|
|
2624
2624
|
export interface TaskCompletedEvent extends TaskEvent {
|
|
2625
|
+
/**
|
|
2626
|
+
* The api request was no delivered successfully
|
|
2627
|
+
*/
|
|
2628
|
+
deliveryFailed: boolean;
|
|
2625
2629
|
/**
|
|
2626
2630
|
* The result of the task.
|
|
2627
2631
|
*/
|
package/Test/Test.d.ts
CHANGED
|
@@ -3704,6 +3704,28 @@ export interface TestResultFailuresAnalysis {
|
|
|
3704
3704
|
fixedTests: TestFailureDetails;
|
|
3705
3705
|
newFailures: TestFailureDetails;
|
|
3706
3706
|
}
|
|
3707
|
+
/**
|
|
3708
|
+
* The test failure type resource
|
|
3709
|
+
*/
|
|
3710
|
+
export interface TestResultFailureType {
|
|
3711
|
+
/**
|
|
3712
|
+
* ID of the test failure type
|
|
3713
|
+
*/
|
|
3714
|
+
id: number;
|
|
3715
|
+
/**
|
|
3716
|
+
* Name of the test failure type
|
|
3717
|
+
*/
|
|
3718
|
+
name: string;
|
|
3719
|
+
}
|
|
3720
|
+
/**
|
|
3721
|
+
* The test failure type request model
|
|
3722
|
+
*/
|
|
3723
|
+
export interface TestResultFailureTypeRequestModel {
|
|
3724
|
+
/**
|
|
3725
|
+
* Name of the test failure type
|
|
3726
|
+
*/
|
|
3727
|
+
name: string;
|
|
3728
|
+
}
|
|
3707
3729
|
/**
|
|
3708
3730
|
* Group by for results
|
|
3709
3731
|
*/
|
|
@@ -589,7 +589,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
589
589
|
* @param testResultFailureType -
|
|
590
590
|
* @param project - Project ID or project name
|
|
591
591
|
*/
|
|
592
|
-
createFailureType(testResultFailureType: Test.
|
|
592
|
+
createFailureType(testResultFailureType: Test.TestResultFailureTypeRequestModel, project: string): Promise<Test.TestResultFailureType>;
|
|
593
593
|
/**
|
|
594
594
|
* Deletes a test failure type with specified failureTypeId
|
|
595
595
|
*
|
|
@@ -602,7 +602,7 @@ export declare class TestResultsRestClient extends RestClientBase {
|
|
|
602
602
|
*
|
|
603
603
|
* @param project - Project ID or project name
|
|
604
604
|
*/
|
|
605
|
-
getFailureTypes(project: string): Promise<Test.
|
|
605
|
+
getFailureTypes(project: string): Promise<Test.TestResultFailureType[]>;
|
|
606
606
|
/**
|
|
607
607
|
* Get history of a test method using TestHistoryQuery
|
|
608
608
|
*
|