@ripwords/myinvois-client 0.1.0 → 0.1.2

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.
Files changed (575) hide show
  1. package/CHANGELOG.md +99 -0
  2. package/README.md +128 -4
  3. package/bun.lock +59 -0
  4. package/dist/{0X-Yw7mZEro.d.cts → 0X-CG1S1WKn.d.ts} +1 -2
  5. package/dist/{0X-C4IRh_fJ.d.ts → 0X-ChfmeAYF.d.cts} +1 -1
  6. package/dist/{1X-D_aUVsuM.d.cts → 1X-CmlbG02M.d.ts} +1 -2
  7. package/dist/{1X-BwpSoT3o.d.cts → 1X-DFikQbP0.d.cts} +1 -1
  8. package/dist/{1X-C-_KHV-Q.d.ts → 1X-DbFshzup.d.ts} +1 -2
  9. package/dist/{1X-Brnls9Jh.d.ts → 1X-jFrFCOs0.d.cts} +1 -1
  10. package/dist/{2X-UdQcQW24.d.ts → 2X-5cE4ojEX.d.cts} +1 -1
  11. package/dist/{2X-hClUyw26.d.cts → 2X-DA6J6Wd7.d.ts} +1 -2
  12. package/dist/{2X-Bb6elyzV.d.cts → 2X-FWZ1rYVt.d.cts} +1 -1
  13. package/dist/{2X-DkS1BoE5.d.ts → 2X-eC_p0QJf.d.ts} +1 -2
  14. package/dist/{3X-C7VFD-n-.d.cts → 3X-D9duw0Ro.d.cts} +1 -1
  15. package/dist/{3X-DFI-4RQQ.d.ts → 3X-DbfkwdkO.d.ts} +1 -2
  16. package/dist/{3X-DVDyspgb.d.ts → 3X-GxuN79Ax.d.ts} +1 -2
  17. package/dist/{3X-CLMESDvz.d.cts → 3X-r9xbWJ2l.d.cts} +1 -1
  18. package/dist/{4X-CIJ2JJ2w.d.ts → 4X-1ZkK-uH5.d.cts} +1 -1
  19. package/dist/{4X-CUR8jlaZ.d.ts → 4X-CLO9OuKa.d.cts} +1 -1
  20. package/dist/{4X-DIfvpU6V.d.cts → 4X-CnHtgO6u.d.ts} +1 -2
  21. package/dist/{4X-CvScPJTf.d.cts → 4X-DYz_nYSD.d.ts} +1 -2
  22. package/dist/{5X-COsZHUaQ.d.ts → 5X-BzPEdkbC.d.ts} +1 -2
  23. package/dist/{5X-C6db432h.d.ts → 5X-BziH0a09.d.cts} +1 -1
  24. package/dist/{5X-BOUxhadJ.d.cts → 5X-Cfe39fFc.d.cts} +1 -1
  25. package/dist/{5X-CkLu7Vyd.d.cts → 5X-kBF74qx1.d.ts} +1 -2
  26. package/dist/{6X-C_fFIcJC.d.ts → 6X-BceErbps.d.cts} +1 -1
  27. package/dist/{6X-DE7RJeV6.d.cts → 6X-C_xpeu6J.d.ts} +1 -2
  28. package/dist/{6X-ClZDKOTC.d.ts → 6X-DLWEe1bP.d.cts} +1 -1
  29. package/dist/{6X-Mf32k1d0.d.cts → 6X-sQZfT0ZK.d.ts} +1 -2
  30. package/dist/{7X-Chtd6B66.d.cts → 7X-Bet2agJ6.d.ts} +1 -2
  31. package/dist/{7X-kot_VccM.d.ts → 7X-BoKQxMoO.d.ts} +1 -2
  32. package/dist/{7X-BZyesooz.d.ts → 7X-CucHYQsA.d.cts} +1 -1
  33. package/dist/{7X-DoCUcp-J.d.cts → 7X-CwPAqozm.d.cts} +1 -1
  34. package/dist/{8X-Df4DOBOe.d.ts → 8X-BIjJ9kaV.d.cts} +1 -1
  35. package/dist/{8X-Dr9RunRw.d.cts → 8X-BOEWATU3.d.ts} +1 -2
  36. package/dist/{8X-DkuKAkHz.d.ts → 8X-CJpqd5xp.d.cts} +1 -1
  37. package/dist/{8X-DqZyMvyV.d.cts → 8X-s5AzkHR-.d.ts} +1 -2
  38. package/dist/{9X-BDgifncF.d.ts → 9X-BBDP1gZ6.d.ts} +1 -2
  39. package/dist/{9X-BaoZtjWF.d.cts → 9X-CP5Xp6bE.d.cts} +1 -1
  40. package/dist/{9X-BcAb6Uso.d.cts → 9X-D3aOVCnz.d.cts} +1 -1
  41. package/dist/{9X-BhBWlgxG.d.ts → 9X-DAAZV4sr.d.ts} +1 -2
  42. package/dist/{AX-D6XHWdrY.d.ts → AX-CmpMMhII.d.ts} +1 -2
  43. package/dist/{AX-BY72FohC.d.cts → AX-DFzpxGOT.d.cts} +1 -1
  44. package/dist/{BX-D_0C8Qbd.d.ts → BX-CyiqNE6b.d.cts} +1 -1
  45. package/dist/{BX-CA0OmrUZ.d.cts → BX-j78z_ju_.d.ts} +1 -2
  46. package/dist/{CX-glpQSL8x.d.cts → CX-B6rEhQx7.d.ts} +1 -2
  47. package/dist/{CX-HH4cSZRX.d.ts → CX-BTPvC3Dv.d.cts} +1 -1
  48. package/dist/{DX-DimL1MDM.d.cts → DX-BD4-hTCh.d.cts} +1 -1
  49. package/dist/{DX-Dx22ax_I.d.ts → DX-CAmMnx5a.d.ts} +1 -2
  50. package/dist/{EX-BRWh1wFc.d.ts → EX-CXhSC85J.d.ts} +1 -2
  51. package/dist/{EX-Cx87Ruxl.d.cts → EX-mTHCH0Yk.d.cts} +1 -1
  52. package/dist/{FX-D81UlxNN.d.cts → FX-DOOMoQl2.d.cts} +1 -1
  53. package/dist/{FX-RmjwAr40.d.ts → FX-DYVIJ3l0.d.ts} +1 -2
  54. package/dist/{GX-CJyo7oDp.d.ts → GX-8URJ7WHz.d.cts} +1 -1
  55. package/dist/{GX-9i7piP9G.d.cts → GX-eBOVHqi6.d.ts} +1 -2
  56. package/dist/{HX-20GVJAvl.d.cts → HX-49z8CzsE.d.cts} +1 -1
  57. package/dist/{HX-XALBTdLA.d.ts → HX-Dz5T0xXI.d.ts} +1 -2
  58. package/dist/{IX-6SZ55QKb.d.ts → IX-B6kblmBs.d.cts} +1 -1
  59. package/dist/{IX-D54NGPsc.d.cts → IX-PiKYro5a.d.ts} +1 -2
  60. package/dist/{JX-C1RYcwQX.d.cts → JX-DMwHLGEE.d.cts} +1 -1
  61. package/dist/{JX-hQ1XRmLp.d.ts → JX-Dvnt0mSK.d.ts} +1 -2
  62. package/dist/{KX-BNwunEfn.d.ts → KX-BUb8e0yg.d.ts} +1 -2
  63. package/dist/{KX-gQHCIgtQ.d.cts → KX-DaJPkefl.d.cts} +1 -1
  64. package/dist/{LX-CHYX3X3J.d.ts → LX-BnILxjdS.d.cts} +1 -1
  65. package/dist/{LX-CPurJGIh.d.cts → LX-l5ZBaGov.d.ts} +1 -2
  66. package/dist/{MX-BPGLWSUz.d.ts → MX-BbPO8mTj.d.cts} +1 -1
  67. package/dist/{MX-BnyW5eHf.d.cts → MX-C7C15AWi.d.ts} +1 -2
  68. package/dist/{NX-RulN5Ml3.d.ts → NX-C7nFVC-D.d.ts} +1 -2
  69. package/dist/{NX-B11fQuco.d.cts → NX-xy5uw7H3.d.cts} +1 -1
  70. package/dist/{OX-DgKVSp7I.d.ts → OX-CIzARbON.d.cts} +1 -1
  71. package/dist/{OX-T-ydRXQS.d.cts → OX-Dmkvcaij.d.ts} +1 -2
  72. package/dist/{PX-DA4A2kEv.d.ts → PX-BKZ14N7N.d.ts} +1 -2
  73. package/dist/{PX-p0n1SzvU.d.cts → PX-CL8waFgx.d.cts} +1 -1
  74. package/dist/{QX-DrFqsMEs.d.ts → QX-6xdSNtxZ.d.ts} +1 -2
  75. package/dist/{QX-CI1NccIB.d.cts → QX-BowAYqZb.d.cts} +1 -1
  76. package/dist/{RX-DnNKol22.d.cts → RX-DFoiOK5q.d.ts} +1 -2
  77. package/dist/{RX-Cm7vFcFN.d.ts → RX-fWoWcHTG.d.cts} +1 -1
  78. package/dist/{SX-BUjiWQYz.d.cts → SX-CZ3e31OT.d.cts} +1 -1
  79. package/dist/{SX-CsPPTu-W.d.ts → SX-D-Szi9wa.d.ts} +1 -2
  80. package/dist/{TX-DCY25MdR.d.ts → TX-CJhJ-HYX.d.cts} +1 -1
  81. package/dist/{TX-DOEpsf05.d.cts → TX-DTfkGsqn.d.ts} +1 -2
  82. package/dist/{UX-DgUOnTFK.d.cts → UX-Bw4HHAj4.d.ts} +1 -2
  83. package/dist/{UX-DauyagHy.d.ts → UX-P7-u2y70.d.cts} +1 -1
  84. package/dist/{VX-DD4scgCe.d.ts → VX-C8Eu5gQf.d.cts} +1 -1
  85. package/dist/{VX-kUX6LM-3.d.cts → VX-DCv5x_hi.d.ts} +1 -2
  86. package/dist/{WX-DPfyPFFh.d.cts → WX-BYtJ5_if.d.ts} +1 -2
  87. package/dist/{WX-CjkoppdY.d.ts → WX-DkiaqB2V.d.cts} +1 -1
  88. package/dist/{XX-sbsIUOnA.d.ts → XX-D4p4iK-a.d.cts} +1 -1
  89. package/dist/{XX-C4C1gQZH.d.cts → XX-Jo1yJO3A.d.ts} +1 -2
  90. package/dist/{YX-DUdO8mRC.d.ts → YX-BvGmEsVG.d.ts} +1 -2
  91. package/dist/{YX-BeT-LsiA.d.cts → YX-Du8zv9qz.d.cts} +1 -1
  92. package/dist/{ZX-BuVTTq-D.d.cts → ZX-B4jFD-21.d.cts} +1 -1
  93. package/dist/{ZX-DwfcSA-D.d.ts → ZX-B59AJcBY.d.ts} +1 -2
  94. package/dist/api/platform/platformLogin.d.ts +58 -60
  95. package/dist/api/platform/platformLogin.js +1 -1
  96. package/dist/certificate-DFK-788s.cjs +62 -0
  97. package/dist/certificate-DFK-788s.cjs.map +1 -0
  98. package/dist/certificate-aooIRf9A.js +49 -0
  99. package/dist/{classification-codes-C2X4xW5-.d.ts → classification-codes-BKxV-rO9.d.ts} +1 -2
  100. package/dist/{country-code-DsI8Mbzx.d.ts → country-code-CQuaiQm2.d.ts} +1 -2
  101. package/dist/{currencies-DKuDflOO.d.ts → currencies-BYJK-m6v.d.ts} +1 -2
  102. package/dist/document-DMIMRJV0.cjs +472 -0
  103. package/dist/document-DMIMRJV0.cjs.map +1 -0
  104. package/dist/document-NQos5fSr.js +405 -0
  105. package/dist/documents-BVG7KIKY.d.ts +847 -0
  106. package/dist/documents-C066EC9m.d.cts +848 -0
  107. package/dist/{e-invoice-C2TxhyrK.d.ts → e-invoice-CmbLQkHw.d.ts} +1 -2
  108. package/dist/{getBaseUrl-Dx6RDC8I.js → getBaseUrl-R3IdgCu3.js} +1 -2
  109. package/dist/{index-B1DSs-wd.d.cts → index-0-EvC6Nv.d.ts} +1 -2
  110. package/dist/{index-FTgB2nM6.d.ts → index-D2_HVwCz.d.cts} +1 -1
  111. package/dist/index.cjs +308 -12
  112. package/dist/index.cjs.map +1 -0
  113. package/dist/index.d.ts +233 -60
  114. package/dist/index.js +306 -11
  115. package/dist/index10.cjs +0 -34
  116. package/dist/index11.cjs +25 -15
  117. package/dist/index11.cjs.map +1 -1
  118. package/dist/index12.cjs +24 -0
  119. package/dist/index12.cjs.map +1 -0
  120. package/dist/index13.cjs +0 -13
  121. package/dist/index15.cjs +3 -2
  122. package/dist/index16.cjs +12 -16
  123. package/dist/index17.cjs +2 -2
  124. package/dist/index18.cjs +336 -204
  125. package/dist/index18.cjs.map +1 -1
  126. package/dist/index19.cjs +325 -105
  127. package/dist/index19.cjs.map +1 -1
  128. package/dist/index20.cjs +136 -133
  129. package/dist/index20.cjs.map +1 -1
  130. package/dist/index21.cjs +2 -63
  131. package/dist/index22.cjs +203 -262
  132. package/dist/index22.cjs.map +1 -1
  133. package/dist/index23.cjs +104 -74
  134. package/dist/index23.cjs.map +1 -1
  135. package/dist/index24.cjs +132 -102
  136. package/dist/index24.cjs.map +1 -1
  137. package/dist/index25.cjs +59 -68
  138. package/dist/index25.cjs.map +1 -1
  139. package/dist/index26.cjs +262 -107
  140. package/dist/index26.cjs.map +1 -1
  141. package/dist/index27.cjs +74 -95
  142. package/dist/index27.cjs.map +1 -1
  143. package/dist/index28.cjs +102 -13
  144. package/dist/index28.cjs.map +1 -1
  145. package/dist/index29.cjs +68 -33
  146. package/dist/index29.cjs.map +1 -1
  147. package/dist/index30.cjs +107 -14
  148. package/dist/index30.cjs.map +1 -1
  149. package/dist/index31.cjs +95 -24
  150. package/dist/index31.cjs.map +1 -1
  151. package/dist/index32.cjs +11 -13
  152. package/dist/index32.cjs.map +1 -1
  153. package/dist/index33.cjs +31 -7
  154. package/dist/index33.cjs.map +1 -1
  155. package/dist/index34.cjs +12 -7
  156. package/dist/index34.cjs.map +1 -1
  157. package/dist/index35.cjs +22 -10
  158. package/dist/index35.cjs.map +1 -1
  159. package/dist/index36.cjs +13 -6
  160. package/dist/index36.cjs.map +1 -1
  161. package/dist/index37.cjs +7 -101
  162. package/dist/index37.cjs.map +1 -1
  163. package/dist/index38.cjs +7 -106
  164. package/dist/index38.cjs.map +1 -1
  165. package/dist/index39.cjs +10 -119
  166. package/dist/index39.cjs.map +1 -1
  167. package/dist/index40.cjs +6 -106
  168. package/dist/index40.cjs.map +1 -1
  169. package/dist/index41.cjs +101 -98
  170. package/dist/index41.cjs.map +1 -1
  171. package/dist/index42.cjs +106 -118
  172. package/dist/index42.cjs.map +1 -1
  173. package/dist/index43.cjs +119 -127
  174. package/dist/index43.cjs.map +1 -1
  175. package/dist/index44.cjs +106 -117
  176. package/dist/index44.cjs.map +1 -1
  177. package/dist/index45.cjs +98 -14
  178. package/dist/index45.cjs.map +1 -1
  179. package/dist/index46.cjs +118 -95
  180. package/dist/index46.cjs.map +1 -1
  181. package/dist/index47.cjs +127 -142
  182. package/dist/index47.cjs.map +1 -1
  183. package/dist/index48.cjs +117 -114
  184. package/dist/index48.cjs.map +1 -1
  185. package/dist/index49.cjs +14 -144
  186. package/dist/index49.cjs.map +1 -1
  187. package/dist/index5.cjs +0 -25
  188. package/dist/index50.cjs +95 -113
  189. package/dist/index50.cjs.map +1 -1
  190. package/dist/index51.cjs +142 -17
  191. package/dist/index51.cjs.map +1 -1
  192. package/dist/index52.cjs +114 -112
  193. package/dist/index52.cjs.map +1 -1
  194. package/dist/index53.cjs +144 -47
  195. package/dist/index53.cjs.map +1 -1
  196. package/dist/index54.cjs +113 -14
  197. package/dist/index54.cjs.map +1 -1
  198. package/dist/index55.cjs +17 -28
  199. package/dist/index55.cjs.map +1 -1
  200. package/dist/index56.cjs +112 -22
  201. package/dist/index56.cjs.map +1 -1
  202. package/dist/index57.cjs +47 -9
  203. package/dist/index57.cjs.map +1 -1
  204. package/dist/index58.cjs +14 -8
  205. package/dist/index58.cjs.map +1 -1
  206. package/dist/index58.cts.map +1 -0
  207. package/dist/index59.cjs +28 -17
  208. package/dist/index59.cjs.map +1 -1
  209. package/dist/index59.cts.map +1 -1
  210. package/dist/index6.cjs +25 -0
  211. package/dist/{index5.cjs.map → index6.cjs.map} +1 -1
  212. package/dist/index60.cjs +22 -412
  213. package/dist/index60.cjs.map +1 -1
  214. package/dist/index60.cts.map +1 -0
  215. package/dist/index61.cjs +9 -8
  216. package/dist/index61.cjs.map +1 -1
  217. package/dist/index61.cts.map +1 -0
  218. package/dist/index62.cjs +8 -9
  219. package/dist/index62.cjs.map +1 -1
  220. package/dist/index62.cts.map +1 -1
  221. package/dist/index63.cjs +24 -0
  222. package/dist/index63.cjs.map +1 -0
  223. package/dist/index63.cts.map +1 -1
  224. package/dist/index64.cjs +419 -0
  225. package/dist/index64.cjs.map +1 -0
  226. package/dist/index64.cts.map +1 -1
  227. package/dist/index65.cjs +9 -116
  228. package/dist/index65.cjs.map +1 -1
  229. package/dist/index65.cts.map +1 -1
  230. package/dist/index66.cjs +10 -223
  231. package/dist/index66.cjs.map +1 -1
  232. package/dist/index66.cts.map +1 -1
  233. package/dist/index8.cjs +0 -25
  234. package/dist/index9.cjs +25 -0
  235. package/dist/{index8.cjs.map → index9.cjs.map} +1 -1
  236. package/dist/{msic-codes-B_1W6lZF.d.cts → msic-codes-CPWVNnpq.d.cts} +11 -11
  237. package/dist/msic-codes-DToUqTI6.d.ts +25 -0
  238. package/dist/{payment-modes-DHihrywe.d.cts → payment-modes-DA7uBIGb.d.ts} +1 -2
  239. package/dist/{payment-modes-B8dNy3SM.d.ts → payment-modes-FX88uyhP.d.cts} +1 -1
  240. package/dist/platformLogin-PGzMhw1X.cjs.map +1 -1
  241. package/dist/{platformLogin-DsxWWUXr.js → platformLogin-f0bNAoZI.js} +1 -2
  242. package/dist/{signatures-C9QPZTQd.d.ts → signatures-CG175mpg.d.ts} +1 -2
  243. package/dist/{state-codes-DXSWtE6a.d.cts → state-codes-CNp_6051.d.cts} +1 -1
  244. package/dist/{state-codes-CxG1S9YY.d.ts → state-codes-dvoTe5pC.d.ts} +1 -2
  245. package/dist/{tax-types-CEpfSh5P.d.ts → tax-types-tosH5I0q.d.ts} +1 -2
  246. package/dist/types/classification-codes.d.ts +1 -1
  247. package/dist/types/country-code.d.ts +1 -1
  248. package/dist/types/currencies.d.ts +1 -1
  249. package/dist/types/documents.d.ts +7 -0
  250. package/dist/types/e-invoice.d.ts +1 -1
  251. package/dist/types/index.d.ts +58 -59
  252. package/dist/types/msic/0X.d.ts +1 -1
  253. package/dist/types/msic/1X.d.ts +1 -1
  254. package/dist/types/msic/2X.d.ts +1 -1
  255. package/dist/types/msic/3X.d.ts +1 -1
  256. package/dist/types/msic/4X.d.ts +1 -1
  257. package/dist/types/msic/5X.d.ts +1 -1
  258. package/dist/types/msic/6X.d.ts +1 -1
  259. package/dist/types/msic/7X.d.ts +1 -1
  260. package/dist/types/msic/8X.d.ts +1 -1
  261. package/dist/types/msic/9X.d.ts +1 -1
  262. package/dist/types/msic-codes.d.ts +11 -11
  263. package/dist/types/payment-modes.d.ts +1 -1
  264. package/dist/types/signatures.d.ts +1 -1
  265. package/dist/types/state-codes.d.ts +1 -1
  266. package/dist/types/tax-types.d.ts +1 -1
  267. package/dist/types/unit/1X.d.ts +1 -1
  268. package/dist/types/unit/2X.d.ts +1 -1
  269. package/dist/types/unit/3X.d.ts +1 -1
  270. package/dist/types/unit/4X.d.ts +1 -1
  271. package/dist/types/unit/5X.d.ts +1 -1
  272. package/dist/types/unit/6X.d.ts +1 -1
  273. package/dist/types/unit/7X.d.ts +1 -1
  274. package/dist/types/unit/8X.d.ts +1 -1
  275. package/dist/types/unit/9X.d.ts +1 -1
  276. package/dist/types/unit/AX.d.ts +1 -1
  277. package/dist/types/unit/BX.d.ts +1 -1
  278. package/dist/types/unit/CX.d.ts +1 -1
  279. package/dist/types/unit/DX.d.ts +1 -1
  280. package/dist/types/unit/EX.d.ts +1 -1
  281. package/dist/types/unit/FX.d.ts +1 -1
  282. package/dist/types/unit/GX.d.ts +1 -1
  283. package/dist/types/unit/HX.d.ts +1 -1
  284. package/dist/types/unit/IX.d.ts +1 -1
  285. package/dist/types/unit/JX.d.ts +1 -1
  286. package/dist/types/unit/KX.d.ts +1 -1
  287. package/dist/types/unit/LX.d.ts +1 -1
  288. package/dist/types/unit/MX.d.ts +1 -1
  289. package/dist/types/unit/NX.d.ts +1 -1
  290. package/dist/types/unit/OX.d.ts +1 -1
  291. package/dist/types/unit/PX.d.ts +1 -1
  292. package/dist/types/unit/QX.d.ts +1 -1
  293. package/dist/types/unit/RX.d.ts +1 -1
  294. package/dist/types/unit/SX.d.ts +1 -1
  295. package/dist/types/unit/TX.d.ts +1 -1
  296. package/dist/types/unit/UX.d.ts +1 -1
  297. package/dist/types/unit/VX.d.ts +1 -1
  298. package/dist/types/unit/WX.d.ts +1 -1
  299. package/dist/types/unit/XX.d.ts +1 -1
  300. package/dist/types/unit/YX.d.ts +1 -1
  301. package/dist/types/unit/ZX.d.ts +1 -1
  302. package/dist/types/unit-types.d.ts +36 -36
  303. package/dist/unit-types-BKZxwVYQ.d.ts +55 -0
  304. package/dist/unit-types-CaOA5ZDG.d.cts +56 -0
  305. package/dist/utils/base64.d.ts +1 -2
  306. package/dist/utils/base64.js +1 -2
  307. package/dist/utils/certificate.d.ts +22 -0
  308. package/dist/utils/certificate.js +3 -0
  309. package/dist/utils/document.d.ts +135 -0
  310. package/dist/utils/document.js +3 -0
  311. package/dist/utils/getBaseUrl.d.ts +1 -2
  312. package/dist/utils/getBaseUrl.js +1 -1
  313. package/dist/utils/helpers.d.ts +271 -0
  314. package/dist/utils/helpers.js +330 -0
  315. package/dist/utils/signature-diagnostics.d.ts +93 -0
  316. package/dist/utils/signature-diagnostics.js +326 -0
  317. package/dist/utils/validation.d.ts +46 -0
  318. package/dist/utils/validation.js +134 -0
  319. package/myinvois-cert.conf.template +23 -0
  320. package/package.json +9 -3
  321. package/scripts/gen-cert.sh +159 -0
  322. package/src/api/platform/platformLogin.ts +1 -1
  323. package/src/index.ts +528 -1
  324. package/src/types/documents.d.ts +862 -0
  325. package/src/types/index.d.ts +1 -1
  326. package/src/utils/certificate.ts +60 -0
  327. package/src/utils/document.ts +852 -0
  328. package/src/utils/helpers.ts +552 -0
  329. package/src/utils/signature-diagnostics.ts +583 -0
  330. package/src/utils/validation.ts +268 -0
  331. package/test/MyInvoiClientWithRealData.test.ts +9 -1
  332. package/test/MyInvoisClient.test.ts +7 -1
  333. package/test/dynamicInvoiceFeatures.test.ts +449 -0
  334. package/test/signAndSubmitInvoice.test.ts +269 -734
  335. package/test/signature-diagnostics.test.ts +128 -0
  336. package/tsconfig.json +0 -3
  337. package/dist/0X-C4IRh_fJ.d.ts.map +0 -1
  338. package/dist/0X-Yw7mZEro.d.cts.map +0 -1
  339. package/dist/1X-Brnls9Jh.d.ts.map +0 -1
  340. package/dist/1X-BwpSoT3o.d.cts.map +0 -1
  341. package/dist/1X-C-_KHV-Q.d.ts.map +0 -1
  342. package/dist/1X-D_aUVsuM.d.cts.map +0 -1
  343. package/dist/2X-Bb6elyzV.d.cts.map +0 -1
  344. package/dist/2X-DkS1BoE5.d.ts.map +0 -1
  345. package/dist/2X-UdQcQW24.d.ts.map +0 -1
  346. package/dist/2X-hClUyw26.d.cts.map +0 -1
  347. package/dist/3X-C7VFD-n-.d.cts.map +0 -1
  348. package/dist/3X-CLMESDvz.d.cts.map +0 -1
  349. package/dist/3X-DFI-4RQQ.d.ts.map +0 -1
  350. package/dist/3X-DVDyspgb.d.ts.map +0 -1
  351. package/dist/4X-CIJ2JJ2w.d.ts.map +0 -1
  352. package/dist/4X-CUR8jlaZ.d.ts.map +0 -1
  353. package/dist/4X-CvScPJTf.d.cts.map +0 -1
  354. package/dist/4X-DIfvpU6V.d.cts.map +0 -1
  355. package/dist/5X-BOUxhadJ.d.cts.map +0 -1
  356. package/dist/5X-C6db432h.d.ts.map +0 -1
  357. package/dist/5X-COsZHUaQ.d.ts.map +0 -1
  358. package/dist/5X-CkLu7Vyd.d.cts.map +0 -1
  359. package/dist/6X-C_fFIcJC.d.ts.map +0 -1
  360. package/dist/6X-ClZDKOTC.d.ts.map +0 -1
  361. package/dist/6X-DE7RJeV6.d.cts.map +0 -1
  362. package/dist/6X-Mf32k1d0.d.cts.map +0 -1
  363. package/dist/7X-BZyesooz.d.ts.map +0 -1
  364. package/dist/7X-Chtd6B66.d.cts.map +0 -1
  365. package/dist/7X-DoCUcp-J.d.cts.map +0 -1
  366. package/dist/7X-kot_VccM.d.ts.map +0 -1
  367. package/dist/8X-Df4DOBOe.d.ts.map +0 -1
  368. package/dist/8X-DkuKAkHz.d.ts.map +0 -1
  369. package/dist/8X-DqZyMvyV.d.cts.map +0 -1
  370. package/dist/8X-Dr9RunRw.d.cts.map +0 -1
  371. package/dist/9X-BDgifncF.d.ts.map +0 -1
  372. package/dist/9X-BaoZtjWF.d.cts.map +0 -1
  373. package/dist/9X-BcAb6Uso.d.cts.map +0 -1
  374. package/dist/9X-BhBWlgxG.d.ts.map +0 -1
  375. package/dist/AX-BY72FohC.d.cts.map +0 -1
  376. package/dist/AX-D6XHWdrY.d.ts.map +0 -1
  377. package/dist/BX-CA0OmrUZ.d.cts.map +0 -1
  378. package/dist/BX-D_0C8Qbd.d.ts.map +0 -1
  379. package/dist/CX-HH4cSZRX.d.ts.map +0 -1
  380. package/dist/CX-glpQSL8x.d.cts.map +0 -1
  381. package/dist/DX-DimL1MDM.d.cts.map +0 -1
  382. package/dist/DX-Dx22ax_I.d.ts.map +0 -1
  383. package/dist/EX-BRWh1wFc.d.ts.map +0 -1
  384. package/dist/EX-Cx87Ruxl.d.cts.map +0 -1
  385. package/dist/FX-D81UlxNN.d.cts.map +0 -1
  386. package/dist/FX-RmjwAr40.d.ts.map +0 -1
  387. package/dist/GX-9i7piP9G.d.cts.map +0 -1
  388. package/dist/GX-CJyo7oDp.d.ts.map +0 -1
  389. package/dist/HX-20GVJAvl.d.cts.map +0 -1
  390. package/dist/HX-XALBTdLA.d.ts.map +0 -1
  391. package/dist/IX-6SZ55QKb.d.ts.map +0 -1
  392. package/dist/IX-D54NGPsc.d.cts.map +0 -1
  393. package/dist/JX-C1RYcwQX.d.cts.map +0 -1
  394. package/dist/JX-hQ1XRmLp.d.ts.map +0 -1
  395. package/dist/KX-BNwunEfn.d.ts.map +0 -1
  396. package/dist/KX-gQHCIgtQ.d.cts.map +0 -1
  397. package/dist/LX-CHYX3X3J.d.ts.map +0 -1
  398. package/dist/LX-CPurJGIh.d.cts.map +0 -1
  399. package/dist/MX-BPGLWSUz.d.ts.map +0 -1
  400. package/dist/MX-BnyW5eHf.d.cts.map +0 -1
  401. package/dist/MyInvoisClient-BrNyMjS-.d.cts +0 -178
  402. package/dist/MyInvoisClient-BrNyMjS-.d.cts.map +0 -1
  403. package/dist/MyInvoisClient-CXu4pdl-.d.ts +0 -178
  404. package/dist/MyInvoisClient-CXu4pdl-.d.ts.map +0 -1
  405. package/dist/MyInvoisClient-Cnvb5iUC.js +0 -299
  406. package/dist/MyInvoisClient-Cnvb5iUC.js.map +0 -1
  407. package/dist/MyInvoisClient-DO1dJfQq.cjs +0 -304
  408. package/dist/MyInvoisClient-DO1dJfQq.cjs.map +0 -1
  409. package/dist/NX-B11fQuco.d.cts.map +0 -1
  410. package/dist/NX-RulN5Ml3.d.ts.map +0 -1
  411. package/dist/OX-DgKVSp7I.d.ts.map +0 -1
  412. package/dist/OX-T-ydRXQS.d.cts.map +0 -1
  413. package/dist/PX-DA4A2kEv.d.ts.map +0 -1
  414. package/dist/PX-p0n1SzvU.d.cts.map +0 -1
  415. package/dist/QX-CI1NccIB.d.cts.map +0 -1
  416. package/dist/QX-DrFqsMEs.d.ts.map +0 -1
  417. package/dist/RX-Cm7vFcFN.d.ts.map +0 -1
  418. package/dist/RX-DnNKol22.d.cts.map +0 -1
  419. package/dist/SX-BUjiWQYz.d.cts.map +0 -1
  420. package/dist/SX-CsPPTu-W.d.ts.map +0 -1
  421. package/dist/TX-DCY25MdR.d.ts.map +0 -1
  422. package/dist/TX-DOEpsf05.d.cts.map +0 -1
  423. package/dist/UX-DauyagHy.d.ts.map +0 -1
  424. package/dist/UX-DgUOnTFK.d.cts.map +0 -1
  425. package/dist/VX-DD4scgCe.d.ts.map +0 -1
  426. package/dist/VX-kUX6LM-3.d.cts.map +0 -1
  427. package/dist/WX-CjkoppdY.d.ts.map +0 -1
  428. package/dist/WX-DPfyPFFh.d.cts.map +0 -1
  429. package/dist/XX-C4C1gQZH.d.cts.map +0 -1
  430. package/dist/XX-sbsIUOnA.d.ts.map +0 -1
  431. package/dist/YX-BeT-LsiA.d.cts.map +0 -1
  432. package/dist/YX-DUdO8mRC.d.ts.map +0 -1
  433. package/dist/ZX-BuVTTq-D.d.cts.map +0 -1
  434. package/dist/ZX-DwfcSA-D.d.ts.map +0 -1
  435. package/dist/api/platform/platformLogin.d.ts.map +0 -1
  436. package/dist/canonicalize-C_fNNpYr.cjs +0 -80
  437. package/dist/canonicalize-C_fNNpYr.cjs.map +0 -1
  438. package/dist/canonicalize-DNUrCGad.js +0 -68
  439. package/dist/canonicalize-DNUrCGad.js.map +0 -1
  440. package/dist/classification-codes-B15PbWxz.d.cts.map +0 -1
  441. package/dist/classification-codes-C2X4xW5-.d.ts.map +0 -1
  442. package/dist/country-code-DPeNFMMi.d.cts.map +0 -1
  443. package/dist/country-code-DsI8Mbzx.d.ts.map +0 -1
  444. package/dist/currencies-DKuDflOO.d.ts.map +0 -1
  445. package/dist/currencies-S5g1gzBU.d.cts.map +0 -1
  446. package/dist/e-invoice-BuwtFnlI.d.cts.map +0 -1
  447. package/dist/e-invoice-C2TxhyrK.d.ts.map +0 -1
  448. package/dist/getBaseUrl-Dx6RDC8I.js.map +0 -1
  449. package/dist/hashCert-Bol7lIh2.js +0 -62
  450. package/dist/hashCert-Bol7lIh2.js.map +0 -1
  451. package/dist/hashCert-mlYEuYex.cjs +0 -68
  452. package/dist/hashCert-mlYEuYex.cjs.map +0 -1
  453. package/dist/hashSignedProperties-9vj5wlYR.js +0 -83
  454. package/dist/hashSignedProperties-9vj5wlYR.js.map +0 -1
  455. package/dist/hashSignedProperties-CU_ZqqmY.cjs +0 -95
  456. package/dist/hashSignedProperties-CU_ZqqmY.cjs.map +0 -1
  457. package/dist/index-B1DSs-wd.d.cts.map +0 -1
  458. package/dist/index-CJNLQVjx.d.ts +0 -1
  459. package/dist/index-FTgB2nM6.d.ts.map +0 -1
  460. package/dist/index-Wy1ONBjV.d.cts +0 -1
  461. package/dist/index10.cjs.map +0 -1
  462. package/dist/index21.cjs.map +0 -1
  463. package/dist/index67.cjs +0 -4
  464. package/dist/index67.cts.map +0 -1
  465. package/dist/index68.cjs +0 -3
  466. package/dist/index68.cts.map +0 -1
  467. package/dist/index69.cjs +0 -4
  468. package/dist/index69.cts.map +0 -1
  469. package/dist/index70.cjs +0 -3
  470. package/dist/index70.cts.map +0 -1
  471. package/dist/index71.cjs +0 -3
  472. package/dist/index71.cts.map +0 -1
  473. package/dist/index72.cjs +0 -3
  474. package/dist/index72.cts.map +0 -1
  475. package/dist/index73.cjs +0 -3
  476. package/dist/index73.cts.map +0 -1
  477. package/dist/invoice-1_1-BJVcw-oE.d.ts +0 -432
  478. package/dist/invoice-1_1-BJVcw-oE.d.ts.map +0 -1
  479. package/dist/invoice-1_1-DWdNPRzr.d.cts +0 -432
  480. package/dist/invoice-1_1-DWdNPRzr.d.cts.map +0 -1
  481. package/dist/invoice1-1-8S-QQn7P.cjs +0 -547
  482. package/dist/invoice1-1-8S-QQn7P.cjs.map +0 -1
  483. package/dist/invoice1-1-CHuLpkFz.js +0 -504
  484. package/dist/invoice1-1-CHuLpkFz.js.map +0 -1
  485. package/dist/msic-codes-B_1W6lZF.d.cts.map +0 -1
  486. package/dist/msic-codes-bs0lTfSZ.d.ts +0 -26
  487. package/dist/msic-codes-bs0lTfSZ.d.ts.map +0 -1
  488. package/dist/payment-modes-B8dNy3SM.d.ts.map +0 -1
  489. package/dist/payment-modes-DHihrywe.d.cts.map +0 -1
  490. package/dist/platformLogin-DsxWWUXr.js.map +0 -1
  491. package/dist/populateFinalDocument-BdyYzz5Y.cjs +0 -96
  492. package/dist/populateFinalDocument-BdyYzz5Y.cjs.map +0 -1
  493. package/dist/populateFinalDocument-BpLXmgLv.js +0 -90
  494. package/dist/populateFinalDocument-BpLXmgLv.js.map +0 -1
  495. package/dist/populateSignedProperties-BJMcBQ6S.cjs +0 -58
  496. package/dist/populateSignedProperties-BJMcBQ6S.cjs.map +0 -1
  497. package/dist/populateSignedProperties-BvGN-YZH.js +0 -52
  498. package/dist/populateSignedProperties-BvGN-YZH.js.map +0 -1
  499. package/dist/sign-B61Cy3gO.cjs +0 -40
  500. package/dist/sign-B61Cy3gO.cjs.map +0 -1
  501. package/dist/sign-DzHK7UhR.js +0 -34
  502. package/dist/sign-DzHK7UhR.js.map +0 -1
  503. package/dist/signatures-BKi9DP2K.d.cts.map +0 -1
  504. package/dist/signatures-C9QPZTQd.d.ts.map +0 -1
  505. package/dist/state-codes-CxG1S9YY.d.ts.map +0 -1
  506. package/dist/state-codes-DXSWtE6a.d.cts.map +0 -1
  507. package/dist/tax-types-CEpfSh5P.d.ts.map +0 -1
  508. package/dist/tax-types-CgwxONDS.d.cts.map +0 -1
  509. package/dist/transform-BLz0S687.cjs +0 -72
  510. package/dist/transform-BLz0S687.cjs.map +0 -1
  511. package/dist/transform-D1q-U6Zj.js +0 -66
  512. package/dist/transform-D1q-U6Zj.js.map +0 -1
  513. package/dist/types/documents/index.d.ts +0 -57
  514. package/dist/types/documents/invoice-1_1.d.ts +0 -56
  515. package/dist/unit-types-1bF0KhIp.d.ts +0 -56
  516. package/dist/unit-types-1bF0KhIp.d.ts.map +0 -1
  517. package/dist/unit-types-CsrkvgfG.d.cts +0 -56
  518. package/dist/unit-types-CsrkvgfG.d.cts.map +0 -1
  519. package/dist/utils/MyInvoisClient.d.ts +0 -60
  520. package/dist/utils/MyInvoisClient.js +0 -13
  521. package/dist/utils/base64.d.ts.map +0 -1
  522. package/dist/utils/base64.js.map +0 -1
  523. package/dist/utils/debug/debug-document-hash.d.ts +0 -100
  524. package/dist/utils/debug/debug-document-hash.d.ts.map +0 -1
  525. package/dist/utils/debug/debug-document-hash.js +0 -120
  526. package/dist/utils/debug/debug-document-hash.js.map +0 -1
  527. package/dist/utils/debug/debug-invoice-submission.d.ts +0 -152
  528. package/dist/utils/debug/debug-invoice-submission.d.ts.map +0 -1
  529. package/dist/utils/debug/debug-invoice-submission.js +0 -226
  530. package/dist/utils/debug/debug-invoice-submission.js.map +0 -1
  531. package/dist/utils/getBaseUrl.d.ts.map +0 -1
  532. package/dist/utils/invoice1-1.d.ts +0 -117
  533. package/dist/utils/invoice1-1.d.ts.map +0 -1
  534. package/dist/utils/invoice1-1.js +0 -10
  535. package/dist/utils/signature/canonicalize.d.ts +0 -26
  536. package/dist/utils/signature/canonicalize.d.ts.map +0 -1
  537. package/dist/utils/signature/canonicalize.js +0 -3
  538. package/dist/utils/signature/hashCert.d.ts +0 -15
  539. package/dist/utils/signature/hashCert.d.ts.map +0 -1
  540. package/dist/utils/signature/hashCert.js +0 -3
  541. package/dist/utils/signature/hashSignedProperties.d.ts +0 -25
  542. package/dist/utils/signature/hashSignedProperties.d.ts.map +0 -1
  543. package/dist/utils/signature/hashSignedProperties.js +0 -3
  544. package/dist/utils/signature/populateFinalDocument.d.ts +0 -23
  545. package/dist/utils/signature/populateFinalDocument.d.ts.map +0 -1
  546. package/dist/utils/signature/populateFinalDocument.js +0 -3
  547. package/dist/utils/signature/populateSignedProperties.d.ts +0 -23
  548. package/dist/utils/signature/populateSignedProperties.d.ts.map +0 -1
  549. package/dist/utils/signature/populateSignedProperties.js +0 -3
  550. package/dist/utils/signature/sign.d.ts +0 -16
  551. package/dist/utils/signature/sign.d.ts.map +0 -1
  552. package/dist/utils/signature/sign.js +0 -3
  553. package/dist/utils/signature/transform.d.ts +0 -16
  554. package/dist/utils/signature/transform.d.ts.map +0 -1
  555. package/dist/utils/signature/transform.js +0 -3
  556. package/src/types/documents/index.d.ts +0 -1
  557. package/src/types/documents/invoice-1_1.d.ts +0 -439
  558. package/src/utils/MyInvoisClient.ts +0 -501
  559. package/src/utils/debug/debug-document-hash.ts +0 -249
  560. package/src/utils/debug/debug-invoice-submission.ts +0 -355
  561. package/src/utils/invoice1-1.ts +0 -671
  562. package/src/utils/signature/canonicalize.ts +0 -104
  563. package/src/utils/signature/hashCert.ts +0 -115
  564. package/src/utils/signature/hashSignedProperties.ts +0 -155
  565. package/src/utils/signature/populateFinalDocument.ts +0 -187
  566. package/src/utils/signature/populateSignedProperties.ts +0 -87
  567. package/src/utils/signature/sign.ts +0 -51
  568. package/src/utils/signature/transform.ts +0 -99
  569. package/test/canonicalize.test.ts +0 -110
  570. package/test/hashCert.test.ts +0 -95
  571. package/test/hashSignedProperties.test.ts +0 -140
  572. package/test/populateFinalDocument.test.ts +0 -218
  573. package/test/populateSignedProperties.test.ts +0 -155
  574. package/test/sign.test.ts +0 -70
  575. package/test/transform.test.ts +0 -158
