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.
Files changed (146) hide show
  1. package/Accounts/AccountsClient.d.ts +1 -1
  2. package/Accounts/AccountsClient.js +4 -4
  3. package/Accounts/AccountsClient.min.js +1 -1
  4. package/Build/Build.d.ts +205 -3
  5. package/Build/Build.js +6 -2
  6. package/Build/Build.min.js +1 -1
  7. package/Build/BuildClient.d.ts +121 -13
  8. package/Build/BuildClient.js +468 -101
  9. package/Build/BuildClient.min.js +1 -1
  10. package/Contributions/Contributions.d.ts +1 -1
  11. package/Contributions/ContributionsClient.js +4 -4
  12. package/Contributions/ContributionsClient.min.js +1 -1
  13. package/Core/CoreClient.d.ts +2 -2
  14. package/Core/CoreClient.js +49 -36
  15. package/Core/CoreClient.min.js +1 -1
  16. package/Dashboard/Dashboard.d.ts +79 -2
  17. package/Dashboard/Dashboard.js +10 -0
  18. package/Dashboard/Dashboard.min.js +1 -1
  19. package/Dashboard/DashboardClient.d.ts +2 -2
  20. package/Dashboard/DashboardClient.js +15 -15
  21. package/Dashboard/DashboardClient.min.js +1 -1
  22. package/ExtensionManagement/ExtensionManagement.d.ts +2 -2
  23. package/ExtensionManagement/ExtensionManagementClient.d.ts +2 -2
  24. package/ExtensionManagement/ExtensionManagementClient.js +27 -27
  25. package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
  26. package/Favorite/Favorite.d.ts +124 -0
  27. package/Favorite/Favorite.js +9 -0
  28. package/Favorite/Favorite.min.js +1 -0
  29. package/Favorite/FavoriteClient.d.ts +78 -0
  30. package/Favorite/FavoriteClient.js +314 -0
  31. package/Favorite/FavoriteClient.min.js +1 -0
  32. package/FeatureAvailability/FeatureAvailabilityClient.js +5 -5
  33. package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
  34. package/FeatureManagement/FeatureManagementClient.js +9 -9
  35. package/FeatureManagement/FeatureManagementClient.min.js +1 -1
  36. package/FileContainer/FileContainer.d.ts +22 -0
  37. package/FileContainer/FileContainer.js +8 -0
  38. package/FileContainer/FileContainer.min.js +1 -1
  39. package/FileContainer/FileContainerClient.d.ts +5 -2
  40. package/FileContainer/FileContainerClient.js +13 -7
  41. package/FileContainer/FileContainerClient.min.js +1 -1
  42. package/FormInput/FormInput.d.ts +1 -1
  43. package/Gallery/Gallery.d.ts +92 -7
  44. package/Gallery/Gallery.js +25 -3
  45. package/Gallery/Gallery.min.js +1 -1
  46. package/Gallery/GalleryClient.d.ts +41 -9
  47. package/Gallery/GalleryClient.js +211 -90
  48. package/Gallery/GalleryClient.min.js +1 -1
  49. package/Git/Git.d.ts +121 -7
  50. package/Git/Git.js +2 -1
  51. package/Git/Git.min.js +1 -1
  52. package/Git/GitClient.d.ts +182 -28
  53. package/Git/GitClient.js +657 -162
  54. package/Git/GitClient.min.js +1 -1
  55. package/Graph/Graph.d.ts +107 -17
  56. package/Graph/GraphClient.d.ts +42 -3
  57. package/Graph/GraphClient.js +159 -38
  58. package/Graph/GraphClient.min.js +1 -1
  59. package/Identities/Identities.d.ts +15 -0
  60. package/Locations/LocationsClient.js +9 -9
  61. package/Locations/LocationsClient.min.js +1 -1
  62. package/Notification/Notification.d.ts +3 -3
  63. package/Notification/NotificationClient.d.ts +6 -0
  64. package/Notification/NotificationClient.js +40 -23
  65. package/Notification/NotificationClient.min.js +1 -1
  66. package/Operations/OperationsClient.d.ts +1 -1
  67. package/Operations/OperationsClient.js +2 -2
  68. package/Operations/OperationsClient.min.js +1 -1
  69. package/Pipelines/Pipelines.d.ts +318 -0
  70. package/Pipelines/Pipelines.js +82 -0
  71. package/Pipelines/Pipelines.min.js +1 -0
  72. package/Pipelines/PipelinesClient.d.ts +92 -0
  73. package/Pipelines/PipelinesClient.js +325 -0
  74. package/Pipelines/PipelinesClient.min.js +1 -0
  75. package/Policy/Policy.d.ts +4 -0
  76. package/Policy/PolicyClient.d.ts +3 -3
  77. package/Policy/PolicyClient.js +30 -19
  78. package/Policy/PolicyClient.min.js +1 -1
  79. package/Profile/ProfileClient.js +12 -12
  80. package/Profile/ProfileClient.min.js +1 -1
  81. package/ProjectAnalysis/ProjectAnalysisClient.js +4 -4
  82. package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
  83. package/Release/Release.d.ts +81 -7
  84. package/Release/Release.js +11 -0
  85. package/Release/Release.min.js +1 -1
  86. package/Release/ReleaseClient.d.ts +31 -5
  87. package/Release/ReleaseClient.js +223 -95
  88. package/Release/ReleaseClient.min.js +1 -1
  89. package/ServiceEndpoint/ServiceEndpoint.d.ts +11 -2
  90. package/ServiceEndpoint/ServiceEndpoint.js +1 -0
  91. package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
  92. package/ServiceEndpoint/ServiceEndpointClient.d.ts +33 -31
  93. package/ServiceEndpoint/ServiceEndpointClient.js +122 -107
  94. package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
  95. package/ServiceHooks/ServiceHooks.d.ts +2 -1
  96. package/ServiceHooks/ServiceHooksClient.js +23 -23
  97. package/ServiceHooks/ServiceHooksClient.min.js +1 -1
  98. package/TaskAgent/TaskAgent.d.ts +740 -17
  99. package/TaskAgent/TaskAgent.js +133 -0
  100. package/TaskAgent/TaskAgent.min.js +1 -1
  101. package/TaskAgent/TaskAgentClient.d.ts +28 -16
  102. package/TaskAgent/TaskAgentClient.js +336 -195
  103. package/TaskAgent/TaskAgentClient.min.js +1 -1
  104. package/Test/Test.d.ts +96 -25
  105. package/Test/Test.js +8 -0
  106. package/Test/Test.min.js +1 -1
  107. package/Test/TestClient.d.ts +17 -34
  108. package/Test/TestClient.js +163 -152
  109. package/Test/TestClient.min.js +1 -1
  110. package/TestPlan/TestPlan.d.ts +215 -18
  111. package/TestPlan/TestPlan.js +47 -1
  112. package/TestPlan/TestPlan.min.js +1 -1
  113. package/TestPlan/TestPlanClient.d.ts +48 -14
  114. package/TestPlan/TestPlanClient.js +255 -74
  115. package/TestPlan/TestPlanClient.min.js +1 -1
  116. package/TestResults/TestResultsClient.d.ts +112 -27
  117. package/TestResults/TestResultsClient.js +518 -134
  118. package/TestResults/TestResultsClient.min.js +1 -1
  119. package/Tfvc/Tfvc.d.ts +9 -1
  120. package/Tfvc/TfvcClient.d.ts +3 -2
  121. package/Tfvc/TfvcClient.js +41 -28
  122. package/Tfvc/TfvcClient.min.js +1 -1
  123. package/WebApi/WebApi.d.ts +22 -3
  124. package/Wiki/Wiki.d.ts +51 -0
  125. package/Wiki/WikiClient.d.ts +18 -0
  126. package/Wiki/WikiClient.js +71 -1
  127. package/Wiki/WikiClient.min.js +1 -1
  128. package/Work/Work.d.ts +68 -1
  129. package/Work/WorkClient.d.ts +10 -3
  130. package/Work/WorkClient.js +78 -58
  131. package/Work/WorkClient.min.js +1 -1
  132. package/WorkItemTracking/WorkItemTracking.d.ts +221 -1
  133. package/WorkItemTracking/WorkItemTrackingClient.d.ts +18 -2
  134. package/WorkItemTracking/WorkItemTrackingClient.js +107 -60
  135. package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
  136. package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +15 -2
  137. package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +4 -0
  138. package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
  139. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +1 -1
  140. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +58 -58
  141. package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
  142. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +3 -1
  143. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +9 -1
  144. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +69 -46
  145. package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
  146. 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,n){function u(e){try{s(o.next(e))}catch(e){n(e)}}function a(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,a)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase"],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.removeProjectAvatar=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/projects/{projectId}/avatar",routeValues:{projectId:e}})]})})},t.prototype.setProjectAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:t},body:e})]})})},t.prototype.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"5.2-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={stateFilter:e,$top:t,$skip:r,continuationToken:o,getDefaultTeamImageUrl:i},[2,this.beginRequest({apiVersion:"5.2-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:n})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectsProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectIds:e&&e.join(","),properties:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/projectsproperties",queryParams:r})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:e,$top:t,$skip:r,$expandIdentity:o},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"_apis/teams",queryParams:i})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expandIdentity:r},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t},queryParams:o})]})})},t.prototype.getTeams=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$mine:t,$top:r,$skip:o,$expandIdentity:i},[2,this.beginRequest({apiVersion:"5.2-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:n})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.3",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=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,n){function u(e){try{s(o.next(e))}catch(e){n(e)}}function a(e){try{s(o.throw(e))}catch(e){n(e)}}function s(e){e.done?i(e.value):new r(function(t){t(e.value)}).then(u,a)}s((o=o.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;a;)try{if(o=1,i&&(n=2&r[0]?i.return:r[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,r[1])).done)return n;switch(i=0,n&&(r=[2&r[0],n.value]),r[0]){case 0:case 1:n=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){a.label=r[1];break}if(6===r[0]&&a.label<n[1]){a.label=n[1],n=r;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(r);break}n[2]&&a.ops.pop(),a.trys.pop();continue}r=t.call(e,a)}catch(e){r=[6,e],i=0}finally{o=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var o,i,n,u,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return u={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,r,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.removeProjectAvatar=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:e}})]})})},t.prototype.setProjectAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/projects/{projectId}/avatar",routeValues:{projectId:t},body:e})]})})},t.prototype.createConnectedService=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:t},body:e})]})})},t.prototype.getConnectedServiceDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e,name:t}})]})})},t.prototype.getConnectedServices=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={kind:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/connectedServices/{name}",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.createIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.deleteIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t}})]})})},t.prototype.getIdentityMru=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:e}})]})})},t.prototype.updateIdentityMru=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/core/identityMru/{mruName}",routeValues:{mruName:t},body:e})]})})},t.prototype.getTeamMembersWithExtendedProperties=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$top:r,$skip:o},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projects/{projectId}/teams/{teamId}/members",routeValues:{projectId:e,teamId:t},queryParams:i})]})})},t.prototype.getProcessById=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}",routeValues:{processId:e}})]})})},t.prototype.getProcesses=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/process/processes/{*processId}"})]})})},t.prototype.getProjectCollection=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",routeValues:{collectionId:e}})]})})},t.prototype.getProjectCollections=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$top:e,$skip:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectCollections/{collectionId}",queryParams:r})]})})},t.prototype.getProjectHistoryEntries=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={minRevision:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/projectHistory",queryParams:t})]})})},t.prototype.getProject=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={includeCapabilities:t,includeHistory:r},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e},queryParams:o})]})})},t.prototype.getProjects=function(e,t,r,i,n){return __awaiter(this,void 0,void 0,function(){var u,a=this;return __generator(this,function(s){return u={stateFilter:e,$top:t,$skip:r,continuationToken:i,getDefaultTeamImageUrl:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"_apis/projects/{*projectId}",queryParams:u,returnRawResponse:!0}).then(function(e){return __awaiter(a,void 0,void 0,function(){var t;return __generator(this,function(r){switch(r.label){case 0:return[4,e.text().then(o.deserializeVssJsonObject)];case 1:return t=r.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.queueCreateProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"POST",routeTemplate:"_apis/projects/{*projectId}",body:e})]})})},t.prototype.queueDeleteProject=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"DELETE",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:e}})]})})},t.prototype.updateProject=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PATCH",routeTemplate:"_apis/projects/{*projectId}",routeValues:{projectId:t},body:e})]})})},t.prototype.getProjectsProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={projectIds:e&&e.join(","),properties:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projectsproperties",queryParams:r})]})})},t.prototype.getProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={keys:t&&t.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},queryParams:r})]})})},t.prototype.setProjectProperties=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/properties",routeValues:{projectId:e},customHeaders:{"Content-Type":"application/json-patch+json"},body:t})]})})},t.prototype.createOrUpdateProxy=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PUT",routeTemplate:"_apis/proxies",body:e})]})})},t.prototype.deleteProxy=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={proxyUrl:e,site:t},[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"_apis/proxies",queryParams:r})]})})},t.prototype.getProxies=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={proxyUrl:e},[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"_apis/proxies",queryParams:t})]})})},t.prototype.getAllTeams=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(n){return i={$mine:e,$top:t,$skip:r,$expandIdentity:o},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/teams",queryParams:i})]})})},t.prototype.createTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t},body:e})]})})},t.prototype.deleteTeam=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t}})]})})},t.prototype.getTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={$expandIdentity:r},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e,teamId:t},queryParams:o})]})})},t.prototype.getTeams=function(e,t,r,o,i){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={$mine:t,$top:r,$skip:o,$expandIdentity:i},[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:e},queryParams:n})]})})},t.prototype.updateTeam=function(e,t,r){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PATCH",routeTemplate:"_apis/projects/{projectId}/teams/{*teamId}",routeValues:{projectId:t,teamId:r},body:e})]})})},t.RESOURCE_AREA_ID="79134c72-4a58-4b42-976c-04e7115f32bf",t}(r.RestClientBase);t.CoreRestClient=i});
