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
@@ -0,0 +1,314 @@
1
+ /*
2
+ * ---------------------------------------------------------
3
+ * Copyright(C) Microsoft Corporation. All rights reserved.
4
+ * ---------------------------------------------------------
5
+ */
6
+ var __extends = (this && this.__extends) || (function () {
7
+ var extendStatics = Object.setPrototypeOf ||
8
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
9
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
10
+ return function (d, b) {
11
+ extendStatics(d, b);
12
+ function __() { this.constructor = d; }
13
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
+ };
15
+ })();
16
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ var __generator = (this && this.__generator) || function (thisArg, body) {
25
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
26
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
27
+ function verb(n) { return function (v) { return step([n, v]); }; }
28
+ function step(op) {
29
+ if (f) throw new TypeError("Generator is already executing.");
30
+ while (_) try {
31
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32
+ if (y = 0, t) op = [op[0] & 2, t.value];
33
+ switch (op[0]) {
34
+ case 0: case 1: t = op; break;
35
+ case 4: _.label++; return { value: op[1], done: false };
36
+ case 5: _.label++; y = op[1]; op = [0]; continue;
37
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
38
+ default:
39
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
40
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
41
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
42
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
43
+ if (t[2]) _.ops.pop();
44
+ _.trys.pop(); continue;
45
+ }
46
+ op = body.call(thisArg, _);
47
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
48
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
+ }
50
+ };
51
+ define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
52
+ "use strict";
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ var FavoriteRestClient = /** @class */ (function (_super) {
55
+ __extends(FavoriteRestClient, _super);
56
+ function FavoriteRestClient(options) {
57
+ return _super.call(this, options) || this;
58
+ }
59
+ /**
60
+ * @param faultInMissingHost -
61
+ */
62
+ FavoriteRestClient.prototype.getFavoriteProviders = function (faultInMissingHost) {
63
+ return __awaiter(this, void 0, void 0, function () {
64
+ var queryValues;
65
+ return __generator(this, function (_a) {
66
+ queryValues = {
67
+ faultInMissingHost: faultInMissingHost
68
+ };
69
+ return [2 /*return*/, this.beginRequest({
70
+ apiVersion: "7.1-preview.1",
71
+ routeTemplate: "_apis/Favorite/FavoriteProviders",
72
+ queryParams: queryValues
73
+ })];
74
+ });
75
+ });
76
+ };
77
+ /**
78
+ * @param favorite -
79
+ */
80
+ FavoriteRestClient.prototype.createFavorite = function (favorite) {
81
+ return __awaiter(this, void 0, void 0, function () {
82
+ return __generator(this, function (_a) {
83
+ return [2 /*return*/, this.beginRequest({
84
+ apiVersion: "7.1-preview.1",
85
+ method: "POST",
86
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
87
+ body: favorite
88
+ })];
89
+ });
90
+ });
91
+ };
92
+ /**
93
+ * @param favorite -
94
+ * @param ownerScopeType -
95
+ * @param ownerScopeId -
96
+ */
97
+ FavoriteRestClient.prototype.createFavoriteOfOwner = function (favorite, ownerScopeType, ownerScopeId) {
98
+ return __awaiter(this, void 0, void 0, function () {
99
+ var queryValues;
100
+ return __generator(this, function (_a) {
101
+ queryValues = {
102
+ ownerScopeType: ownerScopeType,
103
+ ownerScopeId: ownerScopeId
104
+ };
105
+ return [2 /*return*/, this.beginRequest({
106
+ apiVersion: "7.1-preview.1",
107
+ method: "POST",
108
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
109
+ queryParams: queryValues,
110
+ body: favorite
111
+ })];
112
+ });
113
+ });
114
+ };
115
+ /**
116
+ * @param favoriteId -
117
+ * @param artifactType -
118
+ * @param artifactScopeType -
119
+ * @param artifactScopeId -
120
+ */
121
+ FavoriteRestClient.prototype.deleteFavoriteById = function (favoriteId, artifactType, artifactScopeType, artifactScopeId) {
122
+ return __awaiter(this, void 0, void 0, function () {
123
+ var queryValues;
124
+ return __generator(this, function (_a) {
125
+ queryValues = {
126
+ artifactType: artifactType,
127
+ artifactScopeType: artifactScopeType,
128
+ artifactScopeId: artifactScopeId
129
+ };
130
+ return [2 /*return*/, this.beginRequest({
131
+ apiVersion: "7.1-preview.1",
132
+ method: "DELETE",
133
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
134
+ routeValues: {
135
+ favoriteId: favoriteId
136
+ },
137
+ queryParams: queryValues
138
+ })];
139
+ });
140
+ });
141
+ };
142
+ /**
143
+ * @param favoriteId -
144
+ * @param ownerScopeType -
145
+ * @param ownerScopeId -
146
+ * @param artifactType -
147
+ * @param artifactScopeType -
148
+ * @param artifactScopeId -
149
+ */
150
+ FavoriteRestClient.prototype.deleteFavoriteOfOwnerById = function (favoriteId, ownerScopeType, ownerScopeId, artifactType, artifactScopeType, artifactScopeId) {
151
+ return __awaiter(this, void 0, void 0, function () {
152
+ var queryValues;
153
+ return __generator(this, function (_a) {
154
+ queryValues = {
155
+ ownerScopeType: ownerScopeType,
156
+ ownerScopeId: ownerScopeId,
157
+ artifactType: artifactType,
158
+ artifactScopeType: artifactScopeType,
159
+ artifactScopeId: artifactScopeId
160
+ };
161
+ return [2 /*return*/, this.beginRequest({
162
+ apiVersion: "7.1-preview.1",
163
+ method: "DELETE",
164
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
165
+ routeValues: {
166
+ favoriteId: favoriteId
167
+ },
168
+ queryParams: queryValues
169
+ })];
170
+ });
171
+ });
172
+ };
173
+ /**
174
+ * @param artifactType -
175
+ * @param artifactId -
176
+ * @param artifactScopeType -
177
+ * @param artifactScopeId -
178
+ * @param includeExtendedDetails -
179
+ */
180
+ FavoriteRestClient.prototype.getFavoriteByArtifact = function (artifactType, artifactId, artifactScopeType, artifactScopeId, includeExtendedDetails) {
181
+ return __awaiter(this, void 0, void 0, function () {
182
+ var queryValues;
183
+ return __generator(this, function (_a) {
184
+ queryValues = {
185
+ artifactType: artifactType,
186
+ artifactId: artifactId,
187
+ artifactScopeType: artifactScopeType,
188
+ artifactScopeId: artifactScopeId,
189
+ includeExtendedDetails: includeExtendedDetails
190
+ };
191
+ return [2 /*return*/, this.beginRequest({
192
+ apiVersion: "7.1-preview.1",
193
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
194
+ queryParams: queryValues
195
+ })];
196
+ });
197
+ });
198
+ };
199
+ /**
200
+ * @param favoriteId -
201
+ * @param artifactScopeType -
202
+ * @param artifactType -
203
+ * @param artifactScopeId -
204
+ * @param includeExtendedDetails -
205
+ */
206
+ FavoriteRestClient.prototype.getFavoriteById = function (favoriteId, artifactScopeType, artifactType, artifactScopeId, includeExtendedDetails) {
207
+ return __awaiter(this, void 0, void 0, function () {
208
+ var queryValues;
209
+ return __generator(this, function (_a) {
210
+ queryValues = {
211
+ artifactScopeType: artifactScopeType,
212
+ artifactType: artifactType,
213
+ artifactScopeId: artifactScopeId,
214
+ includeExtendedDetails: includeExtendedDetails
215
+ };
216
+ return [2 /*return*/, this.beginRequest({
217
+ apiVersion: "7.1-preview.1",
218
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
219
+ routeValues: {
220
+ favoriteId: favoriteId
221
+ },
222
+ queryParams: queryValues
223
+ })];
224
+ });
225
+ });
226
+ };
227
+ /**
228
+ * @param favoriteId -
229
+ * @param ownerScopeType -
230
+ * @param ownerScopeId -
231
+ * @param artifactScopeType -
232
+ * @param artifactType -
233
+ * @param artifactScopeId -
234
+ * @param includeExtendedDetails -
235
+ */
236
+ FavoriteRestClient.prototype.getFavoriteOfOwnerById = function (favoriteId, ownerScopeType, ownerScopeId, artifactScopeType, artifactType, artifactScopeId, includeExtendedDetails) {
237
+ return __awaiter(this, void 0, void 0, function () {
238
+ var queryValues;
239
+ return __generator(this, function (_a) {
240
+ queryValues = {
241
+ ownerScopeType: ownerScopeType,
242
+ ownerScopeId: ownerScopeId,
243
+ artifactScopeType: artifactScopeType,
244
+ artifactType: artifactType,
245
+ artifactScopeId: artifactScopeId,
246
+ includeExtendedDetails: includeExtendedDetails
247
+ };
248
+ return [2 /*return*/, this.beginRequest({
249
+ apiVersion: "7.1-preview.1",
250
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
251
+ routeValues: {
252
+ favoriteId: favoriteId
253
+ },
254
+ queryParams: queryValues
255
+ })];
256
+ });
257
+ });
258
+ };
259
+ /**
260
+ * @param artifactType -
261
+ * @param artifactScopeType -
262
+ * @param artifactScopeId -
263
+ * @param includeExtendedDetails -
264
+ */
265
+ FavoriteRestClient.prototype.getFavorites = function (artifactType, artifactScopeType, artifactScopeId, includeExtendedDetails) {
266
+ return __awaiter(this, void 0, void 0, function () {
267
+ var queryValues;
268
+ return __generator(this, function (_a) {
269
+ queryValues = {
270
+ artifactType: artifactType,
271
+ artifactScopeType: artifactScopeType,
272
+ artifactScopeId: artifactScopeId,
273
+ includeExtendedDetails: includeExtendedDetails
274
+ };
275
+ return [2 /*return*/, this.beginRequest({
276
+ apiVersion: "7.1-preview.1",
277
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
278
+ queryParams: queryValues
279
+ })];
280
+ });
281
+ });
282
+ };
283
+ /**
284
+ * @param ownerScopeType -
285
+ * @param ownerScopeId -
286
+ * @param artifactType -
287
+ * @param artifactScopeType -
288
+ * @param artifactScopeId -
289
+ * @param includeExtendedDetails -
290
+ */
291
+ FavoriteRestClient.prototype.getFavoritesOfOwner = function (ownerScopeType, ownerScopeId, artifactType, artifactScopeType, artifactScopeId, includeExtendedDetails) {
292
+ return __awaiter(this, void 0, void 0, function () {
293
+ var queryValues;
294
+ return __generator(this, function (_a) {
295
+ queryValues = {
296
+ ownerScopeType: ownerScopeType,
297
+ ownerScopeId: ownerScopeId,
298
+ artifactType: artifactType,
299
+ artifactScopeType: artifactScopeType,
300
+ artifactScopeId: artifactScopeId,
301
+ includeExtendedDetails: includeExtendedDetails
302
+ };
303
+ return [2 /*return*/, this.beginRequest({
304
+ apiVersion: "7.1-preview.1",
305
+ routeTemplate: "_apis/Favorite/Favorites/{favoriteId}",
306
+ queryParams: queryValues
307
+ })];
308
+ });
309
+ });
310
+ };
311
+ return FavoriteRestClient;
312
+ }(RestClientBase_1.RestClientBase));
313
+ exports.FavoriteRestClient = FavoriteRestClient;
314
+ });
@@ -0,0 +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 a(e){try{s(i.next(e))}catch(e){n(e)}}function u(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(a,u)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(a){return function(r){if(i)throw new TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:r[1],done:!1};case 5:u.label++,o=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(n=u.trys,!(n=n.length>0&&n[n.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!n||r[1]>n[0]&&r[1]<n[3])){u.label=r[1];break}if(6===r[0]&&u.label<n[1]){u.label=n[1],n=r;break}if(n&&u.label<n[2]){u.label=n[2],u.ops.push(r);break}n[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}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,a])}}var i,o,n,a,u={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(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.getFavoriteProviders=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={faultInMissingHost:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/FavoriteProviders",queryParams:t})]})})},t.prototype.createFavorite=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/Favorite/Favorites/{favoriteId}",body:e})]})})},t.prototype.createFavoriteOfOwner=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={ownerScopeType:t,ownerScopeId:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:i,body:e})]})})},t.prototype.deleteFavoriteById=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:t,artifactScopeType:r,artifactScopeId:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:o})]})})},t.prototype.deleteFavoriteOfOwnerById=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:t,ownerScopeId:r,artifactType:i,artifactScopeType:o,artifactScopeId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"DELETE",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:a})]})})},t.prototype.getFavoriteByArtifact=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactType:e,artifactId:t,artifactScopeType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:n})]})})},t.prototype.getFavoriteById=function(e,t,r,i,o){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={artifactScopeType:t,artifactType:r,artifactScopeId:i,includeExtendedDetails:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:n})]})})},t.prototype.getFavoriteOfOwnerById=function(e,t,r,i,o,n,a){return __awaiter(this,void 0,void 0,function(){var u;return __generator(this,function(s){return u={ownerScopeType:t,ownerScopeId:r,artifactScopeType:i,artifactType:o,artifactScopeId:n,includeExtendedDetails:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",routeValues:{favoriteId:e},queryParams:u})]})})},t.prototype.getFavorites=function(e,t,r,i){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(n){return o={artifactType:e,artifactScopeType:t,artifactScopeId:r,includeExtendedDetails:i},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:o})]})})},t.prototype.getFavoritesOfOwner=function(e,t,r,i,o,n){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={ownerScopeType:e,ownerScopeId:t,artifactType:r,artifactScopeType:i,artifactScopeId:o,includeExtendedDetails:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/Favorite/Favorites/{favoriteId}",queryParams:a})]})})},t}(r.RestClientBase);t.FavoriteRestClient=i});
@@ -69,7 +69,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
69
69
  userEmail: userEmail
