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:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user