UNPKG

@payloadcms/plugin-import-export

Version:

Import-Export plugin for Payload

32 lines 827 B
import type { PayloadRequest, Sort, TypedUser, Where } from 'payload'; export type Export = { collectionSlug: string; /** * If true, enables debug logging */ debug?: boolean; drafts?: 'no' | 'yes'; exportsCollection: string; fields?: string[]; format: 'csv' | 'json'; globals?: string[]; id: number | string; locale?: string; name: string; slug: string; sort: Sort; user: string; userCollection: string; where?: Where; }; export type CreateExportArgs = { /** * If true, stream the file instead of saving it */ download?: boolean; input: Export; req: PayloadRequest; user?: TypedUser; }; export declare const createExport: (args: CreateExportArgs) => Promise<Response | undefined>; //# sourceMappingURL=createExport.d.ts.map