Skip to main content

TypeAlias.ImportMapperDestinationField

type ImportMapperDestinationField = {
enumValues?: readonly string[];
field: string;
isArray?: boolean;
required: boolean;
};

A field an import-mapper row can write to, as a dot-path into the passport-creation input (e.g. product.name). required marks fields the input schema makes mandatory — the mapper form seeds a locked row for each. enumValues is set for fields tagged enumSelect on the schema: their value is constrained to a closed set, so the form renders a const-only select of these literals instead of a free-text path input.

Properties

PropertyTypeDescription
enumValues?readonly string[]-
fieldstring-
isArray?booleantrue for an array field exposed as a whole-array copy destination: a single path rule writes the source array verbatim (its element shape must already match this schema). Such destinations are JSON-only — a CSV cell is a string, not an array — so the builder hides them for CSV mappers.
requiredboolean-