66efcb88e1
Co-authored-by: nova28 <17953305+nova28@users.noreply.github.com> Co-authored-by: Carlos Florencio <carlosmflorencio@gmail.com>
9 lines
353 B
TypeScript
9 lines
353 B
TypeScript
import { fetchBlob } from "../client";
|
|
|
|
const BASE = (workspaceId: string) => `/api/v1/workspaces/${workspaceId}/automations/export`;
|
|
|
|
/** Fetches the workspace's automations as a zip archive (one file per automation). */
|
|
export async function exportAutomationsZip(workspaceId: string): Promise<Blob> {
|
|
return fetchBlob(`${BASE(workspaceId)}/zip`);
|
|
}
|