{"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";AAAA,sCAAuC;AAIvC,uGAAuG;AACvG;;;;;;;;;GASG;AACH,MAAM,WAAW,GAA0B,MAAM,CAAC,OAAO,CAAC;AAuC1D,iBAAS,WAAW,CAAC","sourcesContent":["import client = require(\"./index.mjs\");\nimport type { EasyInvoiceError as EasyInvoiceErrorClass } from \"./error.js\";\nimport type * as types from \"./types.js\";\n\n// The CommonJS entry loads the ES module entry through the synchronous require(esm) of Node.js 22.14+.\n/**\n * Stateless invoice client for server-side Node.js applications using CommonJS.\n *\n * @example\n * import easyinvoice = require(\"easyinvoice\");\n *\n * easyinvoice.createInvoice()\n *   .then((result) => console.log(result))\n *   .catch((error) => console.error(error));\n */\nconst easyinvoice: typeof client.default = client.default;\n\n// The merged namespace keeps the public types available to CommonJS TypeScript consumers.\n// eslint-disable-next-line @typescript-eslint/no-namespace -- required for `export =` with types.\nnamespace easyinvoice {\n  /** API, network, timeout, or response-validation failure. See {@link EasyInvoiceErrorClass}. */\n  export type EasyInvoiceError = EasyInvoiceErrorClass;\n  /** HTTP response details and underlying cause for an error. See {@link types.EasyInvoiceErrorOptions}. */\n  export type EasyInvoiceErrorOptions = types.EasyInvoiceErrorOptions;\n  /** Contact details printed in an invoice address block. See {@link types.InvoiceSenderOrClient}. */\n  export type InvoiceSenderOrClient = types.InvoiceSenderOrClient;\n  /** Product or service line item with quantity, price, and tax rate. See {@link types.InvoiceProduct}. */\n  export type InvoiceProduct = types.InvoiceProduct;\n  /** Currency, number formatting, and page layout options. See {@link types.InvoiceSettings}. */\n  export type InvoiceSettings = types.InvoiceSettings;\n  /** Base64-encoded invoice logo and background artwork. See {@link types.InvoiceImages}. */\n  export type InvoiceImages = types.InvoiceImages;\n  /** Replacement text for the invoice's printed labels. See {@link types.InvoiceTranslations}. */\n  export type InvoiceTranslations = types.InvoiceTranslations;\n  /** Invoice identifier and dates formatted for display. See {@link types.InvoiceInformation}. */\n  export type InvoiceInformation = types.InvoiceInformation;\n  /** Invoice payload sent to the API for validation and calculation. See {@link types.InvoiceData}. */\n  export type InvoiceData = types.InvoiceData;\n  /** Custom HTML template options. See {@link types.InvoiceCustomizations}. */\n  export type InvoiceCustomizations = types.InvoiceCustomizations;\n  /** Rounded invoice amounts calculated by the API. See {@link types.InvoiceCalculations}. */\n  export type InvoiceCalculations = types.InvoiceCalculations;\n  /** Subtotal, tax amount, and total for one line item. See {@link types.ProductCalculations}. */\n  export type ProductCalculations = types.ProductCalculations;\n  /** Tax amounts grouped by percentage rate. See {@link types.TaxCalculations}. */\n  export type TaxCalculations = types.TaxCalculations;\n  /** Returned PDF URL, expiry, calculations, and additional server fields. See {@link types.CreateInvoiceResult}. */\n  export type CreateInvoiceResult = types.CreateInvoiceResult;\n  /** Explicit base64 PDF output with calculations. */\n  export type CreateInvoiceBase64Result = types.CreateInvoiceBase64Result;\n  /** Client-side URL or base64 output selection. */\n  export type CreateInvoiceOptions = types.CreateInvoiceOptions;\n}\n\nexport = easyinvoice;\n"]}