export type Alumnos = {apellidos?: string | undefined, clase?: number | undefined, clase_name?: string | undefined, condicion_medica?: string | undefined, discapacitado?: string | undefined, edad?: number | undefined, estatus?: string | undefined, fecha_creacion?: string | undefined, fecha_nacimiento?: string | undefined, fecha_terminos?: string | undefined, horario?: string | undefined, id?: number | undefined, inmueble?: number | undefined, inmueble_name?: string | undefined, nombre?: string | undefined, reserva?: number | undefined, tipo_sangre?: string | undefined, usuario?: number | undefined, usuario_name?: string | undefined}; export type UpdateApiApiAlumnoArgs = {body: Alumnos}; export type UpdateApiApiAlumnoOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * updateAlumnos * * PUT /api/alumno */ export const updateApiApiAlumno = async (args: UpdateApiApiAlumnoArgs, options: UpdateApiApiAlumnoOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/api/alumno${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PUT", 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 res.blob() };