azure-devops-extension-api 4.246.0 → 4.248.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/SECURITY.md +41 -0
- package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/Reporting.d.ts +48 -0
- package/bin/AdvancedSecurity.Reporting/Reporting.js +32 -0
- package/bin/AdvancedSecurity.Reporting/Reporting.min.js +1 -0
- package/{Alert → bin/Alert}/Alert.d.ts +8 -8
- package/{Contributions → bin/Contributions}/ContributionsClient.js +2 -2
- package/{Contributions → bin/Contributions}/ContributionsClient.min.js +1 -1
- package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.js +7 -7
- package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.min.js +1 -1
- package/{Git → bin/Git}/Git.d.ts +4 -0
- package/bin/LICENSE +21 -0
- package/{Management → bin/Management}/Management.d.ts +4 -0
- package/bin/README.md +2 -0
- package/{TaskAgent → bin/TaskAgent}/TaskAgent.d.ts +8 -0
- package/{Test → bin/Test}/Test.d.ts +31 -7
- package/{TestPlan → bin/TestPlan}/TestPlan.d.ts +6 -2
- package/{TestResults → bin/TestResults}/TestResultsClient.d.ts +24 -1
- package/{TestResults → bin/TestResults}/TestResultsClient.js +79 -1
- package/bin/TestResults/TestResultsClient.min.js +1 -0
- package/bin/package.json +37 -0
- package/buildpackage.js +80 -0
- package/package.json +1 -1
- package/src/Accounts/Accounts.ts +134 -0
- package/src/Accounts/AccountsClient.ts +83 -0
- package/src/Accounts/index.ts +2 -0
- package/src/AdvancedSecurity.Reporting/Reporting.ts +180 -0
- package/src/AdvancedSecurity.Reporting/ReportingClient.ts +47 -0
- package/src/Alert/Alert.ts +1037 -0
- package/src/Alert/AlertClient.ts +330 -0
- package/src/Boards/Boards.ts +684 -0
- package/src/Boards/BoardsClient.ts +593 -0
- package/src/Boards/index.ts +2 -0
- package/src/Build/Build.ts +3416 -0
- package/src/Build/BuildClient.ts +2740 -0
- package/src/Build/BuildServices.ts +39 -0
- package/src/Build/index.ts +3 -0
- package/src/Comments/Comments.ts +330 -0
- package/src/Comments/index.ts +1 -0
- package/src/Common/Client.ts +37 -0
- package/src/Common/CommonServices.ts +853 -0
- package/src/Common/Context.d.ts +46 -0
- package/src/Common/Fetch.ts +239 -0
- package/src/Common/RestClientBase.ts +186 -0
- package/src/Common/System.ts +36 -0
- package/src/Common/SystemData.ts +135 -0
- package/src/Common/Util/Serialization.ts +59 -0
- package/src/Common/Util/Url.ts +773 -0
- package/src/Common/index.ts +3 -0
- package/src/Contributions/Contributions.ts +708 -0
- package/src/Contributions/ContributionsClient.ts +109 -0
- package/src/Contributions/index.ts +2 -0
- package/src/Core/Core.ts +579 -0
- package/src/Core/CoreClient.ts +765 -0
- package/src/Core/index.ts +2 -0
- package/src/Dashboard/Dashboard.ts +419 -0
- package/src/Dashboard/DashboardClient.ts +370 -0
- package/src/Dashboard/WidgetConfigHelpers.ts +43 -0
- package/src/Dashboard/WidgetContracts.ts +226 -0
- package/src/Dashboard/WidgetHelpers.ts +145 -0
- package/src/Dashboard/index.ts +5 -0
- package/src/DistributedTaskCommon/DistributedTaskCommon.ts +108 -0
- package/src/DistributedTaskCommon/index.ts +1 -0
- package/src/ExtensionManagement/ExtensionManagement.ts +1205 -0
- package/src/ExtensionManagement/ExtensionManagementClient.ts +646 -0
- package/src/ExtensionManagement/index.ts +2 -0
- package/src/Favorite/Favorite.ts +136 -0
- package/src/Favorite/FavoriteClient.ts +301 -0
- package/src/FeatureAvailability/FeatureAvailability.ts +20 -0
- package/src/FeatureAvailability/FeatureAvailabilityClient.ts +153 -0
- package/src/FeatureAvailability/index.ts +2 -0
- package/src/FeatureManagement/FeatureManagement.ts +166 -0
- package/src/FeatureManagement/FeatureManagementClient.ts +246 -0
- package/src/FeatureManagement/index.ts +2 -0
- package/src/FileContainer/FileContainer.ts +205 -0
- package/src/FileContainer/FileContainerClient.ts +154 -0
- package/src/FileContainer/index.ts +2 -0
- package/src/FormInput/FormInput.ts +288 -0
- package/src/FormInput/index.ts +1 -0
- package/src/Gallery/Gallery.ts +1977 -0
- package/src/Gallery/GalleryClient.ts +2251 -0
- package/src/Gallery/index.ts +2 -0
- package/src/Git/CodeEditorTypes.ts +335 -0
- package/src/Git/Git.ts +4062 -0
- package/src/Git/GitClient.ts +4750 -0
- package/src/Git/GitServices.ts +18 -0
- package/src/Git/index.ts +4 -0
- package/src/Graph/Graph.ts +572 -0
- package/src/Graph/GraphClient.ts +846 -0
- package/src/Graph/index.ts +2 -0
- package/src/Identities/Identities.ts +261 -0
- package/src/Identities/IdentityProvider.ts +90 -0
- package/src/Identities/IdentityService.ts +89 -0
- package/src/Identities/index.ts +3 -0
- package/src/Locations/Locations.ts +165 -0
- package/src/Locations/LocationsClient.ts +220 -0
- package/src/Locations/index.ts +2 -0
- package/src/Management/Management.ts +176 -0
- package/src/Management/ManagementClient.ts +348 -0
- package/src/Notification/Notification.ts +1460 -0
- package/src/Notification/NotificationClient.ts +477 -0
- package/src/Notification/index.ts +2 -0
- package/src/Operations/Operations.ts +86 -0
- package/src/Operations/OperationsClient.ts +42 -0
- package/src/Operations/index.ts +2 -0
- package/src/Pipelines/Pipelines.ts +354 -0
- package/src/Pipelines/PipelinesClient.ts +306 -0
- package/src/Policy/Policy.ts +173 -0
- package/src/Policy/PolicyClient.ts +315 -0
- package/src/Policy/index.ts +2 -0
- package/src/Profile/Profile.ts +187 -0
- package/src/Profile/ProfileClient.ts +328 -0
- package/src/Profile/index.ts +2 -0
- package/src/ProjectAnalysis/ProjectAnalysis.ts +74 -0
- package/src/ProjectAnalysis/ProjectAnalysisClient.ts +124 -0
- package/src/ProjectAnalysis/index.ts +2 -0
- package/src/Release/Release.ts +4237 -0
- package/src/Release/ReleaseClient.ts +2450 -0
- package/src/Release/index.ts +2 -0
- package/src/ResourceUsage/ResourceUsage.ts +19 -0
- package/src/ResourceUsage/ResourceUsageClient.ts +48 -0
- package/src/ServiceEndpoint/ServiceEndpoint.ts +930 -0
- package/src/ServiceEndpoint/ServiceEndpointClient.ts +617 -0
- package/src/ServiceEndpoint/index.ts +2 -0
- package/src/ServiceHooks/ServiceHooks.ts +759 -0
- package/src/ServiceHooks/ServiceHooksClient.ts +499 -0
- package/src/ServiceHooks/index.ts +2 -0
- package/src/TaskAgent/TaskAgent.ts +3896 -0
- package/src/TaskAgent/TaskAgentClient.ts +3918 -0
- package/src/TaskAgent/index.ts +2 -0
- package/src/Test/Test.ts +5853 -0
- package/src/Test/TestClient.ts +2201 -0
- package/src/Test/index.ts +2 -0
- package/src/TestPlan/TestPlan.ts +1384 -0
- package/src/TestPlan/TestPlanClient.ts +1367 -0
- package/src/TestPlan/index.ts +2 -0
- package/{AdvancedSecurity.Reporting/Reporting.js → src/TestResults/TestResults.ts} +7 -5
- package/src/TestResults/TestResultsClient.ts +3506 -0
- package/src/TestResults/index.ts +2 -0
- package/src/Tfvc/Tfvc.ts +770 -0
- package/src/Tfvc/TfvcClient.ts +757 -0
- package/src/Tfvc/index.ts +2 -0
- package/src/WebApi/WebApi.ts +452 -0
- package/src/WebApi/index.ts +1 -0
- package/src/Wiki/Wiki.ts +352 -0
- package/src/Wiki/WikiClient.ts +712 -0
- package/src/Wiki/index.ts +2 -0
- package/src/Work/Work.ts +1367 -0
- package/src/Work/WorkClient.ts +1489 -0
- package/src/Work/index.ts +2 -0
- package/src/WorkItemTracking/WorkItemTracking.ts +2215 -0
- package/src/WorkItemTracking/WorkItemTrackingClient.ts +2032 -0
- package/src/WorkItemTracking/WorkItemTrackingServices.ts +329 -0
- package/src/WorkItemTracking/index.ts +3 -0
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +1295 -0
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +1455 -0
- package/src/WorkItemTrackingProcess/index.ts +2 -0
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +606 -0
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +1175 -0
- package/src/WorkItemTrackingProcessDefinitions/index.ts +2 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +21 -0
- package/AdvancedSecurity.Reporting/Reporting.min.js +0 -1
- package/TestResults/TestResultsClient.min.js +0 -1
- /package/{Accounts → bin/Accounts}/Accounts.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/Accounts.js +0 -0
- /package/{Accounts → bin/Accounts}/Accounts.min.js +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.js +0 -0
- /package/{Accounts → bin/Accounts}/AccountsClient.min.js +0 -0
- /package/{Accounts → bin/Accounts}/index.d.ts +0 -0
- /package/{Accounts → bin/Accounts}/index.js +0 -0
- /package/{Accounts → bin/Accounts}/index.min.js +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
- /package/{AdvancedSecurity.Reporting → bin/AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
- /package/{Alert → bin/Alert}/Alert.js +0 -0
- /package/{Alert → bin/Alert}/Alert.min.js +0 -0
- /package/{Alert → bin/Alert}/AlertClient.d.ts +0 -0
- /package/{Alert → bin/Alert}/AlertClient.js +0 -0
- /package/{Alert → bin/Alert}/AlertClient.min.js +0 -0
- /package/{Boards → bin/Boards}/Boards.d.ts +0 -0
- /package/{Boards → bin/Boards}/Boards.js +0 -0
- /package/{Boards → bin/Boards}/Boards.min.js +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.d.ts +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.js +0 -0
- /package/{Boards → bin/Boards}/BoardsClient.min.js +0 -0
- /package/{Boards → bin/Boards}/index.d.ts +0 -0
- /package/{Boards → bin/Boards}/index.js +0 -0
- /package/{Boards → bin/Boards}/index.min.js +0 -0
- /package/{Build → bin/Build}/Build.d.ts +0 -0
- /package/{Build → bin/Build}/Build.js +0 -0
- /package/{Build → bin/Build}/Build.min.js +0 -0
- /package/{Build → bin/Build}/BuildClient.d.ts +0 -0
- /package/{Build → bin/Build}/BuildClient.js +0 -0
- /package/{Build → bin/Build}/BuildClient.min.js +0 -0
- /package/{Build → bin/Build}/BuildServices.d.ts +0 -0
- /package/{Build → bin/Build}/BuildServices.js +0 -0
- /package/{Build → bin/Build}/BuildServices.min.js +0 -0
- /package/{Build → bin/Build}/index.d.ts +0 -0
- /package/{Build → bin/Build}/index.js +0 -0
- /package/{Build → bin/Build}/index.min.js +0 -0
- /package/{Comments → bin/Comments}/Comments.d.ts +0 -0
- /package/{Comments → bin/Comments}/Comments.js +0 -0
- /package/{Comments → bin/Comments}/Comments.min.js +0 -0
- /package/{Comments → bin/Comments}/index.d.ts +0 -0
- /package/{Comments → bin/Comments}/index.js +0 -0
- /package/{Comments → bin/Comments}/index.min.js +0 -0
- /package/{Common → bin/Common}/Client.d.ts +0 -0
- /package/{Common → bin/Common}/Client.js +0 -0
- /package/{Common → bin/Common}/Client.min.js +0 -0
- /package/{Common → bin/Common}/CommonServices.d.ts +0 -0
- /package/{Common → bin/Common}/CommonServices.js +0 -0
- /package/{Common → bin/Common}/CommonServices.min.js +0 -0
- /package/{Common → bin/Common}/Context.d.ts +0 -0
- /package/{Common → bin/Common}/Fetch.d.ts +0 -0
- /package/{Common → bin/Common}/Fetch.js +0 -0
- /package/{Common → bin/Common}/Fetch.min.js +0 -0
- /package/{Common → bin/Common}/RestClientBase.d.ts +0 -0
- /package/{Common → bin/Common}/RestClientBase.js +0 -0
- /package/{Common → bin/Common}/RestClientBase.min.js +0 -0
- /package/{Common → bin/Common}/System.d.ts +0 -0
- /package/{Common → bin/Common}/System.js +0 -0
- /package/{Common → bin/Common}/System.min.js +0 -0
- /package/{Common → bin/Common}/SystemData.d.ts +0 -0
- /package/{Common → bin/Common}/SystemData.js +0 -0
- /package/{Common → bin/Common}/SystemData.min.js +0 -0
- /package/{Common → bin/Common}/Util/Serialization.d.ts +0 -0
- /package/{Common → bin/Common}/Util/Serialization.js +0 -0
- /package/{Common → bin/Common}/Util/Serialization.min.js +0 -0
- /package/{Common → bin/Common}/Util/Url.d.ts +0 -0
- /package/{Common → bin/Common}/Util/Url.js +0 -0
- /package/{Common → bin/Common}/Util/Url.min.js +0 -0
- /package/{Common → bin/Common}/index.d.ts +0 -0
- /package/{Common → bin/Common}/index.js +0 -0
- /package/{Common → bin/Common}/index.min.js +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.js +0 -0
- /package/{Contributions → bin/Contributions}/Contributions.min.js +0 -0
- /package/{Contributions → bin/Contributions}/ContributionsClient.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/index.d.ts +0 -0
- /package/{Contributions → bin/Contributions}/index.js +0 -0
- /package/{Contributions → bin/Contributions}/index.min.js +0 -0
- /package/{Core → bin/Core}/Core.d.ts +0 -0
- /package/{Core → bin/Core}/Core.js +0 -0
- /package/{Core → bin/Core}/Core.min.js +0 -0
- /package/{Core → bin/Core}/CoreClient.d.ts +0 -0
- /package/{Core → bin/Core}/CoreClient.js +0 -0
- /package/{Core → bin/Core}/CoreClient.min.js +0 -0
- /package/{Core → bin/Core}/index.d.ts +0 -0
- /package/{Core → bin/Core}/index.js +0 -0
- /package/{Core → bin/Core}/index.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.js +0 -0
- /package/{Dashboard → bin/Dashboard}/Dashboard.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.js +0 -0
- /package/{Dashboard → bin/Dashboard}/DashboardClient.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetConfigHelpers.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetContracts.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.js +0 -0
- /package/{Dashboard → bin/Dashboard}/WidgetHelpers.min.js +0 -0
- /package/{Dashboard → bin/Dashboard}/index.d.ts +0 -0
- /package/{Dashboard → bin/Dashboard}/index.js +0 -0
- /package/{Dashboard → bin/Dashboard}/index.min.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.d.ts +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.js +0 -0
- /package/{DistributedTaskCommon → bin/DistributedTaskCommon}/index.min.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagement.min.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.d.ts +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.js +0 -0
- /package/{ExtensionManagement → bin/ExtensionManagement}/index.min.js +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.d.ts +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.js +0 -0
- /package/{Favorite → bin/Favorite}/Favorite.min.js +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.d.ts +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.js +0 -0
- /package/{Favorite → bin/Favorite}/FavoriteClient.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailability.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.d.ts +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.js +0 -0
- /package/{FeatureAvailability → bin/FeatureAvailability}/index.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagement.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/FeatureManagementClient.min.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.d.ts +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.js +0 -0
- /package/{FeatureManagement → bin/FeatureManagement}/index.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainer.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.js +0 -0
- /package/{FileContainer → bin/FileContainer}/FileContainerClient.min.js +0 -0
- /package/{FileContainer → bin/FileContainer}/index.d.ts +0 -0
- /package/{FileContainer → bin/FileContainer}/index.js +0 -0
- /package/{FileContainer → bin/FileContainer}/index.min.js +0 -0
- /package/{FormInput → bin/FormInput}/FormInput.d.ts +0 -0
- /package/{FormInput → bin/FormInput}/FormInput.js +0 -0
- /package/{FormInput → bin/FormInput}/FormInput.min.js +0 -0
- /package/{FormInput → bin/FormInput}/index.d.ts +0 -0
- /package/{FormInput → bin/FormInput}/index.js +0 -0
- /package/{FormInput → bin/FormInput}/index.min.js +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.js +0 -0
- /package/{Gallery → bin/Gallery}/Gallery.min.js +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.js +0 -0
- /package/{Gallery → bin/Gallery}/GalleryClient.min.js +0 -0
- /package/{Gallery → bin/Gallery}/index.d.ts +0 -0
- /package/{Gallery → bin/Gallery}/index.js +0 -0
- /package/{Gallery → bin/Gallery}/index.min.js +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.d.ts +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.js +0 -0
- /package/{Git → bin/Git}/CodeEditorTypes.min.js +0 -0
- /package/{Git → bin/Git}/Git.js +0 -0
- /package/{Git → bin/Git}/Git.min.js +0 -0
- /package/{Git → bin/Git}/GitClient.d.ts +0 -0
- /package/{Git → bin/Git}/GitClient.js +0 -0
- /package/{Git → bin/Git}/GitClient.min.js +0 -0
- /package/{Git → bin/Git}/GitServices.d.ts +0 -0
- /package/{Git → bin/Git}/GitServices.js +0 -0
- /package/{Git → bin/Git}/GitServices.min.js +0 -0
- /package/{Git → bin/Git}/index.d.ts +0 -0
- /package/{Git → bin/Git}/index.js +0 -0
- /package/{Git → bin/Git}/index.min.js +0 -0
- /package/{Graph → bin/Graph}/Graph.d.ts +0 -0
- /package/{Graph → bin/Graph}/Graph.js +0 -0
- /package/{Graph → bin/Graph}/Graph.min.js +0 -0
- /package/{Graph → bin/Graph}/GraphClient.d.ts +0 -0
- /package/{Graph → bin/Graph}/GraphClient.js +0 -0
- /package/{Graph → bin/Graph}/GraphClient.min.js +0 -0
- /package/{Graph → bin/Graph}/index.d.ts +0 -0
- /package/{Graph → bin/Graph}/index.js +0 -0
- /package/{Graph → bin/Graph}/index.min.js +0 -0
- /package/{Identities → bin/Identities}/Identities.d.ts +0 -0
- /package/{Identities → bin/Identities}/Identities.js +0 -0
- /package/{Identities → bin/Identities}/Identities.min.js +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.d.ts +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.js +0 -0
- /package/{Identities → bin/Identities}/IdentityProvider.min.js +0 -0
- /package/{Identities → bin/Identities}/IdentityService.d.ts +0 -0
- /package/{Identities → bin/Identities}/IdentityService.js +0 -0
- /package/{Identities → bin/Identities}/IdentityService.min.js +0 -0
- /package/{Identities → bin/Identities}/index.d.ts +0 -0
- /package/{Identities → bin/Identities}/index.js +0 -0
- /package/{Identities → bin/Identities}/index.min.js +0 -0
- /package/{Locations → bin/Locations}/Locations.d.ts +0 -0
- /package/{Locations → bin/Locations}/Locations.js +0 -0
- /package/{Locations → bin/Locations}/Locations.min.js +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.d.ts +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.js +0 -0
- /package/{Locations → bin/Locations}/LocationsClient.min.js +0 -0
- /package/{Locations → bin/Locations}/index.d.ts +0 -0
- /package/{Locations → bin/Locations}/index.js +0 -0
- /package/{Locations → bin/Locations}/index.min.js +0 -0
- /package/{Management → bin/Management}/Management.js +0 -0
- /package/{Management → bin/Management}/Management.min.js +0 -0
- /package/{Management → bin/Management}/ManagementClient.d.ts +0 -0
- /package/{Management → bin/Management}/ManagementClient.js +0 -0
- /package/{Management → bin/Management}/ManagementClient.min.js +0 -0
- /package/{Notification → bin/Notification}/Notification.d.ts +0 -0
- /package/{Notification → bin/Notification}/Notification.js +0 -0
- /package/{Notification → bin/Notification}/Notification.min.js +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.d.ts +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.js +0 -0
- /package/{Notification → bin/Notification}/NotificationClient.min.js +0 -0
- /package/{Notification → bin/Notification}/index.d.ts +0 -0
- /package/{Notification → bin/Notification}/index.js +0 -0
- /package/{Notification → bin/Notification}/index.min.js +0 -0
- /package/{Operations → bin/Operations}/Operations.d.ts +0 -0
- /package/{Operations → bin/Operations}/Operations.js +0 -0
- /package/{Operations → bin/Operations}/Operations.min.js +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.d.ts +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.js +0 -0
- /package/{Operations → bin/Operations}/OperationsClient.min.js +0 -0
- /package/{Operations → bin/Operations}/index.d.ts +0 -0
- /package/{Operations → bin/Operations}/index.js +0 -0
- /package/{Operations → bin/Operations}/index.min.js +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.d.ts +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.js +0 -0
- /package/{Pipelines → bin/Pipelines}/Pipelines.min.js +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.d.ts +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.js +0 -0
- /package/{Pipelines → bin/Pipelines}/PipelinesClient.min.js +0 -0
- /package/{Policy → bin/Policy}/Policy.d.ts +0 -0
- /package/{Policy → bin/Policy}/Policy.js +0 -0
- /package/{Policy → bin/Policy}/Policy.min.js +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.d.ts +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.js +0 -0
- /package/{Policy → bin/Policy}/PolicyClient.min.js +0 -0
- /package/{Policy → bin/Policy}/index.d.ts +0 -0
- /package/{Policy → bin/Policy}/index.js +0 -0
- /package/{Policy → bin/Policy}/index.min.js +0 -0
- /package/{Profile → bin/Profile}/Profile.d.ts +0 -0
- /package/{Profile → bin/Profile}/Profile.js +0 -0
- /package/{Profile → bin/Profile}/Profile.min.js +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.d.ts +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.js +0 -0
- /package/{Profile → bin/Profile}/ProfileClient.min.js +0 -0
- /package/{Profile → bin/Profile}/index.d.ts +0 -0
- /package/{Profile → bin/Profile}/index.js +0 -0
- /package/{Profile → bin/Profile}/index.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.d.ts +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.js +0 -0
- /package/{ProjectAnalysis → bin/ProjectAnalysis}/index.min.js +0 -0
- /package/{Release → bin/Release}/Release.d.ts +0 -0
- /package/{Release → bin/Release}/Release.js +0 -0
- /package/{Release → bin/Release}/Release.min.js +0 -0
- /package/{Release → bin/Release}/ReleaseClient.d.ts +0 -0
- /package/{Release → bin/Release}/ReleaseClient.js +0 -0
- /package/{Release → bin/Release}/ReleaseClient.min.js +0 -0
- /package/{Release → bin/Release}/index.d.ts +0 -0
- /package/{Release → bin/Release}/index.js +0 -0
- /package/{Release → bin/Release}/index.min.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.d.ts +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsage.min.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.d.ts +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.js +0 -0
- /package/{ResourceUsage → bin/ResourceUsage}/ResourceUsageClient.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/ServiceEndpointClient.min.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.d.ts +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.js +0 -0
- /package/{ServiceEndpoint → bin/ServiceEndpoint}/index.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooks.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/ServiceHooksClient.min.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.d.ts +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.js +0 -0
- /package/{ServiceHooks → bin/ServiceHooks}/index.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgent.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgent.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.d.ts +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/TaskAgentClient.min.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.d.ts +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.js +0 -0
- /package/{TaskAgent → bin/TaskAgent}/index.min.js +0 -0
- /package/{Test → bin/Test}/Test.js +0 -0
- /package/{Test → bin/Test}/Test.min.js +0 -0
- /package/{Test → bin/Test}/TestClient.d.ts +0 -0
- /package/{Test → bin/Test}/TestClient.js +0 -0
- /package/{Test → bin/Test}/TestClient.min.js +0 -0
- /package/{Test → bin/Test}/index.d.ts +0 -0
- /package/{Test → bin/Test}/index.js +0 -0
- /package/{Test → bin/Test}/index.min.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlan.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlan.min.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlanClient.d.ts +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlanClient.js +0 -0
- /package/{TestPlan → bin/TestPlan}/TestPlanClient.min.js +0 -0
- /package/{TestPlan → bin/TestPlan}/index.d.ts +0 -0
- /package/{TestPlan → bin/TestPlan}/index.js +0 -0
- /package/{TestPlan → bin/TestPlan}/index.min.js +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.d.ts +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.js +0 -0
- /package/{TestResults → bin/TestResults}/TestResults.min.js +0 -0
- /package/{TestResults → bin/TestResults}/index.d.ts +0 -0
- /package/{TestResults → bin/TestResults}/index.js +0 -0
- /package/{TestResults → bin/TestResults}/index.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.js +0 -0
- /package/{Tfvc → bin/Tfvc}/Tfvc.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.js +0 -0
- /package/{Tfvc → bin/Tfvc}/TfvcClient.min.js +0 -0
- /package/{Tfvc → bin/Tfvc}/index.d.ts +0 -0
- /package/{Tfvc → bin/Tfvc}/index.js +0 -0
- /package/{Tfvc → bin/Tfvc}/index.min.js +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.d.ts +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.js +0 -0
- /package/{WebApi → bin/WebApi}/WebApi.min.js +0 -0
- /package/{WebApi → bin/WebApi}/index.d.ts +0 -0
- /package/{WebApi → bin/WebApi}/index.js +0 -0
- /package/{WebApi → bin/WebApi}/index.min.js +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.js +0 -0
- /package/{Wiki → bin/Wiki}/Wiki.min.js +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.js +0 -0
- /package/{Wiki → bin/Wiki}/WikiClient.min.js +0 -0
- /package/{Wiki → bin/Wiki}/index.d.ts +0 -0
- /package/{Wiki → bin/Wiki}/index.js +0 -0
- /package/{Wiki → bin/Wiki}/index.min.js +0 -0
- /package/{Work → bin/Work}/Work.d.ts +0 -0
- /package/{Work → bin/Work}/Work.js +0 -0
- /package/{Work → bin/Work}/Work.min.js +0 -0
- /package/{Work → bin/Work}/WorkClient.d.ts +0 -0
- /package/{Work → bin/Work}/WorkClient.js +0 -0
- /package/{Work → bin/Work}/WorkClient.min.js +0 -0
- /package/{Work → bin/Work}/index.d.ts +0 -0
- /package/{Work → bin/Work}/index.js +0 -0
- /package/{Work → bin/Work}/index.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTracking.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.d.ts +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.js +0 -0
- /package/{WorkItemTracking → bin/WorkItemTracking}/index.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.d.ts +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.js +0 -0
- /package/{WorkItemTrackingProcess → bin/WorkItemTrackingProcess}/index.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.js +0 -0
- /package/{WorkItemTrackingProcessDefinitions → bin/WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
- /package/{index.d.ts → bin/index.d.ts} +0 -0
- /package/{index.js → bin/index.js} +0 -0
- /package/{index.min.js → bin/index.min.js} +0 -0
|
@@ -0,0 +1,765 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ---------------------------------------------------------
|
|
3
|
+
* Copyright(C) Microsoft Corporation. All rights reserved.
|
|
4
|
+
* ---------------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { IVssRestClientOptions } from "../Common/Context";
|
|
8
|
+
import { RestClientBase } from "../Common/RestClientBase";
|
|
9
|
+
import { deserializeVssJsonObject } from "../Common/Util/Serialization";
|
|
10
|
+
|
|
11
|
+
import * as Core from "../Core/Core";
|
|
12
|
+
import * as Operations from "../Operations/Operations";
|
|
13
|
+
import * as WebApi from "../WebApi/WebApi";
|
|
14
|
+
|
|
15
|
+
export class CoreRestClient extends RestClientBase {
|
|
16
|
+
constructor(options: IVssRestClientOptions) {
|
|
17
|
+
super(options);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
public static readonly RESOURCE_AREA_ID = "79134c72-4a58-4b42-976c-04e7115f32bf";
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Removes the avatar for the project.
|
|
24
|
+
*
|
|
25
|
+
* @param projectId - The ID or name of the project.
|
|
26
|
+
*/
|
|
27
|
+
public async removeProjectAvatar(
|
|
28
|
+
projectId: string
|
|
29
|
+
): Promise<void> {
|
|
30
|
+
|
|
31
|
+
return this.beginRequest<void>({
|
|
32
|
+
apiVersion: "7.2-preview.1",
|
|
33
|
+
method: "DELETE",
|
|
34
|
+
routeTemplate: "_apis/projects/{projectId}/avatar",
|
|
35
|
+
routeValues: {
|
|
36
|
+
projectId: projectId
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Sets the avatar for the project.
|
|
43
|
+
*
|
|
44
|
+
* @param avatarBlob - The avatar blob data object to upload.
|
|
45
|
+
* @param projectId - The ID or name of the project.
|
|
46
|
+
*/
|
|
47
|
+
public async setProjectAvatar(
|
|
48
|
+
avatarBlob: Core.ProjectAvatar,
|
|
49
|
+
projectId: string
|
|
50
|
+
): Promise<void> {
|
|
51
|
+
|
|
52
|
+
return this.beginRequest<void>({
|
|
53
|
+
apiVersion: "7.2-preview.1",
|
|
54
|
+
method: "PUT",
|
|
55
|
+
routeTemplate: "_apis/projects/{projectId}/avatar",
|
|
56
|
+
routeValues: {
|
|
57
|
+
projectId: projectId
|
|
58
|
+
},
|
|
59
|
+
body: avatarBlob
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Gets list of user readable teams in a project and teams user is member of (excluded from readable list).
|
|
65
|
+
*
|
|
66
|
+
* @param projectId - The name or ID (GUID) of the team project containing the teams to retrieve.
|
|
67
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
68
|
+
* @param top - Maximum number of teams to return.
|
|
69
|
+
* @param skip - Number of teams to skip.
|
|
70
|
+
*/
|
|
71
|
+
public async getProjectTeamsByCategory(
|
|
72
|
+
projectId: string,
|
|
73
|
+
expandIdentity?: boolean,
|
|
74
|
+
top?: number,
|
|
75
|
+
skip?: number
|
|
76
|
+
): Promise<Core.CategorizedWebApiTeams> {
|
|
77
|
+
|
|
78
|
+
const queryValues: any = {
|
|
79
|
+
'$expandIdentity': expandIdentity,
|
|
80
|
+
'$top': top,
|
|
81
|
+
'$skip': skip
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
return this.beginRequest<Core.CategorizedWebApiTeams>({
|
|
85
|
+
apiVersion: "7.2-preview.1",
|
|
86
|
+
routeTemplate: "_apis/projects/{projectId}/categorizedTeams/",
|
|
87
|
+
routeValues: {
|
|
88
|
+
projectId: projectId
|
|
89
|
+
},
|
|
90
|
+
queryParams: queryValues
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* @param connectedServiceCreationData -
|
|
96
|
+
* @param projectId -
|
|
97
|
+
*/
|
|
98
|
+
public async createConnectedService(
|
|
99
|
+
connectedServiceCreationData: Core.WebApiConnectedServiceDetails,
|
|
100
|
+
projectId: string
|
|
101
|
+
): Promise<Core.WebApiConnectedService> {
|
|
102
|
+
|
|
103
|
+
return this.beginRequest<Core.WebApiConnectedService>({
|
|
104
|
+
apiVersion: "7.2-preview.1",
|
|
105
|
+
method: "POST",
|
|
106
|
+
routeTemplate: "_apis/projects/{projectId}/connectedServices/{name}",
|
|
107
|
+
routeValues: {
|
|
108
|
+
projectId: projectId
|
|
109
|
+
},
|
|
110
|
+
body: connectedServiceCreationData
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @param projectId -
|
|
116
|
+
* @param name -
|
|
117
|
+
*/
|
|
118
|
+
public async getConnectedServiceDetails(
|
|
119
|
+
projectId: string,
|
|
120
|
+
name: string
|
|
121
|
+
): Promise<Core.WebApiConnectedServiceDetails> {
|
|
122
|
+
|
|
123
|
+
return this.beginRequest<Core.WebApiConnectedServiceDetails>({
|
|
124
|
+
apiVersion: "7.2-preview.1",
|
|
125
|
+
routeTemplate: "_apis/projects/{projectId}/connectedServices/{name}",
|
|
126
|
+
routeValues: {
|
|
127
|
+
projectId: projectId,
|
|
128
|
+
name: name
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @param projectId -
|
|
135
|
+
* @param kind -
|
|
136
|
+
*/
|
|
137
|
+
public async getConnectedServices(
|
|
138
|
+
projectId: string,
|
|
139
|
+
kind?: Core.ConnectedServiceKind
|
|
140
|
+
): Promise<Core.WebApiConnectedService[]> {
|
|
141
|
+
|
|
142
|
+
const queryValues: any = {
|
|
143
|
+
kind: kind
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
return this.beginRequest<Core.WebApiConnectedService[]>({
|
|
147
|
+
apiVersion: "7.2-preview.1",
|
|
148
|
+
routeTemplate: "_apis/projects/{projectId}/connectedServices/{name}",
|
|
149
|
+
routeValues: {
|
|
150
|
+
projectId: projectId
|
|
151
|
+
},
|
|
152
|
+
queryParams: queryValues
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @param mruData -
|
|
158
|
+
* @param mruName -
|
|
159
|
+
*/
|
|
160
|
+
public async createIdentityMru(
|
|
161
|
+
mruData: Core.IdentityData,
|
|
162
|
+
mruName: string
|
|
163
|
+
): Promise<void> {
|
|
164
|
+
|
|
165
|
+
return this.beginRequest<void>({
|
|
166
|
+
apiVersion: "7.2-preview.1",
|
|
167
|
+
method: "POST",
|
|
168
|
+
routeTemplate: "_apis/core/identityMru/{mruName}",
|
|
169
|
+
routeValues: {
|
|
170
|
+
mruName: mruName
|
|
171
|
+
},
|
|
172
|
+
body: mruData
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* @param mruData -
|
|
178
|
+
* @param mruName -
|
|
179
|
+
*/
|
|
180
|
+
public async deleteIdentityMru(
|
|
181
|
+
mruData: Core.IdentityData,
|
|
182
|
+
mruName: string
|
|
183
|
+
): Promise<void> {
|
|
184
|
+
|
|
185
|
+
return this.beginRequest<void>({
|
|
186
|
+
apiVersion: "7.2-preview.1",
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
routeTemplate: "_apis/core/identityMru/{mruName}",
|
|
189
|
+
routeValues: {
|
|
190
|
+
mruName: mruName
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* @param mruName -
|
|
197
|
+
*/
|
|
198
|
+
public async getIdentityMru(
|
|
199
|
+
mruName: string
|
|
200
|
+
): Promise<WebApi.IdentityRef[]> {
|
|
201
|
+
|
|
202
|
+
return this.beginRequest<WebApi.IdentityRef[]>({
|
|
203
|
+
apiVersion: "7.2-preview.1",
|
|
204
|
+
routeTemplate: "_apis/core/identityMru/{mruName}",
|
|
205
|
+
routeValues: {
|
|
206
|
+
mruName: mruName
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* @param mruData -
|
|
213
|
+
* @param mruName -
|
|
214
|
+
*/
|
|
215
|
+
public async updateIdentityMru(
|
|
216
|
+
mruData: Core.IdentityData,
|
|
217
|
+
mruName: string
|
|
218
|
+
): Promise<void> {
|
|
219
|
+
|
|
220
|
+
return this.beginRequest<void>({
|
|
221
|
+
apiVersion: "7.2-preview.1",
|
|
222
|
+
method: "PATCH",
|
|
223
|
+
routeTemplate: "_apis/core/identityMru/{mruName}",
|
|
224
|
+
routeValues: {
|
|
225
|
+
mruName: mruName
|
|
226
|
+
},
|
|
227
|
+
body: mruData
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Get a list of members for a specific team.
|
|
233
|
+
*
|
|
234
|
+
* @param projectId - The name or ID (GUID) of the team project the team belongs to.
|
|
235
|
+
* @param teamId - The name or ID (GUID) of the team .
|
|
236
|
+
* @param top -
|
|
237
|
+
* @param skip -
|
|
238
|
+
*/
|
|
239
|
+
public async getTeamMembersWithExtendedProperties(
|
|
240
|
+
projectId: string,
|
|
241
|
+
teamId: string,
|
|
242
|
+
top?: number,
|
|
243
|
+
skip?: number
|
|
244
|
+
): Promise<WebApi.TeamMember[]> {
|
|
245
|
+
|
|
246
|
+
const queryValues: any = {
|
|
247
|
+
'$top': top,
|
|
248
|
+
'$skip': skip
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
return this.beginRequest<WebApi.TeamMember[]>({
|
|
252
|
+
apiVersion: "7.2-preview.2",
|
|
253
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{teamId}/members",
|
|
254
|
+
routeValues: {
|
|
255
|
+
projectId: projectId,
|
|
256
|
+
teamId: teamId
|
|
257
|
+
},
|
|
258
|
+
queryParams: queryValues
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* Get a process by ID.
|
|
264
|
+
*
|
|
265
|
+
* @param processId - ID for a process.
|
|
266
|
+
*/
|
|
267
|
+
public async getProcessById(
|
|
268
|
+
processId: string
|
|
269
|
+
): Promise<Core.Process> {
|
|
270
|
+
|
|
271
|
+
return this.beginRequest<Core.Process>({
|
|
272
|
+
apiVersion: "7.2-preview.1",
|
|
273
|
+
routeTemplate: "_apis/process/processes/{*processId}",
|
|
274
|
+
routeValues: {
|
|
275
|
+
processId: processId
|
|
276
|
+
}
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* Get a list of processes.
|
|
282
|
+
*
|
|
283
|
+
*/
|
|
284
|
+
public async getProcesses(
|
|
285
|
+
): Promise<Core.Process[]> {
|
|
286
|
+
|
|
287
|
+
return this.beginRequest<Core.Process[]>({
|
|
288
|
+
apiVersion: "7.2-preview.1",
|
|
289
|
+
routeTemplate: "_apis/process/processes/{*processId}"
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* Get project collection with the specified id or name.
|
|
295
|
+
*
|
|
296
|
+
* @param collectionId -
|
|
297
|
+
*/
|
|
298
|
+
public async getProjectCollection(
|
|
299
|
+
collectionId: string
|
|
300
|
+
): Promise<Core.TeamProjectCollection> {
|
|
301
|
+
|
|
302
|
+
return this.beginRequest<Core.TeamProjectCollection>({
|
|
303
|
+
apiVersion: "7.2-preview.2",
|
|
304
|
+
routeTemplate: "_apis/projectCollections/{collectionId}",
|
|
305
|
+
routeValues: {
|
|
306
|
+
collectionId: collectionId
|
|
307
|
+
}
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Get project collection references for this application.
|
|
313
|
+
*
|
|
314
|
+
* @param top -
|
|
315
|
+
* @param skip -
|
|
316
|
+
*/
|
|
317
|
+
public async getProjectCollections(
|
|
318
|
+
top?: number,
|
|
319
|
+
skip?: number
|
|
320
|
+
): Promise<Core.TeamProjectCollectionReference[]> {
|
|
321
|
+
|
|
322
|
+
const queryValues: any = {
|
|
323
|
+
'$top': top,
|
|
324
|
+
'$skip': skip
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
return this.beginRequest<Core.TeamProjectCollectionReference[]>({
|
|
328
|
+
apiVersion: "7.2-preview.2",
|
|
329
|
+
routeTemplate: "_apis/projectCollections/{collectionId}",
|
|
330
|
+
queryParams: queryValues
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Gets the history of changes to the project.
|
|
336
|
+
*
|
|
337
|
+
* @param minRevision - The minimum revision number to return in the history.
|
|
338
|
+
*/
|
|
339
|
+
public async getProjectHistoryEntries(
|
|
340
|
+
minRevision?: number
|
|
341
|
+
): Promise<Core.ProjectInfo[]> {
|
|
342
|
+
|
|
343
|
+
const queryValues: any = {
|
|
344
|
+
minRevision: minRevision
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
return this.beginRequest<Core.ProjectInfo[]>({
|
|
348
|
+
apiVersion: "7.2-preview.2",
|
|
349
|
+
routeTemplate: "_apis/projectHistory",
|
|
350
|
+
queryParams: queryValues
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Get project with the specified id or name, optionally including capabilities.
|
|
356
|
+
*
|
|
357
|
+
* @param projectId -
|
|
358
|
+
* @param includeCapabilities - Include capabilities (such as source control) in the team project result (default: false).
|
|
359
|
+
* @param includeHistory - Search within renamed projects (that had such name in the past).
|
|
360
|
+
*/
|
|
361
|
+
public async getProject(
|
|
362
|
+
projectId: string,
|
|
363
|
+
includeCapabilities?: boolean,
|
|
364
|
+
includeHistory?: boolean
|
|
365
|
+
): Promise<Core.TeamProject> {
|
|
366
|
+
|
|
367
|
+
const queryValues: any = {
|
|
368
|
+
includeCapabilities: includeCapabilities,
|
|
369
|
+
includeHistory: includeHistory
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
return this.beginRequest<Core.TeamProject>({
|
|
373
|
+
apiVersion: "7.2-preview.4",
|
|
374
|
+
routeTemplate: "_apis/projects/{*projectId}",
|
|
375
|
+
routeValues: {
|
|
376
|
+
projectId: projectId
|
|
377
|
+
},
|
|
378
|
+
queryParams: queryValues
|
|
379
|
+
});
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Get all projects in the organization that the authenticated user has access to.
|
|
384
|
+
*
|
|
385
|
+
* @param stateFilter - Filter on team projects in a specific team project state (default: WellFormed).
|
|
386
|
+
* @param top -
|
|
387
|
+
* @param skip -
|
|
388
|
+
* @param continuationToken - Pointer that shows how many projects already been fetched.
|
|
389
|
+
* @param getDefaultTeamImageUrl -
|
|
390
|
+
*/
|
|
391
|
+
public async getProjects(
|
|
392
|
+
stateFilter?: any,
|
|
393
|
+
top?: number,
|
|
394
|
+
skip?: number,
|
|
395
|
+
continuationToken?: number,
|
|
396
|
+
getDefaultTeamImageUrl?: boolean
|
|
397
|
+
): Promise<WebApi.PagedList<Core.TeamProjectReference>> {
|
|
398
|
+
|
|
399
|
+
const queryValues: any = {
|
|
400
|
+
stateFilter: stateFilter,
|
|
401
|
+
'$top': top,
|
|
402
|
+
'$skip': skip,
|
|
403
|
+
continuationToken: continuationToken,
|
|
404
|
+
getDefaultTeamImageUrl: getDefaultTeamImageUrl
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
return this.beginRequest<Response>({
|
|
408
|
+
apiVersion: "7.2-preview.4",
|
|
409
|
+
routeTemplate: "_apis/projects/{*projectId}",
|
|
410
|
+
queryParams: queryValues,
|
|
411
|
+
returnRawResponse: true
|
|
412
|
+
}).then(async response => {
|
|
413
|
+
const body = <WebApi.PagedList<Core.TeamProjectReference>>await response.text().then(deserializeVssJsonObject);
|
|
414
|
+
body.continuationToken = response.headers.get("x-ms-continuationtoken");
|
|
415
|
+
return body;
|
|
416
|
+
});
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status.
|
|
421
|
+
*
|
|
422
|
+
* @param projectToCreate - The project to create.
|
|
423
|
+
*/
|
|
424
|
+
public async queueCreateProject(
|
|
425
|
+
projectToCreate: Core.TeamProject
|
|
426
|
+
): Promise<Operations.OperationReference> {
|
|
427
|
+
|
|
428
|
+
return this.beginRequest<Operations.OperationReference>({
|
|
429
|
+
apiVersion: "7.2-preview.4",
|
|
430
|
+
method: "POST",
|
|
431
|
+
routeTemplate: "_apis/projects/{*projectId}",
|
|
432
|
+
body: projectToCreate
|
|
433
|
+
});
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
/**
|
|
437
|
+
* Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status.
|
|
438
|
+
*
|
|
439
|
+
* @param projectId - The project id of the project to delete.
|
|
440
|
+
*/
|
|
441
|
+
public async queueDeleteProject(
|
|
442
|
+
projectId: string
|
|
443
|
+
): Promise<Operations.OperationReference> {
|
|
444
|
+
|
|
445
|
+
return this.beginRequest<Operations.OperationReference>({
|
|
446
|
+
apiVersion: "7.2-preview.4",
|
|
447
|
+
method: "DELETE",
|
|
448
|
+
routeTemplate: "_apis/projects/{*projectId}",
|
|
449
|
+
routeValues: {
|
|
450
|
+
projectId: projectId
|
|
451
|
+
}
|
|
452
|
+
});
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* Update an existing project's name, abbreviation, description, or restore a project.
|
|
457
|
+
*
|
|
458
|
+
* @param projectUpdate - The updates for the project. The state must be set to wellFormed to restore the project.
|
|
459
|
+
* @param projectId - The project id of the project to update.
|
|
460
|
+
*/
|
|
461
|
+
public async updateProject(
|
|
462
|
+
projectUpdate: Core.TeamProject,
|
|
463
|
+
projectId: string
|
|
464
|
+
): Promise<Operations.OperationReference> {
|
|
465
|
+
|
|
466
|
+
return this.beginRequest<Operations.OperationReference>({
|
|
467
|
+
apiVersion: "7.2-preview.4",
|
|
468
|
+
method: "PATCH",
|
|
469
|
+
routeTemplate: "_apis/projects/{*projectId}",
|
|
470
|
+
routeValues: {
|
|
471
|
+
projectId: projectId
|
|
472
|
+
},
|
|
473
|
+
body: projectUpdate
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Get a collection of team project properties for multiple projects.
|
|
479
|
+
*
|
|
480
|
+
* @param projectIds - A comma-delimited string of team project IDs
|
|
481
|
+
* @param properties -
|
|
482
|
+
*/
|
|
483
|
+
public async getProjectsProperties(
|
|
484
|
+
projectIds: string[],
|
|
485
|
+
properties?: string[]
|
|
486
|
+
): Promise<Core.ProjectProperties[]> {
|
|
487
|
+
|
|
488
|
+
const queryValues: any = {
|
|
489
|
+
projectIds: projectIds && projectIds.join(","),
|
|
490
|
+
properties: properties && properties.join(",")
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
return this.beginRequest<Core.ProjectProperties[]>({
|
|
494
|
+
apiVersion: "7.2-preview.1",
|
|
495
|
+
routeTemplate: "_apis/projectsproperties",
|
|
496
|
+
queryParams: queryValues
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Get a collection of team project properties.
|
|
502
|
+
*
|
|
503
|
+
* @param projectId - The team project ID.
|
|
504
|
+
* @param keys - A comma-delimited string of team project property names. Wildcard characters ("?" and "*") are supported. If no key is specified, all properties will be returned.
|
|
505
|
+
*/
|
|
506
|
+
public async getProjectProperties(
|
|
507
|
+
projectId: string,
|
|
508
|
+
keys?: string[]
|
|
509
|
+
): Promise<Core.ProjectProperty[]> {
|
|
510
|
+
|
|
511
|
+
const queryValues: any = {
|
|
512
|
+
keys: keys && keys.join(",")
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
return this.beginRequest<Core.ProjectProperty[]>({
|
|
516
|
+
apiVersion: "7.2-preview.1",
|
|
517
|
+
routeTemplate: "_apis/projects/{projectId}/properties",
|
|
518
|
+
routeValues: {
|
|
519
|
+
projectId: projectId
|
|
520
|
+
},
|
|
521
|
+
queryParams: queryValues
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Create, update, and delete team project properties.
|
|
527
|
+
*
|
|
528
|
+
* @param projectId - The team project ID.
|
|
529
|
+
* @param patchDocument - A JSON Patch document that represents an array of property operations. See RFC 6902 for more details on JSON Patch. The accepted operation verbs are Add and Remove, where Add is used for both creating and updating properties. The path consists of a forward slash and a property name.
|
|
530
|
+
*/
|
|
531
|
+
public async setProjectProperties(
|
|
532
|
+
projectId: string,
|
|
533
|
+
patchDocument: WebApi.JsonPatchDocument
|
|
534
|
+
): Promise<void> {
|
|
535
|
+
|
|
536
|
+
return this.beginRequest<void>({
|
|
537
|
+
apiVersion: "7.2-preview.1",
|
|
538
|
+
method: "PATCH",
|
|
539
|
+
routeTemplate: "_apis/projects/{projectId}/properties",
|
|
540
|
+
routeValues: {
|
|
541
|
+
projectId: projectId
|
|
542
|
+
},
|
|
543
|
+
customHeaders: {
|
|
544
|
+
"Content-Type": "application/json-patch+json",
|
|
545
|
+
},
|
|
546
|
+
body: patchDocument
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
/**
|
|
551
|
+
* @param proxy -
|
|
552
|
+
*/
|
|
553
|
+
public async createOrUpdateProxy(
|
|
554
|
+
proxy: Core.Proxy
|
|
555
|
+
): Promise<Core.Proxy> {
|
|
556
|
+
|
|
557
|
+
return this.beginRequest<Core.Proxy>({
|
|
558
|
+
apiVersion: "7.2-preview.2",
|
|
559
|
+
method: "PUT",
|
|
560
|
+
routeTemplate: "_apis/proxies",
|
|
561
|
+
body: proxy
|
|
562
|
+
});
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* @param proxyUrl -
|
|
567
|
+
* @param site -
|
|
568
|
+
*/
|
|
569
|
+
public async deleteProxy(
|
|
570
|
+
proxyUrl: string,
|
|
571
|
+
site?: string
|
|
572
|
+
): Promise<void> {
|
|
573
|
+
|
|
574
|
+
const queryValues: any = {
|
|
575
|
+
proxyUrl: proxyUrl,
|
|
576
|
+
site: site
|
|
577
|
+
};
|
|
578
|
+
|
|
579
|
+
return this.beginRequest<void>({
|
|
580
|
+
apiVersion: "7.2-preview.2",
|
|
581
|
+
method: "DELETE",
|
|
582
|
+
routeTemplate: "_apis/proxies",
|
|
583
|
+
queryParams: queryValues
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* @param proxyUrl -
|
|
589
|
+
*/
|
|
590
|
+
public async getProxies(
|
|
591
|
+
proxyUrl?: string
|
|
592
|
+
): Promise<Core.Proxy[]> {
|
|
593
|
+
|
|
594
|
+
const queryValues: any = {
|
|
595
|
+
proxyUrl: proxyUrl
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
return this.beginRequest<Core.Proxy[]>({
|
|
599
|
+
apiVersion: "7.2-preview.2",
|
|
600
|
+
routeTemplate: "_apis/proxies",
|
|
601
|
+
queryParams: queryValues
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* Get a list of all teams.
|
|
607
|
+
*
|
|
608
|
+
* @param mine - If true, then return all teams requesting user is member. Otherwise return all teams user has read access.
|
|
609
|
+
* @param top - Maximum number of teams to return.
|
|
610
|
+
* @param skip - Number of teams to skip.
|
|
611
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
612
|
+
*/
|
|
613
|
+
public async getAllTeams(
|
|
614
|
+
mine?: boolean,
|
|
615
|
+
top?: number,
|
|
616
|
+
skip?: number,
|
|
617
|
+
expandIdentity?: boolean
|
|
618
|
+
): Promise<Core.WebApiTeam[]> {
|
|
619
|
+
|
|
620
|
+
const queryValues: any = {
|
|
621
|
+
'$mine': mine,
|
|
622
|
+
'$top': top,
|
|
623
|
+
'$skip': skip,
|
|
624
|
+
'$expandIdentity': expandIdentity
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
return this.beginRequest<Core.WebApiTeam[]>({
|
|
628
|
+
apiVersion: "7.2-preview.3",
|
|
629
|
+
routeTemplate: "_apis/teams",
|
|
630
|
+
queryParams: queryValues
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Create a team in a team project.
|
|
636
|
+
*
|
|
637
|
+
* @param team - The team data used to create the team.
|
|
638
|
+
* @param projectId - The name or ID (GUID) of the team project in which to create the team.
|
|
639
|
+
*/
|
|
640
|
+
public async createTeam(
|
|
641
|
+
team: Core.WebApiTeam,
|
|
642
|
+
projectId: string
|
|
643
|
+
): Promise<Core.WebApiTeam> {
|
|
644
|
+
|
|
645
|
+
return this.beginRequest<Core.WebApiTeam>({
|
|
646
|
+
apiVersion: "7.2-preview.3",
|
|
647
|
+
method: "POST",
|
|
648
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{*teamId}",
|
|
649
|
+
routeValues: {
|
|
650
|
+
projectId: projectId
|
|
651
|
+
},
|
|
652
|
+
body: team
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* Delete a team.
|
|
658
|
+
*
|
|
659
|
+
* @param projectId - The name or ID (GUID) of the team project containing the team to delete.
|
|
660
|
+
* @param teamId - The name or ID of the team to delete.
|
|
661
|
+
*/
|
|
662
|
+
public async deleteTeam(
|
|
663
|
+
projectId: string,
|
|
664
|
+
teamId: string
|
|
665
|
+
): Promise<void> {
|
|
666
|
+
|
|
667
|
+
return this.beginRequest<void>({
|
|
668
|
+
apiVersion: "7.2-preview.3",
|
|
669
|
+
method: "DELETE",
|
|
670
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{*teamId}",
|
|
671
|
+
routeValues: {
|
|
672
|
+
projectId: projectId,
|
|
673
|
+
teamId: teamId
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* Get a specific team.
|
|
680
|
+
*
|
|
681
|
+
* @param projectId - The name or ID (GUID) of the team project containing the team.
|
|
682
|
+
* @param teamId - The name or ID (GUID) of the team.
|
|
683
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
684
|
+
*/
|
|
685
|
+
public async getTeam(
|
|
686
|
+
projectId: string,
|
|
687
|
+
teamId: string,
|
|
688
|
+
expandIdentity?: boolean
|
|
689
|
+
): Promise<Core.WebApiTeam> {
|
|
690
|
+
|
|
691
|
+
const queryValues: any = {
|
|
692
|
+
'$expandIdentity': expandIdentity
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
return this.beginRequest<Core.WebApiTeam>({
|
|
696
|
+
apiVersion: "7.2-preview.3",
|
|
697
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{*teamId}",
|
|
698
|
+
routeValues: {
|
|
699
|
+
projectId: projectId,
|
|
700
|
+
teamId: teamId
|
|
701
|
+
},
|
|
702
|
+
queryParams: queryValues
|
|
703
|
+
});
|
|
704
|
+
}
|
|
705
|
+
|
|
706
|
+
/**
|
|
707
|
+
* Get a list of teams.
|
|
708
|
+
*
|
|
709
|
+
* @param projectId -
|
|
710
|
+
* @param mine - If true return all the teams requesting user is member, otherwise return all the teams user has read access.
|
|
711
|
+
* @param top - Maximum number of teams to return.
|
|
712
|
+
* @param skip - Number of teams to skip.
|
|
713
|
+
* @param expandIdentity - A value indicating whether or not to expand Identity information in the result WebApiTeam object.
|
|
714
|
+
*/
|
|
715
|
+
public async getTeams(
|
|
716
|
+
projectId: string,
|
|
717
|
+
mine?: boolean,
|
|
718
|
+
top?: number,
|
|
719
|
+
skip?: number,
|
|
720
|
+
expandIdentity?: boolean
|
|
721
|
+
): Promise<Core.WebApiTeam[]> {
|
|
722
|
+
|
|
723
|
+
const queryValues: any = {
|
|
724
|
+
'$mine': mine,
|
|
725
|
+
'$top': top,
|
|
726
|
+
'$skip': skip,
|
|
727
|
+
'$expandIdentity': expandIdentity
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
return this.beginRequest<Core.WebApiTeam[]>({
|
|
731
|
+
apiVersion: "7.2-preview.3",
|
|
732
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{*teamId}",
|
|
733
|
+
routeValues: {
|
|
734
|
+
projectId: projectId
|
|
735
|
+
},
|
|
736
|
+
queryParams: queryValues
|
|
737
|
+
});
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Update a team's name and/or description.
|
|
742
|
+
*
|
|
743
|
+
* @param teamData -
|
|
744
|
+
* @param projectId - The name or ID (GUID) of the team project containing the team to update.
|
|
745
|
+
* @param teamId - The name of ID of the team to update.
|
|
746
|
+
*/
|
|
747
|
+
public async updateTeam(
|
|
748
|
+
teamData: Core.WebApiTeam,
|
|
749
|
+
projectId: string,
|
|
750
|
+
teamId: string
|
|
751
|
+
): Promise<Core.WebApiTeam> {
|
|
752
|
+
|
|
753
|
+
return this.beginRequest<Core.WebApiTeam>({
|
|
754
|
+
apiVersion: "7.2-preview.3",
|
|
755
|
+
method: "PATCH",
|
|
756
|
+
routeTemplate: "_apis/projects/{projectId}/teams/{*teamId}",
|
|
757
|
+
routeValues: {
|
|
758
|
+
projectId: projectId,
|
|
759
|
+
teamId: teamId
|
|
760
|
+
},
|
|
761
|
+
body: teamData
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
}
|