@ripwords/myinvois-client 0.3.6 → 0.4.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/README.md +27 -0
- package/dist/{apiQueue-DgKWaQDS.cjs → apiQueue-C45w-ymm.cjs} +1 -1
- package/dist/{apiQueue-DgKWaQDS.cjs.map → apiQueue-C45w-ymm.cjs.map} +1 -1
- package/dist/{certificate-CWmfCPdt.cjs → certificate-Dw46fkYv.cjs} +5 -31
- package/dist/certificate-Dw46fkYv.cjs.map +1 -0
- package/dist/{document-B6ab06s1.cjs → document-B11B5lqd.cjs} +75 -21
- package/dist/document-B11B5lqd.cjs.map +1 -0
- package/dist/{documentManagement-BviJDtf2.cjs → documentManagement-qJnd0l1z.cjs} +3 -2
- package/dist/documentManagement-qJnd0l1z.cjs.map +1 -0
- package/dist/{documentSubmission-B6hkivRK.cjs → documentSubmission-BaPECvYU.cjs} +6 -5
- package/dist/{documentSubmission-B6hkivRK.cjs.map → documentSubmission-BaPECvYU.cjs.map} +1 -1
- package/dist/{documentTypeManagement-D_-LiQVg.cjs → documentTypeManagement-DXRLfTsW.cjs} +1 -1
- package/dist/{documentTypeManagement-D_-LiQVg.cjs.map → documentTypeManagement-DXRLfTsW.cjs.map} +1 -1
- package/dist/{getBaseUrl-D0G4GZmp.cjs → getBaseUrl-D2iJdUGL.cjs} +1 -1
- package/dist/{getBaseUrl-D0G4GZmp.cjs.map → getBaseUrl-D2iJdUGL.cjs.map} +1 -1
- package/dist/index.cjs +14 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index10.cjs +6 -195
- package/dist/index11.cjs +22 -0
- package/dist/index12.cjs +2 -24
- package/dist/index13.cjs +3 -0
- package/dist/index14.cjs +3 -0
- package/dist/index15.cjs +325 -25
- package/dist/index15.cjs.map +1 -1
- package/dist/index16.cjs +187 -19
- package/dist/index16.cjs.map +1 -1
- package/dist/index17.cjs +62 -0
- package/dist/index17.cjs.map +1 -0
- package/dist/index18.cjs +523 -25
- package/dist/index18.cjs.map +1 -1
- package/dist/index19.cjs +187 -15
- package/dist/index19.cjs.map +1 -1
- package/dist/index2.cjs +1 -1
- package/dist/index21.cjs +25 -0
- package/dist/{index12.cjs.map → index21.cjs.map} +1 -1
- package/dist/index23.cjs +0 -5
- package/dist/index24.cjs +25 -9
- package/dist/index24.cjs.map +1 -1
- package/dist/index25.cjs +24 -4
- package/dist/index25.cjs.map +1 -0
- package/dist/index26.cjs +0 -22
- package/dist/index27.cjs +33 -2
- package/dist/index27.cjs.map +1 -0
- package/dist/index28.cjs +23 -2
- package/dist/index28.cjs.map +1 -0
- package/dist/index29.cjs +0 -330
- package/dist/index3.cjs +2 -2
- package/dist/index30.cjs +0 -193
- package/dist/index31.cjs +0 -208
- package/dist/index32.cjs +203 -104
- package/dist/index32.cjs.map +1 -1
- package/dist/index33.cjs +104 -132
- package/dist/index33.cjs.map +1 -1
- package/dist/index34.cjs +132 -59
- package/dist/index34.cjs.map +1 -1
- package/dist/index35.cjs +59 -262
- package/dist/index35.cjs.map +1 -1
- package/dist/index36.cjs +262 -74
- package/dist/index36.cjs.map +1 -1
- package/dist/index37.cjs +74 -102
- package/dist/index37.cjs.map +1 -1
- package/dist/index38.cjs +102 -68
- package/dist/index38.cjs.map +1 -1
- package/dist/index39.cjs +68 -107
- package/dist/index39.cjs.map +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index40.cjs +107 -95
- package/dist/index40.cjs.map +1 -1
- package/dist/index41.cjs +95 -13
- package/dist/index41.cjs.map +1 -1
- package/dist/index42.cjs +11 -31
- package/dist/index42.cjs.map +1 -1
- package/dist/index43.cjs +31 -12
- package/dist/index43.cjs.map +1 -1
- package/dist/index44.cjs +12 -22
- package/dist/index44.cjs.map +1 -1
- package/dist/index45.cjs +22 -13
- package/dist/index45.cjs.map +1 -1
- package/dist/index46.cjs +13 -7
- package/dist/index46.cjs.map +1 -1
- package/dist/index47.cjs +7 -7
- package/dist/index47.cjs.map +1 -1
- package/dist/index48.cjs +7 -10
- package/dist/index48.cjs.map +1 -1
- package/dist/index49.cjs +10 -6
- package/dist/index49.cjs.map +1 -1
- package/dist/index5.cjs +1 -1
- package/dist/index50.cjs +6 -101
- package/dist/index50.cjs.map +1 -1
- package/dist/index51.cjs +101 -106
- package/dist/index51.cjs.map +1 -1
- package/dist/index52.cjs +106 -119
- package/dist/index52.cjs.map +1 -1
- package/dist/index53.cjs +119 -106
- package/dist/index53.cjs.map +1 -1
- package/dist/index54.cjs +106 -98
- package/dist/index54.cjs.map +1 -1
- package/dist/index55.cjs +98 -118
- package/dist/index55.cjs.map +1 -1
- package/dist/index56.cjs +118 -127
- package/dist/index56.cjs.map +1 -1
- package/dist/index57.cjs +127 -117
- package/dist/index57.cjs.map +1 -1
- package/dist/index58.cjs +117 -14
- package/dist/index58.cjs.map +1 -1
- package/dist/index59.cjs +14 -95
- package/dist/index59.cjs.map +1 -1
- package/dist/index6.cjs +1 -1
- package/dist/index60.cjs +95 -142
- package/dist/index60.cjs.map +1 -1
- package/dist/index61.cjs +142 -114
- package/dist/index61.cjs.map +1 -1
- package/dist/index62.cjs +114 -144
- package/dist/index62.cjs.map +1 -1
- package/dist/index63.cjs +144 -113
- package/dist/index63.cjs.map +1 -1
- package/dist/index64.cjs +113 -17
- package/dist/index64.cjs.map +1 -1
- package/dist/index65.cjs +17 -112
- package/dist/index65.cjs.map +1 -1
- package/dist/index66.cjs +112 -47
- package/dist/index66.cjs.map +1 -1
- package/dist/index67.cjs +47 -14
- package/dist/index67.cjs.map +1 -1
- package/dist/index68.cjs +14 -28
- package/dist/index68.cjs.map +1 -1
- package/dist/index69.cjs +28 -22
- package/dist/index69.cjs.map +1 -1
- package/dist/index7.cjs +1 -1
- package/dist/index70.cjs +22 -9
- package/dist/index70.cjs.map +1 -1
- package/dist/index71.cjs +9 -8
- package/dist/index71.cjs.map +1 -1
- package/dist/index72.cjs +8 -17
- package/dist/index72.cjs.map +1 -1
- package/dist/index73.cjs +17 -412
- package/dist/index73.cjs.map +1 -1
- package/dist/index74.cjs +412 -8
- package/dist/index74.cjs.map +1 -1
- package/dist/index75.cjs +8 -9
- package/dist/index75.cjs.map +1 -1
- package/dist/index76.cjs +16 -0
- package/dist/index76.cjs.map +1 -0
- package/dist/index8.cjs +4 -61
- package/dist/index9.cjs +9 -528
- package/dist/index9.cjs.map +1 -1
- package/dist/lineItems-C8iT0OL1.cjs +64 -0
- package/dist/lineItems-C8iT0OL1.cjs.map +1 -0
- package/dist/{notificationManagement-DLBDn77E.cjs → notificationManagement-C_qrFwWL.cjs} +1 -1
- package/dist/{notificationManagement-DLBDn77E.cjs.map → notificationManagement-C_qrFwWL.cjs.map} +1 -1
- package/dist/{platformLogin-Ch6hFKoU.cjs → platformLogin-DC4s6Qpv.cjs} +1 -1
- package/dist/{platformLogin-Ch6hFKoU.cjs.map → platformLogin-DC4s6Qpv.cjs.map} +1 -1
- package/dist/{taxpayerValidation-j8s6YGED.cjs → taxpayerValidation-DzCJROgP.cjs} +1 -1
- package/dist/{taxpayerValidation-j8s6YGED.cjs.map → taxpayerValidation-DzCJROgP.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/0X-Cr3M7hci.d.cts +0 -211
- package/dist/0X-qj3c_vAo.d.ts +0 -210
- package/dist/1X-B-lyAVC4.d.ts +0 -111
- package/dist/1X-C72Wa4pk.d.ts +0 -19
- package/dist/1X-CWwmfCzo.d.cts +0 -112
- package/dist/1X-DYw2tURz.d.cts +0 -20
- package/dist/2X-BfCK614i.d.ts +0 -139
- package/dist/2X-CH89y3Af.d.ts +0 -39
- package/dist/2X-CXtqiwRg.d.cts +0 -40
- package/dist/2X-DNtkJ0tj.d.cts +0 -140
- package/dist/3X-BOxfatu3.d.cts +0 -62
- package/dist/3X-Bk_fUIAk.d.cts +0 -21
- package/dist/3X-DryrwYRf.d.ts +0 -20
- package/dist/3X-Du10Ix_V.d.ts +0 -61
- package/dist/4X-BPMLRoDv.d.ts +0 -30
- package/dist/4X-C7fzDWJ_.d.cts +0 -265
- package/dist/4X-CK9rj5qd.d.cts +0 -31
- package/dist/4X-x3cRFuSM.d.ts +0 -264
- package/dist/5X-B52AKeTz.d.ts +0 -76
- package/dist/5X-Bv7M6KyG.d.ts +0 -21
- package/dist/5X-CNAFsDm2.d.cts +0 -77
- package/dist/5X-CpAvNxvd.d.cts +0 -22
- package/dist/6X-DBwpWPQ6.d.ts +0 -104
- package/dist/6X-ZeZ8OB57.d.ts +0 -15
- package/dist/6X-bXWr_7xY.d.cts +0 -16
- package/dist/6X-uObUP4VG.d.cts +0 -105
- package/dist/7X-BJBOlWhV.d.cts +0 -16
- package/dist/7X-BifJnY24.d.cts +0 -71
- package/dist/7X-C_XGDSpE.d.ts +0 -70
- package/dist/7X-Dvw2Z2VN.d.ts +0 -15
- package/dist/8X-BkgoX8dg.d.ts +0 -18
- package/dist/8X-Di_0wuRX.d.ts +0 -109
- package/dist/8X-DioBXCJ0.d.cts +0 -110
- package/dist/8X-dshwiOxU.d.cts +0 -19
- package/dist/9X-8ZnvvViY.d.ts +0 -97
- package/dist/9X-9j2Djy4W.d.cts +0 -15
- package/dist/9X-BjffnXuq.d.cts +0 -98
- package/dist/9X-Du0e44cq.d.ts +0 -14
- package/dist/AX-BSPLpkVT.d.ts +0 -110
- package/dist/AX-CWCopjCC.d.cts +0 -111
- package/dist/BX-Cq7WdhD3.d.cts +0 -115
- package/dist/BX-u4yMaIkz.d.ts +0 -114
- package/dist/CX-BKZG0pVE.d.ts +0 -127
- package/dist/CX-DlcVZfxx.d.cts +0 -128
- package/dist/DX-CwA9WJAf.d.ts +0 -114
- package/dist/DX-DLdv-Nxj.d.cts +0 -115
- package/dist/EX-BRNu1Ooi.d.ts +0 -106
- package/dist/EX-CIJv8-Lw.d.cts +0 -107
- package/dist/FX-DBxjq6xY.d.ts +0 -126
- package/dist/FX-DlDM_Zea.d.cts +0 -127
- package/dist/GX-B3CvWNrP.d.ts +0 -135
- package/dist/GX-BFGNX6Jy.d.cts +0 -136
- package/dist/HX-D7FABgTv.d.ts +0 -125
- package/dist/HX-D7Y9qRSm.d.cts +0 -126
- package/dist/IX-D3ZknsAB.d.ts +0 -22
- package/dist/IX-DPTrbhgX.d.cts +0 -23
- package/dist/JX-BRaZM3Gc.d.ts +0 -103
- package/dist/JX-D8JmtNpo.d.cts +0 -104
- package/dist/KX-B1K0OWoi.d.ts +0 -150
- package/dist/KX-B46KJZrH.d.cts +0 -151
- package/dist/LX-CKRefinL.d.ts +0 -122
- package/dist/LX-CfTKy8Sx.d.cts +0 -123
- package/dist/MX-BKJ4gNvV.d.cts +0 -153
- package/dist/MX-DKmaeO9r.d.ts +0 -152
- package/dist/NX-CJL2Gn1U.d.ts +0 -121
- package/dist/NX-CSdLIFqU.d.cts +0 -122
- package/dist/OX-BwqOsulT.d.cts +0 -26
- package/dist/OX-Do2ap5v_.d.ts +0 -25
- package/dist/PX-BTx0TXsJ.d.cts +0 -121
- package/dist/PX-_DOr_rm9.d.ts +0 -120
- package/dist/QX-BUXR8RJL.d.cts +0 -59
- package/dist/QX-HlXLkIki.d.ts +0 -58
- package/dist/RX-CZ8HiH37.d.cts +0 -23
- package/dist/RX-DVPGOVES.d.ts +0 -22
- package/dist/SX-CLxsqiQk.d.cts +0 -40
- package/dist/SX-OGT3qwlS.d.ts +0 -39
- package/dist/TX-DKc8hLc4.d.cts +0 -31
- package/dist/TX-cPDINmZ5.d.ts +0 -30
- package/dist/UX-Be3sqvPV.d.ts +0 -17
- package/dist/UX-bc7xDnZI.d.cts +0 -18
- package/dist/VX-CIHTFyoC.d.cts +0 -17
- package/dist/VX-CoEuBNDK.d.ts +0 -16
- package/dist/WX-BHvlq7Jx.d.cts +0 -26
- package/dist/WX-DMvw__jH.d.ts +0 -25
- package/dist/XX-DOA-10JW.d.ts +0 -827
- package/dist/XX-DztQxYHJ.d.cts +0 -828
- package/dist/YX-CkxLeFb4.d.cts +0 -20
- package/dist/YX-F34sJ7Ik.d.ts +0 -19
- package/dist/ZX-CDQOfsHh.d.ts +0 -21
- package/dist/ZX-DVb_buNI.d.cts +0 -22
- package/dist/api/documentManagement.d.ts +0 -89
- package/dist/api/documentManagement.js +0 -3
- package/dist/api/documentSubmission.d.ts +0 -92
- package/dist/api/documentSubmission.js +0 -5
- package/dist/api/documentTypeManagement.d.ts +0 -70
- package/dist/api/documentTypeManagement.js +0 -3
- package/dist/api/notificationManagement.d.ts +0 -68
- package/dist/api/notificationManagement.js +0 -3
- package/dist/api/platformLogin.d.ts +0 -68
- package/dist/api/platformLogin.js +0 -3
- package/dist/api/taxpayerValidation.d.ts +0 -71
- package/dist/api/taxpayerValidation.js +0 -4
- package/dist/apiQueue-B6Q644Bz.js +0 -201
- package/dist/certificate-COwqszxD.js +0 -71
- package/dist/certificate-CWmfCPdt.cjs.map +0 -1
- package/dist/chunk-CUT6urMc.cjs +0 -30
- package/dist/classification-codes-B15PbWxz.d.cts +0 -118
- package/dist/classification-codes-C2X4xW5-.d.ts +0 -117
- package/dist/country-code-DPeNFMMi.d.cts +0 -543
- package/dist/country-code-DsI8Mbzx.d.ts +0 -542
- package/dist/currencies-DKuDflOO.d.ts +0 -207
- package/dist/currencies-S5g1gzBU.d.cts +0 -208
- package/dist/document-B6ab06s1.cjs.map +0 -1
- package/dist/document-Bb5WkhRe.js +0 -626
- package/dist/documentManagement-BviJDtf2.cjs.map +0 -1
- package/dist/documentManagement-lPm8Gziu.js +0 -49
- package/dist/documentSubmission-CMMzKvVl.js +0 -134
- package/dist/documentTypeManagement-cBtVCOY3.js +0 -22
- package/dist/documents-BYV12TVt.d.ts +0 -1196
- package/dist/documents-D_V38Q_U.d.cts +0 -1197
- package/dist/e-invoice-BuwtFnlI.d.cts +0 -44
- package/dist/e-invoice-C2TxhyrK.d.ts +0 -43
- package/dist/formatIdValue-qTxJqj9o.js +0 -7
- package/dist/getBaseUrl-D7nUmoYb.js +0 -7
- package/dist/index-CygwSf0x.d.ts +0 -15
- package/dist/index-Yr1QAbIF.d.cts +0 -16
- package/dist/index.d.ts +0 -614
- package/dist/index.js +0 -627
- package/dist/index10.cjs.map +0 -1
- package/dist/index29.cjs.map +0 -1
- package/dist/index30.cjs.map +0 -1
- package/dist/index31.cjs.map +0 -1
- package/dist/index61.cts.map +0 -1
- package/dist/index62.cts.map +0 -1
- package/dist/index63.cts.map +0 -1
- package/dist/index64.cts.map +0 -1
- package/dist/index65.cts.map +0 -1
- package/dist/index66.cts.map +0 -1
- package/dist/index67.cts.map +0 -1
- package/dist/index68.cts.map +0 -1
- package/dist/index69.cts.map +0 -1
- package/dist/index70.cts.map +0 -1
- package/dist/index71.cts.map +0 -1
- package/dist/index72.cts.map +0 -1
- package/dist/index73.cts.map +0 -1
- package/dist/index74.cts.map +0 -1
- package/dist/index75.cts.map +0 -1
- package/dist/index8.cjs.map +0 -1
- package/dist/msic-codes-CIKdPqag.d.cts +0 -26
- package/dist/msic-codes-CjrrJmzb.d.ts +0 -25
- package/dist/notificationManagement-n4Z5e-My.js +0 -19
- package/dist/notifications-DdlEkprb.d.cts +0 -63
- package/dist/notifications-sFhgh3rJ.d.ts +0 -62
- package/dist/payment-modes-7c1lWlIr.d.cts +0 -44
- package/dist/payment-modes-g3DzLmWb.d.ts +0 -43
- package/dist/platformLogin-CqI9OLYP.js +0 -39
- package/dist/signatures-CerHUrj3.d.ts +0 -172
- package/dist/signatures-CyDSZr_e.d.cts +0 -173
- package/dist/state-codes-Ow4oehYT.d.ts +0 -61
- package/dist/state-codes-u3ppueWo.d.cts +0 -62
- package/dist/tax-types-ClyLgydM.d.ts +0 -41
- package/dist/tax-types-fu5Q6dic.d.cts +0 -42
- package/dist/taxpayer-BAoT73gg.d.ts +0 -35
- package/dist/taxpayer-DwGzY1IL.d.cts +0 -36
- package/dist/taxpayerValidation-Xd_EHDvk.js +0 -47
- package/dist/types/classification-codes.d.ts +0 -2
- package/dist/types/country-code.d.ts +0 -2
- package/dist/types/currencies.d.ts +0 -2
- package/dist/types/documents.d.ts +0 -55
- package/dist/types/e-invoice.d.ts +0 -2
- package/dist/types/index.d.ts +0 -61
- package/dist/types/msic/0X.d.ts +0 -2
- package/dist/types/msic/1X.d.ts +0 -2
- package/dist/types/msic/2X.d.ts +0 -2
- package/dist/types/msic/3X.d.ts +0 -2
- package/dist/types/msic/4X.d.ts +0 -2
- package/dist/types/msic/5X.d.ts +0 -2
- package/dist/types/msic/6X.d.ts +0 -2
- package/dist/types/msic/7X.d.ts +0 -2
- package/dist/types/msic/8X.d.ts +0 -2
- package/dist/types/msic/9X.d.ts +0 -2
- package/dist/types/msic-codes.d.ts +0 -12
- package/dist/types/notifications.d.ts +0 -2
- package/dist/types/payment-modes.d.ts +0 -2
- package/dist/types/signatures.d.ts +0 -2
- package/dist/types/state-codes.d.ts +0 -2
- package/dist/types/tax-types.d.ts +0 -2
- package/dist/types/taxpayer.d.ts +0 -56
- package/dist/types/unit/1X.d.ts +0 -2
- package/dist/types/unit/2X.d.ts +0 -2
- package/dist/types/unit/3X.d.ts +0 -2
- package/dist/types/unit/4X.d.ts +0 -2
- package/dist/types/unit/5X.d.ts +0 -2
- package/dist/types/unit/6X.d.ts +0 -2
- package/dist/types/unit/7X.d.ts +0 -2
- package/dist/types/unit/8X.d.ts +0 -2
- package/dist/types/unit/9X.d.ts +0 -2
- package/dist/types/unit/AX.d.ts +0 -2
- package/dist/types/unit/BX.d.ts +0 -2
- package/dist/types/unit/CX.d.ts +0 -2
- package/dist/types/unit/DX.d.ts +0 -2
- package/dist/types/unit/EX.d.ts +0 -2
- package/dist/types/unit/FX.d.ts +0 -2
- package/dist/types/unit/GX.d.ts +0 -2
- package/dist/types/unit/HX.d.ts +0 -2
- package/dist/types/unit/IX.d.ts +0 -2
- package/dist/types/unit/JX.d.ts +0 -2
- package/dist/types/unit/KX.d.ts +0 -2
- package/dist/types/unit/LX.d.ts +0 -2
- package/dist/types/unit/MX.d.ts +0 -2
- package/dist/types/unit/NX.d.ts +0 -2
- package/dist/types/unit/OX.d.ts +0 -2
- package/dist/types/unit/PX.d.ts +0 -2
- package/dist/types/unit/QX.d.ts +0 -2
- package/dist/types/unit/RX.d.ts +0 -2
- package/dist/types/unit/SX.d.ts +0 -2
- package/dist/types/unit/TX.d.ts +0 -2
- package/dist/types/unit/UX.d.ts +0 -2
- package/dist/types/unit/VX.d.ts +0 -2
- package/dist/types/unit/WX.d.ts +0 -2
- package/dist/types/unit/XX.d.ts +0 -2
- package/dist/types/unit/YX.d.ts +0 -2
- package/dist/types/unit/ZX.d.ts +0 -2
- package/dist/types/unit-types.d.ts +0 -37
- package/dist/types/utils.d.ts +0 -2
- package/dist/unit-types-BXdufGWm.d.cts +0 -56
- package/dist/unit-types-VgYXIwTT.d.ts +0 -55
- package/dist/utils/apiQueue.d.ts +0 -45
- package/dist/utils/apiQueue.js +0 -3
- package/dist/utils/base64.d.ts +0 -5
- package/dist/utils/base64.js +0 -10
- package/dist/utils/certificate.d.ts +0 -26
- package/dist/utils/certificate.js +0 -3
- package/dist/utils/document.d.ts +0 -211
- package/dist/utils/document.js +0 -4
- package/dist/utils/formatIdValue.d.ts +0 -4
- package/dist/utils/formatIdValue.js +0 -3
- package/dist/utils/getBaseUrl.d.ts +0 -4
- package/dist/utils/getBaseUrl.js +0 -3
- package/dist/utils/signature-diagnostics.d.ts +0 -96
- package/dist/utils/signature-diagnostics.js +0 -327
- package/dist/utils/validation.d.ts +0 -108
- package/dist/utils/validation.js +0 -186
- package/dist/utils-C4FoVKLq.d.ts +0 -4
- package/dist/utils-Cdqbbzca.d.cts +0 -5
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { UnitTypeCode_1X } from "./1X-C72Wa4pk.js";
|
|
2
|
-
import { UnitTypeCode_2X } from "./2X-CH89y3Af.js";
|
|
3
|
-
import { UnitTypeCode_3X } from "./3X-DryrwYRf.js";
|
|
4
|
-
import { UnitTypeCode_4X } from "./4X-BPMLRoDv.js";
|
|
5
|
-
import { UnitTypeCode_5X } from "./5X-Bv7M6KyG.js";
|
|
6
|
-
import { UnitTypeCode_6X } from "./6X-ZeZ8OB57.js";
|
|
7
|
-
import { UnitTypeCode_7X } from "./7X-Dvw2Z2VN.js";
|
|
8
|
-
import { UnitTypeCode_8X } from "./8X-BkgoX8dg.js";
|
|
9
|
-
import { UnitTypeCode_9X } from "./9X-Du0e44cq.js";
|
|
10
|
-
import { UnitTypeCode_AX } from "./AX-BSPLpkVT.js";
|
|
11
|
-
import { UnitTypeCode_BX } from "./BX-u4yMaIkz.js";
|
|
12
|
-
import { UnitTypeCode_CX } from "./CX-BKZG0pVE.js";
|
|
13
|
-
import { UnitTypeCode_DX } from "./DX-CwA9WJAf.js";
|
|
14
|
-
import { UnitTypeCode_EX } from "./EX-BRNu1Ooi.js";
|
|
15
|
-
import { UnitTypeCode_FX } from "./FX-DBxjq6xY.js";
|
|
16
|
-
import { UnitTypeCode_GX } from "./GX-B3CvWNrP.js";
|
|
17
|
-
import { UnitTypeCode_HX } from "./HX-D7FABgTv.js";
|
|
18
|
-
import { UnitTypeCode_IX } from "./IX-D3ZknsAB.js";
|
|
19
|
-
import { UnitTypeCode_JX } from "./JX-BRaZM3Gc.js";
|
|
20
|
-
import { UnitTypeCode_KX } from "./KX-B1K0OWoi.js";
|
|
21
|
-
import { UnitTypeCode_LX } from "./LX-CKRefinL.js";
|
|
22
|
-
import { UnitTypeCode_MX } from "./MX-DKmaeO9r.js";
|
|
23
|
-
import { UnitTypeCode_NX } from "./NX-CJL2Gn1U.js";
|
|
24
|
-
import { UnitTypeCode_OX } from "./OX-Do2ap5v_.js";
|
|
25
|
-
import { UnitTypeCode_PX } from "./PX-_DOr_rm9.js";
|
|
26
|
-
import { UnitTypeCode_QX } from "./QX-HlXLkIki.js";
|
|
27
|
-
import { UnitTypeCode_RX } from "./RX-DVPGOVES.js";
|
|
28
|
-
import { UnitTypeCode_SX } from "./SX-OGT3qwlS.js";
|
|
29
|
-
import { UnitTypeCode_TX } from "./TX-cPDINmZ5.js";
|
|
30
|
-
import { UnitTypeCode_UX } from "./UX-Be3sqvPV.js";
|
|
31
|
-
import { UnitTypeCode_VX } from "./VX-CoEuBNDK.js";
|
|
32
|
-
import { UnitTypeCode_WX } from "./WX-DMvw__jH.js";
|
|
33
|
-
import { UnitTypeCode_YX } from "./YX-F34sJ7Ik.js";
|
|
34
|
-
import { UnitTypeCode_ZX } from "./ZX-CDQOfsHh.js";
|
|
35
|
-
import { UnitTypeCode_XX } from "./XX-DOA-10JW.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 };
|
package/dist/utils/apiQueue.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
//#region src/utils/apiQueue.d.ts
|
|
2
|
-
// A very small utility that provides per-endpoint request queuing with rate-limits.
|
|
3
|
-
// The goal is to make sure that we never exceed the vendor-defined limits while also ensuring
|
|
4
|
-
// that every request is eventually executed.
|
|
5
|
-
//
|
|
6
|
-
// NOTE: This is intentionally minimal – no external dependencies are introduced.
|
|
7
|
-
// If you need more advanced features (persistence, jitter, etc.) consider a library such as `bottleneck`.
|
|
8
|
-
/*
|
|
9
|
-
Rate-limit specification (per 60-second window)
|
|
10
|
-
----------------------------------------------
|
|
11
|
-
Login as Taxpayer System : 12
|
|
12
|
-
Login as Intermediary System : 12
|
|
13
|
-
Submit Documents : 100
|
|
14
|
-
Get Submission : 300
|
|
15
|
-
Cancel Document : 12
|
|
16
|
-
Reject Document : 12
|
|
17
|
-
Get Document : 60
|
|
18
|
-
Get Document Details : 125
|
|
19
|
-
Get Recent Documents : 12
|
|
20
|
-
Search Documents : 12
|
|
21
|
-
Search Taxpayer's TIN : 60
|
|
22
|
-
Taxpayer's QR Code : 60
|
|
23
|
-
*/
|
|
24
|
-
type ApiCategory = "loginTaxpayer" | "loginIntermediary" | "submitDocuments" | "getSubmission" | "cancelDocument" | "rejectDocument" | "getDocument" | "getDocumentDetails" | "getRecentDocuments" | "searchDocuments" | "searchTin" | "taxpayerQr" | "default";
|
|
25
|
-
type Task<T> = () => Promise<T>;
|
|
26
|
-
/**
|
|
27
|
-
* Public helper to schedule a request according to the category's limits.
|
|
28
|
-
* Rate limits are enforced per clientId, so multiple instances with the same
|
|
29
|
-
* clientId will share rate limiters, while different clientIds get separate limiters.
|
|
30
|
-
*
|
|
31
|
-
* This implementation uses a sliding window to track all requests within the time window.
|
|
32
|
-
*/
|
|
33
|
-
declare function queueRequest<T>(clientId: string, category: ApiCategory, task: Task<T>, debug?: boolean): Promise<T>;
|
|
34
|
-
/**
|
|
35
|
-
* Cleanup function to clear all queues and timers for a specific client.
|
|
36
|
-
* Useful for testing or cleanup on application shutdown.
|
|
37
|
-
*/
|
|
38
|
-
declare function clearQueue(clientId: string, category?: ApiCategory): void;
|
|
39
|
-
/**
|
|
40
|
-
* Very naive path-based category detection. If no matcher fits, the `default` category
|
|
41
|
-
* (effectively unlimited) is returned. Adjust these heuristics as your API surface evolves.
|
|
42
|
-
*/
|
|
43
|
-
declare function categorizeRequest(path: string, method?: string): ApiCategory;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { ApiCategory, categorizeRequest, clearQueue, queueRequest };
|
package/dist/utils/apiQueue.js
DELETED
package/dist/utils/base64.d.ts
DELETED
package/dist/utils/base64.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/utils/base64.ts
|
|
2
|
-
function encodeToBase64(content) {
|
|
3
|
-
return Buffer.from(content).toString("base64");
|
|
4
|
-
}
|
|
5
|
-
function decodeFromBase64(content) {
|
|
6
|
-
return Buffer.from(content, "base64").toString("utf-8");
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { decodeFromBase64, encodeToBase64 };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
//#region src/utils/certificate.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Extracts certificate information from PEM certificate
|
|
4
|
-
* Converts hex serial number to decimal as required by MyInvois
|
|
5
|
-
*
|
|
6
|
-
* @param certificatePem - Certificate in PEM format
|
|
7
|
-
* @returns Object with issuer name and decimal serial number
|
|
8
|
-
*/
|
|
9
|
-
declare const extractCertificateInfo: (certificatePem: string) => {
|
|
10
|
-
issuerName: string;
|
|
11
|
-
serialNumber: string;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Validates that certificate and private key form a valid pair
|
|
15
|
-
*
|
|
16
|
-
* @param certificatePem - Certificate in PEM format
|
|
17
|
-
* @param privateKeyPem - Private key in PEM format
|
|
18
|
-
* @returns Boolean indicating if key pair is valid
|
|
19
|
-
*/
|
|
20
|
-
declare const validateKeyPair: (certificatePem: string, privateKeyPem: string) => boolean;
|
|
21
|
-
declare const getPemFromP12: (p12Input: Buffer | string, passphrase: string) => {
|
|
22
|
-
certificatePem: string;
|
|
23
|
-
privateKeyPem: string;
|
|
24
|
-
};
|
|
25
|
-
//#endregion
|
|
26
|
-
export { extractCertificateInfo, getPemFromP12, validateKeyPair };
|
package/dist/utils/document.d.ts
DELETED
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { ClassificationCode } from "../classification-codes-C2X4xW5-.js";
|
|
2
|
-
import "../country-code-DsI8Mbzx.js";
|
|
3
|
-
import "../currencies-DKuDflOO.js";
|
|
4
|
-
import "../e-invoice-C2TxhyrK.js";
|
|
5
|
-
import "../0X-qj3c_vAo.js";
|
|
6
|
-
import "../1X-B-lyAVC4.js";
|
|
7
|
-
import "../2X-BfCK614i.js";
|
|
8
|
-
import "../3X-Du10Ix_V.js";
|
|
9
|
-
import "../4X-x3cRFuSM.js";
|
|
10
|
-
import "../5X-B52AKeTz.js";
|
|
11
|
-
import "../6X-DBwpWPQ6.js";
|
|
12
|
-
import "../7X-C_XGDSpE.js";
|
|
13
|
-
import "../8X-Di_0wuRX.js";
|
|
14
|
-
import "../9X-8ZnvvViY.js";
|
|
15
|
-
import "../msic-codes-CjrrJmzb.js";
|
|
16
|
-
import { TaxTypeCode } from "../tax-types-ClyLgydM.js";
|
|
17
|
-
import "../state-codes-Ow4oehYT.js";
|
|
18
|
-
import "../1X-C72Wa4pk.js";
|
|
19
|
-
import "../2X-CH89y3Af.js";
|
|
20
|
-
import "../3X-DryrwYRf.js";
|
|
21
|
-
import "../4X-BPMLRoDv.js";
|
|
22
|
-
import "../5X-Bv7M6KyG.js";
|
|
23
|
-
import "../6X-ZeZ8OB57.js";
|
|
24
|
-
import "../7X-Dvw2Z2VN.js";
|
|
25
|
-
import "../8X-BkgoX8dg.js";
|
|
26
|
-
import "../9X-Du0e44cq.js";
|
|
27
|
-
import "../AX-BSPLpkVT.js";
|
|
28
|
-
import "../BX-u4yMaIkz.js";
|
|
29
|
-
import "../CX-BKZG0pVE.js";
|
|
30
|
-
import "../DX-CwA9WJAf.js";
|
|
31
|
-
import "../EX-BRNu1Ooi.js";
|
|
32
|
-
import "../FX-DBxjq6xY.js";
|
|
33
|
-
import "../GX-B3CvWNrP.js";
|
|
34
|
-
import "../HX-D7FABgTv.js";
|
|
35
|
-
import "../IX-D3ZknsAB.js";
|
|
36
|
-
import "../JX-BRaZM3Gc.js";
|
|
37
|
-
import "../KX-B1K0OWoi.js";
|
|
38
|
-
import "../LX-CKRefinL.js";
|
|
39
|
-
import "../MX-DKmaeO9r.js";
|
|
40
|
-
import "../NX-CJL2Gn1U.js";
|
|
41
|
-
import "../OX-Do2ap5v_.js";
|
|
42
|
-
import "../PX-_DOr_rm9.js";
|
|
43
|
-
import "../QX-HlXLkIki.js";
|
|
44
|
-
import "../RX-DVPGOVES.js";
|
|
45
|
-
import "../SX-OGT3qwlS.js";
|
|
46
|
-
import "../TX-cPDINmZ5.js";
|
|
47
|
-
import "../UX-Be3sqvPV.js";
|
|
48
|
-
import "../VX-CoEuBNDK.js";
|
|
49
|
-
import "../WX-DMvw__jH.js";
|
|
50
|
-
import "../YX-F34sJ7Ik.js";
|
|
51
|
-
import "../ZX-CDQOfsHh.js";
|
|
52
|
-
import "../XX-DOA-10JW.js";
|
|
53
|
-
import { UnitTypeCode } from "../unit-types-VgYXIwTT.js";
|
|
54
|
-
import { AllDocumentsV1_1, CompleteInvoice, InvoiceLineItem, InvoiceSubmission, SignedInfoObject, SignedPropertiesObject, SigningCredentials, UBLDocument } from "../documents-BYV12TVt.js";
|
|
55
|
-
import "../payment-modes-g3DzLmWb.js";
|
|
56
|
-
import "../signatures-CerHUrj3.js";
|
|
57
|
-
import "../notifications-sFhgh3rJ.js";
|
|
58
|
-
import "../taxpayer-BAoT73gg.js";
|
|
59
|
-
import "../utils-C4FoVKLq.js";
|
|
60
|
-
import "../index-CygwSf0x.js";
|
|
61
|
-
|
|
62
|
-
//#region src/utils/document.d.ts
|
|
63
|
-
/**
|
|
64
|
-
* MyInvois v1.1 Document Generation and Signing Utilities
|
|
65
|
-
* Strictly follows: https://sdk.myinvois.hasil.gov.my/documents/invoice-v1-1
|
|
66
|
-
* JSON Signature Guide: https://sdk.myinvois.hasil.gov.my/signature-creation-json/
|
|
67
|
-
*/
|
|
68
|
-
/**
|
|
69
|
-
* Determines if a line item uses fixed rate taxation
|
|
70
|
-
*/
|
|
71
|
-
declare const isFixedRateTax: (item: InvoiceLineItem) => boolean;
|
|
72
|
-
/**
|
|
73
|
-
* Determines if a line item uses percentage taxation
|
|
74
|
-
*/
|
|
75
|
-
declare const isPercentageTax: (item: InvoiceLineItem) => boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Calculates expected tax amount for a line item based on its tax type
|
|
78
|
-
*/
|
|
79
|
-
declare const calculateExpectedTaxAmount: (item: InvoiceLineItem) => number;
|
|
80
|
-
/**
|
|
81
|
-
* Helper function to recursively sort object keys for JSON canonicalization
|
|
82
|
-
*/
|
|
83
|
-
declare function sortObjectKeys(obj: unknown): unknown;
|
|
84
|
-
/**
|
|
85
|
-
* Enhanced canonicalization following MyInvois specification exactly
|
|
86
|
-
* Key changes: ensure consistent ordering and formatting
|
|
87
|
-
*/
|
|
88
|
-
declare const canonicalizeJSON: (obj: unknown) => string;
|
|
89
|
-
/**
|
|
90
|
-
* Generates a clean invoice object following MyInvois v1.1 specification exactly
|
|
91
|
-
* This is the base invoice structure WITHOUT signature elements (for hash calculation)
|
|
92
|
-
*
|
|
93
|
-
* Key requirements from working documents:
|
|
94
|
-
* - All mandatory fields must be present
|
|
95
|
-
* - Many optional fields must be present even if empty
|
|
96
|
-
* - Specific field ordering and structure
|
|
97
|
-
* - Correct listID values (e.g., "3166-1" not "ISO3166-1")
|
|
98
|
-
*/
|
|
99
|
-
declare const generateCleanInvoiceObject: (invoice: AllDocumentsV1_1) => InvoiceSubmission;
|
|
100
|
-
/**
|
|
101
|
-
* Generates the complete UBL document structure with namespace declarations
|
|
102
|
-
*/
|
|
103
|
-
declare const generateCleanUBLDocument: (invoices: AllDocumentsV1_1[]) => UBLDocument;
|
|
104
|
-
/**
|
|
105
|
-
* Step 1: Transform the document for hashing or transmission
|
|
106
|
-
* Removes UBLExtensions and Signature, and minifies the JSON
|
|
107
|
-
* Returns the minified, cleaned JSON string
|
|
108
|
-
*
|
|
109
|
-
* FIXED: Use regex-based minification to match PowerShell script exactly
|
|
110
|
-
*/
|
|
111
|
-
declare const transformDocumentForHashing: (invoices: AllDocumentsV1_1[]) => string;
|
|
112
|
-
/**
|
|
113
|
-
* Step 2: Calculate Document Digest
|
|
114
|
-
* FIXED: Remove UBLExtensions and Signature before hashing (DS322)
|
|
115
|
-
* Based on working implementation pattern
|
|
116
|
-
*/
|
|
117
|
-
declare const calculateDocumentDigest: (invoices: AllDocumentsV1_1[]) => string;
|
|
118
|
-
/**
|
|
119
|
-
* Step 4: Calculate Certificate Digest
|
|
120
|
-
* Enhanced to handle certificate content properly
|
|
121
|
-
* FIXED: Match PowerShell script exactly - use raw certificate data like $cert.RawData
|
|
122
|
-
*/
|
|
123
|
-
declare const calculateCertificateDigest: (certificatePem: string) => string;
|
|
124
|
-
/**
|
|
125
|
-
* Enhanced certificate info extraction with better error handling
|
|
126
|
-
* FIXED: Normalize issuer name format to match MyInvois expectations (DS326)
|
|
127
|
-
*/
|
|
128
|
-
declare const extractCertificateInfo: (certificatePem: string) => {
|
|
129
|
-
issuerName: string;
|
|
130
|
-
serialNumber: string;
|
|
131
|
-
subjectName: string;
|
|
132
|
-
};
|
|
133
|
-
/**
|
|
134
|
-
* Step 5: Create SignedProperties with enhanced structure
|
|
135
|
-
* FIXED: Simplified structure to match MyInvois expectations (DS320)
|
|
136
|
-
* Following MyInvois JSON signature specification exactly
|
|
137
|
-
*/
|
|
138
|
-
declare const createSignedProperties: (certificateDigest: string, signingTime: string, issuerName: string, serialNumber: string) => SignedPropertiesObject;
|
|
139
|
-
/**
|
|
140
|
-
* Step 6: Calculate SignedProperties Digest
|
|
141
|
-
* Calculates the digest over the correct structure for validator compliance.
|
|
142
|
-
* FIXED: Calculate digest from SignedProperties only (without Target wrapper)
|
|
143
|
-
*/
|
|
144
|
-
declare const calculateSignedPropertiesDigest: (signedProperties: SignedPropertiesObject, useTargetWrapper?: boolean) => string;
|
|
145
|
-
/**
|
|
146
|
-
* Step 3: Create SignedInfo and calculate signature
|
|
147
|
-
* Enhanced with better structure and signature generation
|
|
148
|
-
*/
|
|
149
|
-
declare const createSignedInfoAndSign: (docDigest: string, propsDigest: string, privateKeyPem: string) => {
|
|
150
|
-
signedInfo: SignedInfoObject;
|
|
151
|
-
signatureValue: string;
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Signs the minified document string using the provided private key PEM
|
|
155
|
-
* Returns the signature as a base64 string
|
|
156
|
-
* FIXED: Match PowerShell script exactly - first compute hash, then sign the hash
|
|
157
|
-
*/
|
|
158
|
-
declare const signDocumentString: (documentString: string, privateKeyPem: string) => string;
|
|
159
|
-
/**
|
|
160
|
-
* Complete document generation with signatures
|
|
161
|
-
* Follows the complete MyInvois JSON signature creation process (Steps 1-7)
|
|
162
|
-
*/
|
|
163
|
-
declare const generateCompleteDocument: (invoices: AllDocumentsV1_1[], signingCredentials: SigningCredentials) => CompleteInvoice;
|
|
164
|
-
/**
|
|
165
|
-
* Creates a line item with percentage-based taxation (e.g., SST, GST)
|
|
166
|
-
*/
|
|
167
|
-
declare const createPercentageTaxLineItem: (params: {
|
|
168
|
-
itemClassificationCode: ClassificationCode;
|
|
169
|
-
itemDescription: string;
|
|
170
|
-
unitPrice: number;
|
|
171
|
-
quantity?: number;
|
|
172
|
-
measurement?: string;
|
|
173
|
-
taxType: TaxTypeCode;
|
|
174
|
-
taxRate: number;
|
|
175
|
-
totalTaxableAmountPerLine?: number;
|
|
176
|
-
discountAmount?: number;
|
|
177
|
-
discountRate?: number;
|
|
178
|
-
}) => InvoiceLineItem;
|
|
179
|
-
/**
|
|
180
|
-
* Creates a line item with fixed rate taxation (e.g., Tourism Tax)
|
|
181
|
-
*/
|
|
182
|
-
declare const createFixedRateTaxLineItem: (params: {
|
|
183
|
-
itemClassificationCode: ClassificationCode;
|
|
184
|
-
itemDescription: string;
|
|
185
|
-
unitPrice: number;
|
|
186
|
-
quantity?: number;
|
|
187
|
-
measurement?: string;
|
|
188
|
-
taxType: TaxTypeCode;
|
|
189
|
-
taxPerUnitAmount: number;
|
|
190
|
-
baseUnitMeasure: number;
|
|
191
|
-
baseUnitMeasureCode: UnitTypeCode;
|
|
192
|
-
totalTaxableAmountPerLine?: number;
|
|
193
|
-
discountAmount?: number;
|
|
194
|
-
discountRate?: number;
|
|
195
|
-
}) => InvoiceLineItem;
|
|
196
|
-
/**
|
|
197
|
-
* Calculates invoice totals from line items
|
|
198
|
-
*/
|
|
199
|
-
declare const calculateInvoiceTotals: (lineItems: InvoiceLineItem[], payableRoundingAmount?: number) => {
|
|
200
|
-
legalMonetaryTotal: {
|
|
201
|
-
taxExclusiveAmount: number;
|
|
202
|
-
taxInclusiveAmount: number;
|
|
203
|
-
payableRoundingAmount: number;
|
|
204
|
-
payableAmount: number;
|
|
205
|
-
};
|
|
206
|
-
taxTotal: {
|
|
207
|
-
taxAmount: number;
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
//#endregion
|
|
211
|
-
export { calculateCertificateDigest, calculateDocumentDigest, calculateExpectedTaxAmount, calculateInvoiceTotals, calculateSignedPropertiesDigest, canonicalizeJSON, createFixedRateTaxLineItem, createPercentageTaxLineItem, createSignedInfoAndSign, createSignedProperties, extractCertificateInfo, generateCleanInvoiceObject, generateCleanUBLDocument, generateCompleteDocument, isFixedRateTax, isPercentageTax, signDocumentString, sortObjectKeys, transformDocumentForHashing };
|
package/dist/utils/document.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "../formatIdValue-qTxJqj9o.js";
|
|
2
|
-
import { calculateCertificateDigest, calculateDocumentDigest, calculateExpectedTaxAmount, calculateInvoiceTotals, calculateSignedPropertiesDigest, canonicalizeJSON, createFixedRateTaxLineItem, createPercentageTaxLineItem, createSignedInfoAndSign, createSignedProperties, extractCertificateInfo, generateCleanInvoiceObject, generateCleanUBLDocument, generateCompleteDocument, isFixedRateTax, isPercentageTax, signDocumentString, sortObjectKeys, transformDocumentForHashing } from "../document-Bb5WkhRe.js";
|
|
3
|
-
|
|
4
|
-
export { calculateCertificateDigest, calculateDocumentDigest, calculateExpectedTaxAmount, calculateInvoiceTotals, calculateSignedPropertiesDigest, canonicalizeJSON, createFixedRateTaxLineItem, createPercentageTaxLineItem, createSignedInfoAndSign, createSignedProperties, extractCertificateInfo, generateCleanInvoiceObject, generateCleanUBLDocument, generateCompleteDocument, isFixedRateTax, isPercentageTax, signDocumentString, sortObjectKeys, transformDocumentForHashing };
|
package/dist/utils/getBaseUrl.js
DELETED
|
@@ -1,96 +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 "../0X-qj3c_vAo.js";
|
|
6
|
-
import "../1X-B-lyAVC4.js";
|
|
7
|
-
import "../2X-BfCK614i.js";
|
|
8
|
-
import "../3X-Du10Ix_V.js";
|
|
9
|
-
import "../4X-x3cRFuSM.js";
|
|
10
|
-
import "../5X-B52AKeTz.js";
|
|
11
|
-
import "../6X-DBwpWPQ6.js";
|
|
12
|
-
import "../7X-C_XGDSpE.js";
|
|
13
|
-
import "../8X-Di_0wuRX.js";
|
|
14
|
-
import "../9X-8ZnvvViY.js";
|
|
15
|
-
import "../msic-codes-CjrrJmzb.js";
|
|
16
|
-
import "../tax-types-ClyLgydM.js";
|
|
17
|
-
import "../state-codes-Ow4oehYT.js";
|
|
18
|
-
import "../1X-C72Wa4pk.js";
|
|
19
|
-
import "../2X-CH89y3Af.js";
|
|
20
|
-
import "../3X-DryrwYRf.js";
|
|
21
|
-
import "../4X-BPMLRoDv.js";
|
|
22
|
-
import "../5X-Bv7M6KyG.js";
|
|
23
|
-
import "../6X-ZeZ8OB57.js";
|
|
24
|
-
import "../7X-Dvw2Z2VN.js";
|
|
25
|
-
import "../8X-BkgoX8dg.js";
|
|
26
|
-
import "../9X-Du0e44cq.js";
|
|
27
|
-
import "../AX-BSPLpkVT.js";
|
|
28
|
-
import "../BX-u4yMaIkz.js";
|
|
29
|
-
import "../CX-BKZG0pVE.js";
|
|
30
|
-
import "../DX-CwA9WJAf.js";
|
|
31
|
-
import "../EX-BRNu1Ooi.js";
|
|
32
|
-
import "../FX-DBxjq6xY.js";
|
|
33
|
-
import "../GX-B3CvWNrP.js";
|
|
34
|
-
import "../HX-D7FABgTv.js";
|
|
35
|
-
import "../IX-D3ZknsAB.js";
|
|
36
|
-
import "../JX-BRaZM3Gc.js";
|
|
37
|
-
import "../KX-B1K0OWoi.js";
|
|
38
|
-
import "../LX-CKRefinL.js";
|
|
39
|
-
import "../MX-DKmaeO9r.js";
|
|
40
|
-
import "../NX-CJL2Gn1U.js";
|
|
41
|
-
import "../OX-Do2ap5v_.js";
|
|
42
|
-
import "../PX-_DOr_rm9.js";
|
|
43
|
-
import "../QX-HlXLkIki.js";
|
|
44
|
-
import "../RX-DVPGOVES.js";
|
|
45
|
-
import "../SX-OGT3qwlS.js";
|
|
46
|
-
import "../TX-cPDINmZ5.js";
|
|
47
|
-
import "../UX-Be3sqvPV.js";
|
|
48
|
-
import "../VX-CoEuBNDK.js";
|
|
49
|
-
import "../WX-DMvw__jH.js";
|
|
50
|
-
import "../YX-F34sJ7Ik.js";
|
|
51
|
-
import "../ZX-CDQOfsHh.js";
|
|
52
|
-
import "../XX-DOA-10JW.js";
|
|
53
|
-
import "../unit-types-VgYXIwTT.js";
|
|
54
|
-
import { InvoiceV1_1 } from "../documents-BYV12TVt.js";
|
|
55
|
-
import "../payment-modes-g3DzLmWb.js";
|
|
56
|
-
import "../signatures-CerHUrj3.js";
|
|
57
|
-
import "../notifications-sFhgh3rJ.js";
|
|
58
|
-
import "../taxpayer-BAoT73gg.js";
|
|
59
|
-
import "../utils-C4FoVKLq.js";
|
|
60
|
-
import "../index-CygwSf0x.js";
|
|
61
|
-
|
|
62
|
-
//#region src/utils/signature-diagnostics.d.ts
|
|
63
|
-
interface CertificateAnalysisResult {
|
|
64
|
-
organizationIdentifier?: string;
|
|
65
|
-
serialNumber?: string;
|
|
66
|
-
issuerName: string;
|
|
67
|
-
subjectName: string;
|
|
68
|
-
issues: string[];
|
|
69
|
-
recommendations: string[];
|
|
70
|
-
}
|
|
71
|
-
interface SignatureAnalysisResult {
|
|
72
|
-
documentDigest: string;
|
|
73
|
-
certificateDigest: string;
|
|
74
|
-
signedPropertiesDigest: string;
|
|
75
|
-
issues: string[];
|
|
76
|
-
recommendations: string[];
|
|
77
|
-
}
|
|
78
|
-
interface DiagnosticResult {
|
|
79
|
-
certificateAnalysis: CertificateAnalysisResult;
|
|
80
|
-
signatureAnalysis: SignatureAnalysisResult;
|
|
81
|
-
summary: {
|
|
82
|
-
totalIssues: number;
|
|
83
|
-
certificateIssues: number;
|
|
84
|
-
signatureIssues: number;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Comprehensive signature diagnostics
|
|
89
|
-
*/
|
|
90
|
-
declare function diagnoseSignatureIssues(invoices: InvoiceV1_1[], certificatePem: string): DiagnosticResult;
|
|
91
|
-
/**
|
|
92
|
-
* Prints diagnostic results in a formatted way
|
|
93
|
-
*/
|
|
94
|
-
declare function printDiagnostics(result: DiagnosticResult): void;
|
|
95
|
-
//#endregion
|
|
96
|
-
export { CertificateAnalysisResult, DiagnosticResult, SignatureAnalysisResult, diagnoseSignatureIssues, printDiagnostics };
|