UNPKG

@e-invoice-eu/core

Version:

Generate e-invoices (E-Rechnung in German) conforming to EN16931 (Factur-X/ZUGFeRD, UBL, CII, XRechnung aka X-Rechnung) from LibreOffice Calc/Excel data or JSON.

28 lines (27 loc) 907 B
import * as XLSX from '@e965/xlsx'; import { Logger } from '../logger.interface'; import { Mapping } from './mapping.interface'; import { Invoice } from '../invoice'; export declare class MappingService { private readonly logger; private readonly validator; private readonly validationService; private readonly formatFactoryService; constructor(logger: Logger); private validateMapping; transform(dataBuffer: Uint8Array | XLSX.WorkBook, format: string, mapping: Mapping): Invoice; private cleanAttributes; private transformObject; private transformArray; private makeValidationError; private computeSectionIndices; private unquoteSheetName; private resolveValue; private unquoteLiteral; private getCellValue; private getDateValue; private getSchema; private fillSectionRanges; private getOffset; private getInstancePath; }