export type Archivo = {height?: number | undefined, timestamp?: string | undefined, uri?: (string | null) | undefined, fileName?: (string | null) | undefined, data?: (string | null) | undefined}; export type EmpleadoUpdatePerfilrqst = {empleadoID?: string | undefined, imagenPerfil?: Archivo | undefined, nombres?: (string | null) | undefined, apellidos?: (string | null) | undefined, telefono?: (string | null) | undefined, genero?: (string | null) | undefined, idioma?: (string | null) | undefined, storeID?: (number | null) | undefined, storeRecibePremiosID?: (number | null) | undefined, accountID?: (number | null) | undefined}; export type PatchApiV1ApiEmpleadosUpdatePerfilEmpleadoAppArgs = {body: EmpleadoUpdatePerfilrqst}; export type PatchApiV1ApiEmpleadosUpdatePerfilEmpleadoAppOptions = {baseUrl: string, Bearer?: string | undefined, fetch?: typeof fetch | undefined}; /** * PATCH /v1/api/Empleados/UpdatePerfilEmpleado/App */ export const patchApiV1ApiEmpleadosUpdatePerfilEmpleadoApp = async (args: PatchApiV1ApiEmpleadosUpdatePerfilEmpleadoAppArgs, options: PatchApiV1ApiEmpleadosUpdatePerfilEmpleadoAppOptions) => { const {baseUrl, fetch: fetchFn = fetch, Bearer} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") if (Bearer !== undefined) headers.set("Authorization", Bearer) const url = `${baseUrl.replace(/\/+$/, '')}/v1/api/Empleados/UpdatePerfilEmpleado/App${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "PATCH", 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 };