azure-devops-extension-api 4.269.1 → 5.271.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accounts/Accounts.d.ts +126 -126
- package/Accounts/Accounts.js +61 -62
- package/Accounts/Accounts.min.js +1 -1
- package/Accounts/AccountsClient.d.ts +24 -24
- package/Accounts/AccountsClient.js +78 -124
- package/Accounts/AccountsClient.min.js +1 -1
- package/Accounts/index.d.ts +2 -2
- package/Accounts/index.js +18 -9
- package/Accounts/index.min.js +1 -1
- package/AdvancedSecurity.Reporting/Reporting.d.ts +717 -712
- package/AdvancedSecurity.Reporting/Reporting.js +203 -204
- package/AdvancedSecurity.Reporting/Reporting.min.js +1 -1
- package/AdvancedSecurity.Reporting/ReportingClient.d.ts +83 -83
- package/AdvancedSecurity.Reporting/ReportingClient.js +267 -343
- package/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -1
- package/Alert/Alert.d.ts +1265 -1245
- package/Alert/Alert.js +425 -426
- package/Alert/Alert.min.js +1 -1
- package/Alert/AlertClient.d.ts +184 -159
- package/Alert/AlertClient.js +512 -533
- package/Alert/AlertClient.min.js +1 -1
- package/Build/Build.d.ts +3318 -3292
- package/Build/Build.js +613 -607
- package/Build/Build.min.js +1 -1
- package/Build/BuildClient.d.ts +842 -820
- package/Build/BuildClient.js +2319 -2568
- package/Build/BuildClient.min.js +1 -1
- package/Build/BuildServices.d.ts +32 -32
- package/Build/BuildServices.js +13 -14
- package/Build/BuildServices.min.js +1 -1
- package/Build/index.d.ts +3 -3
- package/Build/index.js +19 -10
- package/Build/index.min.js +1 -1
- package/Comments/Comments.d.ts +309 -309
- package/Comments/Comments.js +93 -94
- package/Comments/Comments.min.js +1 -1
- package/Comments/index.d.ts +1 -1
- package/Comments/index.js +17 -8
- package/Comments/index.min.js +1 -1
- package/Common/Client.d.ts +9 -9
- package/Common/Client.js +25 -26
- package/Common/Client.min.js +1 -1
- package/Common/CommonServices.d.ts +774 -735
- package/Common/CommonServices.js +71 -72
- package/Common/CommonServices.min.js +1 -1
- package/Common/Context.js +2 -0
- package/Common/Fetch.d.ts +95 -95
- package/Common/Fetch.js +131 -169
- package/Common/Fetch.min.js +1 -1
- package/Common/RestClientBase.d.ts +96 -96
- package/Common/RestClientBase.js +109 -139
- package/Common/RestClientBase.min.js +1 -1
- package/Common/System.d.ts +30 -30
- package/Common/System.js +39 -40
- package/Common/System.min.js +1 -1
- package/Common/SystemData.d.ts +129 -129
- package/Common/SystemData.js +138 -139
- package/Common/SystemData.min.js +1 -1
- package/Common/Util/Serialization.d.ts +15 -15
- package/Common/Util/Serialization.js +51 -53
- package/Common/Util/Serialization.min.js +1 -1
- package/Common/Util/Url.d.ts +238 -236
- package/Common/Util/Url.js +605 -626
- package/Common/Util/Url.min.js +1 -1
- package/Common/index.d.ts +3 -3
- package/Common/index.js +19 -9
- package/Common/index.min.js +1 -1
- package/Contributions/Contributions.d.ts +694 -694
- package/Contributions/Contributions.js +185 -186
- package/Contributions/Contributions.min.js +1 -1
- package/Contributions/ContributionsClient.d.ts +31 -31
- package/Contributions/ContributionsClient.js +99 -147
- package/Contributions/ContributionsClient.min.js +1 -1
- package/Contributions/index.d.ts +2 -2
- package/Contributions/index.js +18 -9
- package/Contributions/index.min.js +1 -1
- package/Core/Core.d.ts +546 -546
- package/Core/Core.js +79 -80
- package/Core/Core.min.js +1 -1
- package/Core/CoreClient.d.ts +224 -224
- package/Core/CoreClient.js +652 -777
- package/Core/CoreClient.min.js +1 -1
- package/Core/index.d.ts +2 -2
- package/Core/index.js +18 -9
- package/Core/index.min.js +1 -1
- package/Dashboard/Dashboard.d.ts +393 -393
- package/Dashboard/Dashboard.js +56 -57
- package/Dashboard/Dashboard.min.js +1 -1
- package/Dashboard/DashboardClient.d.ts +106 -106
- package/Dashboard/DashboardClient.js +317 -393
- package/Dashboard/DashboardClient.min.js +1 -1
- package/Dashboard/WidgetConfigHelpers.d.ts +34 -34
- package/Dashboard/WidgetConfigHelpers.js +41 -45
- package/Dashboard/WidgetConfigHelpers.min.js +1 -1
- package/Dashboard/WidgetContracts.d.ts +213 -213
- package/Dashboard/WidgetContracts.js +24 -25
- package/Dashboard/WidgetContracts.min.js +1 -1
- package/Dashboard/WidgetHelpers.d.ts +89 -89
- package/Dashboard/WidgetHelpers.js +135 -146
- package/Dashboard/WidgetHelpers.min.js +1 -1
- package/Dashboard/index.d.ts +5 -5
- package/Dashboard/index.js +21 -12
- package/Dashboard/index.min.js +1 -1
- package/DistributedTaskCommon/DistributedTaskCommon.d.ts +103 -103
- package/DistributedTaskCommon/DistributedTaskCommon.js +7 -9
- package/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -1
- package/DistributedTaskCommon/index.d.ts +1 -1
- package/DistributedTaskCommon/index.js +17 -4
- package/DistributedTaskCommon/index.min.js +1 -1
- package/ExtensionManagement/ExtensionManagement.d.ts +1163 -1163
- package/ExtensionManagement/ExtensionManagement.js +284 -285
- package/ExtensionManagement/ExtensionManagement.min.js +1 -1
- package/ExtensionManagement/ExtensionManagementClient.d.ts +191 -191
- package/ExtensionManagement/ExtensionManagementClient.js +551 -648
- package/ExtensionManagement/ExtensionManagementClient.min.js +1 -1
- package/ExtensionManagement/index.d.ts +2 -2
- package/ExtensionManagement/index.js +18 -9
- package/ExtensionManagement/index.min.js +1 -1
- package/Favorite/Favorite.d.ts +124 -124
- package/Favorite/Favorite.js +7 -9
- package/Favorite/Favorite.min.js +1 -1
- package/Favorite/FavoriteClient.d.ts +78 -78
- package/Favorite/FavoriteClient.js +247 -314
- package/Favorite/FavoriteClient.min.js +1 -1
- package/FeatureAvailability/FeatureAvailability.d.ts +13 -13
- package/FeatureAvailability/FeatureAvailability.js +7 -9
- package/FeatureAvailability/FeatureAvailability.min.js +1 -1
- package/FeatureAvailability/FeatureAvailabilityClient.d.ts +45 -45
- package/FeatureAvailability/FeatureAvailabilityClient.js +136 -189
- package/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -1
- package/FeatureAvailability/index.d.ts +2 -2
- package/FeatureAvailability/index.js +18 -8
- package/FeatureAvailability/index.min.js +1 -1
- package/FeatureManagement/FeatureManagement.d.ts +161 -161
- package/FeatureManagement/FeatureManagement.js +26 -27
- package/FeatureManagement/FeatureManagement.min.js +1 -1
- package/FeatureManagement/FeatureManagementClient.d.ts +78 -78
- package/FeatureManagement/FeatureManagementClient.js +214 -273
- package/FeatureManagement/FeatureManagementClient.min.js +1 -1
- package/FeatureManagement/index.d.ts +2 -2
- package/FeatureManagement/index.js +18 -9
- package/FeatureManagement/index.min.js +1 -1
- package/FileContainer/FileContainer.d.ts +193 -193
- package/FileContainer/FileContainer.js +58 -59
- package/FileContainer/FileContainer.min.js +1 -1
- package/FileContainer/FileContainerClient.d.ts +47 -47
- package/FileContainer/FileContainerClient.js +132 -182
- package/FileContainer/FileContainerClient.min.js +1 -1
- package/FileContainer/index.d.ts +2 -2
- package/FileContainer/index.js +18 -9
- package/FileContainer/index.min.js +1 -1
- package/FormInput/FormInput.d.ts +278 -278
- package/FormInput/FormInput.js +77 -78
- package/FormInput/FormInput.min.js +1 -1
- package/FormInput/index.d.ts +1 -1
- package/FormInput/index.js +17 -8
- package/FormInput/index.min.js +1 -1
- package/Gallery/Gallery.d.ts +1911 -1911
- package/Gallery/Gallery.js +788 -789
- package/Gallery/Gallery.min.js +1 -1
- package/Gallery/GalleryClient.d.ts +613 -603
- package/Gallery/GalleryClient.js +1884 -2100
- package/Gallery/GalleryClient.min.js +1 -1
- package/Gallery/index.d.ts +2 -2
- package/Gallery/index.js +18 -9
- package/Gallery/index.min.js +1 -1
- package/Git/CodeEditorTypes.d.ts +305 -305
- package/Git/CodeEditorTypes.js +27 -28
- package/Git/CodeEditorTypes.min.js +1 -1
- package/Git/Git.d.ts +3976 -3888
- package/Git/Git.js +830 -817
- package/Git/Git.min.js +1 -1
- package/Git/GitClient.d.ts +1468 -1454
- package/Git/GitClient.js +3892 -4313
- package/Git/GitClient.min.js +1 -1
- package/Git/GitServices.d.ts +16 -16
- package/Git/GitServices.js +10 -11
- package/Git/GitServices.min.js +1 -1
- package/Git/index.d.ts +4 -4
- package/Git/index.js +20 -11
- package/Git/index.min.js +1 -1
- package/Graph/Graph.d.ts +518 -518
- package/Graph/Graph.js +14 -15
- package/Graph/Graph.min.js +1 -1
- package/Graph/GraphClient.d.ts +261 -261
- package/Graph/GraphClient.js +737 -867
- package/Graph/GraphClient.min.js +1 -1
- package/Graph/index.d.ts +2 -2
- package/Graph/index.js +18 -9
- package/Graph/index.min.js +1 -1
- package/Identities/Identities.d.ts +242 -241
- package/Identities/Identities.js +49 -50
- package/Identities/Identities.min.js +1 -1
- package/Identities/IdentityProvider.d.ts +40 -40
- package/Identities/IdentityProvider.js +47 -49
- package/Identities/IdentityProvider.min.js +1 -1
- package/Identities/IdentityService.d.ts +72 -72
- package/Identities/IdentityService.js +13 -14
- package/Identities/IdentityService.min.js +1 -1
- package/Identities/index.d.ts +3 -3
- package/Identities/index.js +19 -10
- package/Identities/index.min.js +1 -1
- package/Locations/Locations.d.ts +150 -150
- package/Locations/Locations.js +28 -29
- package/Locations/Locations.min.js +1 -1
- package/Locations/LocationsClient.d.ts +65 -65
- package/Locations/LocationsClient.js +211 -276
- package/Locations/LocationsClient.min.js +1 -1
- package/Locations/index.d.ts +2 -2
- package/Locations/index.js +18 -9
- package/Locations/index.min.js +1 -1
- package/Management/Management.d.ts +424 -407
- package/Management/Management.js +27 -28
- package/Management/Management.min.js +1 -1
- package/Management/ManagementClient.d.ts +116 -105
- package/Management/ManagementClient.js +349 -398
- package/Management/ManagementClient.min.js +1 -1
- package/Notification/Notification.d.ts +1387 -1387
- package/Notification/Notification.js +385 -386
- package/Notification/Notification.min.js +1 -1
- package/Notification/NotificationClient.d.ts +149 -149
- package/Notification/NotificationClient.js +420 -511
- package/Notification/NotificationClient.min.js +1 -1
- package/Notification/index.d.ts +2 -2
- package/Notification/index.js +18 -9
- package/Notification/index.min.js +1 -1
- package/Operations/Operations.d.ts +77 -77
- package/Operations/Operations.js +38 -39
- package/Operations/Operations.min.js +1 -1
- package/Operations/OperationsClient.d.ts +13 -13
- package/Operations/OperationsClient.js +45 -86
- package/Operations/OperationsClient.min.js +1 -1
- package/Operations/index.d.ts +2 -2
- package/Operations/index.js +18 -9
- package/Operations/index.min.js +1 -1
- package/Pipelines/Pipelines.d.ts +341 -341
- package/Pipelines/Pipelines.js +82 -83
- package/Pipelines/Pipelines.min.js +1 -1
- package/Pipelines/PipelinesClient.d.ts +92 -92
- package/Pipelines/PipelinesClient.js +260 -325
- package/Pipelines/PipelinesClient.min.js +1 -1
- package/Policy/Policy.d.ts +160 -160
- package/Policy/Policy.js +38 -39
- package/Policy/Policy.min.js +1 -1
- package/Policy/PolicyClient.d.ts +99 -99
- package/Policy/PolicyClient.js +274 -346
- package/Policy/PolicyClient.min.js +1 -1
- package/Policy/index.d.ts +2 -2
- package/Policy/index.js +18 -9
- package/Policy/index.min.js +1 -1
- package/Profile/Profile.d.ts +175 -175
- package/Profile/Profile.js +35 -36
- package/Profile/Profile.min.js +1 -1
- package/Profile/ProfileClient.d.ts +86 -86
- package/Profile/ProfileClient.js +277 -347
- package/Profile/ProfileClient.min.js +1 -1
- package/Profile/index.d.ts +2 -2
- package/Profile/index.js +18 -9
- package/Profile/index.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysis.d.ts +59 -59
- package/ProjectAnalysis/ProjectAnalysis.js +18 -19
- package/ProjectAnalysis/ProjectAnalysis.min.js +1 -1
- package/ProjectAnalysis/ProjectAnalysisClient.d.ts +34 -34
- package/ProjectAnalysis/ProjectAnalysisClient.js +110 -159
- package/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -1
- package/ProjectAnalysis/index.d.ts +2 -2
- package/ProjectAnalysis/index.js +18 -9
- package/ProjectAnalysis/index.min.js +1 -1
- package/README.md +57 -1
- package/Release/Release.d.ts +4068 -4068
- package/Release/Release.js +876 -877
- package/Release/Release.min.js +1 -1
- package/Release/ReleaseClient.d.ts +720 -720
- package/Release/ReleaseClient.js +2003 -2273
- package/Release/ReleaseClient.min.js +1 -1
- package/Release/index.d.ts +2 -2
- package/Release/index.js +18 -9
- package/Release/index.min.js +1 -1
- package/ResourceUsage/ResourceUsage.d.ts +13 -13
- package/ResourceUsage/ResourceUsage.js +7 -9
- package/ResourceUsage/ResourceUsage.min.js +1 -1
- package/ResourceUsage/ResourceUsageClient.d.ts +20 -20
- package/ResourceUsage/ResourceUsageClient.js +51 -93
- package/ResourceUsage/ResourceUsageClient.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpoint.d.ts +894 -894
- package/ServiceEndpoint/ServiceEndpoint.js +84 -85
- package/ServiceEndpoint/ServiceEndpoint.min.js +1 -1
- package/ServiceEndpoint/ServiceEndpointClient.d.ts +190 -190
- package/ServiceEndpoint/ServiceEndpointClient.js +556 -669
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -1
- package/ServiceEndpoint/index.d.ts +2 -2
- package/ServiceEndpoint/index.js +18 -9
- package/ServiceEndpoint/index.min.js +1 -1
- package/ServiceHooks/ServiceHooks.d.ts +758 -758
- package/ServiceHooks/ServiceHooks.js +114 -115
- package/ServiceHooks/ServiceHooks.min.js +1 -1
- package/ServiceHooks/ServiceHooksClient.d.ts +156 -156
- package/ServiceHooks/ServiceHooksClient.js +434 -526
- package/ServiceHooks/ServiceHooksClient.min.js +1 -1
- package/ServiceHooks/index.d.ts +2 -2
- package/ServiceHooks/index.js +18 -9
- package/ServiceHooks/index.min.js +1 -1
- package/TaskAgent/TaskAgent.d.ts +3777 -3764
- package/TaskAgent/TaskAgent.js +594 -594
- package/TaskAgent/TaskAgent.min.js +1 -1
- package/TaskAgent/TaskAgentClient.d.ts +1085 -1073
- package/TaskAgent/TaskAgentClient.js +3273 -3731
- package/TaskAgent/TaskAgentClient.min.js +1 -1
- package/TaskAgent/index.d.ts +2 -2
- package/TaskAgent/index.js +18 -9
- package/TaskAgent/index.min.js +1 -1
- package/Test/Test.d.ts +5918 -5874
- package/Test/Test.js +1068 -1069
- package/Test/Test.min.js +1 -1
- package/Test/TestClient.d.ts +635 -635
- package/Test/TestClient.js +1822 -2088
- package/Test/TestClient.min.js +1 -1
- package/Test/index.d.ts +2 -2
- package/Test/index.js +18 -9
- package/Test/index.min.js +1 -1
- package/TestPlan/TestPlan.d.ts +1616 -1616
- package/TestPlan/TestPlan.js +270 -271
- package/TestPlan/TestPlan.min.js +1 -1
- package/TestPlan/TestPlanClient.d.ts +408 -408
- package/TestPlan/TestPlanClient.js +1160 -1387
- package/TestPlan/TestPlanClient.min.js +1 -1
- package/TestPlan/index.d.ts +2 -2
- package/TestPlan/index.js +18 -9
- package/TestPlan/index.min.js +1 -1
- package/TestResults/TestResults.d.ts +5 -5
- package/TestResults/TestResults.js +7 -9
- package/TestResults/TestResults.min.js +1 -1
- package/TestResults/TestResultsClient.d.ts +1060 -1039
- package/TestResults/TestResultsClient.js +3099 -3491
- package/TestResults/TestResultsClient.min.js +1 -1
- package/TestResults/index.d.ts +2 -2
- package/TestResults/index.js +18 -8
- package/TestResults/index.min.js +1 -1
- package/Tfvc/Tfvc.d.ts +730 -730
- package/Tfvc/Tfvc.js +106 -107
- package/Tfvc/Tfvc.min.js +1 -1
- package/Tfvc/TfvcClient.d.ts +227 -227
- package/Tfvc/TfvcClient.js +620 -732
- package/Tfvc/TfvcClient.min.js +1 -1
- package/Tfvc/index.d.ts +2 -2
- package/Tfvc/index.js +18 -9
- package/Tfvc/index.min.js +1 -1
- package/WebApi/WebApi.d.ts +408 -408
- package/WebApi/WebApi.js +55 -56
- package/WebApi/WebApi.min.js +1 -1
- package/WebApi/index.d.ts +1 -1
- package/WebApi/index.js +17 -8
- package/WebApi/index.min.js +1 -1
- package/Wiki/Wiki.d.ts +328 -328
- package/Wiki/Wiki.js +22 -23
- package/Wiki/Wiki.min.js +1 -1
- package/Wiki/WikiClient.d.ts +218 -218
- package/Wiki/WikiClient.js +585 -684
- package/Wiki/WikiClient.min.js +1 -1
- package/Wiki/index.d.ts +2 -2
- package/Wiki/index.js +18 -9
- package/Wiki/index.min.js +1 -1
- package/Work/Work.d.ts +1298 -1298
- package/Work/Work.js +187 -188
- package/Work/Work.min.js +1 -1
- package/Work/WorkClient.d.ts +421 -421
- package/Work/WorkClient.js +1255 -1455
- package/Work/WorkClient.min.js +1 -1
- package/Work/index.d.ts +2 -2
- package/Work/index.js +18 -9
- package/Work/index.min.js +1 -1
- package/WorkItemTracking/WorkItemTracking.d.ts +2158 -2124
- package/WorkItemTracking/WorkItemTracking.js +431 -432
- package/WorkItemTracking/WorkItemTracking.min.js +1 -1
- package/WorkItemTracking/WorkItemTrackingClient.d.ts +624 -624
- package/WorkItemTracking/WorkItemTrackingClient.js +1688 -1918
- package/WorkItemTracking/WorkItemTrackingClient.min.js +1 -1
- package/WorkItemTracking/WorkItemTrackingServices.d.ts +320 -320
- package/WorkItemTracking/WorkItemTrackingServices.js +18 -19
- package/WorkItemTracking/WorkItemTrackingServices.min.js +1 -1
- package/WorkItemTracking/index.d.ts +3 -3
- package/WorkItemTracking/index.js +19 -10
- package/WorkItemTracking/index.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.d.ts +1238 -1238
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.js +299 -300
- package/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -1
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.d.ts +462 -462
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1224 -1386
- package/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -1
- package/WorkItemTrackingProcess/index.d.ts +2 -2
- package/WorkItemTrackingProcess/index.js +18 -9
- package/WorkItemTrackingProcess/index.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.d.ts +575 -575
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +96 -97
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.d.ts +376 -376
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +991 -1126
- package/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -1
- package/WorkItemTrackingProcessDefinitions/index.d.ts +2 -2
- package/WorkItemTrackingProcessDefinitions/index.js +18 -9
- package/WorkItemTrackingProcessDefinitions/index.min.js +1 -1
- package/_manifest/Spdx2xVs3xComparisonToolOutput.json +33 -0
- package/_manifest/spdx_2.2/ESRPClientLogs0504231512019.json +1 -0
- package/_manifest/spdx_2.2/bsi.cose +0 -0
- package/_manifest/spdx_2.2/bsi.json +1 -1
- package/_manifest/spdx_2.2/manifest.cat +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.cose +0 -0
- package/_manifest/spdx_2.2/manifest.spdx.json +1 -1
- package/_manifest/spdx_2.2/manifest.spdx.json.sha256 +1 -1
- package/_manifest/spdx_3.0/manifest.spdx.json +1 -1
- package/_manifest/spdx_3.0/manifest.spdx.json.sha256 +1 -1
- package/esm/Accounts/Accounts.js +58 -0
- package/esm/Accounts/Accounts.min.js +1 -0
- package/esm/Accounts/AccountsClient.js +59 -0
- package/esm/Accounts/AccountsClient.min.js +1 -0
- package/esm/Accounts/index.js +2 -0
- package/esm/Accounts/index.min.js +1 -0
- package/esm/AdvancedSecurity.Reporting/Reporting.js +200 -0
- package/esm/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
- package/esm/AdvancedSecurity.Reporting/ReportingClient.js +228 -0
- package/esm/AdvancedSecurity.Reporting/ReportingClient.min.js +1 -0
- package/esm/Alert/Alert.js +422 -0
- package/esm/Alert/Alert.min.js +1 -0
- package/esm/Alert/AlertClient.js +457 -0
- package/esm/Alert/AlertClient.min.js +1 -0
- package/esm/Build/Build.js +610 -0
- package/esm/Build/Build.min.js +1 -0
- package/esm/Build/BuildClient.js +2108 -0
- package/esm/Build/BuildClient.min.js +1 -0
- package/esm/Build/BuildServices.js +10 -0
- package/esm/Build/BuildServices.min.js +1 -0
- package/esm/Build/index.js +3 -0
- package/esm/Build/index.min.js +1 -0
- package/esm/Comments/Comments.js +90 -0
- package/esm/Comments/Comments.min.js +1 -0
- package/esm/Comments/index.js +1 -0
- package/esm/Comments/index.min.js +1 -0
- package/esm/Common/Client.js +22 -0
- package/esm/Common/Client.min.js +1 -0
- package/esm/Common/CommonServices.js +68 -0
- package/esm/Common/CommonServices.min.js +1 -0
- package/esm/Common/Context.js +1 -0
- package/esm/Common/Fetch.js +117 -0
- package/esm/Common/Fetch.min.js +1 -0
- package/esm/Common/RestClientBase.js +92 -0
- package/esm/Common/RestClientBase.min.js +1 -0
- package/esm/Common/System.js +36 -0
- package/esm/Common/System.min.js +1 -0
- package/esm/Common/SystemData.js +135 -0
- package/esm/Common/SystemData.min.js +1 -0
- package/esm/Common/Util/Serialization.js +48 -0
- package/esm/Common/Util/Serialization.min.js +1 -0
- package/esm/Common/Util/Url.js +595 -0
- package/esm/Common/Util/Url.min.js +1 -0
- package/esm/Common/index.js +3 -0
- package/esm/Common/index.min.js +1 -0
- package/esm/Contributions/Contributions.js +182 -0
- package/esm/Contributions/Contributions.min.js +1 -0
- package/esm/Contributions/ContributionsClient.js +78 -0
- package/esm/Contributions/ContributionsClient.min.js +1 -0
- package/esm/Contributions/index.js +2 -0
- package/esm/Contributions/index.min.js +1 -0
- package/esm/Core/Core.js +76 -0
- package/esm/Core/Core.min.js +1 -0
- package/esm/Core/CoreClient.js +573 -0
- package/esm/Core/CoreClient.min.js +1 -0
- package/esm/Core/index.js +2 -0
- package/esm/Core/index.min.js +1 -0
- package/esm/Dashboard/Dashboard.js +53 -0
- package/esm/Dashboard/Dashboard.min.js +1 -0
- package/esm/Dashboard/DashboardClient.js +278 -0
- package/esm/Dashboard/DashboardClient.min.js +1 -0
- package/esm/Dashboard/WidgetConfigHelpers.js +37 -0
- package/esm/Dashboard/WidgetConfigHelpers.min.js +1 -0
- package/esm/Dashboard/WidgetContracts.js +21 -0
- package/esm/Dashboard/WidgetContracts.min.js +1 -0
- package/esm/Dashboard/WidgetHelpers.js +129 -0
- package/esm/Dashboard/WidgetHelpers.min.js +1 -0
- package/esm/Dashboard/index.js +5 -0
- package/esm/Dashboard/index.min.js +1 -0
- package/esm/DistributedTaskCommon/DistributedTaskCommon.js +6 -0
- package/esm/DistributedTaskCommon/DistributedTaskCommon.min.js +1 -0
- package/esm/DistributedTaskCommon/index.js +1 -0
- package/esm/DistributedTaskCommon/index.min.js +1 -0
- package/esm/ExtensionManagement/ExtensionManagement.js +281 -0
- package/esm/ExtensionManagement/ExtensionManagement.min.js +1 -0
- package/esm/ExtensionManagement/ExtensionManagementClient.js +486 -0
- package/esm/ExtensionManagement/ExtensionManagementClient.min.js +1 -0
- package/esm/ExtensionManagement/index.js +2 -0
- package/esm/ExtensionManagement/index.min.js +1 -0
- package/esm/Favorite/Favorite.js +6 -0
- package/esm/Favorite/Favorite.min.js +1 -0
- package/esm/Favorite/FavoriteClient.js +214 -0
- package/esm/Favorite/FavoriteClient.min.js +1 -0
- package/esm/FeatureAvailability/FeatureAvailability.js +6 -0
- package/esm/FeatureAvailability/FeatureAvailability.min.js +1 -0
- package/esm/FeatureAvailability/FeatureAvailabilityClient.js +113 -0
- package/esm/FeatureAvailability/FeatureAvailabilityClient.min.js +1 -0
- package/esm/FeatureAvailability/index.js +2 -0
- package/esm/FeatureAvailability/index.min.js +1 -0
- package/esm/FeatureManagement/FeatureManagement.js +23 -0
- package/esm/FeatureManagement/FeatureManagement.min.js +1 -0
- package/esm/FeatureManagement/FeatureManagementClient.js +183 -0
- package/esm/FeatureManagement/FeatureManagementClient.min.js +1 -0
- package/esm/FeatureManagement/index.js +2 -0
- package/esm/FeatureManagement/index.min.js +1 -0
- package/esm/FileContainer/FileContainer.js +55 -0
- package/esm/FileContainer/FileContainer.min.js +1 -0
- package/esm/FileContainer/FileContainerClient.js +111 -0
- package/esm/FileContainer/FileContainerClient.min.js +1 -0
- package/esm/FileContainer/index.js +2 -0
- package/esm/FileContainer/index.min.js +1 -0
- package/esm/FormInput/FormInput.js +74 -0
- package/esm/FormInput/FormInput.min.js +1 -0
- package/esm/FormInput/index.js +1 -0
- package/esm/FormInput/index.min.js +1 -0
- package/esm/Gallery/Gallery.js +785 -0
- package/esm/Gallery/Gallery.min.js +1 -0
- package/esm/Gallery/GalleryClient.js +1701 -0
- package/esm/Gallery/GalleryClient.min.js +1 -0
- package/esm/Gallery/index.js +2 -0
- package/esm/Gallery/index.min.js +1 -0
- package/esm/Git/CodeEditorTypes.js +24 -0
- package/esm/Git/CodeEditorTypes.min.js +1 -0
- package/esm/Git/Git.js +827 -0
- package/esm/Git/Git.min.js +1 -0
- package/esm/Git/GitClient.js +3571 -0
- package/esm/Git/GitClient.min.js +1 -0
- package/esm/Git/GitServices.js +7 -0
- package/esm/Git/GitServices.min.js +1 -0
- package/esm/Git/index.js +4 -0
- package/esm/Git/index.min.js +1 -0
- package/esm/Graph/Graph.js +11 -0
- package/esm/Graph/Graph.min.js +1 -0
- package/esm/Graph/GraphClient.js +644 -0
- package/esm/Graph/GraphClient.min.js +1 -0
- package/esm/Graph/index.js +2 -0
- package/esm/Graph/index.min.js +1 -0
- package/esm/Identities/Identities.js +46 -0
- package/esm/Identities/Identities.min.js +1 -0
- package/esm/Identities/IdentityProvider.js +43 -0
- package/esm/Identities/IdentityProvider.min.js +1 -0
- package/esm/Identities/IdentityService.js +10 -0
- package/esm/Identities/IdentityService.min.js +1 -0
- package/esm/Identities/index.js +3 -0
- package/esm/Identities/index.min.js +1 -0
- package/esm/Locations/Locations.js +25 -0
- package/esm/Locations/Locations.min.js +1 -0
- package/esm/Locations/LocationsClient.js +178 -0
- package/esm/Locations/LocationsClient.min.js +1 -0
- package/esm/Locations/index.js +2 -0
- package/esm/Locations/index.min.js +1 -0
- package/esm/Management/Management.js +24 -0
- package/esm/Management/Management.min.js +1 -0
- package/esm/Management/ManagementClient.js +302 -0
- package/esm/Management/ManagementClient.min.js +1 -0
- package/esm/Notification/Notification.js +382 -0
- package/esm/Notification/Notification.min.js +1 -0
- package/esm/Notification/NotificationClient.js +359 -0
- package/esm/Notification/NotificationClient.min.js +1 -0
- package/esm/Notification/index.js +2 -0
- package/esm/Notification/index.min.js +1 -0
- package/esm/Operations/Operations.js +35 -0
- package/esm/Operations/Operations.min.js +1 -0
- package/esm/Operations/OperationsClient.js +30 -0
- package/esm/Operations/OperationsClient.min.js +1 -0
- package/esm/Operations/index.js +2 -0
- package/esm/Operations/index.min.js +1 -0
- package/esm/Pipelines/Pipelines.js +79 -0
- package/esm/Pipelines/Pipelines.min.js +1 -0
- package/esm/Pipelines/PipelinesClient.js +227 -0
- package/esm/Pipelines/PipelinesClient.min.js +1 -0
- package/esm/Policy/Policy.js +35 -0
- package/esm/Policy/Policy.min.js +1 -0
- package/esm/Policy/PolicyClient.js +237 -0
- package/esm/Policy/PolicyClient.min.js +1 -0
- package/esm/Policy/index.js +2 -0
- package/esm/Policy/index.min.js +1 -0
- package/esm/Profile/Profile.js +32 -0
- package/esm/Profile/Profile.min.js +1 -0
- package/esm/Profile/ProfileClient.js +240 -0
- package/esm/Profile/ProfileClient.min.js +1 -0
- package/esm/Profile/index.js +2 -0
- package/esm/Profile/index.min.js +1 -0
- package/esm/ProjectAnalysis/ProjectAnalysis.js +15 -0
- package/esm/ProjectAnalysis/ProjectAnalysis.min.js +1 -0
- package/esm/ProjectAnalysis/ProjectAnalysisClient.js +89 -0
- package/esm/ProjectAnalysis/ProjectAnalysisClient.min.js +1 -0
- package/esm/ProjectAnalysis/index.js +2 -0
- package/esm/ProjectAnalysis/index.min.js +1 -0
- package/esm/Release/Release.js +873 -0
- package/esm/Release/Release.min.js +1 -0
- package/esm/Release/ReleaseClient.js +1816 -0
- package/esm/Release/ReleaseClient.min.js +1 -0
- package/esm/Release/index.js +2 -0
- package/esm/Release/index.min.js +1 -0
- package/esm/ResourceUsage/ResourceUsage.js +6 -0
- package/esm/ResourceUsage/ResourceUsage.min.js +1 -0
- package/esm/ResourceUsage/ResourceUsageClient.js +34 -0
- package/esm/ResourceUsage/ResourceUsageClient.min.js +1 -0
- package/esm/ServiceEndpoint/ServiceEndpoint.js +81 -0
- package/esm/ServiceEndpoint/ServiceEndpoint.min.js +1 -0
- package/esm/ServiceEndpoint/ServiceEndpointClient.js +489 -0
- package/esm/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
- package/esm/ServiceEndpoint/index.js +2 -0
- package/esm/ServiceEndpoint/index.min.js +1 -0
- package/esm/ServiceHooks/ServiceHooks.js +111 -0
- package/esm/ServiceHooks/ServiceHooks.min.js +1 -0
- package/esm/ServiceHooks/ServiceHooksClient.js +375 -0
- package/esm/ServiceHooks/ServiceHooksClient.min.js +1 -0
- package/esm/ServiceHooks/index.js +2 -0
- package/esm/ServiceHooks/index.min.js +1 -0
- package/esm/TaskAgent/TaskAgent.js +590 -0
- package/esm/TaskAgent/TaskAgent.min.js +1 -0
- package/esm/TaskAgent/TaskAgentClient.js +2946 -0
- package/esm/TaskAgent/TaskAgentClient.min.js +1 -0
- package/esm/TaskAgent/index.js +2 -0
- package/esm/TaskAgent/index.min.js +1 -0
- package/esm/Test/Test.js +1065 -0
- package/esm/Test/Test.min.js +1 -0
- package/esm/Test/TestClient.js +1655 -0
- package/esm/Test/TestClient.min.js +1 -0
- package/esm/Test/index.js +2 -0
- package/esm/Test/index.min.js +1 -0
- package/esm/TestPlan/TestPlan.js +267 -0
- package/esm/TestPlan/TestPlan.min.js +1 -0
- package/esm/TestPlan/TestPlanClient.js +1051 -0
- package/esm/TestPlan/TestPlanClient.min.js +1 -0
- package/esm/TestPlan/index.js +2 -0
- package/esm/TestPlan/index.min.js +1 -0
- package/esm/TestResults/TestResults.js +6 -0
- package/esm/TestResults/TestResults.min.js +1 -0
- package/esm/TestResults/TestResultsClient.js +2822 -0
- package/esm/TestResults/TestResultsClient.min.js +1 -0
- package/esm/TestResults/index.js +2 -0
- package/esm/TestResults/index.min.js +1 -0
- package/esm/Tfvc/Tfvc.js +103 -0
- package/esm/Tfvc/Tfvc.min.js +1 -0
- package/esm/Tfvc/TfvcClient.js +559 -0
- package/esm/Tfvc/TfvcClient.min.js +1 -0
- package/esm/Tfvc/index.js +2 -0
- package/esm/Tfvc/index.min.js +1 -0
- package/esm/WebApi/WebApi.js +52 -0
- package/esm/WebApi/WebApi.min.js +1 -0
- package/esm/WebApi/index.js +1 -0
- package/esm/WebApi/index.min.js +1 -0
- package/esm/Wiki/Wiki.js +19 -0
- package/esm/Wiki/Wiki.min.js +1 -0
- package/esm/Wiki/WikiClient.js +528 -0
- package/esm/Wiki/WikiClient.min.js +1 -0
- package/esm/Wiki/index.js +2 -0
- package/esm/Wiki/index.min.js +1 -0
- package/esm/Work/Work.js +184 -0
- package/esm/Work/Work.min.js +1 -0
- package/esm/Work/WorkClient.js +1128 -0
- package/esm/Work/WorkClient.min.js +1 -0
- package/esm/Work/index.js +2 -0
- package/esm/Work/index.min.js +1 -0
- package/esm/WorkItemTracking/WorkItemTracking.js +428 -0
- package/esm/WorkItemTracking/WorkItemTracking.min.js +1 -0
- package/esm/WorkItemTracking/WorkItemTrackingClient.js +1525 -0
- package/esm/WorkItemTracking/WorkItemTrackingClient.min.js +1 -0
- package/esm/WorkItemTracking/WorkItemTrackingServices.js +15 -0
- package/esm/WorkItemTracking/WorkItemTrackingServices.min.js +1 -0
- package/esm/WorkItemTracking/index.js +3 -0
- package/esm/WorkItemTracking/index.min.js +1 -0
- package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.js +296 -0
- package/esm/WorkItemTrackingProcess/WorkItemTrackingProcess.min.js +1 -0
- package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.js +1097 -0
- package/esm/WorkItemTrackingProcess/WorkItemTrackingProcessClient.min.js +1 -0
- package/esm/WorkItemTrackingProcess/index.js +2 -0
- package/esm/WorkItemTrackingProcess/index.min.js +1 -0
- package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.js +93 -0
- package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.min.js +1 -0
- package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.js +886 -0
- package/esm/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.min.js +1 -0
- package/esm/WorkItemTrackingProcessDefinitions/index.js +2 -0
- package/esm/WorkItemTrackingProcessDefinitions/index.min.js +1 -0
- package/esm/index.js +1 -0
- package/esm/index.min.js +1 -0
- package/index.d.ts +1 -1
- package/index.js +17 -8
- package/index.min.js +1 -1
- package/package.json +232 -37
- package/Boards/Boards.d.ts +0 -631
- package/Boards/Boards.js +0 -26
- package/Boards/Boards.min.js +0 -1
- package/Boards/BoardsClient.d.ts +0 -187
- package/Boards/BoardsClient.js +0 -589
- package/Boards/BoardsClient.min.js +0 -1
- package/Boards/index.d.ts +0 -2
- package/Boards/index.js +0 -9
- package/Boards/index.min.js +0 -1
- package/_manifest/spdx_2.2/ESRPClientLogs0305214508957.json +0 -1
package/Release/ReleaseClient.js
CHANGED
|
@@ -1,2273 +1,2003 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
function
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
});
|
|
611
|
-
};
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
return
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
}
|
|
970
|
-
});
|
|
971
|
-
};
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
return
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
}
|
|
1613
|
-
});
|
|
1614
|
-
};
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
}
|
|
1647
|
-
});
|
|
1648
|
-
};
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
return
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
});
|
|
2005
|
-
});
|
|
2006
|
-
};
|
|
2007
|
-
/**
|
|
2008
|
-
* Adds a tag to a releaseId
|
|
2009
|
-
*
|
|
2010
|
-
* @param project - Project ID or project name
|
|
2011
|
-
* @param releaseId -
|
|
2012
|
-
* @param tag -
|
|
2013
|
-
*/
|
|
2014
|
-
ReleaseRestClient.prototype.addReleaseTag = function (project, releaseId, tag) {
|
|
2015
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2016
|
-
return __generator(this, function (_a) {
|
|
2017
|
-
return [2 /*return*/, this.beginRequest({
|
|
2018
|
-
apiVersion: "7.2-preview.1",
|
|
2019
|
-
method: "PATCH",
|
|
2020
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
2021
|
-
routeValues: {
|
|
2022
|
-
project: project,
|
|
2023
|
-
releaseId: releaseId,
|
|
2024
|
-
tag: tag
|
|
2025
|
-
}
|
|
2026
|
-
})];
|
|
2027
|
-
});
|
|
2028
|
-
});
|
|
2029
|
-
};
|
|
2030
|
-
/**
|
|
2031
|
-
* Adds tag to a release
|
|
2032
|
-
*
|
|
2033
|
-
* @param tags -
|
|
2034
|
-
* @param project - Project ID or project name
|
|
2035
|
-
* @param releaseId -
|
|
2036
|
-
*/
|
|
2037
|
-
ReleaseRestClient.prototype.addReleaseTags = function (tags, project, releaseId) {
|
|
2038
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2039
|
-
return __generator(this, function (_a) {
|
|
2040
|
-
return [2 /*return*/, this.beginRequest({
|
|
2041
|
-
apiVersion: "7.2-preview.1",
|
|
2042
|
-
method: "POST",
|
|
2043
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
2044
|
-
routeValues: {
|
|
2045
|
-
project: project,
|
|
2046
|
-
releaseId: releaseId
|
|
2047
|
-
},
|
|
2048
|
-
body: tags
|
|
2049
|
-
})];
|
|
2050
|
-
});
|
|
2051
|
-
});
|
|
2052
|
-
};
|
|
2053
|
-
/**
|
|
2054
|
-
* Deletes a tag from a release
|
|
2055
|
-
*
|
|
2056
|
-
* @param project - Project ID or project name
|
|
2057
|
-
* @param releaseId -
|
|
2058
|
-
* @param tag -
|
|
2059
|
-
*/
|
|
2060
|
-
ReleaseRestClient.prototype.deleteReleaseTag = function (project, releaseId, tag) {
|
|
2061
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2062
|
-
return __generator(this, function (_a) {
|
|
2063
|
-
return [2 /*return*/, this.beginRequest({
|
|
2064
|
-
apiVersion: "7.2-preview.1",
|
|
2065
|
-
method: "DELETE",
|
|
2066
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
2067
|
-
routeValues: {
|
|
2068
|
-
project: project,
|
|
2069
|
-
releaseId: releaseId,
|
|
2070
|
-
tag: tag
|
|
2071
|
-
}
|
|
2072
|
-
})];
|
|
2073
|
-
});
|
|
2074
|
-
});
|
|
2075
|
-
};
|
|
2076
|
-
/**
|
|
2077
|
-
* Gets the tags for a release
|
|
2078
|
-
*
|
|
2079
|
-
* @param project - Project ID or project name
|
|
2080
|
-
* @param releaseId -
|
|
2081
|
-
*/
|
|
2082
|
-
ReleaseRestClient.prototype.getReleaseTags = function (project, releaseId) {
|
|
2083
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2084
|
-
return __generator(this, function (_a) {
|
|
2085
|
-
return [2 /*return*/, this.beginRequest({
|
|
2086
|
-
apiVersion: "7.2-preview.1",
|
|
2087
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
2088
|
-
routeValues: {
|
|
2089
|
-
project: project,
|
|
2090
|
-
releaseId: releaseId
|
|
2091
|
-
}
|
|
2092
|
-
})];
|
|
2093
|
-
});
|
|
2094
|
-
});
|
|
2095
|
-
};
|
|
2096
|
-
/**
|
|
2097
|
-
* @param project - Project ID or project name
|
|
2098
|
-
*/
|
|
2099
|
-
ReleaseRestClient.prototype.getTags = function (project) {
|
|
2100
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2101
|
-
return __generator(this, function (_a) {
|
|
2102
|
-
return [2 /*return*/, this.beginRequest({
|
|
2103
|
-
apiVersion: "7.2-preview.1",
|
|
2104
|
-
routeTemplate: "{project}/_apis/Release/tags",
|
|
2105
|
-
routeValues: {
|
|
2106
|
-
project: project
|
|
2107
|
-
}
|
|
2108
|
-
})];
|
|
2109
|
-
});
|
|
2110
|
-
});
|
|
2111
|
-
};
|
|
2112
|
-
/**
|
|
2113
|
-
* @param project - Project ID or project name
|
|
2114
|
-
* @param releaseId -
|
|
2115
|
-
* @param environmentId -
|
|
2116
|
-
* @param releaseDeployPhaseId -
|
|
2117
|
-
*/
|
|
2118
|
-
ReleaseRestClient.prototype.getTasksForTaskGroup = function (project, releaseId, environmentId, releaseDeployPhaseId) {
|
|
2119
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2120
|
-
return __generator(this, function (_a) {
|
|
2121
|
-
return [2 /*return*/, this.beginRequest({
|
|
2122
|
-
apiVersion: "7.2-preview.2",
|
|
2123
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/deployPhases/{releaseDeployPhaseId}/tasks",
|
|
2124
|
-
routeValues: {
|
|
2125
|
-
project: project,
|
|
2126
|
-
releaseId: releaseId,
|
|
2127
|
-
environmentId: environmentId,
|
|
2128
|
-
releaseDeployPhaseId: releaseDeployPhaseId
|
|
2129
|
-
}
|
|
2130
|
-
})];
|
|
2131
|
-
});
|
|
2132
|
-
});
|
|
2133
|
-
};
|
|
2134
|
-
/**
|
|
2135
|
-
* @param project - Project ID or project name
|
|
2136
|
-
* @param releaseId -
|
|
2137
|
-
* @param environmentId -
|
|
2138
|
-
* @param attemptId -
|
|
2139
|
-
* @param timelineId -
|
|
2140
|
-
*/
|
|
2141
|
-
ReleaseRestClient.prototype.getTasks2 = function (project, releaseId, environmentId, attemptId, timelineId) {
|
|
2142
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2143
|
-
return __generator(this, function (_a) {
|
|
2144
|
-
return [2 /*return*/, this.beginRequest({
|
|
2145
|
-
apiVersion: "7.2-preview.2",
|
|
2146
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/tasks",
|
|
2147
|
-
routeValues: {
|
|
2148
|
-
project: project,
|
|
2149
|
-
releaseId: releaseId,
|
|
2150
|
-
environmentId: environmentId,
|
|
2151
|
-
attemptId: attemptId,
|
|
2152
|
-
timelineId: timelineId
|
|
2153
|
-
}
|
|
2154
|
-
})];
|
|
2155
|
-
});
|
|
2156
|
-
});
|
|
2157
|
-
};
|
|
2158
|
-
/**
|
|
2159
|
-
* @param project - Project ID or project name
|
|
2160
|
-
* @param releaseId -
|
|
2161
|
-
* @param environmentId -
|
|
2162
|
-
* @param attemptId -
|
|
2163
|
-
*/
|
|
2164
|
-
ReleaseRestClient.prototype.getTasks = function (project, releaseId, environmentId, attemptId) {
|
|
2165
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2166
|
-
var queryValues;
|
|
2167
|
-
return __generator(this, function (_a) {
|
|
2168
|
-
queryValues = {
|
|
2169
|
-
attemptId: attemptId
|
|
2170
|
-
};
|
|
2171
|
-
return [2 /*return*/, this.beginRequest({
|
|
2172
|
-
apiVersion: "7.2-preview.2",
|
|
2173
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/tasks",
|
|
2174
|
-
routeValues: {
|
|
2175
|
-
project: project,
|
|
2176
|
-
releaseId: releaseId,
|
|
2177
|
-
environmentId: environmentId
|
|
2178
|
-
},
|
|
2179
|
-
queryParams: queryValues
|
|
2180
|
-
})];
|
|
2181
|
-
});
|
|
2182
|
-
});
|
|
2183
|
-
};
|
|
2184
|
-
/**
|
|
2185
|
-
* @param project - Project ID or project name
|
|
2186
|
-
*/
|
|
2187
|
-
ReleaseRestClient.prototype.getArtifactTypeDefinitions = function (project) {
|
|
2188
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2189
|
-
return __generator(this, function (_a) {
|
|
2190
|
-
return [2 /*return*/, this.beginRequest({
|
|
2191
|
-
apiVersion: "7.2-preview.1",
|
|
2192
|
-
routeTemplate: "{project}/_apis/Release/artifacts/types",
|
|
2193
|
-
routeValues: {
|
|
2194
|
-
project: project
|
|
2195
|
-
}
|
|
2196
|
-
})];
|
|
2197
|
-
});
|
|
2198
|
-
});
|
|
2199
|
-
};
|
|
2200
|
-
/**
|
|
2201
|
-
* @param project - Project ID or project name
|
|
2202
|
-
* @param releaseDefinitionId -
|
|
2203
|
-
*/
|
|
2204
|
-
ReleaseRestClient.prototype.getArtifactVersions = function (project, releaseDefinitionId) {
|
|
2205
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2206
|
-
var queryValues;
|
|
2207
|
-
return __generator(this, function (_a) {
|
|
2208
|
-
queryValues = {
|
|
2209
|
-
releaseDefinitionId: releaseDefinitionId
|
|
2210
|
-
};
|
|
2211
|
-
return [2 /*return*/, this.beginRequest({
|
|
2212
|
-
apiVersion: "7.2-preview.1",
|
|
2213
|
-
routeTemplate: "{project}/_apis/Release/artifacts/versions",
|
|
2214
|
-
routeValues: {
|
|
2215
|
-
project: project
|
|
2216
|
-
},
|
|
2217
|
-
queryParams: queryValues
|
|
2218
|
-
})];
|
|
2219
|
-
});
|
|
2220
|
-
});
|
|
2221
|
-
};
|
|
2222
|
-
/**
|
|
2223
|
-
* @param artifacts -
|
|
2224
|
-
* @param project - Project ID or project name
|
|
2225
|
-
*/
|
|
2226
|
-
ReleaseRestClient.prototype.getArtifactVersionsForSources = function (artifacts, project) {
|
|
2227
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2228
|
-
return __generator(this, function (_a) {
|
|
2229
|
-
return [2 /*return*/, this.beginRequest({
|
|
2230
|
-
apiVersion: "7.2-preview.1",
|
|
2231
|
-
method: "POST",
|
|
2232
|
-
routeTemplate: "{project}/_apis/Release/artifacts/versions",
|
|
2233
|
-
routeValues: {
|
|
2234
|
-
project: project
|
|
2235
|
-
},
|
|
2236
|
-
body: artifacts
|
|
2237
|
-
})];
|
|
2238
|
-
});
|
|
2239
|
-
});
|
|
2240
|
-
};
|
|
2241
|
-
/**
|
|
2242
|
-
* @param project - Project ID or project name
|
|
2243
|
-
* @param releaseId -
|
|
2244
|
-
* @param baseReleaseId -
|
|
2245
|
-
* @param top -
|
|
2246
|
-
* @param artifactAlias -
|
|
2247
|
-
*/
|
|
2248
|
-
ReleaseRestClient.prototype.getReleaseWorkItemsRefs = function (project, releaseId, baseReleaseId, top, artifactAlias) {
|
|
2249
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
2250
|
-
var queryValues;
|
|
2251
|
-
return __generator(this, function (_a) {
|
|
2252
|
-
queryValues = {
|
|
2253
|
-
baseReleaseId: baseReleaseId,
|
|
2254
|
-
'$top': top,
|
|
2255
|
-
artifactAlias: artifactAlias
|
|
2256
|
-
};
|
|
2257
|
-
return [2 /*return*/, this.beginRequest({
|
|
2258
|
-
apiVersion: "7.2-preview.1",
|
|
2259
|
-
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/workitems",
|
|
2260
|
-
routeValues: {
|
|
2261
|
-
project: project,
|
|
2262
|
-
releaseId: releaseId
|
|
2263
|
-
},
|
|
2264
|
-
queryParams: queryValues
|
|
2265
|
-
})];
|
|
2266
|
-
});
|
|
2267
|
-
});
|
|
2268
|
-
};
|
|
2269
|
-
ReleaseRestClient.RESOURCE_AREA_ID = "efc2f575-36ef-48e9-b672-0c6fb4a48ac5";
|
|
2270
|
-
return ReleaseRestClient;
|
|
2271
|
-
}(RestClientBase_1.RestClientBase));
|
|
2272
|
-
exports.ReleaseRestClient = ReleaseRestClient;
|
|
2273
|
-
});
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* ---------------------------------------------------------
|
|
4
|
+
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
5
|
+
* ---------------------------------------------------------
|
|
6
|
+
*/
|
|
7
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
8
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
9
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
10
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
11
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
12
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
13
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ReleaseRestClient = void 0;
|
|
18
|
+
const RestClientBase_1 = require("../Common/RestClientBase");
|
|
19
|
+
const Serialization_1 = require("../Common/Util/Serialization");
|
|
20
|
+
class ReleaseRestClient extends RestClientBase_1.RestClientBase {
|
|
21
|
+
constructor(options) {
|
|
22
|
+
super(options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the artifact details that automation agent requires
|
|
26
|
+
*
|
|
27
|
+
* @param project - Project ID or project name
|
|
28
|
+
* @param releaseId -
|
|
29
|
+
*/
|
|
30
|
+
getAgentArtifactDefinitions(project, releaseId) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return this.beginRequest({
|
|
33
|
+
apiVersion: "7.2-preview.1",
|
|
34
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/agentartifacts",
|
|
35
|
+
routeValues: {
|
|
36
|
+
project: project,
|
|
37
|
+
releaseId: releaseId
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Get a list of approvals
|
|
44
|
+
*
|
|
45
|
+
* @param project - Project ID or project name
|
|
46
|
+
* @param assignedToFilter - Approvals assigned to this user.
|
|
47
|
+
* @param statusFilter - Approvals with this status. Default is 'pending'.
|
|
48
|
+
* @param releaseIdsFilter - Approvals for release id(s) mentioned in the filter. Multiple releases can be mentioned by separating them with ',' e.g. releaseIdsFilter=1,2,3,4.
|
|
49
|
+
* @param typeFilter - Approval with this type.
|
|
50
|
+
* @param top - Number of approvals to get. Default is 50.
|
|
51
|
+
* @param continuationToken - Gets the approvals after the continuation token provided.
|
|
52
|
+
* @param queryOrder - Gets the results in the defined order of created approvals. Default is 'descending'.
|
|
53
|
+
* @param includeMyGroupApprovals - 'true' to include my group approvals. Default is 'false'.
|
|
54
|
+
*/
|
|
55
|
+
getApprovals(project, assignedToFilter, statusFilter, releaseIdsFilter, typeFilter, top, continuationToken, queryOrder, includeMyGroupApprovals) {
|
|
56
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
+
const queryValues = {
|
|
58
|
+
assignedToFilter: assignedToFilter,
|
|
59
|
+
statusFilter: statusFilter,
|
|
60
|
+
releaseIdsFilter: releaseIdsFilter && releaseIdsFilter.join(","),
|
|
61
|
+
typeFilter: typeFilter,
|
|
62
|
+
top: top,
|
|
63
|
+
continuationToken: continuationToken,
|
|
64
|
+
queryOrder: queryOrder,
|
|
65
|
+
includeMyGroupApprovals: includeMyGroupApprovals
|
|
66
|
+
};
|
|
67
|
+
return this.beginRequest({
|
|
68
|
+
apiVersion: "7.2-preview.3",
|
|
69
|
+
routeTemplate: "{project}/_apis/Release/approvals",
|
|
70
|
+
routeValues: {
|
|
71
|
+
project: project
|
|
72
|
+
},
|
|
73
|
+
queryParams: queryValues,
|
|
74
|
+
returnRawResponse: true
|
|
75
|
+
}).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
|
|
77
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
78
|
+
return body;
|
|
79
|
+
}));
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get approval history.
|
|
84
|
+
*
|
|
85
|
+
* @param project - Project ID or project name
|
|
86
|
+
* @param approvalStepId - Id of the approval.
|
|
87
|
+
*/
|
|
88
|
+
getApprovalHistory(project, approvalStepId) {
|
|
89
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90
|
+
return this.beginRequest({
|
|
91
|
+
apiVersion: "7.2-preview.3",
|
|
92
|
+
routeTemplate: "{project}/_apis/Release/approvals/{approvalStepId}/history",
|
|
93
|
+
routeValues: {
|
|
94
|
+
project: project,
|
|
95
|
+
approvalStepId: approvalStepId
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Get an approval.
|
|
102
|
+
*
|
|
103
|
+
* @param project - Project ID or project name
|
|
104
|
+
* @param approvalId - Id of the approval.
|
|
105
|
+
* @param includeHistory - 'true' to include history of the approval. Default is 'false'.
|
|
106
|
+
*/
|
|
107
|
+
getApproval(project, approvalId, includeHistory) {
|
|
108
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
109
|
+
const queryValues = {
|
|
110
|
+
includeHistory: includeHistory
|
|
111
|
+
};
|
|
112
|
+
return this.beginRequest({
|
|
113
|
+
apiVersion: "7.2-preview.3",
|
|
114
|
+
routeTemplate: "{project}/_apis/Release/approvals/{approvalId}",
|
|
115
|
+
routeValues: {
|
|
116
|
+
project: project,
|
|
117
|
+
approvalId: approvalId
|
|
118
|
+
},
|
|
119
|
+
queryParams: queryValues
|
|
120
|
+
});
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Update status of an approval
|
|
125
|
+
*
|
|
126
|
+
* @param approval - ReleaseApproval object having status, approver and comments.
|
|
127
|
+
* @param project - Project ID or project name
|
|
128
|
+
* @param approvalId - Id of the approval.
|
|
129
|
+
*/
|
|
130
|
+
updateReleaseApproval(approval, project, approvalId) {
|
|
131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
132
|
+
return this.beginRequest({
|
|
133
|
+
apiVersion: "7.2-preview.3",
|
|
134
|
+
method: "PATCH",
|
|
135
|
+
routeTemplate: "{project}/_apis/Release/approvals/{approvalId}",
|
|
136
|
+
routeValues: {
|
|
137
|
+
project: project,
|
|
138
|
+
approvalId: approvalId
|
|
139
|
+
},
|
|
140
|
+
body: approval
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @param approvals -
|
|
146
|
+
* @param project - Project ID or project name
|
|
147
|
+
*/
|
|
148
|
+
updateReleaseApprovals(approvals, project) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
return this.beginRequest({
|
|
151
|
+
apiVersion: "7.2-preview.3",
|
|
152
|
+
method: "PATCH",
|
|
153
|
+
routeTemplate: "{project}/_apis/Release/approvals",
|
|
154
|
+
routeValues: {
|
|
155
|
+
project: project
|
|
156
|
+
},
|
|
157
|
+
body: approvals
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Get a task attachment.
|
|
163
|
+
*
|
|
164
|
+
* @param project - Project ID or project name
|
|
165
|
+
* @param releaseId - Id of the release.
|
|
166
|
+
* @param environmentId - Id of the release environment.
|
|
167
|
+
* @param attemptId - Attempt number of deployment.
|
|
168
|
+
* @param timelineId - Timeline Id of the task.
|
|
169
|
+
* @param recordId - Record Id of attachment.
|
|
170
|
+
* @param type - Type of the attachment.
|
|
171
|
+
* @param name - Name of the attachment.
|
|
172
|
+
*/
|
|
173
|
+
getTaskAttachmentContent(project, releaseId, environmentId, attemptId, timelineId, recordId, type, name) {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
return this.beginRequest({
|
|
176
|
+
apiVersion: "7.2-preview.1",
|
|
177
|
+
httpResponseType: "application/octet-stream",
|
|
178
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/records/{recordId}/attachments/{type}/{name}",
|
|
179
|
+
routeValues: {
|
|
180
|
+
project: project,
|
|
181
|
+
releaseId: releaseId,
|
|
182
|
+
environmentId: environmentId,
|
|
183
|
+
attemptId: attemptId,
|
|
184
|
+
timelineId: timelineId,
|
|
185
|
+
recordId: recordId,
|
|
186
|
+
type: type,
|
|
187
|
+
name: name
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Get a release task attachment.
|
|
194
|
+
*
|
|
195
|
+
* @param project - Project ID or project name
|
|
196
|
+
* @param releaseId - Id of the release.
|
|
197
|
+
* @param environmentId - Id of the release environment.
|
|
198
|
+
* @param attemptId - Attempt number of deployment.
|
|
199
|
+
* @param planId - Plan Id of the deploy phase.
|
|
200
|
+
* @param timelineId - Timeline Id of the task.
|
|
201
|
+
* @param recordId - Record Id of attachment.
|
|
202
|
+
* @param type - Type of the attachment.
|
|
203
|
+
* @param name - Name of the attachment.
|
|
204
|
+
*/
|
|
205
|
+
getReleaseTaskAttachmentContent(project, releaseId, environmentId, attemptId, planId, timelineId, recordId, type, name) {
|
|
206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
return this.beginRequest({
|
|
208
|
+
apiVersion: "7.2-preview.1",
|
|
209
|
+
httpResponseType: "application/octet-stream",
|
|
210
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/plan/{planId}/timelines/{timelineId}/records/{recordId}/attachments/{type}/{name}",
|
|
211
|
+
routeValues: {
|
|
212
|
+
project: project,
|
|
213
|
+
releaseId: releaseId,
|
|
214
|
+
environmentId: environmentId,
|
|
215
|
+
attemptId: attemptId,
|
|
216
|
+
planId: planId,
|
|
217
|
+
timelineId: timelineId,
|
|
218
|
+
recordId: recordId,
|
|
219
|
+
type: type,
|
|
220
|
+
name: name
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* Get the task attachments.
|
|
227
|
+
*
|
|
228
|
+
* @param project - Project ID or project name
|
|
229
|
+
* @param releaseId - Id of the release.
|
|
230
|
+
* @param environmentId - Id of the release environment.
|
|
231
|
+
* @param attemptId - Attempt number of deployment.
|
|
232
|
+
* @param timelineId - Timeline Id of the task.
|
|
233
|
+
* @param type - Type of the attachment.
|
|
234
|
+
*/
|
|
235
|
+
getTaskAttachments(project, releaseId, environmentId, attemptId, timelineId, type) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
return this.beginRequest({
|
|
238
|
+
apiVersion: "7.2-preview.1",
|
|
239
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/attachments/{type}",
|
|
240
|
+
routeValues: {
|
|
241
|
+
project: project,
|
|
242
|
+
releaseId: releaseId,
|
|
243
|
+
environmentId: environmentId,
|
|
244
|
+
attemptId: attemptId,
|
|
245
|
+
timelineId: timelineId,
|
|
246
|
+
type: type
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Get the release task attachments.
|
|
253
|
+
*
|
|
254
|
+
* @param project - Project ID or project name
|
|
255
|
+
* @param releaseId - Id of the release.
|
|
256
|
+
* @param environmentId - Id of the release environment.
|
|
257
|
+
* @param attemptId - Attempt number of deployment.
|
|
258
|
+
* @param planId - Plan Id of the deploy phase.
|
|
259
|
+
* @param type - Type of the attachment.
|
|
260
|
+
*/
|
|
261
|
+
getReleaseTaskAttachments(project, releaseId, environmentId, attemptId, planId, type) {
|
|
262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
263
|
+
return this.beginRequest({
|
|
264
|
+
apiVersion: "7.2-preview.1",
|
|
265
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/plan/{planId}/attachments/{type}",
|
|
266
|
+
routeValues: {
|
|
267
|
+
project: project,
|
|
268
|
+
releaseId: releaseId,
|
|
269
|
+
environmentId: environmentId,
|
|
270
|
+
attemptId: attemptId,
|
|
271
|
+
planId: planId,
|
|
272
|
+
type: type
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* @param artifactType -
|
|
279
|
+
* @param sourceId -
|
|
280
|
+
* @param artifactVersionId -
|
|
281
|
+
* @param project - Project ID or project name
|
|
282
|
+
*/
|
|
283
|
+
getAutoTriggerIssues(artifactType, sourceId, artifactVersionId, project) {
|
|
284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
285
|
+
const queryValues = {
|
|
286
|
+
artifactType: artifactType,
|
|
287
|
+
sourceId: sourceId,
|
|
288
|
+
artifactVersionId: artifactVersionId
|
|
289
|
+
};
|
|
290
|
+
return this.beginRequest({
|
|
291
|
+
apiVersion: "7.2-preview.1",
|
|
292
|
+
routeTemplate: "{project}/_apis/Release/autotriggerissues",
|
|
293
|
+
routeValues: {
|
|
294
|
+
project: project
|
|
295
|
+
},
|
|
296
|
+
queryParams: queryValues
|
|
297
|
+
});
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Gets a badge that indicates the status of the most recent deployment for an environment.
|
|
302
|
+
*
|
|
303
|
+
* @param projectId - The ID of the Project.
|
|
304
|
+
* @param releaseDefinitionId - The ID of the Release Definition.
|
|
305
|
+
* @param environmentId - The ID of the Environment.
|
|
306
|
+
* @param branchName - The name of the branch.
|
|
307
|
+
*/
|
|
308
|
+
getDeploymentBadge(projectId, releaseDefinitionId, environmentId, branchName) {
|
|
309
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
310
|
+
return this.beginRequest({
|
|
311
|
+
apiVersion: "7.2-preview.1",
|
|
312
|
+
routeTemplate: "_apis/public/Release/badge/{projectId}/{releaseDefinitionId}/{environmentId}/{branchName}",
|
|
313
|
+
routeValues: {
|
|
314
|
+
projectId: projectId,
|
|
315
|
+
releaseDefinitionId: releaseDefinitionId,
|
|
316
|
+
environmentId: environmentId,
|
|
317
|
+
branchName: branchName
|
|
318
|
+
}
|
|
319
|
+
});
|
|
320
|
+
});
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* @param project - Project ID or project name
|
|
324
|
+
* @param releaseId -
|
|
325
|
+
* @param baseReleaseId -
|
|
326
|
+
* @param top -
|
|
327
|
+
* @param artifactAlias -
|
|
328
|
+
*/
|
|
329
|
+
getReleaseChanges(project, releaseId, baseReleaseId, top, artifactAlias) {
|
|
330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
331
|
+
const queryValues = {
|
|
332
|
+
baseReleaseId: baseReleaseId,
|
|
333
|
+
'$top': top,
|
|
334
|
+
artifactAlias: artifactAlias
|
|
335
|
+
};
|
|
336
|
+
return this.beginRequest({
|
|
337
|
+
apiVersion: "7.2-preview.1",
|
|
338
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/changes",
|
|
339
|
+
routeValues: {
|
|
340
|
+
project: project,
|
|
341
|
+
releaseId: releaseId
|
|
342
|
+
},
|
|
343
|
+
queryParams: queryValues
|
|
344
|
+
});
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* @param project - Project ID or project name
|
|
349
|
+
* @param taskGroupId -
|
|
350
|
+
* @param propertyFilters -
|
|
351
|
+
*/
|
|
352
|
+
getDefinitionEnvironments(project, taskGroupId, propertyFilters) {
|
|
353
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
354
|
+
const queryValues = {
|
|
355
|
+
taskGroupId: taskGroupId,
|
|
356
|
+
propertyFilters: propertyFilters && propertyFilters.join(",")
|
|
357
|
+
};
|
|
358
|
+
return this.beginRequest({
|
|
359
|
+
apiVersion: "7.2-preview.1",
|
|
360
|
+
routeTemplate: "{project}/_apis/Release/definitionEnvironments",
|
|
361
|
+
routeValues: {
|
|
362
|
+
project: project
|
|
363
|
+
},
|
|
364
|
+
queryParams: queryValues
|
|
365
|
+
});
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Create a release definition
|
|
370
|
+
*
|
|
371
|
+
* @param releaseDefinition - release definition object to create.
|
|
372
|
+
* @param project - Project ID or project name
|
|
373
|
+
*/
|
|
374
|
+
createReleaseDefinition(releaseDefinition, project) {
|
|
375
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
376
|
+
return this.beginRequest({
|
|
377
|
+
apiVersion: "7.2-preview.4",
|
|
378
|
+
method: "POST",
|
|
379
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
380
|
+
routeValues: {
|
|
381
|
+
project: project
|
|
382
|
+
},
|
|
383
|
+
body: releaseDefinition
|
|
384
|
+
});
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Delete a release definition.
|
|
389
|
+
*
|
|
390
|
+
* @param project - Project ID or project name
|
|
391
|
+
* @param definitionId - Id of the release definition.
|
|
392
|
+
* @param comment - Comment for deleting a release definition.
|
|
393
|
+
* @param forceDelete - 'true' to automatically cancel any in-progress release deployments and proceed with release definition deletion . Default is 'false'.
|
|
394
|
+
*/
|
|
395
|
+
deleteReleaseDefinition(project, definitionId, comment, forceDelete) {
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
const queryValues = {
|
|
398
|
+
comment: comment,
|
|
399
|
+
forceDelete: forceDelete
|
|
400
|
+
};
|
|
401
|
+
return this.beginRequest({
|
|
402
|
+
apiVersion: "7.2-preview.4",
|
|
403
|
+
method: "DELETE",
|
|
404
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
405
|
+
routeValues: {
|
|
406
|
+
project: project,
|
|
407
|
+
definitionId: definitionId
|
|
408
|
+
},
|
|
409
|
+
queryParams: queryValues
|
|
410
|
+
});
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* Get a release definition.
|
|
415
|
+
*
|
|
416
|
+
* @param project - Project ID or project name
|
|
417
|
+
* @param definitionId - Id of the release definition.
|
|
418
|
+
* @param propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definition will contain values for the specified property Ids (if they exist). If not set, properties will not be included.
|
|
419
|
+
* @param includeDisabled - Boolean flag to include disabled definitions.
|
|
420
|
+
*/
|
|
421
|
+
getReleaseDefinition(project, definitionId, propertyFilters, includeDisabled) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const queryValues = {
|
|
424
|
+
propertyFilters: propertyFilters && propertyFilters.join(","),
|
|
425
|
+
includeDisabled: includeDisabled
|
|
426
|
+
};
|
|
427
|
+
return this.beginRequest({
|
|
428
|
+
apiVersion: "7.2-preview.4",
|
|
429
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
430
|
+
routeValues: {
|
|
431
|
+
project: project,
|
|
432
|
+
definitionId: definitionId
|
|
433
|
+
},
|
|
434
|
+
queryParams: queryValues
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Get release definition of a given revision.
|
|
440
|
+
*
|
|
441
|
+
* @param project - Project ID or project name
|
|
442
|
+
* @param definitionId - Id of the release definition.
|
|
443
|
+
* @param revision - Revision number of the release definition.
|
|
444
|
+
*/
|
|
445
|
+
getReleaseDefinitionRevision(project, definitionId, revision) {
|
|
446
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
+
const queryValues = {
|
|
448
|
+
revision: revision
|
|
449
|
+
};
|
|
450
|
+
return this.beginRequest({
|
|
451
|
+
apiVersion: "7.2-preview.4",
|
|
452
|
+
httpResponseType: "text/plain",
|
|
453
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
454
|
+
routeValues: {
|
|
455
|
+
project: project,
|
|
456
|
+
definitionId: definitionId
|
|
457
|
+
},
|
|
458
|
+
queryParams: queryValues
|
|
459
|
+
});
|
|
460
|
+
});
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* Get a list of release definitions.
|
|
464
|
+
*
|
|
465
|
+
* @param project - Project ID or project name
|
|
466
|
+
* @param searchText - Get release definitions with names containing searchText.
|
|
467
|
+
* @param expand - The properties that should be expanded in the list of Release definitions.
|
|
468
|
+
* @param artifactType - Release definitions with given artifactType will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.
|
|
469
|
+
* @param artifactSourceId - Release definitions with given artifactSourceId will be returned. e.g. For build it would be \{projectGuid\}:\{BuildDefinitionId\}, for Jenkins it would be \{JenkinsConnectionId\}:\{JenkinsDefinitionId\}, for TfsOnPrem it would be \{TfsOnPremConnectionId\}:\{ProjectName\}:\{TfsOnPremDefinitionId\}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json at https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.
|
|
470
|
+
* @param top - Number of release definitions to get.
|
|
471
|
+
* @param continuationToken - Gets the release definitions after the continuation token provided.
|
|
472
|
+
* @param queryOrder - Gets the results in the defined order. Default is 'IdAscending'.
|
|
473
|
+
* @param path - Gets the release definitions under the specified path.
|
|
474
|
+
* @param isExactNameMatch - 'true'to gets the release definitions with exact match as specified in searchText. Default is 'false'.
|
|
475
|
+
* @param tagFilter - A comma-delimited list of tags. Only release definitions with these tags will be returned.
|
|
476
|
+
* @param propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release Definitions will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release Definition from results irrespective of whether it has property set or not.
|
|
477
|
+
* @param definitionIdFilter - A comma-delimited list of release definitions to retrieve.
|
|
478
|
+
* @param isDeleted - 'true' to get release definitions that has been deleted. Default is 'false'
|
|
479
|
+
* @param searchTextContainsFolderName - 'true' to get the release definitions under the folder with name as specified in searchText. Default is 'false'.
|
|
480
|
+
*/
|
|
481
|
+
getReleaseDefinitions(project, searchText, expand, artifactType, artifactSourceId, top, continuationToken, queryOrder, path, isExactNameMatch, tagFilter, propertyFilters, definitionIdFilter, isDeleted, searchTextContainsFolderName) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
483
|
+
const queryValues = {
|
|
484
|
+
searchText: searchText,
|
|
485
|
+
'$expand': expand,
|
|
486
|
+
artifactType: artifactType,
|
|
487
|
+
artifactSourceId: artifactSourceId,
|
|
488
|
+
'$top': top,
|
|
489
|
+
continuationToken: continuationToken,
|
|
490
|
+
queryOrder: queryOrder,
|
|
491
|
+
path: path,
|
|
492
|
+
isExactNameMatch: isExactNameMatch,
|
|
493
|
+
tagFilter: tagFilter && tagFilter.join(","),
|
|
494
|
+
propertyFilters: propertyFilters && propertyFilters.join(","),
|
|
495
|
+
definitionIdFilter: definitionIdFilter && definitionIdFilter.join(","),
|
|
496
|
+
isDeleted: isDeleted,
|
|
497
|
+
searchTextContainsFolderName: searchTextContainsFolderName
|
|
498
|
+
};
|
|
499
|
+
return this.beginRequest({
|
|
500
|
+
apiVersion: "7.2-preview.4",
|
|
501
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
502
|
+
routeValues: {
|
|
503
|
+
project: project
|
|
504
|
+
},
|
|
505
|
+
queryParams: queryValues,
|
|
506
|
+
returnRawResponse: true
|
|
507
|
+
}).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
508
|
+
const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
|
|
509
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
510
|
+
return body;
|
|
511
|
+
}));
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Undelete a release definition.
|
|
516
|
+
*
|
|
517
|
+
* @param releaseDefinitionUndeleteParameter - Object for undelete release definition.
|
|
518
|
+
* @param project - Project ID or project name
|
|
519
|
+
* @param definitionId - Id of the release definition to be undeleted
|
|
520
|
+
*/
|
|
521
|
+
undeleteReleaseDefinition(releaseDefinitionUndeleteParameter, project, definitionId) {
|
|
522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
523
|
+
return this.beginRequest({
|
|
524
|
+
apiVersion: "7.2-preview.4",
|
|
525
|
+
method: "PATCH",
|
|
526
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
527
|
+
routeValues: {
|
|
528
|
+
project: project,
|
|
529
|
+
definitionId: definitionId
|
|
530
|
+
},
|
|
531
|
+
body: releaseDefinitionUndeleteParameter
|
|
532
|
+
});
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* Update a release definition.
|
|
537
|
+
*
|
|
538
|
+
* @param releaseDefinition - Release definition object to update.
|
|
539
|
+
* @param project - Project ID or project name
|
|
540
|
+
* @param skipTasksValidation - Skip task validation boolean flag
|
|
541
|
+
*/
|
|
542
|
+
updateReleaseDefinition(releaseDefinition, project, skipTasksValidation) {
|
|
543
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
544
|
+
const queryValues = {
|
|
545
|
+
skipTasksValidation: skipTasksValidation
|
|
546
|
+
};
|
|
547
|
+
return this.beginRequest({
|
|
548
|
+
apiVersion: "7.2-preview.4",
|
|
549
|
+
method: "PUT",
|
|
550
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}",
|
|
551
|
+
routeValues: {
|
|
552
|
+
project: project
|
|
553
|
+
},
|
|
554
|
+
queryParams: queryValues,
|
|
555
|
+
body: releaseDefinition
|
|
556
|
+
});
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
/**
|
|
560
|
+
* Get a list of deployments
|
|
561
|
+
*
|
|
562
|
+
* @param project - Project ID or project name
|
|
563
|
+
* @param definitionId - List the deployments for a given definition id.
|
|
564
|
+
* @param definitionEnvironmentId - List the deployments for a given definition environment id.
|
|
565
|
+
* @param createdBy - List the deployments for which deployments are created as identity specified.
|
|
566
|
+
* @param minModifiedTime - List the deployments with LastModified time \>= minModifiedTime.
|
|
567
|
+
* @param maxModifiedTime - List the deployments with LastModified time \<= maxModifiedTime.
|
|
568
|
+
* @param deploymentStatus - List the deployments with given deployment status. Default is 'All'.
|
|
569
|
+
* @param operationStatus - List the deployments with given operation status. Default is 'All'.
|
|
570
|
+
* @param latestAttemptsOnly - 'true' to include deployments with latest attempt only. Default is 'false'.
|
|
571
|
+
* @param queryOrder - List the deployments with given query order. Default is 'Descending'.
|
|
572
|
+
* @param top - List the deployments with given top. Default top is '50' and Max top is '100'.
|
|
573
|
+
* @param continuationToken - List the deployments with deployment id \>= continuationToken.
|
|
574
|
+
* @param createdFor - List the deployments for which deployments are requested as identity specified.
|
|
575
|
+
* @param minStartedTime - List the deployments with StartedOn time \>= minStartedTime.
|
|
576
|
+
* @param maxStartedTime - List the deployments with StartedOn time \<= maxStartedTime.
|
|
577
|
+
* @param sourceBranch - List the deployments that are deployed from given branch name.
|
|
578
|
+
*/
|
|
579
|
+
getDeployments(project, definitionId, definitionEnvironmentId, createdBy, minModifiedTime, maxModifiedTime, deploymentStatus, operationStatus, latestAttemptsOnly, queryOrder, top, continuationToken, createdFor, minStartedTime, maxStartedTime, sourceBranch) {
|
|
580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
581
|
+
const queryValues = {
|
|
582
|
+
definitionId: definitionId,
|
|
583
|
+
definitionEnvironmentId: definitionEnvironmentId,
|
|
584
|
+
createdBy: createdBy,
|
|
585
|
+
minModifiedTime: minModifiedTime,
|
|
586
|
+
maxModifiedTime: maxModifiedTime,
|
|
587
|
+
deploymentStatus: deploymentStatus,
|
|
588
|
+
operationStatus: operationStatus,
|
|
589
|
+
latestAttemptsOnly: latestAttemptsOnly,
|
|
590
|
+
queryOrder: queryOrder,
|
|
591
|
+
'$top': top,
|
|
592
|
+
continuationToken: continuationToken,
|
|
593
|
+
createdFor: createdFor,
|
|
594
|
+
minStartedTime: minStartedTime,
|
|
595
|
+
maxStartedTime: maxStartedTime,
|
|
596
|
+
sourceBranch: sourceBranch
|
|
597
|
+
};
|
|
598
|
+
return this.beginRequest({
|
|
599
|
+
apiVersion: "7.2-preview.2",
|
|
600
|
+
routeTemplate: "{project}/_apis/Release/deployments",
|
|
601
|
+
routeValues: {
|
|
602
|
+
project: project
|
|
603
|
+
},
|
|
604
|
+
queryParams: queryValues,
|
|
605
|
+
returnRawResponse: true
|
|
606
|
+
}).then((response) => __awaiter(this, void 0, void 0, function* () {
|
|
607
|
+
const body = yield response.text().then(Serialization_1.deserializeVssJsonObject);
|
|
608
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
609
|
+
return body;
|
|
610
|
+
}));
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* @param queryParameters -
|
|
615
|
+
* @param project - Project ID or project name
|
|
616
|
+
*/
|
|
617
|
+
getDeploymentsForMultipleEnvironments(queryParameters, project) {
|
|
618
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
619
|
+
return this.beginRequest({
|
|
620
|
+
apiVersion: "7.2-preview.2",
|
|
621
|
+
method: "POST",
|
|
622
|
+
routeTemplate: "{project}/_apis/Release/deployments",
|
|
623
|
+
routeValues: {
|
|
624
|
+
project: project
|
|
625
|
+
},
|
|
626
|
+
body: queryParameters
|
|
627
|
+
});
|
|
628
|
+
});
|
|
629
|
+
}
|
|
630
|
+
/**
|
|
631
|
+
* Get a release environment.
|
|
632
|
+
*
|
|
633
|
+
* @param project - Project ID or project name
|
|
634
|
+
* @param releaseId - Id of the release.
|
|
635
|
+
* @param environmentId - Id of the release environment.
|
|
636
|
+
* @param expand - A property that should be expanded in the environment.
|
|
637
|
+
*/
|
|
638
|
+
getReleaseEnvironment(project, releaseId, environmentId, expand) {
|
|
639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
640
|
+
const queryValues = {
|
|
641
|
+
'$expand': expand
|
|
642
|
+
};
|
|
643
|
+
return this.beginRequest({
|
|
644
|
+
apiVersion: "7.2-preview.8",
|
|
645
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}",
|
|
646
|
+
routeValues: {
|
|
647
|
+
project: project,
|
|
648
|
+
releaseId: releaseId,
|
|
649
|
+
environmentId: environmentId
|
|
650
|
+
},
|
|
651
|
+
queryParams: queryValues
|
|
652
|
+
});
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Update the status of a release environment
|
|
657
|
+
*
|
|
658
|
+
* @param environmentUpdateData - Environment update meta data.
|
|
659
|
+
* @param project - Project ID or project name
|
|
660
|
+
* @param releaseId - Id of the release.
|
|
661
|
+
* @param environmentId - Id of release environment.
|
|
662
|
+
*/
|
|
663
|
+
updateReleaseEnvironment(environmentUpdateData, project, releaseId, environmentId) {
|
|
664
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
665
|
+
return this.beginRequest({
|
|
666
|
+
apiVersion: "7.2-preview.8",
|
|
667
|
+
method: "PATCH",
|
|
668
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}",
|
|
669
|
+
routeValues: {
|
|
670
|
+
project: project,
|
|
671
|
+
releaseId: releaseId,
|
|
672
|
+
environmentId: environmentId
|
|
673
|
+
},
|
|
674
|
+
body: environmentUpdateData
|
|
675
|
+
});
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* Creates a definition environment template
|
|
680
|
+
*
|
|
681
|
+
* @param template - Definition environment template to create
|
|
682
|
+
* @param project - Project ID or project name
|
|
683
|
+
*/
|
|
684
|
+
createDefinitionEnvironmentTemplate(template, project) {
|
|
685
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
686
|
+
return this.beginRequest({
|
|
687
|
+
apiVersion: "7.2-preview.4",
|
|
688
|
+
method: "POST",
|
|
689
|
+
routeTemplate: "{project}/_apis/Release/definitions/environmenttemplates",
|
|
690
|
+
routeValues: {
|
|
691
|
+
project: project
|
|
692
|
+
},
|
|
693
|
+
body: template
|
|
694
|
+
});
|
|
695
|
+
});
|
|
696
|
+
}
|
|
697
|
+
/**
|
|
698
|
+
* Delete a definition environment template
|
|
699
|
+
*
|
|
700
|
+
* @param project - Project ID or project name
|
|
701
|
+
* @param templateId - Id of the definition environment template
|
|
702
|
+
*/
|
|
703
|
+
deleteDefinitionEnvironmentTemplate(project, templateId) {
|
|
704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
705
|
+
const queryValues = {
|
|
706
|
+
templateId: templateId
|
|
707
|
+
};
|
|
708
|
+
return this.beginRequest({
|
|
709
|
+
apiVersion: "7.2-preview.4",
|
|
710
|
+
method: "DELETE",
|
|
711
|
+
routeTemplate: "{project}/_apis/Release/definitions/environmenttemplates",
|
|
712
|
+
routeValues: {
|
|
713
|
+
project: project
|
|
714
|
+
},
|
|
715
|
+
queryParams: queryValues
|
|
716
|
+
});
|
|
717
|
+
});
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Gets a definition environment template
|
|
721
|
+
*
|
|
722
|
+
* @param project - Project ID or project name
|
|
723
|
+
* @param templateId - Id of the definition environment template
|
|
724
|
+
*/
|
|
725
|
+
getDefinitionEnvironmentTemplate(project, templateId) {
|
|
726
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
727
|
+
const queryValues = {
|
|
728
|
+
templateId: templateId
|
|
729
|
+
};
|
|
730
|
+
return this.beginRequest({
|
|
731
|
+
apiVersion: "7.2-preview.4",
|
|
732
|
+
routeTemplate: "{project}/_apis/Release/definitions/environmenttemplates",
|
|
733
|
+
routeValues: {
|
|
734
|
+
project: project
|
|
735
|
+
},
|
|
736
|
+
queryParams: queryValues
|
|
737
|
+
});
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Gets a list of definition environment templates
|
|
742
|
+
*
|
|
743
|
+
* @param project - Project ID or project name
|
|
744
|
+
* @param isDeleted - 'true' to get definition environment templates that have been deleted. Default is 'false'
|
|
745
|
+
*/
|
|
746
|
+
listDefinitionEnvironmentTemplates(project, isDeleted) {
|
|
747
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
748
|
+
const queryValues = {
|
|
749
|
+
isDeleted: isDeleted
|
|
750
|
+
};
|
|
751
|
+
return this.beginRequest({
|
|
752
|
+
apiVersion: "7.2-preview.4",
|
|
753
|
+
routeTemplate: "{project}/_apis/Release/definitions/environmenttemplates",
|
|
754
|
+
routeValues: {
|
|
755
|
+
project: project
|
|
756
|
+
},
|
|
757
|
+
queryParams: queryValues
|
|
758
|
+
});
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* Undelete a release definition environment template.
|
|
763
|
+
*
|
|
764
|
+
* @param project - Project ID or project name
|
|
765
|
+
* @param templateId - Id of the definition environment template to be undeleted
|
|
766
|
+
*/
|
|
767
|
+
undeleteReleaseDefinitionEnvironmentTemplate(project, templateId) {
|
|
768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
769
|
+
const queryValues = {
|
|
770
|
+
templateId: templateId
|
|
771
|
+
};
|
|
772
|
+
return this.beginRequest({
|
|
773
|
+
apiVersion: "7.2-preview.4",
|
|
774
|
+
method: "PATCH",
|
|
775
|
+
routeTemplate: "{project}/_apis/Release/definitions/environmenttemplates",
|
|
776
|
+
routeValues: {
|
|
777
|
+
project: project
|
|
778
|
+
},
|
|
779
|
+
queryParams: queryValues
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
/**
|
|
784
|
+
* @param favoriteItems -
|
|
785
|
+
* @param project - Project ID or project name
|
|
786
|
+
* @param scope -
|
|
787
|
+
* @param identityId -
|
|
788
|
+
*/
|
|
789
|
+
createFavorites(favoriteItems, project, scope, identityId) {
|
|
790
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
791
|
+
const queryValues = {
|
|
792
|
+
identityId: identityId
|
|
793
|
+
};
|
|
794
|
+
return this.beginRequest({
|
|
795
|
+
apiVersion: "7.2-preview.1",
|
|
796
|
+
method: "POST",
|
|
797
|
+
routeTemplate: "{project}/_apis/Release/favorites/{scope}",
|
|
798
|
+
routeValues: {
|
|
799
|
+
project: project,
|
|
800
|
+
scope: scope
|
|
801
|
+
},
|
|
802
|
+
queryParams: queryValues,
|
|
803
|
+
body: favoriteItems
|
|
804
|
+
});
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* @param project - Project ID or project name
|
|
809
|
+
* @param scope -
|
|
810
|
+
* @param identityId -
|
|
811
|
+
* @param favoriteItemIds -
|
|
812
|
+
*/
|
|
813
|
+
deleteFavorites(project, scope, identityId, favoriteItemIds) {
|
|
814
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
815
|
+
const queryValues = {
|
|
816
|
+
identityId: identityId,
|
|
817
|
+
favoriteItemIds: favoriteItemIds
|
|
818
|
+
};
|
|
819
|
+
return this.beginRequest({
|
|
820
|
+
apiVersion: "7.2-preview.1",
|
|
821
|
+
method: "DELETE",
|
|
822
|
+
routeTemplate: "{project}/_apis/Release/favorites/{scope}",
|
|
823
|
+
routeValues: {
|
|
824
|
+
project: project,
|
|
825
|
+
scope: scope
|
|
826
|
+
},
|
|
827
|
+
queryParams: queryValues
|
|
828
|
+
});
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* @param project - Project ID or project name
|
|
833
|
+
* @param scope -
|
|
834
|
+
* @param identityId -
|
|
835
|
+
*/
|
|
836
|
+
getFavorites(project, scope, identityId) {
|
|
837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
const queryValues = {
|
|
839
|
+
identityId: identityId
|
|
840
|
+
};
|
|
841
|
+
return this.beginRequest({
|
|
842
|
+
apiVersion: "7.2-preview.1",
|
|
843
|
+
routeTemplate: "{project}/_apis/Release/favorites/{scope}",
|
|
844
|
+
routeValues: {
|
|
845
|
+
project: project,
|
|
846
|
+
scope: scope
|
|
847
|
+
},
|
|
848
|
+
queryParams: queryValues
|
|
849
|
+
});
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
/**
|
|
853
|
+
* Creates a new folder.
|
|
854
|
+
*
|
|
855
|
+
* @param folder - folder.
|
|
856
|
+
* @param project - Project ID or project name
|
|
857
|
+
* @param path - Path of the folder.
|
|
858
|
+
*/
|
|
859
|
+
createFolder(folder, project, path) {
|
|
860
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
861
|
+
return this.beginRequest({
|
|
862
|
+
apiVersion: "7.2-preview.2",
|
|
863
|
+
method: "POST",
|
|
864
|
+
routeTemplate: "{project}/_apis/Release/folders/{*path}",
|
|
865
|
+
routeValues: {
|
|
866
|
+
project: project,
|
|
867
|
+
path: path
|
|
868
|
+
},
|
|
869
|
+
body: folder
|
|
870
|
+
});
|
|
871
|
+
});
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* Deletes a definition folder for given folder name and path and all it's existing definitions.
|
|
875
|
+
*
|
|
876
|
+
* @param project - Project ID or project name
|
|
877
|
+
* @param path - Path of the folder to delete.
|
|
878
|
+
*/
|
|
879
|
+
deleteFolder(project, path) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
return this.beginRequest({
|
|
882
|
+
apiVersion: "7.2-preview.2",
|
|
883
|
+
method: "DELETE",
|
|
884
|
+
routeTemplate: "{project}/_apis/Release/folders/{*path}",
|
|
885
|
+
routeValues: {
|
|
886
|
+
project: project,
|
|
887
|
+
path: path
|
|
888
|
+
}
|
|
889
|
+
});
|
|
890
|
+
});
|
|
891
|
+
}
|
|
892
|
+
/**
|
|
893
|
+
* Gets folders.
|
|
894
|
+
*
|
|
895
|
+
* @param project - Project ID or project name
|
|
896
|
+
* @param path - Path of the folder.
|
|
897
|
+
* @param queryOrder - Gets the results in the defined order. Default is 'None'.
|
|
898
|
+
*/
|
|
899
|
+
getFolders(project, path, queryOrder) {
|
|
900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
901
|
+
const queryValues = {
|
|
902
|
+
queryOrder: queryOrder
|
|
903
|
+
};
|
|
904
|
+
return this.beginRequest({
|
|
905
|
+
apiVersion: "7.2-preview.2",
|
|
906
|
+
routeTemplate: "{project}/_apis/Release/folders/{*path}",
|
|
907
|
+
routeValues: {
|
|
908
|
+
project: project,
|
|
909
|
+
path: path
|
|
910
|
+
},
|
|
911
|
+
queryParams: queryValues
|
|
912
|
+
});
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* Updates an existing folder at given existing path.
|
|
917
|
+
*
|
|
918
|
+
* @param folder - folder.
|
|
919
|
+
* @param project - Project ID or project name
|
|
920
|
+
* @param path - Path of the folder to update.
|
|
921
|
+
*/
|
|
922
|
+
updateFolder(folder, project, path) {
|
|
923
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
924
|
+
return this.beginRequest({
|
|
925
|
+
apiVersion: "7.2-preview.2",
|
|
926
|
+
method: "PATCH",
|
|
927
|
+
routeTemplate: "{project}/_apis/Release/folders/{*path}",
|
|
928
|
+
routeValues: {
|
|
929
|
+
project: project,
|
|
930
|
+
path: path
|
|
931
|
+
},
|
|
932
|
+
body: folder
|
|
933
|
+
});
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
/**
|
|
937
|
+
* Updates the gate for a deployment.
|
|
938
|
+
*
|
|
939
|
+
* @param gateUpdateMetadata - Metadata to patch the Release Gates.
|
|
940
|
+
* @param project - Project ID or project name
|
|
941
|
+
* @param gateStepId - Gate step Id.
|
|
942
|
+
*/
|
|
943
|
+
updateGates(gateUpdateMetadata, project, gateStepId) {
|
|
944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
945
|
+
return this.beginRequest({
|
|
946
|
+
apiVersion: "7.2-preview.1",
|
|
947
|
+
method: "PATCH",
|
|
948
|
+
routeTemplate: "{project}/_apis/Release/gates/{gateStepId}",
|
|
949
|
+
routeValues: {
|
|
950
|
+
project: project,
|
|
951
|
+
gateStepId: gateStepId
|
|
952
|
+
},
|
|
953
|
+
body: gateUpdateMetadata
|
|
954
|
+
});
|
|
955
|
+
});
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* @param project - Project ID or project name
|
|
959
|
+
* @param releaseId -
|
|
960
|
+
*/
|
|
961
|
+
getReleaseHistory(project, releaseId) {
|
|
962
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
963
|
+
return this.beginRequest({
|
|
964
|
+
apiVersion: "7.2-preview.1",
|
|
965
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/history",
|
|
966
|
+
routeValues: {
|
|
967
|
+
project: project,
|
|
968
|
+
releaseId: releaseId
|
|
969
|
+
}
|
|
970
|
+
});
|
|
971
|
+
});
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* @param query -
|
|
975
|
+
* @param project - Project ID or project name
|
|
976
|
+
*/
|
|
977
|
+
getInputValues(query, project) {
|
|
978
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
979
|
+
return this.beginRequest({
|
|
980
|
+
apiVersion: "7.2-preview.1",
|
|
981
|
+
method: "POST",
|
|
982
|
+
routeTemplate: "{project}/_apis/Release/artifacts/inputvaluesquery",
|
|
983
|
+
routeValues: {
|
|
984
|
+
project: project
|
|
985
|
+
},
|
|
986
|
+
body: query
|
|
987
|
+
});
|
|
988
|
+
});
|
|
989
|
+
}
|
|
990
|
+
/**
|
|
991
|
+
* @param project - Project ID or project name
|
|
992
|
+
* @param buildId -
|
|
993
|
+
* @param sourceId -
|
|
994
|
+
*/
|
|
995
|
+
getIssues(project, buildId, sourceId) {
|
|
996
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
997
|
+
const queryValues = {
|
|
998
|
+
sourceId: sourceId
|
|
999
|
+
};
|
|
1000
|
+
return this.beginRequest({
|
|
1001
|
+
apiVersion: "7.2-preview.1",
|
|
1002
|
+
routeTemplate: "{project}/_apis/Release/issues/{buildId}",
|
|
1003
|
+
routeValues: {
|
|
1004
|
+
project: project,
|
|
1005
|
+
buildId: buildId
|
|
1006
|
+
},
|
|
1007
|
+
queryParams: queryValues
|
|
1008
|
+
});
|
|
1009
|
+
});
|
|
1010
|
+
}
|
|
1011
|
+
/**
|
|
1012
|
+
* Gets gate logs
|
|
1013
|
+
*
|
|
1014
|
+
* @param project - Project ID or project name
|
|
1015
|
+
* @param releaseId - Id of the release.
|
|
1016
|
+
* @param environmentId - Id of release environment.
|
|
1017
|
+
* @param gateId - Id of the gate.
|
|
1018
|
+
* @param taskId - ReleaseTask Id for the log.
|
|
1019
|
+
*/
|
|
1020
|
+
getGateLog(project, releaseId, environmentId, gateId, taskId) {
|
|
1021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1022
|
+
return this.beginRequest({
|
|
1023
|
+
apiVersion: "7.2-preview.2",
|
|
1024
|
+
httpResponseType: "text/plain",
|
|
1025
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/gates/{gateId}/tasks/{taskId}/logs",
|
|
1026
|
+
routeValues: {
|
|
1027
|
+
project: project,
|
|
1028
|
+
releaseId: releaseId,
|
|
1029
|
+
environmentId: environmentId,
|
|
1030
|
+
gateId: gateId,
|
|
1031
|
+
taskId: taskId
|
|
1032
|
+
}
|
|
1033
|
+
});
|
|
1034
|
+
});
|
|
1035
|
+
}
|
|
1036
|
+
/**
|
|
1037
|
+
* Get logs for a release Id.
|
|
1038
|
+
*
|
|
1039
|
+
* @param project - Project ID or project name
|
|
1040
|
+
* @param releaseId - Id of the release.
|
|
1041
|
+
*/
|
|
1042
|
+
getLogs(project, releaseId) {
|
|
1043
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1044
|
+
return this.beginRequest({
|
|
1045
|
+
apiVersion: "7.2-preview.2",
|
|
1046
|
+
httpResponseType: "application/zip",
|
|
1047
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/logs",
|
|
1048
|
+
routeValues: {
|
|
1049
|
+
project: project,
|
|
1050
|
+
releaseId: releaseId
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1055
|
+
/**
|
|
1056
|
+
* Gets logs
|
|
1057
|
+
*
|
|
1058
|
+
* @param project - Project ID or project name
|
|
1059
|
+
* @param releaseId - Id of the release.
|
|
1060
|
+
* @param environmentId - Id of release environment.
|
|
1061
|
+
* @param taskId - ReleaseTask Id for the log.
|
|
1062
|
+
* @param attemptId - Id of the attempt.
|
|
1063
|
+
*/
|
|
1064
|
+
getLog(project, releaseId, environmentId, taskId, attemptId) {
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1066
|
+
const queryValues = {
|
|
1067
|
+
attemptId: attemptId
|
|
1068
|
+
};
|
|
1069
|
+
return this.beginRequest({
|
|
1070
|
+
apiVersion: "7.2-preview.2",
|
|
1071
|
+
httpResponseType: "text/plain",
|
|
1072
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/tasks/{taskId}/logs",
|
|
1073
|
+
routeValues: {
|
|
1074
|
+
project: project,
|
|
1075
|
+
releaseId: releaseId,
|
|
1076
|
+
environmentId: environmentId,
|
|
1077
|
+
taskId: taskId
|
|
1078
|
+
},
|
|
1079
|
+
queryParams: queryValues
|
|
1080
|
+
});
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Gets the task log of a release as a plain text file.
|
|
1085
|
+
*
|
|
1086
|
+
* @param project - Project ID or project name
|
|
1087
|
+
* @param releaseId - Id of the release.
|
|
1088
|
+
* @param environmentId - Id of release environment.
|
|
1089
|
+
* @param attemptId -
|
|
1090
|
+
* @param timelineId -
|
|
1091
|
+
* @param taskId - ReleaseTask Id for the log.
|
|
1092
|
+
* @param startLine - Starting line number for logs
|
|
1093
|
+
* @param endLine - Ending line number for logs
|
|
1094
|
+
*/
|
|
1095
|
+
getTaskLog2(project, releaseId, environmentId, attemptId, timelineId, taskId, startLine, endLine) {
|
|
1096
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1097
|
+
const queryValues = {
|
|
1098
|
+
startLine: startLine,
|
|
1099
|
+
endLine: endLine
|
|
1100
|
+
};
|
|
1101
|
+
return this.beginRequest({
|
|
1102
|
+
apiVersion: "7.2-preview.2",
|
|
1103
|
+
httpResponseType: "text/plain",
|
|
1104
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/tasks/{taskId}/logs",
|
|
1105
|
+
routeValues: {
|
|
1106
|
+
project: project,
|
|
1107
|
+
releaseId: releaseId,
|
|
1108
|
+
environmentId: environmentId,
|
|
1109
|
+
attemptId: attemptId,
|
|
1110
|
+
timelineId: timelineId,
|
|
1111
|
+
taskId: taskId
|
|
1112
|
+
},
|
|
1113
|
+
queryParams: queryValues
|
|
1114
|
+
});
|
|
1115
|
+
});
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Gets the task log of a release as a plain text file.
|
|
1119
|
+
*
|
|
1120
|
+
* @param project - Project ID or project name
|
|
1121
|
+
* @param releaseId - Id of the release.
|
|
1122
|
+
* @param environmentId - Id of release environment.
|
|
1123
|
+
* @param releaseDeployPhaseId - Release deploy phase Id.
|
|
1124
|
+
* @param taskId - ReleaseTask Id for the log.
|
|
1125
|
+
* @param startLine - Starting line number for logs
|
|
1126
|
+
* @param endLine - Ending line number for logs
|
|
1127
|
+
*/
|
|
1128
|
+
getTaskLog(project, releaseId, environmentId, releaseDeployPhaseId, taskId, startLine, endLine) {
|
|
1129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1130
|
+
const queryValues = {
|
|
1131
|
+
startLine: startLine,
|
|
1132
|
+
endLine: endLine
|
|
1133
|
+
};
|
|
1134
|
+
return this.beginRequest({
|
|
1135
|
+
apiVersion: "7.2-preview.2",
|
|
1136
|
+
httpResponseType: "text/plain",
|
|
1137
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/deployPhases/{releaseDeployPhaseId}/tasks/{taskId}/logs",
|
|
1138
|
+
routeValues: {
|
|
1139
|
+
project: project,
|
|
1140
|
+
releaseId: releaseId,
|
|
1141
|
+
environmentId: environmentId,
|
|
1142
|
+
releaseDeployPhaseId: releaseDeployPhaseId,
|
|
1143
|
+
taskId: taskId
|
|
1144
|
+
},
|
|
1145
|
+
queryParams: queryValues
|
|
1146
|
+
});
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
/**
|
|
1150
|
+
* Get manual intervention for a given release and manual intervention id.
|
|
1151
|
+
*
|
|
1152
|
+
* @param project - Project ID or project name
|
|
1153
|
+
* @param releaseId - Id of the release.
|
|
1154
|
+
* @param manualInterventionId - Id of the manual intervention.
|
|
1155
|
+
*/
|
|
1156
|
+
getManualIntervention(project, releaseId, manualInterventionId) {
|
|
1157
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1158
|
+
return this.beginRequest({
|
|
1159
|
+
apiVersion: "7.2-preview.2",
|
|
1160
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/manualInterventions/{manualInterventionId}",
|
|
1161
|
+
routeValues: {
|
|
1162
|
+
project: project,
|
|
1163
|
+
releaseId: releaseId,
|
|
1164
|
+
manualInterventionId: manualInterventionId
|
|
1165
|
+
}
|
|
1166
|
+
});
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* List all manual interventions for a given release.
|
|
1171
|
+
*
|
|
1172
|
+
* @param project - Project ID or project name
|
|
1173
|
+
* @param releaseId - Id of the release.
|
|
1174
|
+
*/
|
|
1175
|
+
getManualInterventions(project, releaseId) {
|
|
1176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1177
|
+
return this.beginRequest({
|
|
1178
|
+
apiVersion: "7.2-preview.2",
|
|
1179
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/manualInterventions/{manualInterventionId}",
|
|
1180
|
+
routeValues: {
|
|
1181
|
+
project: project,
|
|
1182
|
+
releaseId: releaseId
|
|
1183
|
+
}
|
|
1184
|
+
});
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* Update manual intervention.
|
|
1189
|
+
*
|
|
1190
|
+
* @param manualInterventionUpdateMetadata - Meta data to update manual intervention.
|
|
1191
|
+
* @param project - Project ID or project name
|
|
1192
|
+
* @param releaseId - Id of the release.
|
|
1193
|
+
* @param manualInterventionId - Id of the manual intervention.
|
|
1194
|
+
*/
|
|
1195
|
+
updateManualIntervention(manualInterventionUpdateMetadata, project, releaseId, manualInterventionId) {
|
|
1196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1197
|
+
return this.beginRequest({
|
|
1198
|
+
apiVersion: "7.2-preview.2",
|
|
1199
|
+
method: "PATCH",
|
|
1200
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/manualInterventions/{manualInterventionId}",
|
|
1201
|
+
routeValues: {
|
|
1202
|
+
project: project,
|
|
1203
|
+
releaseId: releaseId,
|
|
1204
|
+
manualInterventionId: manualInterventionId
|
|
1205
|
+
},
|
|
1206
|
+
body: manualInterventionUpdateMetadata
|
|
1207
|
+
});
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* @param project - Project ID or project name
|
|
1212
|
+
* @param minMetricsTime -
|
|
1213
|
+
*/
|
|
1214
|
+
getMetrics(project, minMetricsTime) {
|
|
1215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1216
|
+
const queryValues = {
|
|
1217
|
+
minMetricsTime: minMetricsTime
|
|
1218
|
+
};
|
|
1219
|
+
return this.beginRequest({
|
|
1220
|
+
apiVersion: "7.2-preview.1",
|
|
1221
|
+
routeTemplate: "{project}/_apis/Release/metrics",
|
|
1222
|
+
routeValues: {
|
|
1223
|
+
project: project
|
|
1224
|
+
},
|
|
1225
|
+
queryParams: queryValues
|
|
1226
|
+
});
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Gets Org pipeline release settings
|
|
1231
|
+
*
|
|
1232
|
+
*/
|
|
1233
|
+
getOrgPipelineReleaseSettings() {
|
|
1234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1235
|
+
return this.beginRequest({
|
|
1236
|
+
apiVersion: "7.2-preview.1",
|
|
1237
|
+
routeTemplate: "_apis/Release/orgPipelineReleaseSettings"
|
|
1238
|
+
});
|
|
1239
|
+
});
|
|
1240
|
+
}
|
|
1241
|
+
/**
|
|
1242
|
+
* Updates Org pipeline release settings
|
|
1243
|
+
*
|
|
1244
|
+
* @param newSettings -
|
|
1245
|
+
*/
|
|
1246
|
+
updateOrgPipelineReleaseSettings(newSettings) {
|
|
1247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1248
|
+
return this.beginRequest({
|
|
1249
|
+
apiVersion: "7.2-preview.1",
|
|
1250
|
+
method: "PATCH",
|
|
1251
|
+
routeTemplate: "_apis/Release/orgPipelineReleaseSettings",
|
|
1252
|
+
body: newSettings
|
|
1253
|
+
});
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
/**
|
|
1257
|
+
* Gets pipeline release settings
|
|
1258
|
+
*
|
|
1259
|
+
* @param project - Project ID or project name
|
|
1260
|
+
*/
|
|
1261
|
+
getPipelineReleaseSettings(project) {
|
|
1262
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1263
|
+
return this.beginRequest({
|
|
1264
|
+
apiVersion: "7.2-preview.1",
|
|
1265
|
+
routeTemplate: "{project}/_apis/Release/pipelineReleaseSettings",
|
|
1266
|
+
routeValues: {
|
|
1267
|
+
project: project
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
});
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Updates pipeline release settings
|
|
1274
|
+
*
|
|
1275
|
+
* @param newSettings -
|
|
1276
|
+
* @param project - Project ID or project name
|
|
1277
|
+
*/
|
|
1278
|
+
updatePipelineReleaseSettings(newSettings, project) {
|
|
1279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1280
|
+
return this.beginRequest({
|
|
1281
|
+
apiVersion: "7.2-preview.1",
|
|
1282
|
+
method: "PATCH",
|
|
1283
|
+
routeTemplate: "{project}/_apis/Release/pipelineReleaseSettings",
|
|
1284
|
+
routeValues: {
|
|
1285
|
+
project: project
|
|
1286
|
+
},
|
|
1287
|
+
body: newSettings
|
|
1288
|
+
});
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* @param artifactType -
|
|
1293
|
+
* @param artifactSourceId -
|
|
1294
|
+
*/
|
|
1295
|
+
getReleaseProjects(artifactType, artifactSourceId) {
|
|
1296
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1297
|
+
const queryValues = {
|
|
1298
|
+
artifactType: artifactType,
|
|
1299
|
+
artifactSourceId: artifactSourceId
|
|
1300
|
+
};
|
|
1301
|
+
return this.beginRequest({
|
|
1302
|
+
apiVersion: "7.2-preview.1",
|
|
1303
|
+
routeTemplate: "_apis/Release/projects",
|
|
1304
|
+
queryParams: queryValues
|
|
1305
|
+
});
|
|
1306
|
+
});
|
|
1307
|
+
}
|
|
1308
|
+
/**
|
|
1309
|
+
* Get a list of releases
|
|
1310
|
+
*
|
|
1311
|
+
* @param project - Project ID or project name
|
|
1312
|
+
* @param definitionId - Releases from this release definition Id.
|
|
1313
|
+
* @param definitionEnvironmentId -
|
|
1314
|
+
* @param searchText - Releases with names containing searchText.
|
|
1315
|
+
* @param createdBy - Releases created by this user.
|
|
1316
|
+
* @param statusFilter - Releases that have this status.
|
|
1317
|
+
* @param environmentStatusFilter -
|
|
1318
|
+
* @param minCreatedTime - Releases that were created after this time.
|
|
1319
|
+
* @param maxCreatedTime - Releases that were created before this time.
|
|
1320
|
+
* @param queryOrder - Gets the results in the defined order of created date for releases. Default is descending.
|
|
1321
|
+
* @param top - Number of releases to get. Default is 50.
|
|
1322
|
+
* @param continuationToken - Gets the releases after the continuation token provided.
|
|
1323
|
+
* @param expand - The property that should be expanded in the list of releases.
|
|
1324
|
+
* @param artifactTypeId - Releases with given artifactTypeId will be returned. Values can be Build, Jenkins, GitHub, Nuget, Team Build (external), ExternalTFSBuild, Git, TFVC, ExternalTfsXamlBuild.
|
|
1325
|
+
* @param sourceId - Unique identifier of the artifact used. e.g. For build it would be \{projectGuid\}:\{BuildDefinitionId\}, for Jenkins it would be \{JenkinsConnectionId\}:\{JenkinsDefinitionId\}, for TfsOnPrem it would be \{TfsOnPremConnectionId\}:\{ProjectName\}:\{TfsOnPremDefinitionId\}. For third-party artifacts e.g. TeamCity, BitBucket you may refer 'uniqueSourceIdentifier' inside vss-extension.json https://github.com/Microsoft/vsts-rm-extensions/blob/master/Extensions.
|
|
1326
|
+
* @param artifactVersionId - Releases with given artifactVersionId will be returned. E.g. in case of Build artifactType, it is buildId.
|
|
1327
|
+
* @param sourceBranchFilter - Releases with given sourceBranchFilter will be returned (Not to be used with environmentStatusFilter).
|
|
1328
|
+
* @param isDeleted - Gets the soft deleted releases, if true.
|
|
1329
|
+
* @param tagFilter - A comma-delimited list of tags. Only releases with these tags will be returned.
|
|
1330
|
+
* @param propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Releases will contain values for the specified property Ids (if they exist). If not set, properties will not be included. Note that this will not filter out any Release from results irrespective of whether it has property set or not.
|
|
1331
|
+
* @param releaseIdFilter - A comma-delimited list of releases Ids. Only releases with these Ids will be returned.
|
|
1332
|
+
* @param path - Releases under this folder path will be returned
|
|
1333
|
+
*/
|
|
1334
|
+
getReleases(project, definitionId, definitionEnvironmentId, searchText, createdBy, statusFilter, environmentStatusFilter, minCreatedTime, maxCreatedTime, queryOrder, top, continuationToken, expand, artifactTypeId, sourceId, artifactVersionId, sourceBranchFilter, isDeleted, tagFilter, propertyFilters, releaseIdFilter, path) {
|
|
1335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1336
|
+
const queryValues = {
|
|
1337
|
+
definitionId: definitionId,
|
|
1338
|
+
definitionEnvironmentId: definitionEnvironmentId,
|
|
1339
|
+
searchText: searchText,
|
|
1340
|
+
createdBy: createdBy,
|
|
1341
|
+
statusFilter: statusFilter,
|
|
1342
|
+
environmentStatusFilter: environmentStatusFilter,
|
|
1343
|
+
minCreatedTime: minCreatedTime,
|
|
1344
|
+
maxCreatedTime: maxCreatedTime,
|
|
1345
|
+
queryOrder: queryOrder,
|
|
1346
|
+
'$top': top,
|
|
1347
|
+
continuationToken: continuationToken,
|
|
1348
|
+
'$expand': expand,
|
|
1349
|
+
artifactTypeId: artifactTypeId,
|
|
1350
|
+
sourceId: sourceId,
|
|
1351
|
+
artifactVersionId: artifactVersionId,
|
|
1352
|
+
sourceBranchFilter: sourceBranchFilter,
|
|
1353
|
+
isDeleted: isDeleted,
|
|
1354
|
+
tagFilter: tagFilter && tagFilter.join(","),
|
|
1355
|
+
propertyFilters: propertyFilters && propertyFilters.join(","),
|
|
1356
|
+
releaseIdFilter: releaseIdFilter && releaseIdFilter.join(","),
|
|
1357
|
+
path: path
|
|
1358
|
+
};
|
|
1359
|
+
return this.beginRequest({
|
|
1360
|
+
apiVersion: "7.2-preview.9",
|
|
1361
|
+
routeTemplate: "{project}/_apis/Release/releases",
|
|
1362
|
+
routeValues: {
|
|
1363
|
+
project: project
|
|
1364
|
+
},
|
|
1365
|
+
queryParams: queryValues
|
|
1366
|
+
});
|
|
1367
|
+
});
|
|
1368
|
+
}
|
|
1369
|
+
/**
|
|
1370
|
+
* Create a release.
|
|
1371
|
+
*
|
|
1372
|
+
* @param releaseStartMetadata - Metadata to create a release.
|
|
1373
|
+
* @param project - Project ID or project name
|
|
1374
|
+
*/
|
|
1375
|
+
createRelease(releaseStartMetadata, project) {
|
|
1376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1377
|
+
return this.beginRequest({
|
|
1378
|
+
apiVersion: "7.2-preview.9",
|
|
1379
|
+
method: "POST",
|
|
1380
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1381
|
+
routeValues: {
|
|
1382
|
+
project: project
|
|
1383
|
+
},
|
|
1384
|
+
body: releaseStartMetadata
|
|
1385
|
+
});
|
|
1386
|
+
});
|
|
1387
|
+
}
|
|
1388
|
+
/**
|
|
1389
|
+
* Soft delete a release
|
|
1390
|
+
*
|
|
1391
|
+
* @param project - Project ID or project name
|
|
1392
|
+
* @param releaseId - Id of the release.
|
|
1393
|
+
* @param comment - Comment for deleting a release.
|
|
1394
|
+
*/
|
|
1395
|
+
deleteRelease(project, releaseId, comment) {
|
|
1396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1397
|
+
const queryValues = {
|
|
1398
|
+
comment: comment
|
|
1399
|
+
};
|
|
1400
|
+
return this.beginRequest({
|
|
1401
|
+
apiVersion: "7.2-preview.9",
|
|
1402
|
+
method: "DELETE",
|
|
1403
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1404
|
+
routeValues: {
|
|
1405
|
+
project: project,
|
|
1406
|
+
releaseId: releaseId
|
|
1407
|
+
},
|
|
1408
|
+
queryParams: queryValues
|
|
1409
|
+
});
|
|
1410
|
+
});
|
|
1411
|
+
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Get a Release
|
|
1414
|
+
*
|
|
1415
|
+
* @param project - Project ID or project name
|
|
1416
|
+
* @param releaseId - Id of the release.
|
|
1417
|
+
* @param approvalFilters - A filter which would allow fetching approval steps selectively based on whether it is automated, or manual. This would also decide whether we should fetch pre and post approval snapshots. Assumes All by default
|
|
1418
|
+
* @param propertyFilters - A comma-delimited list of extended properties to be retrieved. If set, the returned Release will contain values for the specified property Ids (if they exist). If not set, properties will not be included.
|
|
1419
|
+
* @param expand - A property that should be expanded in the release.
|
|
1420
|
+
* @param topGateRecords - Number of release gate records to get. Default is 5.
|
|
1421
|
+
* @param includeDisabledDefinitions - Include disabled definitions (if set to 'false' returns error, default is 'true')
|
|
1422
|
+
*/
|
|
1423
|
+
getRelease(project, releaseId, approvalFilters, propertyFilters, expand, topGateRecords, includeDisabledDefinitions) {
|
|
1424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1425
|
+
const queryValues = {
|
|
1426
|
+
approvalFilters: approvalFilters,
|
|
1427
|
+
propertyFilters: propertyFilters && propertyFilters.join(","),
|
|
1428
|
+
'$expand': expand,
|
|
1429
|
+
'$topGateRecords': topGateRecords,
|
|
1430
|
+
includeDisabledDefinitions: includeDisabledDefinitions
|
|
1431
|
+
};
|
|
1432
|
+
return this.beginRequest({
|
|
1433
|
+
apiVersion: "7.2-preview.9",
|
|
1434
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1435
|
+
routeValues: {
|
|
1436
|
+
project: project,
|
|
1437
|
+
releaseId: releaseId
|
|
1438
|
+
},
|
|
1439
|
+
queryParams: queryValues
|
|
1440
|
+
});
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* Get release summary of a given definition Id.
|
|
1445
|
+
*
|
|
1446
|
+
* @param project - Project ID or project name
|
|
1447
|
+
* @param definitionId - Id of the definition to get release summary.
|
|
1448
|
+
* @param releaseCount - Count of releases to be included in summary.
|
|
1449
|
+
* @param includeArtifact - Include artifact details.Default is 'false'.
|
|
1450
|
+
* @param definitionEnvironmentIdsFilter -
|
|
1451
|
+
*/
|
|
1452
|
+
getReleaseDefinitionSummary(project, definitionId, releaseCount, includeArtifact, definitionEnvironmentIdsFilter) {
|
|
1453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1454
|
+
const queryValues = {
|
|
1455
|
+
definitionId: definitionId,
|
|
1456
|
+
releaseCount: releaseCount,
|
|
1457
|
+
includeArtifact: includeArtifact,
|
|
1458
|
+
definitionEnvironmentIdsFilter: definitionEnvironmentIdsFilter && definitionEnvironmentIdsFilter.join(",")
|
|
1459
|
+
};
|
|
1460
|
+
return this.beginRequest({
|
|
1461
|
+
apiVersion: "7.2-preview.9",
|
|
1462
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1463
|
+
routeValues: {
|
|
1464
|
+
project: project
|
|
1465
|
+
},
|
|
1466
|
+
queryParams: queryValues
|
|
1467
|
+
});
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
/**
|
|
1471
|
+
* Get release for a given revision number.
|
|
1472
|
+
*
|
|
1473
|
+
* @param project - Project ID or project name
|
|
1474
|
+
* @param releaseId - Id of the release.
|
|
1475
|
+
* @param definitionSnapshotRevision - Definition snapshot revision number.
|
|
1476
|
+
*/
|
|
1477
|
+
getReleaseRevision(project, releaseId, definitionSnapshotRevision) {
|
|
1478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1479
|
+
const queryValues = {
|
|
1480
|
+
definitionSnapshotRevision: definitionSnapshotRevision
|
|
1481
|
+
};
|
|
1482
|
+
return this.beginRequest({
|
|
1483
|
+
apiVersion: "7.2-preview.9",
|
|
1484
|
+
httpResponseType: "text/plain",
|
|
1485
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1486
|
+
routeValues: {
|
|
1487
|
+
project: project,
|
|
1488
|
+
releaseId: releaseId
|
|
1489
|
+
},
|
|
1490
|
+
queryParams: queryValues
|
|
1491
|
+
});
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Undelete a soft deleted release.
|
|
1496
|
+
*
|
|
1497
|
+
* @param project - Project ID or project name
|
|
1498
|
+
* @param releaseId - Id of release to be undeleted.
|
|
1499
|
+
* @param comment - Any comment for undeleting.
|
|
1500
|
+
*/
|
|
1501
|
+
undeleteRelease(project, releaseId, comment) {
|
|
1502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1503
|
+
const queryValues = {
|
|
1504
|
+
comment: comment
|
|
1505
|
+
};
|
|
1506
|
+
return this.beginRequest({
|
|
1507
|
+
apiVersion: "7.2-preview.9",
|
|
1508
|
+
method: "PUT",
|
|
1509
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1510
|
+
routeValues: {
|
|
1511
|
+
project: project,
|
|
1512
|
+
releaseId: releaseId
|
|
1513
|
+
},
|
|
1514
|
+
queryParams: queryValues
|
|
1515
|
+
});
|
|
1516
|
+
});
|
|
1517
|
+
}
|
|
1518
|
+
/**
|
|
1519
|
+
* Update a complete release object.
|
|
1520
|
+
*
|
|
1521
|
+
* @param release - Release object for update.
|
|
1522
|
+
* @param project - Project ID or project name
|
|
1523
|
+
* @param releaseId - Id of the release to update.
|
|
1524
|
+
*/
|
|
1525
|
+
updateRelease(release, project, releaseId) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
|
+
return this.beginRequest({
|
|
1528
|
+
apiVersion: "7.2-preview.9",
|
|
1529
|
+
method: "PUT",
|
|
1530
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1531
|
+
routeValues: {
|
|
1532
|
+
project: project,
|
|
1533
|
+
releaseId: releaseId
|
|
1534
|
+
},
|
|
1535
|
+
body: release
|
|
1536
|
+
});
|
|
1537
|
+
});
|
|
1538
|
+
}
|
|
1539
|
+
/**
|
|
1540
|
+
* Update few properties of a release.
|
|
1541
|
+
*
|
|
1542
|
+
* @param releaseUpdateMetadata - Properties of release to update.
|
|
1543
|
+
* @param project - Project ID or project name
|
|
1544
|
+
* @param releaseId - Id of the release to update.
|
|
1545
|
+
*/
|
|
1546
|
+
updateReleaseResource(releaseUpdateMetadata, project, releaseId) {
|
|
1547
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1548
|
+
return this.beginRequest({
|
|
1549
|
+
apiVersion: "7.2-preview.9",
|
|
1550
|
+
method: "PATCH",
|
|
1551
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}",
|
|
1552
|
+
routeValues: {
|
|
1553
|
+
project: project,
|
|
1554
|
+
releaseId: releaseId
|
|
1555
|
+
},
|
|
1556
|
+
body: releaseUpdateMetadata
|
|
1557
|
+
});
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Gets the release settings
|
|
1562
|
+
*
|
|
1563
|
+
* @param project - Project ID or project name
|
|
1564
|
+
*/
|
|
1565
|
+
getReleaseSettings(project) {
|
|
1566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1567
|
+
return this.beginRequest({
|
|
1568
|
+
apiVersion: "7.2-preview.1",
|
|
1569
|
+
routeTemplate: "{project}/_apis/Release/releasesettings",
|
|
1570
|
+
routeValues: {
|
|
1571
|
+
project: project
|
|
1572
|
+
}
|
|
1573
|
+
});
|
|
1574
|
+
});
|
|
1575
|
+
}
|
|
1576
|
+
/**
|
|
1577
|
+
* Updates the release settings
|
|
1578
|
+
*
|
|
1579
|
+
* @param releaseSettings -
|
|
1580
|
+
* @param project - Project ID or project name
|
|
1581
|
+
*/
|
|
1582
|
+
updateReleaseSettings(releaseSettings, project) {
|
|
1583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1584
|
+
return this.beginRequest({
|
|
1585
|
+
apiVersion: "7.2-preview.1",
|
|
1586
|
+
method: "PUT",
|
|
1587
|
+
routeTemplate: "{project}/_apis/Release/releasesettings",
|
|
1588
|
+
routeValues: {
|
|
1589
|
+
project: project
|
|
1590
|
+
},
|
|
1591
|
+
body: releaseSettings
|
|
1592
|
+
});
|
|
1593
|
+
});
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* Get release definition for a given definitionId and revision
|
|
1597
|
+
*
|
|
1598
|
+
* @param project - Project ID or project name
|
|
1599
|
+
* @param definitionId - Id of the definition.
|
|
1600
|
+
* @param revision - Id of the revision.
|
|
1601
|
+
*/
|
|
1602
|
+
getDefinitionRevision(project, definitionId, revision) {
|
|
1603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1604
|
+
return this.beginRequest({
|
|
1605
|
+
apiVersion: "7.2-preview.4",
|
|
1606
|
+
httpResponseType: "text/plain",
|
|
1607
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}/revisions/{revision}",
|
|
1608
|
+
routeValues: {
|
|
1609
|
+
project: project,
|
|
1610
|
+
definitionId: definitionId,
|
|
1611
|
+
revision: revision
|
|
1612
|
+
}
|
|
1613
|
+
});
|
|
1614
|
+
});
|
|
1615
|
+
}
|
|
1616
|
+
/**
|
|
1617
|
+
* Get revision history for a release definition
|
|
1618
|
+
*
|
|
1619
|
+
* @param project - Project ID or project name
|
|
1620
|
+
* @param definitionId - Id of the definition.
|
|
1621
|
+
*/
|
|
1622
|
+
getReleaseDefinitionHistory(project, definitionId) {
|
|
1623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1624
|
+
return this.beginRequest({
|
|
1625
|
+
apiVersion: "7.2-preview.4",
|
|
1626
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}/revisions/{revision}",
|
|
1627
|
+
routeValues: {
|
|
1628
|
+
project: project,
|
|
1629
|
+
definitionId: definitionId
|
|
1630
|
+
}
|
|
1631
|
+
});
|
|
1632
|
+
});
|
|
1633
|
+
}
|
|
1634
|
+
/**
|
|
1635
|
+
* @param project - Project ID or project name
|
|
1636
|
+
* @param releaseId -
|
|
1637
|
+
*/
|
|
1638
|
+
getSummaryMailSections(project, releaseId) {
|
|
1639
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1640
|
+
return this.beginRequest({
|
|
1641
|
+
apiVersion: "7.2-preview.1",
|
|
1642
|
+
routeTemplate: "{project}/_apis/Release/sendmail/{releaseId}",
|
|
1643
|
+
routeValues: {
|
|
1644
|
+
project: project,
|
|
1645
|
+
releaseId: releaseId
|
|
1646
|
+
}
|
|
1647
|
+
});
|
|
1648
|
+
});
|
|
1649
|
+
}
|
|
1650
|
+
/**
|
|
1651
|
+
* @param mailMessage -
|
|
1652
|
+
* @param project - Project ID or project name
|
|
1653
|
+
* @param releaseId -
|
|
1654
|
+
*/
|
|
1655
|
+
sendSummaryMail(mailMessage, project, releaseId) {
|
|
1656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1657
|
+
return this.beginRequest({
|
|
1658
|
+
apiVersion: "7.2-preview.1",
|
|
1659
|
+
method: "POST",
|
|
1660
|
+
routeTemplate: "{project}/_apis/Release/sendmail/{releaseId}",
|
|
1661
|
+
routeValues: {
|
|
1662
|
+
project: project,
|
|
1663
|
+
releaseId: releaseId
|
|
1664
|
+
},
|
|
1665
|
+
body: mailMessage
|
|
1666
|
+
});
|
|
1667
|
+
});
|
|
1668
|
+
}
|
|
1669
|
+
/**
|
|
1670
|
+
* @param project - Project ID or project name
|
|
1671
|
+
* @param definitionId -
|
|
1672
|
+
*/
|
|
1673
|
+
getSourceBranches(project, definitionId) {
|
|
1674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1675
|
+
return this.beginRequest({
|
|
1676
|
+
apiVersion: "7.2-preview.1",
|
|
1677
|
+
routeTemplate: "{project}/_apis/Release/definitions/{definitionId}/sourcebranches",
|
|
1678
|
+
routeValues: {
|
|
1679
|
+
project: project,
|
|
1680
|
+
definitionId: definitionId
|
|
1681
|
+
}
|
|
1682
|
+
});
|
|
1683
|
+
});
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Adds a tag to a definition
|
|
1687
|
+
*
|
|
1688
|
+
* @param project - Project ID or project name
|
|
1689
|
+
* @param releaseDefinitionId -
|
|
1690
|
+
* @param tag -
|
|
1691
|
+
*/
|
|
1692
|
+
addDefinitionTag(project, releaseDefinitionId, tag) {
|
|
1693
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1694
|
+
return this.beginRequest({
|
|
1695
|
+
apiVersion: "7.2-preview.1",
|
|
1696
|
+
method: "PATCH",
|
|
1697
|
+
routeTemplate: "{project}/_apis/Release/definitions/{releaseDefinitionId}/tags/{*tag}",
|
|
1698
|
+
routeValues: {
|
|
1699
|
+
project: project,
|
|
1700
|
+
releaseDefinitionId: releaseDefinitionId,
|
|
1701
|
+
tag: tag
|
|
1702
|
+
}
|
|
1703
|
+
});
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
/**
|
|
1707
|
+
* Adds multiple tags to a definition
|
|
1708
|
+
*
|
|
1709
|
+
* @param tags -
|
|
1710
|
+
* @param project - Project ID or project name
|
|
1711
|
+
* @param releaseDefinitionId -
|
|
1712
|
+
*/
|
|
1713
|
+
addDefinitionTags(tags, project, releaseDefinitionId) {
|
|
1714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1715
|
+
return this.beginRequest({
|
|
1716
|
+
apiVersion: "7.2-preview.1",
|
|
1717
|
+
method: "POST",
|
|
1718
|
+
routeTemplate: "{project}/_apis/Release/definitions/{releaseDefinitionId}/tags/{*tag}",
|
|
1719
|
+
routeValues: {
|
|
1720
|
+
project: project,
|
|
1721
|
+
releaseDefinitionId: releaseDefinitionId
|
|
1722
|
+
},
|
|
1723
|
+
body: tags
|
|
1724
|
+
});
|
|
1725
|
+
});
|
|
1726
|
+
}
|
|
1727
|
+
/**
|
|
1728
|
+
* Deletes a tag from a definition
|
|
1729
|
+
*
|
|
1730
|
+
* @param project - Project ID or project name
|
|
1731
|
+
* @param releaseDefinitionId -
|
|
1732
|
+
* @param tag -
|
|
1733
|
+
*/
|
|
1734
|
+
deleteDefinitionTag(project, releaseDefinitionId, tag) {
|
|
1735
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1736
|
+
return this.beginRequest({
|
|
1737
|
+
apiVersion: "7.2-preview.1",
|
|
1738
|
+
method: "DELETE",
|
|
1739
|
+
routeTemplate: "{project}/_apis/Release/definitions/{releaseDefinitionId}/tags/{*tag}",
|
|
1740
|
+
routeValues: {
|
|
1741
|
+
project: project,
|
|
1742
|
+
releaseDefinitionId: releaseDefinitionId,
|
|
1743
|
+
tag: tag
|
|
1744
|
+
}
|
|
1745
|
+
});
|
|
1746
|
+
});
|
|
1747
|
+
}
|
|
1748
|
+
/**
|
|
1749
|
+
* Gets the tags for a definition
|
|
1750
|
+
*
|
|
1751
|
+
* @param project - Project ID or project name
|
|
1752
|
+
* @param releaseDefinitionId -
|
|
1753
|
+
*/
|
|
1754
|
+
getDefinitionTags(project, releaseDefinitionId) {
|
|
1755
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1756
|
+
return this.beginRequest({
|
|
1757
|
+
apiVersion: "7.2-preview.1",
|
|
1758
|
+
routeTemplate: "{project}/_apis/Release/definitions/{releaseDefinitionId}/tags/{*tag}",
|
|
1759
|
+
routeValues: {
|
|
1760
|
+
project: project,
|
|
1761
|
+
releaseDefinitionId: releaseDefinitionId
|
|
1762
|
+
}
|
|
1763
|
+
});
|
|
1764
|
+
});
|
|
1765
|
+
}
|
|
1766
|
+
/**
|
|
1767
|
+
* Adds a tag to a releaseId
|
|
1768
|
+
*
|
|
1769
|
+
* @param project - Project ID or project name
|
|
1770
|
+
* @param releaseId -
|
|
1771
|
+
* @param tag -
|
|
1772
|
+
*/
|
|
1773
|
+
addReleaseTag(project, releaseId, tag) {
|
|
1774
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1775
|
+
return this.beginRequest({
|
|
1776
|
+
apiVersion: "7.2-preview.1",
|
|
1777
|
+
method: "PATCH",
|
|
1778
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
1779
|
+
routeValues: {
|
|
1780
|
+
project: project,
|
|
1781
|
+
releaseId: releaseId,
|
|
1782
|
+
tag: tag
|
|
1783
|
+
}
|
|
1784
|
+
});
|
|
1785
|
+
});
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Adds tag to a release
|
|
1789
|
+
*
|
|
1790
|
+
* @param tags -
|
|
1791
|
+
* @param project - Project ID or project name
|
|
1792
|
+
* @param releaseId -
|
|
1793
|
+
*/
|
|
1794
|
+
addReleaseTags(tags, project, releaseId) {
|
|
1795
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1796
|
+
return this.beginRequest({
|
|
1797
|
+
apiVersion: "7.2-preview.1",
|
|
1798
|
+
method: "POST",
|
|
1799
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
1800
|
+
routeValues: {
|
|
1801
|
+
project: project,
|
|
1802
|
+
releaseId: releaseId
|
|
1803
|
+
},
|
|
1804
|
+
body: tags
|
|
1805
|
+
});
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
/**
|
|
1809
|
+
* Deletes a tag from a release
|
|
1810
|
+
*
|
|
1811
|
+
* @param project - Project ID or project name
|
|
1812
|
+
* @param releaseId -
|
|
1813
|
+
* @param tag -
|
|
1814
|
+
*/
|
|
1815
|
+
deleteReleaseTag(project, releaseId, tag) {
|
|
1816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1817
|
+
return this.beginRequest({
|
|
1818
|
+
apiVersion: "7.2-preview.1",
|
|
1819
|
+
method: "DELETE",
|
|
1820
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
1821
|
+
routeValues: {
|
|
1822
|
+
project: project,
|
|
1823
|
+
releaseId: releaseId,
|
|
1824
|
+
tag: tag
|
|
1825
|
+
}
|
|
1826
|
+
});
|
|
1827
|
+
});
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
* Gets the tags for a release
|
|
1831
|
+
*
|
|
1832
|
+
* @param project - Project ID or project name
|
|
1833
|
+
* @param releaseId -
|
|
1834
|
+
*/
|
|
1835
|
+
getReleaseTags(project, releaseId) {
|
|
1836
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1837
|
+
return this.beginRequest({
|
|
1838
|
+
apiVersion: "7.2-preview.1",
|
|
1839
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/tags/{*tag}",
|
|
1840
|
+
routeValues: {
|
|
1841
|
+
project: project,
|
|
1842
|
+
releaseId: releaseId
|
|
1843
|
+
}
|
|
1844
|
+
});
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* @param project - Project ID or project name
|
|
1849
|
+
*/
|
|
1850
|
+
getTags(project) {
|
|
1851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1852
|
+
return this.beginRequest({
|
|
1853
|
+
apiVersion: "7.2-preview.1",
|
|
1854
|
+
routeTemplate: "{project}/_apis/Release/tags",
|
|
1855
|
+
routeValues: {
|
|
1856
|
+
project: project
|
|
1857
|
+
}
|
|
1858
|
+
});
|
|
1859
|
+
});
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* @param project - Project ID or project name
|
|
1863
|
+
* @param releaseId -
|
|
1864
|
+
* @param environmentId -
|
|
1865
|
+
* @param releaseDeployPhaseId -
|
|
1866
|
+
*/
|
|
1867
|
+
getTasksForTaskGroup(project, releaseId, environmentId, releaseDeployPhaseId) {
|
|
1868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1869
|
+
return this.beginRequest({
|
|
1870
|
+
apiVersion: "7.2-preview.2",
|
|
1871
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/deployPhases/{releaseDeployPhaseId}/tasks",
|
|
1872
|
+
routeValues: {
|
|
1873
|
+
project: project,
|
|
1874
|
+
releaseId: releaseId,
|
|
1875
|
+
environmentId: environmentId,
|
|
1876
|
+
releaseDeployPhaseId: releaseDeployPhaseId
|
|
1877
|
+
}
|
|
1878
|
+
});
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* @param project - Project ID or project name
|
|
1883
|
+
* @param releaseId -
|
|
1884
|
+
* @param environmentId -
|
|
1885
|
+
* @param attemptId -
|
|
1886
|
+
* @param timelineId -
|
|
1887
|
+
*/
|
|
1888
|
+
getTasks2(project, releaseId, environmentId, attemptId, timelineId) {
|
|
1889
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1890
|
+
return this.beginRequest({
|
|
1891
|
+
apiVersion: "7.2-preview.2",
|
|
1892
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/attempts/{attemptId}/timelines/{timelineId}/tasks",
|
|
1893
|
+
routeValues: {
|
|
1894
|
+
project: project,
|
|
1895
|
+
releaseId: releaseId,
|
|
1896
|
+
environmentId: environmentId,
|
|
1897
|
+
attemptId: attemptId,
|
|
1898
|
+
timelineId: timelineId
|
|
1899
|
+
}
|
|
1900
|
+
});
|
|
1901
|
+
});
|
|
1902
|
+
}
|
|
1903
|
+
/**
|
|
1904
|
+
* @param project - Project ID or project name
|
|
1905
|
+
* @param releaseId -
|
|
1906
|
+
* @param environmentId -
|
|
1907
|
+
* @param attemptId -
|
|
1908
|
+
*/
|
|
1909
|
+
getTasks(project, releaseId, environmentId, attemptId) {
|
|
1910
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1911
|
+
const queryValues = {
|
|
1912
|
+
attemptId: attemptId
|
|
1913
|
+
};
|
|
1914
|
+
return this.beginRequest({
|
|
1915
|
+
apiVersion: "7.2-preview.2",
|
|
1916
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/environments/{environmentId}/tasks",
|
|
1917
|
+
routeValues: {
|
|
1918
|
+
project: project,
|
|
1919
|
+
releaseId: releaseId,
|
|
1920
|
+
environmentId: environmentId
|
|
1921
|
+
},
|
|
1922
|
+
queryParams: queryValues
|
|
1923
|
+
});
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
/**
|
|
1927
|
+
* @param project - Project ID or project name
|
|
1928
|
+
*/
|
|
1929
|
+
getArtifactTypeDefinitions(project) {
|
|
1930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1931
|
+
return this.beginRequest({
|
|
1932
|
+
apiVersion: "7.2-preview.1",
|
|
1933
|
+
routeTemplate: "{project}/_apis/Release/artifacts/types",
|
|
1934
|
+
routeValues: {
|
|
1935
|
+
project: project
|
|
1936
|
+
}
|
|
1937
|
+
});
|
|
1938
|
+
});
|
|
1939
|
+
}
|
|
1940
|
+
/**
|
|
1941
|
+
* @param project - Project ID or project name
|
|
1942
|
+
* @param releaseDefinitionId -
|
|
1943
|
+
*/
|
|
1944
|
+
getArtifactVersions(project, releaseDefinitionId) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
|
+
const queryValues = {
|
|
1947
|
+
releaseDefinitionId: releaseDefinitionId
|
|
1948
|
+
};
|
|
1949
|
+
return this.beginRequest({
|
|
1950
|
+
apiVersion: "7.2-preview.1",
|
|
1951
|
+
routeTemplate: "{project}/_apis/Release/artifacts/versions",
|
|
1952
|
+
routeValues: {
|
|
1953
|
+
project: project
|
|
1954
|
+
},
|
|
1955
|
+
queryParams: queryValues
|
|
1956
|
+
});
|
|
1957
|
+
});
|
|
1958
|
+
}
|
|
1959
|
+
/**
|
|
1960
|
+
* @param artifacts -
|
|
1961
|
+
* @param project - Project ID or project name
|
|
1962
|
+
*/
|
|
1963
|
+
getArtifactVersionsForSources(artifacts, project) {
|
|
1964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1965
|
+
return this.beginRequest({
|
|
1966
|
+
apiVersion: "7.2-preview.1",
|
|
1967
|
+
method: "POST",
|
|
1968
|
+
routeTemplate: "{project}/_apis/Release/artifacts/versions",
|
|
1969
|
+
routeValues: {
|
|
1970
|
+
project: project
|
|
1971
|
+
},
|
|
1972
|
+
body: artifacts
|
|
1973
|
+
});
|
|
1974
|
+
});
|
|
1975
|
+
}
|
|
1976
|
+
/**
|
|
1977
|
+
* @param project - Project ID or project name
|
|
1978
|
+
* @param releaseId -
|
|
1979
|
+
* @param baseReleaseId -
|
|
1980
|
+
* @param top -
|
|
1981
|
+
* @param artifactAlias -
|
|
1982
|
+
*/
|
|
1983
|
+
getReleaseWorkItemsRefs(project, releaseId, baseReleaseId, top, artifactAlias) {
|
|
1984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1985
|
+
const queryValues = {
|
|
1986
|
+
baseReleaseId: baseReleaseId,
|
|
1987
|
+
'$top': top,
|
|
1988
|
+
artifactAlias: artifactAlias
|
|
1989
|
+
};
|
|
1990
|
+
return this.beginRequest({
|
|
1991
|
+
apiVersion: "7.2-preview.1",
|
|
1992
|
+
routeTemplate: "{project}/_apis/Release/releases/{releaseId}/workitems",
|
|
1993
|
+
routeValues: {
|
|
1994
|
+
project: project,
|
|
1995
|
+
releaseId: releaseId
|
|
1996
|
+
},
|
|
1997
|
+
queryParams: queryValues
|
|
1998
|
+
});
|
|
1999
|
+
});
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
exports.ReleaseRestClient = ReleaseRestClient;
|
|
2003
|
+
ReleaseRestClient.RESOURCE_AREA_ID = "efc2f575-36ef-48e9-b672-0c6fb4a48ac5";
|