aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/marketplace.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/api/marketplace.ts b/server/sonar-web/src/main/js/api/marketplace.ts
index 4cff1587d94..30c801ae0f2 100644
--- a/server/sonar-web/src/main/js/api/marketplace.ts
+++ b/server/sonar-web/src/main/js/api/marketplace.ts
@@ -41,7 +41,8 @@ export interface EditionStatus {
| 'AUTOMATIC_IN_PROGRESS'
| 'MANUAL_IN_PROGRESS'
| 'AUTOMATIC_READY'
- | 'AUTOMATIC_FAILURE';
+ | 'AUTOMATIC_FAILURE'
+ | 'UNINSTALL_IN_PROGRESS';
}
export function getEditionStatus(): Promise<EditionStatus> {
@@ -67,3 +68,7 @@ export function getLicensePreview(data: {
export function applyLicense(data: { license: string }): Promise<EditionStatus> {
return postJSON('/api/editions/apply_license', data).catch(throwGlobalError);
}
+
+export function uninstallEdition(): Promise<void | Response> {
+ return postJSON('/api/editions/uninstall').catch(throwGlobalError);
+}