Skip to main content

Variable.importMapperValueTypes

const importMapperValueTypes: readonly ["boolean", "gtin", "isoDate", "countryCode", "currencyCode", "email", "url", "integer", "decimal", "quantityWithUnit"];

The value patterns the CSV column profiler can recognize, ordered from most to least specific: the detection returns the first one every value of a column matches, so a column of valid GTINs reports gtin rather than integer. The order is load-bearing, which is why this is a tuple and not an ObjectEnum — reordering it changes what a column is reported as.

Detection itself (regex + Intl, never a model call) lives with the browser that reads the file: sdk/apps/admin/src/lib/import-mapper-value-type.ts. Only the vocabulary is shared, because the mapping-suggestion endpoint has to validate the valueType a client sends in a column profile.