export type CreateApiV1TasksIdActivateAllArgs = {id: string}; export type CreateApiV1TasksIdActivateAllOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * activateAll * * POST /v1/tasks/{id}/activateAll */ export const createApiV1TasksIdActivateAll = async (args: CreateApiV1TasksIdActivateAllArgs, options?: CreateApiV1TasksIdActivateAllOptions) => { const {baseUrl = "https://api.cloudally.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v1/tasks/${encodeURIComponent(String(args.id))}/activateAll${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };