azure-devops-extension-api 4.248.0 → 4.250.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/{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
|
@@ -1,2251 +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 Gallery from "../Gallery/Gallery";
|
|
11
|
-
|
|
12
|
-
export class GalleryRestClient extends RestClientBase {
|
|
13
|
-
constructor(options: IVssRestClientOptions) {
|
|
14
|
-
super(options);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
public static readonly RESOURCE_AREA_ID = "69d21c00-f135-441b-b5ce-3626378e0819";
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @param extensionId -
|
|
21
|
-
* @param accountName -
|
|
22
|
-
*/
|
|
23
|
-
public async shareExtensionById(
|
|
24
|
-
extensionId: string,
|
|
25
|
-
accountName: string
|
|
26
|
-
): Promise<void> {
|
|
27
|
-
|
|
28
|
-
return this.beginRequest<void>({
|
|
29
|
-
apiVersion: "7.2-preview.1",
|
|
30
|
-
method: "POST",
|
|
31
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
|
|
32
|
-
routeValues: {
|
|
33
|
-
extensionId: extensionId,
|
|
34
|
-
accountName: accountName
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @param extensionId -
|
|
41
|
-
* @param accountName -
|
|
42
|
-
*/
|
|
43
|
-
public async unshareExtensionById(
|
|
44
|
-
extensionId: string,
|
|
45
|
-
accountName: string
|
|
46
|
-
): Promise<void> {
|
|
47
|
-
|
|
48
|
-
return this.beginRequest<void>({
|
|
49
|
-
apiVersion: "7.2-preview.1",
|
|
50
|
-
method: "DELETE",
|
|
51
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}/accounts/{accountName}",
|
|
52
|
-
routeValues: {
|
|
53
|
-
extensionId: extensionId,
|
|
54
|
-
accountName: accountName
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* @param publisherName -
|
|
61
|
-
* @param extensionName -
|
|
62
|
-
* @param accountName -
|
|
63
|
-
*/
|
|
64
|
-
public async shareExtension(
|
|
65
|
-
publisherName: string,
|
|
66
|
-
extensionName: string,
|
|
67
|
-
accountName: string
|
|
68
|
-
): Promise<void> {
|
|
69
|
-
|
|
70
|
-
return this.beginRequest<void>({
|
|
71
|
-
apiVersion: "7.2-preview.1",
|
|
72
|
-
method: "POST",
|
|
73
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
|
|
74
|
-
routeValues: {
|
|
75
|
-
publisherName: publisherName,
|
|
76
|
-
extensionName: extensionName,
|
|
77
|
-
accountName: accountName
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @param publisherName -
|
|
84
|
-
* @param extensionName -
|
|
85
|
-
* @param accountName -
|
|
86
|
-
*/
|
|
87
|
-
public async unshareExtension(
|
|
88
|
-
publisherName: string,
|
|
89
|
-
extensionName: string,
|
|
90
|
-
accountName: string
|
|
91
|
-
): Promise<void> {
|
|
92
|
-
|
|
93
|
-
return this.beginRequest<void>({
|
|
94
|
-
apiVersion: "7.2-preview.1",
|
|
95
|
-
method: "DELETE",
|
|
96
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/accountsbyname/{accountName}",
|
|
97
|
-
routeValues: {
|
|
98
|
-
publisherName: publisherName,
|
|
99
|
-
extensionName: extensionName,
|
|
100
|
-
accountName: accountName
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* @param itemId -
|
|
107
|
-
* @param installationTarget -
|
|
108
|
-
* @param testCommerce -
|
|
109
|
-
* @param isFreeOrTrialInstall -
|
|
110
|
-
*/
|
|
111
|
-
public async getAcquisitionOptions(
|
|
112
|
-
itemId: string,
|
|
113
|
-
installationTarget: string,
|
|
114
|
-
testCommerce?: boolean,
|
|
115
|
-
isFreeOrTrialInstall?: boolean
|
|
116
|
-
): Promise<Gallery.AcquisitionOptions> {
|
|
117
|
-
|
|
118
|
-
const queryValues: any = {
|
|
119
|
-
installationTarget: installationTarget,
|
|
120
|
-
testCommerce: testCommerce,
|
|
121
|
-
isFreeOrTrialInstall: isFreeOrTrialInstall
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
return this.beginRequest<Gallery.AcquisitionOptions>({
|
|
125
|
-
apiVersion: "7.2-preview.1",
|
|
126
|
-
routeTemplate: "_apis/gallery/acquisitionoptions/{itemId}",
|
|
127
|
-
routeValues: {
|
|
128
|
-
itemId: itemId
|
|
129
|
-
},
|
|
130
|
-
queryParams: queryValues
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* @param acquisitionRequest -
|
|
136
|
-
*/
|
|
137
|
-
public async requestAcquisition(
|
|
138
|
-
acquisitionRequest: Gallery.ExtensionAcquisitionRequest
|
|
139
|
-
): Promise<Gallery.ExtensionAcquisitionRequest> {
|
|
140
|
-
|
|
141
|
-
return this.beginRequest<Gallery.ExtensionAcquisitionRequest>({
|
|
142
|
-
apiVersion: "7.2-preview.1",
|
|
143
|
-
method: "POST",
|
|
144
|
-
routeTemplate: "_apis/gallery/acquisitionrequests",
|
|
145
|
-
body: acquisitionRequest
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* @param publisherName -
|
|
151
|
-
* @param extensionName -
|
|
152
|
-
* @param version -
|
|
153
|
-
* @param assetType -
|
|
154
|
-
* @param accountToken -
|
|
155
|
-
* @param acceptDefault -
|
|
156
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
157
|
-
*/
|
|
158
|
-
public async getAssetByName(
|
|
159
|
-
publisherName: string,
|
|
160
|
-
extensionName: string,
|
|
161
|
-
version: string,
|
|
162
|
-
assetType: string,
|
|
163
|
-
accountToken?: string,
|
|
164
|
-
acceptDefault?: boolean,
|
|
165
|
-
accountTokenHeader?: String
|
|
166
|
-
): Promise<ArrayBuffer> {
|
|
167
|
-
|
|
168
|
-
const queryValues: any = {
|
|
169
|
-
accountToken: accountToken,
|
|
170
|
-
acceptDefault: acceptDefault
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
return this.beginRequest<ArrayBuffer>({
|
|
174
|
-
apiVersion: "7.2-preview.1",
|
|
175
|
-
httpResponseType: "application/octet-stream",
|
|
176
|
-
routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assetbyname/{*assetType}",
|
|
177
|
-
routeValues: {
|
|
178
|
-
publisherName: publisherName,
|
|
179
|
-
extensionName: extensionName,
|
|
180
|
-
version: version,
|
|
181
|
-
assetType: assetType
|
|
182
|
-
},
|
|
183
|
-
customHeaders: {
|
|
184
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
185
|
-
},
|
|
186
|
-
queryParams: queryValues
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/**
|
|
191
|
-
* @param extensionId -
|
|
192
|
-
* @param version -
|
|
193
|
-
* @param assetType -
|
|
194
|
-
* @param accountToken -
|
|
195
|
-
* @param acceptDefault -
|
|
196
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
197
|
-
*/
|
|
198
|
-
public async getAsset(
|
|
199
|
-
extensionId: string,
|
|
200
|
-
version: string,
|
|
201
|
-
assetType: string,
|
|
202
|
-
accountToken?: string,
|
|
203
|
-
acceptDefault?: boolean,
|
|
204
|
-
accountTokenHeader?: String
|
|
205
|
-
): Promise<ArrayBuffer> {
|
|
206
|
-
|
|
207
|
-
const queryValues: any = {
|
|
208
|
-
accountToken: accountToken,
|
|
209
|
-
acceptDefault: acceptDefault
|
|
210
|
-
};
|
|
211
|
-
|
|
212
|
-
return this.beginRequest<ArrayBuffer>({
|
|
213
|
-
apiVersion: "7.2-preview.1",
|
|
214
|
-
httpResponseType: "application/octet-stream",
|
|
215
|
-
routeTemplate: "_apis/public/gallery/extensions/{extensionId}/{version}/assets/{assetType}",
|
|
216
|
-
routeValues: {
|
|
217
|
-
extensionId: extensionId,
|
|
218
|
-
version: version,
|
|
219
|
-
assetType: assetType
|
|
220
|
-
},
|
|
221
|
-
customHeaders: {
|
|
222
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
223
|
-
},
|
|
224
|
-
queryParams: queryValues
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
/**
|
|
229
|
-
* @param publisherName -
|
|
230
|
-
* @param extensionName -
|
|
231
|
-
* @param version -
|
|
232
|
-
* @param assetType -
|
|
233
|
-
* @param accountToken -
|
|
234
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
235
|
-
*/
|
|
236
|
-
public async getAssetAuthenticated(
|
|
237
|
-
publisherName: string,
|
|
238
|
-
extensionName: string,
|
|
239
|
-
version: string,
|
|
240
|
-
assetType: string,
|
|
241
|
-
accountToken?: string,
|
|
242
|
-
accountTokenHeader?: String
|
|
243
|
-
): Promise<ArrayBuffer> {
|
|
244
|
-
|
|
245
|
-
const queryValues: any = {
|
|
246
|
-
accountToken: accountToken
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
return this.beginRequest<ArrayBuffer>({
|
|
250
|
-
apiVersion: "7.2-preview.1",
|
|
251
|
-
httpResponseType: "application/octet-stream",
|
|
252
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/assets/{*assetType}",
|
|
253
|
-
routeValues: {
|
|
254
|
-
publisherName: publisherName,
|
|
255
|
-
extensionName: extensionName,
|
|
256
|
-
version: version,
|
|
257
|
-
assetType: assetType
|
|
258
|
-
},
|
|
259
|
-
customHeaders: {
|
|
260
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
261
|
-
},
|
|
262
|
-
queryParams: queryValues
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* @param publisherName -
|
|
268
|
-
* @param azurePublisherId -
|
|
269
|
-
*/
|
|
270
|
-
public async associateAzurePublisher(
|
|
271
|
-
publisherName: string,
|
|
272
|
-
azurePublisherId: string
|
|
273
|
-
): Promise<Gallery.AzurePublisher> {
|
|
274
|
-
|
|
275
|
-
const queryValues: any = {
|
|
276
|
-
azurePublisherId: azurePublisherId
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
return this.beginRequest<Gallery.AzurePublisher>({
|
|
280
|
-
apiVersion: "7.2-preview.1",
|
|
281
|
-
method: "PUT",
|
|
282
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
|
|
283
|
-
routeValues: {
|
|
284
|
-
publisherName: publisherName
|
|
285
|
-
},
|
|
286
|
-
queryParams: queryValues
|
|
287
|
-
});
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
/**
|
|
291
|
-
* @param publisherName -
|
|
292
|
-
*/
|
|
293
|
-
public async queryAssociatedAzurePublisher(
|
|
294
|
-
publisherName: string
|
|
295
|
-
): Promise<Gallery.AzurePublisher> {
|
|
296
|
-
|
|
297
|
-
return this.beginRequest<Gallery.AzurePublisher>({
|
|
298
|
-
apiVersion: "7.2-preview.1",
|
|
299
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/azurepublisher",
|
|
300
|
-
routeValues: {
|
|
301
|
-
publisherName: publisherName
|
|
302
|
-
}
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
/**
|
|
307
|
-
* @param languages -
|
|
308
|
-
*/
|
|
309
|
-
public async getCategories(
|
|
310
|
-
languages?: string
|
|
311
|
-
): Promise<string[]> {
|
|
312
|
-
|
|
313
|
-
const queryValues: any = {
|
|
314
|
-
languages: languages
|
|
315
|
-
};
|
|
316
|
-
|
|
317
|
-
return this.beginRequest<string[]>({
|
|
318
|
-
apiVersion: "7.2-preview.1",
|
|
319
|
-
routeTemplate: "_apis/public/gallery/categories",
|
|
320
|
-
queryParams: queryValues
|
|
321
|
-
});
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
/**
|
|
325
|
-
* @param categoryName -
|
|
326
|
-
* @param languages -
|
|
327
|
-
* @param product -
|
|
328
|
-
*/
|
|
329
|
-
public async getCategoryDetails(
|
|
330
|
-
categoryName: string,
|
|
331
|
-
languages?: string,
|
|
332
|
-
product?: string
|
|
333
|
-
): Promise<Gallery.CategoriesResult> {
|
|
334
|
-
|
|
335
|
-
const queryValues: any = {
|
|
336
|
-
languages: languages,
|
|
337
|
-
product: product
|
|
338
|
-
};
|
|
339
|
-
|
|
340
|
-
return this.beginRequest<Gallery.CategoriesResult>({
|
|
341
|
-
apiVersion: "7.2-preview.1",
|
|
342
|
-
routeTemplate: "_apis/public/gallery/categories/{categoryName}",
|
|
343
|
-
routeValues: {
|
|
344
|
-
categoryName: categoryName
|
|
345
|
-
},
|
|
346
|
-
queryParams: queryValues
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* @param product -
|
|
352
|
-
* @param categoryId -
|
|
353
|
-
* @param lcid -
|
|
354
|
-
* @param source -
|
|
355
|
-
* @param productVersion -
|
|
356
|
-
* @param skus -
|
|
357
|
-
* @param subSkus -
|
|
358
|
-
* @param productArchitecture -
|
|
359
|
-
*/
|
|
360
|
-
public async getCategoryTree(
|
|
361
|
-
product: string,
|
|
362
|
-
categoryId: string,
|
|
363
|
-
lcid?: number,
|
|
364
|
-
source?: string,
|
|
365
|
-
productVersion?: string,
|
|
366
|
-
skus?: string,
|
|
367
|
-
subSkus?: string,
|
|
368
|
-
productArchitecture?: string
|
|
369
|
-
): Promise<Gallery.ProductCategory> {
|
|
370
|
-
|
|
371
|
-
const queryValues: any = {
|
|
372
|
-
lcid: lcid,
|
|
373
|
-
source: source,
|
|
374
|
-
productVersion: productVersion,
|
|
375
|
-
skus: skus,
|
|
376
|
-
subSkus: subSkus,
|
|
377
|
-
productArchitecture: productArchitecture
|
|
378
|
-
};
|
|
379
|
-
|
|
380
|
-
return this.beginRequest<Gallery.ProductCategory>({
|
|
381
|
-
apiVersion: "7.2-preview.1",
|
|
382
|
-
routeTemplate: "_apis/public/gallery/{product}/categories/{categoryId}",
|
|
383
|
-
routeValues: {
|
|
384
|
-
product: product,
|
|
385
|
-
categoryId: categoryId
|
|
386
|
-
},
|
|
387
|
-
queryParams: queryValues
|
|
388
|
-
});
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
/**
|
|
392
|
-
* @param product -
|
|
393
|
-
* @param lcid -
|
|
394
|
-
* @param source -
|
|
395
|
-
* @param productVersion -
|
|
396
|
-
* @param skus -
|
|
397
|
-
* @param subSkus -
|
|
398
|
-
*/
|
|
399
|
-
public async getRootCategories(
|
|
400
|
-
product: string,
|
|
401
|
-
lcid?: number,
|
|
402
|
-
source?: string,
|
|
403
|
-
productVersion?: string,
|
|
404
|
-
skus?: string,
|
|
405
|
-
subSkus?: string
|
|
406
|
-
): Promise<Gallery.ProductCategoriesResult> {
|
|
407
|
-
|
|
408
|
-
const queryValues: any = {
|
|
409
|
-
lcid: lcid,
|
|
410
|
-
source: source,
|
|
411
|
-
productVersion: productVersion,
|
|
412
|
-
skus: skus,
|
|
413
|
-
subSkus: subSkus
|
|
414
|
-
};
|
|
415
|
-
|
|
416
|
-
return this.beginRequest<Gallery.ProductCategoriesResult>({
|
|
417
|
-
apiVersion: "7.2-preview.1",
|
|
418
|
-
routeTemplate: "_apis/public/gallery/{product}/categories/root",
|
|
419
|
-
routeValues: {
|
|
420
|
-
product: product
|
|
421
|
-
},
|
|
422
|
-
queryParams: queryValues
|
|
423
|
-
});
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/**
|
|
427
|
-
* @param publisherName -
|
|
428
|
-
* @param extensionName -
|
|
429
|
-
* @param version -
|
|
430
|
-
*/
|
|
431
|
-
public async getCertificate(
|
|
432
|
-
publisherName: string,
|
|
433
|
-
extensionName: string,
|
|
434
|
-
version?: string
|
|
435
|
-
): Promise<ArrayBuffer> {
|
|
436
|
-
|
|
437
|
-
return this.beginRequest<ArrayBuffer>({
|
|
438
|
-
apiVersion: "7.2-preview.1",
|
|
439
|
-
httpResponseType: "application/octet-stream",
|
|
440
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/certificates/{version}",
|
|
441
|
-
routeValues: {
|
|
442
|
-
publisherName: publisherName,
|
|
443
|
-
extensionName: extensionName,
|
|
444
|
-
version: version
|
|
445
|
-
}
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* @param publisherName -
|
|
451
|
-
* @param extensionName -
|
|
452
|
-
*/
|
|
453
|
-
public async getContentVerificationLog(
|
|
454
|
-
publisherName: string,
|
|
455
|
-
extensionName: string
|
|
456
|
-
): Promise<ArrayBuffer> {
|
|
457
|
-
|
|
458
|
-
return this.beginRequest<ArrayBuffer>({
|
|
459
|
-
apiVersion: "7.2-preview.1",
|
|
460
|
-
httpResponseType: "application/octet-stream",
|
|
461
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/contentverificationlog",
|
|
462
|
-
routeValues: {
|
|
463
|
-
publisherName: publisherName,
|
|
464
|
-
extensionName: extensionName
|
|
465
|
-
}
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
/**
|
|
470
|
-
* @param customerSupportRequest -
|
|
471
|
-
*/
|
|
472
|
-
public async createSupportRequest(
|
|
473
|
-
customerSupportRequest: Gallery.CustomerSupportRequest
|
|
474
|
-
): Promise<void> {
|
|
475
|
-
|
|
476
|
-
return this.beginRequest<void>({
|
|
477
|
-
apiVersion: "7.2-preview.1",
|
|
478
|
-
method: "POST",
|
|
479
|
-
routeTemplate: "_apis/public/support",
|
|
480
|
-
body: customerSupportRequest
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* @param publisherName -
|
|
486
|
-
* @param extensionName -
|
|
487
|
-
*/
|
|
488
|
-
public async createDraftForEditExtension(
|
|
489
|
-
publisherName: string,
|
|
490
|
-
extensionName: string
|
|
491
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
492
|
-
|
|
493
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
494
|
-
apiVersion: "7.2-preview.1",
|
|
495
|
-
method: "POST",
|
|
496
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
|
|
497
|
-
routeValues: {
|
|
498
|
-
publisherName: publisherName,
|
|
499
|
-
extensionName: extensionName
|
|
500
|
-
}
|
|
501
|
-
});
|
|
502
|
-
}
|
|
503
|
-
|
|
504
|
-
/**
|
|
505
|
-
* @param draftPatch -
|
|
506
|
-
* @param publisherName -
|
|
507
|
-
* @param extensionName -
|
|
508
|
-
* @param draftId -
|
|
509
|
-
*/
|
|
510
|
-
public async performEditExtensionDraftOperation(
|
|
511
|
-
draftPatch: Gallery.ExtensionDraftPatch,
|
|
512
|
-
publisherName: string,
|
|
513
|
-
extensionName: string,
|
|
514
|
-
draftId: string
|
|
515
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
516
|
-
|
|
517
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
518
|
-
apiVersion: "7.2-preview.1",
|
|
519
|
-
method: "PATCH",
|
|
520
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
|
|
521
|
-
routeValues: {
|
|
522
|
-
publisherName: publisherName,
|
|
523
|
-
extensionName: extensionName,
|
|
524
|
-
draftId: draftId
|
|
525
|
-
},
|
|
526
|
-
body: draftPatch
|
|
527
|
-
});
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
/**
|
|
531
|
-
* @param content - Content to upload
|
|
532
|
-
* @param publisherName -
|
|
533
|
-
* @param extensionName -
|
|
534
|
-
* @param draftId -
|
|
535
|
-
* @param fileName - Header to pass the filename of the uploaded data
|
|
536
|
-
*/
|
|
537
|
-
public async updatePayloadInDraftForEditExtension(
|
|
538
|
-
content: any,
|
|
539
|
-
publisherName: string,
|
|
540
|
-
extensionName: string,
|
|
541
|
-
draftId: string,
|
|
542
|
-
fileName?: String
|
|
543
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
544
|
-
|
|
545
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
546
|
-
apiVersion: "7.2-preview.1",
|
|
547
|
-
method: "PUT",
|
|
548
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}",
|
|
549
|
-
routeValues: {
|
|
550
|
-
publisherName: publisherName,
|
|
551
|
-
extensionName: extensionName,
|
|
552
|
-
draftId: draftId
|
|
553
|
-
},
|
|
554
|
-
customHeaders: {
|
|
555
|
-
"Content-Type": "application/octet-stream",
|
|
556
|
-
"X-Market-UploadFileName": fileName,
|
|
557
|
-
},
|
|
558
|
-
body: content,
|
|
559
|
-
isRawData: true
|
|
560
|
-
});
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
/**
|
|
564
|
-
* @param content - Content to upload
|
|
565
|
-
* @param publisherName -
|
|
566
|
-
* @param extensionName -
|
|
567
|
-
* @param draftId -
|
|
568
|
-
* @param assetType -
|
|
569
|
-
*/
|
|
570
|
-
public async addAssetForEditExtensionDraft(
|
|
571
|
-
content: string,
|
|
572
|
-
publisherName: string,
|
|
573
|
-
extensionName: string,
|
|
574
|
-
draftId: string,
|
|
575
|
-
assetType: string
|
|
576
|
-
): Promise<Gallery.ExtensionDraftAsset> {
|
|
577
|
-
|
|
578
|
-
return this.beginRequest<Gallery.ExtensionDraftAsset>({
|
|
579
|
-
apiVersion: "7.2-preview.1",
|
|
580
|
-
method: "PUT",
|
|
581
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/drafts/{draftId}/assets/{*assetType}",
|
|
582
|
-
routeValues: {
|
|
583
|
-
publisherName: publisherName,
|
|
584
|
-
extensionName: extensionName,
|
|
585
|
-
draftId: draftId,
|
|
586
|
-
assetType: assetType
|
|
587
|
-
},
|
|
588
|
-
customHeaders: {
|
|
589
|
-
"Content-Type": "application/octet-stream",
|
|
590
|
-
},
|
|
591
|
-
body: content,
|
|
592
|
-
isRawData: true
|
|
593
|
-
});
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
/**
|
|
597
|
-
* @param content - Content to upload
|
|
598
|
-
* @param publisherName -
|
|
599
|
-
* @param product - Header to pass the product type of the payload file
|
|
600
|
-
* @param fileName - Header to pass the filename of the uploaded data
|
|
601
|
-
*/
|
|
602
|
-
public async createDraftForNewExtension(
|
|
603
|
-
content: any,
|
|
604
|
-
publisherName: string,
|
|
605
|
-
product: String,
|
|
606
|
-
fileName?: String
|
|
607
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
608
|
-
|
|
609
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
610
|
-
apiVersion: "7.2-preview.1",
|
|
611
|
-
method: "POST",
|
|
612
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
|
|
613
|
-
routeValues: {
|
|
614
|
-
publisherName: publisherName
|
|
615
|
-
},
|
|
616
|
-
customHeaders: {
|
|
617
|
-
"Content-Type": "application/octet-stream",
|
|
618
|
-
"X-Market-UploadFileProduct": product,
|
|
619
|
-
"X-Market-UploadFileName": fileName,
|
|
620
|
-
},
|
|
621
|
-
body: content,
|
|
622
|
-
isRawData: true
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* @param draftPatch -
|
|
628
|
-
* @param publisherName -
|
|
629
|
-
* @param draftId -
|
|
630
|
-
*/
|
|
631
|
-
public async performNewExtensionDraftOperation(
|
|
632
|
-
draftPatch: Gallery.ExtensionDraftPatch,
|
|
633
|
-
publisherName: string,
|
|
634
|
-
draftId: string
|
|
635
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
636
|
-
|
|
637
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
638
|
-
apiVersion: "7.2-preview.1",
|
|
639
|
-
method: "PATCH",
|
|
640
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
|
|
641
|
-
routeValues: {
|
|
642
|
-
publisherName: publisherName,
|
|
643
|
-
draftId: draftId
|
|
644
|
-
},
|
|
645
|
-
body: draftPatch
|
|
646
|
-
});
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
/**
|
|
650
|
-
* @param content - Content to upload
|
|
651
|
-
* @param publisherName -
|
|
652
|
-
* @param draftId -
|
|
653
|
-
* @param fileName - Header to pass the filename of the uploaded data
|
|
654
|
-
*/
|
|
655
|
-
public async updatePayloadInDraftForNewExtension(
|
|
656
|
-
content: any,
|
|
657
|
-
publisherName: string,
|
|
658
|
-
draftId: string,
|
|
659
|
-
fileName?: String
|
|
660
|
-
): Promise<Gallery.ExtensionDraft> {
|
|
661
|
-
|
|
662
|
-
return this.beginRequest<Gallery.ExtensionDraft>({
|
|
663
|
-
apiVersion: "7.2-preview.1",
|
|
664
|
-
method: "PUT",
|
|
665
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}",
|
|
666
|
-
routeValues: {
|
|
667
|
-
publisherName: publisherName,
|
|
668
|
-
draftId: draftId
|
|
669
|
-
},
|
|
670
|
-
customHeaders: {
|
|
671
|
-
"Content-Type": "application/octet-stream",
|
|
672
|
-
"X-Market-UploadFileName": fileName,
|
|
673
|
-
},
|
|
674
|
-
body: content,
|
|
675
|
-
isRawData: true
|
|
676
|
-
});
|
|
677
|
-
}
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* @param content - Content to upload
|
|
681
|
-
* @param publisherName -
|
|
682
|
-
* @param draftId -
|
|
683
|
-
* @param assetType -
|
|
684
|
-
*/
|
|
685
|
-
public async addAssetForNewExtensionDraft(
|
|
686
|
-
content: string,
|
|
687
|
-
publisherName: string,
|
|
688
|
-
draftId: string,
|
|
689
|
-
assetType: string
|
|
690
|
-
): Promise<Gallery.ExtensionDraftAsset> {
|
|
691
|
-
|
|
692
|
-
return this.beginRequest<Gallery.ExtensionDraftAsset>({
|
|
693
|
-
apiVersion: "7.2-preview.1",
|
|
694
|
-
method: "PUT",
|
|
695
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
|
|
696
|
-
routeValues: {
|
|
697
|
-
publisherName: publisherName,
|
|
698
|
-
draftId: draftId,
|
|
699
|
-
assetType: assetType
|
|
700
|
-
},
|
|
701
|
-
customHeaders: {
|
|
702
|
-
"Content-Type": "application/octet-stream",
|
|
703
|
-
},
|
|
704
|
-
body: content,
|
|
705
|
-
isRawData: true
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
/**
|
|
710
|
-
* @param publisherName -
|
|
711
|
-
* @param draftId -
|
|
712
|
-
* @param assetType -
|
|
713
|
-
* @param extensionName -
|
|
714
|
-
*/
|
|
715
|
-
public async getAssetFromEditExtensionDraft(
|
|
716
|
-
publisherName: string,
|
|
717
|
-
draftId: string,
|
|
718
|
-
assetType: string,
|
|
719
|
-
extensionName: string
|
|
720
|
-
): Promise<ArrayBuffer> {
|
|
721
|
-
|
|
722
|
-
const queryValues: any = {
|
|
723
|
-
extensionName: extensionName
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
return this.beginRequest<ArrayBuffer>({
|
|
727
|
-
apiVersion: "7.2-preview.1",
|
|
728
|
-
httpResponseType: "application/octet-stream",
|
|
729
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
|
|
730
|
-
routeValues: {
|
|
731
|
-
publisherName: publisherName,
|
|
732
|
-
draftId: draftId,
|
|
733
|
-
assetType: assetType
|
|
734
|
-
},
|
|
735
|
-
queryParams: queryValues
|
|
736
|
-
});
|
|
737
|
-
}
|
|
738
|
-
|
|
739
|
-
/**
|
|
740
|
-
* @param publisherName -
|
|
741
|
-
* @param draftId -
|
|
742
|
-
* @param assetType -
|
|
743
|
-
*/
|
|
744
|
-
public async getAssetFromNewExtensionDraft(
|
|
745
|
-
publisherName: string,
|
|
746
|
-
draftId: string,
|
|
747
|
-
assetType: string
|
|
748
|
-
): Promise<ArrayBuffer> {
|
|
749
|
-
|
|
750
|
-
return this.beginRequest<ArrayBuffer>({
|
|
751
|
-
apiVersion: "7.2-preview.1",
|
|
752
|
-
httpResponseType: "application/octet-stream",
|
|
753
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/drafts/{draftId}/assets/{*assetType}",
|
|
754
|
-
routeValues: {
|
|
755
|
-
publisherName: publisherName,
|
|
756
|
-
draftId: draftId,
|
|
757
|
-
assetType: assetType
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
/**
|
|
763
|
-
* Get install/uninstall events of an extension. If both count and afterDate parameters are specified, count takes precedence.
|
|
764
|
-
*
|
|
765
|
-
* @param publisherName - Name of the publisher
|
|
766
|
-
* @param extensionName - Name of the extension
|
|
767
|
-
* @param count - Count of events to fetch, applies to each event type.
|
|
768
|
-
* @param afterDate - Fetch events that occurred on or after this date
|
|
769
|
-
* @param include - Filter options. Supported values: install, uninstall, review, acquisition, sales. Default is to fetch all types of events
|
|
770
|
-
* @param includeProperty - Event properties to include. Currently only 'lastContactDetails' is supported for uninstall events
|
|
771
|
-
*/
|
|
772
|
-
public async getExtensionEvents(
|
|
773
|
-
publisherName: string,
|
|
774
|
-
extensionName: string,
|
|
775
|
-
count?: number,
|
|
776
|
-
afterDate?: Date,
|
|
777
|
-
include?: string,
|
|
778
|
-
includeProperty?: string
|
|
779
|
-
): Promise<Gallery.ExtensionEvents> {
|
|
780
|
-
|
|
781
|
-
const queryValues: any = {
|
|
782
|
-
count: count,
|
|
783
|
-
afterDate: afterDate,
|
|
784
|
-
include: include,
|
|
785
|
-
includeProperty: includeProperty
|
|
786
|
-
};
|
|
787
|
-
|
|
788
|
-
return this.beginRequest<Gallery.ExtensionEvents>({
|
|
789
|
-
apiVersion: "7.2-preview.1",
|
|
790
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/events",
|
|
791
|
-
routeValues: {
|
|
792
|
-
publisherName: publisherName,
|
|
793
|
-
extensionName: extensionName
|
|
794
|
-
},
|
|
795
|
-
queryParams: queryValues
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
|
|
799
|
-
/**
|
|
800
|
-
* API endpoint to publish extension install/uninstall events. This is meant to be invoked by EMS only for sending us data related to install/uninstall of an extension.
|
|
801
|
-
*
|
|
802
|
-
* @param extensionEvents -
|
|
803
|
-
*/
|
|
804
|
-
public async publishExtensionEvents(
|
|
805
|
-
extensionEvents: Gallery.ExtensionEvents[]
|
|
806
|
-
): Promise<void> {
|
|
807
|
-
|
|
808
|
-
return this.beginRequest<void>({
|
|
809
|
-
apiVersion: "7.2-preview.1",
|
|
810
|
-
method: "POST",
|
|
811
|
-
routeTemplate: "_apis/gallery/events",
|
|
812
|
-
body: extensionEvents
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
|
|
816
|
-
/**
|
|
817
|
-
* @param extensionQuery -
|
|
818
|
-
* @param accountToken -
|
|
819
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
820
|
-
*/
|
|
821
|
-
public async queryExtensions(
|
|
822
|
-
extensionQuery: Gallery.ExtensionQuery,
|
|
823
|
-
accountToken?: string,
|
|
824
|
-
accountTokenHeader?: String
|
|
825
|
-
): Promise<Gallery.ExtensionQueryResult> {
|
|
826
|
-
|
|
827
|
-
const queryValues: any = {
|
|
828
|
-
accountToken: accountToken
|
|
829
|
-
};
|
|
830
|
-
|
|
831
|
-
return this.beginRequest<Gallery.ExtensionQueryResult>({
|
|
832
|
-
apiVersion: "7.2-preview.1",
|
|
833
|
-
method: "POST",
|
|
834
|
-
routeTemplate: "_apis/public/gallery/extensionquery",
|
|
835
|
-
customHeaders: {
|
|
836
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
837
|
-
},
|
|
838
|
-
queryParams: queryValues,
|
|
839
|
-
body: extensionQuery
|
|
840
|
-
});
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
/**
|
|
844
|
-
* @param content - Content to upload
|
|
845
|
-
* @param extensionType -
|
|
846
|
-
* @param reCaptchaToken -
|
|
847
|
-
*/
|
|
848
|
-
public async createExtension(
|
|
849
|
-
content: any,
|
|
850
|
-
extensionType?: string,
|
|
851
|
-
reCaptchaToken?: string
|
|
852
|
-
): Promise<Gallery.PublishedExtension> {
|
|
853
|
-
|
|
854
|
-
const queryValues: any = {
|
|
855
|
-
extensionType: extensionType,
|
|
856
|
-
reCaptchaToken: reCaptchaToken
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
860
|
-
apiVersion: "7.2-preview.2",
|
|
861
|
-
method: "POST",
|
|
862
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}",
|
|
863
|
-
customHeaders: {
|
|
864
|
-
"Content-Type": "application/octet-stream",
|
|
865
|
-
},
|
|
866
|
-
queryParams: queryValues,
|
|
867
|
-
body: content,
|
|
868
|
-
isRawData: true
|
|
869
|
-
});
|
|
870
|
-
}
|
|
871
|
-
|
|
872
|
-
/**
|
|
873
|
-
* @param extensionId -
|
|
874
|
-
* @param version -
|
|
875
|
-
*/
|
|
876
|
-
public async deleteExtensionById(
|
|
877
|
-
extensionId: string,
|
|
878
|
-
version?: string
|
|
879
|
-
): Promise<void> {
|
|
880
|
-
|
|
881
|
-
const queryValues: any = {
|
|
882
|
-
version: version
|
|
883
|
-
};
|
|
884
|
-
|
|
885
|
-
return this.beginRequest<void>({
|
|
886
|
-
apiVersion: "7.2-preview.2",
|
|
887
|
-
method: "DELETE",
|
|
888
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}",
|
|
889
|
-
routeValues: {
|
|
890
|
-
extensionId: extensionId
|
|
891
|
-
},
|
|
892
|
-
queryParams: queryValues
|
|
893
|
-
});
|
|
894
|
-
}
|
|
895
|
-
|
|
896
|
-
/**
|
|
897
|
-
* @param extensionId -
|
|
898
|
-
* @param version -
|
|
899
|
-
* @param flags -
|
|
900
|
-
*/
|
|
901
|
-
public async getExtensionById(
|
|
902
|
-
extensionId: string,
|
|
903
|
-
version?: string,
|
|
904
|
-
flags?: Gallery.ExtensionQueryFlags
|
|
905
|
-
): Promise<Gallery.PublishedExtension> {
|
|
906
|
-
|
|
907
|
-
const queryValues: any = {
|
|
908
|
-
version: version,
|
|
909
|
-
flags: flags
|
|
910
|
-
};
|
|
911
|
-
|
|
912
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
913
|
-
apiVersion: "7.2-preview.2",
|
|
914
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}",
|
|
915
|
-
routeValues: {
|
|
916
|
-
extensionId: extensionId
|
|
917
|
-
},
|
|
918
|
-
queryParams: queryValues
|
|
919
|
-
});
|
|
920
|
-
}
|
|
921
|
-
|
|
922
|
-
/**
|
|
923
|
-
* @param extensionId -
|
|
924
|
-
* @param reCaptchaToken -
|
|
925
|
-
*/
|
|
926
|
-
public async updateExtensionById(
|
|
927
|
-
extensionId: string,
|
|
928
|
-
reCaptchaToken?: string
|
|
929
|
-
): Promise<Gallery.PublishedExtension> {
|
|
930
|
-
|
|
931
|
-
const queryValues: any = {
|
|
932
|
-
reCaptchaToken: reCaptchaToken
|
|
933
|
-
};
|
|
934
|
-
|
|
935
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
936
|
-
apiVersion: "7.2-preview.2",
|
|
937
|
-
method: "PUT",
|
|
938
|
-
routeTemplate: "_apis/gallery/extensions/{extensionId}",
|
|
939
|
-
routeValues: {
|
|
940
|
-
extensionId: extensionId
|
|
941
|
-
},
|
|
942
|
-
queryParams: queryValues
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
/**
|
|
947
|
-
* @param content - Content to upload
|
|
948
|
-
* @param publisherName -
|
|
949
|
-
* @param extensionType -
|
|
950
|
-
* @param reCaptchaToken -
|
|
951
|
-
*/
|
|
952
|
-
public async createExtensionWithPublisher(
|
|
953
|
-
content: any,
|
|
954
|
-
publisherName: string,
|
|
955
|
-
extensionType?: string,
|
|
956
|
-
reCaptchaToken?: string
|
|
957
|
-
): Promise<Gallery.PublishedExtension> {
|
|
958
|
-
|
|
959
|
-
const queryValues: any = {
|
|
960
|
-
extensionType: extensionType,
|
|
961
|
-
reCaptchaToken: reCaptchaToken
|
|
962
|
-
};
|
|
963
|
-
|
|
964
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
965
|
-
apiVersion: "7.2-preview.2",
|
|
966
|
-
method: "POST",
|
|
967
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
|
|
968
|
-
routeValues: {
|
|
969
|
-
publisherName: publisherName
|
|
970
|
-
},
|
|
971
|
-
customHeaders: {
|
|
972
|
-
"Content-Type": "application/octet-stream",
|
|
973
|
-
},
|
|
974
|
-
queryParams: queryValues,
|
|
975
|
-
body: content,
|
|
976
|
-
isRawData: true
|
|
977
|
-
});
|
|
978
|
-
}
|
|
979
|
-
|
|
980
|
-
/**
|
|
981
|
-
* @param publisherName -
|
|
982
|
-
* @param extensionName -
|
|
983
|
-
* @param version -
|
|
984
|
-
*/
|
|
985
|
-
public async deleteExtension(
|
|
986
|
-
publisherName: string,
|
|
987
|
-
extensionName: string,
|
|
988
|
-
version?: string
|
|
989
|
-
): Promise<void> {
|
|
990
|
-
|
|
991
|
-
const queryValues: any = {
|
|
992
|
-
version: version
|
|
993
|
-
};
|
|
994
|
-
|
|
995
|
-
return this.beginRequest<void>({
|
|
996
|
-
apiVersion: "7.2-preview.2",
|
|
997
|
-
method: "DELETE",
|
|
998
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
|
|
999
|
-
routeValues: {
|
|
1000
|
-
publisherName: publisherName,
|
|
1001
|
-
extensionName: extensionName
|
|
1002
|
-
},
|
|
1003
|
-
queryParams: queryValues
|
|
1004
|
-
});
|
|
1005
|
-
}
|
|
1006
|
-
|
|
1007
|
-
/**
|
|
1008
|
-
* @param publisherName -
|
|
1009
|
-
* @param extensionName -
|
|
1010
|
-
* @param version -
|
|
1011
|
-
* @param flags -
|
|
1012
|
-
* @param accountToken -
|
|
1013
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
1014
|
-
*/
|
|
1015
|
-
public async getExtension(
|
|
1016
|
-
publisherName: string,
|
|
1017
|
-
extensionName: string,
|
|
1018
|
-
version?: string,
|
|
1019
|
-
flags?: Gallery.ExtensionQueryFlags,
|
|
1020
|
-
accountToken?: string,
|
|
1021
|
-
accountTokenHeader?: String
|
|
1022
|
-
): Promise<Gallery.PublishedExtension> {
|
|
1023
|
-
|
|
1024
|
-
const queryValues: any = {
|
|
1025
|
-
version: version,
|
|
1026
|
-
flags: flags,
|
|
1027
|
-
accountToken: accountToken
|
|
1028
|
-
};
|
|
1029
|
-
|
|
1030
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
1031
|
-
apiVersion: "7.2-preview.2",
|
|
1032
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
|
|
1033
|
-
routeValues: {
|
|
1034
|
-
publisherName: publisherName,
|
|
1035
|
-
extensionName: extensionName
|
|
1036
|
-
},
|
|
1037
|
-
customHeaders: {
|
|
1038
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
1039
|
-
},
|
|
1040
|
-
queryParams: queryValues
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
|
|
1044
|
-
/**
|
|
1045
|
-
* REST endpoint to update an extension.
|
|
1046
|
-
*
|
|
1047
|
-
* @param content - Content to upload
|
|
1048
|
-
* @param publisherName - Name of the publisher
|
|
1049
|
-
* @param extensionName - Name of the extension
|
|
1050
|
-
* @param extensionType -
|
|
1051
|
-
* @param reCaptchaToken -
|
|
1052
|
-
* @param bypassScopeCheck - This parameter decides if the scope change check needs to be invoked or not
|
|
1053
|
-
*/
|
|
1054
|
-
public async updateExtension(
|
|
1055
|
-
content: any,
|
|
1056
|
-
publisherName: string,
|
|
1057
|
-
extensionName: string,
|
|
1058
|
-
extensionType?: string,
|
|
1059
|
-
reCaptchaToken?: string,
|
|
1060
|
-
bypassScopeCheck?: boolean
|
|
1061
|
-
): Promise<Gallery.PublishedExtension> {
|
|
1062
|
-
|
|
1063
|
-
const queryValues: any = {
|
|
1064
|
-
extensionType: extensionType,
|
|
1065
|
-
reCaptchaToken: reCaptchaToken,
|
|
1066
|
-
bypassScopeCheck: bypassScopeCheck
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
1070
|
-
apiVersion: "7.2-preview.2",
|
|
1071
|
-
method: "PUT",
|
|
1072
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
|
|
1073
|
-
routeValues: {
|
|
1074
|
-
publisherName: publisherName,
|
|
1075
|
-
extensionName: extensionName
|
|
1076
|
-
},
|
|
1077
|
-
customHeaders: {
|
|
1078
|
-
"Content-Type": "application/octet-stream",
|
|
1079
|
-
},
|
|
1080
|
-
queryParams: queryValues,
|
|
1081
|
-
body: content,
|
|
1082
|
-
isRawData: true
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
|
|
1086
|
-
/**
|
|
1087
|
-
* @param publisherName -
|
|
1088
|
-
* @param extensionName -
|
|
1089
|
-
* @param flags -
|
|
1090
|
-
*/
|
|
1091
|
-
public async updateExtensionProperties(
|
|
1092
|
-
publisherName: string,
|
|
1093
|
-
extensionName: string,
|
|
1094
|
-
flags: Gallery.PublishedExtensionFlags
|
|
1095
|
-
): Promise<Gallery.PublishedExtension> {
|
|
1096
|
-
|
|
1097
|
-
const queryValues: any = {
|
|
1098
|
-
flags: flags
|
|
1099
|
-
};
|
|
1100
|
-
|
|
1101
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
1102
|
-
apiVersion: "7.2-preview.2",
|
|
1103
|
-
method: "PATCH",
|
|
1104
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}",
|
|
1105
|
-
routeValues: {
|
|
1106
|
-
publisherName: publisherName,
|
|
1107
|
-
extensionName: extensionName
|
|
1108
|
-
},
|
|
1109
|
-
queryParams: queryValues
|
|
1110
|
-
});
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
/**
|
|
1114
|
-
* @param publisherName -
|
|
1115
|
-
* @param extensionName -
|
|
1116
|
-
* @param hostType -
|
|
1117
|
-
* @param hostName -
|
|
1118
|
-
*/
|
|
1119
|
-
public async shareExtensionWithHost(
|
|
1120
|
-
publisherName: string,
|
|
1121
|
-
extensionName: string,
|
|
1122
|
-
hostType: string,
|
|
1123
|
-
hostName: string
|
|
1124
|
-
): Promise<void> {
|
|
1125
|
-
|
|
1126
|
-
return this.beginRequest<void>({
|
|
1127
|
-
apiVersion: "7.2-preview.1",
|
|
1128
|
-
method: "POST",
|
|
1129
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
|
|
1130
|
-
routeValues: {
|
|
1131
|
-
publisherName: publisherName,
|
|
1132
|
-
extensionName: extensionName,
|
|
1133
|
-
hostType: hostType,
|
|
1134
|
-
hostName: hostName
|
|
1135
|
-
}
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* @param publisherName -
|
|
1141
|
-
* @param extensionName -
|
|
1142
|
-
* @param hostType -
|
|
1143
|
-
* @param hostName -
|
|
1144
|
-
*/
|
|
1145
|
-
public async unshareExtensionWithHost(
|
|
1146
|
-
publisherName: string,
|
|
1147
|
-
extensionName: string,
|
|
1148
|
-
hostType: string,
|
|
1149
|
-
hostName: string
|
|
1150
|
-
): Promise<void> {
|
|
1151
|
-
|
|
1152
|
-
return this.beginRequest<void>({
|
|
1153
|
-
apiVersion: "7.2-preview.1",
|
|
1154
|
-
method: "DELETE",
|
|
1155
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/extensionshare/{hostType}/{hostName}",
|
|
1156
|
-
routeValues: {
|
|
1157
|
-
publisherName: publisherName,
|
|
1158
|
-
extensionName: extensionName,
|
|
1159
|
-
hostType: hostType,
|
|
1160
|
-
hostName: hostName
|
|
1161
|
-
}
|
|
1162
|
-
});
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
/**
|
|
1166
|
-
* Rest end point to validate if an Azure publisher owns an extension for 3rd party commerce scenario. Azure only supports POST operations and the above signature is not typical of the REST operations. http://sharepoint/sites/AzureUX/_layouts/15/WopiFrame2.aspx?sourcedoc=\{A793D31E-6DC6-4174-8FA3-DE3F82B51642\}&file=Data%20Market%20Partner%20integration%20with%20Marketplace%20service.docx&action=default
|
|
1167
|
-
*
|
|
1168
|
-
* @param azureRestApiRequestModel - All the parameters are sent in the request body
|
|
1169
|
-
*/
|
|
1170
|
-
public async extensionValidator(
|
|
1171
|
-
azureRestApiRequestModel: Gallery.AzureRestApiRequestModel
|
|
1172
|
-
): Promise<void> {
|
|
1173
|
-
|
|
1174
|
-
return this.beginRequest<void>({
|
|
1175
|
-
apiVersion: "7.2-preview.1",
|
|
1176
|
-
method: "POST",
|
|
1177
|
-
routeTemplate: "_apis/gallery/extensionValidator",
|
|
1178
|
-
body: azureRestApiRequestModel
|
|
1179
|
-
});
|
|
1180
|
-
}
|
|
1181
|
-
|
|
1182
|
-
/**
|
|
1183
|
-
* Send Notification
|
|
1184
|
-
*
|
|
1185
|
-
* @param notificationData - Denoting the data needed to send notification
|
|
1186
|
-
*/
|
|
1187
|
-
public async sendNotifications(
|
|
1188
|
-
notificationData: Gallery.NotificationsData
|
|
1189
|
-
): Promise<void> {
|
|
1190
|
-
|
|
1191
|
-
return this.beginRequest<void>({
|
|
1192
|
-
apiVersion: "7.2-preview.1",
|
|
1193
|
-
method: "POST",
|
|
1194
|
-
routeTemplate: "_apis/gallery/notifications",
|
|
1195
|
-
body: notificationData
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
/**
|
|
1200
|
-
* This endpoint gets hit when you download a VSTS extension from the Web UI
|
|
1201
|
-
*
|
|
1202
|
-
* @param publisherName -
|
|
1203
|
-
* @param extensionName -
|
|
1204
|
-
* @param version -
|
|
1205
|
-
* @param accountToken -
|
|
1206
|
-
* @param acceptDefault -
|
|
1207
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
1208
|
-
*/
|
|
1209
|
-
public async getPackage(
|
|
1210
|
-
publisherName: string,
|
|
1211
|
-
extensionName: string,
|
|
1212
|
-
version: string,
|
|
1213
|
-
accountToken?: string,
|
|
1214
|
-
acceptDefault?: boolean,
|
|
1215
|
-
accountTokenHeader?: String
|
|
1216
|
-
): Promise<ArrayBuffer> {
|
|
1217
|
-
|
|
1218
|
-
const queryValues: any = {
|
|
1219
|
-
accountToken: accountToken,
|
|
1220
|
-
acceptDefault: acceptDefault
|
|
1221
|
-
};
|
|
1222
|
-
|
|
1223
|
-
return this.beginRequest<ArrayBuffer>({
|
|
1224
|
-
apiVersion: "7.2-preview.1",
|
|
1225
|
-
httpResponseType: "application/octet-stream",
|
|
1226
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/package",
|
|
1227
|
-
routeValues: {
|
|
1228
|
-
publisherName: publisherName,
|
|
1229
|
-
extensionName: extensionName,
|
|
1230
|
-
version: version
|
|
1231
|
-
},
|
|
1232
|
-
customHeaders: {
|
|
1233
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
1234
|
-
},
|
|
1235
|
-
queryParams: queryValues
|
|
1236
|
-
});
|
|
1237
|
-
}
|
|
1238
|
-
|
|
1239
|
-
/**
|
|
1240
|
-
* @param publisherName -
|
|
1241
|
-
* @param extensionName -
|
|
1242
|
-
* @param version -
|
|
1243
|
-
* @param assetType -
|
|
1244
|
-
* @param assetToken -
|
|
1245
|
-
* @param accountToken -
|
|
1246
|
-
* @param acceptDefault -
|
|
1247
|
-
* @param accountTokenHeader - Header to pass the account token
|
|
1248
|
-
*/
|
|
1249
|
-
public async getAssetWithToken(
|
|
1250
|
-
publisherName: string,
|
|
1251
|
-
extensionName: string,
|
|
1252
|
-
version: string,
|
|
1253
|
-
assetType: string,
|
|
1254
|
-
assetToken?: string,
|
|
1255
|
-
accountToken?: string,
|
|
1256
|
-
acceptDefault?: boolean,
|
|
1257
|
-
accountTokenHeader?: String
|
|
1258
|
-
): Promise<ArrayBuffer> {
|
|
1259
|
-
|
|
1260
|
-
const queryValues: any = {
|
|
1261
|
-
accountToken: accountToken,
|
|
1262
|
-
acceptDefault: acceptDefault
|
|
1263
|
-
};
|
|
1264
|
-
|
|
1265
|
-
return this.beginRequest<ArrayBuffer>({
|
|
1266
|
-
apiVersion: "7.2-preview.1",
|
|
1267
|
-
httpResponseType: "application/octet-stream",
|
|
1268
|
-
routeTemplate: "_apis/public/gallery/publisher/{publisherName}/extension/{extensionName}/{version}/privateasset/{assetToken}/{*assetType}",
|
|
1269
|
-
routeValues: {
|
|
1270
|
-
publisherName: publisherName,
|
|
1271
|
-
extensionName: extensionName,
|
|
1272
|
-
version: version,
|
|
1273
|
-
assetType: assetType,
|
|
1274
|
-
assetToken: assetToken
|
|
1275
|
-
},
|
|
1276
|
-
customHeaders: {
|
|
1277
|
-
"X-Market-AccountToken": accountTokenHeader,
|
|
1278
|
-
},
|
|
1279
|
-
queryParams: queryValues
|
|
1280
|
-
});
|
|
1281
|
-
}
|
|
1282
|
-
|
|
1283
|
-
/**
|
|
1284
|
-
* Delete publisher asset like logo
|
|
1285
|
-
*
|
|
1286
|
-
* @param publisherName - Internal name of the publisher
|
|
1287
|
-
* @param assetType - Type of asset. Default value is 'logo'.
|
|
1288
|
-
*/
|
|
1289
|
-
public async deletePublisherAsset(
|
|
1290
|
-
publisherName: string,
|
|
1291
|
-
assetType?: string
|
|
1292
|
-
): Promise<void> {
|
|
1293
|
-
|
|
1294
|
-
const queryValues: any = {
|
|
1295
|
-
assetType: assetType
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
return this.beginRequest<void>({
|
|
1299
|
-
apiVersion: "7.2-preview.1",
|
|
1300
|
-
method: "DELETE",
|
|
1301
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
|
|
1302
|
-
routeValues: {
|
|
1303
|
-
publisherName: publisherName
|
|
1304
|
-
},
|
|
1305
|
-
queryParams: queryValues
|
|
1306
|
-
});
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
/**
|
|
1310
|
-
* Get publisher asset like logo as a stream
|
|
1311
|
-
*
|
|
1312
|
-
* @param publisherName - Internal name of the publisher
|
|
1313
|
-
* @param assetType - Type of asset. Default value is 'logo'.
|
|
1314
|
-
*/
|
|
1315
|
-
public async getPublisherAsset(
|
|
1316
|
-
publisherName: string,
|
|
1317
|
-
assetType?: string
|
|
1318
|
-
): Promise<ArrayBuffer> {
|
|
1319
|
-
|
|
1320
|
-
const queryValues: any = {
|
|
1321
|
-
assetType: assetType
|
|
1322
|
-
};
|
|
1323
|
-
|
|
1324
|
-
return this.beginRequest<ArrayBuffer>({
|
|
1325
|
-
apiVersion: "7.2-preview.1",
|
|
1326
|
-
httpResponseType: "application/octet-stream",
|
|
1327
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
|
|
1328
|
-
routeValues: {
|
|
1329
|
-
publisherName: publisherName
|
|
1330
|
-
},
|
|
1331
|
-
queryParams: queryValues
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/**
|
|
1336
|
-
* Update publisher asset like logo. It accepts asset file as an octet stream and file name is passed in header values.
|
|
1337
|
-
*
|
|
1338
|
-
* @param content - Content to upload
|
|
1339
|
-
* @param publisherName - Internal name of the publisher
|
|
1340
|
-
* @param assetType - Type of asset. Default value is 'logo'.
|
|
1341
|
-
* @param fileName - Header to pass the filename of the uploaded data
|
|
1342
|
-
*/
|
|
1343
|
-
public async updatePublisherAsset(
|
|
1344
|
-
content: any,
|
|
1345
|
-
publisherName: string,
|
|
1346
|
-
assetType?: string,
|
|
1347
|
-
fileName?: String
|
|
1348
|
-
): Promise<{ [key: string] : string; }> {
|
|
1349
|
-
|
|
1350
|
-
const queryValues: any = {
|
|
1351
|
-
assetType: assetType
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
|
-
return this.beginRequest<{ [key: string] : string; }>({
|
|
1355
|
-
apiVersion: "7.2-preview.1",
|
|
1356
|
-
method: "PUT",
|
|
1357
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/publisherasset",
|
|
1358
|
-
routeValues: {
|
|
1359
|
-
publisherName: publisherName
|
|
1360
|
-
},
|
|
1361
|
-
customHeaders: {
|
|
1362
|
-
"Content-Type": "application/octet-stream",
|
|
1363
|
-
"X-Market-UploadFileName": fileName,
|
|
1364
|
-
},
|
|
1365
|
-
queryParams: queryValues,
|
|
1366
|
-
body: content,
|
|
1367
|
-
isRawData: true
|
|
1368
|
-
});
|
|
1369
|
-
}
|
|
1370
|
-
|
|
1371
|
-
/**
|
|
1372
|
-
* @param publisherName -
|
|
1373
|
-
*/
|
|
1374
|
-
public async fetchDomainToken(
|
|
1375
|
-
publisherName: string
|
|
1376
|
-
): Promise<string> {
|
|
1377
|
-
|
|
1378
|
-
return this.beginRequest<string>({
|
|
1379
|
-
apiVersion: "7.2-preview.1",
|
|
1380
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
|
|
1381
|
-
routeValues: {
|
|
1382
|
-
publisherName: publisherName
|
|
1383
|
-
}
|
|
1384
|
-
});
|
|
1385
|
-
}
|
|
1386
|
-
|
|
1387
|
-
/**
|
|
1388
|
-
* @param publisherName -
|
|
1389
|
-
*/
|
|
1390
|
-
public async verifyDomainToken(
|
|
1391
|
-
publisherName: string
|
|
1392
|
-
): Promise<void> {
|
|
1393
|
-
|
|
1394
|
-
return this.beginRequest<void>({
|
|
1395
|
-
apiVersion: "7.2-preview.1",
|
|
1396
|
-
method: "PUT",
|
|
1397
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/verify/token",
|
|
1398
|
-
routeValues: {
|
|
1399
|
-
publisherName: publisherName
|
|
1400
|
-
}
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
|
|
1404
|
-
/**
|
|
1405
|
-
* @param publisherQuery -
|
|
1406
|
-
*/
|
|
1407
|
-
public async queryPublishers(
|
|
1408
|
-
publisherQuery: Gallery.PublisherQuery
|
|
1409
|
-
): Promise<Gallery.PublisherQueryResult> {
|
|
1410
|
-
|
|
1411
|
-
return this.beginRequest<Gallery.PublisherQueryResult>({
|
|
1412
|
-
apiVersion: "7.2-preview.1",
|
|
1413
|
-
method: "POST",
|
|
1414
|
-
routeTemplate: "_apis/public/gallery/publisherquery",
|
|
1415
|
-
body: publisherQuery
|
|
1416
|
-
});
|
|
1417
|
-
}
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* @param publisher -
|
|
1421
|
-
*/
|
|
1422
|
-
public async createPublisher(
|
|
1423
|
-
publisher: Gallery.Publisher
|
|
1424
|
-
): Promise<Gallery.Publisher> {
|
|
1425
|
-
|
|
1426
|
-
return this.beginRequest<Gallery.Publisher>({
|
|
1427
|
-
apiVersion: "7.2-preview.1",
|
|
1428
|
-
method: "POST",
|
|
1429
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}",
|
|
1430
|
-
body: publisher
|
|
1431
|
-
});
|
|
1432
|
-
}
|
|
1433
|
-
|
|
1434
|
-
/**
|
|
1435
|
-
* @param publisherName -
|
|
1436
|
-
*/
|
|
1437
|
-
public async deletePublisher(
|
|
1438
|
-
publisherName: string
|
|
1439
|
-
): Promise<void> {
|
|
1440
|
-
|
|
1441
|
-
return this.beginRequest<void>({
|
|
1442
|
-
apiVersion: "7.2-preview.1",
|
|
1443
|
-
method: "DELETE",
|
|
1444
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}",
|
|
1445
|
-
routeValues: {
|
|
1446
|
-
publisherName: publisherName
|
|
1447
|
-
}
|
|
1448
|
-
});
|
|
1449
|
-
}
|
|
1450
|
-
|
|
1451
|
-
/**
|
|
1452
|
-
* @param publisherName -
|
|
1453
|
-
* @param flags -
|
|
1454
|
-
*/
|
|
1455
|
-
public async getPublisher(
|
|
1456
|
-
publisherName: string,
|
|
1457
|
-
flags?: number
|
|
1458
|
-
): Promise<Gallery.Publisher> {
|
|
1459
|
-
|
|
1460
|
-
const queryValues: any = {
|
|
1461
|
-
flags: flags
|
|
1462
|
-
};
|
|
1463
|
-
|
|
1464
|
-
return this.beginRequest<Gallery.Publisher>({
|
|
1465
|
-
apiVersion: "7.2-preview.1",
|
|
1466
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}",
|
|
1467
|
-
routeValues: {
|
|
1468
|
-
publisherName: publisherName
|
|
1469
|
-
},
|
|
1470
|
-
queryParams: queryValues
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
|
|
1474
|
-
/**
|
|
1475
|
-
* @param publisher -
|
|
1476
|
-
* @param publisherName -
|
|
1477
|
-
*/
|
|
1478
|
-
public async updatePublisher(
|
|
1479
|
-
publisher: Gallery.Publisher,
|
|
1480
|
-
publisherName: string
|
|
1481
|
-
): Promise<Gallery.Publisher> {
|
|
1482
|
-
|
|
1483
|
-
return this.beginRequest<Gallery.Publisher>({
|
|
1484
|
-
apiVersion: "7.2-preview.1",
|
|
1485
|
-
method: "PUT",
|
|
1486
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}",
|
|
1487
|
-
routeValues: {
|
|
1488
|
-
publisherName: publisherName
|
|
1489
|
-
},
|
|
1490
|
-
body: publisher
|
|
1491
|
-
});
|
|
1492
|
-
}
|
|
1493
|
-
|
|
1494
|
-
/**
|
|
1495
|
-
* Endpoint to add/modify publisher membership. Currently Supports only addition/modification of 1 user at a time Works only for adding members of same tenant.
|
|
1496
|
-
*
|
|
1497
|
-
* @param roleAssignments - List of user identifiers(email address) and role to be added. Currently only one entry is supported.
|
|
1498
|
-
* @param publisherName - The name/id of publisher to which users have to be added
|
|
1499
|
-
* @param limitToCallerIdentityDomain - Should cross tenant addtions be allowed or not.
|
|
1500
|
-
*/
|
|
1501
|
-
public async updatePublisherMembers(
|
|
1502
|
-
roleAssignments: Gallery.PublisherUserRoleAssignmentRef[],
|
|
1503
|
-
publisherName: string,
|
|
1504
|
-
limitToCallerIdentityDomain?: boolean
|
|
1505
|
-
): Promise<Gallery.PublisherRoleAssignment[]> {
|
|
1506
|
-
|
|
1507
|
-
const queryValues: any = {
|
|
1508
|
-
limitToCallerIdentityDomain: limitToCallerIdentityDomain
|
|
1509
|
-
};
|
|
1510
|
-
|
|
1511
|
-
return this.beginRequest<Gallery.PublisherRoleAssignment[]>({
|
|
1512
|
-
apiVersion: "7.2-preview.1",
|
|
1513
|
-
method: "POST",
|
|
1514
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}",
|
|
1515
|
-
routeValues: {
|
|
1516
|
-
publisherName: publisherName
|
|
1517
|
-
},
|
|
1518
|
-
queryParams: queryValues,
|
|
1519
|
-
body: roleAssignments
|
|
1520
|
-
});
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* @param content - Content to upload
|
|
1525
|
-
* @param publisherName -
|
|
1526
|
-
* @param extensionName -
|
|
1527
|
-
* @param extensionType -
|
|
1528
|
-
* @param reCaptchaToken -
|
|
1529
|
-
* @param bypassScopeCheck -
|
|
1530
|
-
*/
|
|
1531
|
-
public async publishExtensionWithPublisherSignature(
|
|
1532
|
-
content: any,
|
|
1533
|
-
publisherName: string,
|
|
1534
|
-
extensionName: string,
|
|
1535
|
-
extensionType?: string,
|
|
1536
|
-
reCaptchaToken?: string,
|
|
1537
|
-
bypassScopeCheck?: boolean
|
|
1538
|
-
): Promise<Gallery.PublishedExtension> {
|
|
1539
|
-
|
|
1540
|
-
const queryValues: any = {
|
|
1541
|
-
extensionType: extensionType,
|
|
1542
|
-
reCaptchaToken: reCaptchaToken,
|
|
1543
|
-
bypassScopeCheck: bypassScopeCheck
|
|
1544
|
-
};
|
|
1545
|
-
|
|
1546
|
-
return this.beginRequest<Gallery.PublishedExtension>({
|
|
1547
|
-
apiVersion: "7.2-preview.1",
|
|
1548
|
-
method: "PUT",
|
|
1549
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/publishersignedextension/{extensionName}",
|
|
1550
|
-
routeValues: {
|
|
1551
|
-
publisherName: publisherName,
|
|
1552
|
-
extensionName: extensionName
|
|
1553
|
-
},
|
|
1554
|
-
customHeaders: {
|
|
1555
|
-
"Content-Type": "multipart/related",
|
|
1556
|
-
},
|
|
1557
|
-
queryParams: queryValues,
|
|
1558
|
-
body: content,
|
|
1559
|
-
isRawData: true
|
|
1560
|
-
});
|
|
1561
|
-
}
|
|
1562
|
-
|
|
1563
|
-
/**
|
|
1564
|
-
* @param publisherName -
|
|
1565
|
-
*/
|
|
1566
|
-
public async getPublisherWithoutToken(
|
|
1567
|
-
publisherName: string
|
|
1568
|
-
): Promise<Gallery.Publisher> {
|
|
1569
|
-
|
|
1570
|
-
return this.beginRequest<Gallery.Publisher>({
|
|
1571
|
-
apiVersion: "7.2-preview.1",
|
|
1572
|
-
routeTemplate: "_apis/public/gallery/publisherWithoutToken/{publisherName}",
|
|
1573
|
-
routeValues: {
|
|
1574
|
-
publisherName: publisherName
|
|
1575
|
-
}
|
|
1576
|
-
});
|
|
1577
|
-
}
|
|
1578
|
-
|
|
1579
|
-
/**
|
|
1580
|
-
* Returns a list of questions with their responses associated with an extension.
|
|
1581
|
-
*
|
|
1582
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1583
|
-
* @param extensionName - Name of the extension.
|
|
1584
|
-
* @param count - Number of questions to retrieve (defaults to 10).
|
|
1585
|
-
* @param page - Page number from which set of questions are to be retrieved.
|
|
1586
|
-
* @param afterDate - If provided, results questions are returned which were posted after this date
|
|
1587
|
-
*/
|
|
1588
|
-
public async getQuestions(
|
|
1589
|
-
publisherName: string,
|
|
1590
|
-
extensionName: string,
|
|
1591
|
-
count?: number,
|
|
1592
|
-
page?: number,
|
|
1593
|
-
afterDate?: Date
|
|
1594
|
-
): Promise<Gallery.QuestionsResult> {
|
|
1595
|
-
|
|
1596
|
-
const queryValues: any = {
|
|
1597
|
-
count: count,
|
|
1598
|
-
page: page,
|
|
1599
|
-
afterDate: afterDate
|
|
1600
|
-
};
|
|
1601
|
-
|
|
1602
|
-
return this.beginRequest<Gallery.QuestionsResult>({
|
|
1603
|
-
apiVersion: "7.2-preview.1",
|
|
1604
|
-
routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/qna",
|
|
1605
|
-
routeValues: {
|
|
1606
|
-
publisherName: publisherName,
|
|
1607
|
-
extensionName: extensionName
|
|
1608
|
-
},
|
|
1609
|
-
queryParams: queryValues
|
|
1610
|
-
});
|
|
1611
|
-
}
|
|
1612
|
-
|
|
1613
|
-
/**
|
|
1614
|
-
* Flags a concern with an existing question for an extension.
|
|
1615
|
-
*
|
|
1616
|
-
* @param concern - User reported concern with a question for the extension.
|
|
1617
|
-
* @param pubName - Name of the publisher who published the extension.
|
|
1618
|
-
* @param extName - Name of the extension.
|
|
1619
|
-
* @param questionId - Identifier of the question to be updated for the extension.
|
|
1620
|
-
*/
|
|
1621
|
-
public async reportQuestion(
|
|
1622
|
-
concern: Gallery.Concern,
|
|
1623
|
-
pubName: string,
|
|
1624
|
-
extName: string,
|
|
1625
|
-
questionId: number
|
|
1626
|
-
): Promise<Gallery.Concern> {
|
|
1627
|
-
|
|
1628
|
-
return this.beginRequest<Gallery.Concern>({
|
|
1629
|
-
apiVersion: "7.2-preview.1",
|
|
1630
|
-
method: "POST",
|
|
1631
|
-
routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/qna/{questionId}/concern",
|
|
1632
|
-
routeValues: {
|
|
1633
|
-
pubName: pubName,
|
|
1634
|
-
extName: extName,
|
|
1635
|
-
questionId: questionId
|
|
1636
|
-
},
|
|
1637
|
-
body: concern
|
|
1638
|
-
});
|
|
1639
|
-
}
|
|
1640
|
-
|
|
1641
|
-
/**
|
|
1642
|
-
* Creates a new question for an extension.
|
|
1643
|
-
*
|
|
1644
|
-
* @param question - Question to be created for the extension.
|
|
1645
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1646
|
-
* @param extensionName - Name of the extension.
|
|
1647
|
-
*/
|
|
1648
|
-
public async createQuestion(
|
|
1649
|
-
question: Gallery.Question,
|
|
1650
|
-
publisherName: string,
|
|
1651
|
-
extensionName: string
|
|
1652
|
-
): Promise<Gallery.Question> {
|
|
1653
|
-
|
|
1654
|
-
return this.beginRequest<Gallery.Question>({
|
|
1655
|
-
apiVersion: "7.2-preview.1",
|
|
1656
|
-
method: "POST",
|
|
1657
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
|
|
1658
|
-
routeValues: {
|
|
1659
|
-
publisherName: publisherName,
|
|
1660
|
-
extensionName: extensionName
|
|
1661
|
-
},
|
|
1662
|
-
body: question
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
|
|
1666
|
-
/**
|
|
1667
|
-
* Deletes an existing question and all its associated responses for an extension. (soft delete)
|
|
1668
|
-
*
|
|
1669
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1670
|
-
* @param extensionName - Name of the extension.
|
|
1671
|
-
* @param questionId - Identifier of the question to be deleted for the extension.
|
|
1672
|
-
*/
|
|
1673
|
-
public async deleteQuestion(
|
|
1674
|
-
publisherName: string,
|
|
1675
|
-
extensionName: string,
|
|
1676
|
-
questionId: number
|
|
1677
|
-
): Promise<void> {
|
|
1678
|
-
|
|
1679
|
-
return this.beginRequest<void>({
|
|
1680
|
-
apiVersion: "7.2-preview.1",
|
|
1681
|
-
method: "DELETE",
|
|
1682
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
|
|
1683
|
-
routeValues: {
|
|
1684
|
-
publisherName: publisherName,
|
|
1685
|
-
extensionName: extensionName,
|
|
1686
|
-
questionId: questionId
|
|
1687
|
-
}
|
|
1688
|
-
});
|
|
1689
|
-
}
|
|
1690
|
-
|
|
1691
|
-
/**
|
|
1692
|
-
* Updates an existing question for an extension.
|
|
1693
|
-
*
|
|
1694
|
-
* @param question - Updated question to be set for the extension.
|
|
1695
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1696
|
-
* @param extensionName - Name of the extension.
|
|
1697
|
-
* @param questionId - Identifier of the question to be updated for the extension.
|
|
1698
|
-
*/
|
|
1699
|
-
public async updateQuestion(
|
|
1700
|
-
question: Gallery.Question,
|
|
1701
|
-
publisherName: string,
|
|
1702
|
-
extensionName: string,
|
|
1703
|
-
questionId: number
|
|
1704
|
-
): Promise<Gallery.Question> {
|
|
1705
|
-
|
|
1706
|
-
return this.beginRequest<Gallery.Question>({
|
|
1707
|
-
apiVersion: "7.2-preview.1",
|
|
1708
|
-
method: "PATCH",
|
|
1709
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}",
|
|
1710
|
-
routeValues: {
|
|
1711
|
-
publisherName: publisherName,
|
|
1712
|
-
extensionName: extensionName,
|
|
1713
|
-
questionId: questionId
|
|
1714
|
-
},
|
|
1715
|
-
body: question
|
|
1716
|
-
});
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
/**
|
|
1720
|
-
* Creates a new response for a given question for an extension.
|
|
1721
|
-
*
|
|
1722
|
-
* @param response - Response to be created for the extension.
|
|
1723
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1724
|
-
* @param extensionName - Name of the extension.
|
|
1725
|
-
* @param questionId - Identifier of the question for which response is to be created for the extension.
|
|
1726
|
-
*/
|
|
1727
|
-
public async createResponse(
|
|
1728
|
-
response: Gallery.Response,
|
|
1729
|
-
publisherName: string,
|
|
1730
|
-
extensionName: string,
|
|
1731
|
-
questionId: number
|
|
1732
|
-
): Promise<Gallery.Response> {
|
|
1733
|
-
|
|
1734
|
-
return this.beginRequest<Gallery.Response>({
|
|
1735
|
-
apiVersion: "7.2-preview.1",
|
|
1736
|
-
method: "POST",
|
|
1737
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
|
|
1738
|
-
routeValues: {
|
|
1739
|
-
publisherName: publisherName,
|
|
1740
|
-
extensionName: extensionName,
|
|
1741
|
-
questionId: questionId
|
|
1742
|
-
},
|
|
1743
|
-
body: response
|
|
1744
|
-
});
|
|
1745
|
-
}
|
|
1746
|
-
|
|
1747
|
-
/**
|
|
1748
|
-
* Deletes a response for an extension. (soft delete)
|
|
1749
|
-
*
|
|
1750
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1751
|
-
* @param extensionName - Name of the extension.
|
|
1752
|
-
* @param questionId - Identifies the question whose response is to be deleted.
|
|
1753
|
-
* @param responseId - Identifies the response to be deleted.
|
|
1754
|
-
*/
|
|
1755
|
-
public async deleteResponse(
|
|
1756
|
-
publisherName: string,
|
|
1757
|
-
extensionName: string,
|
|
1758
|
-
questionId: number,
|
|
1759
|
-
responseId: number
|
|
1760
|
-
): Promise<void> {
|
|
1761
|
-
|
|
1762
|
-
return this.beginRequest<void>({
|
|
1763
|
-
apiVersion: "7.2-preview.1",
|
|
1764
|
-
method: "DELETE",
|
|
1765
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
|
|
1766
|
-
routeValues: {
|
|
1767
|
-
publisherName: publisherName,
|
|
1768
|
-
extensionName: extensionName,
|
|
1769
|
-
questionId: questionId,
|
|
1770
|
-
responseId: responseId
|
|
1771
|
-
}
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
/**
|
|
1776
|
-
* Updates an existing response for a given question for an extension.
|
|
1777
|
-
*
|
|
1778
|
-
* @param response - Updated response to be set for the extension.
|
|
1779
|
-
* @param publisherName - Name of the publisher who published the extension.
|
|
1780
|
-
* @param extensionName - Name of the extension.
|
|
1781
|
-
* @param questionId - Identifier of the question for which response is to be updated for the extension.
|
|
1782
|
-
* @param responseId - Identifier of the response which has to be updated.
|
|
1783
|
-
*/
|
|
1784
|
-
public async updateResponse(
|
|
1785
|
-
response: Gallery.Response,
|
|
1786
|
-
publisherName: string,
|
|
1787
|
-
extensionName: string,
|
|
1788
|
-
questionId: number,
|
|
1789
|
-
responseId: number
|
|
1790
|
-
): Promise<Gallery.Response> {
|
|
1791
|
-
|
|
1792
|
-
return this.beginRequest<Gallery.Response>({
|
|
1793
|
-
apiVersion: "7.2-preview.1",
|
|
1794
|
-
method: "PATCH",
|
|
1795
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/qna/{questionId}/responses/{responseId}",
|
|
1796
|
-
routeValues: {
|
|
1797
|
-
publisherName: publisherName,
|
|
1798
|
-
extensionName: extensionName,
|
|
1799
|
-
questionId: questionId,
|
|
1800
|
-
responseId: responseId
|
|
1801
|
-
},
|
|
1802
|
-
body: response
|
|
1803
|
-
});
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
* Returns extension reports
|
|
1808
|
-
*
|
|
1809
|
-
* @param publisherName - Name of the publisher who published the extension
|
|
1810
|
-
* @param extensionName - Name of the extension
|
|
1811
|
-
* @param days - Last n days report. If afterDate and days are specified, days will take priority
|
|
1812
|
-
* @param count - Number of events to be returned
|
|
1813
|
-
* @param afterDate - Use if you want to fetch events newer than the specified date
|
|
1814
|
-
*/
|
|
1815
|
-
public async getExtensionReports(
|
|
1816
|
-
publisherName: string,
|
|
1817
|
-
extensionName: string,
|
|
1818
|
-
days?: number,
|
|
1819
|
-
count?: number,
|
|
1820
|
-
afterDate?: Date
|
|
1821
|
-
): Promise<any> {
|
|
1822
|
-
|
|
1823
|
-
const queryValues: any = {
|
|
1824
|
-
days: days,
|
|
1825
|
-
count: count,
|
|
1826
|
-
afterDate: afterDate
|
|
1827
|
-
};
|
|
1828
|
-
|
|
1829
|
-
return this.beginRequest<any>({
|
|
1830
|
-
apiVersion: "7.2-preview.1",
|
|
1831
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/reports",
|
|
1832
|
-
routeValues: {
|
|
1833
|
-
publisherName: publisherName,
|
|
1834
|
-
extensionName: extensionName
|
|
1835
|
-
},
|
|
1836
|
-
queryParams: queryValues
|
|
1837
|
-
});
|
|
1838
|
-
}
|
|
1839
|
-
|
|
1840
|
-
/**
|
|
1841
|
-
* Returns a list of reviews associated with an extension
|
|
1842
|
-
*
|
|
1843
|
-
* @param publisherName - Name of the publisher who published the extension
|
|
1844
|
-
* @param extensionName - Name of the extension
|
|
1845
|
-
* @param count - Number of reviews to retrieve (defaults to 5)
|
|
1846
|
-
* @param filterOptions - FilterOptions to filter out empty reviews etcetera, defaults to none
|
|
1847
|
-
* @param beforeDate - Use if you want to fetch reviews older than the specified date, defaults to null
|
|
1848
|
-
* @param afterDate - Use if you want to fetch reviews newer than the specified date, defaults to null
|
|
1849
|
-
*/
|
|
1850
|
-
public async getReviews(
|
|
1851
|
-
publisherName: string,
|
|
1852
|
-
extensionName: string,
|
|
1853
|
-
count?: number,
|
|
1854
|
-
filterOptions?: Gallery.ReviewFilterOptions,
|
|
1855
|
-
beforeDate?: Date,
|
|
1856
|
-
afterDate?: Date
|
|
1857
|
-
): Promise<Gallery.ReviewsResult> {
|
|
1858
|
-
|
|
1859
|
-
const queryValues: any = {
|
|
1860
|
-
count: count,
|
|
1861
|
-
filterOptions: filterOptions,
|
|
1862
|
-
beforeDate: beforeDate,
|
|
1863
|
-
afterDate: afterDate
|
|
1864
|
-
};
|
|
1865
|
-
|
|
1866
|
-
return this.beginRequest<Gallery.ReviewsResult>({
|
|
1867
|
-
apiVersion: "7.2-preview.1",
|
|
1868
|
-
routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/reviews",
|
|
1869
|
-
routeValues: {
|
|
1870
|
-
publisherName: publisherName,
|
|
1871
|
-
extensionName: extensionName
|
|
1872
|
-
},
|
|
1873
|
-
queryParams: queryValues
|
|
1874
|
-
});
|
|
1875
|
-
}
|
|
1876
|
-
|
|
1877
|
-
/**
|
|
1878
|
-
* Returns a summary of the reviews
|
|
1879
|
-
*
|
|
1880
|
-
* @param pubName - Name of the publisher who published the extension
|
|
1881
|
-
* @param extName - Name of the extension
|
|
1882
|
-
* @param beforeDate - Use if you want to fetch summary of reviews older than the specified date, defaults to null
|
|
1883
|
-
* @param afterDate - Use if you want to fetch summary of reviews newer than the specified date, defaults to null
|
|
1884
|
-
*/
|
|
1885
|
-
public async getReviewsSummary(
|
|
1886
|
-
pubName: string,
|
|
1887
|
-
extName: string,
|
|
1888
|
-
beforeDate?: Date,
|
|
1889
|
-
afterDate?: Date
|
|
1890
|
-
): Promise<Gallery.ReviewSummary> {
|
|
1891
|
-
|
|
1892
|
-
const queryValues: any = {
|
|
1893
|
-
beforeDate: beforeDate,
|
|
1894
|
-
afterDate: afterDate
|
|
1895
|
-
};
|
|
1896
|
-
|
|
1897
|
-
return this.beginRequest<Gallery.ReviewSummary>({
|
|
1898
|
-
apiVersion: "7.2-preview.1",
|
|
1899
|
-
routeTemplate: "_apis/public/gallery/publishers/{pubName}/extensions/{extName}/reviews/summary",
|
|
1900
|
-
routeValues: {
|
|
1901
|
-
pubName: pubName,
|
|
1902
|
-
extName: extName
|
|
1903
|
-
},
|
|
1904
|
-
queryParams: queryValues
|
|
1905
|
-
});
|
|
1906
|
-
}
|
|
1907
|
-
|
|
1908
|
-
/**
|
|
1909
|
-
* Creates a new review for an extension
|
|
1910
|
-
*
|
|
1911
|
-
* @param review - Review to be created for the extension
|
|
1912
|
-
* @param pubName - Name of the publisher who published the extension
|
|
1913
|
-
* @param extName - Name of the extension
|
|
1914
|
-
*/
|
|
1915
|
-
public async createReview(
|
|
1916
|
-
review: Gallery.Review,
|
|
1917
|
-
pubName: string,
|
|
1918
|
-
extName: string
|
|
1919
|
-
): Promise<Gallery.Review> {
|
|
1920
|
-
|
|
1921
|
-
return this.beginRequest<Gallery.Review>({
|
|
1922
|
-
apiVersion: "7.2-preview.1",
|
|
1923
|
-
method: "POST",
|
|
1924
|
-
routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
|
|
1925
|
-
routeValues: {
|
|
1926
|
-
pubName: pubName,
|
|
1927
|
-
extName: extName
|
|
1928
|
-
},
|
|
1929
|
-
body: review
|
|
1930
|
-
});
|
|
1931
|
-
}
|
|
1932
|
-
|
|
1933
|
-
/**
|
|
1934
|
-
* Deletes a review
|
|
1935
|
-
*
|
|
1936
|
-
* @param pubName - Name of the publisher who published the extension
|
|
1937
|
-
* @param extName - Name of the extension
|
|
1938
|
-
* @param reviewId - Id of the review which needs to be updated
|
|
1939
|
-
*/
|
|
1940
|
-
public async deleteReview(
|
|
1941
|
-
pubName: string,
|
|
1942
|
-
extName: string,
|
|
1943
|
-
reviewId: number
|
|
1944
|
-
): Promise<void> {
|
|
1945
|
-
|
|
1946
|
-
return this.beginRequest<void>({
|
|
1947
|
-
apiVersion: "7.2-preview.1",
|
|
1948
|
-
method: "DELETE",
|
|
1949
|
-
routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
|
|
1950
|
-
routeValues: {
|
|
1951
|
-
pubName: pubName,
|
|
1952
|
-
extName: extName,
|
|
1953
|
-
reviewId: reviewId
|
|
1954
|
-
}
|
|
1955
|
-
});
|
|
1956
|
-
}
|
|
1957
|
-
|
|
1958
|
-
/**
|
|
1959
|
-
* Updates or Flags a review
|
|
1960
|
-
*
|
|
1961
|
-
* @param reviewPatch - ReviewPatch object which contains the changes to be applied to the review
|
|
1962
|
-
* @param pubName - Name of the publisher who published the extension
|
|
1963
|
-
* @param extName - Name of the extension
|
|
1964
|
-
* @param reviewId - Id of the review which needs to be updated
|
|
1965
|
-
*/
|
|
1966
|
-
public async updateReview(
|
|
1967
|
-
reviewPatch: Gallery.ReviewPatch,
|
|
1968
|
-
pubName: string,
|
|
1969
|
-
extName: string,
|
|
1970
|
-
reviewId: number
|
|
1971
|
-
): Promise<Gallery.ReviewPatch> {
|
|
1972
|
-
|
|
1973
|
-
return this.beginRequest<Gallery.ReviewPatch>({
|
|
1974
|
-
apiVersion: "7.2-preview.1",
|
|
1975
|
-
method: "PATCH",
|
|
1976
|
-
routeTemplate: "_apis/gallery/publishers/{pubName}/extensions/{extName}/reviews/{reviewId}",
|
|
1977
|
-
routeValues: {
|
|
1978
|
-
pubName: pubName,
|
|
1979
|
-
extName: extName,
|
|
1980
|
-
reviewId: reviewId
|
|
1981
|
-
},
|
|
1982
|
-
body: reviewPatch
|
|
1983
|
-
});
|
|
1984
|
-
}
|
|
1985
|
-
|
|
1986
|
-
/**
|
|
1987
|
-
* @param category -
|
|
1988
|
-
*/
|
|
1989
|
-
public async createCategory(
|
|
1990
|
-
category: Gallery.ExtensionCategory
|
|
1991
|
-
): Promise<Gallery.ExtensionCategory> {
|
|
1992
|
-
|
|
1993
|
-
return this.beginRequest<Gallery.ExtensionCategory>({
|
|
1994
|
-
apiVersion: "7.2-preview.1",
|
|
1995
|
-
method: "POST",
|
|
1996
|
-
routeTemplate: "_apis/gallery/categories",
|
|
1997
|
-
body: category
|
|
1998
|
-
});
|
|
1999
|
-
}
|
|
2000
|
-
|
|
2001
|
-
/**
|
|
2002
|
-
* Get all setting entries for the given user/all-users scope
|
|
2003
|
-
*
|
|
2004
|
-
* @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
|
|
2005
|
-
* @param key - Optional key under which to filter all the entries
|
|
2006
|
-
*/
|
|
2007
|
-
public async getGalleryUserSettings(
|
|
2008
|
-
userScope: string,
|
|
2009
|
-
key?: string
|
|
2010
|
-
): Promise<{ [key: string] : any; }> {
|
|
2011
|
-
|
|
2012
|
-
return this.beginRequest<{ [key: string] : any; }>({
|
|
2013
|
-
apiVersion: "7.2-preview.1",
|
|
2014
|
-
routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
|
|
2015
|
-
routeValues: {
|
|
2016
|
-
userScope: userScope,
|
|
2017
|
-
key: key
|
|
2018
|
-
}
|
|
2019
|
-
});
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/**
|
|
2023
|
-
* Set all setting entries for the given user/all-users scope
|
|
2024
|
-
*
|
|
2025
|
-
* @param entries - A key-value pair of all settings that need to be set
|
|
2026
|
-
* @param userScope - User-Scope at which to get the value. Should be "me" for the current user or "host" for all users.
|
|
2027
|
-
*/
|
|
2028
|
-
public async setGalleryUserSettings(
|
|
2029
|
-
entries: { [key: string] : any; },
|
|
2030
|
-
userScope: string
|
|
2031
|
-
): Promise<void> {
|
|
2032
|
-
|
|
2033
|
-
return this.beginRequest<void>({
|
|
2034
|
-
apiVersion: "7.2-preview.1",
|
|
2035
|
-
method: "PATCH",
|
|
2036
|
-
routeTemplate: "_apis/gallery/settings/{userScope}/{*key}",
|
|
2037
|
-
routeValues: {
|
|
2038
|
-
userScope: userScope
|
|
2039
|
-
},
|
|
2040
|
-
body: entries
|
|
2041
|
-
});
|
|
2042
|
-
}
|
|
2043
|
-
|
|
2044
|
-
/**
|
|
2045
|
-
* @param keyType -
|
|
2046
|
-
* @param expireCurrentSeconds -
|
|
2047
|
-
*/
|
|
2048
|
-
public async generateKey(
|
|
2049
|
-
keyType: string,
|
|
2050
|
-
expireCurrentSeconds?: number
|
|
2051
|
-
): Promise<void> {
|
|
2052
|
-
|
|
2053
|
-
const queryValues: any = {
|
|
2054
|
-
expireCurrentSeconds: expireCurrentSeconds
|
|
2055
|
-
};
|
|
2056
|
-
|
|
2057
|
-
return this.beginRequest<void>({
|
|
2058
|
-
apiVersion: "7.2-preview.1",
|
|
2059
|
-
method: "POST",
|
|
2060
|
-
routeTemplate: "_apis/gallery/signingkey/{keyType}",
|
|
2061
|
-
routeValues: {
|
|
2062
|
-
keyType: keyType
|
|
2063
|
-
},
|
|
2064
|
-
queryParams: queryValues
|
|
2065
|
-
});
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
|
-
/**
|
|
2069
|
-
* @param keyType -
|
|
2070
|
-
*/
|
|
2071
|
-
public async getSigningKey(
|
|
2072
|
-
keyType: string
|
|
2073
|
-
): Promise<string> {
|
|
2074
|
-
|
|
2075
|
-
return this.beginRequest<string>({
|
|
2076
|
-
apiVersion: "7.2-preview.1",
|
|
2077
|
-
routeTemplate: "_apis/gallery/signingkey/{keyType}",
|
|
2078
|
-
routeValues: {
|
|
2079
|
-
keyType: keyType
|
|
2080
|
-
}
|
|
2081
|
-
});
|
|
2082
|
-
}
|
|
2083
|
-
|
|
2084
|
-
/**
|
|
2085
|
-
* @param extensionStatisticsUpdate -
|
|
2086
|
-
* @param publisherName -
|
|
2087
|
-
* @param extensionName -
|
|
2088
|
-
*/
|
|
2089
|
-
public async updateExtensionStatistics(
|
|
2090
|
-
extensionStatisticsUpdate: Gallery.ExtensionStatisticUpdate,
|
|
2091
|
-
publisherName: string,
|
|
2092
|
-
extensionName: string
|
|
2093
|
-
): Promise<void> {
|
|
2094
|
-
|
|
2095
|
-
return this.beginRequest<void>({
|
|
2096
|
-
apiVersion: "7.2-preview.1",
|
|
2097
|
-
method: "PATCH",
|
|
2098
|
-
routeTemplate: "_apis/gallery/publisher/{publisherName}/extension/{extensionName}/statistics",
|
|
2099
|
-
routeValues: {
|
|
2100
|
-
publisherName: publisherName,
|
|
2101
|
-
extensionName: extensionName
|
|
2102
|
-
},
|
|
2103
|
-
body: extensionStatisticsUpdate
|
|
2104
|
-
});
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
/**
|
|
2108
|
-
* @param publisherName -
|
|
2109
|
-
* @param extensionName -
|
|
2110
|
-
* @param days -
|
|
2111
|
-
* @param aggregate -
|
|
2112
|
-
* @param afterDate -
|
|
2113
|
-
*/
|
|
2114
|
-
public async getExtensionDailyStats(
|
|
2115
|
-
publisherName: string,
|
|
2116
|
-
extensionName: string,
|
|
2117
|
-
days?: number,
|
|
2118
|
-
aggregate?: Gallery.ExtensionStatsAggregateType,
|
|
2119
|
-
afterDate?: Date
|
|
2120
|
-
): Promise<Gallery.ExtensionDailyStats> {
|
|
2121
|
-
|
|
2122
|
-
const queryValues: any = {
|
|
2123
|
-
days: days,
|
|
2124
|
-
aggregate: aggregate,
|
|
2125
|
-
afterDate: afterDate
|
|
2126
|
-
};
|
|
2127
|
-
|
|
2128
|
-
return this.beginRequest<Gallery.ExtensionDailyStats>({
|
|
2129
|
-
apiVersion: "7.2-preview.1",
|
|
2130
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/stats",
|
|
2131
|
-
routeValues: {
|
|
2132
|
-
publisherName: publisherName,
|
|
2133
|
-
extensionName: extensionName
|
|
2134
|
-
},
|
|
2135
|
-
queryParams: queryValues
|
|
2136
|
-
});
|
|
2137
|
-
}
|
|
2138
|
-
|
|
2139
|
-
/**
|
|
2140
|
-
* This route/location id only supports HTTP POST anonymously, so that the page view daily stat can be incremented from Marketplace client. Trying to call GET on this route should result in an exception. Without this explicit implementation, calling GET on this public route invokes the above GET implementation GetExtensionDailyStats.
|
|
2141
|
-
*
|
|
2142
|
-
* @param publisherName - Name of the publisher
|
|
2143
|
-
* @param extensionName - Name of the extension
|
|
2144
|
-
* @param version - Version of the extension
|
|
2145
|
-
*/
|
|
2146
|
-
public async getExtensionDailyStatsAnonymous(
|
|
2147
|
-
publisherName: string,
|
|
2148
|
-
extensionName: string,
|
|
2149
|
-
version: string
|
|
2150
|
-
): Promise<Gallery.ExtensionDailyStats> {
|
|
2151
|
-
|
|
2152
|
-
return this.beginRequest<Gallery.ExtensionDailyStats>({
|
|
2153
|
-
apiVersion: "7.2-preview.1",
|
|
2154
|
-
routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
|
|
2155
|
-
routeValues: {
|
|
2156
|
-
publisherName: publisherName,
|
|
2157
|
-
extensionName: extensionName,
|
|
2158
|
-
version: version
|
|
2159
|
-
}
|
|
2160
|
-
});
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
/**
|
|
2164
|
-
* Increments a daily statistic associated with the extension
|
|
2165
|
-
*
|
|
2166
|
-
* @param publisherName - Name of the publisher
|
|
2167
|
-
* @param extensionName - Name of the extension
|
|
2168
|
-
* @param version - Version of the extension
|
|
2169
|
-
* @param statType - Type of stat to increment
|
|
2170
|
-
* @param targetPlatform -
|
|
2171
|
-
*/
|
|
2172
|
-
public async incrementExtensionDailyStat(
|
|
2173
|
-
publisherName: string,
|
|
2174
|
-
extensionName: string,
|
|
2175
|
-
version: string,
|
|
2176
|
-
statType: string,
|
|
2177
|
-
targetPlatform?: string
|
|
2178
|
-
): Promise<void> {
|
|
2179
|
-
|
|
2180
|
-
const queryValues: any = {
|
|
2181
|
-
statType: statType,
|
|
2182
|
-
targetPlatform: targetPlatform
|
|
2183
|
-
};
|
|
2184
|
-
|
|
2185
|
-
return this.beginRequest<void>({
|
|
2186
|
-
apiVersion: "7.2-preview.1",
|
|
2187
|
-
method: "POST",
|
|
2188
|
-
routeTemplate: "_apis/public/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/stats",
|
|
2189
|
-
routeValues: {
|
|
2190
|
-
publisherName: publisherName,
|
|
2191
|
-
extensionName: extensionName,
|
|
2192
|
-
version: version
|
|
2193
|
-
},
|
|
2194
|
-
queryParams: queryValues
|
|
2195
|
-
});
|
|
2196
|
-
}
|
|
2197
|
-
|
|
2198
|
-
/**
|
|
2199
|
-
* @param publisherName -
|
|
2200
|
-
* @param extensionName -
|
|
2201
|
-
* @param version -
|
|
2202
|
-
* @param targetPlatform -
|
|
2203
|
-
*/
|
|
2204
|
-
public async getVerificationLog(
|
|
2205
|
-
publisherName: string,
|
|
2206
|
-
extensionName: string,
|
|
2207
|
-
version: string,
|
|
2208
|
-
targetPlatform?: string
|
|
2209
|
-
): Promise<ArrayBuffer> {
|
|
2210
|
-
|
|
2211
|
-
const queryValues: any = {
|
|
2212
|
-
targetPlatform: targetPlatform
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
return this.beginRequest<ArrayBuffer>({
|
|
2216
|
-
apiVersion: "7.2-preview.1",
|
|
2217
|
-
httpResponseType: "application/octet-stream",
|
|
2218
|
-
routeTemplate: "_apis/gallery/publishers/{publisherName}/extensions/{extensionName}/{version}/verificationlog",
|
|
2219
|
-
routeValues: {
|
|
2220
|
-
publisherName: publisherName,
|
|
2221
|
-
extensionName: extensionName,
|
|
2222
|
-
version: version
|
|
2223
|
-
},
|
|
2224
|
-
queryParams: queryValues
|
|
2225
|
-
});
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
/**
|
|
2229
|
-
* @param itemName -
|
|
2230
|
-
* @param version -
|
|
2231
|
-
* @param statType -
|
|
2232
|
-
*/
|
|
2233
|
-
public async updateVSCodeWebExtensionStatistics(
|
|
2234
|
-
itemName: string,
|
|
2235
|
-
version: string,
|
|
2236
|
-
statType: Gallery.VSCodeWebExtensionStatisicsType
|
|
2237
|
-
): Promise<void> {
|
|
2238
|
-
|
|
2239
|
-
return this.beginRequest<void>({
|
|
2240
|
-
apiVersion: "7.2-preview.1",
|
|
2241
|
-
method: "POST",
|
|
2242
|
-
routeTemplate: "_apis/public/gallery/itemName/{itemName}/version/{version}/statType/{statType}/vscodewebextension",
|
|
2243
|
-
routeValues: {
|
|
2244
|
-
itemName: itemName,
|
|
2245
|
-
version: version,
|
|
2246
|
-
statType: statType
|
|
2247
|
-
}
|
|
2248
|
-
});
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
}
|