import { ajaxService } from './services/ajax.service'; export interface AppBootstrapParams { ajaxUrl: string; nonce: string; bookingAppUrl: string; } export class App { static params: AppBootstrapParams; static bootstrap(params: AppBootstrapParams): void { App.params = params; ajaxService.init(params); } static getLocationBookingUrl(locationUuid: string, test: boolean = false): string { return `${App.params.bookingAppUrl}/${locationUuid}/services${test ? '?test=true' : ''}`; } }