@@ -1 +0,0 @@
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"}
@@ -1,66 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,57 +0,0 @@
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 };
@@ -1,56 +0,0 @@
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 };
@@ -1,56 +0,0 @@
1
- import { UnitTypeCode_1X } from "./1X-C-_KHV-Q.js";
2
- import { UnitTypeCode_2X } from "./2X-DkS1BoE5.js";
3
- import { UnitTypeCode_3X } from "./3X-DFI-4RQQ.js";
4
- import { UnitTypeCode_4X } from "./4X-CIJ2JJ2w.js";
5
- import { UnitTypeCode_5X } from "./5X-COsZHUaQ.js";
6
- import { UnitTypeCode_6X } from "./6X-ClZDKOTC.js";
7
- import { UnitTypeCode_7X } from "./7X-BZyesooz.js";
8
- import { UnitTypeCode_8X } from "./8X-DkuKAkHz.js";
9
- import { UnitTypeCode_9X } from "./9X-BDgifncF.js";
10
- import { UnitTypeCode_AX } from "./AX-D6XHWdrY.js";
11
- import { UnitTypeCode_BX } from "./BX-D_0C8Qbd.js";
12
- import { UnitTypeCode_CX } from "./CX-HH4cSZRX.js";
13
- import { UnitTypeCode_DX } from "./DX-Dx22ax_I.js";
14
- import { UnitTypeCode_EX } from "./EX-BRWh1wFc.js";
15
- import { UnitTypeCode_FX } from "./FX-RmjwAr40.js";
16
- import { UnitTypeCode_GX } from "./GX-CJyo7oDp.js";
17
- import { UnitTypeCode_HX } from "./HX-XALBTdLA.js";
18
- import { UnitTypeCode_IX } from "./IX-6SZ55QKb.js";
19
- import { UnitTypeCode_JX } from "./JX-hQ1XRmLp.js";
20
- import { UnitTypeCode_KX } from "./KX-BNwunEfn.js";
21
- import { UnitTypeCode_LX } from "./LX-CHYX3X3J.js";
22
- import { UnitTypeCode_MX } from "./MX-BPGLWSUz.js";
23
- import { UnitTypeCode_NX } from "./NX-RulN5Ml3.js";
24
- import { UnitTypeCode_OX } from "./OX-DgKVSp7I.js";
25
- import { UnitTypeCode_PX } from "./PX-DA4A2kEv.js";
26
- import { UnitTypeCode_QX } from "./QX-DrFqsMEs.js";
27
- import { UnitTypeCode_RX } from "./RX-Cm7vFcFN.js";
28
- import { UnitTypeCode_SX } from "./SX-CsPPTu-W.js";
29
- import { UnitTypeCode_TX } from "./TX-DCY25MdR.js";
30
- import { UnitTypeCode_UX } from "./UX-DauyagHy.js";
31
- import { UnitTypeCode_VX } from "./VX-DD4scgCe.js";
32
- import { UnitTypeCode_WX } from "./WX-CjkoppdY.js";
33
- import { UnitTypeCode_YX } from "./YX-DUdO8mRC.js";
34
- import { UnitTypeCode_ZX } from "./ZX-DwfcSA-D.js";
35
- import { UnitTypeCode_XX } from "./XX-sbsIUOnA.js";
36
-
37
- //#region src/types/unit-types.d.ts
38
-
39
- /**
40
- * Represents the allowed codes for Unit of Measurement types.
41
- * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
42
- * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
43
- */
44
- type UnitTypeCode = UnitTypeCode_1X | UnitTypeCode_2X | UnitTypeCode_3X | UnitTypeCode_4X | UnitTypeCode_5X | UnitTypeCode_6X | UnitTypeCode_7X | UnitTypeCode_8X | UnitTypeCode_9X | UnitTypeCode_AX | UnitTypeCode_BX | UnitTypeCode_CX | UnitTypeCode_DX | UnitTypeCode_EX | UnitTypeCode_FX | UnitTypeCode_GX | UnitTypeCode_HX | UnitTypeCode_IX | UnitTypeCode_JX | UnitTypeCode_KX | UnitTypeCode_LX | UnitTypeCode_MX | UnitTypeCode_NX | UnitTypeCode_OX | UnitTypeCode_PX | UnitTypeCode_QX | UnitTypeCode_RX | UnitTypeCode_SX | UnitTypeCode_TX | UnitTypeCode_UX | UnitTypeCode_VX | UnitTypeCode_WX | UnitTypeCode_YX | UnitTypeCode_ZX | UnitTypeCode_XX;
45
-
46
- /**
47
- * Interface representing a Unit of Measurement entry.
48
- * Contains the code and its corresponding name.
49
- */
50
- interface UnitType {
51
- code: UnitTypeCode;
52
- name: string;
53
- }
54
- //#endregion
55
- export { UnitType, UnitTypeCode };
56
- //# sourceMappingURL=unit-types-1bF0KhIp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit-types-1bF0KhIp.d.ts","names":["UnitTypeCode_1X","UnitTypeCode_2X","UnitTypeCode_3X","UnitTypeCode_4X","UnitTypeCode_5X","UnitTypeCode_6X","UnitTypeCode_7X","UnitTypeCode_8X","UnitTypeCode_9X","UnitTypeCode_AX","UnitTypeCode_BX","UnitTypeCode_CX","UnitTypeCode_DX","UnitTypeCode_EX","UnitTypeCode_FX","UnitTypeCode_GX","UnitTypeCode_HX","UnitTypeCode_IX","UnitTypeCode_JX","UnitTypeCode_KX","UnitTypeCode_LX","UnitTypeCode_MX","UnitTypeCode_NX","UnitTypeCode_OX","UnitTypeCode_PX","UnitTypeCode_QX","UnitTypeCode_RX","UnitTypeCode_SX","UnitTypeCode_TX","UnitTypeCode_UX","UnitTypeCode_VX","UnitTypeCode_WX","UnitTypeCode_YX","UnitTypeCode_ZX","UnitTypeCode_XX","UnitTypeCode","UnitType"],"sources":["../src/types/unit-types.d.ts"],"sourcesContent":["import type { UnitTypeCode_1X } from './unit/1X.d.ts'\nimport type { UnitTypeCode_2X } from './unit/2X.d.ts'\nimport type { UnitTypeCode_3X } from './unit/3X.d.ts'\nimport type { UnitTypeCode_4X } from './unit/4X.d.ts'\nimport type { UnitTypeCode_5X } from './unit/5X.d.ts'\nimport type { UnitTypeCode_6X } from './unit/6X.d.ts'\nimport type { UnitTypeCode_7X } from './unit/7X.d.ts'\nimport type { UnitTypeCode_8X } from './unit/8X.d.ts'\nimport type { UnitTypeCode_9X } from './unit/9X.d.ts'\nimport type { UnitTypeCode_AX } from './unit/AX.d.ts'\nimport type { UnitTypeCode_BX } from './unit/BX.d.ts'\nimport type { UnitTypeCode_CX } from './unit/CX.d.ts'\nimport type { UnitTypeCode_DX } from './unit/DX.d.ts'\nimport type { UnitTypeCode_EX } from './unit/EX.d.ts'\nimport type { UnitTypeCode_FX } from './unit/FX.d.ts'\nimport type { UnitTypeCode_GX } from './unit/GX.d.ts'\nimport type { UnitTypeCode_HX } from './unit/HX.d.ts'\nimport type { UnitTypeCode_IX } from './unit/IX.d.ts'\nimport type { UnitTypeCode_JX } from './unit/JX.d.ts'\nimport type { UnitTypeCode_KX } from './unit/KX.d.ts'\nimport type { UnitTypeCode_LX } from './unit/LX.d.ts'\nimport type { UnitTypeCode_MX } from './unit/MX.d.ts'\nimport type { UnitTypeCode_NX } from './unit/NX.d.ts'\nimport type { UnitTypeCode_OX } from './unit/OX.d.ts'\nimport type { UnitTypeCode_PX } from './unit/PX.d.ts'\nimport type { UnitTypeCode_QX } from './unit/QX.d.ts'\nimport type { UnitTypeCode_RX } from './unit/RX.d.ts'\nimport type { UnitTypeCode_SX } from './unit/SX.d.ts'\nimport type { UnitTypeCode_TX } from './unit/TX.d.ts'\nimport type { UnitTypeCode_UX } from './unit/UX.d.ts'\nimport type { UnitTypeCode_VX } from './unit/VX.d.ts'\nimport type { UnitTypeCode_WX } from './unit/WX.d.ts'\nimport type { UnitTypeCode_YX } from './unit/YX.d.ts'\nimport type { UnitTypeCode_ZX } from './unit/ZX.d.ts'\nimport type { UnitTypeCode_XX } from './unit/XX.d.ts'\n\n/**\n * Represents the allowed codes for Unit of Measurement types.\n * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:\n * https://sdk.myinvois.hasil.gov.my/codes/unit-types/\n */\nexport type UnitTypeCode =\n | UnitTypeCode_1X\n | UnitTypeCode_2X\n | UnitTypeCode_3X\n | UnitTypeCode_4X\n | UnitTypeCode_5X\n | UnitTypeCode_6X\n | UnitTypeCode_7X\n | UnitTypeCode_8X\n | UnitTypeCode_9X\n | UnitTypeCode_AX\n | UnitTypeCode_BX\n | UnitTypeCode_CX\n | UnitTypeCode_DX\n | UnitTypeCode_EX\n | UnitTypeCode_FX\n | UnitTypeCode_GX\n | UnitTypeCode_HX\n | UnitTypeCode_IX\n | UnitTypeCode_JX\n | UnitTypeCode_KX\n | UnitTypeCode_LX\n | UnitTypeCode_MX\n | UnitTypeCode_NX\n | UnitTypeCode_OX\n | UnitTypeCode_PX\n | UnitTypeCode_QX\n | UnitTypeCode_RX\n | UnitTypeCode_SX\n | UnitTypeCode_TX\n | UnitTypeCode_UX\n | UnitTypeCode_VX\n | UnitTypeCode_WX\n | UnitTypeCode_YX\n | UnitTypeCode_ZX\n | UnitTypeCode_XX\n\n/**\n * Interface representing a Unit of Measurement entry.\n * Contains the code and its corresponding name.\n */\nexport interface UnitType {\n code: UnitTypeCode\n name: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA;;;;AAGIE,KAHQiC,YAAAA,GACRnC,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAEe,GADfC,eAOqB,GANrBC;;;;;;UAMaE,QAAAA;QACTD"}
@@ -1,56 +0,0 @@
1
- import { UnitTypeCode_1X } from "./1X-BwpSoT3o.cjs";
2
- import { UnitTypeCode_2X } from "./2X-Bb6elyzV.cjs";
3
- import { UnitTypeCode_3X } from "./3X-C7VFD-n-.cjs";
4
- import { UnitTypeCode_4X } from "./4X-DIfvpU6V.cjs";
5
- import { UnitTypeCode_5X } from "./5X-BOUxhadJ.cjs";
6
- import { UnitTypeCode_6X } from "./6X-DE7RJeV6.cjs";
7
- import { UnitTypeCode_7X } from "./7X-Chtd6B66.cjs";
8
- import { UnitTypeCode_8X } from "./8X-DqZyMvyV.cjs";
9
- import { UnitTypeCode_9X } from "./9X-BcAb6Uso.cjs";
10
- import { UnitTypeCode_AX } from "./AX-BY72FohC.cjs";
11
- import { UnitTypeCode_BX } from "./BX-CA0OmrUZ.cjs";
12
- import { UnitTypeCode_CX } from "./CX-glpQSL8x.cjs";
13
- import { UnitTypeCode_DX } from "./DX-DimL1MDM.cjs";
14
- import { UnitTypeCode_EX } from "./EX-Cx87Ruxl.cjs";
15
- import { UnitTypeCode_FX } from "./FX-D81UlxNN.cjs";
16
- import { UnitTypeCode_GX } from "./GX-9i7piP9G.cjs";
17
- import { UnitTypeCode_HX } from "./HX-20GVJAvl.cjs";
18
- import { UnitTypeCode_IX } from "./IX-D54NGPsc.cjs";
19
- import { UnitTypeCode_JX } from "./JX-C1RYcwQX.cjs";
20
- import { UnitTypeCode_KX } from "./KX-gQHCIgtQ.cjs";
21
- import { UnitTypeCode_LX } from "./LX-CPurJGIh.cjs";
22
- import { UnitTypeCode_MX } from "./MX-BnyW5eHf.cjs";
23
- import { UnitTypeCode_NX } from "./NX-B11fQuco.cjs";
24
- import { UnitTypeCode_OX } from "./OX-T-ydRXQS.cjs";
25
- import { UnitTypeCode_PX } from "./PX-p0n1SzvU.cjs";
26
- import { UnitTypeCode_QX } from "./QX-CI1NccIB.cjs";
27
- import { UnitTypeCode_RX } from "./RX-DnNKol22.cjs";
28
- import { UnitTypeCode_SX } from "./SX-BUjiWQYz.cjs";
29
- import { UnitTypeCode_TX } from "./TX-DOEpsf05.cjs";
30
- import { UnitTypeCode_UX } from "./UX-DgUOnTFK.cjs";
31
- import { UnitTypeCode_VX } from "./VX-kUX6LM-3.cjs";
32
- import { UnitTypeCode_WX } from "./WX-DPfyPFFh.cjs";
33
- import { UnitTypeCode_YX } from "./YX-BeT-LsiA.cjs";
34
- import { UnitTypeCode_ZX } from "./ZX-BuVTTq-D.cjs";
35
- import { UnitTypeCode_XX } from "./XX-C4C1gQZH.cjs";
36
-
37
- //#region src/types/unit-types.d.ts
38
-
39
- /**
40
- * Represents the allowed codes for Unit of Measurement types.
41
- * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
42
- * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
43
- */
44
- type UnitTypeCode = UnitTypeCode_1X | UnitTypeCode_2X | UnitTypeCode_3X | UnitTypeCode_4X | UnitTypeCode_5X | UnitTypeCode_6X | UnitTypeCode_7X | UnitTypeCode_8X | UnitTypeCode_9X | UnitTypeCode_AX | UnitTypeCode_BX | UnitTypeCode_CX | UnitTypeCode_DX | UnitTypeCode_EX | UnitTypeCode_FX | UnitTypeCode_GX | UnitTypeCode_HX | UnitTypeCode_IX | UnitTypeCode_JX | UnitTypeCode_KX | UnitTypeCode_LX | UnitTypeCode_MX | UnitTypeCode_NX | UnitTypeCode_OX | UnitTypeCode_PX | UnitTypeCode_QX | UnitTypeCode_RX | UnitTypeCode_SX | UnitTypeCode_TX | UnitTypeCode_UX | UnitTypeCode_VX | UnitTypeCode_WX | UnitTypeCode_YX | UnitTypeCode_ZX | UnitTypeCode_XX;
45
-
46
- /**
47
- * Interface representing a Unit of Measurement entry.
48
- * Contains the code and its corresponding name.
49
- */
50
- interface UnitType {
51
- code: UnitTypeCode;
52
- name: string;
53
- }
54
- //#endregion
55
- export { UnitType, UnitTypeCode };
56
- //# sourceMappingURL=unit-types-CsrkvgfG.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unit-types-CsrkvgfG.d.cts","names":["UnitTypeCode_1X","UnitTypeCode_2X","UnitTypeCode_3X","UnitTypeCode_4X","UnitTypeCode_5X","UnitTypeCode_6X","UnitTypeCode_7X","UnitTypeCode_8X","UnitTypeCode_9X","UnitTypeCode_AX","UnitTypeCode_BX","UnitTypeCode_CX","UnitTypeCode_DX","UnitTypeCode_EX","UnitTypeCode_FX","UnitTypeCode_GX","UnitTypeCode_HX","UnitTypeCode_IX","UnitTypeCode_JX","UnitTypeCode_KX","UnitTypeCode_LX","UnitTypeCode_MX","UnitTypeCode_NX","UnitTypeCode_OX","UnitTypeCode_PX","UnitTypeCode_QX","UnitTypeCode_RX","UnitTypeCode_SX","UnitTypeCode_TX","UnitTypeCode_UX","UnitTypeCode_VX","UnitTypeCode_WX","UnitTypeCode_YX","UnitTypeCode_ZX","UnitTypeCode_XX","UnitTypeCode","UnitType"],"sources":["../src/types/unit-types.d.ts"],"sourcesContent":["import type { UnitTypeCode_1X } from './unit/1X.d.ts'\nimport type { UnitTypeCode_2X } from './unit/2X.d.ts'\nimport type { UnitTypeCode_3X } from './unit/3X.d.ts'\nimport type { UnitTypeCode_4X } from './unit/4X.d.ts'\nimport type { UnitTypeCode_5X } from './unit/5X.d.ts'\nimport type { UnitTypeCode_6X } from './unit/6X.d.ts'\nimport type { UnitTypeCode_7X } from './unit/7X.d.ts'\nimport type { UnitTypeCode_8X } from './unit/8X.d.ts'\nimport type { UnitTypeCode_9X } from './unit/9X.d.ts'\nimport type { UnitTypeCode_AX } from './unit/AX.d.ts'\nimport type { UnitTypeCode_BX } from './unit/BX.d.ts'\nimport type { UnitTypeCode_CX } from './unit/CX.d.ts'\nimport type { UnitTypeCode_DX } from './unit/DX.d.ts'\nimport type { UnitTypeCode_EX } from './unit/EX.d.ts'\nimport type { UnitTypeCode_FX } from './unit/FX.d.ts'\nimport type { UnitTypeCode_GX } from './unit/GX.d.ts'\nimport type { UnitTypeCode_HX } from './unit/HX.d.ts'\nimport type { UnitTypeCode_IX } from './unit/IX.d.ts'\nimport type { UnitTypeCode_JX } from './unit/JX.d.ts'\nimport type { UnitTypeCode_KX } from './unit/KX.d.ts'\nimport type { UnitTypeCode_LX } from './unit/LX.d.ts'\nimport type { UnitTypeCode_MX } from './unit/MX.d.ts'\nimport type { UnitTypeCode_NX } from './unit/NX.d.ts'\nimport type { UnitTypeCode_OX } from './unit/OX.d.ts'\nimport type { UnitTypeCode_PX } from './unit/PX.d.ts'\nimport type { UnitTypeCode_QX } from './unit/QX.d.ts'\nimport type { UnitTypeCode_RX } from './unit/RX.d.ts'\nimport type { UnitTypeCode_SX } from './unit/SX.d.ts'\nimport type { UnitTypeCode_TX } from './unit/TX.d.ts'\nimport type { UnitTypeCode_UX } from './unit/UX.d.ts'\nimport type { UnitTypeCode_VX } from './unit/VX.d.ts'\nimport type { UnitTypeCode_WX } from './unit/WX.d.ts'\nimport type { UnitTypeCode_YX } from './unit/YX.d.ts'\nimport type { UnitTypeCode_ZX } from './unit/ZX.d.ts'\nimport type { UnitTypeCode_XX } from './unit/XX.d.ts'\n\n/**\n * Represents the allowed codes for Unit of Measurement types.\n * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:\n * https://sdk.myinvois.hasil.gov.my/codes/unit-types/\n */\nexport type UnitTypeCode =\n | UnitTypeCode_1X\n | UnitTypeCode_2X\n | UnitTypeCode_3X\n | UnitTypeCode_4X\n | UnitTypeCode_5X\n | UnitTypeCode_6X\n | UnitTypeCode_7X\n | UnitTypeCode_8X\n | UnitTypeCode_9X\n | UnitTypeCode_AX\n | UnitTypeCode_BX\n | UnitTypeCode_CX\n | UnitTypeCode_DX\n | UnitTypeCode_EX\n | UnitTypeCode_FX\n | UnitTypeCode_GX\n | UnitTypeCode_HX\n | UnitTypeCode_IX\n | UnitTypeCode_JX\n | UnitTypeCode_KX\n | UnitTypeCode_LX\n | UnitTypeCode_MX\n | UnitTypeCode_NX\n | UnitTypeCode_OX\n | UnitTypeCode_PX\n | UnitTypeCode_QX\n | UnitTypeCode_RX\n | UnitTypeCode_SX\n | UnitTypeCode_TX\n | UnitTypeCode_UX\n | UnitTypeCode_VX\n | UnitTypeCode_WX\n | UnitTypeCode_YX\n | UnitTypeCode_ZX\n | UnitTypeCode_XX\n\n/**\n * Interface representing a Unit of Measurement entry.\n * Contains the code and its corresponding name.\n */\nexport interface UnitType {\n code: UnitTypeCode\n name: string\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyCA;;;;AAGIE,KAHQiC,YAAAA,GACRnC,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAGAG,GAFAF,eAEe,GADfC,eAOqB,GANrBC;;;;;;UAMaE,QAAAA;QACTD"}
@@ -1,60 +0,0 @@
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 "../invoice-1_1-BJVcw-oE.js";
56
- import "../index-CJNLQVjx.js";
57
- import "../state-codes-CxG1S9YY.js";
58
- import "../index-FTgB2nM6.js";
59
- import { MyInvoisClient } from "../MyInvoisClient-CXu4pdl-.js";
60
- export { MyInvoisClient };
@@ -1,13 +0,0 @@
1
- import "../invoice1-1-CHuLpkFz.js";
2
- import "../platformLogin-DsxWWUXr.js";
3
- import "../getBaseUrl-Dx6RDC8I.js";
4
- import "../canonicalize-DNUrCGad.js";
5
- import "../hashCert-Bol7lIh2.js";
6
- import "../hashSignedProperties-9vj5wlYR.js";
7
- import "../populateFinalDocument-BpLXmgLv.js";
8
- import "../populateSignedProperties-BvGN-YZH.js";
9
- import "../sign-DzHK7UhR.js";
10
- import "../transform-D1q-U6Zj.js";
11
- import { MyInvoisClient } from "../MyInvoisClient-Cnvb5iUC.js";
12
-
13
- export { MyInvoisClient };
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64.d.ts","names":["content: string"],"sources":["../../src/utils/base64.ts"],"sourcesContent":[],"mappings":";iBAAgB,cAAA;AAAA,iBAIA,gBAAA,CAJA,OAAA,EAAA,MAAA,CAAA,EAAA,MAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"base64.js","names":["content: string"],"sources":["../../src/utils/base64.ts"],"sourcesContent":["export function encodeToBase64(content: string): string {\n return Buffer.from(content).toString('base64')\n}\n\nexport function decodeFromBase64(content: string): string {\n return Buffer.from(content, 'base64').toString('utf-8')\n}\n"],"mappings":";AAAA,SAAgB,eAAeA,SAAyB;AACtD,QAAO,OAAO,KAAK,QAAQ,CAAC,SAAS,SAAS;AAC/C;AAED,SAAgB,iBAAiBA,SAAyB;AACxD,QAAO,OAAO,KAAK,SAAS,SAAS,CAAC,SAAS,QAAQ;AACxD"}
@@ -1,100 +0,0 @@
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 { InvoiceV1_1, SigningCredentials } from "../../invoice-1_1-BJVcw-oE.js";
56
- import "../../index-CJNLQVjx.js";
57
- import "../../state-codes-CxG1S9YY.js";
58
- import "../../index-FTgB2nM6.js";
59
-
60
- //#region src/utils/debug/debug-document-hash.d.ts
61
- /**
62
- * Debug Document Hash Issues
63
- *
64
- * This helps identify why MyInvois is rejecting the document hash
65
- */
66
- /**
67
- * Compare different hash calculation methods to identify the correct approach
68
- */
69
- declare function debugDocumentHash(invoiceData: InvoiceV1_1, signingCredentials: SigningCredentials): Promise<{
70
- signedXML: string;
71
- documentHashes: {
72
- submissionHash: string;
73
- signatureDocDigest: string;
74
- rawDocumentHash: string;
75
- minifiedDocumentHash: string;
76
- transformedDocumentHash: string;
77
- };
78
- areEqual: {
79
- submissionVsSignature: boolean;
80
- submissionVsRaw: boolean;
81
- submissionVsMinified: boolean;
82
- submissionVsTransformed: boolean;
83
- };
84
- recommendations: string[];
85
- }>;
86
- /**
87
- * Test different approaches to calculate the submission hash
88
- */
89
- declare function testSubmissionHashMethods(invoiceData: InvoiceV1_1, signingCredentials: SigningCredentials): Promise<{
90
- methods: {
91
- current: string;
92
- signatureDigest: string;
93
- canonicalized: string;
94
- transformed: string;
95
- };
96
- recommendations: string[];
97
- }>;
98
- //#endregion
99
- export { debugDocumentHash, testSubmissionHashMethods };
100
- //# sourceMappingURL=debug-document-hash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debug-document-hash.d.ts","names":["invoiceData: InvoiceV1_1","signingCredentials: SigningCredentials"],"sources":["../../../src/utils/debug/debug-document-hash.ts"],"sourcesContent":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAesB,iBAAA,cACP,iCACO,qBACnB;;;;;;;;;;;;;;;;;;;;iBA4JmB,yBAAA,cACP,iCACO,qBACnB"}