mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-15 20:30:33 +00:00
20 lines
470 B
TypeScript
20 lines
470 B
TypeScript
import { Transformer } from '@/lib/Transformer/Transformer';
|
|
|
|
export class ImportFileMetaTransformer extends Transformer {
|
|
/**
|
|
* Include these attributes to sale invoice object.
|
|
* @returns {Array}
|
|
*/
|
|
public includeAttributes = (): string[] => {
|
|
return ['map'];
|
|
};
|
|
|
|
public excludeAttributes = (): string[] => {
|
|
return ['id', 'filename', 'columns', 'mappingParsed', 'mapping'];
|
|
}
|
|
|
|
map(importFile) {
|
|
return importFile.mappingParsed;
|
|
}
|
|
}
|