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
@@ -48,7 +48,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
48
48
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
49
49
  }
50
50
  };
51
- define(["require", "exports", "../Common/RestClientBase"], function (require, exports, RestClientBase_1) {
51
+ define(["require", "exports", "../Common/RestClientBase", "../Common/Util/Serialization"], function (require, exports, RestClientBase_1, Serialization_1) {
52
52
  "use strict";
53
53
  Object.defineProperty(exports, "__esModule", { value: true });
54
54
  var ServiceEndpointRestClient = /** @class */ (function (_super) {
@@ -64,7 +64,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
64
64
  return __awaiter(this, void 0, void 0, function () {
65
65
  return __generator(this, function (_a) {
66
66
  return [2 /*return*/, this.beginRequest({
67
- apiVersion: "5.2-preview.1",
67
+ apiVersion: "7.1-preview.1",
68
68
  routeTemplate: "_apis/serviceendpoint/endpointproxy/azurermmanagementgroups"
69
69
  })];
70
70
  });
@@ -78,7 +78,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
78
78
  return __awaiter(this, void 0, void 0, function () {
79
79
  return __generator(this, function (_a) {
80
80
  return [2 /*return*/, this.beginRequest({
81
- apiVersion: "5.2-preview.1",
81
+ apiVersion: "7.1-preview.1",
82
82
  routeTemplate: "_apis/serviceendpoint/endpointproxy/azurermsubscriptions"
83
83
  })];
84
84
  });
@@ -99,7 +99,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
99
99
  endpointId: endpointId
100
100
  };
101
101
  return [2 /*return*/, this.beginRequest({
102
- apiVersion: "5.2-preview.1",
102
+ apiVersion: "7.1-preview.1",
103
103
  method: "POST",
104
104
  routeTemplate: "{project}/_apis/serviceendpoint/endpointproxy",
105
105
  routeValues: {
@@ -121,7 +121,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
121
121
  return __awaiter(this, void 0, void 0, function () {
122
122
  return __generator(this, function (_a) {
123
123
  return [2 /*return*/, this.beginRequest({
124
- apiVersion: "5.2-preview.1",
124
+ apiVersion: "7.1-preview.1",
125
125
  method: "POST",
126
126
  routeTemplate: "{project}/_apis/serviceendpoint/endpointproxy",
127
127
  routeValues: {
@@ -133,46 +133,42 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
133
133
  });
134
134
  };
135
135
  /**
136
- * Create a service endpoint.
136
+ * Creates a new service endpoint
137
137
  *
138
- * @param endpoint - Service endpoint to create.
139
- * @param project - Project ID or project name
138
+ * @param endpoint - Service endpoint to create
140
139
  */
141
- ServiceEndpointRestClient.prototype.createServiceEndpoint = function (endpoint, project) {
140
+ ServiceEndpointRestClient.prototype.createServiceEndpoint = function (endpoint) {
142
141
  return __awaiter(this, void 0, void 0, function () {
143
142
  return __generator(this, function (_a) {
144
143
  return [2 /*return*/, this.beginRequest({
145
- apiVersion: "5.2-preview.2",
144
+ apiVersion: "7.1-preview.4",
146
145
  method: "POST",
147
- routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
148
- routeValues: {
149
- project: project
150
- },
146
+ routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
151
147
  body: endpoint
152
148
  })];
153
149
  });
154
150
  });
155
151
  };
156
152
  /**
157
- * Delete a service endpoint.
153
+ * Delete a service endpoint
158
154
  *
159
- * @param project - Project ID or project name
160
- * @param endpointId - Id of the service endpoint to delete.
161
- * @param deep - Specific to AzureRM endpoint created in Automatic flow. When set to true, this will also delete corresponding AAD application in Azure. Default value is true.
155
+ * @param endpointId - Endpoint Id of endpoint to delete
156
+ * @param projectIds - project Ids from which endpoint needs to be deleted
157
+ * @param deep - delete the spn created by endpoint
162
158
  */
163
- ServiceEndpointRestClient.prototype.deleteServiceEndpoint = function (project, endpointId, deep) {
159
+ ServiceEndpointRestClient.prototype.deleteServiceEndpoint = function (endpointId, projectIds, deep) {
164
160
  return __awaiter(this, void 0, void 0, function () {
165
161
  var queryValues;
166
162
  return __generator(this, function (_a) {
167
163
  queryValues = {
164
+ projectIds: projectIds && projectIds.join(","),
168
165
  deep: deep
169
166
  };
170
167
  return [2 /*return*/, this.beginRequest({
171
- apiVersion: "5.2-preview.2",
168
+ apiVersion: "7.1-preview.4",
172
169
  method: "DELETE",
173
- routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
170
+ routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
174
171
  routeValues: {
175
- project: project,
176
172
  endpointId: endpointId
177
173
  },
178
174
  queryParams: queryValues
@@ -180,22 +176,93 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
180
176
  });
181
177
  });
182
178
  };
179
+ /**
180
+ * Share service endpoint across projects
181
+ *
182
+ * @param endpointProjectReferences - Project reference details of the target project
183
+ * @param endpointId - Endpoint Id of the endpoint to share
184
+ */
185
+ ServiceEndpointRestClient.prototype.shareServiceEndpoint = function (endpointProjectReferences, endpointId) {
186
+ return __awaiter(this, void 0, void 0, function () {
187
+ return __generator(this, function (_a) {
188
+ return [2 /*return*/, this.beginRequest({
189
+ apiVersion: "7.1-preview.4",
190
+ method: "PATCH",
191
+ routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
192
+ routeValues: {
193
+ endpointId: endpointId
194
+ },
195
+ body: endpointProjectReferences
196
+ })];
197
+ });
198
+ });
199
+ };
200
+ /**
201
+ * Update the service endpoint
202
+ *
203
+ * @param endpoint - Updated data for the endpoint
204
+ * @param endpointId - Endpoint Id of the endpoint to update
205
+ * @param operation - operation type
206
+ */
207
+ ServiceEndpointRestClient.prototype.updateServiceEndpoint = function (endpoint, endpointId, operation) {
208
+ return __awaiter(this, void 0, void 0, function () {
209
+ var queryValues;
210
+ return __generator(this, function (_a) {
211
+ queryValues = {
212
+ operation: operation
213
+ };
214
+ return [2 /*return*/, this.beginRequest({
215
+ apiVersion: "7.1-preview.4",
216
+ method: "PUT",
217
+ routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
218
+ routeValues: {
219
+ endpointId: endpointId
220
+ },
221
+ queryParams: queryValues,
222
+ body: endpoint
223
+ })];
224
+ });
225
+ });
226
+ };
227
+ /**
228
+ * Update the service endpoints.
229
+ *
230
+ * @param endpoints - Names of the service endpoints to update.
231
+ */
232
+ ServiceEndpointRestClient.prototype.updateServiceEndpoints = function (endpoints) {
233
+ return __awaiter(this, void 0, void 0, function () {
234
+ return __generator(this, function (_a) {
235
+ return [2 /*return*/, this.beginRequest({
236
+ apiVersion: "7.1-preview.4",
237
+ method: "PUT",
238
+ routeTemplate: "_apis/serviceendpoint/endpoints/{endpointId}",
239
+ body: endpoints
240
+ })];
241
+ });
242
+ });
243
+ };
183
244
  /**
184
245
  * Get the service endpoint details.
185
246
  *
186
247
  * @param project - Project ID or project name
187
248
  * @param endpointId - Id of the service endpoint.
249
+ * @param actionFilter - Action filter for the service connection. It specifies the action which can be performed on the service connection.
188
250
  */
189
- ServiceEndpointRestClient.prototype.getServiceEndpointDetails = function (project, endpointId) {
251
+ ServiceEndpointRestClient.prototype.getServiceEndpointDetails = function (project, endpointId, actionFilter) {
190
252
  return __awaiter(this, void 0, void 0, function () {
253
+ var queryValues;
191
254
  return __generator(this, function (_a) {
255
+ queryValues = {
256
+ actionFilter: actionFilter
257
+ };
192
258
  return [2 /*return*/, this.beginRequest({
193
- apiVersion: "5.2-preview.2",
259
+ apiVersion: "7.1-preview.4",
194
260
  routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
195
261
  routeValues: {
196
262
  project: project,
197
263
  endpointId: endpointId
198
- }
264
+ },
265
+ queryParams: queryValues
199
266
  })];
200
267
  });
201
268
  });
@@ -224,7 +291,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
224
291
  includeDetails: includeDetails
225
292
  };
226
293
  return [2 /*return*/, this.beginRequest({
227
- apiVersion: "5.2-preview.2",
294
+ apiVersion: "7.1-preview.4",
228
295
  routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
229
296
  routeValues: {
230
297
  project: project
@@ -258,7 +325,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
258
325
  includeDetails: includeDetails
259
326
  };
260
327
  return [2 /*return*/, this.beginRequest({
261
- apiVersion: "5.2-preview.2",
328
+ apiVersion: "7.1-preview.4",
262
329
  routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
263
330
  routeValues: {
264
331
  project: project
@@ -283,7 +350,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
283
350
  endpointIds: endpointIds && endpointIds.join(",")
284
351
  };
285
352
  return [2 /*return*/, this.beginRequest({
286
- apiVersion: "5.2-preview.2",
353
+ apiVersion: "7.1-preview.4",
287
354
  method: "POST",
288
355
  routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
289
356
  routeValues: {
@@ -295,56 +362,6 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
295
362
  });
296
363
  });
297
364
  };
298
- /**
299
- * Update a service endpoint.
300
- *
301
- * @param endpoint - Service endpoint to update.
302
- * @param project - Project ID or project name
303
- * @param endpointId - Id of the service endpoint to update.
304
- * @param operation - Operation for the service endpoint.
305
- */
306
- ServiceEndpointRestClient.prototype.updateServiceEndpoint = function (endpoint, project, endpointId, operation) {
307
- return __awaiter(this, void 0, void 0, function () {
308
- var queryValues;
309
- return __generator(this, function (_a) {
310
- queryValues = {
311
- operation: operation
312
- };
313
- return [2 /*return*/, this.beginRequest({
314
- apiVersion: "5.2-preview.2",
315
- method: "PUT",
316
- routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
317
- routeValues: {
318
- project: project,
319
- endpointId: endpointId
320
- },
321
- queryParams: queryValues,
322
- body: endpoint
323
- })];
324
- });
325
- });
326
- };
327
- /**
328
- * Update the service endpoints.
329
- *
330
- * @param endpoints - Names of the service endpoints to update.
331
- * @param project - Project ID or project name
332
- */
333
- ServiceEndpointRestClient.prototype.updateServiceEndpoints = function (endpoints, project) {
334
- return __awaiter(this, void 0, void 0, function () {
335
- return __generator(this, function (_a) {
336
- return [2 /*return*/, this.beginRequest({
337
- apiVersion: "5.2-preview.2",
338
- method: "PUT",
339
- routeTemplate: "{project}/_apis/serviceendpoint/endpoints/{endpointId}",
340
- routeValues: {
341
- project: project
342
- },
343
- body: endpoints
344
- })];
345
- });
346
- });
347
- };
348
365
  /**
349
366
  * Get service endpoint execution records.
350
367
  *
@@ -356,20 +373,33 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
356
373
  ServiceEndpointRestClient.prototype.getServiceEndpointExecutionRecords = function (project, endpointId, top, continuationToken) {
357
374
  return __awaiter(this, void 0, void 0, function () {
358
375
  var queryValues;
376
+ var _this = this;
359
377
  return __generator(this, function (_a) {
360
378
  queryValues = {
361
379
  top: top,
362
380
  continuationToken: continuationToken
363
381
  };
364
382
  return [2 /*return*/, this.beginRequest({
365
- apiVersion: "5.2-preview.1",
383
+ apiVersion: "7.1-preview.1",
366
384
  routeTemplate: "{project}/_apis/serviceendpoint/{endpointId}/executionhistory",
367
385
  routeValues: {
368
386
  project: project,
369
387
  endpointId: endpointId
370
388
  },
371
- queryParams: queryValues
372
- })];
389
+ queryParams: queryValues,
390
+ returnRawResponse: true
391
+ }).then(function (response) { return __awaiter(_this, void 0, void 0, function () {
392
+ var body;
393
+ return __generator(this, function (_a) {
394
+ switch (_a.label) {
395
+ case 0: return [4 /*yield*/, response.text().then(Serialization_1.deserializeVssJsonObject)];
396
+ case 1:
397
+ body = _a.sent();
398
+ body.continuationToken = response.headers.get("x-ms-continuationtoken");
399
+ return [2 /*return*/, body];
400
+ }
401
+ });
402
+ }); })];
373
403
  });
374
404
  });
375
405
  };
@@ -383,7 +413,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
383
413
  return __awaiter(this, void 0, void 0, function () {
384
414
  return __generator(this, function (_a) {
385
415
  return [2 /*return*/, this.beginRequest({
386
- apiVersion: "5.2-preview.1",
416
+ apiVersion: "7.1-preview.1",
387
417
  method: "POST",
388
418
  routeTemplate: "{project}/_apis/serviceendpoint/executionhistory",
389
419
  routeValues: {
@@ -401,7 +431,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
401
431
  return __awaiter(this, void 0, void 0, function () {
402
432
  return __generator(this, function (_a) {
403
433
  return [2 /*return*/, this.beginRequest({
404
- apiVersion: "5.2-preview.1",
434
+ apiVersion: "7.1-preview.1",
405
435
  method: "POST",
406
436
  routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
407
437
  body: configurationParams
@@ -416,7 +446,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
416
446
  return __awaiter(this, void 0, void 0, function () {
417
447
  return __generator(this, function (_a) {
418
448
  return [2 /*return*/, this.beginRequest({
419
- apiVersion: "5.2-preview.1",
449
+ apiVersion: "7.1-preview.1",
420
450
  method: "DELETE",
421
451
  routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
422
452
  routeValues: {
@@ -433,7 +463,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
433
463
  return __awaiter(this, void 0, void 0, function () {
434
464
  return __generator(this, function (_a) {
435
465
  return [2 /*return*/, this.beginRequest({
436
- apiVersion: "5.2-preview.1",
466
+ apiVersion: "7.1-preview.1",
437
467
  routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
438
468
  routeValues: {
439
469
  configurationId: configurationId
@@ -455,7 +485,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
455
485
  actionFilter: actionFilter
456
486
  };
457
487
  return [2 /*return*/, this.beginRequest({
458
- apiVersion: "5.2-preview.1",
488
+ apiVersion: "7.1-preview.1",
459
489
  routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
460
490
  queryParams: queryValues
461
491
  })];
@@ -470,7 +500,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
470
500
  return __awaiter(this, void 0, void 0, function () {
471
501
  return __generator(this, function (_a) {
472
502
  return [2 /*return*/, this.beginRequest({
473
- apiVersion: "5.2-preview.1",
503
+ apiVersion: "7.1-preview.1",
474
504
  method: "PUT",
475
505
  routeTemplate: "_apis/serviceendpoint/oauthconfiguration/{configurationId}",
476
506
  routeValues: {
@@ -493,7 +523,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
493
523
  project: project
494
524
  };
495
525
  return [2 /*return*/, this.beginRequest({
496
- apiVersion: "5.2-preview.1",
526
+ apiVersion: "7.1-preview.1",
497
527
  routeTemplate: "_apis/serviceendpoint/share/{endpointId}",
498
528
  routeValues: {
499
529
  endpointId: endpointId
@@ -517,7 +547,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
517
547
  withProject: withProject
518
548
  };
519
549
  return [2 /*return*/, this.beginRequest({
520
- apiVersion: "5.2-preview.1",
550
+ apiVersion: "7.1-preview.1",
521
551
  method: "POST",
522
552
  routeTemplate: "_apis/serviceendpoint/share/{endpointId}",
523
553
  routeValues: {
@@ -543,28 +573,13 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
543
573
  scheme: scheme
544
574
  };
545
575
  return [2 /*return*/, this.beginRequest({
546
- apiVersion: "5.2-preview.1",
576
+ apiVersion: "7.1-preview.1",
547
577
  routeTemplate: "_apis/serviceendpoint/types",
548
578
  queryParams: queryValues
549
579
  })];
550
580
  });
551
581
  });
552
582
  };
553
- /**
554
- * @param authenticationRequest -
555
- */
556
- ServiceEndpointRestClient.prototype.acquireAccessToken = function (authenticationRequest) {
557
- return __awaiter(this, void 0, void 0, function () {
558
- return __generator(this, function (_a) {
559
- return [2 /*return*/, this.beginRequest({
560
- apiVersion: "5.2-preview.1",
561
- method: "POST",
562
- routeTemplate: "_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",
563
- body: authenticationRequest
564
- })];
565
- });
566
- });
567
- };
568
583
  /**
569
584
  * @param tenantId -
570
585
  * @param redirectUri -
@@ -584,7 +599,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
584
599
  completeCallbackByAuthCode: completeCallbackByAuthCode
585
600
  };
586
601
  return [2 /*return*/, this.beginRequest({
587
- apiVersion: "5.2-preview.1",
602
+ apiVersion: "7.1-preview.1",
588
603
  method: "POST",
589
604
  routeTemplate: "_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",
590
605
  queryParams: queryValues
@@ -598,7 +613,7 @@ define(["require", "exports", "../Common/RestClientBase"], function (require, ex
598
613
  return __awaiter(this, void 0, void 0, function () {
599
614
  return __generator(this, function (_a) {
600
615
  return [2 /*return*/, this.beginRequest({
601
- apiVersion: "5.2-preview.1",
616
+ apiVersion: "7.1-preview.1",
602
617
  routeTemplate: "_apis/serviceendpoint/vstsaadoauth/vstsaadoauth"
603
618
  })];
604
619
  });
@@ -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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function u(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(u){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(o=2&n[0]?r.return:n[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,n[1])).done)return o;switch(r=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,u])}}var i,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase"],function(e,t,n){"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.getAzureManagementGroups=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/serviceendpoint/endpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=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/serviceendpoint/endpointproxy/azurermsubscriptions"})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointId:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={deep:n},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"DELETE",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e,endpointId:t},queryParams:i})]})})},t.prototype.getServiceEndpointDetails=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e,endpointId:t}})]})})},t.prototype.getServiceEndpoints=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={type:t,authSchemes:n&&n.join(","),endpointIds:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={endpointNames:t&&t.join(","),type:n,authSchemes:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"5.2-preview.2",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsWithRefreshedAuthentication=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointIds:n&&n.join(",")},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.updateServiceEndpoint=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={operation:i},[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t,endpointId:n},queryParams:r,body:e})]})})},t.prototype.updateServiceEndpoints=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.2",method:"PUT",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,n,i){return __awaiter(this,void 0,void 0,function(){var r;return __generator(this,function(o){return r={top:n,continuationToken:i},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"{project}/_apis/serviceendpoint/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:r})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.createOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",body:e})]})})},t.prototype.deleteOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={endpointType:e,actionFilter:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",queryParams:n})]})})},t.prototype.updateOAuthConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"PUT",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:t},body:e})]})})},t.prototype.querySharedProjects=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={project:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:n})]})})},t.prototype.shareEndpointWithProject=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={fromProject:t,withProject:n},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,scheme:t},[2,this.beginRequest({apiVersion:"5.2-preview.1",routeTemplate:"_apis/serviceendpoint/types",queryParams:n})]})})},t.prototype.acquireAccessToken=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/serviceendpoint/vstsaadoauth/vstsaadoauth",body:e})]})})},t.prototype.createAadOAuthRequest=function(e,t,n,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={tenantId:e,redirectUri:t,promptOption:n,completeCallbackPayload:i,completeCallbackByAuthCode:r},[2,this.beginRequest({apiVersion:"5.2-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",queryParams:o})]})})},t.prototype.getVstsAadTenantId=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/serviceendpoint/vstsaadoauth/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7",t}(n.RestClientBase);t.ServiceEndpointRestClient=i});
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 n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),__awaiter=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))(function(r,o){function u(e){try{s(i.next(e))}catch(e){o(e)}}function a(e){try{s(i.throw(e))}catch(e){o(e)}}function s(e){e.done?r(e.value):new n(function(t){t(e.value)}).then(u,a)}s((i=i.apply(e,t||[])).next())})},__generator=this&&this.__generator||function(e,t){function n(n){return function(u){return function(n){if(i)throw new TypeError("Generator is already executing.");for(;a;)try{if(i=1,r&&(o=2&n[0]?r.return:n[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,n[1])).done)return o;switch(r=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,r=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],r=0}finally{i=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,u])}}var i,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u};define(["require","exports","../Common/RestClientBase","../Common/Util/Serialization"],function(e,t,n,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.getAzureManagementGroups=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/serviceendpoint/endpointproxy/azurermmanagementgroups"})]})})},t.prototype.getAzureSubscriptions=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/serviceendpoint/endpointproxy/azurermsubscriptions"})]})})},t.prototype.executeServiceEndpointRequest=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointId:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.queryServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpointproxy",routeValues:{project:t},body:e})]})})},t.prototype.createServiceEndpoint=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/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.deleteServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={projectIds:t&&t.join(","),deep:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"DELETE",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.shareServiceEndpoint=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PATCH",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},body:e})]})})},t.prototype.updateServiceEndpoint=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={operation:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{endpointId:t},queryParams:i,body:e})]})})},t.prototype.updateServiceEndpoints=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:"PUT",routeTemplate:"_apis/serviceendpoint/endpoints/{endpointId}",body:e})]})})},t.prototype.getServiceEndpointDetails=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={actionFilter:n},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e,endpointId:t},queryParams:i})]})})},t.prototype.getServiceEndpoints=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={type:t,authSchemes:n&&n.join(","),endpointIds:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsByNames=function(e,t,n,i,r,o,u){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){return a={endpointNames:t&&t.join(","),type:n,authSchemes:i&&i.join(","),owner:r,includeFailed:o,includeDetails:u},[2,this.beginRequest({apiVersion:"7.1-preview.4",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:e},queryParams:a})]})})},t.prototype.getServiceEndpointsWithRefreshedAuthentication=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={endpointIds:n&&n.join(",")},[2,this.beginRequest({apiVersion:"7.1-preview.4",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/endpoints/{endpointId}",routeValues:{project:t},queryParams:i,body:e})]})})},t.prototype.getServiceEndpointExecutionRecords=function(e,t,n,r){return __awaiter(this,void 0,void 0,function(){var o,u=this;return __generator(this,function(a){return o={top:n,continuationToken:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"{project}/_apis/serviceendpoint/{endpointId}/executionhistory",routeValues:{project:e,endpointId:t},queryParams:o,returnRawResponse:!0}).then(function(e){return __awaiter(u,void 0,void 0,function(){var t;return __generator(this,function(n){switch(n.label){case 0:return[4,e.text().then(i.deserializeVssJsonObject)];case 1:return t=n.sent(),t.continuationToken=e.headers.get("x-ms-continuationtoken"),[2,t]}})})})]})})},t.prototype.addServiceEndpointExecutionRecords=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"{project}/_apis/serviceendpoint/executionhistory",routeValues:{project:t},body:e})]})})},t.prototype.createOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",body:e})]})})},t.prototype.deleteOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfiguration=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/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:e}})]})})},t.prototype.getOAuthConfigurations=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={endpointType:e,actionFilter:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",queryParams:n})]})})},t.prototype.updateOAuthConfiguration=function(e,t){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(n){return[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"PUT",routeTemplate:"_apis/serviceendpoint/oauthconfiguration/{configurationId}",routeValues:{configurationId:t},body:e})]})})},t.prototype.querySharedProjects=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={project:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:n})]})})},t.prototype.shareEndpointWithProject=function(e,t,n){return __awaiter(this,void 0,void 0,function(){var i;return __generator(this,function(r){return i={fromProject:t,withProject:n},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/share/{endpointId}",routeValues:{endpointId:e},queryParams:i})]})})},t.prototype.getServiceEndpointTypes=function(e,t){return __awaiter(this,void 0,void 0,function(){var n;return __generator(this,function(i){return n={type:e,scheme:t},[2,this.beginRequest({apiVersion:"7.1-preview.1",routeTemplate:"_apis/serviceendpoint/types",queryParams:n})]})})},t.prototype.createAadOAuthRequest=function(e,t,n,i,r){return __awaiter(this,void 0,void 0,function(){var o;return __generator(this,function(u){return o={tenantId:e,redirectUri:t,promptOption:n,completeCallbackPayload:i,completeCallbackByAuthCode:r},[2,this.beginRequest({apiVersion:"7.1-preview.1",method:"POST",routeTemplate:"_apis/serviceendpoint/vstsaadoauth/vstsaadoauth",queryParams:o})]})})},t.prototype.getVstsAadTenantId=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/serviceendpoint/vstsaadoauth/vstsaadoauth"})]})})},t.RESOURCE_AREA_ID="1814ab31-2f4f-4a9f-8761-f4d77dc5a5d7",t}(n.RestClientBase);t.ServiceEndpointRestClient=r});
@@ -508,7 +508,7 @@ export interface Publisher {
508
508
  */
509
509
  export interface PublisherEvent {
510
510
  /**
511
- * Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notificaton.
511
+ * Add key/value pairs which will be stored with a published notification in the SH service DB. This key/value pairs are for diagnostic purposes only and will have not effect on the delivery of a notification.
512
512
  */
513
513
  diagnostics: {
514
514
  [key: string]: string;
@@ -619,6 +619,7 @@ export interface Subscription {
619
619
  eventDescription: string;
620
620
  eventType: string;
621
621
  id: string;
622
+ lastProbationRetryDate: Date;
622
623
  modifiedBy: WebApi.IdentityRef;
623
624
  modifiedDate: Date;
624
625
  probationRetries: number;