@spartacus/cart
Version:
`@spartacus/cart` is a package that you can include in your application, which allows you to use various cart features.
37 lines (36 loc) • 1.13 kB
TypeScript
import { Translatable } from '@spartacus/core';
import { ExportFileOptions } from '@spartacus/storefront';
export interface ExportColumn {
/**
* `Translatable` object used to translate column heading to the language currently set in a storefront.
* If `key` value was provided it also requires to have a representation in trasnlation file.
*/
name: Translatable;
/**
* Dot notation string which refers to specified `OrderEntry` attribute.
*/
value: string;
}
export interface ExportConfig {
/**
* Specifies which columns besides code and quantity can be exported to CSV file.
*/
additionalColumns?: ExportColumn[];
/**
* Flag used to determine if message informing about download starting proccess
* should be visible to user.
*/
messageEnabled?: boolean;
/**
* Property dedicated to delay download starting process.
*/
downloadDelay?: number;
/**
* Metadata for exported file.
*/
fileOptions: ExportFileOptions;
/**
* Determines entries limit in exported CSV file.
*/
maxEntries?: number;
}