azure-devops-extension-api 4.248.0 → 4.248.1
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/{bin/Alert → Alert}/Alert.d.ts +12 -2
- package/{bin/Alert → Alert}/Alert.js +11 -0
- package/Alert/Alert.min.js +1 -0
- package/{bin/Alert → Alert}/AlertClient.d.ts +2 -1
- package/{bin/Alert → Alert}/AlertClient.js +3 -1
- package/Alert/AlertClient.min.js +1 -0
- package/{bin/Gallery → Gallery}/GalleryClient.d.ts +7 -5
- package/{bin/Gallery → Gallery}/GalleryClient.js +20 -19
- package/Gallery/GalleryClient.min.js +1 -0
- package/{bin/Management → Management}/Management.d.ts +4 -0
- package/{bin/Release → Release}/ReleaseClient.d.ts +4 -2
- package/{bin/Release → Release}/ReleaseClient.js +8 -4
- package/Release/ReleaseClient.min.js +1 -0
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.d.ts +4 -0
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.d.ts +3 -2
- package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpointClient.js +5 -3
- package/ServiceEndpoint/ServiceEndpointClient.min.js +1 -0
- package/{bin/TestResults → TestResults}/TestResultsClient.d.ts +8 -0
- package/{bin/TestResults → TestResults}/TestResultsClient.js +28 -9
- package/{bin/TestResults → TestResults}/TestResultsClient.min.js +1 -1
- package/package.json +1 -1
- package/SECURITY.md +0 -41
- package/bin/Alert/Alert.min.js +0 -1
- package/bin/Alert/AlertClient.min.js +0 -1
- package/bin/Gallery/GalleryClient.min.js +0 -1
- package/bin/LICENSE +0 -21
- package/bin/README.md +0 -2
- package/bin/Release/ReleaseClient.min.js +0 -1
- package/bin/ServiceEndpoint/ServiceEndpointClient.min.js +0 -1
- package/bin/package.json +0 -37
- package/buildpackage.js +0 -80
- package/src/Accounts/Accounts.ts +0 -134
- package/src/Accounts/AccountsClient.ts +0 -83
- package/src/Accounts/index.ts +0 -2
- package/src/AdvancedSecurity.Reporting/Reporting.ts +0 -180
- package/src/AdvancedSecurity.Reporting/ReportingClient.ts +0 -47
- package/src/Alert/Alert.ts +0 -1037
- package/src/Alert/AlertClient.ts +0 -330
- package/src/Boards/Boards.ts +0 -684
- package/src/Boards/BoardsClient.ts +0 -593
- package/src/Boards/index.ts +0 -2
- package/src/Build/Build.ts +0 -3416
- package/src/Build/BuildClient.ts +0 -2740
- package/src/Build/BuildServices.ts +0 -39
- package/src/Build/index.ts +0 -3
- package/src/Comments/Comments.ts +0 -330
- package/src/Comments/index.ts +0 -1
- package/src/Common/Client.ts +0 -37
- package/src/Common/CommonServices.ts +0 -853
- package/src/Common/Context.d.ts +0 -46
- package/src/Common/Fetch.ts +0 -239
- package/src/Common/RestClientBase.ts +0 -186
- package/src/Common/System.ts +0 -36
- package/src/Common/SystemData.ts +0 -135
- package/src/Common/Util/Serialization.ts +0 -59
- package/src/Common/Util/Url.ts +0 -773
- package/src/Common/index.ts +0 -3
- package/src/Contributions/Contributions.ts +0 -708
- package/src/Contributions/ContributionsClient.ts +0 -109
- package/src/Contributions/index.ts +0 -2
- package/src/Core/Core.ts +0 -579
- package/src/Core/CoreClient.ts +0 -765
- package/src/Core/index.ts +0 -2
- package/src/Dashboard/Dashboard.ts +0 -419
- package/src/Dashboard/DashboardClient.ts +0 -370
- package/src/Dashboard/WidgetConfigHelpers.ts +0 -43
- package/src/Dashboard/WidgetContracts.ts +0 -226
- package/src/Dashboard/WidgetHelpers.ts +0 -145
- package/src/Dashboard/index.ts +0 -5
- package/src/DistributedTaskCommon/DistributedTaskCommon.ts +0 -108
- package/src/DistributedTaskCommon/index.ts +0 -1
- package/src/ExtensionManagement/ExtensionManagement.ts +0 -1205
- package/src/ExtensionManagement/ExtensionManagementClient.ts +0 -646
- package/src/ExtensionManagement/index.ts +0 -2
- package/src/Favorite/Favorite.ts +0 -136
- package/src/Favorite/FavoriteClient.ts +0 -301
- package/src/FeatureAvailability/FeatureAvailability.ts +0 -20
- package/src/FeatureAvailability/FeatureAvailabilityClient.ts +0 -153
- package/src/FeatureAvailability/index.ts +0 -2
- package/src/FeatureManagement/FeatureManagement.ts +0 -166
- package/src/FeatureManagement/FeatureManagementClient.ts +0 -246
- package/src/FeatureManagement/index.ts +0 -2
- package/src/FileContainer/FileContainer.ts +0 -205
- package/src/FileContainer/FileContainerClient.ts +0 -154
- package/src/FileContainer/index.ts +0 -2
- package/src/FormInput/FormInput.ts +0 -288
- package/src/FormInput/index.ts +0 -1
- package/src/Gallery/Gallery.ts +0 -1977
- package/src/Gallery/GalleryClient.ts +0 -2251
- package/src/Gallery/index.ts +0 -2
- package/src/Git/CodeEditorTypes.ts +0 -335
- package/src/Git/Git.ts +0 -4062
- package/src/Git/GitClient.ts +0 -4750
- package/src/Git/GitServices.ts +0 -18
- package/src/Git/index.ts +0 -4
- package/src/Graph/Graph.ts +0 -572
- package/src/Graph/GraphClient.ts +0 -846
- package/src/Graph/index.ts +0 -2
- package/src/Identities/Identities.ts +0 -261
- package/src/Identities/IdentityProvider.ts +0 -90
- package/src/Identities/IdentityService.ts +0 -89
- package/src/Identities/index.ts +0 -3
- package/src/Locations/Locations.ts +0 -165
- package/src/Locations/LocationsClient.ts +0 -220
- package/src/Locations/index.ts +0 -2
- package/src/Management/Management.ts +0 -176
- package/src/Management/ManagementClient.ts +0 -348
- package/src/Notification/Notification.ts +0 -1460
- package/src/Notification/NotificationClient.ts +0 -477
- package/src/Notification/index.ts +0 -2
- package/src/Operations/Operations.ts +0 -86
- package/src/Operations/OperationsClient.ts +0 -42
- package/src/Operations/index.ts +0 -2
- package/src/Pipelines/Pipelines.ts +0 -354
- package/src/Pipelines/PipelinesClient.ts +0 -306
- package/src/Policy/Policy.ts +0 -173
- package/src/Policy/PolicyClient.ts +0 -315
- package/src/Policy/index.ts +0 -2
- package/src/Profile/Profile.ts +0 -187
- package/src/Profile/ProfileClient.ts +0 -328
- package/src/Profile/index.ts +0 -2
- package/src/ProjectAnalysis/ProjectAnalysis.ts +0 -74
- package/src/ProjectAnalysis/ProjectAnalysisClient.ts +0 -124
- package/src/ProjectAnalysis/index.ts +0 -2
- package/src/Release/Release.ts +0 -4237
- package/src/Release/ReleaseClient.ts +0 -2450
- package/src/Release/index.ts +0 -2
- package/src/ResourceUsage/ResourceUsage.ts +0 -19
- package/src/ResourceUsage/ResourceUsageClient.ts +0 -48
- package/src/ServiceEndpoint/ServiceEndpoint.ts +0 -930
- package/src/ServiceEndpoint/ServiceEndpointClient.ts +0 -617
- package/src/ServiceEndpoint/index.ts +0 -2
- package/src/ServiceHooks/ServiceHooks.ts +0 -759
- package/src/ServiceHooks/ServiceHooksClient.ts +0 -499
- package/src/ServiceHooks/index.ts +0 -2
- package/src/TaskAgent/TaskAgent.ts +0 -3896
- package/src/TaskAgent/TaskAgentClient.ts +0 -3918
- package/src/TaskAgent/index.ts +0 -2
- package/src/Test/Test.ts +0 -5853
- package/src/Test/TestClient.ts +0 -2201
- package/src/Test/index.ts +0 -2
- package/src/TestPlan/TestPlan.ts +0 -1384
- package/src/TestPlan/TestPlanClient.ts +0 -1367
- package/src/TestPlan/index.ts +0 -2
- package/src/TestResults/TestResults.ts +0 -11
- package/src/TestResults/TestResultsClient.ts +0 -3506
- package/src/TestResults/index.ts +0 -2
- package/src/Tfvc/Tfvc.ts +0 -770
- package/src/Tfvc/TfvcClient.ts +0 -757
- package/src/Tfvc/index.ts +0 -2
- package/src/WebApi/WebApi.ts +0 -452
- package/src/WebApi/index.ts +0 -1
- package/src/Wiki/Wiki.ts +0 -352
- package/src/Wiki/WikiClient.ts +0 -712
- package/src/Wiki/index.ts +0 -2
- package/src/Work/Work.ts +0 -1367
- package/src/Work/WorkClient.ts +0 -1489
- package/src/Work/index.ts +0 -2
- package/src/WorkItemTracking/WorkItemTracking.ts +0 -2215
- package/src/WorkItemTracking/WorkItemTrackingClient.ts +0 -2032
- package/src/WorkItemTracking/WorkItemTrackingServices.ts +0 -329
- package/src/WorkItemTracking/index.ts +0 -3
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcess.ts +0 -1295
- package/src/WorkItemTrackingProcess/WorkItemTrackingProcessClient.ts +0 -1455
- package/src/WorkItemTrackingProcess/index.ts +0 -2
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitions.ts +0 -606
- package/src/WorkItemTrackingProcessDefinitions/WorkItemTrackingProcessDefinitionsClient.ts +0 -1175
- package/src/WorkItemTrackingProcessDefinitions/index.ts +0 -2
- package/src/index.ts +0 -1
- package/tsconfig.json +0 -21
- /package/{bin/Accounts → Accounts}/Accounts.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/Accounts.js +0 -0
- /package/{bin/Accounts → Accounts}/Accounts.min.js +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.js +0 -0
- /package/{bin/Accounts → Accounts}/AccountsClient.min.js +0 -0
- /package/{bin/Accounts → Accounts}/index.d.ts +0 -0
- /package/{bin/Accounts → Accounts}/index.js +0 -0
- /package/{bin/Accounts → Accounts}/index.min.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.d.ts +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/Reporting.min.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.d.ts +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.js +0 -0
- /package/{bin/AdvancedSecurity.Reporting → AdvancedSecurity.Reporting}/ReportingClient.min.js +0 -0
- /package/{bin/Boards → Boards}/Boards.d.ts +0 -0
- /package/{bin/Boards → Boards}/Boards.js +0 -0
- /package/{bin/Boards → Boards}/Boards.min.js +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.d.ts +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.js +0 -0
- /package/{bin/Boards → Boards}/BoardsClient.min.js +0 -0
- /package/{bin/Boards → Boards}/index.d.ts +0 -0
- /package/{bin/Boards → Boards}/index.js +0 -0
- /package/{bin/Boards → Boards}/index.min.js +0 -0
- /package/{bin/Build → Build}/Build.d.ts +0 -0
- /package/{bin/Build → Build}/Build.js +0 -0
- /package/{bin/Build → Build}/Build.min.js +0 -0
- /package/{bin/Build → Build}/BuildClient.d.ts +0 -0
- /package/{bin/Build → Build}/BuildClient.js +0 -0
- /package/{bin/Build → Build}/BuildClient.min.js +0 -0
- /package/{bin/Build → Build}/BuildServices.d.ts +0 -0
- /package/{bin/Build → Build}/BuildServices.js +0 -0
- /package/{bin/Build → Build}/BuildServices.min.js +0 -0
- /package/{bin/Build → Build}/index.d.ts +0 -0
- /package/{bin/Build → Build}/index.js +0 -0
- /package/{bin/Build → Build}/index.min.js +0 -0
- /package/{bin/Comments → Comments}/Comments.d.ts +0 -0
- /package/{bin/Comments → Comments}/Comments.js +0 -0
- /package/{bin/Comments → Comments}/Comments.min.js +0 -0
- /package/{bin/Comments → Comments}/index.d.ts +0 -0
- /package/{bin/Comments → Comments}/index.js +0 -0
- /package/{bin/Comments → Comments}/index.min.js +0 -0
- /package/{bin/Common → Common}/Client.d.ts +0 -0
- /package/{bin/Common → Common}/Client.js +0 -0
- /package/{bin/Common → Common}/Client.min.js +0 -0
- /package/{bin/Common → Common}/CommonServices.d.ts +0 -0
- /package/{bin/Common → Common}/CommonServices.js +0 -0
- /package/{bin/Common → Common}/CommonServices.min.js +0 -0
- /package/{bin/Common → Common}/Context.d.ts +0 -0
- /package/{bin/Common → Common}/Fetch.d.ts +0 -0
- /package/{bin/Common → Common}/Fetch.js +0 -0
- /package/{bin/Common → Common}/Fetch.min.js +0 -0
- /package/{bin/Common → Common}/RestClientBase.d.ts +0 -0
- /package/{bin/Common → Common}/RestClientBase.js +0 -0
- /package/{bin/Common → Common}/RestClientBase.min.js +0 -0
- /package/{bin/Common → Common}/System.d.ts +0 -0
- /package/{bin/Common → Common}/System.js +0 -0
- /package/{bin/Common → Common}/System.min.js +0 -0
- /package/{bin/Common → Common}/SystemData.d.ts +0 -0
- /package/{bin/Common → Common}/SystemData.js +0 -0
- /package/{bin/Common → Common}/SystemData.min.js +0 -0
- /package/{bin/Common → Common}/Util/Serialization.d.ts +0 -0
- /package/{bin/Common → Common}/Util/Serialization.js +0 -0
- /package/{bin/Common → Common}/Util/Serialization.min.js +0 -0
- /package/{bin/Common → Common}/Util/Url.d.ts +0 -0
- /package/{bin/Common → Common}/Util/Url.js +0 -0
- /package/{bin/Common → Common}/Util/Url.min.js +0 -0
- /package/{bin/Common → Common}/index.d.ts +0 -0
- /package/{bin/Common → Common}/index.js +0 -0
- /package/{bin/Common → Common}/index.min.js +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.js +0 -0
- /package/{bin/Contributions → Contributions}/Contributions.min.js +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.js +0 -0
- /package/{bin/Contributions → Contributions}/ContributionsClient.min.js +0 -0
- /package/{bin/Contributions → Contributions}/index.d.ts +0 -0
- /package/{bin/Contributions → Contributions}/index.js +0 -0
- /package/{bin/Contributions → Contributions}/index.min.js +0 -0
- /package/{bin/Core → Core}/Core.d.ts +0 -0
- /package/{bin/Core → Core}/Core.js +0 -0
- /package/{bin/Core → Core}/Core.min.js +0 -0
- /package/{bin/Core → Core}/CoreClient.d.ts +0 -0
- /package/{bin/Core → Core}/CoreClient.js +0 -0
- /package/{bin/Core → Core}/CoreClient.min.js +0 -0
- /package/{bin/Core → Core}/index.d.ts +0 -0
- /package/{bin/Core → Core}/index.js +0 -0
- /package/{bin/Core → Core}/index.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.js +0 -0
- /package/{bin/Dashboard → Dashboard}/Dashboard.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.js +0 -0
- /package/{bin/Dashboard → Dashboard}/DashboardClient.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetConfigHelpers.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetContracts.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.js +0 -0
- /package/{bin/Dashboard → Dashboard}/WidgetHelpers.min.js +0 -0
- /package/{bin/Dashboard → Dashboard}/index.d.ts +0 -0
- /package/{bin/Dashboard → Dashboard}/index.js +0 -0
- /package/{bin/Dashboard → Dashboard}/index.min.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.d.ts +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/DistributedTaskCommon.min.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.d.ts +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.js +0 -0
- /package/{bin/DistributedTaskCommon → DistributedTaskCommon}/index.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagement.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/ExtensionManagementClient.min.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.d.ts +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.js +0 -0
- /package/{bin/ExtensionManagement → ExtensionManagement}/index.min.js +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.d.ts +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.js +0 -0
- /package/{bin/Favorite → Favorite}/Favorite.min.js +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.d.ts +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.js +0 -0
- /package/{bin/Favorite → Favorite}/FavoriteClient.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailability.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/FeatureAvailabilityClient.min.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.d.ts +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.js +0 -0
- /package/{bin/FeatureAvailability → FeatureAvailability}/index.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagement.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/FeatureManagementClient.min.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.d.ts +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.js +0 -0
- /package/{bin/FeatureManagement → FeatureManagement}/index.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainer.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.js +0 -0
- /package/{bin/FileContainer → FileContainer}/FileContainerClient.min.js +0 -0
- /package/{bin/FileContainer → FileContainer}/index.d.ts +0 -0
- /package/{bin/FileContainer → FileContainer}/index.js +0 -0
- /package/{bin/FileContainer → FileContainer}/index.min.js +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.d.ts +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.js +0 -0
- /package/{bin/FormInput → FormInput}/FormInput.min.js +0 -0
- /package/{bin/FormInput → FormInput}/index.d.ts +0 -0
- /package/{bin/FormInput → FormInput}/index.js +0 -0
- /package/{bin/FormInput → FormInput}/index.min.js +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.d.ts +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.js +0 -0
- /package/{bin/Gallery → Gallery}/Gallery.min.js +0 -0
- /package/{bin/Gallery → Gallery}/index.d.ts +0 -0
- /package/{bin/Gallery → Gallery}/index.js +0 -0
- /package/{bin/Gallery → Gallery}/index.min.js +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.d.ts +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.js +0 -0
- /package/{bin/Git → Git}/CodeEditorTypes.min.js +0 -0
- /package/{bin/Git → Git}/Git.d.ts +0 -0
- /package/{bin/Git → Git}/Git.js +0 -0
- /package/{bin/Git → Git}/Git.min.js +0 -0
- /package/{bin/Git → Git}/GitClient.d.ts +0 -0
- /package/{bin/Git → Git}/GitClient.js +0 -0
- /package/{bin/Git → Git}/GitClient.min.js +0 -0
- /package/{bin/Git → Git}/GitServices.d.ts +0 -0
- /package/{bin/Git → Git}/GitServices.js +0 -0
- /package/{bin/Git → Git}/GitServices.min.js +0 -0
- /package/{bin/Git → Git}/index.d.ts +0 -0
- /package/{bin/Git → Git}/index.js +0 -0
- /package/{bin/Git → Git}/index.min.js +0 -0
- /package/{bin/Graph → Graph}/Graph.d.ts +0 -0
- /package/{bin/Graph → Graph}/Graph.js +0 -0
- /package/{bin/Graph → Graph}/Graph.min.js +0 -0
- /package/{bin/Graph → Graph}/GraphClient.d.ts +0 -0
- /package/{bin/Graph → Graph}/GraphClient.js +0 -0
- /package/{bin/Graph → Graph}/GraphClient.min.js +0 -0
- /package/{bin/Graph → Graph}/index.d.ts +0 -0
- /package/{bin/Graph → Graph}/index.js +0 -0
- /package/{bin/Graph → Graph}/index.min.js +0 -0
- /package/{bin/Identities → Identities}/Identities.d.ts +0 -0
- /package/{bin/Identities → Identities}/Identities.js +0 -0
- /package/{bin/Identities → Identities}/Identities.min.js +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.d.ts +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.js +0 -0
- /package/{bin/Identities → Identities}/IdentityProvider.min.js +0 -0
- /package/{bin/Identities → Identities}/IdentityService.d.ts +0 -0
- /package/{bin/Identities → Identities}/IdentityService.js +0 -0
- /package/{bin/Identities → Identities}/IdentityService.min.js +0 -0
- /package/{bin/Identities → Identities}/index.d.ts +0 -0
- /package/{bin/Identities → Identities}/index.js +0 -0
- /package/{bin/Identities → Identities}/index.min.js +0 -0
- /package/{bin/Locations → Locations}/Locations.d.ts +0 -0
- /package/{bin/Locations → Locations}/Locations.js +0 -0
- /package/{bin/Locations → Locations}/Locations.min.js +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.d.ts +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.js +0 -0
- /package/{bin/Locations → Locations}/LocationsClient.min.js +0 -0
- /package/{bin/Locations → Locations}/index.d.ts +0 -0
- /package/{bin/Locations → Locations}/index.js +0 -0
- /package/{bin/Locations → Locations}/index.min.js +0 -0
- /package/{bin/Management → Management}/Management.js +0 -0
- /package/{bin/Management → Management}/Management.min.js +0 -0
- /package/{bin/Management → Management}/ManagementClient.d.ts +0 -0
- /package/{bin/Management → Management}/ManagementClient.js +0 -0
- /package/{bin/Management → Management}/ManagementClient.min.js +0 -0
- /package/{bin/Notification → Notification}/Notification.d.ts +0 -0
- /package/{bin/Notification → Notification}/Notification.js +0 -0
- /package/{bin/Notification → Notification}/Notification.min.js +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.d.ts +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.js +0 -0
- /package/{bin/Notification → Notification}/NotificationClient.min.js +0 -0
- /package/{bin/Notification → Notification}/index.d.ts +0 -0
- /package/{bin/Notification → Notification}/index.js +0 -0
- /package/{bin/Notification → Notification}/index.min.js +0 -0
- /package/{bin/Operations → Operations}/Operations.d.ts +0 -0
- /package/{bin/Operations → Operations}/Operations.js +0 -0
- /package/{bin/Operations → Operations}/Operations.min.js +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.d.ts +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.js +0 -0
- /package/{bin/Operations → Operations}/OperationsClient.min.js +0 -0
- /package/{bin/Operations → Operations}/index.d.ts +0 -0
- /package/{bin/Operations → Operations}/index.js +0 -0
- /package/{bin/Operations → Operations}/index.min.js +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.d.ts +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.js +0 -0
- /package/{bin/Pipelines → Pipelines}/Pipelines.min.js +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.d.ts +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.js +0 -0
- /package/{bin/Pipelines → Pipelines}/PipelinesClient.min.js +0 -0
- /package/{bin/Policy → Policy}/Policy.d.ts +0 -0
- /package/{bin/Policy → Policy}/Policy.js +0 -0
- /package/{bin/Policy → Policy}/Policy.min.js +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.d.ts +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.js +0 -0
- /package/{bin/Policy → Policy}/PolicyClient.min.js +0 -0
- /package/{bin/Policy → Policy}/index.d.ts +0 -0
- /package/{bin/Policy → Policy}/index.js +0 -0
- /package/{bin/Policy → Policy}/index.min.js +0 -0
- /package/{bin/Profile → Profile}/Profile.d.ts +0 -0
- /package/{bin/Profile → Profile}/Profile.js +0 -0
- /package/{bin/Profile → Profile}/Profile.min.js +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.d.ts +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.js +0 -0
- /package/{bin/Profile → Profile}/ProfileClient.min.js +0 -0
- /package/{bin/Profile → Profile}/index.d.ts +0 -0
- /package/{bin/Profile → Profile}/index.js +0 -0
- /package/{bin/Profile → Profile}/index.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysis.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/ProjectAnalysisClient.min.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.d.ts +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.js +0 -0
- /package/{bin/ProjectAnalysis → ProjectAnalysis}/index.min.js +0 -0
- /package/{bin/Release → Release}/Release.d.ts +0 -0
- /package/{bin/Release → Release}/Release.js +0 -0
- /package/{bin/Release → Release}/Release.min.js +0 -0
- /package/{bin/Release → Release}/index.d.ts +0 -0
- /package/{bin/Release → Release}/index.js +0 -0
- /package/{bin/Release → Release}/index.min.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.d.ts +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsage.min.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.d.ts +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.js +0 -0
- /package/{bin/ResourceUsage → ResourceUsage}/ResourceUsageClient.min.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/ServiceEndpoint.min.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.d.ts +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.js +0 -0
- /package/{bin/ServiceEndpoint → ServiceEndpoint}/index.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooks.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/ServiceHooksClient.min.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.d.ts +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.js +0 -0
- /package/{bin/ServiceHooks → ServiceHooks}/index.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgent.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/TaskAgentClient.min.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.d.ts +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.js +0 -0
- /package/{bin/TaskAgent → TaskAgent}/index.min.js +0 -0
- /package/{bin/Test → Test}/Test.d.ts +0 -0
- /package/{bin/Test → Test}/Test.js +0 -0
- /package/{bin/Test → Test}/Test.min.js +0 -0
- /package/{bin/Test → Test}/TestClient.d.ts +0 -0
- /package/{bin/Test → Test}/TestClient.js +0 -0
- /package/{bin/Test → Test}/TestClient.min.js +0 -0
- /package/{bin/Test → Test}/index.d.ts +0 -0
- /package/{bin/Test → Test}/index.js +0 -0
- /package/{bin/Test → Test}/index.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlan.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.js +0 -0
- /package/{bin/TestPlan → TestPlan}/TestPlanClient.min.js +0 -0
- /package/{bin/TestPlan → TestPlan}/index.d.ts +0 -0
- /package/{bin/TestPlan → TestPlan}/index.js +0 -0
- /package/{bin/TestPlan → TestPlan}/index.min.js +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.d.ts +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.js +0 -0
- /package/{bin/TestResults → TestResults}/TestResults.min.js +0 -0
- /package/{bin/TestResults → TestResults}/index.d.ts +0 -0
- /package/{bin/TestResults → TestResults}/index.js +0 -0
- /package/{bin/TestResults → TestResults}/index.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.js +0 -0
- /package/{bin/Tfvc → Tfvc}/Tfvc.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.js +0 -0
- /package/{bin/Tfvc → Tfvc}/TfvcClient.min.js +0 -0
- /package/{bin/Tfvc → Tfvc}/index.d.ts +0 -0
- /package/{bin/Tfvc → Tfvc}/index.js +0 -0
- /package/{bin/Tfvc → Tfvc}/index.min.js +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.d.ts +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.js +0 -0
- /package/{bin/WebApi → WebApi}/WebApi.min.js +0 -0
- /package/{bin/WebApi → WebApi}/index.d.ts +0 -0
- /package/{bin/WebApi → WebApi}/index.js +0 -0
- /package/{bin/WebApi → WebApi}/index.min.js +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.js +0 -0
- /package/{bin/Wiki → Wiki}/Wiki.min.js +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.js +0 -0
- /package/{bin/Wiki → Wiki}/WikiClient.min.js +0 -0
- /package/{bin/Wiki → Wiki}/index.d.ts +0 -0
- /package/{bin/Wiki → Wiki}/index.js +0 -0
- /package/{bin/Wiki → Wiki}/index.min.js +0 -0
- /package/{bin/Work → Work}/Work.d.ts +0 -0
- /package/{bin/Work → Work}/Work.js +0 -0
- /package/{bin/Work → Work}/Work.min.js +0 -0
- /package/{bin/Work → Work}/WorkClient.d.ts +0 -0
- /package/{bin/Work → Work}/WorkClient.js +0 -0
- /package/{bin/Work → Work}/WorkClient.min.js +0 -0
- /package/{bin/Work → Work}/index.d.ts +0 -0
- /package/{bin/Work → Work}/index.js +0 -0
- /package/{bin/Work → Work}/index.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTracking.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingClient.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/WorkItemTrackingServices.min.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.d.ts +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.js +0 -0
- /package/{bin/WorkItemTracking → WorkItemTracking}/index.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcess.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/WorkItemTrackingProcessClient.min.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.js +0 -0
- /package/{bin/WorkItemTrackingProcess → WorkItemTrackingProcess}/index.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitions.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/WorkItemTrackingProcessDefinitionsClient.min.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.d.ts +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.js +0 -0
- /package/{bin/WorkItemTrackingProcessDefinitions → WorkItemTrackingProcessDefinitions}/index.min.js +0 -0
- /package/{bin/index.d.ts → index.d.ts} +0 -0
- /package/{bin/index.js → index.js} +0 -0
- /package/{bin/index.min.js → index.min.js} +0 -0
package/src/Graph/GraphClient.ts
DELETED
|
@@ -1,846 +0,0 @@
|
|
|
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 Graph from "../Graph/Graph";
|
|
11
|
-
import * as Profile from "../Profile/Profile";
|
|
12
|
-
import * as WebApi from "../WebApi/WebApi";
|
|
13
|
-
|
|
14
|
-
export class GraphRestClient extends RestClientBase {
|
|
15
|
-
constructor(options: IVssRestClientOptions) {
|
|
16
|
-
super(options);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
public static readonly RESOURCE_AREA_ID = "bb1e7ec9-e901-4b68-999a-de7012b920f8";
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* @param subjectDescriptor -
|
|
23
|
-
*/
|
|
24
|
-
public async deleteAvatar(
|
|
25
|
-
subjectDescriptor: string
|
|
26
|
-
): Promise<void> {
|
|
27
|
-
|
|
28
|
-
return this.beginRequest<void>({
|
|
29
|
-
apiVersion: "7.2-preview.1",
|
|
30
|
-
method: "DELETE",
|
|
31
|
-
routeTemplate: "_apis/Graph/Subjects/{subjectDescriptor}/Avatars",
|
|
32
|
-
routeValues: {
|
|
33
|
-
subjectDescriptor: subjectDescriptor
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @param subjectDescriptor -
|
|
40
|
-
* @param size -
|
|
41
|
-
* @param format -
|
|
42
|
-
*/
|
|
43
|
-
public async getAvatar(
|
|
44
|
-
subjectDescriptor: string,
|
|
45
|
-
size?: Profile.AvatarSize,
|
|
46
|
-
format?: string
|
|
47
|
-
): Promise<Profile.Avatar> {
|
|
48
|
-
|
|
49
|
-
const queryValues: any = {
|
|
50
|
-
size: size,
|
|
51
|
-
format: format
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
return this.beginRequest<Profile.Avatar>({
|
|
55
|
-
apiVersion: "7.2-preview.1",
|
|
56
|
-
routeTemplate: "_apis/Graph/Subjects/{subjectDescriptor}/Avatars",
|
|
57
|
-
routeValues: {
|
|
58
|
-
subjectDescriptor: subjectDescriptor
|
|
59
|
-
},
|
|
60
|
-
queryParams: queryValues
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @param avatar -
|
|
66
|
-
* @param subjectDescriptor -
|
|
67
|
-
*/
|
|
68
|
-
public async setAvatar(
|
|
69
|
-
avatar: Profile.Avatar,
|
|
70
|
-
subjectDescriptor: string
|
|
71
|
-
): Promise<void> {
|
|
72
|
-
|
|
73
|
-
return this.beginRequest<void>({
|
|
74
|
-
apiVersion: "7.2-preview.1",
|
|
75
|
-
method: "PUT",
|
|
76
|
-
routeTemplate: "_apis/Graph/Subjects/{subjectDescriptor}/Avatars",
|
|
77
|
-
routeValues: {
|
|
78
|
-
subjectDescriptor: subjectDescriptor
|
|
79
|
-
},
|
|
80
|
-
body: avatar
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
*/
|
|
86
|
-
public async getCachePolicies(
|
|
87
|
-
): Promise<Graph.GraphCachePolicies> {
|
|
88
|
-
|
|
89
|
-
return this.beginRequest<Graph.GraphCachePolicies>({
|
|
90
|
-
apiVersion: "7.2-preview.1",
|
|
91
|
-
routeTemplate: "_apis/Graph/CachePolicies"
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Resolve a storage key to a descriptor
|
|
97
|
-
*
|
|
98
|
-
* @param storageKey - Storage key of the subject (user, group, scope, etc.) to resolve
|
|
99
|
-
*/
|
|
100
|
-
public async getDescriptor(
|
|
101
|
-
storageKey: string
|
|
102
|
-
): Promise<Graph.GraphDescriptorResult> {
|
|
103
|
-
|
|
104
|
-
return this.beginRequest<Graph.GraphDescriptorResult>({
|
|
105
|
-
apiVersion: "7.2-preview.1",
|
|
106
|
-
routeTemplate: "_apis/Graph/Descriptors/{storageKey}",
|
|
107
|
-
routeValues: {
|
|
108
|
-
storageKey: storageKey
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* Acquires the full set of federated provider authentication data available for the given graph subject and provider name.
|
|
115
|
-
*
|
|
116
|
-
* @param subjectDescriptor - the descriptor of the graph subject that we should acquire data for
|
|
117
|
-
* @param providerName - the name of the provider to acquire data for, e.g. "github.com"
|
|
118
|
-
* @param versionHint - a version hint that can be used for optimistic cache concurrency and to support retries on access token failures; note that this is a hint only and does not guarantee a particular version on the response
|
|
119
|
-
*/
|
|
120
|
-
public async getFederatedProviderData(
|
|
121
|
-
subjectDescriptor: string,
|
|
122
|
-
providerName: string,
|
|
123
|
-
versionHint?: number
|
|
124
|
-
): Promise<Graph.GraphFederatedProviderData> {
|
|
125
|
-
|
|
126
|
-
const queryValues: any = {
|
|
127
|
-
providerName: providerName,
|
|
128
|
-
versionHint: versionHint
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
return this.beginRequest<Graph.GraphFederatedProviderData>({
|
|
132
|
-
apiVersion: "7.2-preview.1",
|
|
133
|
-
routeTemplate: "_apis/Graph/FederatedProviderData/{subjectDescriptor}",
|
|
134
|
-
routeValues: {
|
|
135
|
-
subjectDescriptor: subjectDescriptor
|
|
136
|
-
},
|
|
137
|
-
queryParams: queryValues
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Create a new Azure DevOps group or materialize an existing AAD group.
|
|
143
|
-
*
|
|
144
|
-
* @param creationContext - The subset of the full graph group used to uniquely find the graph subject in an external provider.
|
|
145
|
-
* @param scopeDescriptor - A descriptor referencing the scope (collection, project) in which the group should be created. If omitted, will be created in the scope of the enclosing account or organization. Valid only for VSTS groups.
|
|
146
|
-
* @param groupDescriptors - A comma separated list of descriptors referencing groups you want the graph group to join
|
|
147
|
-
*/
|
|
148
|
-
public async createGroup(
|
|
149
|
-
creationContext: Graph.GraphGroupCreationContext,
|
|
150
|
-
scopeDescriptor?: string,
|
|
151
|
-
groupDescriptors?: string[]
|
|
152
|
-
): Promise<Graph.GraphGroup> {
|
|
153
|
-
|
|
154
|
-
const queryValues: any = {
|
|
155
|
-
scopeDescriptor: scopeDescriptor,
|
|
156
|
-
groupDescriptors: groupDescriptors && groupDescriptors.join(",")
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
return this.beginRequest<Graph.GraphGroup>({
|
|
160
|
-
apiVersion: "7.2-preview.1",
|
|
161
|
-
method: "POST",
|
|
162
|
-
routeTemplate: "_apis/Graph/Groups/{groupDescriptor}",
|
|
163
|
-
queryParams: queryValues,
|
|
164
|
-
body: creationContext
|
|
165
|
-
});
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Removes an Azure DevOps group from all of its parent groups.
|
|
170
|
-
*
|
|
171
|
-
* @param groupDescriptor - The descriptor of the group to delete.
|
|
172
|
-
*/
|
|
173
|
-
public async deleteGroup(
|
|
174
|
-
groupDescriptor: string
|
|
175
|
-
): Promise<void> {
|
|
176
|
-
|
|
177
|
-
return this.beginRequest<void>({
|
|
178
|
-
apiVersion: "7.2-preview.1",
|
|
179
|
-
method: "DELETE",
|
|
180
|
-
routeTemplate: "_apis/Graph/Groups/{groupDescriptor}",
|
|
181
|
-
routeValues: {
|
|
182
|
-
groupDescriptor: groupDescriptor
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
/**
|
|
188
|
-
* Get a group by its descriptor.
|
|
189
|
-
*
|
|
190
|
-
* @param groupDescriptor - The descriptor of the desired graph group.
|
|
191
|
-
*/
|
|
192
|
-
public async getGroup(
|
|
193
|
-
groupDescriptor: string
|
|
194
|
-
): Promise<Graph.GraphGroup> {
|
|
195
|
-
|
|
196
|
-
return this.beginRequest<Graph.GraphGroup>({
|
|
197
|
-
apiVersion: "7.2-preview.1",
|
|
198
|
-
routeTemplate: "_apis/Graph/Groups/{groupDescriptor}",
|
|
199
|
-
routeValues: {
|
|
200
|
-
groupDescriptor: groupDescriptor
|
|
201
|
-
}
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Update the properties of an Azure DevOps group.
|
|
207
|
-
*
|
|
208
|
-
* @param groupDescriptor - The descriptor of the group to modify.
|
|
209
|
-
* @param patchDocument - The JSON+Patch document containing the fields to alter.
|
|
210
|
-
*/
|
|
211
|
-
public async updateGroup(
|
|
212
|
-
groupDescriptor: string,
|
|
213
|
-
patchDocument: WebApi.JsonPatchDocument
|
|
214
|
-
): Promise<Graph.GraphGroup> {
|
|
215
|
-
|
|
216
|
-
return this.beginRequest<Graph.GraphGroup>({
|
|
217
|
-
apiVersion: "7.2-preview.1",
|
|
218
|
-
method: "PATCH",
|
|
219
|
-
routeTemplate: "_apis/Graph/Groups/{groupDescriptor}",
|
|
220
|
-
routeValues: {
|
|
221
|
-
groupDescriptor: groupDescriptor
|
|
222
|
-
},
|
|
223
|
-
customHeaders: {
|
|
224
|
-
"Content-Type": "application/json-patch+json",
|
|
225
|
-
},
|
|
226
|
-
body: patchDocument
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Identity Translation - Translate endpoint is supposed to be used by geneva action.
|
|
232
|
-
*
|
|
233
|
-
* @param masterId -
|
|
234
|
-
* @param localId -
|
|
235
|
-
*/
|
|
236
|
-
public async translate(
|
|
237
|
-
masterId?: string,
|
|
238
|
-
localId?: string
|
|
239
|
-
): Promise<string> {
|
|
240
|
-
|
|
241
|
-
const queryValues: any = {
|
|
242
|
-
masterId: masterId,
|
|
243
|
-
localId: localId
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
return this.beginRequest<string>({
|
|
247
|
-
apiVersion: "7.2-preview.1",
|
|
248
|
-
routeTemplate: "_apis/Graph/IdentityTranslation",
|
|
249
|
-
queryParams: queryValues
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Gets all requested members in the current scope (usually organization or account).
|
|
255
|
-
*
|
|
256
|
-
* @param memberLookup -
|
|
257
|
-
*/
|
|
258
|
-
public async lookupMembers(
|
|
259
|
-
memberLookup: Graph.GraphSubjectLookup
|
|
260
|
-
): Promise<{ [key: string] : Graph.GraphMember; }> {
|
|
261
|
-
|
|
262
|
-
return this.beginRequest<{ [key: string] : Graph.GraphMember; }>({
|
|
263
|
-
apiVersion: "7.2-preview.1",
|
|
264
|
-
method: "POST",
|
|
265
|
-
routeTemplate: "_apis/Graph/MemberLookup",
|
|
266
|
-
body: memberLookup
|
|
267
|
-
});
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
/**
|
|
271
|
-
* This endpoint returns a result for any member that has ever been valid in the system, even if the member has since been deleted or has had all their memberships deleted. The current validity of the member is indicated through its disabled property, which is omitted when false.
|
|
272
|
-
*
|
|
273
|
-
* @param memberDescriptor - The descriptor of the desired member.
|
|
274
|
-
*/
|
|
275
|
-
public async getMemberByDescriptor(
|
|
276
|
-
memberDescriptor: string
|
|
277
|
-
): Promise<Graph.GraphMember> {
|
|
278
|
-
|
|
279
|
-
return this.beginRequest<Graph.GraphMember>({
|
|
280
|
-
apiVersion: "7.2-preview.2",
|
|
281
|
-
routeTemplate: "_apis/Graph/Members/{memberDescriptor}",
|
|
282
|
-
routeValues: {
|
|
283
|
-
memberDescriptor: memberDescriptor
|
|
284
|
-
}
|
|
285
|
-
});
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Create a new membership between a container and subject.
|
|
290
|
-
*
|
|
291
|
-
* @param subjectDescriptor - A descriptor to a group or user that can be the child subject in the relationship.
|
|
292
|
-
* @param containerDescriptor - A descriptor to a group that can be the container in the relationship.
|
|
293
|
-
*/
|
|
294
|
-
public async addMembership(
|
|
295
|
-
subjectDescriptor: string,
|
|
296
|
-
containerDescriptor: string
|
|
297
|
-
): Promise<Graph.GraphMembership> {
|
|
298
|
-
|
|
299
|
-
return this.beginRequest<Graph.GraphMembership>({
|
|
300
|
-
apiVersion: "7.2-preview.1",
|
|
301
|
-
method: "PUT",
|
|
302
|
-
routeTemplate: "_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",
|
|
303
|
-
routeValues: {
|
|
304
|
-
subjectDescriptor: subjectDescriptor,
|
|
305
|
-
containerDescriptor: containerDescriptor
|
|
306
|
-
}
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* Check to see if a membership relationship between a container and subject exists.
|
|
312
|
-
*
|
|
313
|
-
* @param subjectDescriptor - The group or user that is a child subject of the relationship.
|
|
314
|
-
* @param containerDescriptor - The group that is the container in the relationship.
|
|
315
|
-
*/
|
|
316
|
-
public async checkMembershipExistence(
|
|
317
|
-
subjectDescriptor: string,
|
|
318
|
-
containerDescriptor: string
|
|
319
|
-
): Promise<boolean> {
|
|
320
|
-
|
|
321
|
-
return this.beginRequest<Response>({
|
|
322
|
-
apiVersion: "7.2-preview.1",
|
|
323
|
-
method: "HEAD",
|
|
324
|
-
routeTemplate: "_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",
|
|
325
|
-
routeValues: {
|
|
326
|
-
subjectDescriptor: subjectDescriptor,
|
|
327
|
-
containerDescriptor: containerDescriptor
|
|
328
|
-
},
|
|
329
|
-
returnRawResponse: true
|
|
330
|
-
}).then(async response => {
|
|
331
|
-
return true;
|
|
332
|
-
}).catch((error) => {
|
|
333
|
-
if (error.status === 404) {
|
|
334
|
-
return false;
|
|
335
|
-
}
|
|
336
|
-
throw error;
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/**
|
|
341
|
-
* Get a membership relationship between a container and subject.
|
|
342
|
-
*
|
|
343
|
-
* @param subjectDescriptor - A descriptor to the child subject in the relationship.
|
|
344
|
-
* @param containerDescriptor - A descriptor to the container in the relationship.
|
|
345
|
-
*/
|
|
346
|
-
public async getMembership(
|
|
347
|
-
subjectDescriptor: string,
|
|
348
|
-
containerDescriptor: string
|
|
349
|
-
): Promise<Graph.GraphMembership> {
|
|
350
|
-
|
|
351
|
-
return this.beginRequest<Graph.GraphMembership>({
|
|
352
|
-
apiVersion: "7.2-preview.1",
|
|
353
|
-
routeTemplate: "_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",
|
|
354
|
-
routeValues: {
|
|
355
|
-
subjectDescriptor: subjectDescriptor,
|
|
356
|
-
containerDescriptor: containerDescriptor
|
|
357
|
-
}
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
/**
|
|
362
|
-
* Deletes a membership between a container and subject.
|
|
363
|
-
*
|
|
364
|
-
* @param subjectDescriptor - A descriptor to a group or user that is the child subject in the relationship.
|
|
365
|
-
* @param containerDescriptor - A descriptor to a group that is the container in the relationship.
|
|
366
|
-
*/
|
|
367
|
-
public async removeMembership(
|
|
368
|
-
subjectDescriptor: string,
|
|
369
|
-
containerDescriptor: string
|
|
370
|
-
): Promise<void> {
|
|
371
|
-
|
|
372
|
-
return this.beginRequest<void>({
|
|
373
|
-
apiVersion: "7.2-preview.1",
|
|
374
|
-
method: "DELETE",
|
|
375
|
-
routeTemplate: "_apis/Graph/Memberships/{subjectDescriptor}/{containerDescriptor}",
|
|
376
|
-
routeValues: {
|
|
377
|
-
subjectDescriptor: subjectDescriptor,
|
|
378
|
-
containerDescriptor: containerDescriptor
|
|
379
|
-
}
|
|
380
|
-
});
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
/**
|
|
384
|
-
* Get all the memberships where this descriptor is a member in the relationship.
|
|
385
|
-
*
|
|
386
|
-
* @param subjectDescriptor - Fetch all direct memberships of this descriptor.
|
|
387
|
-
* @param direction - Defaults to Up.
|
|
388
|
-
* @param depth - The maximum number of edges to traverse up or down the membership tree. Currently the only supported value is '1'.
|
|
389
|
-
*/
|
|
390
|
-
public async listMemberships(
|
|
391
|
-
subjectDescriptor: string,
|
|
392
|
-
direction?: Graph.GraphTraversalDirection,
|
|
393
|
-
depth?: number
|
|
394
|
-
): Promise<Graph.GraphMembership[]> {
|
|
395
|
-
|
|
396
|
-
const queryValues: any = {
|
|
397
|
-
direction: direction,
|
|
398
|
-
depth: depth
|
|
399
|
-
};
|
|
400
|
-
|
|
401
|
-
return this.beginRequest<Graph.GraphMembership[]>({
|
|
402
|
-
apiVersion: "7.2-preview.1",
|
|
403
|
-
routeTemplate: "_apis/Graph/Memberships/{subjectDescriptor}",
|
|
404
|
-
routeValues: {
|
|
405
|
-
subjectDescriptor: subjectDescriptor
|
|
406
|
-
},
|
|
407
|
-
queryParams: queryValues
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* Check whether a subject is active or inactive.
|
|
413
|
-
*
|
|
414
|
-
* @param subjectDescriptor - Descriptor of the subject (user, group, scope, etc.) to check state of
|
|
415
|
-
*/
|
|
416
|
-
public async getMembershipState(
|
|
417
|
-
subjectDescriptor: string
|
|
418
|
-
): Promise<Graph.GraphMembershipState> {
|
|
419
|
-
|
|
420
|
-
return this.beginRequest<Graph.GraphMembershipState>({
|
|
421
|
-
apiVersion: "7.2-preview.1",
|
|
422
|
-
routeTemplate: "_apis/Graph/MembershipStates/{subjectDescriptor}",
|
|
423
|
-
routeValues: {
|
|
424
|
-
subjectDescriptor: subjectDescriptor
|
|
425
|
-
}
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
/**
|
|
430
|
-
* Traverse memberships of the given subject descriptors.
|
|
431
|
-
*
|
|
432
|
-
* @param membershipTraversalLookup - Fetch the descendants/ancestors of the list of descriptors depending on direction.
|
|
433
|
-
* @param direction - The default value is Unknown.
|
|
434
|
-
* @param depth - The default value is '1'.
|
|
435
|
-
*/
|
|
436
|
-
public async lookupMembershipTraversals(
|
|
437
|
-
membershipTraversalLookup: Graph.GraphSubjectLookup,
|
|
438
|
-
direction?: Graph.GraphTraversalDirection,
|
|
439
|
-
depth?: number
|
|
440
|
-
): Promise<{ [key: string] : Graph.GraphMembershipTraversal; }> {
|
|
441
|
-
|
|
442
|
-
const queryValues: any = {
|
|
443
|
-
direction: direction,
|
|
444
|
-
depth: depth
|
|
445
|
-
};
|
|
446
|
-
|
|
447
|
-
return this.beginRequest<{ [key: string] : Graph.GraphMembershipTraversal; }>({
|
|
448
|
-
apiVersion: "7.2-preview.1",
|
|
449
|
-
method: "POST",
|
|
450
|
-
routeTemplate: "_apis/Graph/MembershipTraversals/{subjectDescriptor}",
|
|
451
|
-
queryParams: queryValues,
|
|
452
|
-
body: membershipTraversalLookup
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
|
|
456
|
-
/**
|
|
457
|
-
* Traverse memberships of the given subject descriptor.
|
|
458
|
-
*
|
|
459
|
-
* @param subjectDescriptor - Fetch the descendants/ancestors of this descriptor depending on direction.
|
|
460
|
-
* @param direction - The default value is Unknown.
|
|
461
|
-
* @param depth - The default value is '1'.
|
|
462
|
-
*/
|
|
463
|
-
public async traverseMemberships(
|
|
464
|
-
subjectDescriptor: string,
|
|
465
|
-
direction?: Graph.GraphTraversalDirection,
|
|
466
|
-
depth?: number
|
|
467
|
-
): Promise<Graph.GraphMembershipTraversal> {
|
|
468
|
-
|
|
469
|
-
const queryValues: any = {
|
|
470
|
-
direction: direction,
|
|
471
|
-
depth: depth
|
|
472
|
-
};
|
|
473
|
-
|
|
474
|
-
return this.beginRequest<Graph.GraphMembershipTraversal>({
|
|
475
|
-
apiVersion: "7.2-preview.1",
|
|
476
|
-
routeTemplate: "_apis/Graph/MembershipTraversals/{subjectDescriptor}",
|
|
477
|
-
routeValues: {
|
|
478
|
-
subjectDescriptor: subjectDescriptor
|
|
479
|
-
},
|
|
480
|
-
queryParams: queryValues
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* @param userDescriptor -
|
|
486
|
-
*/
|
|
487
|
-
public async getProviderInfo(
|
|
488
|
-
userDescriptor: string
|
|
489
|
-
): Promise<Graph.GraphProviderInfo> {
|
|
490
|
-
|
|
491
|
-
return this.beginRequest<Graph.GraphProviderInfo>({
|
|
492
|
-
apiVersion: "7.2-preview.1",
|
|
493
|
-
routeTemplate: "_apis/Graph/Users/{userDescriptor}/ProviderInfo",
|
|
494
|
-
routeValues: {
|
|
495
|
-
userDescriptor: userDescriptor
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* @param jsondocument -
|
|
502
|
-
*/
|
|
503
|
-
public async requestAccess(
|
|
504
|
-
jsondocument: any
|
|
505
|
-
): Promise<void> {
|
|
506
|
-
|
|
507
|
-
return this.beginRequest<void>({
|
|
508
|
-
apiVersion: "7.2-preview.1",
|
|
509
|
-
method: "POST",
|
|
510
|
-
routeTemplate: "_apis/Graph/RequestAccess",
|
|
511
|
-
body: jsondocument
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/**
|
|
516
|
-
* Batch-map a list of users to new users.
|
|
517
|
-
*
|
|
518
|
-
* @param mappings - A list of mappings.
|
|
519
|
-
*/
|
|
520
|
-
public async resolve(
|
|
521
|
-
mappings: Graph.IdentityMappings
|
|
522
|
-
): Promise<Graph.ResolveDisconnectedUsersResponse> {
|
|
523
|
-
|
|
524
|
-
return this.beginRequest<Graph.ResolveDisconnectedUsersResponse>({
|
|
525
|
-
apiVersion: "7.2-preview.1",
|
|
526
|
-
method: "POST",
|
|
527
|
-
routeTemplate: "_apis/Graph/ResolveDisconnectedUsers",
|
|
528
|
-
body: mappings
|
|
529
|
-
});
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
/**
|
|
533
|
-
* @param creationContext -
|
|
534
|
-
* @param scopeDescriptor -
|
|
535
|
-
*/
|
|
536
|
-
public async createScope(
|
|
537
|
-
creationContext: Graph.GraphScopeCreationContext,
|
|
538
|
-
scopeDescriptor?: string
|
|
539
|
-
): Promise<Graph.GraphScope> {
|
|
540
|
-
|
|
541
|
-
return this.beginRequest<Graph.GraphScope>({
|
|
542
|
-
apiVersion: "7.2-preview.1",
|
|
543
|
-
method: "POST",
|
|
544
|
-
routeTemplate: "_apis/Graph/Scopes/{scopeDescriptor}",
|
|
545
|
-
routeValues: {
|
|
546
|
-
scopeDescriptor: scopeDescriptor
|
|
547
|
-
},
|
|
548
|
-
body: creationContext
|
|
549
|
-
});
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/**
|
|
553
|
-
* @param scopeDescriptor -
|
|
554
|
-
*/
|
|
555
|
-
public async deleteScope(
|
|
556
|
-
scopeDescriptor: string
|
|
557
|
-
): Promise<void> {
|
|
558
|
-
|
|
559
|
-
return this.beginRequest<void>({
|
|
560
|
-
apiVersion: "7.2-preview.1",
|
|
561
|
-
method: "DELETE",
|
|
562
|
-
routeTemplate: "_apis/Graph/Scopes/{scopeDescriptor}",
|
|
563
|
-
routeValues: {
|
|
564
|
-
scopeDescriptor: scopeDescriptor
|
|
565
|
-
}
|
|
566
|
-
});
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
/**
|
|
570
|
-
* Get a scope identified by its descriptor
|
|
571
|
-
*
|
|
572
|
-
* @param scopeDescriptor - A descriptor that uniquely identifies a scope.
|
|
573
|
-
*/
|
|
574
|
-
public async getScope(
|
|
575
|
-
scopeDescriptor: string
|
|
576
|
-
): Promise<Graph.GraphScope> {
|
|
577
|
-
|
|
578
|
-
return this.beginRequest<Graph.GraphScope>({
|
|
579
|
-
apiVersion: "7.2-preview.1",
|
|
580
|
-
routeTemplate: "_apis/Graph/Scopes/{scopeDescriptor}",
|
|
581
|
-
routeValues: {
|
|
582
|
-
scopeDescriptor: scopeDescriptor
|
|
583
|
-
}
|
|
584
|
-
});
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
/**
|
|
588
|
-
* @param scopeDescriptor -
|
|
589
|
-
* @param patchDocument -
|
|
590
|
-
*/
|
|
591
|
-
public async updateScope(
|
|
592
|
-
scopeDescriptor: string,
|
|
593
|
-
patchDocument: WebApi.JsonPatchDocument
|
|
594
|
-
): Promise<void> {
|
|
595
|
-
|
|
596
|
-
return this.beginRequest<void>({
|
|
597
|
-
apiVersion: "7.2-preview.1",
|
|
598
|
-
method: "PATCH",
|
|
599
|
-
routeTemplate: "_apis/Graph/Scopes/{scopeDescriptor}",
|
|
600
|
-
routeValues: {
|
|
601
|
-
scopeDescriptor: scopeDescriptor
|
|
602
|
-
},
|
|
603
|
-
customHeaders: {
|
|
604
|
-
"Content-Type": "application/json-patch+json",
|
|
605
|
-
},
|
|
606
|
-
body: patchDocument
|
|
607
|
-
});
|
|
608
|
-
}
|
|
609
|
-
|
|
610
|
-
/**
|
|
611
|
-
* Materialize an existing AAD service principal into the ADO account.
|
|
612
|
-
*
|
|
613
|
-
* @param creationContext - The subset of the full graph service principal used to uniquely find the graph subject in an external provider.
|
|
614
|
-
* @param groupDescriptors - A comma separated list of descriptors of groups you want the graph service principal to join
|
|
615
|
-
*/
|
|
616
|
-
public async createServicePrincipal(
|
|
617
|
-
creationContext: Graph.GraphServicePrincipalCreationContext,
|
|
618
|
-
groupDescriptors?: string[]
|
|
619
|
-
): Promise<Graph.GraphServicePrincipal> {
|
|
620
|
-
|
|
621
|
-
const queryValues: any = {
|
|
622
|
-
groupDescriptors: groupDescriptors && groupDescriptors.join(",")
|
|
623
|
-
};
|
|
624
|
-
|
|
625
|
-
return this.beginRequest<Graph.GraphServicePrincipal>({
|
|
626
|
-
apiVersion: "7.2-preview.1",
|
|
627
|
-
method: "POST",
|
|
628
|
-
routeTemplate: "_apis/Graph/ServicePrincipals/{servicePrincipalDescriptor}",
|
|
629
|
-
queryParams: queryValues,
|
|
630
|
-
body: creationContext
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
/**
|
|
635
|
-
* Disables a service principal.
|
|
636
|
-
*
|
|
637
|
-
* @param servicePrincipalDescriptor - The descriptor of the service principal to delete.
|
|
638
|
-
*/
|
|
639
|
-
public async deleteServicePrincipal(
|
|
640
|
-
servicePrincipalDescriptor: string
|
|
641
|
-
): Promise<void> {
|
|
642
|
-
|
|
643
|
-
return this.beginRequest<void>({
|
|
644
|
-
apiVersion: "7.2-preview.1",
|
|
645
|
-
method: "DELETE",
|
|
646
|
-
routeTemplate: "_apis/Graph/ServicePrincipals/{servicePrincipalDescriptor}",
|
|
647
|
-
routeValues: {
|
|
648
|
-
servicePrincipalDescriptor: servicePrincipalDescriptor
|
|
649
|
-
}
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
|
|
653
|
-
/**
|
|
654
|
-
* Get a service principal by its descriptor.
|
|
655
|
-
*
|
|
656
|
-
* @param servicePrincipalDescriptor - The descriptor of the desired service principal.
|
|
657
|
-
*/
|
|
658
|
-
public async getServicePrincipal(
|
|
659
|
-
servicePrincipalDescriptor: string
|
|
660
|
-
): Promise<Graph.GraphServicePrincipal> {
|
|
661
|
-
|
|
662
|
-
return this.beginRequest<Graph.GraphServicePrincipal>({
|
|
663
|
-
apiVersion: "7.2-preview.1",
|
|
664
|
-
routeTemplate: "_apis/Graph/ServicePrincipals/{servicePrincipalDescriptor}",
|
|
665
|
-
routeValues: {
|
|
666
|
-
servicePrincipalDescriptor: servicePrincipalDescriptor
|
|
667
|
-
}
|
|
668
|
-
});
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
/**
|
|
672
|
-
* Map an existing service principal to a different service principal.
|
|
673
|
-
*
|
|
674
|
-
* @param updateContext - The subset of the full graph service principal used to uniquely find the graph subject in an external provider.
|
|
675
|
-
* @param servicePrincipalDescriptor - The descriptor of the service principal to update
|
|
676
|
-
*/
|
|
677
|
-
public async updateServicePrincipal(
|
|
678
|
-
updateContext: Graph.GraphServicePrincipalUpdateContext,
|
|
679
|
-
servicePrincipalDescriptor: string
|
|
680
|
-
): Promise<Graph.GraphServicePrincipal> {
|
|
681
|
-
|
|
682
|
-
return this.beginRequest<Graph.GraphServicePrincipal>({
|
|
683
|
-
apiVersion: "7.2-preview.1",
|
|
684
|
-
method: "PATCH",
|
|
685
|
-
routeTemplate: "_apis/Graph/ServicePrincipals/{servicePrincipalDescriptor}",
|
|
686
|
-
routeValues: {
|
|
687
|
-
servicePrincipalDescriptor: servicePrincipalDescriptor
|
|
688
|
-
},
|
|
689
|
-
body: updateContext
|
|
690
|
-
});
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
/**
|
|
694
|
-
* Resolve a descriptor to a storage key.
|
|
695
|
-
*
|
|
696
|
-
* @param subjectDescriptor -
|
|
697
|
-
*/
|
|
698
|
-
public async getStorageKey(
|
|
699
|
-
subjectDescriptor: string
|
|
700
|
-
): Promise<Graph.GraphStorageKeyResult> {
|
|
701
|
-
|
|
702
|
-
return this.beginRequest<Graph.GraphStorageKeyResult>({
|
|
703
|
-
apiVersion: "7.2-preview.1",
|
|
704
|
-
routeTemplate: "_apis/Graph/StorageKeys/{subjectDescriptor}",
|
|
705
|
-
routeValues: {
|
|
706
|
-
subjectDescriptor: subjectDescriptor
|
|
707
|
-
}
|
|
708
|
-
});
|
|
709
|
-
}
|
|
710
|
-
|
|
711
|
-
/**
|
|
712
|
-
* Resolve descriptors to users, groups or scopes (Subjects) in a batch.
|
|
713
|
-
*
|
|
714
|
-
* @param subjectLookup - A list of descriptors that specifies a subset of subjects to retrieve. Each descriptor uniquely identifies the subject across all instance scopes, but only at a single point in time.
|
|
715
|
-
*/
|
|
716
|
-
public async lookupSubjects(
|
|
717
|
-
subjectLookup: Graph.GraphSubjectLookup
|
|
718
|
-
): Promise<{ [key: string] : Graph.GraphSubject; }> {
|
|
719
|
-
|
|
720
|
-
return this.beginRequest<{ [key: string] : Graph.GraphSubject; }>({
|
|
721
|
-
apiVersion: "7.2-preview.1",
|
|
722
|
-
method: "POST",
|
|
723
|
-
routeTemplate: "_apis/Graph/SubjectLookup",
|
|
724
|
-
body: subjectLookup
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* Search for Azure Devops users, or/and groups. Results will be returned in a batch with no more than 100 graph subjects.
|
|
730
|
-
*
|
|
731
|
-
* @param subjectQuery - The query that we'll be using to search includes the following: Query: the search term. The search will be prefix matching only. SubjectKind: "User" or "Group" can be specified, both or either ScopeDescriptor: Non-default scope can be specified, i.e. project scope descriptor
|
|
732
|
-
*/
|
|
733
|
-
public async querySubjects(
|
|
734
|
-
subjectQuery: Graph.GraphSubjectQuery
|
|
735
|
-
): Promise<Graph.GraphSubject[]> {
|
|
736
|
-
|
|
737
|
-
return this.beginRequest<Graph.GraphSubject[]>({
|
|
738
|
-
apiVersion: "7.2-preview.1",
|
|
739
|
-
method: "POST",
|
|
740
|
-
routeTemplate: "_apis/Graph/SubjectQuery",
|
|
741
|
-
body: subjectQuery
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
|
|
745
|
-
/**
|
|
746
|
-
* Resolve a descriptor to a user, group or scope.
|
|
747
|
-
*
|
|
748
|
-
* @param subjectDescriptor - The descriptor of the desired subject.
|
|
749
|
-
*/
|
|
750
|
-
public async getSubject(
|
|
751
|
-
subjectDescriptor: string
|
|
752
|
-
): Promise<Graph.GraphSubject> {
|
|
753
|
-
|
|
754
|
-
return this.beginRequest<Graph.GraphSubject>({
|
|
755
|
-
apiVersion: "7.2-preview.1",
|
|
756
|
-
routeTemplate: "_apis/Graph/Subjects/{subjectDescriptor}",
|
|
757
|
-
routeValues: {
|
|
758
|
-
subjectDescriptor: subjectDescriptor
|
|
759
|
-
}
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
/**
|
|
764
|
-
* Materialize an existing AAD or MSA user into the ADO account.
|
|
765
|
-
*
|
|
766
|
-
* @param creationContext - The subset of the full graph user used to uniquely find the graph subject in an external provider.
|
|
767
|
-
* @param groupDescriptors - A comma separated list of descriptors of groups you want the graph user to join
|
|
768
|
-
*/
|
|
769
|
-
public async createUser(
|
|
770
|
-
creationContext: Graph.GraphUserCreationContext,
|
|
771
|
-
groupDescriptors?: string[]
|
|
772
|
-
): Promise<Graph.GraphUser> {
|
|
773
|
-
|
|
774
|
-
const queryValues: any = {
|
|
775
|
-
groupDescriptors: groupDescriptors && groupDescriptors.join(",")
|
|
776
|
-
};
|
|
777
|
-
|
|
778
|
-
return this.beginRequest<Graph.GraphUser>({
|
|
779
|
-
apiVersion: "7.2-preview.1",
|
|
780
|
-
method: "POST",
|
|
781
|
-
routeTemplate: "_apis/Graph/Users/{userDescriptor}",
|
|
782
|
-
queryParams: queryValues,
|
|
783
|
-
body: creationContext
|
|
784
|
-
});
|
|
785
|
-
}
|
|
786
|
-
|
|
787
|
-
/**
|
|
788
|
-
* Disables a user.
|
|
789
|
-
*
|
|
790
|
-
* @param userDescriptor - The descriptor of the user to delete.
|
|
791
|
-
*/
|
|
792
|
-
public async deleteUser(
|
|
793
|
-
userDescriptor: string
|
|
794
|
-
): Promise<void> {
|
|
795
|
-
|
|
796
|
-
return this.beginRequest<void>({
|
|
797
|
-
apiVersion: "7.2-preview.1",
|
|
798
|
-
method: "DELETE",
|
|
799
|
-
routeTemplate: "_apis/Graph/Users/{userDescriptor}",
|
|
800
|
-
routeValues: {
|
|
801
|
-
userDescriptor: userDescriptor
|
|
802
|
-
}
|
|
803
|
-
});
|
|
804
|
-
}
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* Get a user by its descriptor.
|
|
808
|
-
*
|
|
809
|
-
* @param userDescriptor - The descriptor of the desired user.
|
|
810
|
-
*/
|
|
811
|
-
public async getUser(
|
|
812
|
-
userDescriptor: string
|
|
813
|
-
): Promise<Graph.GraphUser> {
|
|
814
|
-
|
|
815
|
-
return this.beginRequest<Graph.GraphUser>({
|
|
816
|
-
apiVersion: "7.2-preview.1",
|
|
817
|
-
routeTemplate: "_apis/Graph/Users/{userDescriptor}",
|
|
818
|
-
routeValues: {
|
|
819
|
-
userDescriptor: userDescriptor
|
|
820
|
-
}
|
|
821
|
-
});
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
/**
|
|
825
|
-
* Map an existing user to a different user.
|
|
826
|
-
*
|
|
827
|
-
* @param updateContext - The subset of the full graph user used to uniquely find the graph subject in an external provider.
|
|
828
|
-
* @param userDescriptor - The descriptor of the user to update
|
|
829
|
-
*/
|
|
830
|
-
public async updateUser(
|
|
831
|
-
updateContext: Graph.GraphUserUpdateContext,
|
|
832
|
-
userDescriptor: string
|
|
833
|
-
): Promise<Graph.GraphUser> {
|
|
834
|
-
|
|
835
|
-
return this.beginRequest<Graph.GraphUser>({
|
|
836
|
-
apiVersion: "7.2-preview.1",
|
|
837
|
-
method: "PATCH",
|
|
838
|
-
routeTemplate: "_apis/Graph/Users/{userDescriptor}",
|
|
839
|
-
routeValues: {
|
|
840
|
-
userDescriptor: userDescriptor
|
|
841
|
-
},
|
|
842
|
-
body: updateContext
|
|
843
|
-
});
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
}
|