habit-export-center
Version:
habit's front end solution to export list
18 lines (17 loc) • 698 B
TypeScript
import { ExportEntry, ExportRequest, ExportResponse } from '../types/export-types';
/**
* Fetches a list of exports from the API
*/
export declare function listExports(userKey: string, customEndpoint?: string): Promise<ExportEntry[]>;
/**
* Creates a new export
*/
export declare function createExport(userKey: string, req: ExportRequest, appId?: string, customEndpoint?: string): Promise<ExportResponse>;
/**
* Downloads an export by ID
*/
export declare function downloadExport(userKey: string, id: string, customEndpoint?: string): Promise<Blob>;
/**
* Deletes an export by ID
*/
export declare function deleteExport(userKey: string, id: string, customEndpoint?: string): Promise<void>;