@@ -1,8 +1,59 @@
1
+ /**
2
+ * Copy options of a Dashboard.
3
+ */
4
+ export interface CopyDashboardOptions {
5
+ /**
6
+ * Dashboard Scope. Can be either Project or Project_Team
7
+ */
8
+ copyDashboardScope: DashboardScope;
9
+ /**
10
+ * When this flag is set to true,option to select the folder to copy Queries of copy dashboard will appear.
11
+ */
12
+ copyQueriesFlag: boolean;
13
+ /**
14
+ * Description of the dashboard
15
+ */
16
+ description: string;
17
+ /**
18
+ * Name of the dashboard
19
+ */
20
+ name: string;
21
+ /**
22
+ * ID of the project. Provided by service at creation time.
23
+ */
24
+ projectId: string;
25
+ /**
26
+ * Path to which the queries should be copied of copy dashboard
27
+ */
28
+ queryFolderPath: string;
29
+ /**
30
+ * Refresh interval of dashboard
31
+ */
32
+ refreshInterval: number;
33
+ /**
34
+ * ID of the team. Provided by service at creation time
35
+ */
36
+ teamId: string;
37
+ }
38
+ export interface CopyDashboardResponse {
39
+ /**
40
+ * Copied Dashboard
41
+ */
42
+ copiedDashboard: Dashboard;
43
+ /**
44
+ * Copy Dashboard options
45
+ */
46
+ copyDashboardOptions: CopyDashboardOptions;
47
+ }
1
48
  /**
2
49
  * Model of a Dashboard.
3
50
  */
