payloadcms-import-export-plugin
Version:
A comprehensive Payload CMS plugin that enables seamless import and export of collection data with support for CSV and JSON formats, featuring advanced field mapping, duplicate handling, and batch processing capabilities.
19 lines (18 loc) • 795 B
TypeScript
import type { Config } from 'payload';
import type { ImportExportPluginConfig, ToCSVFunction } from './types.js';
export declare const importExportPlugin: (pluginConfig: ImportExportPluginConfig) => (config: Config) => Config;
declare module 'payload' {
interface FieldCustom {
'plugin-import-export'?: {
/**
* When `true` the field is **completely excluded** from the import-export plugin:
* - It will not appear in the “Fields to export” selector.
* - It is hidden from the preview list when no specific fields are chosen.
* - Its data is omitted from the final CSV / JSON export.
* @default false
*/
disabled?: boolean;
toCSV?: ToCSVFunction;
};
}
}