azure-devops-extension-api 2.225.0 → 4.226.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.js +3 -3
- package/Accounts/AccountsClient.min.js +1 -1
- package/Build/BuildClient.js +97 -97
- package/Build/BuildClient.min.js +1 -1
- package/Contributions/ContributionsClient.js +4 -4
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Core/CoreClient.js +33 -33
- package/Core/CoreClient.min.js +1 -1
- package/Dashboard/DashboardClient.js +13 -13
- package/Dashboard/DashboardClient.min.js +1 -1
- package/ExtensionManagement/ExtensionManagementClient.js +25 -25
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/Favorite/FavoriteClient.js +10 -10
- package/Favorite/FavoriteClient.min.js +1 -1
- 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/FileContainerClient.js +4 -4
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/Gallery/GalleryClient.js +83 -83
- package/Gallery/GalleryClient.min.js +1 -1
- package/Git/Git.d.ts +17 -0
- package/Git/GitClient.d.ts +19 -9
- package/Git/GitClient.js +195 -169
- package/Git/GitClient.min.js +1 -1
- package/Graph/GraphClient.js +40 -40
- package/Graph/GraphClient.min.js +1 -1
- package/Locations/LocationsClient.js +9 -9
- package/Locations/LocationsClient.min.js +1 -1
- package/Notification/NotificationClient.js +24 -24
- package/Notification/NotificationClient.min.js +1 -1
- package/Operations/OperationsClient.js +1 -1
- package/Operations/OperationsClient.min.js +1 -1
- package/Pipelines/PipelinesClient.js +10 -10
- package/Pipelines/PipelinesClient.min.js +1 -1
- package/Policy/PolicyClient.js +12 -12
- 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/ReleaseClient.js +88 -88
- package/Release/ReleaseClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.js +25 -25
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceHooks/ServiceHooksClient.js +23 -23
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/TaskAgent/TaskAgentClient.js +155 -155
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/Test/TestClient.js +76 -76
- package/Test/TestClient.min.js +1 -1
- package/TestPlan/TestPlanClient.js +42 -42
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestResults/TestResultsClient.js +96 -96
- package/TestResults/TestResultsClient.min.js +1 -1
- package/Tfvc/TfvcClient.js +24 -24
- package/Tfvc/TfvcClient.min.js +1 -1
- package/Work/WorkClient.js +56 -56
- package/Work/WorkClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +3 -0
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +1 -1
- package/WorkItemTracking/WorkItemTrackingClient.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +57 -57
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +46 -46
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/package.json +4 -2
package/Profile/ProfileClient.js
CHANGED
|
@@ -68,7 +68,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
68
68
|
descriptor: descriptor
|
|
69
69
|
};
|
|
70
70
|
return [2 /*return*/, this.beginRequest({
|
|
71
|
-
apiVersion: "7.
|
|
71
|
+
apiVersion: "7.2-preview.2",
|
|
72
72
|
method: "DELETE",
|
|
73
73
|
routeTemplate: "_apis/Profile/Attributes/{id}",
|
|
74
74
|
routeValues: {
|
|
@@ -91,7 +91,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
91
91
|
descriptor: descriptor
|
|
92
92
|
};
|
|
93
93
|
return [2 /*return*/, this.beginRequest({
|
|
94
|
-
apiVersion: "7.
|
|
94
|
+
apiVersion: "7.2-preview.2",
|
|
95
95
|
routeTemplate: "_apis/Profile/Attributes/{id}",
|
|
96
96
|
routeValues: {
|
|
97
97
|
id: id
|
|
@@ -121,7 +121,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
121
121
|
coreAttributes: coreAttributes
|
|
122
122
|
};
|
|
123
123
|
return [2 /*return*/, this.beginRequest({
|
|
124
|
-
apiVersion: "7.
|
|
124
|
+
apiVersion: "7.2-preview.2",
|
|
125
125
|
routeTemplate: "_apis/Profile/Attributes/{id}",
|
|
126
126
|
routeValues: {
|
|
127
127
|
id: id
|
|
@@ -144,7 +144,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
144
144
|
descriptor: descriptor
|
|
145
145
|
};
|
|
146
146
|
return [2 /*return*/, this.beginRequest({
|
|
147
|
-
apiVersion: "7.
|
|
147
|
+
apiVersion: "7.2-preview.2",
|
|
148
148
|
method: "PUT",
|
|
149
149
|
routeTemplate: "_apis/Profile/Attributes/{id}",
|
|
150
150
|
routeValues: {
|
|
@@ -164,7 +164,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
164
164
|
return __awaiter(this, void 0, void 0, function () {
|
|
165
165
|
return __generator(this, function (_a) {
|
|
166
166
|
return [2 /*return*/, this.beginRequest({
|
|
167
|
-
apiVersion: "7.
|
|
167
|
+
apiVersion: "7.2-preview.2",
|
|
168
168
|
method: "PATCH",
|
|
169
169
|
routeTemplate: "_apis/Profile/Attributes/{id}",
|
|
170
170
|
routeValues: {
|
|
@@ -189,7 +189,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
189
189
|
format: format
|
|
190
190
|
};
|
|
191
191
|
return [2 /*return*/, this.beginRequest({
|
|
192
|
-
apiVersion: "7.
|
|
192
|
+
apiVersion: "7.2-preview.1",
|
|
193
193
|
routeTemplate: "_apis/Profile/Avatar/{id}",
|
|
194
194
|
routeValues: {
|
|
195
195
|
id: id
|
|
@@ -216,7 +216,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
216
216
|
displayName: displayName
|
|
217
217
|
};
|
|
218
218
|
return [2 /*return*/, this.beginRequest({
|
|
219
|
-
apiVersion: "7.
|
|
219
|
+
apiVersion: "7.2-preview.1",
|
|
220
220
|
method: "POST",
|
|
221
221
|
routeTemplate: "_apis/Profile/Avatar/{id}",
|
|
222
222
|
routeValues: {
|
|
@@ -235,7 +235,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
235
235
|
return __awaiter(this, void 0, void 0, function () {
|
|
236
236
|
return __generator(this, function (_a) {
|
|
237
237
|
return [2 /*return*/, this.beginRequest({
|
|
238
|
-
apiVersion: "7.
|
|
238
|
+
apiVersion: "7.2-preview.1",
|
|
239
239
|
method: "DELETE",
|
|
240
240
|
routeTemplate: "_apis/Profile/Avatar/{id}",
|
|
241
241
|
routeValues: {
|
|
@@ -253,7 +253,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
253
253
|
return __awaiter(this, void 0, void 0, function () {
|
|
254
254
|
return __generator(this, function (_a) {
|
|
255
255
|
return [2 /*return*/, this.beginRequest({
|
|
256
|
-
apiVersion: "7.
|
|
256
|
+
apiVersion: "7.2-preview.1",
|
|
257
257
|
method: "PUT",
|
|
258
258
|
routeTemplate: "_apis/Profile/Avatar/{id}",
|
|
259
259
|
routeValues: {
|
|
@@ -278,7 +278,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
278
278
|
autoCreate: autoCreate
|
|
279
279
|
};
|
|
280
280
|
return [2 /*return*/, this.beginRequest({
|
|
281
|
-
apiVersion: "7.
|
|
281
|
+
apiVersion: "7.2-preview.3",
|
|
282
282
|
method: "POST",
|
|
283
283
|
routeTemplate: "_apis/Profile/Profiles/{id}",
|
|
284
284
|
queryParams: queryValues,
|
|
@@ -309,7 +309,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
309
309
|
forceRefresh: forceRefresh
|
|
310
310
|
};
|
|
311
311
|
return [2 /*return*/, this.beginRequest({
|
|
312
|
-
apiVersion: "7.
|
|
312
|
+
apiVersion: "7.2-preview.3",
|
|
313
313
|
routeTemplate: "_apis/Profile/Profiles/{id}",
|
|
314
314
|
routeValues: {
|
|
315
315
|
id: id
|
|
@@ -329,7 +329,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
329
329
|
return __awaiter(this, void 0, void 0, function () {
|
|
330
330
|
return __generator(this, function (_a) {
|
|
331
331
|
return [2 /*return*/, this.beginRequest({
|
|
332
|
-
apiVersion: "7.
|
|
332
|
+
apiVersion: "7.2-preview.3",
|
|
333
333
|
method: "PATCH",
|
|
334
334
|
routeTemplate: "_apis/Profile/Profiles/{id}",
|
|
335
335
|
routeValues: {
|
|
@@ -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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=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++,o=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],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,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 i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteProfileAttribute=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={descriptor:t},[2,this.beginRequest({apiVersion:"7.
|
|
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 i(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(i.prototype=r.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,i){return new(r||(r=Promise))(function(o,n){function u(e){try{s(i.next(e))}catch(e){n(e)}}function a(e){try{s(i.throw(e))}catch(e){n(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,o&&(n=2&r[0]?o.return:r[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,r[1])).done)return n;switch(o=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++,o=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],o=0}finally{i=n=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var i,o,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 i=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.deleteProfileAttribute=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={descriptor:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"DELETE",routeTemplate:"_apis/Profile/Attributes/{id}",routeValues:{id:e},queryParams:r})]})})},t.prototype.getProfileAttribute=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={descriptor:t},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Profile/Attributes/{id}",routeValues:{id:e},queryParams:r})]})})},t.prototype.getProfileAttributes=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={partition:t,modifiedSince:r,modifiedAfterRevision:i,withCoreAttributes:o,coreAttributes:n},[2,this.beginRequest({apiVersion:"7.2-preview.2",routeTemplate:"_apis/Profile/Attributes/{id}",routeValues:{id:e},queryParams:u})]})})},t.prototype.setProfileAttribute=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={descriptor:r},[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PUT",routeTemplate:"_apis/Profile/Attributes/{id}",routeValues:{id:t},queryParams:i,body:e})]})})},t.prototype.setProfileAttributes=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.2",method:"PATCH",routeTemplate:"_apis/Profile/Attributes/{id}",routeValues:{id:t},body:e})]})})},t.prototype.getAvatar=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={size:t,format:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"_apis/Profile/Avatar/{id}",routeValues:{id:e},queryParams:i})]})})},t.prototype.getAvatarPreview=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(u){return n={size:r,format:i,displayName:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"POST",routeTemplate:"_apis/Profile/Avatar/{id}",routeValues:{id:t},queryParams:n,body:e})]})})},t.prototype.resetAvatar=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"DELETE",routeTemplate:"_apis/Profile/Avatar/{id}",routeValues:{id:e}})]})})},t.prototype.setAvatar=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.1",method:"PUT",routeTemplate:"_apis/Profile/Avatar/{id}",routeValues:{id:t},body:e})]})})},t.prototype.createProfile=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(i){return r={autoCreate:t},[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"POST",routeTemplate:"_apis/Profile/Profiles/{id}",queryParams:r,body:e})]})})},t.prototype.getProfile=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(a){return u={details:t,withAttributes:r,partition:i,coreAttributes:o,forceRefresh:n},[2,this.beginRequest({apiVersion:"7.2-preview.3",routeTemplate:"_apis/Profile/Profiles/{id}",routeValues:{id:e},queryParams:u})]})})},t.prototype.updateProfile=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(r){return[2,this.beginRequest({apiVersion:"7.2-preview.3",method:"PATCH",routeTemplate:"_apis/Profile/Profiles/{id}",routeValues:{id:t},body:e})]})})},t.RESOURCE_AREA_ID="8ccfef3d-2b87-4e99-8ccb-66e343d2daa8",t}(r.RestClientBase);t.ProfileRestClient=i});
|
|
@@ -63,7 +63,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
63
63
|
return __awaiter(this, void 0, void 0, function () {
|
|
64
64
|
return __generator(this, function (_a) {
|
|
65
65
|
return [2 /*return*/, this.beginRequest({
|
|
66
|
-
apiVersion: "7.
|
|
66
|
+
apiVersion: "7.2-preview.1",
|
|
67
67
|
routeTemplate: "{project}/_apis/projectanalysis/languagemetrics",
|
|
68
68
|
routeValues: {
|
|
69
69
|
project: project
|
|
@@ -86,7 +86,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
86
86
|
aggregationType: aggregationType
|
|
87
87
|
};
|
|
88
88
|
return [2 /*return*/, this.beginRequest({
|
|
89
|
-
apiVersion: "7.
|
|
89
|
+
apiVersion: "7.2-preview.1",
|
|
90
90
|
routeTemplate: "{project}/_apis/projectanalysis/projectactivitymetrics",
|
|
91
91
|
routeValues: {
|
|
92
92
|
project: project
|
|
@@ -116,7 +116,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
116
116
|
'$top': top
|
|
117
117
|
};
|
|
118
118
|
return [2 /*return*/, this.beginRequest({
|
|
119
|
-
apiVersion: "7.
|
|
119
|
+
apiVersion: "7.2-preview.1",
|
|
120
120
|
routeTemplate: "{project}/_apis/projectanalysis/repositoryactivitymetrics/{repositoryId}",
|
|
121
121
|
routeValues: {
|
|
122
122
|
project: project
|
|
@@ -141,7 +141,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
|
|
|
141
141
|
aggregationType: aggregationType
|
|
142
142
|
};
|
|
143
143
|
return [2 /*return*/, this.beginRequest({
|
|
144
|
-
apiVersion: "7.
|
|
144
|
+
apiVersion: "7.2-preview.1",
|
|
145
145
|
routeTemplate: "{project}/_apis/projectanalysis/repositoryactivitymetrics/{repositoryId}",
|
|
146
146
|
routeValues: {
|
|
147
147
|
project: project,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,s)}u((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getProjectLanguageAnalytics=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.
|
|
1
|
+
var __extends=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])};return function(e,r){function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(t,e,r,n){return new(r||(r=Promise))(function(o,i){function a(t){try{u(n.next(t))}catch(t){i(t)}}function s(t){try{u(n.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new r(function(e){e(t.value)}).then(a,s)}u((n=n.apply(t,e||[])).next())})},__generator=this&&this.__generator||function(t,e){function r(r){return function(a){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(i=2&r[0]?o.return:r[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,r[1])).done)return i;switch(o=0,i&&(r=[2&r[0],i.value]),r[0]){case 0:case 1:i=r;break;case 4:return s.label++,{value:r[1],done:!1};case 5:s.label++,o=r[1],r=[0];continue;case 7:r=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){s=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){s.label=r[1];break}if(6===r[0]&&s.label<i[1]){s.label=i[1],i=r;break}if(i&&s.label<i[2]){s.label=i[2],s.ops.push(r);break}i[2]&&s.ops.pop(),s.trys.pop();continue}r=e.call(t,s)}catch(t){r=[6,t],o=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,a])}}var n,o,i,a,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a};define(["require","exports","../Common/RestClientBase"],function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e){return t.call(this,e)||this}return __extends(e,t),e.prototype.getProjectLanguageAnalytics=function(t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/projectanalysis/languagemetrics",routeValues:{project:t}})]})})},e.prototype.getProjectActivityMetrics=function(t,e,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(o){return n={fromDate:e,aggregationType:r},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/projectanalysis/projectactivitymetrics",routeValues:{project:t},queryParams:n})]})})},e.prototype.getGitRepositoriesActivityMetrics=function(t,e,r,n,o){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(a){return i={fromDate:e,aggregationType:r,$skip:n,$top:o},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/projectanalysis/repositoryactivitymetrics/{repositoryId}",routeValues:{project:t},queryParams:i})]})})},e.prototype.getRepositoryActivityMetrics=function(t,e,r,n){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(i){return o={fromDate:r,aggregationType:n},[2,this.beginRequest({apiVersion:"7.2-preview.1",routeTemplate:"{project}/_apis/projectanalysis/repositoryactivitymetrics/{repositoryId}",routeValues:{project:t,repositoryId:e},queryParams:o})]})})},e.RESOURCE_AREA_ID="7658fa33-b1bf-4580-990f-fac5896773d3",e}(r.RestClientBase);e.ProjectAnalysisRestClient=n});
|