4
51
  export interface Dashboard {
5
52
  _links: any;
53
+ /**
54
+ * Entity to which the dashboard is scoped.
55
+ */
56
+ dashboardScope: DashboardScope;
6
57
  /**
7
58
  * Description of the dashboard.
8
59
  */
@@ -11,16 +62,32 @@ export interface Dashboard {
11
62
  * Server defined version tracking value, used for edit collision detection.
12
63
  */
13
64
  eTag: string;
65
+ /**
66
+ * ID of the group for a dashboard. For team-scoped dashboards, this is the unique identifier for the team associated with the dashboard. For project-scoped dashboards this property is empty.
67
+ */
68
+ groupId: string;
14
69
  /**
15
70
  * ID of the Dashboard. Provided by service at creation time.
16
71
  */
17
72
  id: string;
73
+ /**
74
+ * Dashboard Last Accessed Date.
75
+ */
76
+ lastAccessedDate: Date;
77
+ /**
78
+ * Id of the person who modified Dashboard.
79
+ */
80
+ modifiedBy: string;
81
+ /**
82
+ * Dashboard's last modified date.
83
+ */
84
+ modifiedDate: Date;
18
85
  /**
19
86
  * Name of the Dashboard.
20
87
  */
21
88
  name: string;
22
89
  /**
23
- * ID of the Owner for a dashboard. For any legacy dashboards, this would be the unique identifier for the team associated with the dashboard.
90
+ * ID of the owner for a dashboard. For team-scoped dashboards, this is the unique identifier for the team associated with the dashboard. For project-scoped dashboards, this is the unique identifier for the user identity associated with the dashboard.
24
91
  */
25
92
  ownerId: string;
26
93
  /**
@@ -72,8 +139,18 @@ export interface DashboardResponse extends DashboardGroupEntry {
72
139
  * identifies the scope of dashboard storage and permissions.
73
140
  */
74
141
  export declare enum DashboardScope {
142
+ /**
143
+ * [DEPRECATED] Dashboard is scoped to the collection user.
144
+ */
75
145
  Collection_User = 0,
76
- Project_Team = 1
146
+ /**
147
+ * Dashboard is scoped to the team.
148
+ */
149
+ Project_Team = 1,
150
+ /**
151
+ * Dashboard is scoped to the project.
152
+ */
153
+ Project = 2
77
154
  }
78
155
  export declare enum GroupMemberPermission {
79
156
  None = 0,
@@ -11,8 +11,18 @@ define(["require", "exports"], function (require, exports) {
11
11
  */
12
12
  var DashboardScope;
13
13
  (function (DashboardScope) {
14
+ /**
15
+ * [DEPRECATED] Dashboard is scoped to the collection user.
16
+ */
14
17
  DashboardScope[DashboardScope["Collection_User"] = 0] = "Collection_User";
18
+ /**
19
+ * Dashboard is scoped to the team.
20
+ */
15
21
  DashboardScope[DashboardScope["Project_Team"] = 1] = "Project_Team";
22
+ /**
23
+ * Dashboard is scoped to the project.
24
+ */
25
+ DashboardScope[DashboardScope["Project"] = 2] = "Project";
16
26
  })(DashboardScope = exports.DashboardScope || (exports.DashboardScope = {}));
17
27
  var GroupMemberPermission;
18
28
  (function (GroupMemberPermission) {
@@ -1 +1 @@
1
- define(["require","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});!function(e){e[e.Collection_User=0]="Collection_User",e[e.Project_Team=1]="Project_Team"}(o.DashboardScope||(o.DashboardScope={}));!function(e){e[e.None=0]="None",e[e.Edit=1]="Edit",e[e.Manage=2]="Manage",e[e.ManagePermissions=3]="ManagePermissions"}(o.GroupMemberPermission||(o.GroupMemberPermission={}));!function(e){e[e.None=0]="None",e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.Edit=4]="Edit",e[e.Delete=8]="Delete",e[e.ManagePermissions=16]="ManagePermissions"}(o.TeamDashboardPermission||(o.TeamDashboardPermission={}));!function(e){e[e.Collection_User=0]="Collection_User",e[e.Project_Team=1]="Project_Team"}(o.WidgetScope||(o.WidgetScope={}))});
1
+ define(["require","exports"],function(e,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0});!function(e){e[e.Collection_User=0]="Collection_User",e[e.Project_Team=1]="Project_Team",e[e.Project=2]="Project"}(o.DashboardScope||(o.DashboardScope={}));!function(e){e[e.None=0]="None",e[e.Edit=1]="Edit",e[e.Manage=2]="Manage",e[e.ManagePermissions=3]="ManagePermissions"}(o.GroupMemberPermission||(o.GroupMemberPermission={}));!function(e){e[e.None=0]="None",e[e.Read=1]="Read",e[e.Create=2]="Create",e[e.Edit=4]="Edit",e[e.Delete=8]="Delete",e[e.ManagePermissions=16]="ManagePermissions"}(o.TeamDashboardPermission||(o.TeamDashboardPermission={}));!function(e){e[e.Collection_User=0]="Collection_User",e[e.Project_Team=1]="Project_Team"}(o.WidgetScope||(o.WidgetScope={}))});
@@ -27,11 +27,11 @@ export declare class DashboardRestClient extends RestClientBase {
27
27
  */
28
28
  getDashboard(teamContext: TfsCore.TeamContext, dashboardId: string): Promise<Dashboard.Dashboard>;
29
29
  /**
30
- * Get a list of dashboards.
30
+ * Get a list of dashboards under a project.
31
31
  *
32
32
  * @param teamContext - The team context for the operation
33
33
  */
34
- getDashboards(teamContext: TfsCore.TeamContext): Promise<Dashboard.DashboardGroup>;
34
+ getDashboardsByProject(teamContext: TfsCore.TeamContext): Promise<Dashboard.Dashboard[]>;
35
35
  /**
36
36
  * Replace configuration for the specified dashboard. Replaces Widget list on Dashboard, only if property is supplied.
37
37
  *
@@ -69,7 +69,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
69
69
  project = teamContext.projectId || teamContext.project;
70
70
  team = teamContext.teamId || teamContext.team;
71
71
  return [2 /*return*/, this.beginRequest({
72
- apiVersion: "5.2-preview.2",
72
+ apiVersion: "7.1-preview.3",
73
73
  method: "POST",
74
74
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
75
75
  routeValues: {
@@ -94,7 +94,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
94
94
  project = teamContext.projectId || teamContext.project;
95
95
  team = teamContext.teamId || teamContext.team;
96
96
  return [2 /*return*/, this.beginRequest({
97
- apiVersion: "5.2-preview.2",
97
+ apiVersion: "7.1-preview.3",
98
98
  method: "DELETE",
99
99
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
100
100
  routeValues: {
@@ -119,7 +119,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
119
119
  project = teamContext.projectId || teamContext.project;
120
120
  team = teamContext.teamId || teamContext.team;
121
121
  return [2 /*return*/, this.beginRequest({
122
- apiVersion: "5.2-preview.2",
122
+ apiVersion: "7.1-preview.3",
123
123
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
124
124
  routeValues: {
125
125
  project: project,
@@ -131,18 +131,18 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
131
131
  });
132
132
  };
133
133
  /**
134
- * Get a list of dashboards.
134
+ * Get a list of dashboards under a project.
135
135
  *
136
136
  * @param teamContext - The team context for the operation
137
137
  */
138
- DashboardRestClient.prototype.getDashboards = function (teamContext) {
138
+ DashboardRestClient.prototype.getDashboardsByProject = function (teamContext) {
139
139
  return __awaiter(this, void 0, void 0, function () {
140
140
  var project, team;
141
141
  return __generator(this, function (_a) {
142
142
  project = teamContext.projectId || teamContext.project;
143
143
  team = teamContext.teamId || teamContext.team;
144
144
  return [2 /*return*/, this.beginRequest({
145
- apiVersion: "5.2-preview.2",
145
+ apiVersion: "7.1-preview.3",
146
146
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
147
147
  routeValues: {
148
148
  project: project,
@@ -166,7 +166,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
166
166
  project = teamContext.projectId || teamContext.project;
167
167
  team = teamContext.teamId || teamContext.team;
168
168
  return [2 /*return*/, this.beginRequest({
169
- apiVersion: "5.2-preview.2",
169
+ apiVersion: "7.1-preview.3",
170
170
  method: "PUT",
171
171
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
172
172
  routeValues: {
@@ -192,7 +192,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
192
192
  project = teamContext.projectId || teamContext.project;
193
193
  team = teamContext.teamId || teamContext.team;
194
194
  return [2 /*return*/, this.beginRequest({
195
- apiVersion: "5.2-preview.2",
195
+ apiVersion: "7.1-preview.3",
196
196
  method: "PUT",
197
197
  routeTemplate: "{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",
198
198
  routeValues: {
@@ -218,7 +218,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
218
218
  project = teamContext.projectId || teamContext.project;
219
219
  team = teamContext.teamId || teamContext.team;
220
220
  return [2 /*return*/, this.beginRequest({
221
- apiVersion: "5.2-preview.2",
221
+ apiVersion: "7.1-preview.2",
222
222
  method: "POST",
223
223
  routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
224
224
  routeValues: {
@@ -245,7 +245,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
245
245
  project = teamContext.projectId || teamContext.project;
246
246
  team = teamContext.teamId || teamContext.team;
247
247
  return [2 /*return*/, this.beginRequest({
248
- apiVersion: "5.2-preview.2",
248
+ apiVersion: "7.1-preview.2",
249
249
  method: "DELETE",
250
250
  routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
251
251
  routeValues: {
@@ -272,7 +272,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
272
272
  project = teamContext.projectId || teamContext.project;
273
273
  team = teamContext.teamId || teamContext.team;
274
274
  return [2 /*return*/, this.beginRequest({
275
- apiVersion: "5.2-preview.2",
275
+ apiVersion: "7.1-preview.2",
276
276
  routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
277
277
  routeValues: {
278
278
  project: project,
@@ -299,7 +299,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
299
299
  project = teamContext.projectId || teamContext.project;
300
300
  team = teamContext.teamId || teamContext.team;
301
301
  return [2 /*return*/, this.beginRequest({
302
- apiVersion: "5.2-preview.2",
302
+ apiVersion: "7.1-preview.2",
303
303
  method: "PUT",
304
304
  routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
305
305
  routeValues: {
@@ -328,7 +328,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
328
328
  project = teamContext.projectId || teamContext.project;
329
329
  team = teamContext.teamId || teamContext.team;
330
330
  return [2 /*return*/, this.beginRequest({
331
- apiVersion: "5.2-preview.2",
331
+ apiVersion: "7.1-preview.2",
332
332
  method: "PATCH",
333
333
  routeTemplate: "{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",
334
334
  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: "5.2-preview.1",
355
+ apiVersion: "7.1-preview.1",
356
356
  routeTemplate: "{project}/_apis/Dashboard/WidgetTypes/{contributionId}",
357
357
  routeValues: {
358
358
  project: project,
@@ -376,7 +376,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
376
376
  '$scope': scope
377
377
  };
378
378
  return [2 /*return*/, this.beginRequest({
379
- apiVersion: "5.2-preview.1",
379
+ apiVersion: "7.1-preview.1",
380
380
  routeTemplate: "{project}/_apis/Dashboard/WidgetTypes/{contributionId}",
381
381
  routeValues: {
382
382
  project: project
@@ -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(a,i){function n(e){try{s(o.next(e))}catch(e){i(e)}}function d(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(n,d)}s((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(;d;)try{if(o=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return d.label++,{value:r[1],done:!1};case 5:d.label++,a=r[1],r=[0];continue;case 7:r=d.ops.pop(),d.trys.pop();continue;default:if(i=d.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){d=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){d.label=r[1];break}if(6===r[0]&&d.label<i[1]){d.label=i[1],i=r;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(r);break}i[2]&&d.ops.pop(),d.trys.pop();continue}r=t.call(e,d)}catch(e){r=[6,e],a=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,a,i,n,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[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.createDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.deleteDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboards=function(e){return __awaiter(this,void 0,void 0,function(){var t,r;return __generator(this,function(o){return t=e.projectId||e.project,r=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:t,team:r}})]})})},t.prototype.replaceDashboard=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.replaceDashboards=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.createWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.deleteWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.getWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.replaceWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.updateWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PATCH",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.getWidgetMetadata=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:"{project}/_apis/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t,contributionId:e}})]})})},t.prototype.getWidgetTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$scope:e},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t},queryParams:r})]})})},t.RESOURCE_AREA_ID="31c84e0a-3ece-48fd-a29d-100849af99ba",t}(r.RestClientBase);t.DashboardRestClient=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(a,i){function n(e){try{s(o.next(e))}catch(e){i(e)}}function d(e){try{s(o.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(n,d)}s((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(;d;)try{if(o=1,a&&(i=2&r[0]?a.return:r[0]?a.throw||((i=a.return)&&i.call(a),0):a.next)&&!(i=i.call(a,r[1])).done)return i;switch(a=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return d.label++,{value:r[1],done:!1};case 5:d.label++,a=r[1],r=[0];continue;case 7:r=d.ops.pop(),d.trys.pop();continue;default:if(i=d.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){d=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){d.label=r[1];break}if(6===r[0]&&d.label<i[1]){d.label=i[1],i=r;break}if(i&&d.label<i[2]){d.label=i[2],d.ops.push(r);break}i[2]&&d.ops.pop(),d.trys.pop();continue}r=t.call(e,d)}catch(e){r=[6,e],a=0}finally{o=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,n])}}var o,a,i,n,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[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.createDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.deleteDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboard=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=e.projectId||e.project,o=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o,dashboardId:t}})]})})},t.prototype.getDashboardsByProject=function(e){return __awaiter(this,void 0,void 0,function(){var t,r;return __generator(this,function(o){return t=e.projectId||e.project,r=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:t,team:r}})]})})},t.prototype.replaceDashboard=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.replaceDashboards=function(e,t){return __awaiter(this,void 0,void 0,function(){var r,o;return __generator(this,function(a){return r=t.projectId||t.project,o=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.3",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/Dashboards/{dashboardId}",routeValues:{project:r,team:o},body:e})]})})},t.prototype.createWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=t.projectId||t.project,a=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"POST",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:r},body:e})]})})},t.prototype.deleteWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"DELETE",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.getWidget=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var o,a;return __generator(this,function(i){return o=e.projectId||e.project,a=e.teamId||e.team,[2,this.beginRequest({apiVersion:"7.1-preview.2",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:o,team:a,dashboardId:t,widgetId:r}})]})})},t.prototype.replaceWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PUT",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.updateWidget=function(e,t,r,o){return __awaiter(this,void 0,void 0,function(){var a,i;return __generator(this,function(n){return a=t.projectId||t.project,i=t.teamId||t.team,[2,this.beginRequest({apiVersion:"7.1-preview.2",method:"PATCH",routeTemplate:"{project}/{team}/_apis/Dashboard/dashboards/{dashboardId}/Widgets/{widgetId}",routeValues:{project:a,team:i,dashboardId:r,widgetId:o},body:e})]})})},t.prototype.getWidgetMetadata=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:"{project}/_apis/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t,contributionId:e}})]})})},t.prototype.getWidgetTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={$scope:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/Dashboard/WidgetTypes/{contributionId}",routeValues:{project:t},queryParams:r})]})})},t.RESOURCE_AREA_ID="31c84e0a-3ece-48fd-a29d-100849af99ba",t}(r.RestClientBase);t.DashboardRestClient=o});
@@ -16,7 +16,7 @@ export declare enum AcquisitionAssignmentType {
16
16
  }
17
17
  export interface AcquisitionOperation {
18
18
  /**
19
- * State of the the AcquisitionOperation for the current user
19
+ * State of the AcquisitionOperation for the current user
20
20
  */
21
21
  operationState: AcquisitionOperationState;
22
22
  /**
@@ -260,7 +260,7 @@ export interface ContributionConstraint {
260
260
  */
261
261
  properties: any;
262
262
  /**
263
- * Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will elimiate the contribution from the tree completely if the constraint is applied.
263
+ * Constraints can be optionally be applied to one or more of the relationships defined in the contribution. If no relationships are defined then all relationships are associated with the constraint. This means the default behaviour will eliminate the contribution from the tree completely if the constraint is applied.
264
264
  */
265
265
  relationships: string[];
266
266
  }
@@ -109,7 +109,7 @@ export declare class ExtensionManagementRestClient extends RestClientBase {
109
109
  *
110
110
  * @param includeDisabledExtensions - If true (the default), include disabled extensions in the results.
111
111
  * @param includeErrors - If true, include installed extensions with errors.
112
- * @param assetTypes -
112
+ * @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
113
113
  * @param includeInstallationIssues -
114
114
  */
115
115
  getInstalledExtensions(includeDisabledExtensions?: boolean, includeErrors?: boolean, assetTypes?: string[], includeInstallationIssues?: boolean): Promise<ExtensionManagement.InstalledExtension[]>;
@@ -124,7 +124,7 @@ export declare class ExtensionManagementRestClient extends RestClientBase {
124
124
  *
125
125
  * @param publisherName - Name of the publisher. Example: "fabrikam".
126
126
  * @param extensionName - Name of the extension. Example: "ops-tools".
127
- * @param assetTypes -
127
+ * @param assetTypes - Determines which files are returned in the files array. Provide the wildcard '*' to return all files, or a colon separated list to retrieve files with specific asset types.
128
128
  */
129
129
  getInstalledExtensionByName(publisherName: string, extensionName: string, assetTypes?: string[]): Promise<ExtensionManagement.InstalledExtension>;
130
130
  /**