70
70
  };
71
71
  return [2 /*return*/, this.beginRequest({
72
- apiVersion: "5.2-preview.1",
72
+ apiVersion: "7.1-preview.1",
73
73
  routeTemplate: "_apis/FeatureFlags/{name}",
74
74
  queryParams: queryValues
75
75
  })];
@@ -90,7 +90,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
90
90
  checkFeatureExists: checkFeatureExists
91
91
  };
92
92
  return [2 /*return*/, this.beginRequest({
93
- apiVersion: "5.2-preview.1",
93
+ apiVersion: "7.1-preview.1",
94
94
  routeTemplate: "_apis/FeatureFlags/{name}",
95
95
  routeValues: {
96
96
  name: name
@@ -116,7 +116,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
116
116
  checkFeatureExists: checkFeatureExists
117
117
  };
118
118
  return [2 /*return*/, this.beginRequest({
119
- apiVersion: "5.2-preview.1",
119
+ apiVersion: "7.1-preview.1",
120
120
  routeTemplate: "_apis/FeatureFlags/{name}",
121
121
  routeValues: {
122
122
  name: name
@@ -142,7 +142,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
142
142
  checkFeatureExists: checkFeatureExists
143
143
  };
144
144
  return [2 /*return*/, this.beginRequest({
145
- apiVersion: "5.2-preview.1",
145
+ apiVersion: "7.1-preview.1",
146
146
  routeTemplate: "_apis/FeatureFlags/{name}",
147
147
  routeValues: {
148
148
  name: name
@@ -171,7 +171,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
171
171
  setAtApplicationLevelAlso: setAtApplicationLevelAlso
172
172
  };
173
173
  return [2 /*return*/, this.beginRequest({
174
- apiVersion: "5.2-preview.1",
174
+ apiVersion: "7.1-preview.1",
175
175
  method: "PATCH",
176
176
  routeTemplate: "_apis/FeatureFlags/{name}",
177
177
  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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(o,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=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 u.label++,{value:r[1],done:!1};case 5:u.label++,a=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var n,a,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAllFeatureFlags=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={userEmail:e},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",queryParams:t})]})})},t.prototype.getFeatureFlagByName=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={checkFeatureExists:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:r})]})})},t.prototype.getFeatureFlagByNameAndUserEmail=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userEmail:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.getFeatureFlagByNameAndUserId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userId:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.updateFeatureFlag=function(e,t,r,n,a){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={userEmail:r,checkFeatureExists:n,setAtApplicationLevelAlso:a},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:t},queryParams:i,body:e})]})})},t}(r.RestClientBase);t.FeatureAvailabilityRestClient=n});
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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(a,i){function o(e){try{s(n.next(e))}catch(e){i(e)}}function u(e){try{s(n.throw(e))}catch(e){i(e)}}function s(e){e.done?a(e.value):new r(function(t){t(e.value)}).then(o,u)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(o){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=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 u.label++,{value:r[1],done:!1};case 5:u.label++,a=r[1],r=[0];continue;case 7:r=u.ops.pop(),u.trys.pop();continue;default:if(i=u.trys,!(i=i.length>0&&i[i.length-1])&&(6===r[0]||2===r[0])){u=0;continue}if(3===r[0]&&(!i||r[1]>i[0]&&r[1]<i[3])){u.label=r[1];break}if(6===r[0]&&u.label<i[1]){u.label=i[1],i=r;break}if(i&&u.label<i[2]){u.label=i[2],u.ops.push(r);break}i[2]&&u.ops.pop(),u.trys.pop();continue}r=t.call(e,u)}catch(e){r=[6,e],a=0}finally{n=i=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,o])}}var n,a,i,o,u={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:r(0),throw:r(1),return:r(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o};define(["require","exports","../Common/RestClientBase"],function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAllFeatureFlags=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={userEmail:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",queryParams:t})]})})},t.prototype.getFeatureFlagByName=function(e,t){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(n){return r={checkFeatureExists:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:r})]})})},t.prototype.getFeatureFlagByNameAndUserEmail=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userEmail:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.getFeatureFlagByNameAndUserId=function(e,t,r){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(a){return n={userId:t,checkFeatureExists:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:e},queryParams:n})]})})},t.prototype.updateFeatureFlag=function(e,t,r,n,a){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(o){return i={userEmail:r,checkFeatureExists:n,setAtApplicationLevelAlso:a},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureFlags/{name}",routeValues:{name:t},queryParams:i,body:e})]})})},t}(r.RestClientBase);t.FeatureAvailabilityRestClient=n});
@@ -65,7 +65,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
65
65
  return __awaiter(this, void 0, void 0, function () {
66
66
  return __generator(this, function (_a) {
67
67
  return [2 /*return*/, this.beginRequest({
68
- apiVersion: "5.2-preview.1",
68
+ apiVersion: "7.1-preview.1",
69
69
  routeTemplate: "_apis/FeatureManagement/Features/{featureId}",
70
70
  routeValues: {
71
71
  featureId: featureId
@@ -87,7 +87,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
87
87
  targetContributionId: targetContributionId
88
88
  };
89
89
  return [2 /*return*/, this.beginRequest({
90
- apiVersion: "5.2-preview.1",
90
+ apiVersion: "7.1-preview.1",
91
91
  routeTemplate: "_apis/FeatureManagement/Features/{featureId}",
92
92
  queryParams: queryValues
93
93
  })];
@@ -104,7 +104,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
104
104
  return __awaiter(this, void 0, void 0, function () {
105
105
  return __generator(this, function (_a) {
106
106
  return [2 /*return*/, this.beginRequest({
107
- apiVersion: "5.2-preview.1",
107
+ apiVersion: "7.1-preview.1",
108
108
  routeTemplate: "_apis/FeatureManagement/FeatureStates/{userScope}/{featureId}",
109
109
  routeValues: {
110
110
  featureId: featureId,
@@ -132,7 +132,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
132
132
  reasonCode: reasonCode
133
133
  };
134
134
  return [2 /*return*/, this.beginRequest({
135
- apiVersion: "5.2-preview.1",
135
+ apiVersion: "7.1-preview.1",
136
136
  method: "PATCH",
137
137
  routeTemplate: "_apis/FeatureManagement/FeatureStates/{userScope}/{featureId}",
138
138
  routeValues: {
@@ -157,7 +157,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
157
157
  return __awaiter(this, void 0, void 0, function () {
158
158
  return __generator(this, function (_a) {
159
159
  return [2 /*return*/, this.beginRequest({
160
- apiVersion: "5.2-preview.1",
160
+ apiVersion: "7.1-preview.1",
161
161
  routeTemplate: "_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",
162
162
  routeValues: {
163
163
  featureId: featureId,
@@ -189,7 +189,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
189
189
  reasonCode: reasonCode
190
190
  };
191
191
  return [2 /*return*/, this.beginRequest({
192
- apiVersion: "5.2-preview.1",
192
+ apiVersion: "7.1-preview.1",
193
193
  method: "PATCH",
194
194
  routeTemplate: "_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",
195
195
  routeValues: {
@@ -213,7 +213,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
213
213
  return __awaiter(this, void 0, void 0, function () {
214
214
  return __generator(this, function (_a) {
215
215
  return [2 /*return*/, this.beginRequest({
216
- apiVersion: "5.2-preview.1",
216
+ apiVersion: "7.1-preview.1",
217
217
  method: "POST",
218
218
  routeTemplate: "_apis/FeatureManagement/FeatureStatesQuery",
219
219
  body: query
@@ -231,7 +231,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
231
231
  return __awaiter(this, void 0, void 0, function () {
232
232
  return __generator(this, function (_a) {
233
233
  return [2 /*return*/, this.beginRequest({
234
- apiVersion: "5.2-preview.1",
234
+ apiVersion: "7.1-preview.1",
235
235
  method: "POST",
236
236
  routeTemplate: "_apis/FeatureManagement/FeatureStatesQuery/{userScope}",
237
237
  routeValues: {
@@ -254,7 +254,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
254
254
  return __awaiter(this, void 0, void 0, function () {
255
255
  return __generator(this, function (_a) {
256
256
  return [2 /*return*/, this.beginRequest({
257
- apiVersion: "5.2-preview.1",
257
+ apiVersion: "7.1-preview.1",
258
258
  method: "POST",
259
259
  routeTemplate: "_apis/FeatureManagement/FeatureStatesQuery/{userScope}/{scopeName}/{scopeValue}",
260
260
  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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function u(e){try{s(n.next(e))}catch(e){a(e)}}function i(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,i)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,o=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(6===r[0]||2===r[0])){i=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(6===r[0]&&i.label<a[1]){i.label=a[1],a=r;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(r);break}a[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],o=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var n,o,a,u,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[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 n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getFeature=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/FeatureManagement/Features/{featureId}",routeValues:{featureId:e}})]})})},t.prototype.getFeatures=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={targetContributionId:e},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureManagement/Features/{featureId}",queryParams:t})]})})},t.prototype.getFeatureState=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/FeatureManagement/FeatureStates/{userScope}/{featureId}",routeValues:{featureId:e,userScope:t}})]})})},t.prototype.setFeatureState=function(e,t,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={reason:n,reasonCode:o},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{featureId}",routeValues:{featureId:t,userScope:r},queryParams:a,body:e})]})})},t.prototype.getFeatureStateForScope=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",routeValues:{featureId:e,userScope:t,scopeName:r,scopeValue:n}})]})})},t.prototype.setFeatureStateForScope=function(e,t,r,n,o,a,u){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={reason:a,reasonCode:u},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",routeValues:{featureId:t,userScope:r,scopeName:n,scopeValue:o},queryParams:i,body:e})]})})},t.prototype.queryFeatureStates=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/FeatureManagement/FeatureStatesQuery",body:e})]})})},t.prototype.queryFeatureStatesForDefaultScope=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/FeatureManagement/FeatureStatesQuery/{userScope}",routeValues:{userScope:t},body:e})]})})},t.prototype.queryFeatureStatesForNamedScope=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/FeatureManagement/FeatureStatesQuery/{userScope}/{scopeName}/{scopeValue}",routeValues:{userScope:t,scopeName:r,scopeValue:n},body:e})]})})},t}(r.RestClientBase);t.FeatureManagementRestClient=n});
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 n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),__awaiter=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(o,a){function u(e){try{s(n.next(e))}catch(e){a(e)}}function i(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(u,i)}s((n=n.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function r(r){return function(u){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,o&&(a=2&r[0]?o.return:r[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,r[1])).done)return a;switch(o=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return i.label++,{value:r[1],done:!1};case 5:i.label++,o=r[1],r=[0];continue;case 7:r=i.ops.pop(),i.trys.pop();continue;default:if(a=i.trys,!(a=a.length>0&&a[a.length-1])&&(6===r[0]||2===r[0])){i=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){i.label=r[1];break}if(6===r[0]&&i.label<a[1]){i.label=a[1],a=r;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(r);break}a[2]&&i.ops.pop(),i.trys.pop();continue}r=t.call(e,i)}catch(e){r=[6,e],o=0}finally{n=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,u])}}var n,o,a,u,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[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 n=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getFeature=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/FeatureManagement/Features/{featureId}",routeValues:{featureId:e}})]})})},t.prototype.getFeatures=function(e){return __awaiter(this,void 0,void 0,function(){var t;return __generator(this,function(r){return t={targetContributionId:e},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureManagement/Features/{featureId}",queryParams:t})]})})},t.prototype.getFeatureState=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/FeatureManagement/FeatureStates/{userScope}/{featureId}",routeValues:{featureId:e,userScope:t}})]})})},t.prototype.setFeatureState=function(e,t,r,n,o){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(u){return a={reason:n,reasonCode:o},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{featureId}",routeValues:{featureId:t,userScope:r},queryParams:a,body:e})]})})},t.prototype.getFeatureStateForScope=function(e,t,r,n){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(o){return[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",routeValues:{featureId:e,userScope:t,scopeName:r,scopeValue:n}})]})})},t.prototype.setFeatureStateForScope=function(e,t,r,n,o,a,u){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(s){return i={reason:a,reasonCode:u},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PATCH",routeTemplate:"_apis/FeatureManagement/FeatureStates/{userScope}/{scopeName}/{scopeValue}/{featureId}",routeValues:{featureId:t,userScope:r,scopeName:n,scopeValue:o},queryParams:i,body:e})]})})},t.prototype.queryFeatureStates=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/FeatureManagement/FeatureStatesQuery",body:e})]})})},t.prototype.queryFeatureStatesForDefaultScope=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/FeatureManagement/FeatureStatesQuery/{userScope}",routeValues:{userScope:t},body:e})]})})},t.prototype.queryFeatureStatesForNamedScope=function(e,t,r,n){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/FeatureManagement/FeatureStatesQuery/{userScope}/{scopeName}/{scopeValue}",routeValues:{userScope:t,scopeName:r,scopeValue:n},body:e})]})})},t}(r.RestClientBase);t.FeatureManagementRestClient=n});
@@ -1,3 +1,20 @@
1
+ /**
2
+ * Compression type for file stored in Blobstore
3
+ */
4
+ export declare enum BlobCompressionType {
5
+ None = 0,
6
+ GZip = 1
7
+ }
8
+ /**
9
+ * Represents an reference to a file in Blobstore
10
+ */
11
+ export interface ContainerItemBlobReference {
12
+ artifactHash: string;
13
+ artifactId: number;
14
+ compressionType: BlobCompressionType;
15
+ scopeIdentifier: string;
16
+ sessionId: string;
17
+ }
1
18
  /**
2
19
  * Status of a container item.
3
20
  */
@@ -102,6 +119,11 @@ export interface FileContainer {
102
119
  * Represents an item in a container.
103
120
  */
104
121
  export interface FileContainerItem {
122
+ /**
123
+ * Id for Blobstore reference
124
+ */
125
+ artifactId: number;
126
+ blobMetadata: ContainerItemBlobReference;
105
127
  /**
106
128
  * Container Id.
107
129
  */
@@ -6,6 +6,14 @@
6
6
  define(["require", "exports"], function (require, exports) {
7
7
  "use strict";
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
+ /**
10
+ * Compression type for file stored in Blobstore
11
+ */
12
+ var BlobCompressionType;
13
+ (function (BlobCompressionType) {
14
+ BlobCompressionType[BlobCompressionType["None"] = 0] = "None";
15
+ BlobCompressionType[BlobCompressionType["GZip"] = 1] = "GZip";
16
+ })(BlobCompressionType = exports.BlobCompressionType || (exports.BlobCompressionType = {}));
9
17
  /**
10
18
  * Status of a container item.
11
19
  */
@@ -1 +1 @@
1
- define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.Created=1]="Created",e[e.PendingUpload=2]="PendingUpload"}(n.ContainerItemStatus||(n.ContainerItemStatus={}));!function(e){e[e.Any=0]="Any",e[e.Folder=1]="Folder",e[e.File=2]="File"}(n.ContainerItemType||(n.ContainerItemType={}));!function(e){e[e.None=0]="None"}(n.ContainerOptions||(n.ContainerOptions={}))});
1
+ define(["require","exports"],function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.GZip=1]="GZip"}(n.BlobCompressionType||(n.BlobCompressionType={}));!function(e){e[e.Created=1]="Created",e[e.PendingUpload=2]="PendingUpload"}(n.ContainerItemStatus||(n.ContainerItemStatus={}));!function(e){e[e.Any=0]="Any",e[e.Folder=1]="Folder",e[e.File=2]="File"}(n.ContainerItemType||(n.ContainerItemType={}));!function(e){e[e.None=0]="None"}(n.ContainerOptions||(n.ContainerOptions={}))});
@@ -5,7 +5,7 @@ import * as WebApi from "../WebApi/WebApi";
5
5
  export declare class FileContainerRestClient extends RestClientBase {
6
6
  constructor(options: IVssRestClientOptions);
7
7
  /**
8
- * Creates the specified items in in the referenced container.
8
+ * Creates the specified items in the referenced container.
9
9
  *
10
10
  * @param items -
11
11
  * @param containerId -
@@ -36,6 +36,9 @@ export declare class FileContainerRestClient extends RestClientBase {
36
36
  * @param downloadFileName -
37
37
  * @param includeDownloadTickets -
38
38
  * @param isShallow -
39
+ * @param ignoreRequestedMediaType -
40
+ * @param includeBlobMetadata -
41
+ * @param saveAbsolutePath -
39
42
  */
40
- getItems(containerId: number, scope?: string, itemPath?: string, metadata?: boolean, format?: string, downloadFileName?: string, includeDownloadTickets?: boolean, isShallow?: boolean): Promise<FileContainer.FileContainerItem[]>;
43
+ getItems(containerId: number, scope?: string, itemPath?: string, metadata?: boolean, format?: string, downloadFileName?: string, includeDownloadTickets?: boolean, isShallow?: boolean, ignoreRequestedMediaType?: boolean, includeBlobMetadata?: boolean, saveAbsolutePath?: boolean): Promise<FileContainer.FileContainerItem[]>;
41
44
  }
