Skip to main content

TypeAlias.ImportMapperValueType

type ImportMapperValueType = typeof importMapperValueTypes[number];

Pattern shared by every non-empty value of a CSV column, reported to the mapping-suggestion model as evidence for refusing a destination whose documented shape disagrees.

  • boolean: true/false/yes/no/y/n. 0/1 are deliberately excluded — indistinguishable from a numeric column.
  • gtin: 8, 12, 13 or 14 digits with a valid mod-10 check digit, so a plain 13-digit id is not mistaken for a barcode.
  • isoDate: ISO 8601 date, optionally with a time part.
  • countryCode: ISO 3166-1 alpha-2, membership-tested via Intl.
  • currencyCode: ISO 4217, membership-tested via Intl.
  • email, url: an absolute http(s) URL for the latter — a site-relative path is not one.
  • integer, decimal: a comma decimal separator counts, it is the norm in French-language feeds.
  • quantityWithUnit: a number glued to its unit ("200g", "1,8 kg", "3%"). The failure mode the profiler exists for: neither a number nor a unit code, and mapping it onto a numeric destination fails every row.