Interface CatalogAddProps

catalog add operation configuration

parameters for adding items to the catalog. supports both json and csv formats.

interface CatalogAddProps {
    entity: string;
    data: Record<string, any>[];
    mainUnit?: string;
    formatData?: boolean;
}

Properties

entity: string

entity type name (e.g., "products", "articles", "users")

data: Record<string, any>[]

array of items to add to catalog

mainUnit?: string

primary identifier field name (e.g., "id", "product_id")

formatData?: boolean

auto-flatten nested objects (default: true)