fix(api): add missing fetchApiBlob to api export object

downloadSkippedCsv and downloadFailedCsv call api.fetchApiBlob()
but it was not exposed on the api object — causing
"o.fetchApiBlob is not a function" at runtime.
This commit is contained in:
2026-06-01 23:30:19 +03:00
parent 28b28338c5
commit f16096cbcd

View File

@@ -415,6 +415,7 @@ export const api = {
postApi: postApi as <T = unknown>(endpoint: string, body: unknown, options?: FetchOptions) => Promise<T>,
deleteApi: deleteApi as <T = unknown>(endpoint: string, options?: FetchOptions) => Promise<T>,
requestApi: requestApi as <T = unknown>(endpoint: string, method?: string, body?: unknown, requestOptions?: FetchOptions) => Promise<T>,
fetchApiBlob: fetchApiBlob as (endpoint: string, options?: FetchOptions) => Promise<Blob>,
// #region taskEndpoints [C:2] [TYPE Block] [SEMANTICS tasks, api, crud]
getPlugins: <T = unknown>() => fetchApi<T>('/plugins'),