diff options
author | Grégoire Aubert <gregoire.aubert@sonarsource.com> | 2018-05-30 16:33:07 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-06-12 20:21:00 +0200 |
commit | 32f2ea7b9d89a31350e2f0c2db9172f637cd21c6 (patch) | |
tree | ff369725a32ce6f4423d22a340a252c53a0734d8 /server/sonar-web/src/main/js/api | |
parent | 838ad5e985f44385a79574900707478f97ba1567 (diff) | |
download | sonarqube-32f2ea7b9d89a31350e2f0c2db9172f637cd21c6.tar.gz sonarqube-32f2ea7b9d89a31350e2f0c2db9172f637cd21c6.zip |
SONAR-10696 Move set license form to core-extension-license
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r-- | server/sonar-web/src/main/js/api/marketplace.ts | 23 |
1 files changed, 1 insertions, 22 deletions
diff --git a/server/sonar-web/src/main/js/api/marketplace.ts b/server/sonar-web/src/main/js/api/marketplace.ts index adbb4442343..0681931e509 100644 --- a/server/sonar-web/src/main/js/api/marketplace.ts +++ b/server/sonar-web/src/main/js/api/marketplace.ts @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -import { getJSON, postJSON } from '../helpers/request'; +import { getJSON } from '../helpers/request'; import throwGlobalError from '../app/utils/throwGlobalError'; export interface License { @@ -37,14 +37,6 @@ export interface License { type: string; } -export interface EditionStatus { - currentEditionKey?: string; -} - -export function getEditionStatus(): Promise<EditionStatus> { - return getJSON('/api/editions/status'); -} - export function showLicense(): Promise<License> { return getJSON('/api/editions/show_license').catch((e: { response: Response }) => { if (e.response && e.response.status === 404) { @@ -54,19 +46,6 @@ export function showLicense(): Promise<License> { }); } -export function getLicensePreview(data: { - license: string; -}): Promise<{ - nextEditionKey: string; - previewStatus: 'NO_INSTALL' | 'AUTOMATIC_INSTALL' | 'MANUAL_INSTALL'; -}> { - return postJSON('/api/editions/preview', data).catch(throwGlobalError); -} - export function getFormData(): Promise<{ serverId: string; ncloc: number }> { return getJSON('/api/editions/form_data').catch(throwGlobalError); } - -export function applyLicense(data: { license: string }): Promise<EditionStatus> { - return postJSON('/api/editions/apply_license', data).catch(throwGlobalError); -} |