export type Tempo = {classType?: string | undefined, id?: number | undefined, key?: string | undefined, type?: ('JWT_TOKEN_BLACK_LIST' | 'CASHOUT_REFRESH_TOKEN' | 'CASHOUT_WALLET_REFRESH_TOKEN' | 'INQUIRY_REFERESH_TOKEN' | 'BILL_REFRESH_TOKEN' | 'FAILED_CASHOUT_TRANSFER' | 'AYRIA_PAYMENT_VERIFY_WAITING' | 'INVOICE_EXTRA_INFO' | 'INVOICE_EXTRA_INFO_APG' | 'TRANSFER_SMS_CODE' | 'CURRENT_IPG_COMPANY' | 'MOBILE_OTP' | 'SIGNUP_GRANT' | 'MOBTAKERAN_TOKEN_KEY') | undefined, value?: string | undefined}; export type UpdateApiApiTemposArgs = {body: Tempo}; export type UpdateApiApiTemposOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * updateTempo * * PUT /api/tempos */ export const updateApiApiTempos = async (args: UpdateApiApiTemposArgs, options: UpdateApiApiTemposOptions) => { 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/tempos${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() };