azure-devops-extension-api 1.158.0 → 2.220.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/Accounts/AccountsClient.d.ts +1 -1
- package/Accounts/AccountsClient.js +4 -4
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/Build.d.ts +205 -3
- package/Build/Build.js +6 -2
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +121 -13
- package/Build/BuildClient.js +468 -101
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/Contributions.d.ts +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.d.ts +2 -2
- package/Core/CoreClient.js +49 -36
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +79 -2
- package/Dashboard/Dashboard.js +10 -0
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +2 -2
- package/Dashboard/DashboardClient.js +15 -15
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
- package/ExtensionManagement/ExtensionManagementClient.js +27 -27
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -0
- package/Favorite/Favorite.js +9 -0
- package/Favorite/Favorite.min.js +1 -0
- package/Favorite/FavoriteClient.d.ts +78 -0
- package/Favorite/FavoriteClient.js +314 -0
- package/Favorite/FavoriteClient.min.js +1 -0
- package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.js +9 -9
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +22 -0
- package/FileContainer/FileContainer.js +8 -0
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +5 -2
- package/FileContainer/FileContainerClient.js +13 -7
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FormInput/FormInput.d.ts +1 -1
- package/Gallery/Gallery.d.ts +92 -7
- package/Gallery/Gallery.js +25 -3
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +41 -9
- package/Gallery/GalleryClient.js +211 -90
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +121 -7
- package/Git/Git.js +2 -1
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +182 -28
- package/Git/GitClient.js +657 -162
- package/Git/GitClient.min.js +1 -1
- package/Graph/Graph.d.ts +107 -17
- package/Graph/GraphClient.d.ts +42 -3
- package/Graph/GraphClient.js +159 -38
- package/Graph/GraphClient.min.js +1 -1
- package/Identities/Identities.d.ts +15 -0
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/Notification.d.ts +3 -3
- package/Notification/NotificationClient.d.ts +6 -0
- package/Notification/NotificationClient.js +40 -23
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.d.ts +1 -1
- package/Operations/OperationsClient.js +2 -2
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +318 -0
- package/Pipelines/Pipelines.js +82 -0
- package/Pipelines/Pipelines.min.js +1 -0
- package/Pipelines/PipelinesClient.d.ts +92 -0
- package/Pipelines/PipelinesClient.js +325 -0
- package/Pipelines/PipelinesClient.min.js +1 -0
- package/Policy/Policy.d.ts +4 -0
- package/Policy/PolicyClient.d.ts +3 -3
- package/Policy/PolicyClient.js +30 -19
- package/Policy/PolicyClient.min.js +1 -1
- package/Profile/ProfileClient.js +12 -12
- package/Profile/ProfileClient.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/Release/Release.d.ts +81 -7
- package/Release/Release.js +11 -0
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +31 -5
- package/Release/ReleaseClient.js +223 -95
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
- package/ServiceEndpoint/ServiceEndpoint.js +1 -0
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
- package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +2 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +740 -17
- package/TaskAgent/TaskAgent.js +133 -0
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +28 -16
- package/TaskAgent/TaskAgentClient.js +336 -195
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/Test.d.ts +96 -25
- package/Test/Test.js +8 -0
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +17 -34
- package/Test/TestClient.js +163 -152
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +215 -18
- package/TestPlan/TestPlan.js +47 -1
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +48 -14
- package/TestPlan/TestPlanClient.js +255 -74
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +112 -27
- package/TestResults/TestResultsClient.js +518 -134
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +9 -1
- package/Tfvc/TfvcClient.d.ts +3 -2
- package/Tfvc/TfvcClient.js +41 -28
- package/Tfvc/TfvcClient.min.js +1 -1
- package/WebApi/WebApi.d.ts +22 -3
- package/Wiki/Wiki.d.ts +51 -0
- package/Wiki/WikiClient.d.ts +18 -0
- package/Wiki/WikiClient.js +71 -1
- package/Wiki/WikiClient.min.js +1 -1
- package/Work/Work.d.ts +68 -1
- package/Work/WorkClient.d.ts +10 -3
- package/Work/WorkClient.js +78 -58
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
- package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +3 -3
package/Wiki/Wiki.d.ts
CHANGED
|
@@ -139,6 +139,23 @@ export interface WikiPageCreateOrUpdateParameters {
|
|
|
139
139
|
*/
|
|
140
140
|
content: string;
|
|
141
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* Defines a page with its metedata in a wiki.
|
|
144
|
+
*/
|
|
145
|
+
export interface WikiPageDetail {
|
|
146
|
+
/**
|
|
147
|
+
* When present, permanent identifier for the wiki page
|
|
148
|
+
*/
|
|
149
|
+
id: number;
|
|
150
|
+
/**
|
|
151
|
+
* Path of the wiki page.
|
|
152
|
+
*/
|
|
153
|
+
path: string;
|
|
154
|
+
/**
|
|
155
|
+
* Path of the wiki page.
|
|
156
|
+
*/
|
|
157
|
+
viewStats: WikiPageStat[];
|
|
158
|
+
}
|
|
142
159
|
/**
|
|
143
160
|
* Request contract for Wiki Page Move.
|
|
144
161
|
*/
|
|
@@ -191,6 +208,36 @@ export interface WikiPageResponse {
|
|
|
191
208
|
*/
|
|
192
209
|
page: WikiPage;
|
|
193
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* Contract encapsulating parameters for the pages batch.
|
|
213
|
+
*/
|
|
214
|
+
export interface WikiPagesBatchRequest {
|
|
215
|
+
/**
|
|
216
|
+
* If the list of page data returned is not complete, a continuation token to query next batch of pages is included in the response header as "x-ms-continuationtoken". Omit this parameter to get the first batch of Wiki Page Data.
|
|
217
|
+
*/
|
|
218
|
+
continuationToken: string;
|
|
219
|
+
/**
|
|
220
|
+
* last N days from the current day for which page views is to be returned. It's inclusive of current day.
|
|
221
|
+
*/
|
|
222
|
+
pageViewsForDays: number;
|
|
223
|
+
/**
|
|
224
|
+
* Total count of pages on a wiki to return.
|
|
225
|
+
*/
|
|
226
|
+
top: number;
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* Defines properties for wiki page stat.
|
|
230
|
+
*/
|
|
231
|
+
export interface WikiPageStat {
|
|
232
|
+
/**
|
|
233
|
+
* the count of the stat for the Day
|
|
234
|
+
*/
|
|
235
|
+
count: number;
|
|
236
|
+
/**
|
|
237
|
+
* Day of the stat
|
|
238
|
+
*/
|
|
239
|
+
day: Date;
|
|
240
|
+
}
|
|
194
241
|
/**
|
|
195
242
|
* Defines properties for wiki page view stats.
|
|
196
243
|
*/
|
|
@@ -256,6 +303,10 @@ export interface WikiV2 extends WikiCreateBaseParameters {
|
|
|
256
303
|
* ID of the wiki.
|
|
257
304
|
*/
|
|
258
305
|
id: string;
|
|
306
|
+
/**
|
|
307
|
+
* Is wiki repository disabled
|
|
308
|
+
*/
|
|
309
|
+
isDisabled: boolean;
|
|
259
310
|
/**
|
|
260
311
|
* Properties of the wiki.
|
|
261
312
|
*/
|
package/Wiki/WikiClient.d.ts
CHANGED
|
@@ -152,6 +152,24 @@ export declare class WikiRestClient extends RestClientBase {
|
|
|
152
152
|
* @param includeContent - True to include the content of the page in the response for Json content type. Defaults to false (Optional)
|
|
153
153
|
*/
|
|
154
154
|
getPageByIdZip(project: string, wikiIdentifier: string, id: number, recursionLevel?: Git.VersionControlRecursionType, includeContent?: boolean): Promise<ArrayBuffer>;
|
|
155
|
+
/**
|
|
156
|
+
* Returns pageable list of Wiki Pages
|
|
157
|
+
*
|
|
158
|
+
* @param pagesBatchRequest - Wiki batch page request.
|
|
159
|
+
* @param project - Project ID or project name
|
|
160
|
+
* @param wikiIdentifier - Wiki ID or wiki name.
|
|
161
|
+
* @param versionDescriptor - GitVersionDescriptor for the page. (Optional in case of ProjectWiki).
|
|
162
|
+
*/
|
|
163
|
+
getPagesBatch(pagesBatchRequest: Wiki.WikiPagesBatchRequest, project: string, wikiIdentifier: string, versionDescriptor?: Git.GitVersionDescriptor): Promise<WebApi.PagedList<Wiki.WikiPageDetail>>;
|
|
164
|
+
/**
|
|
165
|
+
* Returns page detail corresponding to Page ID.
|
|
166
|
+
*
|
|
167
|
+
* @param project - Project ID or project name
|
|
168
|
+
* @param wikiIdentifier - Wiki ID or wiki name.
|
|
169
|
+
* @param pageId - Wiki page ID.
|
|
170
|
+
* @param pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
|
|
171
|
+
*/
|
|
172
|
+
getPageData(project: string, wikiIdentifier: string, pageId: number, pageViewsForDays?: number): Promise<Wiki.WikiPageDetail>;
|
|
155
173
|
/**
|
|
156
174
|
* Creates a new page view stats resource or updates an existing page view stats resource.
|
|
157
175
|
*
|
package/Wiki/WikiClient.js
CHANGED
|
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48
48
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
|
-
define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
|
|
51
|
+
define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
|
|
52
52
|
"use strict";
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
54
|
var WikiRestClient = /** @class */ (function (_super) {
|
|
@@ -473,6 +473,76 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
473
473
|
});
|
|
474
474
|
});
|
|
475
475
|
};
|
|
476
|
+
/**
|
|
477
|
+
* Returns pageable list of Wiki Pages
|
|
478
|
+
*
|
|
479
|
+
* @param pagesBatchRequest - Wiki batch page request.
|
|
480
|
+
* @param project - Project ID or project name
|
|
481
|
+
* @param wikiIdentifier - Wiki ID or wiki name.
|
|
482
|
+
* @param versionDescriptor - GitVersionDescriptor for the page. (Optional in case of ProjectWiki).
|
|
483
|
+
*/
|
|
484
|
+
WikiRestClient.prototype.getPagesBatch = function (pagesBatchRequest, project, wikiIdentifier, versionDescriptor) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var queryValues;
|
|
487
|
+
var _this = this;
|
|
488
|
+
return __generator(this, function (_a) {
|
|
489
|
+
queryValues = {
|
|
490
|
+
versionDescriptor: versionDescriptor
|
|
491
|
+
};
|
|
492
|
+
return [2 /*return*/, this.beginRequest({
|
|
493
|
+
apiVersion: "5.2-preview.1",
|
|
494
|
+
method: "POST",
|
|
495
|
+
routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pagesBatch",
|
|
496
|
+
routeValues: {
|
|
497
|
+
project: project,
|
|
498
|
+
wikiIdentifier: wikiIdentifier
|
|
499
|
+
},
|
|
500
|
+
queryParams: queryValues,
|
|
501
|
+
body: pagesBatchRequest,
|
|
502
|
+
returnRawResponse: true
|
|
503
|
+
}).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
|
|
504
|
+
var body;
|
|
505
|
+
return __generator(this, function (_a) {
|
|
506
|
+
switch (_a.label) {
|
|
507
|
+
case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
|
|
508
|
+
case 1:
|
|
509
|
+
body = _a.sent();
|
|
510
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
511
|
+
return [2 /*return*/, body];
|
|
512
|
+
}
|
|
513
|
+
});
|
|
514
|
+
}); })];
|
|
515
|
+
});
|
|
516
|
+
});
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Returns page detail corresponding to Page ID.
|
|
520
|
+
*
|
|
521
|
+
* @param project - Project ID or project name
|
|
522
|
+
* @param wikiIdentifier - Wiki ID or wiki name.
|
|
523
|
+
* @param pageId - Wiki page ID.
|
|
524
|
+
* @param pageViewsForDays - last N days from the current day for which page views is to be returned. It's inclusive of current day.
|
|
525
|
+
*/
|
|
526
|
+
WikiRestClient.prototype.getPageData = function (project, wikiIdentifier, pageId, pageViewsForDays) {
|
|
527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
528
|
+
var queryValues;
|
|
529
|
+
return __generator(this, function (_a) {
|
|
530
|
+
queryValues = {
|
|
531
|
+
pageViewsForDays: pageViewsForDays
|
|
532
|
+
};
|
|
533
|
+
return [2 /*return*/, this.beginRequest({
|
|
534
|
+
apiVersion: "5.2-preview.1",
|
|
535
|
+
routeTemplate: "{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/stats",
|
|
536
|
+
routeValues: {
|
|
537
|
+
project: project,
|
|
538
|
+
wikiIdentifier: wikiIdentifier,
|
|
539
|
+
pageId: pageId
|
|
540
|
+
},
|
|
541
|
+
queryParams: queryValues
|
|
542
|
+
})];
|
|
543
|
+
});
|
|
544
|
+
});
|
|
545
|
+
};
|
|
476
546
|
/**
|
|
477
547
|
* Creates a new page view stats resource or updates an existing page view stats resource.
|
|
478
548
|
*
|
package/Wiki/WikiClient.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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function p(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?n(e.value):new i(function(t){t(e.value)}).then(a,p)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function i(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;p;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return p.label++,{value:i[1],done:!1};case 5:p.label++,n=i[1],i=[0];continue;case 7:i=p.ops.pop(),p.trys.pop();continue;default:if(o=p.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){p=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){p.label=i[1];break}if(6===i[0]&&p.label<o[1]){p.label=o[1],o=i;break}if(o&&p.label<o[2]){p.label=o[2],p.ops.push(i);break}o[2]&&p.ops.pop(),p.trys.pop();continue}i=t.call(e,p)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}var r,n,o,a,p={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createCommentAttachment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",routeValues:{project:t,wikiIdentifier:i,pageId:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})]})})},t.prototype.getAttachmentContent=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",routeValues:{project:e,wikiIdentifier:t,pageId:i,attachmentId:r}})]})})},t.prototype.addCommentReaction=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n}})]})})},t.prototype.deleteCommentReaction=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n}})]})})},t.prototype.getEngagedUsers=function(e,t,i,r,n,o,a){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(u){return p={$top:o,$skip:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}/users",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n},queryParams:p})]})})},t.prototype.addComment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:t,wikiIdentifier:i,pageId:r},body:e})]})})},t.prototype.deleteComment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i,id:r}})]})})},t.prototype.getComment=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={excludeDeleted:n,$expand:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i,id:r},queryParams:a})]})})},t.prototype.listComments=function(e,t,i,r,n,o,a,p,u){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(c){return s={$top:r,continuationToken:n,excludeDeleted:o,$expand:a,order:p,parentId:u},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i},queryParams:s})]})})},t.prototype.updateComment=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:t,wikiIdentifier:i,pageId:r,id:n},body:e})]})})},t.prototype.getPageText=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={path:i,recursionLevel:r,versionDescriptor:n,includeContent:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:a})]})})},t.prototype.getPageZip=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(p){return a={path:i,recursionLevel:r,versionDescriptor:n,includeContent:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:a})]})})},t.prototype.getPageByIdText=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={recursionLevel:r,includeContent:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",routeValues:{project:e,wikiIdentifier:t,id:i},queryParams:o})]})})},t.prototype.getPageByIdZip=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={recursionLevel:r,includeContent:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",routeValues:{project:e,wikiIdentifier:t,id:i},queryParams:o})]})})},t.prototype.createOrUpdatePageViewStats=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={wikiVersion:i,path:r,oldPath:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pageViewStats/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:o})]})})},t.prototype.createWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t},body:e})]})})},t.prototype.deleteWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t,wikiIdentifier:e}})]})})},t.prototype.getAllWikis=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:e}})]})})},t.prototype.getWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t,wikiIdentifier:e}})]})})},t.prototype.updateWiki=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:i,wikiIdentifier:t},body:e})]})})},t.RESOURCE_AREA_ID="bf7d82a0-8aa5-4613-94ef-6172a5ea01f3",t}(i.RestClientBase);t.WikiRestClient=r});
|
|
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 i in t)t.hasOwnProperty(i)&&(e[i]=t[i])};return function(t,i){function r(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(r.prototype=i.prototype,new r)}}(),__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))(function(n,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?n(e.value):new i(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function i(i){return function(a){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;s;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,n=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(o=s.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}var r,n,o,a,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,i,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createCommentAttachment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",routeValues:{project:t,wikiIdentifier:i,pageId:r},customHeaders:{"Content-Type":"application/octet-stream"},body:e,isRawData:!0})]})})},t.prototype.getAttachmentContent=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/octet-stream",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/attachments/{attachmentId}",routeValues:{project:e,wikiIdentifier:t,pageId:i,attachmentId:r}})]})})},t.prototype.addCommentReaction=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n}})]})})},t.prototype.deleteCommentReaction=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n}})]})})},t.prototype.getEngagedUsers=function(e,t,i,r,n,o,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(u){return s={$top:o,$skip:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{commentId}/reactions/{type}/users",routeValues:{project:e,wikiIdentifier:t,pageId:i,commentId:r,type:n},queryParams:s})]})})},t.prototype.addComment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:t,wikiIdentifier:i,pageId:r},body:e})]})})},t.prototype.deleteComment=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i,id:r}})]})})},t.prototype.getComment=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={excludeDeleted:n,$expand:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i,id:r},queryParams:a})]})})},t.prototype.listComments=function(e,t,i,r,n,o,a,s,u){return __awaiter(this,void 0,void 0,function(){var p;return __generator(this,function(c){return p={$top:r,continuationToken:n,excludeDeleted:o,$expand:a,order:s,parentId:u},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:e,wikiIdentifier:t,pageId:i},queryParams:p})]})})},t.prototype.updateComment=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/comments/{id}",routeValues:{project:t,wikiIdentifier:i,pageId:r,id:n},body:e})]})})},t.prototype.getPageText=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={path:i,recursionLevel:r,versionDescriptor:n,includeContent:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:a})]})})},t.prototype.getPageZip=function(e,t,i,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={path:i,recursionLevel:r,versionDescriptor:n,includeContent:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:a})]})})},t.prototype.getPageByIdText=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={recursionLevel:r,includeContent:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"text/plain",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",routeValues:{project:e,wikiIdentifier:t,id:i},queryParams:o})]})})},t.prototype.getPageByIdZip=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={recursionLevel:r,includeContent:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",httpResponseType:"application/zip",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{id}",routeValues:{project:e,wikiIdentifier:t,id:i},queryParams:o})]})})},t.prototype.getPagesBatch=function(e,t,i,n){return __awaiter(this,void 0,void 0,function(){var o,a=this;return __generator(this,function(s){return o={versionDescriptor:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pagesBatch",routeValues:{project:t,wikiIdentifier:i},queryParams:o,body:e,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(i){switch(i.label){case 0:return[4,e.text().then(r.deserializeVssJsonObject)];case 1:return t=i.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.getPageData=function(e,t,i,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={pageViewsForDays:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pages/{pageId}/stats",routeValues:{project:e,wikiIdentifier:t,pageId:i},queryParams:n})]})})},t.prototype.createOrUpdatePageViewStats=function(e,t,i,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(a){return o={wikiVersion:i,path:r,oldPath:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}/pageViewStats/{*path}",routeValues:{project:e,wikiIdentifier:t},queryParams:o})]})})},t.prototype.createWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t},body:e})]})})},t.prototype.deleteWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t,wikiIdentifier:e}})]})})},t.prototype.getAllWikis=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:e}})]})})},t.prototype.getWiki=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:t,wikiIdentifier:e}})]})})},t.prototype.updateWiki=function(e,t,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"{project}/_apis/wiki/wikis/{wikiIdentifier}",routeValues:{project:i,wikiIdentifier:t},body:e})]})})},t.RESOURCE_AREA_ID="bf7d82a0-8aa5-4613-94ef-6172a5ea01f3",t}(i.RestClientBase);t.WikiRestClient=n});
|
package/Work/Work.d.ts
CHANGED
|
@@ -261,6 +261,7 @@ export interface BoardReference {
|
|
|
261
261
|
url: string;
|
|
262
262
|
}
|
|
263
263
|
export interface BoardRow {
|
|
264
|
+
color: string;
|
|
264
265
|
id: string;
|
|
265
266
|
name: string;
|
|
266
267
|
}
|
|
@@ -315,6 +316,10 @@ export interface CardFieldSettings {
|
|
|
315
316
|
* Flag indicating whether to show assigned to field on cards. When true, AssignedToDisplayFormat will determine how the field will be displayed
|
|
316
317
|
*/
|
|
317
318
|
showAssignedTo: boolean;
|
|
319
|
+
/**
|
|
320
|
+
* Flag indicating whether to show child rollup on cards
|
|
321
|
+
*/
|
|
322
|
+
showChildRollup: boolean;
|
|
318
323
|
/**
|
|
319
324
|
* Flag indicating whether to show empty fields on cards
|
|
320
325
|
*/
|
|
@@ -323,6 +328,10 @@ export interface CardFieldSettings {
|
|
|
323
328
|
* Flag indicating whether to show ID on cards
|
|
324
329
|
*/
|
|
325
330
|
showId: boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Flag indicating whether to show parent field on cards
|
|
333
|
+
*/
|
|
334
|
+
showParent: boolean;
|
|
326
335
|
/**
|
|
327
336
|
* Flag indicating whether to show state field on cards
|
|
328
337
|
*/
|
|
@@ -405,9 +414,13 @@ export interface DeliveryViewData extends PlanViewData {
|
|
|
405
414
|
*/
|
|
406
415
|
endDate: Date;
|
|
407
416
|
/**
|
|
408
|
-
* Max number of teams can be configured for a delivery plan
|
|
417
|
+
* Max number of teams that can be configured for a delivery plan
|
|
409
418
|
*/
|
|
410
419
|
maxExpandedTeams: number;
|
|
420
|
+
/**
|
|
421
|
+
* Mapping between parent id, title and all the child work item ids
|
|
422
|
+
*/
|
|
423
|
+
parentItemMaps: ParentChildWIMap[];
|
|
411
424
|
/**
|
|
412
425
|
* The start date for the delivery view data
|
|
413
426
|
*/
|
|
@@ -416,6 +429,14 @@ export interface DeliveryViewData extends PlanViewData {
|
|
|
416
429
|
* All the team data
|
|
417
430
|
*/
|
|
418
431
|
teams: TimelineTeamData[];
|
|
432
|
+
/**
|
|
433
|
+
* List of all work item ids that have a dependency but not a violation
|
|
434
|
+
*/
|
|
435
|
+
workItemDependencies: number[];
|
|
436
|
+
/**
|
|
437
|
+
* List of all work item ids that have a violation
|
|
438
|
+
*/
|
|
439
|
+
workItemViolations: number[];
|
|
419
440
|
}
|
|
420
441
|
/**
|
|
421
442
|
* Collection of properties, specific to the DeliveryTimelineView
|
|
@@ -433,6 +454,14 @@ export interface DeliveryViewPropertyCollection {
|
|
|
433
454
|
* Markers. Will be missing/null if there are no markers.
|
|
434
455
|
*/
|
|
435
456
|
markers: Marker[];
|
|
457
|
+
/**
|
|
458
|
+
* Card style settings
|
|
459
|
+
*/
|
|
460
|
+
styleSettings: Rule[];
|
|
461
|
+
/**
|
|
462
|
+
* tag style settings
|
|
463
|
+
*/
|
|
464
|
+
tagStyleSettings: Rule[];
|
|
436
465
|
/**
|
|
437
466
|
* Team backlog mappings
|
|
438
467
|
*/
|
|
@@ -516,6 +545,14 @@ export interface ITaskboardColumnMapping {
|
|
|
516
545
|
state: string;
|
|
517
546
|
workItemType: string;
|
|
518
547
|
}
|
|
548
|
+
/**
|
|
549
|
+
* Capacity and teams for all teams in an iteration
|
|
550
|
+
*/
|
|
551
|
+
export interface IterationCapacity {
|
|
552
|
+
teams: TeamCapacityTotals[];
|
|
553
|
+
totalIterationCapacityPerDay: number;
|
|
554
|
+
totalIterationDaysOff: number;
|
|
555
|
+
}
|
|
519
556
|
/**
|
|
520
557
|
* Represents work items in an iteration backlog
|
|
521
558
|
*/
|
|
@@ -553,6 +590,7 @@ export interface ParentChildWIMap {
|
|
|
553
590
|
childWorkItemIds: number[];
|
|
554
591
|
id: number;
|
|
555
592
|
title: string;
|
|
593
|
+
workItemTypeName: string;
|
|
556
594
|
}
|
|
557
595
|
/**
|
|
558
596
|
* Data contract for the plan definition
|
|
@@ -574,6 +612,10 @@ export interface Plan {
|
|
|
574
612
|
* Id of the plan
|
|
575
613
|
*/
|
|
576
614
|
id: string;
|
|
615
|
+
/**
|
|
616
|
+
* Date when the plan was last accessed. Default is null.
|
|
617
|
+
*/
|
|
618
|
+
lastAccessed: Date;
|
|
577
619
|
/**
|
|
578
620
|
* Identity that last modified this plan. Defaults to null for records before upgrading to ScaledAgileViewComponent4.
|
|
579
621
|
*/
|
|
@@ -849,6 +891,22 @@ export interface TeamBacklogMapping {
|
|
|
849
891
|
categoryReferenceName: string;
|
|
850
892
|
teamId: string;
|
|
851
893
|
}
|
|
894
|
+
/**
|
|
895
|
+
* Represents team member capacity with totals aggregated
|
|
896
|
+
*/
|
|
897
|
+
export interface TeamCapacity {
|
|
898
|
+
teamMembers: TeamMemberCapacityIdentityRef[];
|
|
899
|
+
totalCapacityPerDay: number;
|
|
900
|
+
totalDaysOff: number;
|
|
901
|
+
}
|
|
902
|
+
/**
|
|
903
|
+
* Team information with total capacity and days off
|
|
904
|
+
*/
|
|
905
|
+
export interface TeamCapacityTotals {
|
|
906
|
+
teamCapacityPerDay: number;
|
|
907
|
+
teamId: string;
|
|
908
|
+
teamTotalDaysOff: number;
|
|
909
|
+
}
|
|
852
910
|
/**
|
|
853
911
|
* Represents a single TeamFieldValue
|
|
854
912
|
*/
|
|
@@ -1066,10 +1124,15 @@ export interface TimelineTeamData {
|
|
|
1066
1124
|
* The field reference names of the partially paged work items, such as ID, WorkItemType
|
|
1067
1125
|
*/
|
|
1068
1126
|
partiallyPagedFieldReferenceNames: string[];
|
|
1127
|
+
partiallyPagedWorkItems: any[][];
|
|
1069
1128
|
/**
|
|
1070
1129
|
* The project id the team belongs team
|
|
1071
1130
|
*/
|
|
1072
1131
|
projectId: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* Work item types for which we will collect roll up data on the client side
|
|
1134
|
+
*/
|
|
1135
|
+
rollupWorkItemTypes: string[];
|
|
1073
1136
|
/**
|
|
1074
1137
|
* Status for this team.
|
|
1075
1138
|
*/
|
|
@@ -1086,6 +1149,10 @@ export interface TimelineTeamData {
|
|
|
1086
1149
|
* The team field values
|
|
1087
1150
|
*/
|
|
1088
1151
|
teamFieldValues: TeamFieldValue[];
|
|
1152
|
+
/**
|
|
1153
|
+
* Work items associated with the team that are not under any of the team's iterations
|
|
1154
|
+
*/
|
|
1155
|
+
workItems: any[][];
|
|
1089
1156
|
/**
|
|
1090
1157
|
* Colors for the work item types.
|
|
1091
1158
|
*/
|
package/Work/WorkClient.d.ts
CHANGED
|
@@ -112,12 +112,12 @@ export declare class WorkRestClient extends RestClientBase {
|
|
|
112
112
|
[key: string]: string;
|
|
113
113
|
}, teamContext: TfsCore.TeamContext, board: string): Promise<Work.BoardUserSettings>;
|
|
114
114
|
/**
|
|
115
|
-
* Get a team's capacity
|
|
115
|
+
* Get a team's capacity including total capacity and days off
|
|
116
116
|
*
|
|
117
117
|
* @param teamContext - The team context for the operation
|
|
118
118
|
* @param iterationId - ID of the iteration
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
getCapacitiesWithIdentityRefAndTotals(teamContext: TfsCore.TeamContext, iterationId: string): Promise<Work.TeamCapacity>;
|
|
121
121
|
/**
|
|
122
122
|
* Get a team member's capacity
|
|
123
123
|
*
|
|
@@ -236,6 +236,13 @@ export declare class WorkRestClient extends RestClientBase {
|
|
|
236
236
|
* @param endDate - The end date of timeline
|
|
237
237
|
*/
|
|
238
238
|
getDeliveryTimelineData(project: string, id: string, revision?: number, startDate?: Date, endDate?: Date): Promise<Work.DeliveryViewData>;
|
|
239
|
+
/**
|
|
240
|
+
* Get an iteration's capacity for all teams in iteration
|
|
241
|
+
*
|
|
242
|
+
* @param project - Project ID or project name
|
|
243
|
+
* @param iterationId - ID of the iteration
|
|
244
|
+
*/
|
|
245
|
+
getTotalIterationCapacities(project: string, iterationId: string): Promise<Work.IterationCapacity>;
|
|
239
246
|
/**
|
|
240
247
|
* Delete a team's iteration by iterationId
|
|
241
248
|
*
|
|
@@ -351,7 +358,7 @@ export declare class WorkRestClient extends RestClientBase {
|
|
|
351
358
|
/**
|
|
352
359
|
* Set a team's days off for an iteration
|
|
353
360
|
*
|
|
354
|
-
* @param daysOffPatch - Team's days off patch
|
|
361
|
+
* @param daysOffPatch - Team's days off patch containing a list of start and end dates
|
|
355
362
|
* @param teamContext - The team context for the operation
|
|
356
363
|
* @param iterationId - ID of the iteration
|
|
357
364
|
*/
|