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.
11 lines (10 loc) • 346 B
TypeScript
import type { Document } from 'payload';
import type { ToCSVFunction } from '../types.js';
type Args = {
doc: Document;
fields?: string[];
prefix?: string;
toCSVFunctions: Record<string, ToCSVFunction>;
};
export declare const flattenObject: ({ doc, fields, prefix, toCSVFunctions, }: Args) => Record<string, unknown>;
export {};