export type GetApiGbdsV2OperationsPingOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * gbds-ping * * GET /gbds/v2/operations/ping */ export const getApiGbdsV2OperationsPing = async (options?: GetApiGbdsV2OperationsPingOptions) => { const {baseUrl = "http://:8085/gbds/v2", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/gbds/v2/operations/ping${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };