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
|
@@ -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,s){function n(e){try{u(o.next(e))}catch(e){s(e)}}function a(e){try{u(o.throw(e))}catch(e){s(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(n,a)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=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(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,i,s,n,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createProcessBehavior=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:t},body:e})]})})},t.prototype.deleteProcessBehavior=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e,behaviorRefName:t}})]})})},t.prototype.getProcessBehavior=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expand:r},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e,behaviorRefName:t},queryParams:o})]})})},t.prototype.getProcessBehaviors=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e},queryParams:r})]})})},t.prototype.updateProcessBehavior=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:t,behaviorRefName:r},body:e})]})})},t.prototype.createControlInGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o},body:e})]})})},t.prototype.moveControlToGroup=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={removeFromGroupId:s},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o,controlId:i},queryParams:n,body:e})]})})},t.prototype.removeControlFromGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:e,witRefName:t,groupId:r,controlId:o}})]})})},t.prototype.updateControl=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o,controlId:i},body:e})]})})},t.prototype.addFieldToWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.getAllWorkItemTypeFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.getWorkItemTypeField=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={$expand:o},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t,fieldRefName:r},queryParams:i})]})})},t.prototype.removeWorkItemTypeField=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t,fieldRefName:r}})]})})},t.prototype.updateWorkItemTypeField=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:t,witRefName:r,fieldRefName:o},body:e})]})})},t.prototype.addGroup=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i},body:e})]})})},t.prototype.moveGroupToPage=function(e,t,r,o,i,s,n,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={removeFromPageId:n,removeFromSectionId:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},queryParams:u,body:e})]})})},t.prototype.moveGroupToSection=function(e,t,r,o,i,s,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={removeFromSectionId:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},queryParams:a,body:e})]})})},t.prototype.removeGroup=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:e,witRefName:t,pageId:r,sectionId:o,groupId:i}})]})})},t.prototype.updateGroup=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},body:e})]})})},t.prototype.getFormLayout=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.createList=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/lists/{listId}",body:e})]})})},t.prototype.deleteList=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"_apis/work/processes/lists/{listId}",routeValues:{listId:e}})]})})},t.prototype.getList=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/lists/{listId}",routeValues:{listId:e}})]})})},t.prototype.getListsMetadata=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/lists/{listId}"})]})})},t.prototype.updateList=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/lists/{listId}",routeValues:{listId:t},body:e})]})})},t.prototype.addPage=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.removePage=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:e,witRefName:t,pageId:r}})]})})},t.prototype.updatePage=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.createNewProcess=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processTypeId}",body:e})]})})},t.prototype.deleteProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:e}})]})})},t.prototype.editProcess=function(e,t){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:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:t},body:e})]})})},t.prototype.getListOfProcesses=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$expand:e},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processTypeId}",queryParams:t})]})})},t.prototype.getProcessByItsId=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:e},queryParams:r})]})})},t.prototype.addProcessWorkItemTypeRule=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.deleteProcessWorkItemTypeRule=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t,ruleId:r}})]})})},t.prototype.getProcessWorkItemTypeRule=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t,ruleId:r}})]})})},t.prototype.getProcessWorkItemTypeRules=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.updateProcessWorkItemTypeRule=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:t,witRefName:r,ruleId:o},body:e})]})})},t.prototype.createStateDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.deleteStateDefinition=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t,stateId:r}})]})})},t.prototype.getStateDefinition=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t,stateId:r}})]})})},t.prototype.getStateDefinitions=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.hideStateDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r,stateId:o},body:e})]})})},t.prototype.updateStateDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r,stateId:o},body:e})]})})},t.prototype.deleteSystemControl=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:e,witRefName:t,controlId:r}})]})})},t.prototype.getSystemControls=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.updateSystemControl=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:t,witRefName:r,controlId:o},body:e})]})})},t.prototype.createProcessWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:t},body:e})]})})},t.prototype.deleteProcessWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.getProcessWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expand:r},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e,witRefName:t},queryParams:o})]})})},t.prototype.getProcessWorkItemTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e},queryParams:r})]})})},t.prototype.updateProcessWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.addBehaviorToWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:t,witRefNameForBehaviors:r},body:e})]})})},t.prototype.getBehaviorForWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t,behaviorRefName:r}})]})})},t.prototype.getBehaviorsForWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t}})]})})},t.prototype.removeBehaviorFromWorkItemType=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t,behaviorRefName:r}})]})})},t.prototype.updateBehaviorToWorkItemType=function(e,t,r){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:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:t,witRefNameForBehaviors:r},body:e})]})})},t.RESOURCE_AREA_ID="5264459e-e5e0-4bd8-b118-0985e68a4ec5",t}(r.RestClientBase);t.WorkItemTrackingProcessRestClient=o});
|
|
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,s){function n(e){try{u(o.next(e))}catch(e){s(e)}}function a(e){try{u(o.throw(e))}catch(e){s(e)}}function u(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(n,a)}u((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(n){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(s=2&r[0]?i.return:r[0]?i.throw||((s=i.return)&&s.call(i),0):i.next)&&!(s=s.call(i,r[1])).done)return s;switch(i=0,s&&(r=[2&r[0],s.value]),r[0]){case 0:case 1:s=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(s=a.trys,!(s=s.length>0&&s[s.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!s||r[1]>s[0]&&r[1]<s[3])){a.label=r[1];break}if(6===r[0]&&a.label<s[1]){a.label=s[1],s=r;break}if(s&&a.label<s[2]){a.label=s[2],a.ops.push(r);break}s[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=s=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,i,s,n,a={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return n={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(n[Symbol.iterator]=function(){return this}),n};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.createProcessBehavior=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:t},body:e})]})})},t.prototype.deleteProcessBehavior=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e,behaviorRefName:t}})]})})},t.prototype.getProcessBehavior=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expand:r},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e,behaviorRefName:t},queryParams:o})]})})},t.prototype.getProcessBehaviors=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:e},queryParams:r})]})})},t.prototype.updateProcessBehavior=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.2",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/behaviors/{behaviorRefName}",routeValues:{processId:t,behaviorRefName:r},body:e})]})})},t.prototype.createControlInGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o},body:e})]})})},t.prototype.moveControlToGroup=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={removeFromGroupId:s},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o,controlId:i},queryParams:n,body:e})]})})},t.prototype.removeControlFromGroup=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:e,witRefName:t,groupId:r,controlId:o}})]})})},t.prototype.updateControl=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",routeValues:{processId:t,witRefName:r,groupId:o,controlId:i},body:e})]})})},t.prototype.addFieldToWorkItemType=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.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.getAllWorkItemTypeFields=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.getWorkItemTypeField=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={$expand:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t,fieldRefName:r},queryParams:i})]})})},t.prototype.removeWorkItemTypeField=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.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:e,witRefName:t,fieldRefName:r}})]})})},t.prototype.updateWorkItemTypeField=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",routeValues:{processId:t,witRefName:r,fieldRefName:o},body:e})]})})},t.prototype.addGroup=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i},body:e})]})})},t.prototype.moveGroupToPage=function(e,t,r,o,i,s,n,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(p){return u={removeFromPageId:n,removeFromSectionId:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},queryParams:u,body:e})]})})},t.prototype.moveGroupToSection=function(e,t,r,o,i,s,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={removeFromSectionId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},queryParams:a,body:e})]})})},t.prototype.removeGroup=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(s){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:e,witRefName:t,pageId:r,sectionId:o,groupId:i}})]})})},t.prototype.updateGroup=function(e,t,r,o,i,s){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",routeValues:{processId:t,witRefName:r,pageId:o,sectionId:i,groupId:s},body:e})]})})},t.prototype.getFormLayout=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/work/processes/{processId}/workItemTypes/{witRefName}/layout",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.createList=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:"POST",routeTemplate:"_apis/work/processes/lists/{listId}",body:e})]})})},t.prototype.deleteList=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/work/processes/lists/{listId}",routeValues:{listId:e}})]})})},t.prototype.getList=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/work/processes/lists/{listId}",routeValues:{listId:e}})]})})},t.prototype.getListsMetadata=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/work/processes/lists/{listId}"})]})})},t.prototype.updateList=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/work/processes/lists/{listId}",routeValues:{listId:t},body:e})]})})},t.prototype.addPage=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.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.removePage=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.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:e,witRefName:t,pageId:r}})]})})},t.prototype.updatePage=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.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.createNewProcess=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:"POST",routeTemplate:"_apis/work/processes/{processTypeId}",body:e})]})})},t.prototype.deleteProcessById=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:"DELETE",routeTemplate:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:e}})]})})},t.prototype.editProcess=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:t},body:e})]})})},t.prototype.getListOfProcesses=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={$expand:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processTypeId}",queryParams:t})]})})},t.prototype.getProcessByItsId=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processTypeId}",routeValues:{processTypeId:e},queryParams:r})]})})},t.prototype.addProcessWorkItemTypeRule=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.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.deleteProcessWorkItemTypeRule=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.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t,ruleId:r}})]})})},t.prototype.getProcessWorkItemTypeRule=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.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t,ruleId:r}})]})})},t.prototype.getProcessWorkItemTypeRules=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.updateProcessWorkItemTypeRule=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",routeValues:{processId:t,witRefName:r,ruleId:o},body:e})]})})},t.prototype.createStateDefinition=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.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.deleteStateDefinition=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.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t,stateId:r}})]})})},t.prototype.getStateDefinition=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.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t,stateId:r}})]})})},t.prototype.getStateDefinitions=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/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.hideStateDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r,stateId:o},body:e})]})})},t.prototype.updateStateDefinition=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",routeValues:{processId:t,witRefName:r,stateId:o},body:e})]})})},t.prototype.deleteSystemControl=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.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:e,witRefName:t,controlId:r}})]})})},t.prototype.getSystemControls=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/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.updateSystemControl=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(i){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",routeValues:{processId:t,witRefName:r,controlId:o},body:e})]})})},t.prototype.createProcessWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:t},body:e})]})})},t.prototype.deleteProcessWorkItemType=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e,witRefName:t}})]})})},t.prototype.getProcessWorkItemType=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expand:r},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e,witRefName:t},queryParams:o})]})})},t.prototype.getProcessWorkItemTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$expand:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:e},queryParams:r})]})})},t.prototype.updateProcessWorkItemType=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.2",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypes/{witRefName}",routeValues:{processId:t,witRefName:r},body:e})]})})},t.prototype.addBehaviorToWorkItemType=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.1",method:"POST",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:t,witRefNameForBehaviors:r},body:e})]})})},t.prototype.getBehaviorForWorkItemType=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.1",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t,behaviorRefName:r}})]})})},t.prototype.getBehaviorsForWorkItemType=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/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t}})]})})},t.prototype.removeBehaviorFromWorkItemType=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.1",method:"DELETE",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:e,witRefNameForBehaviors:t,behaviorRefName:r}})]})})},t.prototype.updateBehaviorToWorkItemType=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.1",method:"PATCH",routeTemplate:"_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",routeValues:{processId:t,witRefNameForBehaviors:r},body:e})]})})},t.RESOURCE_AREA_ID="5264459e-e5e0-4bd8-b118-0985e68a4ec5",t}(r.RestClientBase);t.WorkItemTrackingProcessRestClient=o});
|
|
@@ -465,6 +465,7 @@ export interface WorkItemStateResultModel {
|
|
|
465
465
|
export interface WorkItemTypeBehavior {
|
|
466
466
|
behavior: WorkItemBehaviorReference;
|
|
467
467
|
isDefault: boolean;
|
|
468
|
+
isLegacyDefault: boolean;
|
|
468
469
|
url: string;
|
|
469
470
|
}
|
|
470
471
|
/**
|
|
@@ -487,11 +488,12 @@ export interface WorkItemTypeFieldModel {
|
|
|
487
488
|
url: string;
|
|
488
489
|
}
|
|
489
490
|
/**
|
|
490
|
-
* New version of WorkItemTypeFieldModel supporting defaultValue as object (such as IdentityRef)
|
|
491
|
+
* New version of WorkItemTypeFieldModel supporting defaultValue as object (such as IdentityRef) and description
|
|
491
492
|
*/
|
|
492
493
|
export interface WorkItemTypeFieldModel2 {
|
|
493
494
|
allowGroups: boolean;
|
|
494
495
|
defaultValue: any;
|
|
496
|
+
description: string;
|
|
495
497
|
name: string;
|
|
496
498
|
pickList: PickListMetadataModel;
|
|
497
499
|
readOnly: boolean;
|
|
@@ -305,7 +305,7 @@ export declare class WorkItemTrackingProcessDefinitionsRestClient extends RestCl
|
|
|
305
305
|
*/
|
|
306
306
|
createWorkItemType(workItemType: WorkItemTrackingProcessDefinitions.WorkItemTypeModel, processId: string): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeModel>;
|
|
307
307
|
/**
|
|
308
|
-
* Removes a work
|
|
308
|
+
* Removes a work item type in the process.
|
|
309
309
|
*
|
|
310
310
|
* @param processId - The ID of the process
|
|
311
311
|
* @param witRefName - The reference name of the work item type
|
|
@@ -365,4 +365,12 @@ export declare class WorkItemTrackingProcessDefinitionsRestClient extends RestCl
|
|
|
365
365
|
* @param fieldRefName - The reference name of the field
|
|
366
366
|
*/
|
|
367
367
|
removeFieldFromWorkItemType(processId: string, witRefNameForFields: string, fieldRefName: string): Promise<void>;
|
|
368
|
+
/**
|
|
369
|
+
* Updates a single field in the scope of the given process and work item type.
|
|
370
|
+
*
|
|
371
|
+
* @param field - The model with which to update the field
|
|
372
|
+
* @param processId - The ID of the process
|
|
373
|
+
* @param witRefNameForFields - Work item type reference name for fields
|
|
374
|
+
*/
|
|
375
|
+
updateWorkItemTypeField(field: WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2, processId: string, witRefNameForFields: string): Promise<WorkItemTrackingProcessDefinitions.WorkItemTypeFieldModel2>;
|
|
368
376
|
}
|
|
@@ -66,7 +66,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
66
66
|
return __awaiter(this, void 0, void 0, function () {
|
|
67
67
|
return __generator(this, function (_a) {
|
|
68
68
|
return [2 /*return*/, this.beginRequest({
|
|
69
|
-
apiVersion: "
|
|
69
|
+
apiVersion: "7.1-preview.1",
|
|
70
70
|
method: "POST",
|
|
71
71
|
routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
|
|
72
72
|
routeValues: {
|
|
@@ -87,7 +87,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
87
87
|
return __awaiter(this, void 0, void 0, function () {
|
|
88
88
|
return __generator(this, function (_a) {
|
|
89
89
|
return [2 /*return*/, this.beginRequest({
|
|
90
|
-
apiVersion: "
|
|
90
|
+
apiVersion: "7.1-preview.1",
|
|
91
91
|
method: "DELETE",
|
|
92
92
|
routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
|
|
93
93
|
routeValues: {
|
|
@@ -108,7 +108,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
108
108
|
return __awaiter(this, void 0, void 0, function () {
|
|
109
109
|
return __generator(this, function (_a) {
|
|
110
110
|
return [2 /*return*/, this.beginRequest({
|
|
111
|
-
apiVersion: "
|
|
111
|
+
apiVersion: "7.1-preview.1",
|
|
112
112
|
routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
|
|
113
113
|
routeValues: {
|
|
114
114
|
processId: processId,
|
|
@@ -127,7 +127,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
127
127
|
return __awaiter(this, void 0, void 0, function () {
|
|
128
128
|
return __generator(this, function (_a) {
|
|
129
129
|
return [2 /*return*/, this.beginRequest({
|
|
130
|
-
apiVersion: "
|
|
130
|
+
apiVersion: "7.1-preview.1",
|
|
131
131
|
routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
|
|
132
132
|
routeValues: {
|
|
133
133
|
processId: processId
|
|
@@ -147,7 +147,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
147
147
|
return __awaiter(this, void 0, void 0, function () {
|
|
148
148
|
return __generator(this, function (_a) {
|
|
149
149
|
return [2 /*return*/, this.beginRequest({
|
|
150
|
-
apiVersion: "
|
|
150
|
+
apiVersion: "7.1-preview.1",
|
|
151
151
|
method: "PUT",
|
|
152
152
|
routeTemplate: "_apis/work/processDefinitions/{processId}/behaviors/{behaviorId}",
|
|
153
153
|
routeValues: {
|
|
@@ -171,7 +171,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
171
171
|
return __awaiter(this, void 0, void 0, function () {
|
|
172
172
|
return __generator(this, function (_a) {
|
|
173
173
|
return [2 /*return*/, this.beginRequest({
|
|
174
|
-
apiVersion: "
|
|
174
|
+
apiVersion: "7.1-preview.1",
|
|
175
175
|
method: "POST",
|
|
176
176
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
177
177
|
routeValues: {
|
|
@@ -197,7 +197,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
197
197
|
return __awaiter(this, void 0, void 0, function () {
|
|
198
198
|
return __generator(this, function (_a) {
|
|
199
199
|
return [2 /*return*/, this.beginRequest({
|
|
200
|
-
apiVersion: "
|
|
200
|
+
apiVersion: "7.1-preview.1",
|
|
201
201
|
method: "PATCH",
|
|
202
202
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
203
203
|
routeValues: {
|
|
@@ -223,7 +223,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
223
223
|
return __awaiter(this, void 0, void 0, function () {
|
|
224
224
|
return __generator(this, function (_a) {
|
|
225
225
|
return [2 /*return*/, this.beginRequest({
|
|
226
|
-
apiVersion: "
|
|
226
|
+
apiVersion: "7.1-preview.1",
|
|
227
227
|
method: "DELETE",
|
|
228
228
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
229
229
|
routeValues: {
|
|
@@ -254,7 +254,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
254
254
|
removeFromGroupId: removeFromGroupId
|
|
255
255
|
};
|
|
256
256
|
return [2 /*return*/, this.beginRequest({
|
|
257
|
-
apiVersion: "
|
|
257
|
+
apiVersion: "7.1-preview.1",
|
|
258
258
|
method: "PUT",
|
|
259
259
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
260
260
|
routeValues: {
|
|
@@ -279,7 +279,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
279
279
|
return __awaiter(this, void 0, void 0, function () {
|
|
280
280
|
return __generator(this, function (_a) {
|
|
281
281
|
return [2 /*return*/, this.beginRequest({
|
|
282
|
-
apiVersion: "
|
|
282
|
+
apiVersion: "7.1-preview.1",
|
|
283
283
|
method: "POST",
|
|
284
284
|
routeTemplate: "_apis/work/processDefinitions/{processId}/fields/{field}",
|
|
285
285
|
routeValues: {
|
|
@@ -300,7 +300,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
300
300
|
return __awaiter(this, void 0, void 0, function () {
|
|
301
301
|
return __generator(this, function (_a) {
|
|
302
302
|
return [2 /*return*/, this.beginRequest({
|
|
303
|
-
apiVersion: "
|
|
303
|
+
apiVersion: "7.1-preview.1",
|
|
304
304
|
method: "PATCH",
|
|
305
305
|
routeTemplate: "_apis/work/processDefinitions/{processId}/fields/{field}",
|
|
306
306
|
routeValues: {
|
|
@@ -324,7 +324,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
324
324
|
return __awaiter(this, void 0, void 0, function () {
|
|
325
325
|
return __generator(this, function (_a) {
|
|
326
326
|
return [2 /*return*/, this.beginRequest({
|
|
327
|
-
apiVersion: "
|
|
327
|
+
apiVersion: "7.1-preview.1",
|
|
328
328
|
method: "POST",
|
|
329
329
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
330
330
|
routeValues: {
|
|
@@ -352,7 +352,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
352
352
|
return __awaiter(this, void 0, void 0, function () {
|
|
353
353
|
return __generator(this, function (_a) {
|
|
354
354
|
return [2 /*return*/, this.beginRequest({
|
|
355
|
-
apiVersion: "
|
|
355
|
+
apiVersion: "7.1-preview.1",
|
|
356
356
|
method: "PATCH",
|
|
357
357
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
358
358
|
routeValues: {
|
|
@@ -380,7 +380,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
380
380
|
return __awaiter(this, void 0, void 0, function () {
|
|
381
381
|
return __generator(this, function (_a) {
|
|
382
382
|
return [2 /*return*/, this.beginRequest({
|
|
383
|
-
apiVersion: "
|
|
383
|
+
apiVersion: "7.1-preview.1",
|
|
384
384
|
method: "DELETE",
|
|
385
385
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
386
386
|
routeValues: {
|
|
@@ -415,7 +415,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
415
415
|
removeFromSectionId: removeFromSectionId
|
|
416
416
|
};
|
|
417
417
|
return [2 /*return*/, this.beginRequest({
|
|
418
|
-
apiVersion: "
|
|
418
|
+
apiVersion: "7.1-preview.1",
|
|
419
419
|
method: "PUT",
|
|
420
420
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
421
421
|
routeValues: {
|
|
@@ -450,7 +450,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
450
450
|
removeFromSectionId: removeFromSectionId
|
|
451
451
|
};
|
|
452
452
|
return [2 /*return*/, this.beginRequest({
|
|
453
|
-
apiVersion: "
|
|
453
|
+
apiVersion: "7.1-preview.1",
|
|
454
454
|
method: "PUT",
|
|
455
455
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
456
456
|
routeValues: {
|
|
@@ -476,7 +476,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
476
476
|
return __awaiter(this, void 0, void 0, function () {
|
|
477
477
|
return __generator(this, function (_a) {
|
|
478
478
|
return [2 /*return*/, this.beginRequest({
|
|
479
|
-
apiVersion: "
|
|
479
|
+
apiVersion: "7.1-preview.1",
|
|
480
480
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout",
|
|
481
481
|
routeValues: {
|
|
482
482
|
processId: processId,
|
|
@@ -494,7 +494,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
494
494
|
return __awaiter(this, void 0, void 0, function () {
|
|
495
495
|
return __generator(this, function (_a) {
|
|
496
496
|
return [2 /*return*/, this.beginRequest({
|
|
497
|
-
apiVersion: "
|
|
497
|
+
apiVersion: "7.1-preview.1",
|
|
498
498
|
routeTemplate: "_apis/work/processDefinitions/lists"
|
|
499
499
|
})];
|
|
500
500
|
});
|
|
@@ -509,7 +509,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
509
509
|
return __awaiter(this, void 0, void 0, function () {
|
|
510
510
|
return __generator(this, function (_a) {
|
|
511
511
|
return [2 /*return*/, this.beginRequest({
|
|
512
|
-
apiVersion: "
|
|
512
|
+
apiVersion: "7.1-preview.1",
|
|
513
513
|
method: "POST",
|
|
514
514
|
routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
|
|
515
515
|
body: picklist
|
|
@@ -526,7 +526,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
526
526
|
return __awaiter(this, void 0, void 0, function () {
|
|
527
527
|
return __generator(this, function (_a) {
|
|
528
528
|
return [2 /*return*/, this.beginRequest({
|
|
529
|
-
apiVersion: "
|
|
529
|
+
apiVersion: "7.1-preview.1",
|
|
530
530
|
method: "DELETE",
|
|
531
531
|
routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
|
|
532
532
|
routeValues: {
|
|
@@ -545,7 +545,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
545
545
|
return __awaiter(this, void 0, void 0, function () {
|
|
546
546
|
return __generator(this, function (_a) {
|
|
547
547
|
return [2 /*return*/, this.beginRequest({
|
|
548
|
-
apiVersion: "
|
|
548
|
+
apiVersion: "7.1-preview.1",
|
|
549
549
|
routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
|
|
550
550
|
routeValues: {
|
|
551
551
|
listId: listId
|
|
@@ -564,7 +564,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
564
564
|
return __awaiter(this, void 0, void 0, function () {
|
|
565
565
|
return __generator(this, function (_a) {
|
|
566
566
|
return [2 /*return*/, this.beginRequest({
|
|
567
|
-
apiVersion: "
|
|
567
|
+
apiVersion: "7.1-preview.1",
|
|
568
568
|
method: "PUT",
|
|
569
569
|
routeTemplate: "_apis/work/processDefinitions/lists/{listId}",
|
|
570
570
|
routeValues: {
|
|
@@ -586,7 +586,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
586
586
|
return __awaiter(this, void 0, void 0, function () {
|
|
587
587
|
return __generator(this, function (_a) {
|
|
588
588
|
return [2 /*return*/, this.beginRequest({
|
|
589
|
-
apiVersion: "
|
|
589
|
+
apiVersion: "7.1-preview.1",
|
|
590
590
|
method: "POST",
|
|
591
591
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
592
592
|
routeValues: {
|
|
@@ -609,7 +609,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
609
609
|
return __awaiter(this, void 0, void 0, function () {
|
|
610
610
|
return __generator(this, function (_a) {
|
|
611
611
|
return [2 /*return*/, this.beginRequest({
|
|
612
|
-
apiVersion: "
|
|
612
|
+
apiVersion: "7.1-preview.1",
|
|
613
613
|
method: "PATCH",
|
|
614
614
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
615
615
|
routeValues: {
|
|
@@ -632,7 +632,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
632
632
|
return __awaiter(this, void 0, void 0, function () {
|
|
633
633
|
return __generator(this, function (_a) {
|
|
634
634
|
return [2 /*return*/, this.beginRequest({
|
|
635
|
-
apiVersion: "
|
|
635
|
+
apiVersion: "7.1-preview.1",
|
|
636
636
|
method: "DELETE",
|
|
637
637
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
638
638
|
routeValues: {
|
|
@@ -655,7 +655,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
655
655
|
return __awaiter(this, void 0, void 0, function () {
|
|
656
656
|
return __generator(this, function (_a) {
|
|
657
657
|
return [2 /*return*/, this.beginRequest({
|
|
658
|
-
apiVersion: "
|
|
658
|
+
apiVersion: "7.1-preview.1",
|
|
659
659
|
method: "POST",
|
|
660
660
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
661
661
|
routeValues: {
|
|
@@ -678,7 +678,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
678
678
|
return __awaiter(this, void 0, void 0, function () {
|
|
679
679
|
return __generator(this, function (_a) {
|
|
680
680
|
return [2 /*return*/, this.beginRequest({
|
|
681
|
-
apiVersion: "
|
|
681
|
+
apiVersion: "7.1-preview.1",
|
|
682
682
|
method: "DELETE",
|
|
683
683
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
684
684
|
routeValues: {
|
|
@@ -701,7 +701,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
701
701
|
return __awaiter(this, void 0, void 0, function () {
|
|
702
702
|
return __generator(this, function (_a) {
|
|
703
703
|
return [2 /*return*/, this.beginRequest({
|
|
704
|
-
apiVersion: "
|
|
704
|
+
apiVersion: "7.1-preview.1",
|
|
705
705
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
706
706
|
routeValues: {
|
|
707
707
|
processId: processId,
|
|
@@ -722,7 +722,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
722
722
|
return __awaiter(this, void 0, void 0, function () {
|
|
723
723
|
return __generator(this, function (_a) {
|
|
724
724
|
return [2 /*return*/, this.beginRequest({
|
|
725
|
-
apiVersion: "
|
|
725
|
+
apiVersion: "7.1-preview.1",
|
|
726
726
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
727
727
|
routeValues: {
|
|
728
728
|
processId: processId,
|
|
@@ -744,7 +744,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
744
744
|
return __awaiter(this, void 0, void 0, function () {
|
|
745
745
|
return __generator(this, function (_a) {
|
|
746
746
|
return [2 /*return*/, this.beginRequest({
|
|
747
|
-
apiVersion: "
|
|
747
|
+
apiVersion: "7.1-preview.1",
|
|
748
748
|
method: "PUT",
|
|
749
749
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
750
750
|
routeValues: {
|
|
@@ -769,7 +769,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
769
769
|
return __awaiter(this, void 0, void 0, function () {
|
|
770
770
|
return __generator(this, function (_a) {
|
|
771
771
|
return [2 /*return*/, this.beginRequest({
|
|
772
|
-
apiVersion: "
|
|
772
|
+
apiVersion: "7.1-preview.1",
|
|
773
773
|
method: "PATCH",
|
|
774
774
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
775
775
|
routeValues: {
|
|
@@ -793,7 +793,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
793
793
|
return __awaiter(this, void 0, void 0, function () {
|
|
794
794
|
return __generator(this, function (_a) {
|
|
795
795
|
return [2 /*return*/, this.beginRequest({
|
|
796
|
-
apiVersion: "
|
|
796
|
+
apiVersion: "7.1-preview.1",
|
|
797
797
|
method: "POST",
|
|
798
798
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
799
799
|
routeValues: {
|
|
@@ -816,7 +816,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
816
816
|
return __awaiter(this, void 0, void 0, function () {
|
|
817
817
|
return __generator(this, function (_a) {
|
|
818
818
|
return [2 /*return*/, this.beginRequest({
|
|
819
|
-
apiVersion: "
|
|
819
|
+
apiVersion: "7.1-preview.1",
|
|
820
820
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
821
821
|
routeValues: {
|
|
822
822
|
processId: processId,
|
|
@@ -837,7 +837,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
837
837
|
return __awaiter(this, void 0, void 0, function () {
|
|
838
838
|
return __generator(this, function (_a) {
|
|
839
839
|
return [2 /*return*/, this.beginRequest({
|
|
840
|
-
apiVersion: "
|
|
840
|
+
apiVersion: "7.1-preview.1",
|
|
841
841
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
842
842
|
routeValues: {
|
|
843
843
|
processId: processId,
|
|
@@ -858,7 +858,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
858
858
|
return __awaiter(this, void 0, void 0, function () {
|
|
859
859
|
return __generator(this, function (_a) {
|
|
860
860
|
return [2 /*return*/, this.beginRequest({
|
|
861
|
-
apiVersion: "
|
|
861
|
+
apiVersion: "7.1-preview.1",
|
|
862
862
|
method: "DELETE",
|
|
863
863
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
864
864
|
routeValues: {
|
|
@@ -881,7 +881,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
881
881
|
return __awaiter(this, void 0, void 0, function () {
|
|
882
882
|
return __generator(this, function (_a) {
|
|
883
883
|
return [2 /*return*/, this.beginRequest({
|
|
884
|
-
apiVersion: "
|
|
884
|
+
apiVersion: "7.1-preview.1",
|
|
885
885
|
method: "PATCH",
|
|
886
886
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
887
887
|
routeValues: {
|
|
@@ -903,7 +903,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
903
903
|
return __awaiter(this, void 0, void 0, function () {
|
|
904
904
|
return __generator(this, function (_a) {
|
|
905
905
|
return [2 /*return*/, this.beginRequest({
|
|
906
|
-
apiVersion: "
|
|
906
|
+
apiVersion: "7.1-preview.1",
|
|
907
907
|
method: "POST",
|
|
908
908
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
|
|
909
909
|
routeValues: {
|
|
@@ -915,7 +915,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
915
915
|
});
|
|
916
916
|
};
|
|
917
917
|
/**
|
|
918
|
-
* Removes a work
|
|
918
|
+
* Removes a work item type in the process.
|
|
919
919
|
*
|
|
920
920
|
* @param processId - The ID of the process
|
|
921
921
|
* @param witRefName - The reference name of the work item type
|
|
@@ -924,7 +924,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
924
924
|
return __awaiter(this, void 0, void 0, function () {
|
|
925
925
|
return __generator(this, function (_a) {
|
|
926
926
|
return [2 /*return*/, this.beginRequest({
|
|
927
|
-
apiVersion: "
|
|
927
|
+
apiVersion: "7.1-preview.1",
|
|
928
928
|
method: "DELETE",
|
|
929
929
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
|
|
930
930
|
routeValues: {
|
|
@@ -950,7 +950,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
950
950
|
'$expand': expand
|
|
951
951
|
};
|
|
952
952
|
return [2 /*return*/, this.beginRequest({
|
|
953
|
-
apiVersion: "
|
|
953
|
+
apiVersion: "7.1-preview.1",
|
|
954
954
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
|
|
955
955
|
routeValues: {
|
|
956
956
|
processId: processId,
|
|
@@ -975,7 +975,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
975
975
|
'$expand': expand
|
|
976
976
|
};
|
|
977
977
|
return [2 /*return*/, this.beginRequest({
|
|
978
|
-
apiVersion: "
|
|
978
|
+
apiVersion: "7.1-preview.1",
|
|
979
979
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
|
|
980
980
|
routeValues: {
|
|
981
981
|
processId: processId
|
|
@@ -996,7 +996,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
996
996
|
return __awaiter(this, void 0, void 0, function () {
|
|
997
997
|
return __generator(this, function (_a) {
|
|
998
998
|
return [2 /*return*/, this.beginRequest({
|
|
999
|
-
apiVersion: "
|
|
999
|
+
apiVersion: "7.1-preview.1",
|
|
1000
1000
|
method: "PATCH",
|
|
1001
1001
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefName}",
|
|
1002
1002
|
routeValues: {
|
|
@@ -1019,7 +1019,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1019
1019
|
return __awaiter(this, void 0, void 0, function () {
|
|
1020
1020
|
return __generator(this, function (_a) {
|
|
1021
1021
|
return [2 /*return*/, this.beginRequest({
|
|
1022
|
-
apiVersion: "
|
|
1022
|
+
apiVersion: "7.1-preview.1",
|
|
1023
1023
|
method: "POST",
|
|
1024
1024
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
|
|
1025
1025
|
routeValues: {
|
|
@@ -1042,7 +1042,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1042
1042
|
return __awaiter(this, void 0, void 0, function () {
|
|
1043
1043
|
return __generator(this, function (_a) {
|
|
1044
1044
|
return [2 /*return*/, this.beginRequest({
|
|
1045
|
-
apiVersion: "
|
|
1045
|
+
apiVersion: "7.1-preview.1",
|
|
1046
1046
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
|
|
1047
1047
|
routeValues: {
|
|
1048
1048
|
processId: processId,
|
|
@@ -1063,7 +1063,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1063
1063
|
return __awaiter(this, void 0, void 0, function () {
|
|
1064
1064
|
return __generator(this, function (_a) {
|
|
1065
1065
|
return [2 /*return*/, this.beginRequest({
|
|
1066
|
-
apiVersion: "
|
|
1066
|
+
apiVersion: "7.1-preview.1",
|
|
1067
1067
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
|
|
1068
1068
|
routeValues: {
|
|
1069
1069
|
processId: processId,
|
|
@@ -1084,7 +1084,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1084
1084
|
return __awaiter(this, void 0, void 0, function () {
|
|
1085
1085
|
return __generator(this, function (_a) {
|
|
1086
1086
|
return [2 /*return*/, this.beginRequest({
|
|
1087
|
-
apiVersion: "
|
|
1087
|
+
apiVersion: "7.1-preview.1",
|
|
1088
1088
|
method: "DELETE",
|
|
1089
1089
|
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
|
|
1090
1090
|
routeValues: {
|
|
@@ -1096,6 +1096,29 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
1096
1096
|
});
|
|
1097
1097
|
});
|
|
1098
1098
|
};
|
|
1099
|
+
/**
|
|
1100
|
+
* Updates a single field in the scope of the given process and work item type.
|
|
1101
|
+
*
|
|
1102
|
+
* @param field - The model with which to update the field
|
|
1103
|
+
* @param processId - The ID of the process
|
|
1104
|
+
* @param witRefNameForFields - Work item type reference name for fields
|
|
1105
|
+
*/
|
|
1106
|
+
WorkItemTrackingProcessDefinitionsRestClient.prototype.updateWorkItemTypeField = function (field, processId, witRefNameForFields) {
|
|
1107
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1108
|
+
return __generator(this, function (_a) {
|
|
1109
|
+
return [2 /*return*/, this.beginRequest({
|
|
1110
|
+
apiVersion: "7.1-preview.1",
|
|
1111
|
+
method: "PATCH",
|
|
1112
|
+
routeTemplate: "_apis/work/processDefinitions/{processId}/workItemTypes/{witRefNameForFields}/fields/{fieldRefName}",
|
|
1113
|
+
routeValues: {
|
|
1114
|
+
processId: processId,
|
|
1115
|
+
witRefNameForFields: witRefNameForFields
|
|
1116
|
+
},
|
|
1117
|
+
body: field
|
|
1118
|
+
})];
|
|
1119
|
+
});
|
|
1120
|
+
});
|
|
1121
|
+
};
|
|
1099
1122
|
WorkItemTrackingProcessDefinitionsRestClient.RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
|
|
1100
1123
|
return WorkItemTrackingProcessDefinitionsRestClient;
|
|
1101
1124
|
}(RestClientBase_1.RestClientBase));
|