diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2018-02-14 10:51:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 10:51:22 +0100 |
commit | 8053754d961994e78ed973d37005bb6b5e8ceeae (patch) | |
tree | 42dce69c3ca726158e88e95544846449c84f4469 /server/sonar-web/src/main/js/api/system.ts | |
parent | 94a57989f8160badd5c1e7cbb66fdbceaa3bb38d (diff) | |
download | sonarqube-8053754d961994e78ed973d37005bb6b5e8ceeae.tar.gz sonarqube-8053754d961994e78ed973d37005bb6b5e8ceeae.zip |
rewrite maintenance app in react (#3055)
Diffstat (limited to 'server/sonar-web/src/main/js/api/system.ts')
-rw-r--r-- | server/sonar-web/src/main/js/api/system.ts | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/api/system.ts b/server/sonar-web/src/main/js/api/system.ts index 794000c0389..597669a2dab 100644 --- a/server/sonar-web/src/main/js/api/system.ts +++ b/server/sonar-web/src/main/js/api/system.ts @@ -76,7 +76,7 @@ export function getSystemInfo(): Promise<SysInfo> { return getJSON('/api/system/info').catch(throwGlobalError); } -export function getSystemStatus(): Promise<any> { +export function getSystemStatus(): Promise<{ id: string; version: string; status: string }> { return getJSON('/api/system/status'); } @@ -87,11 +87,19 @@ export function getSystemUpgrades(): Promise<{ return getJSON('/api/system/upgrades'); } -export function getMigrationStatus(): Promise<any> { +export function getMigrationStatus(): Promise<{ + message?: string; + startedAt?: string; + state: string; +}> { return getJSON('/api/system/db_migration_status'); } -export function migrateDatabase() { +export function migrateDatabase(): Promise<{ + message?: string; + startedAt?: string; + state: string; +}> { return postJSON('/api/system/migrate_db'); } |