import { HttpSetup } from 'src/core/public' ; import { API_BASE_PATH } from '../../../common/constants' ; export function putLicense ( http , license , acknowledge ) { return http . put ( API_BASE_PATH , { query : { acknowledge : acknowledge ? 'true' : '' , } , body : license , headers : { contentType : 'application/json' , } , cache : 'no-cache' , } ) ; } export function startBasic ( http , acknowledge ) { return http . post ( `${ API_BASE_PATH }/start_basic` , { query : { acknowledge : acknowledge ? 'true' : '' , } , headers : { contentType : 'application/json' , } , body : null , cache : 'no-cache' , } ) ; } export function startTrial ( http ) { return http . post ( `${ API_BASE_PATH }/start_trial` , { headers : { contentType : 'application/json' , } , cache : 'no-cache' , } ) ; } export function canStartTrial ( http ) { return http . get ( `${ API_BASE_PATH }/start_trial` , { headers : { contentType : 'application/json' , } , cache : 'no-cache' , } ) ; } export function getPermissions ( http ) { return http . post ( `${ API_BASE_PATH }/permissions` , { headers : { contentType : 'application/json' , } , cache : 'no-cache' , } ) ; }