@ripwords/myinvois-client 0.0.9 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun.lock +89 -132
- package/dist/0X-C4IRh_fJ.d.ts +211 -0
- package/dist/0X-C4IRh_fJ.d.ts.map +1 -0
- package/dist/0X-Yw7mZEro.d.cts +211 -0
- package/dist/0X-Yw7mZEro.d.cts.map +1 -0
- package/dist/1X-Brnls9Jh.d.ts +112 -0
- package/dist/1X-Brnls9Jh.d.ts.map +1 -0
- package/dist/1X-BwpSoT3o.d.cts +20 -0
- package/dist/1X-BwpSoT3o.d.cts.map +1 -0
- package/dist/1X-C-_KHV-Q.d.ts +20 -0
- package/dist/1X-C-_KHV-Q.d.ts.map +1 -0
- package/dist/1X-D_aUVsuM.d.cts +112 -0
- package/dist/1X-D_aUVsuM.d.cts.map +1 -0
- package/dist/2X-Bb6elyzV.d.cts +40 -0
- package/dist/2X-Bb6elyzV.d.cts.map +1 -0
- package/dist/2X-DkS1BoE5.d.ts +40 -0
- package/dist/2X-DkS1BoE5.d.ts.map +1 -0
- package/dist/2X-UdQcQW24.d.ts +140 -0
- package/dist/2X-UdQcQW24.d.ts.map +1 -0
- package/dist/2X-hClUyw26.d.cts +140 -0
- package/dist/2X-hClUyw26.d.cts.map +1 -0
- package/dist/3X-C7VFD-n-.d.cts +21 -0
- package/dist/3X-C7VFD-n-.d.cts.map +1 -0
- package/dist/3X-CLMESDvz.d.cts +62 -0
- package/dist/3X-CLMESDvz.d.cts.map +1 -0
- package/dist/3X-DFI-4RQQ.d.ts +21 -0
- package/dist/3X-DFI-4RQQ.d.ts.map +1 -0
- package/dist/3X-DVDyspgb.d.ts +62 -0
- package/dist/3X-DVDyspgb.d.ts.map +1 -0
- package/dist/4X-CIJ2JJ2w.d.ts +31 -0
- package/dist/4X-CIJ2JJ2w.d.ts.map +1 -0
- package/dist/4X-CUR8jlaZ.d.ts +265 -0
- package/dist/4X-CUR8jlaZ.d.ts.map +1 -0
- package/dist/4X-CvScPJTf.d.cts +265 -0
- package/dist/4X-CvScPJTf.d.cts.map +1 -0
- package/dist/4X-DIfvpU6V.d.cts +31 -0
- package/dist/4X-DIfvpU6V.d.cts.map +1 -0
- package/dist/5X-BOUxhadJ.d.cts +22 -0
- package/dist/5X-BOUxhadJ.d.cts.map +1 -0
- package/dist/5X-C6db432h.d.ts +77 -0
- package/dist/5X-C6db432h.d.ts.map +1 -0
- package/dist/5X-COsZHUaQ.d.ts +22 -0
- package/dist/5X-COsZHUaQ.d.ts.map +1 -0
- package/dist/5X-CkLu7Vyd.d.cts +77 -0
- package/dist/5X-CkLu7Vyd.d.cts.map +1 -0
- package/dist/6X-C_fFIcJC.d.ts +105 -0
- package/dist/6X-C_fFIcJC.d.ts.map +1 -0
- package/dist/6X-ClZDKOTC.d.ts +16 -0
- package/dist/6X-ClZDKOTC.d.ts.map +1 -0
- package/dist/6X-DE7RJeV6.d.cts +16 -0
- package/dist/6X-DE7RJeV6.d.cts.map +1 -0
- package/dist/6X-Mf32k1d0.d.cts +105 -0
- package/dist/6X-Mf32k1d0.d.cts.map +1 -0
- package/dist/7X-BZyesooz.d.ts +16 -0
- package/dist/7X-BZyesooz.d.ts.map +1 -0
- package/dist/7X-Chtd6B66.d.cts +16 -0
- package/dist/7X-Chtd6B66.d.cts.map +1 -0
- package/dist/7X-DoCUcp-J.d.cts +71 -0
- package/dist/7X-DoCUcp-J.d.cts.map +1 -0
- package/dist/7X-kot_VccM.d.ts +71 -0
- package/dist/7X-kot_VccM.d.ts.map +1 -0
- package/dist/8X-Df4DOBOe.d.ts +110 -0
- package/dist/8X-Df4DOBOe.d.ts.map +1 -0
- package/dist/8X-DkuKAkHz.d.ts +19 -0
- package/dist/8X-DkuKAkHz.d.ts.map +1 -0
- package/dist/8X-DqZyMvyV.d.cts +19 -0
- package/dist/8X-DqZyMvyV.d.cts.map +1 -0
- package/dist/8X-Dr9RunRw.d.cts +110 -0
- package/dist/8X-Dr9RunRw.d.cts.map +1 -0
- package/dist/9X-BDgifncF.d.ts +15 -0
- package/dist/9X-BDgifncF.d.ts.map +1 -0
- package/dist/9X-BaoZtjWF.d.cts +98 -0
- package/dist/9X-BaoZtjWF.d.cts.map +1 -0
- package/dist/9X-BcAb6Uso.d.cts +15 -0
- package/dist/9X-BcAb6Uso.d.cts.map +1 -0
- package/dist/9X-BhBWlgxG.d.ts +98 -0
- package/dist/9X-BhBWlgxG.d.ts.map +1 -0
- package/dist/AX-BY72FohC.d.cts +111 -0
- package/dist/AX-BY72FohC.d.cts.map +1 -0
- package/dist/AX-D6XHWdrY.d.ts +111 -0
- package/dist/AX-D6XHWdrY.d.ts.map +1 -0
- package/dist/BX-CA0OmrUZ.d.cts +115 -0
- package/dist/BX-CA0OmrUZ.d.cts.map +1 -0
- package/dist/BX-D_0C8Qbd.d.ts +115 -0
- package/dist/BX-D_0C8Qbd.d.ts.map +1 -0
- package/dist/CX-HH4cSZRX.d.ts +128 -0
- package/dist/CX-HH4cSZRX.d.ts.map +1 -0
- package/dist/CX-glpQSL8x.d.cts +128 -0
- package/dist/CX-glpQSL8x.d.cts.map +1 -0
- package/dist/DX-DimL1MDM.d.cts +115 -0
- package/dist/DX-DimL1MDM.d.cts.map +1 -0
- package/dist/DX-Dx22ax_I.d.ts +115 -0
- package/dist/DX-Dx22ax_I.d.ts.map +1 -0
- package/dist/EX-BRWh1wFc.d.ts +107 -0
- package/dist/EX-BRWh1wFc.d.ts.map +1 -0
- package/dist/EX-Cx87Ruxl.d.cts +107 -0
- package/dist/EX-Cx87Ruxl.d.cts.map +1 -0
- package/dist/FX-D81UlxNN.d.cts +127 -0
- package/dist/FX-D81UlxNN.d.cts.map +1 -0
- package/dist/FX-RmjwAr40.d.ts +127 -0
- package/dist/FX-RmjwAr40.d.ts.map +1 -0
- package/dist/GX-9i7piP9G.d.cts +136 -0
- package/dist/GX-9i7piP9G.d.cts.map +1 -0
- package/dist/GX-CJyo7oDp.d.ts +136 -0
- package/dist/GX-CJyo7oDp.d.ts.map +1 -0
- package/dist/HX-20GVJAvl.d.cts +126 -0
- package/dist/HX-20GVJAvl.d.cts.map +1 -0
- package/dist/HX-XALBTdLA.d.ts +126 -0
- package/dist/HX-XALBTdLA.d.ts.map +1 -0
- package/dist/IX-6SZ55QKb.d.ts +23 -0
- package/dist/IX-6SZ55QKb.d.ts.map +1 -0
- package/dist/IX-D54NGPsc.d.cts +23 -0
- package/dist/IX-D54NGPsc.d.cts.map +1 -0
- package/dist/JX-C1RYcwQX.d.cts +104 -0
- package/dist/JX-C1RYcwQX.d.cts.map +1 -0
- package/dist/JX-hQ1XRmLp.d.ts +104 -0
- package/dist/JX-hQ1XRmLp.d.ts.map +1 -0
- package/dist/KX-BNwunEfn.d.ts +151 -0
- package/dist/KX-BNwunEfn.d.ts.map +1 -0
- package/dist/KX-gQHCIgtQ.d.cts +151 -0
- package/dist/KX-gQHCIgtQ.d.cts.map +1 -0
- package/dist/LX-CHYX3X3J.d.ts +123 -0
- package/dist/LX-CHYX3X3J.d.ts.map +1 -0
- package/dist/LX-CPurJGIh.d.cts +123 -0
- package/dist/LX-CPurJGIh.d.cts.map +1 -0
- package/dist/MX-BPGLWSUz.d.ts +153 -0
- package/dist/MX-BPGLWSUz.d.ts.map +1 -0
- package/dist/MX-BnyW5eHf.d.cts +153 -0
- package/dist/MX-BnyW5eHf.d.cts.map +1 -0
- package/dist/MyInvoisClient-BrNyMjS-.d.cts +178 -0
- package/dist/MyInvoisClient-BrNyMjS-.d.cts.map +1 -0
- package/dist/MyInvoisClient-CXu4pdl-.d.ts +178 -0
- package/dist/MyInvoisClient-CXu4pdl-.d.ts.map +1 -0
- package/dist/MyInvoisClient-Cnvb5iUC.js +299 -0
- package/dist/MyInvoisClient-Cnvb5iUC.js.map +1 -0
- package/dist/MyInvoisClient-DO1dJfQq.cjs +304 -0
- package/dist/MyInvoisClient-DO1dJfQq.cjs.map +1 -0
- package/dist/NX-B11fQuco.d.cts +122 -0
- package/dist/NX-B11fQuco.d.cts.map +1 -0
- package/dist/NX-RulN5Ml3.d.ts +122 -0
- package/dist/NX-RulN5Ml3.d.ts.map +1 -0
- package/dist/OX-DgKVSp7I.d.ts +26 -0
- package/dist/OX-DgKVSp7I.d.ts.map +1 -0
- package/dist/OX-T-ydRXQS.d.cts +26 -0
- package/dist/OX-T-ydRXQS.d.cts.map +1 -0
- package/dist/PX-DA4A2kEv.d.ts +121 -0
- package/dist/PX-DA4A2kEv.d.ts.map +1 -0
- package/dist/PX-p0n1SzvU.d.cts +121 -0
- package/dist/PX-p0n1SzvU.d.cts.map +1 -0
- package/dist/QX-CI1NccIB.d.cts +59 -0
- package/dist/QX-CI1NccIB.d.cts.map +1 -0
- package/dist/QX-DrFqsMEs.d.ts +59 -0
- package/dist/QX-DrFqsMEs.d.ts.map +1 -0
- package/dist/RX-Cm7vFcFN.d.ts +23 -0
- package/dist/RX-Cm7vFcFN.d.ts.map +1 -0
- package/dist/RX-DnNKol22.d.cts +23 -0
- package/dist/RX-DnNKol22.d.cts.map +1 -0
- package/dist/SX-BUjiWQYz.d.cts +40 -0
- package/dist/SX-BUjiWQYz.d.cts.map +1 -0
- package/dist/SX-CsPPTu-W.d.ts +40 -0
- package/dist/SX-CsPPTu-W.d.ts.map +1 -0
- package/dist/TX-DCY25MdR.d.ts +31 -0
- package/dist/TX-DCY25MdR.d.ts.map +1 -0
- package/dist/TX-DOEpsf05.d.cts +31 -0
- package/dist/TX-DOEpsf05.d.cts.map +1 -0
- package/dist/UX-DauyagHy.d.ts +18 -0
- package/dist/UX-DauyagHy.d.ts.map +1 -0
- package/dist/UX-DgUOnTFK.d.cts +18 -0
- package/dist/UX-DgUOnTFK.d.cts.map +1 -0
- package/dist/VX-DD4scgCe.d.ts +17 -0
- package/dist/VX-DD4scgCe.d.ts.map +1 -0
- package/dist/VX-kUX6LM-3.d.cts +17 -0
- package/dist/VX-kUX6LM-3.d.cts.map +1 -0
- package/dist/WX-CjkoppdY.d.ts +26 -0
- package/dist/WX-CjkoppdY.d.ts.map +1 -0
- package/dist/WX-DPfyPFFh.d.cts +26 -0
- package/dist/WX-DPfyPFFh.d.cts.map +1 -0
- package/dist/XX-C4C1gQZH.d.cts +828 -0
- package/dist/XX-C4C1gQZH.d.cts.map +1 -0
- package/dist/XX-sbsIUOnA.d.ts +828 -0
- package/dist/XX-sbsIUOnA.d.ts.map +1 -0
- package/dist/YX-BeT-LsiA.d.cts +20 -0
- package/dist/YX-BeT-LsiA.d.cts.map +1 -0
- package/dist/YX-DUdO8mRC.d.ts +20 -0
- package/dist/YX-DUdO8mRC.d.ts.map +1 -0
- package/dist/ZX-BuVTTq-D.d.cts +22 -0
- package/dist/ZX-BuVTTq-D.d.cts.map +1 -0
- package/dist/ZX-DwfcSA-D.d.ts +22 -0
- package/dist/ZX-DwfcSA-D.d.ts.map +1 -0
- package/dist/api/platform/platformLogin.d.ts +67 -0
- package/dist/api/platform/platformLogin.d.ts.map +1 -0
- package/dist/api/platform/platformLogin.js +3 -0
- package/dist/canonicalize-C_fNNpYr.cjs +80 -0
- package/dist/canonicalize-C_fNNpYr.cjs.map +1 -0
- package/dist/canonicalize-DNUrCGad.js +68 -0
- package/dist/canonicalize-DNUrCGad.js.map +1 -0
- package/dist/chunk-CUT6urMc.cjs +30 -0
- package/dist/classification-codes-B15PbWxz.d.cts +118 -0
- package/dist/classification-codes-B15PbWxz.d.cts.map +1 -0
- package/dist/classification-codes-C2X4xW5-.d.ts +118 -0
- package/dist/classification-codes-C2X4xW5-.d.ts.map +1 -0
- package/dist/country-code-DPeNFMMi.d.cts +543 -0
- package/dist/country-code-DPeNFMMi.d.cts.map +1 -0
- package/dist/country-code-DsI8Mbzx.d.ts +543 -0
- package/dist/country-code-DsI8Mbzx.d.ts.map +1 -0
- package/dist/currencies-DKuDflOO.d.ts +208 -0
- package/dist/currencies-DKuDflOO.d.ts.map +1 -0
- package/dist/currencies-S5g1gzBU.d.cts +208 -0
- package/dist/currencies-S5g1gzBU.d.cts.map +1 -0
- package/dist/e-invoice-BuwtFnlI.d.cts +44 -0
- package/dist/e-invoice-BuwtFnlI.d.cts.map +1 -0
- package/dist/e-invoice-C2TxhyrK.d.ts +44 -0
- package/dist/e-invoice-C2TxhyrK.d.ts.map +1 -0
- package/dist/getBaseUrl-CO7Jp27d.cjs +14 -0
- package/dist/getBaseUrl-CO7Jp27d.cjs.map +1 -0
- package/dist/getBaseUrl-Dx6RDC8I.js +8 -0
- package/dist/getBaseUrl-Dx6RDC8I.js.map +1 -0
- package/dist/hashCert-Bol7lIh2.js +62 -0
- package/dist/hashCert-Bol7lIh2.js.map +1 -0
- package/dist/hashCert-mlYEuYex.cjs +68 -0
- package/dist/hashCert-mlYEuYex.cjs.map +1 -0
- package/dist/hashSignedProperties-9vj5wlYR.js +83 -0
- package/dist/hashSignedProperties-9vj5wlYR.js.map +1 -0
- package/dist/hashSignedProperties-CU_ZqqmY.cjs +95 -0
- package/dist/hashSignedProperties-CU_ZqqmY.cjs.map +1 -0
- package/dist/index-B1DSs-wd.d.cts +16 -0
- package/dist/index-B1DSs-wd.d.cts.map +1 -0
- package/dist/index-CJNLQVjx.d.ts +1 -0
- package/dist/index-FTgB2nM6.d.ts +16 -0
- package/dist/index-FTgB2nM6.d.ts.map +1 -0
- package/dist/index-Wy1ONBjV.d.cts +1 -0
- package/dist/index.cjs +13 -97
- package/dist/index.d.ts +60 -5664
- package/dist/index.js +11 -93
- package/dist/index10.cjs +34 -0
- package/dist/index10.cjs.map +1 -0
- package/dist/index11.cjs +24 -0
- package/dist/index11.cjs.map +1 -0
- package/dist/index12.cjs +0 -0
- package/dist/index13.cjs +13 -0
- package/dist/index14.cjs +13 -0
- package/dist/index14.cjs.map +1 -0
- package/dist/index15.cjs +3 -0
- package/dist/index16.cjs +17 -0
- package/dist/index17.cjs +3 -0
- package/dist/index18.cjs +208 -0
- package/dist/index18.cjs.map +1 -0
- package/dist/index19.cjs +109 -0
- package/dist/index19.cjs.map +1 -0
- package/dist/index2.cjs +62 -0
- package/dist/index2.cjs.map +1 -0
- package/dist/index20.cjs +137 -0
- package/dist/index20.cjs.map +1 -0
- package/dist/index21.cjs +64 -0
- package/dist/index21.cjs.map +1 -0
- package/dist/index22.cjs +267 -0
- package/dist/index22.cjs.map +1 -0
- package/dist/index23.cjs +79 -0
- package/dist/index23.cjs.map +1 -0
- package/dist/index24.cjs +107 -0
- package/dist/index24.cjs.map +1 -0
- package/dist/index25.cjs +73 -0
- package/dist/index25.cjs.map +1 -0
- package/dist/index26.cjs +112 -0
- package/dist/index26.cjs.map +1 -0
- package/dist/index27.cjs +100 -0
- package/dist/index27.cjs.map +1 -0
- package/dist/index28.cjs +18 -0
- package/dist/index28.cjs.map +1 -0
- package/dist/index29.cjs +38 -0
- package/dist/index29.cjs.map +1 -0
- package/dist/index3.cjs +532 -0
- package/dist/index3.cjs.map +1 -0
- package/dist/index30.cjs +19 -0
- package/dist/index30.cjs.map +1 -0
- package/dist/index31.cjs +29 -0
- package/dist/index31.cjs.map +1 -0
- package/dist/index32.cjs +20 -0
- package/dist/index32.cjs.map +1 -0
- package/dist/index33.cjs +14 -0
- package/dist/index33.cjs.map +1 -0
- package/dist/index34.cjs +14 -0
- package/dist/index34.cjs.map +1 -0
- package/dist/index35.cjs +17 -0
- package/dist/index35.cjs.map +1 -0
- package/dist/index36.cjs +13 -0
- package/dist/index36.cjs.map +1 -0
- package/dist/index37.cjs +108 -0
- package/dist/index37.cjs.map +1 -0
- package/dist/index38.cjs +113 -0
- package/dist/index38.cjs.map +1 -0
- package/dist/index39.cjs +126 -0
- package/dist/index39.cjs.map +1 -0
- package/dist/index4.cjs +196 -0
- package/dist/index4.cjs.map +1 -0
- package/dist/index40.cjs +113 -0
- package/dist/index40.cjs.map +1 -0
- package/dist/index41.cjs +105 -0
- package/dist/index41.cjs.map +1 -0
- package/dist/index42.cjs +125 -0
- package/dist/index42.cjs.map +1 -0
- package/dist/index43.cjs +134 -0
- package/dist/index43.cjs.map +1 -0
- package/dist/index44.cjs +124 -0
- package/dist/index44.cjs.map +1 -0
- package/dist/index45.cjs +21 -0
- package/dist/index45.cjs.map +1 -0
- package/dist/index46.cjs +102 -0
- package/dist/index46.cjs.map +1 -0
- package/dist/index47.cjs +149 -0
- package/dist/index47.cjs.map +1 -0
- package/dist/index48.cjs +121 -0
- package/dist/index48.cjs.map +1 -0
- package/dist/index49.cjs +151 -0
- package/dist/index49.cjs.map +1 -0
- package/dist/index5.cjs +25 -0
- package/dist/index5.cjs.map +1 -0
- package/dist/index50.cjs +120 -0
- package/dist/index50.cjs.map +1 -0
- package/dist/index51.cjs +24 -0
- package/dist/index51.cjs.map +1 -0
- package/dist/index52.cjs +119 -0
- package/dist/index52.cjs.map +1 -0
- package/dist/index53.cjs +54 -0
- package/dist/index53.cjs.map +1 -0
- package/dist/index54.cjs +21 -0
- package/dist/index54.cjs.map +1 -0
- package/dist/index55.cjs +35 -0
- package/dist/index55.cjs.map +1 -0
- package/dist/index56.cjs +29 -0
- package/dist/index56.cjs.map +1 -0
- package/dist/index57.cjs +16 -0
- package/dist/index57.cjs.map +1 -0
- package/dist/index58.cjs +15 -0
- package/dist/index58.cjs.map +1 -0
- package/dist/index59.cjs +24 -0
- package/dist/index59.cjs.map +1 -0
- package/dist/index59.cts.map +1 -0
- package/dist/index6.cjs +0 -0
- package/dist/index60.cjs +419 -0
- package/dist/index60.cjs.map +1 -0
- package/dist/index61.cjs +15 -0
- package/dist/index61.cjs.map +1 -0
- package/dist/index62.cjs +16 -0
- package/dist/index62.cjs.map +1 -0
- package/dist/index62.cts.map +1 -0
- package/dist/index63.cjs +0 -0
- package/dist/index63.cts.map +1 -0
- package/dist/index64.cjs +0 -0
- package/dist/index64.cts.map +1 -0
- package/dist/index65.cjs +122 -0
- package/dist/index65.cjs.map +1 -0
- package/dist/index65.cts.map +1 -0
- package/dist/index66.cjs +229 -0
- package/dist/index66.cjs.map +1 -0
- package/dist/index66.cts.map +1 -0
- package/dist/index67.cjs +4 -0
- package/dist/index67.cts.map +1 -0
- package/dist/index68.cjs +3 -0
- package/dist/index68.cts.map +1 -0
- package/dist/index69.cjs +4 -0
- package/dist/index69.cts.map +1 -0
- package/dist/index7.cjs +0 -0
- package/dist/index70.cjs +3 -0
- package/dist/index70.cts.map +1 -0
- package/dist/index71.cjs +3 -0
- package/dist/index71.cts.map +1 -0
- package/dist/index72.cjs +3 -0
- package/dist/index72.cts.map +1 -0
- package/dist/index73.cjs +3 -0
- package/dist/index73.cts.map +1 -0
- package/dist/index8.cjs +25 -0
- package/dist/index8.cjs.map +1 -0
- package/dist/index9.cjs +0 -0
- package/dist/invoice-1_1-BJVcw-oE.d.ts +432 -0
- package/dist/invoice-1_1-BJVcw-oE.d.ts.map +1 -0
- package/dist/invoice-1_1-DWdNPRzr.d.cts +432 -0
- package/dist/invoice-1_1-DWdNPRzr.d.cts.map +1 -0
- package/dist/invoice1-1-8S-QQn7P.cjs +547 -0
- package/dist/invoice1-1-8S-QQn7P.cjs.map +1 -0
- package/dist/invoice1-1-CHuLpkFz.js +504 -0
- package/dist/invoice1-1-CHuLpkFz.js.map +1 -0
- package/dist/msic-codes-B_1W6lZF.d.cts +26 -0
- package/dist/msic-codes-B_1W6lZF.d.cts.map +1 -0
- package/dist/msic-codes-bs0lTfSZ.d.ts +26 -0
- package/dist/msic-codes-bs0lTfSZ.d.ts.map +1 -0
- package/dist/payment-modes-B8dNy3SM.d.ts +44 -0
- package/dist/payment-modes-B8dNy3SM.d.ts.map +1 -0
- package/dist/payment-modes-DHihrywe.d.cts +44 -0
- package/dist/payment-modes-DHihrywe.d.cts.map +1 -0
- package/dist/platformLogin-DsxWWUXr.js +31 -0
- package/dist/platformLogin-DsxWWUXr.js.map +1 -0
- package/dist/platformLogin-PGzMhw1X.cjs +37 -0
- package/dist/platformLogin-PGzMhw1X.cjs.map +1 -0
- package/dist/populateFinalDocument-BdyYzz5Y.cjs +96 -0
- package/dist/populateFinalDocument-BdyYzz5Y.cjs.map +1 -0
- package/dist/populateFinalDocument-BpLXmgLv.js +90 -0
- package/dist/populateFinalDocument-BpLXmgLv.js.map +1 -0
- package/dist/populateSignedProperties-BJMcBQ6S.cjs +58 -0
- package/dist/populateSignedProperties-BJMcBQ6S.cjs.map +1 -0
- package/dist/populateSignedProperties-BvGN-YZH.js +52 -0
- package/dist/populateSignedProperties-BvGN-YZH.js.map +1 -0
- package/dist/sign-B61Cy3gO.cjs +40 -0
- package/dist/sign-B61Cy3gO.cjs.map +1 -0
- package/dist/sign-DzHK7UhR.js +34 -0
- package/dist/sign-DzHK7UhR.js.map +1 -0
- package/dist/signatures-BKi9DP2K.d.cts +173 -0
- package/dist/signatures-BKi9DP2K.d.cts.map +1 -0
- package/dist/signatures-C9QPZTQd.d.ts +173 -0
- package/dist/signatures-C9QPZTQd.d.ts.map +1 -0
- package/dist/state-codes-CxG1S9YY.d.ts +62 -0
- package/dist/state-codes-CxG1S9YY.d.ts.map +1 -0
- package/dist/state-codes-DXSWtE6a.d.cts +62 -0
- package/dist/state-codes-DXSWtE6a.d.cts.map +1 -0
- package/dist/tax-types-CEpfSh5P.d.ts +42 -0
- package/dist/tax-types-CEpfSh5P.d.ts.map +1 -0
- package/dist/tax-types-CgwxONDS.d.cts +42 -0
- package/dist/tax-types-CgwxONDS.d.cts.map +1 -0
- package/dist/transform-BLz0S687.cjs +72 -0
- package/dist/transform-BLz0S687.cjs.map +1 -0
- package/dist/transform-D1q-U6Zj.js +66 -0
- package/dist/transform-D1q-U6Zj.js.map +1 -0
- package/dist/types/classification-codes.d.ts +2 -0
- package/dist/types/country-code.d.ts +2 -0
- package/dist/types/currencies.d.ts +2 -0
- package/dist/types/documents/index.d.ts +57 -0
- package/dist/types/documents/invoice-1_1.d.ts +56 -0
- package/dist/types/e-invoice.d.ts +2 -0
- package/dist/types/index.d.ts +59 -0
- package/dist/types/msic/0X.d.ts +2 -0
- package/dist/types/msic/1X.d.ts +2 -0
- package/dist/types/msic/2X.d.ts +2 -0
- package/dist/types/msic/3X.d.ts +2 -0
- package/dist/types/msic/4X.d.ts +2 -0
- package/dist/types/msic/5X.d.ts +2 -0
- package/dist/types/msic/6X.d.ts +2 -0
- package/dist/types/msic/7X.d.ts +2 -0
- package/dist/types/msic/8X.d.ts +2 -0
- package/dist/types/msic/9X.d.ts +2 -0
- package/dist/types/msic-codes.d.ts +12 -0
- package/dist/types/payment-modes.d.ts +2 -0
- package/dist/types/signatures.d.ts +2 -0
- package/dist/types/state-codes.d.ts +2 -0
- package/dist/types/tax-types.d.ts +2 -0
- package/dist/types/unit/1X.d.ts +2 -0
- package/dist/types/unit/2X.d.ts +2 -0
- package/dist/types/unit/3X.d.ts +2 -0
- package/dist/types/unit/4X.d.ts +2 -0
- package/dist/types/unit/5X.d.ts +2 -0
- package/dist/types/unit/6X.d.ts +2 -0
- package/dist/types/unit/7X.d.ts +2 -0
- package/dist/types/unit/8X.d.ts +2 -0
- package/dist/types/unit/9X.d.ts +2 -0
- package/dist/types/unit/AX.d.ts +2 -0
- package/dist/types/unit/BX.d.ts +2 -0
- package/dist/types/unit/CX.d.ts +2 -0
- package/dist/types/unit/DX.d.ts +2 -0
- package/dist/types/unit/EX.d.ts +2 -0
- package/dist/types/unit/FX.d.ts +2 -0
- package/dist/types/unit/GX.d.ts +2 -0
- package/dist/types/unit/HX.d.ts +2 -0
- package/dist/types/unit/IX.d.ts +2 -0
- package/dist/types/unit/JX.d.ts +2 -0
- package/dist/types/unit/KX.d.ts +2 -0
- package/dist/types/unit/LX.d.ts +2 -0
- package/dist/types/unit/MX.d.ts +2 -0
- package/dist/types/unit/NX.d.ts +2 -0
- package/dist/types/unit/OX.d.ts +2 -0
- package/dist/types/unit/PX.d.ts +2 -0
- package/dist/types/unit/QX.d.ts +2 -0
- package/dist/types/unit/RX.d.ts +2 -0
- package/dist/types/unit/SX.d.ts +2 -0
- package/dist/types/unit/TX.d.ts +2 -0
- package/dist/types/unit/UX.d.ts +2 -0
- package/dist/types/unit/VX.d.ts +2 -0
- package/dist/types/unit/WX.d.ts +2 -0
- package/dist/types/unit/XX.d.ts +2 -0
- package/dist/types/unit/YX.d.ts +2 -0
- package/dist/types/unit/ZX.d.ts +2 -0
- package/dist/types/unit-types.d.ts +37 -0
- package/dist/unit-types-1bF0KhIp.d.ts +56 -0
- package/dist/unit-types-1bF0KhIp.d.ts.map +1 -0
- package/dist/unit-types-CsrkvgfG.d.cts +56 -0
- package/dist/unit-types-CsrkvgfG.d.cts.map +1 -0
- package/dist/utils/MyInvoisClient.d.ts +60 -0
- package/dist/utils/MyInvoisClient.js +13 -0
- package/dist/utils/base64.d.ts +6 -0
- package/dist/utils/base64.d.ts.map +1 -0
- package/dist/utils/base64.js +11 -0
- package/dist/utils/base64.js.map +1 -0
- package/dist/utils/debug/debug-document-hash.d.ts +100 -0
- package/dist/utils/debug/debug-document-hash.d.ts.map +1 -0
- package/dist/utils/debug/debug-document-hash.js +120 -0
- package/dist/utils/debug/debug-document-hash.js.map +1 -0
- package/dist/utils/debug/debug-invoice-submission.d.ts +152 -0
- package/dist/utils/debug/debug-invoice-submission.d.ts.map +1 -0
- package/dist/utils/debug/debug-invoice-submission.js +226 -0
- package/dist/utils/debug/debug-invoice-submission.js.map +1 -0
- package/dist/utils/getBaseUrl.d.ts +5 -0
- package/dist/utils/getBaseUrl.d.ts.map +1 -0
- package/dist/utils/getBaseUrl.js +3 -0
- package/dist/utils/invoice1-1.d.ts +117 -0
- package/dist/utils/invoice1-1.d.ts.map +1 -0
- package/dist/utils/invoice1-1.js +10 -0
- package/dist/utils/signature/canonicalize.d.ts +26 -0
- package/dist/utils/signature/canonicalize.d.ts.map +1 -0
- package/dist/utils/signature/canonicalize.js +3 -0
- package/dist/utils/signature/hashCert.d.ts +15 -0
- package/dist/utils/signature/hashCert.d.ts.map +1 -0
- package/dist/utils/signature/hashCert.js +3 -0
- package/dist/utils/signature/hashSignedProperties.d.ts +25 -0
- package/dist/utils/signature/hashSignedProperties.d.ts.map +1 -0
- package/dist/utils/signature/hashSignedProperties.js +3 -0
- package/dist/utils/signature/populateFinalDocument.d.ts +23 -0
- package/dist/utils/signature/populateFinalDocument.d.ts.map +1 -0
- package/dist/utils/signature/populateFinalDocument.js +3 -0
- package/dist/utils/signature/populateSignedProperties.d.ts +23 -0
- package/dist/utils/signature/populateSignedProperties.d.ts.map +1 -0
- package/dist/utils/signature/populateSignedProperties.js +3 -0
- package/dist/utils/signature/sign.d.ts +16 -0
- package/dist/utils/signature/sign.d.ts.map +1 -0
- package/dist/utils/signature/sign.js +3 -0
- package/dist/utils/signature/transform.d.ts +16 -0
- package/dist/utils/signature/transform.d.ts.map +1 -0
- package/dist/utils/signature/transform.js +3 -0
- package/package.json +12 -5
- package/src/api/platform/{taxpayerLogin.ts → platformLogin.ts} +8 -2
- package/src/types/documents/invoice-1_1.d.ts +90 -0
- package/src/types/index.d.ts +1 -0
- package/src/types/msic-codes.d.ts +1 -7
- package/src/utils/MyInvoisClient.ts +428 -11
- package/src/utils/base64.ts +7 -0
- package/src/utils/debug/debug-document-hash.ts +249 -0
- package/src/utils/debug/debug-invoice-submission.ts +355 -0
- package/src/utils/getBaseUrl.ts +1 -1
- package/src/utils/invoice1-1.ts +671 -0
- package/src/utils/signature/canonicalize.ts +104 -0
- package/src/utils/signature/hashCert.ts +115 -0
- package/src/utils/signature/hashSignedProperties.ts +155 -0
- package/src/utils/signature/populateFinalDocument.ts +187 -0
- package/src/utils/signature/populateSignedProperties.ts +87 -0
- package/src/utils/signature/sign.ts +51 -0
- package/src/utils/signature/transform.ts +99 -0
- package/test/MyInvoiClientWithRealData.test.ts +2 -1
- package/test/MyInvoisClient.test.ts +16 -8
- package/test/base64.test.ts +43 -0
- package/test/canonicalize.test.ts +110 -0
- package/test/hashCert.test.ts +95 -0
- package/test/hashSignedProperties.test.ts +140 -0
- package/test/populateFinalDocument.test.ts +218 -0
- package/test/populateSignedProperties.test.ts +155 -0
- package/test/sign.test.ts +70 -0
- package/test/signAndSubmitInvoice.test.ts +915 -0
- package/test/transform.test.ts +158 -0
- package/tsconfig.json +7 -1
- package/tsdown.config.ts +31 -0
- package/dist/index.cjs.map +0 -1
- package/rolldown.config.ts +0 -26
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//#region src/types/tax-types.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Represents the allowed codes for tax types.
|
|
4
|
+
* Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/
|
|
5
|
+
*/
|
|
6
|
+
type TaxTypeCode = '01' // Sales Tax
|
|
7
|
+
| '02' // Service Tax
|
|
8
|
+
| '03' // Tourism Tax
|
|
9
|
+
| '04' // High-Value Goods Tax
|
|
10
|
+
| '05' // Sales Tax on Low Value Goods
|
|
11
|
+
| '06' // Not Applicable
|
|
12
|
+
| 'E'; // Tax exemption (where applicable)
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Enum representing the allowed tax type codes with descriptive names.
|
|
16
|
+
* Provides a more readable way to reference tax types.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* const code = TaxTypeCodeEnum.SalesTax;
|
|
20
|
+
* console.log(code); // Output: "01"
|
|
21
|
+
*/
|
|
22
|
+
declare enum TaxTypeCodeEnum {
|
|
23
|
+
SalesTax = '01',
|
|
24
|
+
ServiceTax = '02',
|
|
25
|
+
TourismTax = '03',
|
|
26
|
+
HighValueGoodsTax = '04',
|
|
27
|
+
SalesTaxLowValueGoods = '05',
|
|
28
|
+
NotApplicable = '06',
|
|
29
|
+
TaxExemption = 'E',
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Interface representing a tax type entry.
|
|
34
|
+
* Contains the code and its corresponding description.
|
|
35
|
+
*/
|
|
36
|
+
interface TaxType {
|
|
37
|
+
code: TaxTypeCode;
|
|
38
|
+
description: string;
|
|
39
|
+
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { TaxType, TaxTypeCode, TaxTypeCodeEnum };
|
|
42
|
+
//# sourceMappingURL=tax-types-CgwxONDS.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tax-types-CgwxONDS.d.cts","names":["TaxTypeCode","TaxTypeCodeEnum","TaxType"],"sources":["../src/types/tax-types.d.ts"],"sourcesContent":["/**\n * Represents the allowed codes for tax types.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/\n */\nexport type TaxTypeCode =\n | '01' // Sales Tax\n | '02' // Service Tax\n | '03' // Tourism Tax\n | '04' // High-Value Goods Tax\n | '05' // Sales Tax on Low Value Goods\n | '06' // Not Applicable\n | 'E' // Tax exemption (where applicable)\n\n/**\n * Enum representing the allowed tax type codes with descriptive names.\n * Provides a more readable way to reference tax types.\n *\n * @example\n * const code = TaxTypeCodeEnum.SalesTax;\n * console.log(code); // Output: \"01\"\n */\nexport enum TaxTypeCodeEnum {\n SalesTax = '01',\n ServiceTax = '02',\n TourismTax = '03',\n HighValueGoodsTax = '04',\n SalesTaxLowValueGoods = '05',\n NotApplicable = '06',\n TaxExemption = 'E',\n}\n\n/**\n * Interface representing a tax type entry.\n * Contains the code and its corresponding description.\n */\nexport interface TaxType {\n code: TaxTypeCode\n description: string\n}\n"],"mappings":";;AAIA;AAiBA;AAcA;KA/BYA,WAAAA;;;;;;;;;;;;;;;;aAiBAC,eAAAA;;;;;;;;;;;;;;UAcKC,OAAAA;QACTF"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
const require_chunk = require('./chunk-CUT6urMc.cjs');
|
|
2
|
+
const xmldom_ts = require_chunk.__toESM(require("xmldom-ts"));
|
|
3
|
+
const xpath_ts = require_chunk.__toESM(require("xpath-ts"));
|
|
4
|
+
|
|
5
|
+
//#region src/utils/signature/transform.ts
|
|
6
|
+
/**
|
|
7
|
+
* Transforms an XML invoice string according to specific rules using xmldom-ts and xpath-ts:
|
|
8
|
+
* - Removes the XML declaration.
|
|
9
|
+
* - Removes UBLExtensions and Signature elements within the Invoice element.
|
|
10
|
+
* Assumes the input XML is UTF-8 encoded.
|
|
11
|
+
*
|
|
12
|
+
* @param xmlString The raw XML invoice string.
|
|
13
|
+
* @returns The transformed XML string.
|
|
14
|
+
* @throws {Error} If parsing fails.
|
|
15
|
+
*/
|
|
16
|
+
function transformXmlInvoice(xmlString) {
|
|
17
|
+
let doc;
|
|
18
|
+
const errors = [];
|
|
19
|
+
const handleError = (msg) => {
|
|
20
|
+
errors.push(`ERROR: ${msg}`);
|
|
21
|
+
};
|
|
22
|
+
const handleFatalError = (msg) => {
|
|
23
|
+
errors.push(`FATALERROR: ${msg}`);
|
|
24
|
+
};
|
|
25
|
+
const handleWarning = (msg) => {
|
|
26
|
+
console.warn(`WARNING: ${msg}`);
|
|
27
|
+
};
|
|
28
|
+
const parser = new xmldom_ts.DOMParserImpl({
|
|
29
|
+
locator: {},
|
|
30
|
+
errorHandler: {
|
|
31
|
+
error: handleError,
|
|
32
|
+
fatalError: handleFatalError,
|
|
33
|
+
warning: handleWarning
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
try {
|
|
37
|
+
doc = parser.parseFromString(xmlString, "application/xml");
|
|
38
|
+
} catch (e) {
|
|
39
|
+
throw new Error(`XML Parsing Initialization Error: ${e.message || e}`);
|
|
40
|
+
}
|
|
41
|
+
const parserErrors = doc.getElementsByTagName("parsererror");
|
|
42
|
+
if (parserErrors.length > 0) {
|
|
43
|
+
const errorElement = parserErrors[0];
|
|
44
|
+
if (errorElement) {
|
|
45
|
+
const errorContent = errorElement.textContent ? errorElement.textContent.trim() : "Unknown parsing error reported by parsererror tag.";
|
|
46
|
+
throw new Error(`XML Parsing Error: ${errorContent}`);
|
|
47
|
+
} else throw new Error("XML Parsing Error: Malformed parsererror tag found.");
|
|
48
|
+
}
|
|
49
|
+
if (errors.length > 0) throw new Error(errors[0]);
|
|
50
|
+
const select = xpath_ts.select;
|
|
51
|
+
const removeNodesByXPath = (path) => {
|
|
52
|
+
const nodesToRemove = select(path, doc);
|
|
53
|
+
if (nodesToRemove && nodesToRemove instanceof Array) nodesToRemove.forEach((node) => {
|
|
54
|
+
if (node && node.parentNode) node.parentNode.removeChild(node);
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
removeNodesByXPath("//*[local-name()='Invoice']//*[local-name()='UBLExtensions']");
|
|
58
|
+
removeNodesByXPath("//*[local-name()='Invoice']//*[local-name()='Signature']");
|
|
59
|
+
const serializer = new xmldom_ts.XMLSerializerImpl();
|
|
60
|
+
let transformedXml = serializer.serializeToString(doc);
|
|
61
|
+
transformedXml = transformedXml.replace(/^<\?xml [^>]*\?>\s*/i, "");
|
|
62
|
+
return transformedXml;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
//#endregion
|
|
66
|
+
Object.defineProperty(exports, 'transformXmlInvoice', {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () {
|
|
69
|
+
return transformXmlInvoice;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
//# sourceMappingURL=transform-BLz0S687.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-BLz0S687.cjs","names":["xmlString: string","doc: Document","errors: string[]","msg: string","DOMParserImpl","e: any","xpath","path: string","XMLSerializerImpl"],"sources":["../src/utils/signature/transform.ts"],"sourcesContent":["// Import necessary components from xmldom-ts and xpath-ts\nimport { DOMParserImpl, XMLSerializerImpl } from 'xmldom-ts'\nimport * as xpath from 'xpath-ts'\n// Assuming Node and Document types are correctly exposed by xmldom-ts/xpath-ts globally or via import\n\n/**\n * Transforms an XML invoice string according to specific rules using xmldom-ts and xpath-ts:\n * - Removes the XML declaration.\n * - Removes UBLExtensions and Signature elements within the Invoice element.\n * Assumes the input XML is UTF-8 encoded.\n *\n * @param xmlString The raw XML invoice string.\n * @returns The transformed XML string.\n * @throws {Error} If parsing fails.\n */\nexport function transformXmlInvoice(xmlString: string): string {\n let doc: Document // Use the standard Document type, assuming compatibility\n const errors: string[] = []\n\n // Define separate handlers for each error level as likely expected by xmldom-ts\n const handleError = (msg: string) => {\n errors.push(`ERROR: ${msg}`)\n }\n const handleFatalError = (msg: string) => {\n errors.push(`FATALERROR: ${msg}`)\n }\n const handleWarning = (msg: string) => {\n console.warn(`WARNING: ${msg}`)\n }\n\n // Use DOMParserImpl from xmldom-ts with the specific error handler structure\n const parser = new DOMParserImpl({\n locator: {}, // Keep locator, might be useful for error context\n errorHandler: {\n error: handleError,\n fatalError: handleFatalError,\n warning: handleWarning,\n },\n })\n\n try {\n // Use the standard mime type string directly\n doc = parser.parseFromString(xmlString, 'application/xml') // Or 'text/xml'\n } catch (e: any) {\n throw new Error(`XML Parsing Initialization Error: ${e.message || e}`)\n }\n\n // Check for parsererror element\n const parserErrors = doc.getElementsByTagName('parsererror')\n if (parserErrors.length > 0) {\n const errorElement = parserErrors[0]\n if (errorElement) {\n const errorContent = errorElement.textContent\n ? errorElement.textContent.trim()\n : 'Unknown parsing error reported by parsererror tag.'\n throw new Error(`XML Parsing Error: ${errorContent}`)\n } else {\n throw new Error('XML Parsing Error: Malformed parsererror tag found.')\n }\n }\n\n // If the errorHandler collected errors, throw the first one.\n if (errors.length > 0) {\n throw new Error(errors[0])\n }\n\n // Use xpath.select from xpath-ts\n const select = xpath.select\n\n // Helper function to remove nodes found by XPath\n const removeNodesByXPath = (path: string) => {\n const nodesToRemove = select(path, doc) as Node[]\n\n if (nodesToRemove && nodesToRemove instanceof Array) {\n nodesToRemove.forEach(node => {\n if (node && node.parentNode) {\n node.parentNode.removeChild(node)\n }\n })\n }\n }\n\n // 2. Find and remove UBLExtensions elements\n removeNodesByXPath(\n \"//*[local-name()='Invoice']//*[local-name()='UBLExtensions']\",\n )\n\n // 3. Find and remove Signature elements\n removeNodesByXPath(\"//*[local-name()='Invoice']//*[local-name()='Signature']\")\n\n // 4. Serialize the modified DOM back to string using XMLSerializerImpl\n const serializer = new XMLSerializerImpl()\n let transformedXml = serializer.serializeToString(doc)\n\n // 5. Remove the XML declaration (if present)\n transformedXml = transformedXml.replace(/^<\\?xml [^>]*\\?>\\s*/i, '')\n\n return transformedXml\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeA,SAAgB,oBAAoBA,WAA2B;CAC7D,IAAIC;CACJ,MAAMC,SAAmB,CAAE;CAG3B,MAAM,cAAc,CAACC,QAAgB;AACnC,SAAO,MAAM,SAAS,IAAI,EAAE;CAC7B;CACD,MAAM,mBAAmB,CAACA,QAAgB;AACxC,SAAO,MAAM,cAAc,IAAI,EAAE;CAClC;CACD,MAAM,gBAAgB,CAACA,QAAgB;AACrC,UAAQ,MAAM,WAAW,IAAI,EAAE;CAChC;CAGD,MAAM,SAAS,IAAIC,wBAAc;EAC/B,SAAS,CAAE;EACX,cAAc;GACZ,OAAO;GACP,YAAY;GACZ,SAAS;EACV;CACF;AAED,KAAI;AAEF,QAAM,OAAO,gBAAgB,WAAW,kBAAkB;CAC3D,SAAQC,GAAQ;AACf,QAAM,IAAI,OAAO,oCAAoC,EAAE,WAAW,EAAE;CACrE;CAGD,MAAM,eAAe,IAAI,qBAAqB,cAAc;AAC5D,KAAI,aAAa,SAAS,GAAG;EAC3B,MAAM,eAAe,aAAa;AAClC,MAAI,cAAc;GAChB,MAAM,eAAe,aAAa,cAC9B,aAAa,YAAY,MAAM,GAC/B;AACJ,SAAM,IAAI,OAAO,qBAAqB,aAAa;EACpD,MACC,OAAM,IAAI,MAAM;CAEnB;AAGD,KAAI,OAAO,SAAS,EAClB,OAAM,IAAI,MAAM,OAAO;CAIzB,MAAM,SAASC,SAAM;CAGrB,MAAM,qBAAqB,CAACC,SAAiB;EAC3C,MAAM,gBAAgB,OAAO,MAAM,IAAI;AAEvC,MAAI,iBAAiB,yBAAyB,MAC5C,eAAc,QAAQ,UAAQ;AAC5B,OAAI,QAAQ,KAAK,WACf,MAAK,WAAW,YAAY,KAAK;EAEpC,EAAC;CAEL;AAGD,oBACE,+DACD;AAGD,oBAAmB,2DAA2D;CAG9E,MAAM,aAAa,IAAIC;CACvB,IAAI,iBAAiB,WAAW,kBAAkB,IAAI;AAGtD,kBAAiB,eAAe,QAAQ,wBAAwB,GAAG;AAEnE,QAAO;AACR"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { DOMParserImpl, XMLSerializerImpl } from "xmldom-ts";
|
|
2
|
+
import * as xpath from "xpath-ts";
|
|
3
|
+
|
|
4
|
+
//#region src/utils/signature/transform.ts
|
|
5
|
+
/**
|
|
6
|
+
* Transforms an XML invoice string according to specific rules using xmldom-ts and xpath-ts:
|
|
7
|
+
* - Removes the XML declaration.
|
|
8
|
+
* - Removes UBLExtensions and Signature elements within the Invoice element.
|
|
9
|
+
* Assumes the input XML is UTF-8 encoded.
|
|
10
|
+
*
|
|
11
|
+
* @param xmlString The raw XML invoice string.
|
|
12
|
+
* @returns The transformed XML string.
|
|
13
|
+
* @throws {Error} If parsing fails.
|
|
14
|
+
*/
|
|
15
|
+
function transformXmlInvoice(xmlString) {
|
|
16
|
+
let doc;
|
|
17
|
+
const errors = [];
|
|
18
|
+
const handleError = (msg) => {
|
|
19
|
+
errors.push(`ERROR: ${msg}`);
|
|
20
|
+
};
|
|
21
|
+
const handleFatalError = (msg) => {
|
|
22
|
+
errors.push(`FATALERROR: ${msg}`);
|
|
23
|
+
};
|
|
24
|
+
const handleWarning = (msg) => {
|
|
25
|
+
console.warn(`WARNING: ${msg}`);
|
|
26
|
+
};
|
|
27
|
+
const parser = new DOMParserImpl({
|
|
28
|
+
locator: {},
|
|
29
|
+
errorHandler: {
|
|
30
|
+
error: handleError,
|
|
31
|
+
fatalError: handleFatalError,
|
|
32
|
+
warning: handleWarning
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
try {
|
|
36
|
+
doc = parser.parseFromString(xmlString, "application/xml");
|
|
37
|
+
} catch (e) {
|
|
38
|
+
throw new Error(`XML Parsing Initialization Error: ${e.message || e}`);
|
|
39
|
+
}
|
|
40
|
+
const parserErrors = doc.getElementsByTagName("parsererror");
|
|
41
|
+
if (parserErrors.length > 0) {
|
|
42
|
+
const errorElement = parserErrors[0];
|
|
43
|
+
if (errorElement) {
|
|
44
|
+
const errorContent = errorElement.textContent ? errorElement.textContent.trim() : "Unknown parsing error reported by parsererror tag.";
|
|
45
|
+
throw new Error(`XML Parsing Error: ${errorContent}`);
|
|
46
|
+
} else throw new Error("XML Parsing Error: Malformed parsererror tag found.");
|
|
47
|
+
}
|
|
48
|
+
if (errors.length > 0) throw new Error(errors[0]);
|
|
49
|
+
const select = xpath.select;
|
|
50
|
+
const removeNodesByXPath = (path) => {
|
|
51
|
+
const nodesToRemove = select(path, doc);
|
|
52
|
+
if (nodesToRemove && nodesToRemove instanceof Array) nodesToRemove.forEach((node) => {
|
|
53
|
+
if (node && node.parentNode) node.parentNode.removeChild(node);
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
removeNodesByXPath("//*[local-name()='Invoice']//*[local-name()='UBLExtensions']");
|
|
57
|
+
removeNodesByXPath("//*[local-name()='Invoice']//*[local-name()='Signature']");
|
|
58
|
+
const serializer = new XMLSerializerImpl();
|
|
59
|
+
let transformedXml = serializer.serializeToString(doc);
|
|
60
|
+
transformedXml = transformedXml.replace(/^<\?xml [^>]*\?>\s*/i, "");
|
|
61
|
+
return transformedXml;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
//#endregion
|
|
65
|
+
export { transformXmlInvoice };
|
|
66
|
+
//# sourceMappingURL=transform-D1q-U6Zj.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform-D1q-U6Zj.js","names":["xmlString: string","doc: Document","errors: string[]","msg: string","e: any","path: string"],"sources":["../src/utils/signature/transform.ts"],"sourcesContent":["// Import necessary components from xmldom-ts and xpath-ts\nimport { DOMParserImpl, XMLSerializerImpl } from 'xmldom-ts'\nimport * as xpath from 'xpath-ts'\n// Assuming Node and Document types are correctly exposed by xmldom-ts/xpath-ts globally or via import\n\n/**\n * Transforms an XML invoice string according to specific rules using xmldom-ts and xpath-ts:\n * - Removes the XML declaration.\n * - Removes UBLExtensions and Signature elements within the Invoice element.\n * Assumes the input XML is UTF-8 encoded.\n *\n * @param xmlString The raw XML invoice string.\n * @returns The transformed XML string.\n * @throws {Error} If parsing fails.\n */\nexport function transformXmlInvoice(xmlString: string): string {\n let doc: Document // Use the standard Document type, assuming compatibility\n const errors: string[] = []\n\n // Define separate handlers for each error level as likely expected by xmldom-ts\n const handleError = (msg: string) => {\n errors.push(`ERROR: ${msg}`)\n }\n const handleFatalError = (msg: string) => {\n errors.push(`FATALERROR: ${msg}`)\n }\n const handleWarning = (msg: string) => {\n console.warn(`WARNING: ${msg}`)\n }\n\n // Use DOMParserImpl from xmldom-ts with the specific error handler structure\n const parser = new DOMParserImpl({\n locator: {}, // Keep locator, might be useful for error context\n errorHandler: {\n error: handleError,\n fatalError: handleFatalError,\n warning: handleWarning,\n },\n })\n\n try {\n // Use the standard mime type string directly\n doc = parser.parseFromString(xmlString, 'application/xml') // Or 'text/xml'\n } catch (e: any) {\n throw new Error(`XML Parsing Initialization Error: ${e.message || e}`)\n }\n\n // Check for parsererror element\n const parserErrors = doc.getElementsByTagName('parsererror')\n if (parserErrors.length > 0) {\n const errorElement = parserErrors[0]\n if (errorElement) {\n const errorContent = errorElement.textContent\n ? errorElement.textContent.trim()\n : 'Unknown parsing error reported by parsererror tag.'\n throw new Error(`XML Parsing Error: ${errorContent}`)\n } else {\n throw new Error('XML Parsing Error: Malformed parsererror tag found.')\n }\n }\n\n // If the errorHandler collected errors, throw the first one.\n if (errors.length > 0) {\n throw new Error(errors[0])\n }\n\n // Use xpath.select from xpath-ts\n const select = xpath.select\n\n // Helper function to remove nodes found by XPath\n const removeNodesByXPath = (path: string) => {\n const nodesToRemove = select(path, doc) as Node[]\n\n if (nodesToRemove && nodesToRemove instanceof Array) {\n nodesToRemove.forEach(node => {\n if (node && node.parentNode) {\n node.parentNode.removeChild(node)\n }\n })\n }\n }\n\n // 2. Find and remove UBLExtensions elements\n removeNodesByXPath(\n \"//*[local-name()='Invoice']//*[local-name()='UBLExtensions']\",\n )\n\n // 3. Find and remove Signature elements\n removeNodesByXPath(\"//*[local-name()='Invoice']//*[local-name()='Signature']\")\n\n // 4. Serialize the modified DOM back to string using XMLSerializerImpl\n const serializer = new XMLSerializerImpl()\n let transformedXml = serializer.serializeToString(doc)\n\n // 5. Remove the XML declaration (if present)\n transformedXml = transformedXml.replace(/^<\\?xml [^>]*\\?>\\s*/i, '')\n\n return transformedXml\n}\n"],"mappings":";;;;;;;;;;;;;;AAeA,SAAgB,oBAAoBA,WAA2B;CAC7D,IAAIC;CACJ,MAAMC,SAAmB,CAAE;CAG3B,MAAM,cAAc,CAACC,QAAgB;AACnC,SAAO,MAAM,SAAS,IAAI,EAAE;CAC7B;CACD,MAAM,mBAAmB,CAACA,QAAgB;AACxC,SAAO,MAAM,cAAc,IAAI,EAAE;CAClC;CACD,MAAM,gBAAgB,CAACA,QAAgB;AACrC,UAAQ,MAAM,WAAW,IAAI,EAAE;CAChC;CAGD,MAAM,SAAS,IAAI,cAAc;EAC/B,SAAS,CAAE;EACX,cAAc;GACZ,OAAO;GACP,YAAY;GACZ,SAAS;EACV;CACF;AAED,KAAI;AAEF,QAAM,OAAO,gBAAgB,WAAW,kBAAkB;CAC3D,SAAQC,GAAQ;AACf,QAAM,IAAI,OAAO,oCAAoC,EAAE,WAAW,EAAE;CACrE;CAGD,MAAM,eAAe,IAAI,qBAAqB,cAAc;AAC5D,KAAI,aAAa,SAAS,GAAG;EAC3B,MAAM,eAAe,aAAa;AAClC,MAAI,cAAc;GAChB,MAAM,eAAe,aAAa,cAC9B,aAAa,YAAY,MAAM,GAC/B;AACJ,SAAM,IAAI,OAAO,qBAAqB,aAAa;EACpD,MACC,OAAM,IAAI,MAAM;CAEnB;AAGD,KAAI,OAAO,SAAS,EAClB,OAAM,IAAI,MAAM,OAAO;CAIzB,MAAM,SAAS,MAAM;CAGrB,MAAM,qBAAqB,CAACC,SAAiB;EAC3C,MAAM,gBAAgB,OAAO,MAAM,IAAI;AAEvC,MAAI,iBAAiB,yBAAyB,MAC5C,eAAc,QAAQ,UAAQ;AAC5B,OAAI,QAAQ,KAAK,WACf,MAAK,WAAW,YAAY,KAAK;EAEpC,EAAC;CAEL;AAGD,oBACE,+DACD;AAGD,oBAAmB,2DAA2D;CAG9E,MAAM,aAAa,IAAI;CACvB,IAAI,iBAAiB,WAAW,kBAAkB,IAAI;AAGtD,kBAAiB,eAAe,QAAQ,wBAAwB,GAAG;AAEnE,QAAO;AACR"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import "../../classification-codes-C2X4xW5-.js";
|
|
2
|
+
import "../../country-code-DsI8Mbzx.js";
|
|
3
|
+
import "../../currencies-DKuDflOO.js";
|
|
4
|
+
import "../../e-invoice-C2TxhyrK.js";
|
|
5
|
+
import "../../signatures-C9QPZTQd.js";
|
|
6
|
+
import "../../tax-types-CEpfSh5P.js";
|
|
7
|
+
import "../../1X-C-_KHV-Q.js";
|
|
8
|
+
import "../../2X-DkS1BoE5.js";
|
|
9
|
+
import "../../3X-DFI-4RQQ.js";
|
|
10
|
+
import "../../4X-CIJ2JJ2w.js";
|
|
11
|
+
import "../../5X-COsZHUaQ.js";
|
|
12
|
+
import "../../6X-ClZDKOTC.js";
|
|
13
|
+
import "../../7X-BZyesooz.js";
|
|
14
|
+
import "../../8X-DkuKAkHz.js";
|
|
15
|
+
import "../../9X-BDgifncF.js";
|
|
16
|
+
import "../../AX-D6XHWdrY.js";
|
|
17
|
+
import "../../BX-D_0C8Qbd.js";
|
|
18
|
+
import "../../CX-HH4cSZRX.js";
|
|
19
|
+
import "../../DX-Dx22ax_I.js";
|
|
20
|
+
import "../../EX-BRWh1wFc.js";
|
|
21
|
+
import "../../FX-RmjwAr40.js";
|
|
22
|
+
import "../../GX-CJyo7oDp.js";
|
|
23
|
+
import "../../HX-XALBTdLA.js";
|
|
24
|
+
import "../../IX-6SZ55QKb.js";
|
|
25
|
+
import "../../JX-hQ1XRmLp.js";
|
|
26
|
+
import "../../KX-BNwunEfn.js";
|
|
27
|
+
import "../../LX-CHYX3X3J.js";
|
|
28
|
+
import "../../MX-BPGLWSUz.js";
|
|
29
|
+
import "../../NX-RulN5Ml3.js";
|
|
30
|
+
import "../../OX-DgKVSp7I.js";
|
|
31
|
+
import "../../PX-DA4A2kEv.js";
|
|
32
|
+
import "../../QX-DrFqsMEs.js";
|
|
33
|
+
import "../../RX-Cm7vFcFN.js";
|
|
34
|
+
import "../../SX-CsPPTu-W.js";
|
|
35
|
+
import "../../TX-DCY25MdR.js";
|
|
36
|
+
import "../../UX-DauyagHy.js";
|
|
37
|
+
import "../../VX-DD4scgCe.js";
|
|
38
|
+
import "../../WX-CjkoppdY.js";
|
|
39
|
+
import "../../YX-DUdO8mRC.js";
|
|
40
|
+
import "../../ZX-DwfcSA-D.js";
|
|
41
|
+
import "../../XX-sbsIUOnA.js";
|
|
42
|
+
import "../../unit-types-1bF0KhIp.js";
|
|
43
|
+
import "../../payment-modes-B8dNy3SM.js";
|
|
44
|
+
import "../../0X-C4IRh_fJ.js";
|
|
45
|
+
import "../../1X-Brnls9Jh.js";
|
|
46
|
+
import "../../2X-UdQcQW24.js";
|
|
47
|
+
import "../../3X-DVDyspgb.js";
|
|
48
|
+
import "../../4X-CUR8jlaZ.js";
|
|
49
|
+
import "../../5X-C6db432h.js";
|
|
50
|
+
import "../../6X-C_fFIcJC.js";
|
|
51
|
+
import "../../7X-kot_VccM.js";
|
|
52
|
+
import "../../8X-Df4DOBOe.js";
|
|
53
|
+
import "../../9X-BhBWlgxG.js";
|
|
54
|
+
import "../../msic-codes-bs0lTfSZ.js";
|
|
55
|
+
import { Address, AllowanceCharge, Buyer, Delivery, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, LegalMonetaryTotal, PaymentMeans, ResponseDocument, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal } from "../../invoice-1_1-BJVcw-oE.js";
|
|
56
|
+
import "../../index-CJNLQVjx.js";
|
|
57
|
+
export { Address, AllowanceCharge, Buyer, Delivery, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, LegalMonetaryTotal, PaymentMeans, ResponseDocument, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import "../../classification-codes-C2X4xW5-.js";
|
|
2
|
+
import "../../country-code-DsI8Mbzx.js";
|
|
3
|
+
import "../../currencies-DKuDflOO.js";
|
|
4
|
+
import "../../e-invoice-C2TxhyrK.js";
|
|
5
|
+
import "../../signatures-C9QPZTQd.js";
|
|
6
|
+
import "../../tax-types-CEpfSh5P.js";
|
|
7
|
+
import "../../1X-C-_KHV-Q.js";
|
|
8
|
+
import "../../2X-DkS1BoE5.js";
|
|
9
|
+
import "../../3X-DFI-4RQQ.js";
|
|
10
|
+
import "../../4X-CIJ2JJ2w.js";
|
|
11
|
+
import "../../5X-COsZHUaQ.js";
|
|
12
|
+
import "../../6X-ClZDKOTC.js";
|
|
13
|
+
import "../../7X-BZyesooz.js";
|
|
14
|
+
import "../../8X-DkuKAkHz.js";
|
|
15
|
+
import "../../9X-BDgifncF.js";
|
|
16
|
+
import "../../AX-D6XHWdrY.js";
|
|
17
|
+
import "../../BX-D_0C8Qbd.js";
|
|
18
|
+
import "../../CX-HH4cSZRX.js";
|
|
19
|
+
import "../../DX-Dx22ax_I.js";
|
|
20
|
+
import "../../EX-BRWh1wFc.js";
|
|
21
|
+
import "../../FX-RmjwAr40.js";
|
|
22
|
+
import "../../GX-CJyo7oDp.js";
|
|
23
|
+
import "../../HX-XALBTdLA.js";
|
|
24
|
+
import "../../IX-6SZ55QKb.js";
|
|
25
|
+
import "../../JX-hQ1XRmLp.js";
|
|
26
|
+
import "../../KX-BNwunEfn.js";
|
|
27
|
+
import "../../LX-CHYX3X3J.js";
|
|
28
|
+
import "../../MX-BPGLWSUz.js";
|
|
29
|
+
import "../../NX-RulN5Ml3.js";
|
|
30
|
+
import "../../OX-DgKVSp7I.js";
|
|
31
|
+
import "../../PX-DA4A2kEv.js";
|
|
32
|
+
import "../../QX-DrFqsMEs.js";
|
|
33
|
+
import "../../RX-Cm7vFcFN.js";
|
|
34
|
+
import "../../SX-CsPPTu-W.js";
|
|
35
|
+
import "../../TX-DCY25MdR.js";
|
|
36
|
+
import "../../UX-DauyagHy.js";
|
|
37
|
+
import "../../VX-DD4scgCe.js";
|
|
38
|
+
import "../../WX-CjkoppdY.js";
|
|
39
|
+
import "../../YX-DUdO8mRC.js";
|
|
40
|
+
import "../../ZX-DwfcSA-D.js";
|
|
41
|
+
import "../../XX-sbsIUOnA.js";
|
|
42
|
+
import "../../unit-types-1bF0KhIp.js";
|
|
43
|
+
import "../../payment-modes-B8dNy3SM.js";
|
|
44
|
+
import "../../0X-C4IRh_fJ.js";
|
|
45
|
+
import "../../1X-Brnls9Jh.js";
|
|
46
|
+
import "../../2X-UdQcQW24.js";
|
|
47
|
+
import "../../3X-DVDyspgb.js";
|
|
48
|
+
import "../../4X-CUR8jlaZ.js";
|
|
49
|
+
import "../../5X-C6db432h.js";
|
|
50
|
+
import "../../6X-C_fFIcJC.js";
|
|
51
|
+
import "../../7X-kot_VccM.js";
|
|
52
|
+
import "../../8X-Df4DOBOe.js";
|
|
53
|
+
import "../../9X-BhBWlgxG.js";
|
|
54
|
+
import "../../msic-codes-bs0lTfSZ.js";
|
|
55
|
+
import { Address, AllowanceCharge, Buyer, Delivery, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, LegalMonetaryTotal, PaymentMeans, ResponseDocument, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal } from "../../invoice-1_1-BJVcw-oE.js";
|
|
56
|
+
export { Address, AllowanceCharge, Buyer, Delivery, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, LegalMonetaryTotal, PaymentMeans, ResponseDocument, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { Classification, ClassificationCode, ClassificationCodeEnum } from "../classification-codes-C2X4xW5-.js";
|
|
2
|
+
import { Country, CountryCode, CountryCodeEnum, CountryNameEnum } from "../country-code-DsI8Mbzx.js";
|
|
3
|
+
import { Currency, CurrencyCode, CurrencyCodeEnum } from "../currencies-DKuDflOO.js";
|
|
4
|
+
import { EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum } from "../e-invoice-C2TxhyrK.js";
|
|
5
|
+
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "../signatures-C9QPZTQd.js";
|
|
6
|
+
import { TaxType, TaxTypeCode, TaxTypeCodeEnum } from "../tax-types-CEpfSh5P.js";
|
|
7
|
+
import "../1X-C-_KHV-Q.js";
|
|
8
|
+
import "../2X-DkS1BoE5.js";
|
|
9
|
+
import "../3X-DFI-4RQQ.js";
|
|
10
|
+
import "../4X-CIJ2JJ2w.js";
|
|
11
|
+
import "../5X-COsZHUaQ.js";
|
|
12
|
+
import "../6X-ClZDKOTC.js";
|
|
13
|
+
import "../7X-BZyesooz.js";
|
|
14
|
+
import "../8X-DkuKAkHz.js";
|
|
15
|
+
import "../9X-BDgifncF.js";
|
|
16
|
+
import "../AX-D6XHWdrY.js";
|
|
17
|
+
import "../BX-D_0C8Qbd.js";
|
|
18
|
+
import "../CX-HH4cSZRX.js";
|
|
19
|
+
import "../DX-Dx22ax_I.js";
|
|
20
|
+
import "../EX-BRWh1wFc.js";
|
|
21
|
+
import "../FX-RmjwAr40.js";
|
|
22
|
+
import "../GX-CJyo7oDp.js";
|
|
23
|
+
import "../HX-XALBTdLA.js";
|
|
24
|
+
import "../IX-6SZ55QKb.js";
|
|
25
|
+
import "../JX-hQ1XRmLp.js";
|
|
26
|
+
import "../KX-BNwunEfn.js";
|
|
27
|
+
import "../LX-CHYX3X3J.js";
|
|
28
|
+
import "../MX-BPGLWSUz.js";
|
|
29
|
+
import "../NX-RulN5Ml3.js";
|
|
30
|
+
import "../OX-DgKVSp7I.js";
|
|
31
|
+
import "../PX-DA4A2kEv.js";
|
|
32
|
+
import "../QX-DrFqsMEs.js";
|
|
33
|
+
import "../RX-Cm7vFcFN.js";
|
|
34
|
+
import "../SX-CsPPTu-W.js";
|
|
35
|
+
import "../TX-DCY25MdR.js";
|
|
36
|
+
import "../UX-DauyagHy.js";
|
|
37
|
+
import "../VX-DD4scgCe.js";
|
|
38
|
+
import "../WX-CjkoppdY.js";
|
|
39
|
+
import "../YX-DUdO8mRC.js";
|
|
40
|
+
import "../ZX-DwfcSA-D.js";
|
|
41
|
+
import "../XX-sbsIUOnA.js";
|
|
42
|
+
import { UnitType, UnitTypeCode } from "../unit-types-1bF0KhIp.js";
|
|
43
|
+
import { PaymentMode, PaymentModeCode, PaymentModeCodeEnum } from "../payment-modes-B8dNy3SM.js";
|
|
44
|
+
import "../0X-C4IRh_fJ.js";
|
|
45
|
+
import "../1X-Brnls9Jh.js";
|
|
46
|
+
import "../2X-UdQcQW24.js";
|
|
47
|
+
import "../3X-DVDyspgb.js";
|
|
48
|
+
import "../4X-CUR8jlaZ.js";
|
|
49
|
+
import "../5X-C6db432h.js";
|
|
50
|
+
import "../6X-C_fFIcJC.js";
|
|
51
|
+
import "../7X-kot_VccM.js";
|
|
52
|
+
import "../8X-Df4DOBOe.js";
|
|
53
|
+
import "../9X-BhBWlgxG.js";
|
|
54
|
+
import { MSICCode } from "../msic-codes-bs0lTfSZ.js";
|
|
55
|
+
import { Address, AllowanceCharge, Buyer, Delivery, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, LegalMonetaryTotal, PaymentMeans, ResponseDocument, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal } from "../invoice-1_1-BJVcw-oE.js";
|
|
56
|
+
import "../index-CJNLQVjx.js";
|
|
57
|
+
import { State, StateCode, StateCodeEnum } from "../state-codes-CxG1S9YY.js";
|
|
58
|
+
import { ClientCredentials, TokenResponse } from "../index-FTgB2nM6.js";
|
|
59
|
+
export { Address, AllowanceCharge, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, ClientCredentials, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, Delivery, DigestMethod, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, GetSubmissionResponse, InvoiceLineItem, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, PaymentMeans, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, ResponseDocument, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, SigningCredentials, StandardError, State, StateCode, StateCodeEnum, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, TokenResponse, Transform, UnitType, UnitTypeCode, X509Data };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../0X-C4IRh_fJ.js";
|
|
2
|
+
import "../1X-Brnls9Jh.js";
|
|
3
|
+
import "../2X-UdQcQW24.js";
|
|
4
|
+
import "../3X-DVDyspgb.js";
|
|
5
|
+
import "../4X-CUR8jlaZ.js";
|
|
6
|
+
import "../5X-C6db432h.js";
|
|
7
|
+
import "../6X-C_fFIcJC.js";
|
|
8
|
+
import "../7X-kot_VccM.js";
|
|
9
|
+
import "../8X-Df4DOBOe.js";
|
|
10
|
+
import "../9X-BhBWlgxG.js";
|
|
11
|
+
import { MSICCode } from "../msic-codes-bs0lTfSZ.js";
|
|
12
|
+
export { MSICCode };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "../signatures-C9QPZTQd.js";
|
|
2
|
+
export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
|