export type GetApiConsultationScheduleNotificationsArgs = {body: {consultation_request?: ({cause?: string | undefined, starts_at?: string | undefined, ends_at?: string | undefined, confirmed_at?: string | undefined, reminder?: boolean | undefined, sms_reminder?: boolean | undefined, schedule_type?: string | undefined, overlaps_with?: number | undefined, price?: number | undefined, account_confirmed?: boolean | undefined, person_id?: number | undefined, account_id?: number | undefined}) | undefined}}; export type GetApiConsultationScheduleNotificationsOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * GET /consultation_schedule_notifications * * GET /consultation_schedule_notifications */ export const getApiConsultationScheduleNotifications = async (args: GetApiConsultationScheduleNotificationsArgs, options?: GetApiConsultationScheduleNotificationsOptions) => { const {baseUrl = "https://api.example.test", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/consultation_schedule_notifications${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };