UNPKG

@flatfile/safe-api

Version:

Flatfile Safe API client with streaming capabilities

14 lines (13 loc) 648 B
import { FlatfileClient, Flatfile } from '@flatfile/api'; import { RetryOptions } from '../utils/requests/safe.request'; export type EnhancedSheets = FlatfileClient['sheets'] & { get(sheetId: string, options?: RetryOptions): Promise<Flatfile.Sheet>; list(opts: Flatfile.ListSheetsRequest, options?: RetryOptions): Promise<{ data: Flatfile.Sheet[]; }>; validate(sheetId: string, options?: RetryOptions): Promise<{ success: true; }>; find(nameOrSlug: string, opts?: Flatfile.ListWorkbooksRequest): Promise<Flatfile.Sheet>; }; export declare function getSheetsExtension(client: FlatfileClient): EnhancedSheets;