ImportParser
Validates and parses CSV files into a data structure which can then be used to created new entities. This is used internally by the Importer.
parseProducts
(input: string | Stream, mainLanguage: LanguageCode = this.configService.defaultLanguageCode) => Promise<ParseResult<ParsedProductWithVariants>>Parses the contents of the product import CSV file and returns a data structure which can then be used to populate Vendure using the FastImporterService.
The intermediate representation of an OptionGroup after it has been parsed by the ImportParser.
code
stringAn optional explicit code for the option group, parsed from the CSV name:code syntax.
When two products specify the same code, they will share the option group.
translations
Array<{ languageCode: LanguageCode; name: string; values: string[]; }>The intermediate representation of a Facet after it has been parsed by the ImportParser.
translations
Array<{ languageCode: LanguageCode; facet: string; value: string; }>The intermediate representation of a ProductVariant after it has been parsed by the ImportParser.
sku
stringprice
numbertaxCategory
stringstockOnHand
numbertrackInventory
GlobalFlagassetPaths
string[]facets
ParsedFacet[]translations
Array<{ languageCode: LanguageCode; optionValues: string[]; customFields: { [name: string]: string; }; }>The intermediate representation of a Product after it has been parsed by the ImportParser.
assetPaths
string[]optionGroups
ParsedOptionGroup[]facets
ParsedFacet[]translations
Array<{ languageCode: LanguageCode; name: string; slug: string; description: string; customFields: { [name: string]: string; }; }>The data structure into which an import CSV file is parsed by the
ImportParser parseProducts() method.
The result returned by the ImportParser parseProducts() method.