UNPKG

node-zugferd

Version:

A Node.js library for creating ZUGFeRD/Factur-X compliant documents. Generating XML and embedding it into PDF/A files, enabling seamless e-invoicing and digital document compliance.

31 lines (27 loc) 1.22 kB
import { P as Profile, B as BaseZugferdContext, I as InferSchema } from './index-ypDm5Z05.js'; export { MINIMUM, ProfileMinimum } from './profile/minimum.js'; export { BASIC_WL, ProfileBasicWL } from './profile/basic-wl.js'; export { BASIC, ProfileBasic } from './profile/basic.js'; export { COMFORT, COMFORT as EN16931, ProfileComfort, ProfileComfort as ProfileEN16931 } from './profile/en16931.js'; export { EXTENDED, ProfileExtended } from './profile/extended.js'; import 'zod'; import './codelist/hybrid-document.js'; import './codelist/filename.js'; import './codelist/hybrid-version.js'; import './codelist/hybrid-conformance.js'; import 'pdf-lib'; import 'fast-xml-parser'; declare const createProfile: <P extends Profile>(options: P) => P & { parse: (ctx: { context: BaseZugferdContext; data: InferSchema<Profile>; }) => any; validate: (data: string | Buffer | { file: string; }) => Promise<boolean>; }; declare const getXsdPath: (profile: Profile | { xsdPath?: Profile["xsdPath"]; }) => string | Promise<string> | undefined; declare const dateTimeStringFormatter: (date: unknown) => string | undefined; export { createProfile, dateTimeStringFormatter, getXsdPath };