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.
58 lines (56 loc) • 1.93 kB
JavaScript
;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/codelists/hybrid-document.gen.ts
var hybrid_document_gen_exports = {};
__export(hybrid_document_gen_exports, {
HYBRID_DOCUMENT: () => HYBRID_DOCUMENT,
PUBLISHED: () => PUBLISHED,
hybridDocumentCode: () => hybridDocumentCode
});
module.exports = __toCommonJS(hybrid_document_gen_exports);
var PUBLISHED = "Factur-X";
var HYBRID_DOCUMENT = [
{
value: "INVOICE",
definition: "The hybrid document contains an invoice or credit note",
usage: "Only applicable in Factur-X / ZUGFeRD"
},
{
value: "ORDER",
definition: "The hybrid document contains an order",
usage: "Only applicable in Order-X"
},
{
value: "ORDER_RESPONSE",
definition: "The hybrid document contains an order response",
usage: "Only applicable in Order-X"
},
{
value: "ORDER_CHANGE",
definition: "Thy hybrid document contains an order change",
usage: "Only applicable in Order-X"
}
];
var hybridDocumentCode = HYBRID_DOCUMENT.map(({ value }) => value);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
HYBRID_DOCUMENT,
PUBLISHED,
hybridDocumentCode
});