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,1455 @@
|
|
|
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
|
+
|
|
10
|
+
import * as WorkItemTrackingProcess from "../WorkItemTrackingProcess/WorkItemTrackingProcess";
|
|
11
|
+
|
|
12
|
+
export class WorkItemTrackingProcessRestClient extends RestClientBase {
|
|
13
|
+
constructor(options: IVssRestClientOptions) {
|
|
14
|
+
super(options);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
public static readonly RESOURCE_AREA_ID = "5264459e-e5e0-4bd8-b118-0985e68a4ec5";
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Creates a single behavior in the given process.
|
|
21
|
+
*
|
|
22
|
+
* @param behavior -
|
|
23
|
+
* @param processId - The ID of the process
|
|
24
|
+
*/
|
|
25
|
+
public async createProcessBehavior(
|
|
26
|
+
behavior: WorkItemTrackingProcess.ProcessBehaviorCreateRequest,
|
|
27
|
+
processId: string
|
|
28
|
+
): Promise<WorkItemTrackingProcess.ProcessBehavior> {
|
|
29
|
+
|
|
30
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessBehavior>({
|
|
31
|
+
apiVersion: "7.2-preview.2",
|
|
32
|
+
method: "POST",
|
|
33
|
+
routeTemplate: "_apis/work/processes/{processId}/behaviors/{behaviorRefName}",
|
|
34
|
+
routeValues: {
|
|
35
|
+
processId: processId
|
|
36
|
+
},
|
|
37
|
+
body: behavior
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Removes a behavior in the process.
|
|
43
|
+
*
|
|
44
|
+
* @param processId - The ID of the process
|
|
45
|
+
* @param behaviorRefName - The reference name of the behavior
|
|
46
|
+
*/
|
|
47
|
+
public async deleteProcessBehavior(
|
|
48
|
+
processId: string,
|
|
49
|
+
behaviorRefName: string
|
|
50
|
+
): Promise<void> {
|
|
51
|
+
|
|
52
|
+
return this.beginRequest<void>({
|
|
53
|
+
apiVersion: "7.2-preview.2",
|
|
54
|
+
method: "DELETE",
|
|
55
|
+
routeTemplate: "_apis/work/processes/{processId}/behaviors/{behaviorRefName}",
|
|
56
|
+
routeValues: {
|
|
57
|
+
processId: processId,
|
|
58
|
+
behaviorRefName: behaviorRefName
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Returns a behavior of the process.
|
|
65
|
+
*
|
|
66
|
+
* @param processId - The ID of the process
|
|
67
|
+
* @param behaviorRefName - The reference name of the behavior
|
|
68
|
+
* @param expand -
|
|
69
|
+
*/
|
|
70
|
+
public async getProcessBehavior(
|
|
71
|
+
processId: string,
|
|
72
|
+
behaviorRefName: string,
|
|
73
|
+
expand?: WorkItemTrackingProcess.GetBehaviorsExpand
|
|
74
|
+
): Promise<WorkItemTrackingProcess.ProcessBehavior> {
|
|
75
|
+
|
|
76
|
+
const queryValues: any = {
|
|
77
|
+
'$expand': expand
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessBehavior>({
|
|
81
|
+
apiVersion: "7.2-preview.2",
|
|
82
|
+
routeTemplate: "_apis/work/processes/{processId}/behaviors/{behaviorRefName}",
|
|
83
|
+
routeValues: {
|
|
84
|
+
processId: processId,
|
|
85
|
+
behaviorRefName: behaviorRefName
|
|
86
|
+
},
|
|
87
|
+
queryParams: queryValues
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Returns a list of all behaviors in the process.
|
|
93
|
+
*
|
|
94
|
+
* @param processId - The ID of the process
|
|
95
|
+
* @param expand -
|
|
96
|
+
*/
|
|
97
|
+
public async getProcessBehaviors(
|
|
98
|
+
processId: string,
|
|
99
|
+
expand?: WorkItemTrackingProcess.GetBehaviorsExpand
|
|
100
|
+
): Promise<WorkItemTrackingProcess.ProcessBehavior[]> {
|
|
101
|
+
|
|
102
|
+
const queryValues: any = {
|
|
103
|
+
'$expand': expand
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessBehavior[]>({
|
|
107
|
+
apiVersion: "7.2-preview.2",
|
|
108
|
+
routeTemplate: "_apis/work/processes/{processId}/behaviors/{behaviorRefName}",
|
|
109
|
+
routeValues: {
|
|
110
|
+
processId: processId
|
|
111
|
+
},
|
|
112
|
+
queryParams: queryValues
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Replaces a behavior in the process.
|
|
118
|
+
*
|
|
119
|
+
* @param behaviorData -
|
|
120
|
+
* @param processId - The ID of the process
|
|
121
|
+
* @param behaviorRefName - The reference name of the behavior
|
|
122
|
+
*/
|
|
123
|
+
public async updateProcessBehavior(
|
|
124
|
+
behaviorData: WorkItemTrackingProcess.ProcessBehaviorUpdateRequest,
|
|
125
|
+
processId: string,
|
|
126
|
+
behaviorRefName: string
|
|
127
|
+
): Promise<WorkItemTrackingProcess.ProcessBehavior> {
|
|
128
|
+
|
|
129
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessBehavior>({
|
|
130
|
+
apiVersion: "7.2-preview.2",
|
|
131
|
+
method: "PUT",
|
|
132
|
+
routeTemplate: "_apis/work/processes/{processId}/behaviors/{behaviorRefName}",
|
|
133
|
+
routeValues: {
|
|
134
|
+
processId: processId,
|
|
135
|
+
behaviorRefName: behaviorRefName
|
|
136
|
+
},
|
|
137
|
+
body: behaviorData
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Creates a control in a group.
|
|
143
|
+
*
|
|
144
|
+
* @param control - The control.
|
|
145
|
+
* @param processId - The ID of the process.
|
|
146
|
+
* @param witRefName - The reference name of the work item type.
|
|
147
|
+
* @param groupId - The ID of the group to add the control to.
|
|
148
|
+
*/
|
|
149
|
+
public async createControlInGroup(
|
|
150
|
+
control: WorkItemTrackingProcess.Control,
|
|
151
|
+
processId: string,
|
|
152
|
+
witRefName: string,
|
|
153
|
+
groupId: string
|
|
154
|
+
): Promise<WorkItemTrackingProcess.Control> {
|
|
155
|
+
|
|
156
|
+
return this.beginRequest<WorkItemTrackingProcess.Control>({
|
|
157
|
+
apiVersion: "7.2-preview.1",
|
|
158
|
+
method: "POST",
|
|
159
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
160
|
+
routeValues: {
|
|
161
|
+
processId: processId,
|
|
162
|
+
witRefName: witRefName,
|
|
163
|
+
groupId: groupId
|
|
164
|
+
},
|
|
165
|
+
body: control
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Moves a control to a specified group.
|
|
171
|
+
*
|
|
172
|
+
* @param control - The control.
|
|
173
|
+
* @param processId - The ID of the process.
|
|
174
|
+
* @param witRefName - The reference name of the work item type.
|
|
175
|
+
* @param groupId - The ID of the group to move the control to.
|
|
176
|
+
* @param controlId - The ID of the control.
|
|
177
|
+
* @param removeFromGroupId - The group ID to remove the control from.
|
|
178
|
+
*/
|
|
179
|
+
public async moveControlToGroup(
|
|
180
|
+
control: WorkItemTrackingProcess.Control,
|
|
181
|
+
processId: string,
|
|
182
|
+
witRefName: string,
|
|
183
|
+
groupId: string,
|
|
184
|
+
controlId: string,
|
|
185
|
+
removeFromGroupId?: string
|
|
186
|
+
): Promise<WorkItemTrackingProcess.Control> {
|
|
187
|
+
|
|
188
|
+
const queryValues: any = {
|
|
189
|
+
removeFromGroupId: removeFromGroupId
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
return this.beginRequest<WorkItemTrackingProcess.Control>({
|
|
193
|
+
apiVersion: "7.2-preview.1",
|
|
194
|
+
method: "PUT",
|
|
195
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
196
|
+
routeValues: {
|
|
197
|
+
processId: processId,
|
|
198
|
+
witRefName: witRefName,
|
|
199
|
+
groupId: groupId,
|
|
200
|
+
controlId: controlId
|
|
201
|
+
},
|
|
202
|
+
queryParams: queryValues,
|
|
203
|
+
body: control
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* Removes a control from the work item form.
|
|
209
|
+
*
|
|
210
|
+
* @param processId - The ID of the process.
|
|
211
|
+
* @param witRefName - The reference name of the work item type.
|
|
212
|
+
* @param groupId - The ID of the group.
|
|
213
|
+
* @param controlId - The ID of the control to remove.
|
|
214
|
+
*/
|
|
215
|
+
public async removeControlFromGroup(
|
|
216
|
+
processId: string,
|
|
217
|
+
witRefName: string,
|
|
218
|
+
groupId: string,
|
|
219
|
+
controlId: string
|
|
220
|
+
): Promise<void> {
|
|
221
|
+
|
|
222
|
+
return this.beginRequest<void>({
|
|
223
|
+
apiVersion: "7.2-preview.1",
|
|
224
|
+
method: "DELETE",
|
|
225
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
226
|
+
routeValues: {
|
|
227
|
+
processId: processId,
|
|
228
|
+
witRefName: witRefName,
|
|
229
|
+
groupId: groupId,
|
|
230
|
+
controlId: controlId
|
|
231
|
+
}
|
|
232
|
+
});
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* Updates a control on the work item form.
|
|
237
|
+
*
|
|
238
|
+
* @param control - The updated control.
|
|
239
|
+
* @param processId - The ID of the process.
|
|
240
|
+
* @param witRefName - The reference name of the work item type.
|
|
241
|
+
* @param groupId - The ID of the group.
|
|
242
|
+
* @param controlId - The ID of the control.
|
|
243
|
+
*/
|
|
244
|
+
public async updateControl(
|
|
245
|
+
control: WorkItemTrackingProcess.Control,
|
|
246
|
+
processId: string,
|
|
247
|
+
witRefName: string,
|
|
248
|
+
groupId: string,
|
|
249
|
+
controlId: string
|
|
250
|
+
): Promise<WorkItemTrackingProcess.Control> {
|
|
251
|
+
|
|
252
|
+
return this.beginRequest<WorkItemTrackingProcess.Control>({
|
|
253
|
+
apiVersion: "7.2-preview.1",
|
|
254
|
+
method: "PATCH",
|
|
255
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/groups/{groupId}/Controls/{controlId}",
|
|
256
|
+
routeValues: {
|
|
257
|
+
processId: processId,
|
|
258
|
+
witRefName: witRefName,
|
|
259
|
+
groupId: groupId,
|
|
260
|
+
controlId: controlId
|
|
261
|
+
},
|
|
262
|
+
body: control
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* Adds a field to a work item type.
|
|
268
|
+
*
|
|
269
|
+
* @param field -
|
|
270
|
+
* @param processId - The ID of the process.
|
|
271
|
+
* @param witRefName - The reference name of the work item type.
|
|
272
|
+
*/
|
|
273
|
+
public async addFieldToWorkItemType(
|
|
274
|
+
field: WorkItemTrackingProcess.AddProcessWorkItemTypeFieldRequest,
|
|
275
|
+
processId: string,
|
|
276
|
+
witRefName: string
|
|
277
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemTypeField> {
|
|
278
|
+
|
|
279
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemTypeField>({
|
|
280
|
+
apiVersion: "7.2-preview.2",
|
|
281
|
+
method: "POST",
|
|
282
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",
|
|
283
|
+
routeValues: {
|
|
284
|
+
processId: processId,
|
|
285
|
+
witRefName: witRefName
|
|
286
|
+
},
|
|
287
|
+
body: field
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Returns a list of all fields in a work item type.
|
|
293
|
+
*
|
|
294
|
+
* @param processId - The ID of the process.
|
|
295
|
+
* @param witRefName - The reference name of the work item type.
|
|
296
|
+
*/
|
|
297
|
+
public async getAllWorkItemTypeFields(
|
|
298
|
+
processId: string,
|
|
299
|
+
witRefName: string
|
|
300
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemTypeField[]> {
|
|
301
|
+
|
|
302
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemTypeField[]>({
|
|
303
|
+
apiVersion: "7.2-preview.2",
|
|
304
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",
|
|
305
|
+
routeValues: {
|
|
306
|
+
processId: processId,
|
|
307
|
+
witRefName: witRefName
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Returns a field in a work item type.
|
|
314
|
+
*
|
|
315
|
+
* @param processId - The ID of the process.
|
|
316
|
+
* @param witRefName - The reference name of the work item type.
|
|
317
|
+
* @param fieldRefName - The reference name of the field.
|
|
318
|
+
* @param expand -
|
|
319
|
+
*/
|
|
320
|
+
public async getWorkItemTypeField(
|
|
321
|
+
processId: string,
|
|
322
|
+
witRefName: string,
|
|
323
|
+
fieldRefName: string,
|
|
324
|
+
expand?: WorkItemTrackingProcess.ProcessWorkItemTypeFieldsExpandLevel
|
|
325
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemTypeField> {
|
|
326
|
+
|
|
327
|
+
const queryValues: any = {
|
|
328
|
+
'$expand': expand
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemTypeField>({
|
|
332
|
+
apiVersion: "7.2-preview.2",
|
|
333
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",
|
|
334
|
+
routeValues: {
|
|
335
|
+
processId: processId,
|
|
336
|
+
witRefName: witRefName,
|
|
337
|
+
fieldRefName: fieldRefName
|
|
338
|
+
},
|
|
339
|
+
queryParams: queryValues
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
/**
|
|
344
|
+
* Removes a field from a work item type. Does not permanently delete the field.
|
|
345
|
+
*
|
|
346
|
+
* @param processId - The ID of the process.
|
|
347
|
+
* @param witRefName - The reference name of the work item type.
|
|
348
|
+
* @param fieldRefName - The reference name of the field.
|
|
349
|
+
*/
|
|
350
|
+
public async removeWorkItemTypeField(
|
|
351
|
+
processId: string,
|
|
352
|
+
witRefName: string,
|
|
353
|
+
fieldRefName: string
|
|
354
|
+
): Promise<void> {
|
|
355
|
+
|
|
356
|
+
return this.beginRequest<void>({
|
|
357
|
+
apiVersion: "7.2-preview.2",
|
|
358
|
+
method: "DELETE",
|
|
359
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",
|
|
360
|
+
routeValues: {
|
|
361
|
+
processId: processId,
|
|
362
|
+
witRefName: witRefName,
|
|
363
|
+
fieldRefName: fieldRefName
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Updates a field in a work item type.
|
|
370
|
+
*
|
|
371
|
+
* @param field -
|
|
372
|
+
* @param processId - The ID of the process.
|
|
373
|
+
* @param witRefName - The reference name of the work item type.
|
|
374
|
+
* @param fieldRefName - The reference name of the field.
|
|
375
|
+
*/
|
|
376
|
+
public async updateWorkItemTypeField(
|
|
377
|
+
field: WorkItemTrackingProcess.UpdateProcessWorkItemTypeFieldRequest,
|
|
378
|
+
processId: string,
|
|
379
|
+
witRefName: string,
|
|
380
|
+
fieldRefName: string
|
|
381
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemTypeField> {
|
|
382
|
+
|
|
383
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemTypeField>({
|
|
384
|
+
apiVersion: "7.2-preview.2",
|
|
385
|
+
method: "PATCH",
|
|
386
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/fields/{fieldRefName}",
|
|
387
|
+
routeValues: {
|
|
388
|
+
processId: processId,
|
|
389
|
+
witRefName: witRefName,
|
|
390
|
+
fieldRefName: fieldRefName
|
|
391
|
+
},
|
|
392
|
+
body: field
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* Adds a group to the work item form.
|
|
398
|
+
*
|
|
399
|
+
* @param group - The group.
|
|
400
|
+
* @param processId - The ID of the process.
|
|
401
|
+
* @param witRefName - The reference name of the work item type.
|
|
402
|
+
* @param pageId - The ID of the page to add the group to.
|
|
403
|
+
* @param sectionId - The ID of the section to add the group to.
|
|
404
|
+
*/
|
|
405
|
+
public async addGroup(
|
|
406
|
+
group: WorkItemTrackingProcess.Group,
|
|
407
|
+
processId: string,
|
|
408
|
+
witRefName: string,
|
|
409
|
+
pageId: string,
|
|
410
|
+
sectionId: string
|
|
411
|
+
): Promise<WorkItemTrackingProcess.Group> {
|
|
412
|
+
|
|
413
|
+
return this.beginRequest<WorkItemTrackingProcess.Group>({
|
|
414
|
+
apiVersion: "7.2-preview.1",
|
|
415
|
+
method: "POST",
|
|
416
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
417
|
+
routeValues: {
|
|
418
|
+
processId: processId,
|
|
419
|
+
witRefName: witRefName,
|
|
420
|
+
pageId: pageId,
|
|
421
|
+
sectionId: sectionId
|
|
422
|
+
},
|
|
423
|
+
body: group
|
|
424
|
+
});
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Moves a group to a different page and section.
|
|
429
|
+
*
|
|
430
|
+
* @param group - The updated group.
|
|
431
|
+
* @param processId - The ID of the process.
|
|
432
|
+
* @param witRefName - The reference name of the work item type.
|
|
433
|
+
* @param pageId - The ID of the page the group is in.
|
|
434
|
+
* @param sectionId - The ID of the section the group is i.n
|
|
435
|
+
* @param groupId - The ID of the group.
|
|
436
|
+
* @param removeFromPageId - ID of the page to remove the group from.
|
|
437
|
+
* @param removeFromSectionId - ID of the section to remove the group from.
|
|
438
|
+
*/
|
|
439
|
+
public async moveGroupToPage(
|
|
440
|
+
group: WorkItemTrackingProcess.Group,
|
|
441
|
+
processId: string,
|
|
442
|
+
witRefName: string,
|
|
443
|
+
pageId: string,
|
|
444
|
+
sectionId: string,
|
|
445
|
+
groupId: string,
|
|
446
|
+
removeFromPageId: string,
|
|
447
|
+
removeFromSectionId: string
|
|
448
|
+
): Promise<WorkItemTrackingProcess.Group> {
|
|
449
|
+
|
|
450
|
+
const queryValues: any = {
|
|
451
|
+
removeFromPageId: removeFromPageId,
|
|
452
|
+
removeFromSectionId: removeFromSectionId
|
|
453
|
+
};
|
|
454
|
+
|
|
455
|
+
return this.beginRequest<WorkItemTrackingProcess.Group>({
|
|
456
|
+
apiVersion: "7.2-preview.1",
|
|
457
|
+
method: "PUT",
|
|
458
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
459
|
+
routeValues: {
|
|
460
|
+
processId: processId,
|
|
461
|
+
witRefName: witRefName,
|
|
462
|
+
pageId: pageId,
|
|
463
|
+
sectionId: sectionId,
|
|
464
|
+
groupId: groupId
|
|
465
|
+
},
|
|
466
|
+
queryParams: queryValues,
|
|
467
|
+
body: group
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/**
|
|
472
|
+
* Moves a group to a different section.
|
|
473
|
+
*
|
|
474
|
+
* @param group - The updated group.
|
|
475
|
+
* @param processId - The ID of the process.
|
|
476
|
+
* @param witRefName - The reference name of the work item type.
|
|
477
|
+
* @param pageId - The ID of the page the group is in.
|
|
478
|
+
* @param sectionId - The ID of the section the group is in.
|
|
479
|
+
* @param groupId - The ID of the group.
|
|
480
|
+
* @param removeFromSectionId - ID of the section to remove the group from.
|
|
481
|
+
*/
|
|
482
|
+
public async moveGroupToSection(
|
|
483
|
+
group: WorkItemTrackingProcess.Group,
|
|
484
|
+
processId: string,
|
|
485
|
+
witRefName: string,
|
|
486
|
+
pageId: string,
|
|
487
|
+
sectionId: string,
|
|
488
|
+
groupId: string,
|
|
489
|
+
removeFromSectionId: string
|
|
490
|
+
): Promise<WorkItemTrackingProcess.Group> {
|
|
491
|
+
|
|
492
|
+
const queryValues: any = {
|
|
493
|
+
removeFromSectionId: removeFromSectionId
|
|
494
|
+
};
|
|
495
|
+
|
|
496
|
+
return this.beginRequest<WorkItemTrackingProcess.Group>({
|
|
497
|
+
apiVersion: "7.2-preview.1",
|
|
498
|
+
method: "PUT",
|
|
499
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
500
|
+
routeValues: {
|
|
501
|
+
processId: processId,
|
|
502
|
+
witRefName: witRefName,
|
|
503
|
+
pageId: pageId,
|
|
504
|
+
sectionId: sectionId,
|
|
505
|
+
groupId: groupId
|
|
506
|
+
},
|
|
507
|
+
queryParams: queryValues,
|
|
508
|
+
body: group
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* Removes a group from the work item form.
|
|
514
|
+
*
|
|
515
|
+
* @param processId - The ID of the process
|
|
516
|
+
* @param witRefName - The reference name of the work item type
|
|
517
|
+
* @param pageId - The ID of the page the group is in
|
|
518
|
+
* @param sectionId - The ID of the section to the group is in
|
|
519
|
+
* @param groupId - The ID of the group
|
|
520
|
+
*/
|
|
521
|
+
public async removeGroup(
|
|
522
|
+
processId: string,
|
|
523
|
+
witRefName: string,
|
|
524
|
+
pageId: string,
|
|
525
|
+
sectionId: string,
|
|
526
|
+
groupId: string
|
|
527
|
+
): Promise<void> {
|
|
528
|
+
|
|
529
|
+
return this.beginRequest<void>({
|
|
530
|
+
apiVersion: "7.2-preview.1",
|
|
531
|
+
method: "DELETE",
|
|
532
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
533
|
+
routeValues: {
|
|
534
|
+
processId: processId,
|
|
535
|
+
witRefName: witRefName,
|
|
536
|
+
pageId: pageId,
|
|
537
|
+
sectionId: sectionId,
|
|
538
|
+
groupId: groupId
|
|
539
|
+
}
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* Updates a group in the work item form.
|
|
545
|
+
*
|
|
546
|
+
* @param group - The updated group.
|
|
547
|
+
* @param processId - The ID of the process.
|
|
548
|
+
* @param witRefName - The reference name of the work item type.
|
|
549
|
+
* @param pageId - The ID of the page the group is in.
|
|
550
|
+
* @param sectionId - The ID of the section the group is in.
|
|
551
|
+
* @param groupId - The ID of the group.
|
|
552
|
+
*/
|
|
553
|
+
public async updateGroup(
|
|
554
|
+
group: WorkItemTrackingProcess.Group,
|
|
555
|
+
processId: string,
|
|
556
|
+
witRefName: string,
|
|
557
|
+
pageId: string,
|
|
558
|
+
sectionId: string,
|
|
559
|
+
groupId: string
|
|
560
|
+
): Promise<WorkItemTrackingProcess.Group> {
|
|
561
|
+
|
|
562
|
+
return this.beginRequest<WorkItemTrackingProcess.Group>({
|
|
563
|
+
apiVersion: "7.2-preview.1",
|
|
564
|
+
method: "PATCH",
|
|
565
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/pages/{pageId}/sections/{sectionId}/Groups/{groupId}",
|
|
566
|
+
routeValues: {
|
|
567
|
+
processId: processId,
|
|
568
|
+
witRefName: witRefName,
|
|
569
|
+
pageId: pageId,
|
|
570
|
+
sectionId: sectionId,
|
|
571
|
+
groupId: groupId
|
|
572
|
+
},
|
|
573
|
+
body: group
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Gets the form layout.
|
|
579
|
+
*
|
|
580
|
+
* @param processId - The ID of the process.
|
|
581
|
+
* @param witRefName - The reference name of the work item type.
|
|
582
|
+
*/
|
|
583
|
+
public async getFormLayout(
|
|
584
|
+
processId: string,
|
|
585
|
+
witRefName: string
|
|
586
|
+
): Promise<WorkItemTrackingProcess.FormLayout> {
|
|
587
|
+
|
|
588
|
+
return this.beginRequest<WorkItemTrackingProcess.FormLayout>({
|
|
589
|
+
apiVersion: "7.2-preview.1",
|
|
590
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout",
|
|
591
|
+
routeValues: {
|
|
592
|
+
processId: processId,
|
|
593
|
+
witRefName: witRefName
|
|
594
|
+
}
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Creates a picklist.
|
|
600
|
+
*
|
|
601
|
+
* @param picklist - Picklist
|
|
602
|
+
*/
|
|
603
|
+
public async createList(
|
|
604
|
+
picklist: WorkItemTrackingProcess.PickList
|
|
605
|
+
): Promise<WorkItemTrackingProcess.PickList> {
|
|
606
|
+
|
|
607
|
+
return this.beginRequest<WorkItemTrackingProcess.PickList>({
|
|
608
|
+
apiVersion: "7.2-preview.1",
|
|
609
|
+
method: "POST",
|
|
610
|
+
routeTemplate: "_apis/work/processes/lists/{listId}",
|
|
611
|
+
body: picklist
|
|
612
|
+
});
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* Removes a picklist.
|
|
617
|
+
*
|
|
618
|
+
* @param listId - The ID of the list
|
|
619
|
+
*/
|
|
620
|
+
public async deleteList(
|
|
621
|
+
listId: string
|
|
622
|
+
): Promise<void> {
|
|
623
|
+
|
|
624
|
+
return this.beginRequest<void>({
|
|
625
|
+
apiVersion: "7.2-preview.1",
|
|
626
|
+
method: "DELETE",
|
|
627
|
+
routeTemplate: "_apis/work/processes/lists/{listId}",
|
|
628
|
+
routeValues: {
|
|
629
|
+
listId: listId
|
|
630
|
+
}
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
/**
|
|
635
|
+
* Returns a picklist.
|
|
636
|
+
*
|
|
637
|
+
* @param listId - The ID of the list
|
|
638
|
+
*/
|
|
639
|
+
public async getList(
|
|
640
|
+
listId: string
|
|
641
|
+
): Promise<WorkItemTrackingProcess.PickList> {
|
|
642
|
+
|
|
643
|
+
return this.beginRequest<WorkItemTrackingProcess.PickList>({
|
|
644
|
+
apiVersion: "7.2-preview.1",
|
|
645
|
+
routeTemplate: "_apis/work/processes/lists/{listId}",
|
|
646
|
+
routeValues: {
|
|
647
|
+
listId: listId
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Returns meta data of the picklist.
|
|
654
|
+
*
|
|
655
|
+
*/
|
|
656
|
+
public async getListsMetadata(
|
|
657
|
+
): Promise<WorkItemTrackingProcess.PickListMetadata[]> {
|
|
658
|
+
|
|
659
|
+
return this.beginRequest<WorkItemTrackingProcess.PickListMetadata[]>({
|
|
660
|
+
apiVersion: "7.2-preview.1",
|
|
661
|
+
routeTemplate: "_apis/work/processes/lists/{listId}"
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Updates a list.
|
|
667
|
+
*
|
|
668
|
+
* @param picklist -
|
|
669
|
+
* @param listId - The ID of the list
|
|
670
|
+
*/
|
|
671
|
+
public async updateList(
|
|
672
|
+
picklist: WorkItemTrackingProcess.PickList,
|
|
673
|
+
listId: string
|
|
674
|
+
): Promise<WorkItemTrackingProcess.PickList> {
|
|
675
|
+
|
|
676
|
+
return this.beginRequest<WorkItemTrackingProcess.PickList>({
|
|
677
|
+
apiVersion: "7.2-preview.1",
|
|
678
|
+
method: "PUT",
|
|
679
|
+
routeTemplate: "_apis/work/processes/lists/{listId}",
|
|
680
|
+
routeValues: {
|
|
681
|
+
listId: listId
|
|
682
|
+
},
|
|
683
|
+
body: picklist
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Adds a page to the work item form.
|
|
689
|
+
*
|
|
690
|
+
* @param page - The page.
|
|
691
|
+
* @param processId - The ID of the process.
|
|
692
|
+
* @param witRefName - The reference name of the work item type.
|
|
693
|
+
*/
|
|
694
|
+
public async addPage(
|
|
695
|
+
page: WorkItemTrackingProcess.Page,
|
|
696
|
+
processId: string,
|
|
697
|
+
witRefName: string
|
|
698
|
+
): Promise<WorkItemTrackingProcess.Page> {
|
|
699
|
+
|
|
700
|
+
return this.beginRequest<WorkItemTrackingProcess.Page>({
|
|
701
|
+
apiVersion: "7.2-preview.1",
|
|
702
|
+
method: "POST",
|
|
703
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
704
|
+
routeValues: {
|
|
705
|
+
processId: processId,
|
|
706
|
+
witRefName: witRefName
|
|
707
|
+
},
|
|
708
|
+
body: page
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
|
|
712
|
+
/**
|
|
713
|
+
* Removes a page from the work item form
|
|
714
|
+
*
|
|
715
|
+
* @param processId - The ID of the process
|
|
716
|
+
* @param witRefName - The reference name of the work item type
|
|
717
|
+
* @param pageId - The ID of the page
|
|
718
|
+
*/
|
|
719
|
+
public async removePage(
|
|
720
|
+
processId: string,
|
|
721
|
+
witRefName: string,
|
|
722
|
+
pageId: string
|
|
723
|
+
): Promise<void> {
|
|
724
|
+
|
|
725
|
+
return this.beginRequest<void>({
|
|
726
|
+
apiVersion: "7.2-preview.1",
|
|
727
|
+
method: "DELETE",
|
|
728
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
729
|
+
routeValues: {
|
|
730
|
+
processId: processId,
|
|
731
|
+
witRefName: witRefName,
|
|
732
|
+
pageId: pageId
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Updates a page on the work item form
|
|
739
|
+
*
|
|
740
|
+
* @param page - The page
|
|
741
|
+
* @param processId - The ID of the process
|
|
742
|
+
* @param witRefName - The reference name of the work item type
|
|
743
|
+
*/
|
|
744
|
+
public async updatePage(
|
|
745
|
+
page: WorkItemTrackingProcess.Page,
|
|
746
|
+
processId: string,
|
|
747
|
+
witRefName: string
|
|
748
|
+
): Promise<WorkItemTrackingProcess.Page> {
|
|
749
|
+
|
|
750
|
+
return this.beginRequest<WorkItemTrackingProcess.Page>({
|
|
751
|
+
apiVersion: "7.2-preview.1",
|
|
752
|
+
method: "PATCH",
|
|
753
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/Pages/{pageId}",
|
|
754
|
+
routeValues: {
|
|
755
|
+
processId: processId,
|
|
756
|
+
witRefName: witRefName
|
|
757
|
+
},
|
|
758
|
+
body: page
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
/**
|
|
763
|
+
* Creates a process.
|
|
764
|
+
*
|
|
765
|
+
* @param createRequest - CreateProcessModel.
|
|
766
|
+
*/
|
|
767
|
+
public async createNewProcess(
|
|
768
|
+
createRequest: WorkItemTrackingProcess.CreateProcessModel
|
|
769
|
+
): Promise<WorkItemTrackingProcess.ProcessInfo> {
|
|
770
|
+
|
|
771
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessInfo>({
|
|
772
|
+
apiVersion: "7.2-preview.2",
|
|
773
|
+
method: "POST",
|
|
774
|
+
routeTemplate: "_apis/work/processes/{processTypeId}",
|
|
775
|
+
body: createRequest
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/**
|
|
780
|
+
* Removes a process of a specific ID.
|
|
781
|
+
*
|
|
782
|
+
* @param processTypeId -
|
|
783
|
+
*/
|
|
784
|
+
public async deleteProcessById(
|
|
785
|
+
processTypeId: string
|
|
786
|
+
): Promise<void> {
|
|
787
|
+
|
|
788
|
+
return this.beginRequest<void>({
|
|
789
|
+
apiVersion: "7.2-preview.2",
|
|
790
|
+
method: "DELETE",
|
|
791
|
+
routeTemplate: "_apis/work/processes/{processTypeId}",
|
|
792
|
+
routeValues: {
|
|
793
|
+
processTypeId: processTypeId
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Edit a process of a specific ID.
|
|
800
|
+
*
|
|
801
|
+
* @param updateRequest -
|
|
802
|
+
* @param processTypeId -
|
|
803
|
+
*/
|
|
804
|
+
public async editProcess(
|
|
805
|
+
updateRequest: WorkItemTrackingProcess.UpdateProcessModel,
|
|
806
|
+
processTypeId: string
|
|
807
|
+
): Promise<WorkItemTrackingProcess.ProcessInfo> {
|
|
808
|
+
|
|
809
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessInfo>({
|
|
810
|
+
apiVersion: "7.2-preview.2",
|
|
811
|
+
method: "PATCH",
|
|
812
|
+
routeTemplate: "_apis/work/processes/{processTypeId}",
|
|
813
|
+
routeValues: {
|
|
814
|
+
processTypeId: processTypeId
|
|
815
|
+
},
|
|
816
|
+
body: updateRequest
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* Get list of all processes including system and inherited.
|
|
822
|
+
*
|
|
823
|
+
* @param expand -
|
|
824
|
+
*/
|
|
825
|
+
public async getListOfProcesses(
|
|
826
|
+
expand?: WorkItemTrackingProcess.GetProcessExpandLevel
|
|
827
|
+
): Promise<WorkItemTrackingProcess.ProcessInfo[]> {
|
|
828
|
+
|
|
829
|
+
const queryValues: any = {
|
|
830
|
+
'$expand': expand
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessInfo[]>({
|
|
834
|
+
apiVersion: "7.2-preview.2",
|
|
835
|
+
routeTemplate: "_apis/work/processes/{processTypeId}",
|
|
836
|
+
queryParams: queryValues
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/**
|
|
841
|
+
* Get a single process of a specified ID.
|
|
842
|
+
*
|
|
843
|
+
* @param processTypeId -
|
|
844
|
+
* @param expand -
|
|
845
|
+
*/
|
|
846
|
+
public async getProcessByItsId(
|
|
847
|
+
processTypeId: string,
|
|
848
|
+
expand?: WorkItemTrackingProcess.GetProcessExpandLevel
|
|
849
|
+
): Promise<WorkItemTrackingProcess.ProcessInfo> {
|
|
850
|
+
|
|
851
|
+
const queryValues: any = {
|
|
852
|
+
'$expand': expand
|
|
853
|
+
};
|
|
854
|
+
|
|
855
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessInfo>({
|
|
856
|
+
apiVersion: "7.2-preview.2",
|
|
857
|
+
routeTemplate: "_apis/work/processes/{processTypeId}",
|
|
858
|
+
routeValues: {
|
|
859
|
+
processTypeId: processTypeId
|
|
860
|
+
},
|
|
861
|
+
queryParams: queryValues
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
/**
|
|
866
|
+
* Adds a rule to work item type in the process.
|
|
867
|
+
*
|
|
868
|
+
* @param processRuleCreate -
|
|
869
|
+
* @param processId - The ID of the process
|
|
870
|
+
* @param witRefName - The reference name of the work item type
|
|
871
|
+
*/
|
|
872
|
+
public async addProcessWorkItemTypeRule(
|
|
873
|
+
processRuleCreate: WorkItemTrackingProcess.CreateProcessRuleRequest,
|
|
874
|
+
processId: string,
|
|
875
|
+
witRefName: string
|
|
876
|
+
): Promise<WorkItemTrackingProcess.ProcessRule> {
|
|
877
|
+
|
|
878
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessRule>({
|
|
879
|
+
apiVersion: "7.2-preview.2",
|
|
880
|
+
method: "POST",
|
|
881
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",
|
|
882
|
+
routeValues: {
|
|
883
|
+
processId: processId,
|
|
884
|
+
witRefName: witRefName
|
|
885
|
+
},
|
|
886
|
+
body: processRuleCreate
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
/**
|
|
891
|
+
* Removes a rule from the work item type in the process.
|
|
892
|
+
*
|
|
893
|
+
* @param processId - The ID of the process
|
|
894
|
+
* @param witRefName - The reference name of the work item type
|
|
895
|
+
* @param ruleId - The ID of the rule
|
|
896
|
+
*/
|
|
897
|
+
public async deleteProcessWorkItemTypeRule(
|
|
898
|
+
processId: string,
|
|
899
|
+
witRefName: string,
|
|
900
|
+
ruleId: string
|
|
901
|
+
): Promise<void> {
|
|
902
|
+
|
|
903
|
+
return this.beginRequest<void>({
|
|
904
|
+
apiVersion: "7.2-preview.2",
|
|
905
|
+
method: "DELETE",
|
|
906
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",
|
|
907
|
+
routeValues: {
|
|
908
|
+
processId: processId,
|
|
909
|
+
witRefName: witRefName,
|
|
910
|
+
ruleId: ruleId
|
|
911
|
+
}
|
|
912
|
+
});
|
|
913
|
+
}
|
|
914
|
+
|
|
915
|
+
/**
|
|
916
|
+
* Returns a single rule in the work item type of the process.
|
|
917
|
+
*
|
|
918
|
+
* @param processId - The ID of the process
|
|
919
|
+
* @param witRefName - The reference name of the work item type
|
|
920
|
+
* @param ruleId - The ID of the rule
|
|
921
|
+
*/
|
|
922
|
+
public async getProcessWorkItemTypeRule(
|
|
923
|
+
processId: string,
|
|
924
|
+
witRefName: string,
|
|
925
|
+
ruleId: string
|
|
926
|
+
): Promise<WorkItemTrackingProcess.ProcessRule> {
|
|
927
|
+
|
|
928
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessRule>({
|
|
929
|
+
apiVersion: "7.2-preview.2",
|
|
930
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",
|
|
931
|
+
routeValues: {
|
|
932
|
+
processId: processId,
|
|
933
|
+
witRefName: witRefName,
|
|
934
|
+
ruleId: ruleId
|
|
935
|
+
}
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* Returns a list of all rules in the work item type of the process.
|
|
941
|
+
*
|
|
942
|
+
* @param processId - The ID of the process
|
|
943
|
+
* @param witRefName - The reference name of the work item type
|
|
944
|
+
*/
|
|
945
|
+
public async getProcessWorkItemTypeRules(
|
|
946
|
+
processId: string,
|
|
947
|
+
witRefName: string
|
|
948
|
+
): Promise<WorkItemTrackingProcess.ProcessRule[]> {
|
|
949
|
+
|
|
950
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessRule[]>({
|
|
951
|
+
apiVersion: "7.2-preview.2",
|
|
952
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",
|
|
953
|
+
routeValues: {
|
|
954
|
+
processId: processId,
|
|
955
|
+
witRefName: witRefName
|
|
956
|
+
}
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
/**
|
|
961
|
+
* Updates a rule in the work item type of the process.
|
|
962
|
+
*
|
|
963
|
+
* @param processRule -
|
|
964
|
+
* @param processId - The ID of the process
|
|
965
|
+
* @param witRefName - The reference name of the work item type
|
|
966
|
+
* @param ruleId - The ID of the rule
|
|
967
|
+
*/
|
|
968
|
+
public async updateProcessWorkItemTypeRule(
|
|
969
|
+
processRule: WorkItemTrackingProcess.UpdateProcessRuleRequest,
|
|
970
|
+
processId: string,
|
|
971
|
+
witRefName: string,
|
|
972
|
+
ruleId: string
|
|
973
|
+
): Promise<WorkItemTrackingProcess.ProcessRule> {
|
|
974
|
+
|
|
975
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessRule>({
|
|
976
|
+
apiVersion: "7.2-preview.2",
|
|
977
|
+
method: "PUT",
|
|
978
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/rules/{ruleId}",
|
|
979
|
+
routeValues: {
|
|
980
|
+
processId: processId,
|
|
981
|
+
witRefName: witRefName,
|
|
982
|
+
ruleId: ruleId
|
|
983
|
+
},
|
|
984
|
+
body: processRule
|
|
985
|
+
});
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
/**
|
|
989
|
+
* Creates a state definition in the work item type of the process.
|
|
990
|
+
*
|
|
991
|
+
* @param stateModel -
|
|
992
|
+
* @param processId - The ID of the process
|
|
993
|
+
* @param witRefName - The reference name of the work item type
|
|
994
|
+
*/
|
|
995
|
+
public async createStateDefinition(
|
|
996
|
+
stateModel: WorkItemTrackingProcess.WorkItemStateInputModel,
|
|
997
|
+
processId: string,
|
|
998
|
+
witRefName: string
|
|
999
|
+
): Promise<WorkItemTrackingProcess.WorkItemStateResultModel> {
|
|
1000
|
+
|
|
1001
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemStateResultModel>({
|
|
1002
|
+
apiVersion: "7.2-preview.1",
|
|
1003
|
+
method: "POST",
|
|
1004
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1005
|
+
routeValues: {
|
|
1006
|
+
processId: processId,
|
|
1007
|
+
witRefName: witRefName
|
|
1008
|
+
},
|
|
1009
|
+
body: stateModel
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Removes a state definition in the work item type of the process.
|
|
1015
|
+
*
|
|
1016
|
+
* @param processId - ID of the process
|
|
1017
|
+
* @param witRefName - The reference name of the work item type
|
|
1018
|
+
* @param stateId - ID of the state
|
|
1019
|
+
*/
|
|
1020
|
+
public async deleteStateDefinition(
|
|
1021
|
+
processId: string,
|
|
1022
|
+
witRefName: string,
|
|
1023
|
+
stateId: string
|
|
1024
|
+
): Promise<void> {
|
|
1025
|
+
|
|
1026
|
+
return this.beginRequest<void>({
|
|
1027
|
+
apiVersion: "7.2-preview.1",
|
|
1028
|
+
method: "DELETE",
|
|
1029
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1030
|
+
routeValues: {
|
|
1031
|
+
processId: processId,
|
|
1032
|
+
witRefName: witRefName,
|
|
1033
|
+
stateId: stateId
|
|
1034
|
+
}
|
|
1035
|
+
});
|
|
1036
|
+
}
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Returns a single state definition in a work item type of the process.
|
|
1040
|
+
*
|
|
1041
|
+
* @param processId - The ID of the process
|
|
1042
|
+
* @param witRefName - The reference name of the work item type
|
|
1043
|
+
* @param stateId - The ID of the state
|
|
1044
|
+
*/
|
|
1045
|
+
public async getStateDefinition(
|
|
1046
|
+
processId: string,
|
|
1047
|
+
witRefName: string,
|
|
1048
|
+
stateId: string
|
|
1049
|
+
): Promise<WorkItemTrackingProcess.WorkItemStateResultModel> {
|
|
1050
|
+
|
|
1051
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemStateResultModel>({
|
|
1052
|
+
apiVersion: "7.2-preview.1",
|
|
1053
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1054
|
+
routeValues: {
|
|
1055
|
+
processId: processId,
|
|
1056
|
+
witRefName: witRefName,
|
|
1057
|
+
stateId: stateId
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
}
|
|
1061
|
+
|
|
1062
|
+
/**
|
|
1063
|
+
* Returns a list of all state definitions in a work item type of the process.
|
|
1064
|
+
*
|
|
1065
|
+
* @param processId - The ID of the process
|
|
1066
|
+
* @param witRefName - The reference name of the work item type
|
|
1067
|
+
*/
|
|
1068
|
+
public async getStateDefinitions(
|
|
1069
|
+
processId: string,
|
|
1070
|
+
witRefName: string
|
|
1071
|
+
): Promise<WorkItemTrackingProcess.WorkItemStateResultModel[]> {
|
|
1072
|
+
|
|
1073
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemStateResultModel[]>({
|
|
1074
|
+
apiVersion: "7.2-preview.1",
|
|
1075
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1076
|
+
routeValues: {
|
|
1077
|
+
processId: processId,
|
|
1078
|
+
witRefName: witRefName
|
|
1079
|
+
}
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
/**
|
|
1084
|
+
* Hides a state definition in the work item type of the process.Only states with customizationType:System can be hidden.
|
|
1085
|
+
*
|
|
1086
|
+
* @param hideStateModel -
|
|
1087
|
+
* @param processId - The ID of the process
|
|
1088
|
+
* @param witRefName - The reference name of the work item type
|
|
1089
|
+
* @param stateId - The ID of the state
|
|
1090
|
+
*/
|
|
1091
|
+
public async hideStateDefinition(
|
|
1092
|
+
hideStateModel: WorkItemTrackingProcess.HideStateModel,
|
|
1093
|
+
processId: string,
|
|
1094
|
+
witRefName: string,
|
|
1095
|
+
stateId: string
|
|
1096
|
+
): Promise<WorkItemTrackingProcess.WorkItemStateResultModel> {
|
|
1097
|
+
|
|
1098
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemStateResultModel>({
|
|
1099
|
+
apiVersion: "7.2-preview.1",
|
|
1100
|
+
method: "PUT",
|
|
1101
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1102
|
+
routeValues: {
|
|
1103
|
+
processId: processId,
|
|
1104
|
+
witRefName: witRefName,
|
|
1105
|
+
stateId: stateId
|
|
1106
|
+
},
|
|
1107
|
+
body: hideStateModel
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
/**
|
|
1112
|
+
* Updates a given state definition in the work item type of the process.
|
|
1113
|
+
*
|
|
1114
|
+
* @param stateModel -
|
|
1115
|
+
* @param processId - ID of the process
|
|
1116
|
+
* @param witRefName - The reference name of the work item type
|
|
1117
|
+
* @param stateId - ID of the state
|
|
1118
|
+
*/
|
|
1119
|
+
public async updateStateDefinition(
|
|
1120
|
+
stateModel: WorkItemTrackingProcess.WorkItemStateInputModel,
|
|
1121
|
+
processId: string,
|
|
1122
|
+
witRefName: string,
|
|
1123
|
+
stateId: string
|
|
1124
|
+
): Promise<WorkItemTrackingProcess.WorkItemStateResultModel> {
|
|
1125
|
+
|
|
1126
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemStateResultModel>({
|
|
1127
|
+
apiVersion: "7.2-preview.1",
|
|
1128
|
+
method: "PATCH",
|
|
1129
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/states/{stateId}",
|
|
1130
|
+
routeValues: {
|
|
1131
|
+
processId: processId,
|
|
1132
|
+
witRefName: witRefName,
|
|
1133
|
+
stateId: stateId
|
|
1134
|
+
},
|
|
1135
|
+
body: stateModel
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* Deletes a system control modification on the work item form.
|
|
1141
|
+
*
|
|
1142
|
+
* @param processId - The ID of the process.
|
|
1143
|
+
* @param witRefName - The reference name of the work item type.
|
|
1144
|
+
* @param controlId - The ID of the control.
|
|
1145
|
+
*/
|
|
1146
|
+
public async deleteSystemControl(
|
|
1147
|
+
processId: string,
|
|
1148
|
+
witRefName: string,
|
|
1149
|
+
controlId: string
|
|
1150
|
+
): Promise<WorkItemTrackingProcess.Control[]> {
|
|
1151
|
+
|
|
1152
|
+
return this.beginRequest<WorkItemTrackingProcess.Control[]>({
|
|
1153
|
+
apiVersion: "7.2-preview.1",
|
|
1154
|
+
method: "DELETE",
|
|
1155
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",
|
|
1156
|
+
routeValues: {
|
|
1157
|
+
processId: processId,
|
|
1158
|
+
witRefName: witRefName,
|
|
1159
|
+
controlId: controlId
|
|
1160
|
+
}
|
|
1161
|
+
});
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* Gets edited system controls for a work item type in a process. To get all system controls (base + edited) use layout API(s)
|
|
1166
|
+
*
|
|
1167
|
+
* @param processId - The ID of the process.
|
|
1168
|
+
* @param witRefName - The reference name of the work item type.
|
|
1169
|
+
*/
|
|
1170
|
+
public async getSystemControls(
|
|
1171
|
+
processId: string,
|
|
1172
|
+
witRefName: string
|
|
1173
|
+
): Promise<WorkItemTrackingProcess.Control[]> {
|
|
1174
|
+
|
|
1175
|
+
return this.beginRequest<WorkItemTrackingProcess.Control[]>({
|
|
1176
|
+
apiVersion: "7.2-preview.1",
|
|
1177
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",
|
|
1178
|
+
routeValues: {
|
|
1179
|
+
processId: processId,
|
|
1180
|
+
witRefName: witRefName
|
|
1181
|
+
}
|
|
1182
|
+
});
|
|
1183
|
+
}
|
|
1184
|
+
|
|
1185
|
+
/**
|
|
1186
|
+
* Updates/adds a system control on the work item form.
|
|
1187
|
+
*
|
|
1188
|
+
* @param control -
|
|
1189
|
+
* @param processId - The ID of the process.
|
|
1190
|
+
* @param witRefName - The reference name of the work item type.
|
|
1191
|
+
* @param controlId - The ID of the control.
|
|
1192
|
+
*/
|
|
1193
|
+
public async updateSystemControl(
|
|
1194
|
+
control: WorkItemTrackingProcess.Control,
|
|
1195
|
+
processId: string,
|
|
1196
|
+
witRefName: string,
|
|
1197
|
+
controlId: string
|
|
1198
|
+
): Promise<WorkItemTrackingProcess.Control> {
|
|
1199
|
+
|
|
1200
|
+
return this.beginRequest<WorkItemTrackingProcess.Control>({
|
|
1201
|
+
apiVersion: "7.2-preview.1",
|
|
1202
|
+
method: "PATCH",
|
|
1203
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}/layout/systemcontrols/{controlId}",
|
|
1204
|
+
routeValues: {
|
|
1205
|
+
processId: processId,
|
|
1206
|
+
witRefName: witRefName,
|
|
1207
|
+
controlId: controlId
|
|
1208
|
+
},
|
|
1209
|
+
body: control
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Creates a work item type in the process.
|
|
1215
|
+
*
|
|
1216
|
+
* @param workItemType -
|
|
1217
|
+
* @param processId - The ID of the process on which to create work item type.
|
|
1218
|
+
*/
|
|
1219
|
+
public async createProcessWorkItemType(
|
|
1220
|
+
workItemType: WorkItemTrackingProcess.CreateProcessWorkItemTypeRequest,
|
|
1221
|
+
processId: string
|
|
1222
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemType> {
|
|
1223
|
+
|
|
1224
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemType>({
|
|
1225
|
+
apiVersion: "7.2-preview.2",
|
|
1226
|
+
method: "POST",
|
|
1227
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}",
|
|
1228
|
+
routeValues: {
|
|
1229
|
+
processId: processId
|
|
1230
|
+
},
|
|
1231
|
+
body: workItemType
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Removes a work item type in the process.
|
|
1237
|
+
*
|
|
1238
|
+
* @param processId - The ID of the process.
|
|
1239
|
+
* @param witRefName - The reference name of the work item type.
|
|
1240
|
+
*/
|
|
1241
|
+
public async deleteProcessWorkItemType(
|
|
1242
|
+
processId: string,
|
|
1243
|
+
witRefName: string
|
|
1244
|
+
): Promise<void> {
|
|
1245
|
+
|
|
1246
|
+
return this.beginRequest<void>({
|
|
1247
|
+
apiVersion: "7.2-preview.2",
|
|
1248
|
+
method: "DELETE",
|
|
1249
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}",
|
|
1250
|
+
routeValues: {
|
|
1251
|
+
processId: processId,
|
|
1252
|
+
witRefName: witRefName
|
|
1253
|
+
}
|
|
1254
|
+
});
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Returns a single work item type in a process.
|
|
1259
|
+
*
|
|
1260
|
+
* @param processId - The ID of the process
|
|
1261
|
+
* @param witRefName - The reference name of the work item type
|
|
1262
|
+
* @param expand - Flag to determine what properties of work item type to return
|
|
1263
|
+
*/
|
|
1264
|
+
public async getProcessWorkItemType(
|
|
1265
|
+
processId: string,
|
|
1266
|
+
witRefName: string,
|
|
1267
|
+
expand?: WorkItemTrackingProcess.GetWorkItemTypeExpand
|
|
1268
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemType> {
|
|
1269
|
+
|
|
1270
|
+
const queryValues: any = {
|
|
1271
|
+
'$expand': expand
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemType>({
|
|
1275
|
+
apiVersion: "7.2-preview.2",
|
|
1276
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}",
|
|
1277
|
+
routeValues: {
|
|
1278
|
+
processId: processId,
|
|
1279
|
+
witRefName: witRefName
|
|
1280
|
+
},
|
|
1281
|
+
queryParams: queryValues
|
|
1282
|
+
});
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
/**
|
|
1286
|
+
* Returns a list of all work item types in a process.
|
|
1287
|
+
*
|
|
1288
|
+
* @param processId - The ID of the process
|
|
1289
|
+
* @param expand - Flag to determine what properties of work item type to return
|
|
1290
|
+
*/
|
|
1291
|
+
public async getProcessWorkItemTypes(
|
|
1292
|
+
processId: string,
|
|
1293
|
+
expand?: WorkItemTrackingProcess.GetWorkItemTypeExpand
|
|
1294
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemType[]> {
|
|
1295
|
+
|
|
1296
|
+
const queryValues: any = {
|
|
1297
|
+
'$expand': expand
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemType[]>({
|
|
1301
|
+
apiVersion: "7.2-preview.2",
|
|
1302
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}",
|
|
1303
|
+
routeValues: {
|
|
1304
|
+
processId: processId
|
|
1305
|
+
},
|
|
1306
|
+
queryParams: queryValues
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Updates a work item type of the process.
|
|
1312
|
+
*
|
|
1313
|
+
* @param workItemTypeUpdate -
|
|
1314
|
+
* @param processId - The ID of the process
|
|
1315
|
+
* @param witRefName - The reference name of the work item type
|
|
1316
|
+
*/
|
|
1317
|
+
public async updateProcessWorkItemType(
|
|
1318
|
+
workItemTypeUpdate: WorkItemTrackingProcess.UpdateProcessWorkItemTypeRequest,
|
|
1319
|
+
processId: string,
|
|
1320
|
+
witRefName: string
|
|
1321
|
+
): Promise<WorkItemTrackingProcess.ProcessWorkItemType> {
|
|
1322
|
+
|
|
1323
|
+
return this.beginRequest<WorkItemTrackingProcess.ProcessWorkItemType>({
|
|
1324
|
+
apiVersion: "7.2-preview.2",
|
|
1325
|
+
method: "PATCH",
|
|
1326
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypes/{witRefName}",
|
|
1327
|
+
routeValues: {
|
|
1328
|
+
processId: processId,
|
|
1329
|
+
witRefName: witRefName
|
|
1330
|
+
},
|
|
1331
|
+
body: workItemTypeUpdate
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
|
|
1335
|
+
/**
|
|
1336
|
+
* Adds a behavior to the work item type of the process.
|
|
1337
|
+
*
|
|
1338
|
+
* @param behavior -
|
|
1339
|
+
* @param processId - The ID of the process
|
|
1340
|
+
* @param witRefNameForBehaviors - Work item type reference name for the behavior
|
|
1341
|
+
*/
|
|
1342
|
+
public async addBehaviorToWorkItemType(
|
|
1343
|
+
behavior: WorkItemTrackingProcess.WorkItemTypeBehavior,
|
|
1344
|
+
processId: string,
|
|
1345
|
+
witRefNameForBehaviors: string
|
|
1346
|
+
): Promise<WorkItemTrackingProcess.WorkItemTypeBehavior> {
|
|
1347
|
+
|
|
1348
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemTypeBehavior>({
|
|
1349
|
+
apiVersion: "7.2-preview.1",
|
|
1350
|
+
method: "POST",
|
|
1351
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
1352
|
+
routeValues: {
|
|
1353
|
+
processId: processId,
|
|
1354
|
+
witRefNameForBehaviors: witRefNameForBehaviors
|
|
1355
|
+
},
|
|
1356
|
+
body: behavior
|
|
1357
|
+
});
|
|
1358
|
+
}
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Returns a behavior for the work item type of the process.
|
|
1362
|
+
*
|
|
1363
|
+
* @param processId - The ID of the process
|
|
1364
|
+
* @param witRefNameForBehaviors - Work item type reference name for the behavior
|
|
1365
|
+
* @param behaviorRefName - The reference name of the behavior
|
|
1366
|
+
*/
|
|
1367
|
+
public async getBehaviorForWorkItemType(
|
|
1368
|
+
processId: string,
|
|
1369
|
+
witRefNameForBehaviors: string,
|
|
1370
|
+
behaviorRefName: string
|
|
1371
|
+
): Promise<WorkItemTrackingProcess.WorkItemTypeBehavior> {
|
|
1372
|
+
|
|
1373
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemTypeBehavior>({
|
|
1374
|
+
apiVersion: "7.2-preview.1",
|
|
1375
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
1376
|
+
routeValues: {
|
|
1377
|
+
processId: processId,
|
|
1378
|
+
witRefNameForBehaviors: witRefNameForBehaviors,
|
|
1379
|
+
behaviorRefName: behaviorRefName
|
|
1380
|
+
}
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* Returns a list of all behaviors for the work item type of the process.
|
|
1386
|
+
*
|
|
1387
|
+
* @param processId - The ID of the process
|
|
1388
|
+
* @param witRefNameForBehaviors - Work item type reference name for the behavior
|
|
1389
|
+
*/
|
|
1390
|
+
public async getBehaviorsForWorkItemType(
|
|
1391
|
+
processId: string,
|
|
1392
|
+
witRefNameForBehaviors: string
|
|
1393
|
+
): Promise<WorkItemTrackingProcess.WorkItemTypeBehavior[]> {
|
|
1394
|
+
|
|
1395
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemTypeBehavior[]>({
|
|
1396
|
+
apiVersion: "7.2-preview.1",
|
|
1397
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
1398
|
+
routeValues: {
|
|
1399
|
+
processId: processId,
|
|
1400
|
+
witRefNameForBehaviors: witRefNameForBehaviors
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
* Removes a behavior for the work item type of the process.
|
|
1407
|
+
*
|
|
1408
|
+
* @param processId - The ID of the process
|
|
1409
|
+
* @param witRefNameForBehaviors - Work item type reference name for the behavior
|
|
1410
|
+
* @param behaviorRefName - The reference name of the behavior
|
|
1411
|
+
*/
|
|
1412
|
+
public async removeBehaviorFromWorkItemType(
|
|
1413
|
+
processId: string,
|
|
1414
|
+
witRefNameForBehaviors: string,
|
|
1415
|
+
behaviorRefName: string
|
|
1416
|
+
): Promise<void> {
|
|
1417
|
+
|
|
1418
|
+
return this.beginRequest<void>({
|
|
1419
|
+
apiVersion: "7.2-preview.1",
|
|
1420
|
+
method: "DELETE",
|
|
1421
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
1422
|
+
routeValues: {
|
|
1423
|
+
processId: processId,
|
|
1424
|
+
witRefNameForBehaviors: witRefNameForBehaviors,
|
|
1425
|
+
behaviorRefName: behaviorRefName
|
|
1426
|
+
}
|
|
1427
|
+
});
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
/**
|
|
1431
|
+
* Updates a behavior for the work item type of the process.
|
|
1432
|
+
*
|
|
1433
|
+
* @param behavior -
|
|
1434
|
+
* @param processId - The ID of the process
|
|
1435
|
+
* @param witRefNameForBehaviors - Work item type reference name for the behavior
|
|
1436
|
+
*/
|
|
1437
|
+
public async updateBehaviorToWorkItemType(
|
|
1438
|
+
behavior: WorkItemTrackingProcess.WorkItemTypeBehavior,
|
|
1439
|
+
processId: string,
|
|
1440
|
+
witRefNameForBehaviors: string
|
|
1441
|
+
): Promise<WorkItemTrackingProcess.WorkItemTypeBehavior> {
|
|
1442
|
+
|
|
1443
|
+
return this.beginRequest<WorkItemTrackingProcess.WorkItemTypeBehavior>({
|
|
1444
|
+
apiVersion: "7.2-preview.1",
|
|
1445
|
+
method: "PATCH",
|
|
1446
|
+
routeTemplate: "_apis/work/processes/{processId}/workItemTypesBehaviors/{witRefNameForBehaviors}/behaviors/{behaviorRefName}",
|
|
1447
|
+
routeValues: {
|
|
1448
|
+
processId: processId,
|
|
1449
|
+
witRefNameForBehaviors: witRefNameForBehaviors
|
|
1450
|
+
},
|
|
1451
|
+
body: behavior
|
|
1452
|
+
});
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
}
|