@@ -57,7 +57,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
57
57
  return _super.call(this, options) || this;
58
58
  }
59
59
  /**
60
- * Creates the specified items in in the referenced container.
60
+ * Creates the specified items in the referenced container.
61
61
  *
62
62
  * @param items -
63
63
  * @param containerId -
@@ -71,7 +71,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
71
71
  scope: scope
72
72
  };
73
73
  return [2 /*return*/, this.beginRequest({
74
- apiVersion: "5.2-preview.4",
74
+ apiVersion: "7.1-preview.4",
75
75
  method: "POST",
76
76
  routeTemplate: "_apis/resources/Containers/{containerId}/{*itemPath}",
77
77
  routeValues: {
@@ -99,7 +99,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
99
99
  scope: scope
100
100
  };
101
101
  return [2 /*return*/, this.beginRequest({
102
- apiVersion: "5.2-preview.4",
102
+ apiVersion: "7.1-preview.4",
103
103
  method: "DELETE",
104
104
  routeTemplate: "_apis/resources/Containers/{containerId}/{*itemPath}",
105
105
  routeValues: {
@@ -125,7 +125,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
125
125
  artifactUris: artifactUris
126
126
  };
127
127
  return [2 /*return*/, this.beginRequest({
128
- apiVersion: "5.2-preview.4",
128
+ apiVersion: "7.1-preview.4",
129
129
  routeTemplate: "_apis/resources/Containers/{containerId}/{*itemPath}",
130
130
  queryParams: queryValues
131
131
  })];
@@ -141,8 +141,11 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
141
141
  * @param downloadFileName -
142
142
  * @param includeDownloadTickets -
143
143
  * @param isShallow -
144
+ * @param ignoreRequestedMediaType -
145
+ * @param includeBlobMetadata -
146
+ * @param saveAbsolutePath -
144
147
  */
145
- FileContainerRestClient.prototype.getItems = function (containerId, scope, itemPath, metadata, format, downloadFileName, includeDownloadTickets, isShallow) {
148
+ FileContainerRestClient.prototype.getItems = function (containerId, scope, itemPath, metadata, format, downloadFileName, includeDownloadTickets, isShallow, ignoreRequestedMediaType, includeBlobMetadata, saveAbsolutePath) {
146
149
  return __awaiter(this, void 0, void 0, function () {
147
150
  var queryValues;
148
151
  return __generator(this, function (_a) {
@@ -153,10 +156,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
153
156
  '$format': format,
154
157
  downloadFileName: downloadFileName,
155
158
  includeDownloadTickets: includeDownloadTickets,
156
- isShallow: isShallow
159
+ isShallow: isShallow,
160
+ ignoreRequestedMediaType: ignoreRequestedMediaType,
161
+ includeBlobMetadata: includeBlobMetadata,
162
+ saveAbsolutePath: saveAbsolutePath
157
163
  };
158
164
  return [2 /*return*/, this.beginRequest({
159
- apiVersion: "5.2-preview.4",
165
+ apiVersion: "7.1-preview.4",
160
166
  routeTemplate: "_apis/resources/Containers/{containerId}/{*itemPath}",
161
167
  routeValues: {
162
168
  containerId: containerId