Skip to main content

TypeAlias.ImportMapperRowType

type ImportMapperRowType = ObjectEnum<typeof ImportMapperRowType>;

Type of an import-mapper row, describing how source is interpreted.

  • path: source is a JSON path / accessor expression evaluated against the imported JSON to extract a value for destination. Used by JSON mappers.
  • column: source is a zero-based column index into a CSV row; the cell at that index is assigned to destination. Used by CSV mappers.
  • const: source is a literal value assigned as-is to destination, regardless of the imported content. Used by both JSON and CSV mappers (e.g. enum/const-only destinations).