@ripwords/myinvois-client 0.2.10 → 0.2.12
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/dist/api/documentManagement.d.ts +60 -60
- package/dist/api/documentSubmission.d.ts +60 -60
- package/dist/api/documentSubmission.js +1 -1
- package/dist/api/documentTypeManagement.d.ts +60 -60
- package/dist/api/notificationManagement.d.ts +60 -60
- package/dist/api/platformLogin.d.ts +60 -60
- package/dist/api/taxpayerValidation.d.ts +60 -60
- package/dist/apiQueue-4pQwCc0e.js +138 -0
- package/dist/apiQueue-sL4mNlVz.cjs +151 -0
- package/dist/apiQueue-sL4mNlVz.cjs.map +1 -0
- package/dist/{documentSubmission-vPY3crsr.js → documentSubmission-BPDiODUd.js} +14 -2
- package/dist/{documentSubmission-l0FndSjm.cjs → documentSubmission-DvCgvq28.cjs} +15 -3
- package/dist/documentSubmission-DvCgvq28.cjs.map +1 -0
- package/dist/{documents-ByWRZZfd.d.ts → documents-BPawWCi-.d.ts} +8 -8
- package/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +60 -60
- package/dist/index.js +5 -3
- package/dist/index10.cjs +16 -187
- package/dist/index10.cjs.map +1 -1
- package/dist/index12.cjs +25 -16
- package/dist/index12.cjs.map +1 -1
- package/dist/index13.cjs +24 -0
- package/dist/{index19.cjs.map → index13.cjs.map} +1 -1
- package/dist/index15.cjs +0 -29
- package/dist/index16.cjs +0 -25
- package/dist/index17.cjs +5 -0
- package/dist/index18.cjs +6 -33
- package/dist/index19.cjs +4 -23
- package/dist/index2.cjs +61 -4
- package/dist/{index8.cjs.map → index2.cjs.map} +1 -1
- package/dist/index20.cjs +3 -0
- package/dist/index21.cjs +3 -0
- package/dist/index22.cjs +6 -0
- package/dist/index23.cjs +3 -12
- package/dist/index24.cjs +12 -3
- package/dist/{index23.cjs.map → index24.cjs.map} +1 -1
- package/dist/index25.cjs +3 -19
- package/dist/index26.cjs +19 -2
- package/dist/index27.cjs +2 -2
- package/dist/index28.cjs +2 -329
- package/dist/index29.cjs +309 -172
- package/dist/index29.cjs.map +1 -1
- package/dist/index3.cjs +531 -6
- package/dist/index3.cjs.map +1 -0
- package/dist/index30.cjs +189 -204
- package/dist/index30.cjs.map +1 -1
- package/dist/index31.cjs +203 -104
- package/dist/index31.cjs.map +1 -1
- package/dist/index32.cjs +104 -132
- package/dist/index32.cjs.map +1 -1
- package/dist/index33.cjs +132 -59
- package/dist/index33.cjs.map +1 -1
- package/dist/index34.cjs +59 -262
- package/dist/index34.cjs.map +1 -1
- package/dist/index35.cjs +262 -74
- package/dist/index35.cjs.map +1 -1
- package/dist/index36.cjs +74 -102
- package/dist/index36.cjs.map +1 -1
- package/dist/index37.cjs +102 -68
- package/dist/index37.cjs.map +1 -1
- package/dist/index38.cjs +68 -107
- package/dist/index38.cjs.map +1 -1
- package/dist/index39.cjs +107 -95
- package/dist/index39.cjs.map +1 -1
- package/dist/index4.cjs +195 -4
- package/dist/index4.cjs.map +1 -0
- package/dist/index40.cjs +95 -13
- package/dist/index40.cjs.map +1 -1
- package/dist/index41.cjs +11 -31
- package/dist/index41.cjs.map +1 -1
- package/dist/index42.cjs +31 -12
- package/dist/index42.cjs.map +1 -1
- package/dist/index43.cjs +12 -22
- package/dist/index43.cjs.map +1 -1
- package/dist/index44.cjs +22 -13
- package/dist/index44.cjs.map +1 -1
- package/dist/index45.cjs +13 -7
- package/dist/index45.cjs.map +1 -1
- package/dist/index46.cjs +7 -7
- package/dist/index46.cjs.map +1 -1
- package/dist/index47.cjs +7 -10
- package/dist/index47.cjs.map +1 -1
- package/dist/index48.cjs +10 -6
- package/dist/index48.cjs.map +1 -1
- package/dist/index49.cjs +6 -101
- package/dist/index49.cjs.map +1 -1
- package/dist/index5.cjs +0 -3
- package/dist/index50.cjs +101 -106
- package/dist/index50.cjs.map +1 -1
- package/dist/index51.cjs +106 -119
- package/dist/index51.cjs.map +1 -1
- package/dist/index52.cjs +119 -106
- package/dist/index52.cjs.map +1 -1
- package/dist/index53.cjs +106 -98
- package/dist/index53.cjs.map +1 -1
- package/dist/index54.cjs +98 -118
- package/dist/index54.cjs.map +1 -1
- package/dist/index55.cjs +118 -127
- package/dist/index55.cjs.map +1 -1
- package/dist/index56.cjs +127 -117
- package/dist/index56.cjs.map +1 -1
- package/dist/index57.cjs +117 -14
- package/dist/index57.cjs.map +1 -1
- package/dist/index58.cjs +14 -95
- package/dist/index58.cjs.map +1 -1
- package/dist/index59.cjs +95 -142
- package/dist/index59.cjs.map +1 -1
- package/dist/index6.cjs +24 -2
- package/dist/index6.cjs.map +1 -0
- package/dist/index60.cjs +142 -114
- package/dist/index60.cjs.map +1 -1
- package/dist/index61.cjs +114 -144
- package/dist/index61.cjs.map +1 -1
- package/dist/index62.cjs +144 -113
- package/dist/index62.cjs.map +1 -1
- package/dist/index63.cjs +113 -17
- package/dist/index63.cjs.map +1 -1
- package/dist/index64.cjs +17 -112
- package/dist/index64.cjs.map +1 -1
- package/dist/index65.cjs +112 -47
- package/dist/index65.cjs.map +1 -1
- package/dist/index66.cjs +47 -14
- package/dist/index66.cjs.map +1 -1
- package/dist/index67.cjs +14 -28
- package/dist/index67.cjs.map +1 -1
- package/dist/index68.cjs +28 -22
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.cts.map +1 -1
- package/dist/index69.cjs +22 -9
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.cts.map +1 -1
- package/dist/index7.cjs +0 -6
- package/dist/index70.cjs +9 -8
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.cts.map +1 -1
- package/dist/index71.cjs +8 -17
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.cts.map +1 -1
- package/dist/index72.cjs +17 -412
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.cts.map +1 -1
- package/dist/index73.cjs +412 -8
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.cts.map +1 -1
- package/dist/index74.cjs +8 -9
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.cts.map +1 -1
- package/dist/index75.cjs +16 -0
- package/dist/index75.cjs.map +1 -0
- package/dist/index75.cts.map +1 -0
- package/dist/index8.cjs +0 -62
- package/dist/index9.cjs +23 -526
- package/dist/index9.cjs.map +1 -1
- package/dist/{msic-codes-bYv0T5WJ.d.ts → msic-codes-CjrrJmzb.d.ts} +10 -10
- package/dist/{taxpayer-yqCbpaJy.d.ts → taxpayer-SC6Tu_nN.d.ts} +2 -2
- package/dist/types/classification-codes.d.ts +1 -1
- package/dist/types/country-code.d.ts +1 -1
- package/dist/types/currencies.d.ts +1 -1
- package/dist/types/documents.d.ts +54 -54
- package/dist/types/e-invoice.d.ts +1 -1
- package/dist/types/index.d.ts +60 -60
- package/dist/types/msic/0X.d.ts +1 -1
- package/dist/types/msic/1X.d.ts +1 -1
- package/dist/types/msic/2X.d.ts +1 -1
- package/dist/types/msic/3X.d.ts +1 -1
- package/dist/types/msic/4X.d.ts +1 -1
- package/dist/types/msic/5X.d.ts +1 -1
- package/dist/types/msic/6X.d.ts +1 -1
- package/dist/types/msic/7X.d.ts +1 -1
- package/dist/types/msic/8X.d.ts +1 -1
- package/dist/types/msic/9X.d.ts +1 -1
- package/dist/types/msic-codes.d.ts +11 -11
- package/dist/types/notifications.d.ts +1 -1
- package/dist/types/payment-modes.d.ts +1 -1
- package/dist/types/signatures.d.ts +1 -1
- package/dist/types/state-codes.d.ts +1 -1
- package/dist/types/tax-types.d.ts +1 -1
- package/dist/types/taxpayer.d.ts +55 -55
- package/dist/types/unit/1X.d.ts +1 -1
- package/dist/types/unit/2X.d.ts +1 -1
- package/dist/types/unit/3X.d.ts +1 -1
- package/dist/types/unit/4X.d.ts +1 -1
- package/dist/types/unit/5X.d.ts +1 -1
- package/dist/types/unit/6X.d.ts +1 -1
- package/dist/types/unit/7X.d.ts +1 -1
- package/dist/types/unit/8X.d.ts +1 -1
- package/dist/types/unit/9X.d.ts +1 -1
- package/dist/types/unit/AX.d.ts +1 -1
- package/dist/types/unit/BX.d.ts +1 -1
- package/dist/types/unit/CX.d.ts +1 -1
- package/dist/types/unit/DX.d.ts +1 -1
- package/dist/types/unit/EX.d.ts +1 -1
- package/dist/types/unit/FX.d.ts +1 -1
- package/dist/types/unit/GX.d.ts +1 -1
- package/dist/types/unit/HX.d.ts +1 -1
- package/dist/types/unit/IX.d.ts +1 -1
- package/dist/types/unit/JX.d.ts +1 -1
- package/dist/types/unit/KX.d.ts +1 -1
- package/dist/types/unit/LX.d.ts +1 -1
- package/dist/types/unit/MX.d.ts +1 -1
- package/dist/types/unit/NX.d.ts +1 -1
- package/dist/types/unit/OX.d.ts +1 -1
- package/dist/types/unit/PX.d.ts +1 -1
- package/dist/types/unit/QX.d.ts +1 -1
- package/dist/types/unit/RX.d.ts +1 -1
- package/dist/types/unit/SX.d.ts +1 -1
- package/dist/types/unit/TX.d.ts +1 -1
- package/dist/types/unit/UX.d.ts +1 -1
- package/dist/types/unit/VX.d.ts +1 -1
- package/dist/types/unit/WX.d.ts +1 -1
- package/dist/types/unit/XX.d.ts +1 -1
- package/dist/types/unit/YX.d.ts +1 -1
- package/dist/types/unit/ZX.d.ts +1 -1
- package/dist/types/unit-types.d.ts +36 -36
- package/dist/types/utils.d.ts +1 -1
- package/dist/unit-types-VgYXIwTT.d.ts +55 -0
- package/dist/utils/apiQueue.d.ts +35 -0
- package/dist/utils/apiQueue.js +3 -0
- package/dist/utils/document.d.ts +60 -60
- package/dist/utils/signature-diagnostics.d.ts +60 -60
- package/dist/utils/validation.d.ts +60 -60
- package/package.json +1 -1
- package/dist/documentSubmission-l0FndSjm.cjs.map +0 -1
- package/dist/index15.cjs.map +0 -1
- package/dist/index16.cjs.map +0 -1
- package/dist/index18.cjs.map +0 -1
- package/dist/index28.cjs.map +0 -1
- package/dist/unit-types-BDqcMY-6.d.ts +0 -55
- /package/dist/{0X-Dd1CNvh-.d.ts → 0X-qj3c_vAo.d.ts} +0 -0
- /package/dist/{1X-CCvwRRue.d.ts → 1X-B-lyAVC4.d.ts} +0 -0
- /package/dist/{1X-tlQZHXWg.d.ts → 1X-C72Wa4pk.d.ts} +0 -0
- /package/dist/{2X-BNzH9sOi.d.ts → 2X-BfCK614i.d.ts} +0 -0
- /package/dist/{2X-Dpj2ruTC.d.ts → 2X-CH89y3Af.d.ts} +0 -0
- /package/dist/{3X-DGRZOL1h.d.ts → 3X-DryrwYRf.d.ts} +0 -0
- /package/dist/{3X-Dgh7ek-L.d.ts → 3X-Du10Ix_V.d.ts} +0 -0
- /package/dist/{4X-C2YvBCto.d.ts → 4X-BPMLRoDv.d.ts} +0 -0
- /package/dist/{4X-JEzpzgfD.d.ts → 4X-x3cRFuSM.d.ts} +0 -0
- /package/dist/{5X-Dh-FPoAo.d.ts → 5X-B52AKeTz.d.ts} +0 -0
- /package/dist/{5X-CLwXLO_A.d.ts → 5X-Bv7M6KyG.d.ts} +0 -0
- /package/dist/{6X-Bj2BTA-B.d.ts → 6X-DBwpWPQ6.d.ts} +0 -0
- /package/dist/{6X-DKI9x-xV.d.ts → 6X-ZeZ8OB57.d.ts} +0 -0
- /package/dist/{7X-CqUyxXiA.d.ts → 7X-C_XGDSpE.d.ts} +0 -0
- /package/dist/{7X-CfbV7a2x.d.ts → 7X-Dvw2Z2VN.d.ts} +0 -0
- /package/dist/{8X-LeWjhVT-.d.ts → 8X-BkgoX8dg.d.ts} +0 -0
- /package/dist/{8X-BiBd9Sgc.d.ts → 8X-Di_0wuRX.d.ts} +0 -0
- /package/dist/{9X-CPUAZZzu.d.ts → 9X-8ZnvvViY.d.ts} +0 -0
- /package/dist/{9X-DlQI2H7P.d.ts → 9X-Du0e44cq.d.ts} +0 -0
- /package/dist/{AX-LnjRRsXP.d.ts → AX-BSPLpkVT.d.ts} +0 -0
- /package/dist/{BX-BEB5dvmG.d.ts → BX-u4yMaIkz.d.ts} +0 -0
- /package/dist/{CX-DbUPhejT.d.ts → CX-BKZG0pVE.d.ts} +0 -0
- /package/dist/{DX-CQQRUzAX.d.ts → DX-CwA9WJAf.d.ts} +0 -0
- /package/dist/{EX-mr76RLy0.d.ts → EX-BRNu1Ooi.d.ts} +0 -0
- /package/dist/{FX-CsnNcgsB.d.ts → FX-DBxjq6xY.d.ts} +0 -0
- /package/dist/{GX-BdkB6I_6.d.ts → GX-B3CvWNrP.d.ts} +0 -0
- /package/dist/{HX-GMf5i5So.d.ts → HX-D7FABgTv.d.ts} +0 -0
- /package/dist/{IX-Duj6eppk.d.ts → IX-D3ZknsAB.d.ts} +0 -0
- /package/dist/{JX-Daa9spZ7.d.ts → JX-BRaZM3Gc.d.ts} +0 -0
- /package/dist/{KX-tnQXTKgl.d.ts → KX-B1K0OWoi.d.ts} +0 -0
- /package/dist/{LX-DZobJ-WG.d.ts → LX-CKRefinL.d.ts} +0 -0
- /package/dist/{MX-BVPhHIvx.d.ts → MX-DKmaeO9r.d.ts} +0 -0
- /package/dist/{NX-DEc1tsw0.d.ts → NX-CJL2Gn1U.d.ts} +0 -0
- /package/dist/{OX-CT_Dg5Xc.d.ts → OX-Do2ap5v_.d.ts} +0 -0
- /package/dist/{PX-BqEPcioe.d.ts → PX-_DOr_rm9.d.ts} +0 -0
- /package/dist/{QX-PkkdCvsL.d.ts → QX-HlXLkIki.d.ts} +0 -0
- /package/dist/{RX-DCff5kVD.d.ts → RX-DVPGOVES.d.ts} +0 -0
- /package/dist/{SX-B0U-jv6V.d.ts → SX-OGT3qwlS.d.ts} +0 -0
- /package/dist/{TX-UoXkAqwz.d.ts → TX-cPDINmZ5.d.ts} +0 -0
- /package/dist/{UX-CCbo58UC.d.ts → UX-Be3sqvPV.d.ts} +0 -0
- /package/dist/{VX-DhNvZGZW.d.ts → VX-CoEuBNDK.d.ts} +0 -0
- /package/dist/{WX-BNhx__qq.d.ts → WX-DMvw__jH.d.ts} +0 -0
- /package/dist/{XX-BohzIxEW.d.ts → XX-DOA-10JW.d.ts} +0 -0
- /package/dist/{YX-DNZeyxw3.d.ts → YX-F34sJ7Ik.d.ts} +0 -0
- /package/dist/{ZX-CLCrJ7Mg.d.ts → ZX-CDQOfsHh.d.ts} +0 -0
- /package/dist/{classification-codes-DLO4QazM.d.ts → classification-codes-C2X4xW5-.d.ts} +0 -0
- /package/dist/{country-code-DqhONNiC.d.ts → country-code-DsI8Mbzx.d.ts} +0 -0
- /package/dist/{currencies-Dgzd5iCT.d.ts → currencies-DKuDflOO.d.ts} +0 -0
- /package/dist/{e-invoice-Bbd2oyzZ.d.ts → e-invoice-C2TxhyrK.d.ts} +0 -0
- /package/dist/{index-Cvns0Vxq.d.ts → index-CygwSf0x.d.ts} +0 -0
- /package/dist/{notifications-CBKMhBtd.d.ts → notifications-sFhgh3rJ.d.ts} +0 -0
- /package/dist/{payment-modes-SbrTHOfF.d.ts → payment-modes-g3DzLmWb.d.ts} +0 -0
- /package/dist/{signatures-BjqNaINR.d.ts → signatures-CerHUrj3.d.ts} +0 -0
- /package/dist/{state-codes-B9___UB-.d.ts → state-codes-Ow4oehYT.d.ts} +0 -0
- /package/dist/{tax-types-ieqw5Ze7.d.ts → tax-types-ClyLgydM.d.ts} +0 -0
- /package/dist/{utils-BTAitDVa.d.ts → utils-C4FoVKLq.d.ts} +0 -0
package/dist/index30.cjs
CHANGED
|
@@ -1,208 +1,193 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
MSIC_0X$1["MINING_OF_EARTH_COLOURS"] = "08917";
|
|
186
|
-
MSIC_0X$1["GUANO_MINING"] = "08918";
|
|
187
|
-
MSIC_0X$1["PEAT_DIGGING"] = "08921";
|
|
188
|
-
MSIC_0X$1["PEAT_AGGLOMERATION"] = "08922";
|
|
189
|
-
MSIC_0X$1["PREPARATION_OF_PEAT"] = "08923";
|
|
190
|
-
MSIC_0X$1["EXTRACTION_OF_UNDERGROUND_SALT"] = "08931";
|
|
191
|
-
MSIC_0X$1["SALT_PRODUCTION"] = "08932";
|
|
192
|
-
MSIC_0X$1["CRUSHING_OF_SALT"] = "08933";
|
|
193
|
-
MSIC_0X$1["MINING_OF_ABRASIVE_MATERIALS"] = "08991";
|
|
194
|
-
MSIC_0X$1["MINING_OF_ASBESTOS"] = "08992";
|
|
195
|
-
MSIC_0X$1["MINING_OF_SILICEOUS"] = "08993";
|
|
196
|
-
MSIC_0X$1["MINING_OF_GRAPHITE"] = "08994";
|
|
197
|
-
MSIC_0X$1["MINING_OF_STEATITE"] = "08995";
|
|
198
|
-
MSIC_0X$1["MINING_OF_GEMSTONES"] = "08996";
|
|
199
|
-
MSIC_0X$1["OTHER_MINING"] = "08999";
|
|
200
|
-
MSIC_0X$1["OIL_AND_GAS_EXTRACTION"] = "09101";
|
|
201
|
-
MSIC_0X$1["OIL_AND_GAS_FIREFIGHTING"] = "09102";
|
|
202
|
-
MSIC_0X$1["SUPPORT_FOR_MINING"] = "09900";
|
|
203
|
-
return MSIC_0X$1;
|
|
204
|
-
}({});
|
|
2
|
+
//#region src/utils/validation.ts
|
|
3
|
+
/**
|
|
4
|
+
* Validates TIN format based on registration type
|
|
5
|
+
*/
|
|
6
|
+
const validateTIN = (tin, registrationType) => {
|
|
7
|
+
const errors = [];
|
|
8
|
+
if (!tin) {
|
|
9
|
+
errors.push({
|
|
10
|
+
field: "tin",
|
|
11
|
+
code: "TIN_REQUIRED",
|
|
12
|
+
message: "TIN is required",
|
|
13
|
+
severity: "error"
|
|
14
|
+
});
|
|
15
|
+
return errors;
|
|
16
|
+
}
|
|
17
|
+
if (registrationType === "BRN" && !tin.startsWith("C")) errors.push({
|
|
18
|
+
field: "tin",
|
|
19
|
+
code: "TIN_FORMAT_INVALID",
|
|
20
|
+
message: "Company TIN should start with \"C\" for BRN registration",
|
|
21
|
+
severity: "warning"
|
|
22
|
+
});
|
|
23
|
+
if (registrationType === "NRIC" && !tin.startsWith("IG")) errors.push({
|
|
24
|
+
field: "tin",
|
|
25
|
+
code: "TIN_FORMAT_INVALID",
|
|
26
|
+
message: "Individual TIN should start with \"IG\" for NRIC registration",
|
|
27
|
+
severity: "warning"
|
|
28
|
+
});
|
|
29
|
+
if (tin.length > 14) errors.push({
|
|
30
|
+
field: "tin",
|
|
31
|
+
code: "TIN_LENGTH_INVALID",
|
|
32
|
+
message: "TIN cannot exceed 14 characters",
|
|
33
|
+
severity: "error"
|
|
34
|
+
});
|
|
35
|
+
return errors;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Validates contact number format (E.164 standard)
|
|
39
|
+
*/
|
|
40
|
+
const validateContactNumber = (contactNumber) => {
|
|
41
|
+
const errors = [];
|
|
42
|
+
if (!contactNumber || contactNumber === "NA") return errors;
|
|
43
|
+
const e164Regex = /^\+[1-9]\d{1,14}$/;
|
|
44
|
+
if (!e164Regex.test(contactNumber)) errors.push({
|
|
45
|
+
field: "contactNumber",
|
|
46
|
+
code: "CONTACT_FORMAT_INVALID",
|
|
47
|
+
message: "Contact number must be in E.164 format (e.g., +60123456789)",
|
|
48
|
+
severity: "error"
|
|
49
|
+
});
|
|
50
|
+
if (contactNumber.length < 8) errors.push({
|
|
51
|
+
field: "contactNumber",
|
|
52
|
+
code: "CONTACT_LENGTH_INVALID",
|
|
53
|
+
message: "Contact number must be at least 8 characters",
|
|
54
|
+
severity: "error"
|
|
55
|
+
});
|
|
56
|
+
return errors;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Validates monetary amounts
|
|
60
|
+
*/
|
|
61
|
+
const validateMonetaryAmount = (amount, fieldName, maxDigits = 18, maxDecimals = 2) => {
|
|
62
|
+
const errors = [];
|
|
63
|
+
if (amount < 0) errors.push({
|
|
64
|
+
field: fieldName,
|
|
65
|
+
code: "AMOUNT_NEGATIVE",
|
|
66
|
+
message: `${fieldName} cannot be negative`,
|
|
67
|
+
severity: "error"
|
|
68
|
+
});
|
|
69
|
+
const amountStr = amount.toString();
|
|
70
|
+
const [integerPart, decimalPart] = amountStr.split(".");
|
|
71
|
+
if (integerPart && integerPart.length > maxDigits - maxDecimals) errors.push({
|
|
72
|
+
field: fieldName,
|
|
73
|
+
code: "AMOUNT_DIGITS_EXCEEDED",
|
|
74
|
+
message: `${fieldName} exceeds maximum ${maxDigits} digits`,
|
|
75
|
+
severity: "error"
|
|
76
|
+
});
|
|
77
|
+
if (decimalPart && decimalPart.length > maxDecimals) errors.push({
|
|
78
|
+
field: fieldName,
|
|
79
|
+
code: "AMOUNT_DECIMALS_EXCEEDED",
|
|
80
|
+
message: `${fieldName} exceeds maximum ${maxDecimals} decimal places`,
|
|
81
|
+
severity: "error"
|
|
82
|
+
});
|
|
83
|
+
return errors;
|
|
84
|
+
};
|
|
85
|
+
/**
|
|
86
|
+
* Validates line item tax calculation consistency for both fixed rate and percentage taxation
|
|
87
|
+
*/
|
|
88
|
+
const validateLineItemTax = (item, index) => {
|
|
89
|
+
const errors = [];
|
|
90
|
+
const tolerance = .01;
|
|
91
|
+
const hasFixedRate = item.taxPerUnitAmount !== void 0 && item.baseUnitMeasure !== void 0;
|
|
92
|
+
const hasPercentageRate = item.taxRate !== void 0;
|
|
93
|
+
if (!hasFixedRate && !hasPercentageRate) {
|
|
94
|
+
errors.push({
|
|
95
|
+
field: `lineItem[${index}]`,
|
|
96
|
+
code: "TAX_METHOD_MISSING",
|
|
97
|
+
message: `Line item ${index + 1} must specify either taxRate (for percentage) or taxPerUnitAmount + baseUnitMeasure (for fixed rate)`,
|
|
98
|
+
severity: "error"
|
|
99
|
+
});
|
|
100
|
+
return errors;
|
|
101
|
+
}
|
|
102
|
+
if (hasFixedRate && hasPercentageRate) errors.push({
|
|
103
|
+
field: `lineItem[${index}]`,
|
|
104
|
+
code: "TAX_METHOD_CONFLICT",
|
|
105
|
+
message: `Line item ${index + 1} cannot have both percentage and fixed rate tax methods`,
|
|
106
|
+
severity: "error"
|
|
107
|
+
});
|
|
108
|
+
if (hasFixedRate) {
|
|
109
|
+
if (item.baseUnitMeasureCode === void 0) errors.push({
|
|
110
|
+
field: `lineItem[${index}].baseUnitMeasureCode`,
|
|
111
|
+
code: "UNIT_CODE_MISSING",
|
|
112
|
+
message: `Line item ${index + 1} with fixed rate tax must specify baseUnitMeasureCode`,
|
|
113
|
+
severity: "error"
|
|
114
|
+
});
|
|
115
|
+
const expectedTaxAmount = item.taxPerUnitAmount * item.baseUnitMeasure;
|
|
116
|
+
if (Math.abs(item.taxAmount - expectedTaxAmount) > tolerance) errors.push({
|
|
117
|
+
field: `lineItem[${index}].taxAmount`,
|
|
118
|
+
code: "FIXED_TAX_CALCULATION_MISMATCH",
|
|
119
|
+
message: `Line item ${index + 1} tax amount (${item.taxAmount}) doesn't match fixed rate calculation (${item.taxPerUnitAmount} × ${item.baseUnitMeasure} = ${expectedTaxAmount})`,
|
|
120
|
+
severity: "error"
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
if (hasPercentageRate && !hasFixedRate) {
|
|
124
|
+
const expectedTaxAmount = item.totalTaxableAmountPerLine * item.taxRate / 100;
|
|
125
|
+
if (Math.abs(item.taxAmount - expectedTaxAmount) > tolerance) errors.push({
|
|
126
|
+
field: `lineItem[${index}].taxAmount`,
|
|
127
|
+
code: "PERCENTAGE_TAX_CALCULATION_MISMATCH",
|
|
128
|
+
message: `Line item ${index + 1} tax amount (${item.taxAmount}) doesn't match percentage calculation (${item.totalTaxableAmountPerLine} × ${item.taxRate}% = ${expectedTaxAmount})`,
|
|
129
|
+
severity: "error"
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
return errors;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* Validates tax calculation consistency
|
|
136
|
+
*/
|
|
137
|
+
const validateTaxCalculations = (invoice) => {
|
|
138
|
+
const errors = [];
|
|
139
|
+
invoice.invoiceLineItems.forEach((item, index) => {
|
|
140
|
+
errors.push(...validateLineItemTax(item, index));
|
|
141
|
+
});
|
|
142
|
+
const expectedTaxExclusive = invoice.invoiceLineItems.reduce((sum, item) => sum + item.totalTaxableAmountPerLine, 0);
|
|
143
|
+
const expectedTaxAmount = invoice.invoiceLineItems.reduce((sum, item) => sum + item.taxAmount, 0);
|
|
144
|
+
const tolerance = .01;
|
|
145
|
+
if (Math.abs(invoice.legalMonetaryTotal.taxExclusiveAmount - expectedTaxExclusive) > tolerance) errors.push({
|
|
146
|
+
field: "legalMonetaryTotal.taxExclusiveAmount",
|
|
147
|
+
code: "TAX_EXCLUSIVE_MISMATCH",
|
|
148
|
+
message: `Tax exclusive amount (${invoice.legalMonetaryTotal.taxExclusiveAmount}) doesn't match sum of line items (${expectedTaxExclusive})`,
|
|
149
|
+
severity: "error"
|
|
150
|
+
});
|
|
151
|
+
if (Math.abs(invoice.taxTotal.taxAmount - expectedTaxAmount) > tolerance) errors.push({
|
|
152
|
+
field: "taxTotal.taxAmount",
|
|
153
|
+
code: "TAX_AMOUNT_MISMATCH",
|
|
154
|
+
message: `Tax amount (${invoice.taxTotal.taxAmount}) doesn't match sum of line item taxes (${expectedTaxAmount})`,
|
|
155
|
+
severity: "error"
|
|
156
|
+
});
|
|
157
|
+
return errors;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* Main validation function for complete invoice
|
|
161
|
+
*/
|
|
162
|
+
const validateInvoice = (invoice) => {
|
|
163
|
+
const allErrors = [];
|
|
164
|
+
allErrors.push(...validateTIN(invoice.supplier.tin, invoice.supplier.registrationType));
|
|
165
|
+
allErrors.push(...validateTIN(invoice.buyer.tin, invoice.buyer.registrationType));
|
|
166
|
+
allErrors.push(...validateContactNumber(invoice.supplier.contactNumber));
|
|
167
|
+
allErrors.push(...validateContactNumber(invoice.buyer.contactNumber));
|
|
168
|
+
allErrors.push(...validateMonetaryAmount(invoice.legalMonetaryTotal.taxExclusiveAmount, "taxExclusiveAmount"));
|
|
169
|
+
allErrors.push(...validateMonetaryAmount(invoice.legalMonetaryTotal.payableAmount, "payableAmount"));
|
|
170
|
+
allErrors.push(...validateMonetaryAmount(invoice.taxTotal.taxAmount, "taxAmount"));
|
|
171
|
+
invoice.invoiceLineItems.forEach((item, index) => {
|
|
172
|
+
allErrors.push(...validateMonetaryAmount(item.unitPrice, `lineItem[${index}].unitPrice`));
|
|
173
|
+
allErrors.push(...validateMonetaryAmount(item.taxAmount, `lineItem[${index}].taxAmount`));
|
|
174
|
+
allErrors.push(...validateMonetaryAmount(item.totalTaxableAmountPerLine, `lineItem[${index}].totalTaxableAmountPerLine`));
|
|
175
|
+
});
|
|
176
|
+
allErrors.push(...validateTaxCalculations(invoice));
|
|
177
|
+
const errors = allErrors.filter((e) => e.severity === "error");
|
|
178
|
+
const warnings = allErrors.filter((e) => e.severity === "warning");
|
|
179
|
+
return {
|
|
180
|
+
isValid: errors.length === 0,
|
|
181
|
+
errors,
|
|
182
|
+
warnings
|
|
183
|
+
};
|
|
184
|
+
};
|
|
205
185
|
|
|
206
186
|
//#endregion
|
|
207
|
-
exports.
|
|
187
|
+
exports.validateContactNumber = validateContactNumber;
|
|
188
|
+
exports.validateInvoice = validateInvoice;
|
|
189
|
+
exports.validateLineItemTax = validateLineItemTax;
|
|
190
|
+
exports.validateMonetaryAmount = validateMonetaryAmount;
|
|
191
|
+
exports.validateTIN = validateTIN;
|
|
192
|
+
exports.validateTaxCalculations = validateTaxCalculations;
|
|
208
193
|
//# sourceMappingURL=index30.cjs.map
|
package/dist/index30.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index30.cjs","names":[],"sources":["../src/types/msic/0X.d.ts"],"sourcesContent":["export type MSICCode = {\n code: string\n description: string\n msicCategoryReference: string\n}\n\nexport type MSIC_0X_CODE =\n | '00000'\n | '01111'\n | '01112'\n | '01113'\n | '01119'\n | '01120'\n | '01131'\n | '01132'\n | '01133'\n | '01134'\n | '01135'\n | '01136'\n | '01137'\n | '01138'\n | '01140'\n | '01150'\n | '01160'\n | '01191'\n | '01192'\n | '01193'\n | '01199'\n | '01210'\n | '01221'\n | '01222'\n | '01223'\n | '01224'\n | '01225'\n | '01226'\n | '01227'\n | '01228'\n | '01229'\n | '01231'\n | '01232'\n | '01233'\n | '01239'\n | '01241'\n | '01249'\n | '01251'\n | '01252'\n | '01253'\n | '01259'\n | '01261'\n | '01262'\n | '01263'\n | '01269'\n | '01271'\n | '01272'\n | '01273'\n | '01279'\n | '01281'\n | '01282'\n | '01283'\n | '01284'\n | '01285'\n | '01289'\n | '01291'\n | '01292'\n | '01293'\n | '01294'\n | '01295'\n | '01296'\n | '01299'\n | '01301'\n | '01302'\n | '01303'\n | '01304'\n | '01411'\n | '01412'\n | '01413'\n | '01420'\n | '01430'\n | '01441'\n | '01442'\n | '01443'\n | '01450'\n | '01461'\n | '01462'\n | '01463'\n | '01464'\n | '01465'\n | '01466'\n | '01467'\n | '01468'\n | '01469'\n | '01491'\n | '01492'\n | '01493'\n | '01494'\n | '01495'\n | '01496'\n | '01497'\n | '01499'\n | '01500'\n | '01610'\n | '01620'\n | '01631'\n | '01632'\n | '01633'\n | '01634'\n | '01640'\n | '01701'\n | '01702'\n | '02101'\n | '02102'\n | '02103'\n | '02104'\n | '02105'\n | '02201'\n | '02202'\n | '02203'\n | '02204'\n | '02301'\n | '02302'\n | '02303'\n | '02309'\n | '02401'\n | '02402'\n | '03111'\n | '03112'\n | '03113'\n | '03114'\n | '03115'\n | '03119'\n | '03121'\n | '03122'\n | '03123'\n | '03124'\n | '03129'\n | '03211'\n | '03212'\n | '03213'\n | '03214'\n | '03215'\n | '03216'\n | '03217'\n | '03218'\n | '03219'\n | '03221'\n | '03222'\n | '03223'\n | '03224'\n | '03225'\n | '03229'\n | '05100'\n | '05200'\n | '06101'\n | '06102'\n | '06103'\n | '06104'\n | '06201'\n | '06202'\n | '06203'\n | '06204'\n | '06205'\n | '07101'\n | '07102'\n | '07210'\n | '07291'\n | '07292'\n | '07293'\n | '07294'\n | '07295'\n | '07296'\n | '07297'\n | '07298'\n | '07299'\n | '08101'\n | '08102'\n | '08103'\n | '08104'\n | '08105'\n | '08106'\n | '08107'\n | '08108'\n | '08109'\n | '08911'\n | '08912'\n | '08913'\n | '08914'\n | '08915'\n | '08916'\n | '08917'\n | '08918'\n | '08921'\n | '08922'\n | '08923'\n | '08931'\n | '08932'\n | '08933'\n | '08991'\n | '08992'\n | '08993'\n | '08994'\n | '08995'\n | '08996'\n | '08999'\n | '09101'\n | '09102'\n | '09900'\n\nexport enum MSIC_0X {\n NOT_APPLICABLE = '00000',\n GROWING_OF_MAIZE = '01111',\n GROWING_OF_LEGUMINOUS_CROPS = '01112',\n GROWING_OF_OIL_SEEDS = '01113',\n GROWING_OF_OTHER_CEREALS = '01119',\n GROWING_OF_PADDY = '01120',\n GROWING_OF_LEAFY_OR_STEM_VEGETABLES = '01131',\n GROWING_OF_FRUITS_BEARING_VEGETABLES = '01132',\n GROWING_OF_MELONS = '01133',\n GROWING_OF_MUSHROOMS_AND_TRUFFLES = '01134',\n GROWING_OF_VEGETABLES_SEEDS = '01135',\n GROWING_OF_OTHER_VEGETABLES = '01136',\n GROWING_OF_SUGAR_BEET = '01137',\n GROWING_OF_ROOTS_TUBERS = '01138',\n GROWING_OF_SUGAR_CANE = '01140',\n GROWING_OF_TOBACCO = '01150',\n GROWING_OF_FIBRE_CROPS = '01160',\n GROWING_OF_FLOWERS = '01191',\n GROWING_OF_FLOWER_SEEDS = '01192',\n GROWING_OF_SAGO = '01193',\n GROWING_OF_OTHER_NON_PERENNIAL_CROPS = '01199',\n GROWING_OF_GRAPES = '01210',\n GROWING_OF_BANANA = '01221',\n GROWING_OF_MANGO = '01222',\n GROWING_OF_DURIAN = '01223',\n GROWING_OF_RAMBUTAN = '01224',\n GROWING_OF_STAR_FRUIT = '01225',\n GROWING_OF_PAPAYA = '01226',\n GROWING_OF_PINEAPPLE = '01227',\n GROWING_OF_PITAYA = '01228',\n GROWING_OF_OTHER_TROPICAL_FRUITS = '01229',\n GROWING_OF_POMELO = '01231',\n GROWING_OF_LEMON_AND_LIMES = '01232',\n GROWING_OF_TANGERINES_AND_MANDARIN = '01233',\n GROWING_OF_OTHER_CITRUS_FRUITS = '01239',\n GROWING_OF_GUAVA = '01241',\n GROWING_OF_OTHER_POME_FRUITS = '01249',\n GROWING_OF_BERRIES = '01251',\n GROWING_OF_FRUIT_SEEDS = '01252',\n GROWING_OF_EDIBLE_NUTS = '01253',\n GROWING_OF_OTHER_TREE_AND_BUSH_FRUITS = '01259',\n GROWING_OF_OIL_PALM_ESTATE = '01261',\n GROWING_OF_OIL_PALM_SMALLHOLDINGS = '01262',\n GROWING_OF_COCONUT = '01263',\n GROWING_OF_OTHER_OLEAGINOUS_FRUITS = '01269',\n GROWING_OF_COFFEE = '01271',\n GROWING_OF_TEA = '01272',\n GROWING_OF_COCOA = '01273',\n GROWING_OF_OTHER_BEVERAGE_CROPS = '01279',\n GROWING_OF_PEPPER = '01281',\n GROWING_OF_CHILIES = '01282',\n GROWING_OF_NUTMEG = '01283',\n GROWING_OF_GINGER = '01284',\n GROWING_OF_PLANTS_FOR_PHARMACY = '01285',\n GROWING_OF_OTHER_SPICES = '01289',\n GROWING_OF_RUBBER_TREES_ESTATE = '01291',\n GROWING_OF_RUBBER_TREES_SMALLHOLDINGS = '01292',\n GROWING_OF_TREES_FOR_SAP = '01293',\n GROWING_OF_NIPA_PALM = '01294',\n GROWING_OF_ARECA = '01295',\n GROWING_OF_ROSELLE = '01296',\n GROWING_OF_OTHER_PERENNIAL_CROPS = '01299',\n GROWING_OF_PLANTS_FOR_PLANTING = '01301',\n GROWING_OF_PLANTS_FOR_ORNAMENTAL = '01302',\n GROWING_OF_LIVE_PLANTS = '01303',\n OPERATION_OF_TREE_NURSERIES = '01304',\n RAISING_CATTLE_OR_BUFFALOES = '01411',\n PRODUCTION_OF_RAW_MILK = '01412',\n PRODUCTION_OF_BOVINE_SEMEN = '01413',\n RAISING_OF_HORSES = '01420',\n RAISING_OF_CAMELS = '01430',\n RAISING_OF_SHEEP_AND_GOATS = '01441',\n PRODUCTION_OF_SHEEP_MILK = '01442',\n PRODUCTION_OF_RAW_WOOL = '01443',\n RAISING_OF_SWINE = '01450',\n RAISING_OF_CHICKEN = '01461',\n RAISING_OF_DUCKS = '01462',\n RAISING_OF_GEESE = '01463',\n RAISING_OF_QUAILS = '01464',\n RAISING_OF_OTHER_POULTRY = '01465',\n PRODUCTION_OF_CHICKEN_EGGS = '01466',\n PRODUCTION_OF_DUCK_EGGS = '01467',\n PRODUCTION_OF_OTHER_POULTRY_EGGS = '01468',\n OPERATION_OF_POULTRY_HATCHERIES = '01469',\n RAISING_OF_SEMI_DOMESTICATED = '01491',\n PRODUCTION_OF_FUR_SKINS = '01492',\n OPERATION_OF_WORM_FARMS = '01493',\n RAISING_OF_SILK_WORMS = '01494',\n BEE_KEEPING = '01495',\n RAISING_OF_PET_ANIMALS = '01496',\n RAISING_OF_SWIFLET = '01497',\n RAISING_OF_DIVERSE_ANIMALS = '01499',\n MIXED_FARMING = '01500',\n AGRICULTURAL_ACTIVITIES_FOR_CROPS = '01610',\n AGRICULTURAL_ACTIVITIES_FOR_ANIMALS = '01620',\n PREPARATION_OF_CROPS = '01631',\n PREPARATION_OF_TOBACCO_LEAVES = '01632',\n PREPARATION_OF_COCOA_BEANS = '01633',\n SUN_DRYING_OF_FRUITS = '01634',\n SEED_PROCESSING = '01640',\n HUNTING_AND_TRAPPING = '01701',\n TAKING_OF_ANIMALS = '01702',\n PLANTING_OF_FORESTS = '02101',\n GROWING_OF_COPPICE = '02102',\n OPERATION_OF_FOREST_NURSERIES = '02103',\n COLLECTION_OF_WILDINGS = '02104',\n FOREST_PLANTATION = '02105',\n PRODUCTION_OF_ROUND_WOOD = '02201',\n PRODUCTION_OF_UNPROCESSED_WOOD = '02202',\n PRODUCTION_OF_CHARCOAL = '02203',\n RUBBER_WOOD_LOGGING = '02204',\n COLLECTION_OF_RATTAN = '02301',\n BIRDS_NEST_COLLECTION = '02302',\n WILD_SAGO_PALM_COLLECTION = '02303',\n GATHERING_OF_NON_WOOD_FOREST = '02309',\n FORESTRY_SERVICE_ACTIVITIES = '02401',\n LOGGING_SERVICE_ACTIVITIES = '02402',\n COMMERCIAL_OCEAN_FISHING = '03111',\n COLLECTION_OF_MARINE_CRUSTACEANS = '03112',\n TAKING_OF_AQUATIC_ANIMALS = '03113',\n VESSELS_FOR_FISHING = '03114',\n GATHERING_OF_MARINE_ORGANISMS = '03115',\n MARINE_FISHING = '03119',\n COMMERCIAL_INLAND_FISHING = '03121',\n TAKING_OF_FRESHWATER_CRUSTACEANS = '03122',\n TAKING_OF_FRESHWATER_ANIMALS = '03123',\n GATHERING_OF_FRESHWATER_FLORA = '03124',\n FRESHWATER_FISHING = '03129',\n FISH_FARMING_SEA_WATER = '03211',\n PRODUCTION_OF_BIVALVE_SPAT = '03212',\n GROWING_OF_SEAWEEDS = '03213',\n CULTURE_OF_CRUSTACEANS = '03214',\n AQUACULTURE_IN_BRACKISH = '03215',\n AQUACULTURE_IN_SALT_WATER = '03216',\n OPERATION_OF_MARINE_HATCHERIES = '03217',\n OPERATION_OF_MARINE_WORM_FARMS = '03218',\n MARINE_AQUACULTURE = '03219',\n FISH_FARMING_FRESHWATER = '03221',\n SHRIMP_FARMING_FRESHWATER = '03222',\n CULTURE_OF_FRESHWATER_CRUSTACEANS = '03223',\n OPERATION_OF_FRESHWATER_HATCHERIES = '03224',\n FARMING_OF_FROGS = '03225',\n FRESHWATER_AQUACULTURE = '03229',\n MINING_OF_HARD_COAL = '05100',\n MINING_OF_LIGNITE = '05200',\n EXTRACTION_OF_CRUDE_PETROLEUM = '06101',\n EXTRACTION_OF_BITUMINOUS = '06102',\n PRODUCTION_OF_CRUDE_PETROLEUM = '06103',\n PROCESSES_TO_OBTAIN_CRUDE_OILS = '06104',\n PRODUCTION_OF_NATURAL_GAS = '06201',\n EXTRACTION_OF_CONDENSATES = '06202',\n DRAINING_OF_HYDROCARBON = '06203',\n GAS_DESULPHURIZATION = '06204',\n MINING_OF_HYDROCARBON_LIQUIDS = '06205',\n MINING_OF_IRON_ORES = '07101',\n BENEFICIATION_OF_IRON_ORES = '07102',\n MINING_OF_URANIUM = '07210',\n MINING_OF_TIN = '07291',\n MINING_OF_COPPER = '07292',\n MINING_OF_BAUXITE = '07293',\n MINING_OF_ILMENITE = '07294',\n MINING_OF_GOLD = '07295',\n MINING_OF_SILVER = '07296',\n MINING_OF_PLATINUM = '07297',\n AMANG_RETREATMENT = '07298',\n MINING_OF_OTHER_NON_FERROUS = '07299',\n QUARRYING_OF_STONE = '08101',\n QUARRYING_OF_LIMESTONE = '08102',\n MINING_OF_GYPSUM = '08103',\n MINING_OF_CHALK = '08104',\n EXTRACTION_OF_SAND = '08105',\n BREAKING_OF_STONE = '08106',\n QUARRYING_OF_SAND = '08107',\n MINING_OF_CLAYS = '08108',\n QUARRYING_OF_GRANITE = '08109',\n MINING_OF_PHOSPHATES = '08911',\n MINING_OF_POTASSIUM = '08912',\n MINING_OF_SULPHUR = '08913',\n EXTRACTION_OF_PYRITES = '08914',\n MINING_OF_BARIUM = '08915',\n MINING_OF_BORATES = '08916',\n MINING_OF_EARTH_COLOURS = '08917',\n GUANO_MINING = '08918',\n PEAT_DIGGING = '08921',\n PEAT_AGGLOMERATION = '08922',\n PREPARATION_OF_PEAT = '08923',\n EXTRACTION_OF_UNDERGROUND_SALT = '08931',\n SALT_PRODUCTION = '08932',\n CRUSHING_OF_SALT = '08933',\n MINING_OF_ABRASIVE_MATERIALS = '08991',\n MINING_OF_ASBESTOS = '08992',\n MINING_OF_SILICEOUS = '08993',\n MINING_OF_GRAPHITE = '08994',\n MINING_OF_STEATITE = '08995',\n MINING_OF_GEMSTONES = '08996',\n OTHER_MINING = '08999',\n OIL_AND_GAS_EXTRACTION = '09101',\n OIL_AND_GAS_FIREFIGHTING = '09102',\n SUPPORT_FOR_MINING = '09900',\n}\n"],"mappings":";;AA+MA,IAAY,8CAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
|
1
|
+
{"version":3,"file":"index30.cjs","names":["tin: string","registrationType?: string","errors: ValidationError[]","contactNumber: string","amount: number","fieldName: string","item: InvoiceLineItem","index: number","invoice: InvoiceV1_1","allErrors: ValidationError[]"],"sources":["../src/utils/validation.ts"],"sourcesContent":["import type { InvoiceV1_1, InvoiceLineItem } from '../types'\n\n/**\n * MyInvois Invoice Validation Utilities\n *\n * Provides comprehensive validation for invoice data before document generation\n * and submission to ensure compliance with MyInvois business rules and format requirements.\n */\n\nexport interface ValidationResult {\n isValid: boolean\n errors: ValidationError[]\n warnings: ValidationWarning[]\n}\n\nexport interface ValidationError {\n field: string\n code: string\n message: string\n severity: 'error' | 'warning'\n}\n\nexport interface ValidationWarning extends ValidationError {\n severity: 'warning'\n}\n\n/**\n * Validates TIN format based on registration type\n */\nexport const validateTIN = (\n tin: string,\n registrationType?: string,\n): ValidationError[] => {\n const errors: ValidationError[] = []\n\n if (!tin) {\n errors.push({\n field: 'tin',\n code: 'TIN_REQUIRED',\n message: 'TIN is required',\n severity: 'error',\n })\n return errors\n }\n\n // TIN format validation based on type\n if (registrationType === 'BRN' && !tin.startsWith('C')) {\n errors.push({\n field: 'tin',\n code: 'TIN_FORMAT_INVALID',\n message: 'Company TIN should start with \"C\" for BRN registration',\n severity: 'warning',\n })\n }\n\n if (registrationType === 'NRIC' && !tin.startsWith('IG')) {\n errors.push({\n field: 'tin',\n code: 'TIN_FORMAT_INVALID',\n message: 'Individual TIN should start with \"IG\" for NRIC registration',\n severity: 'warning',\n })\n }\n\n // Length validation\n if (tin.length > 14) {\n errors.push({\n field: 'tin',\n code: 'TIN_LENGTH_INVALID',\n message: 'TIN cannot exceed 14 characters',\n severity: 'error',\n })\n }\n\n return errors\n}\n\n/**\n * Validates contact number format (E.164 standard)\n */\nexport const validateContactNumber = (\n contactNumber: string,\n): ValidationError[] => {\n const errors: ValidationError[] = []\n\n if (!contactNumber || contactNumber === 'NA') {\n return errors // Allow NA for consolidated e-invoices\n }\n\n // E.164 format validation\n const e164Regex = /^\\+[1-9]\\d{1,14}$/\n if (!e164Regex.test(contactNumber)) {\n errors.push({\n field: 'contactNumber',\n code: 'CONTACT_FORMAT_INVALID',\n message: 'Contact number must be in E.164 format (e.g., +60123456789)',\n severity: 'error',\n })\n }\n\n if (contactNumber.length < 8) {\n errors.push({\n field: 'contactNumber',\n code: 'CONTACT_LENGTH_INVALID',\n message: 'Contact number must be at least 8 characters',\n severity: 'error',\n })\n }\n\n return errors\n}\n\n/**\n * Validates monetary amounts\n */\nexport const validateMonetaryAmount = (\n amount: number,\n fieldName: string,\n maxDigits = 18,\n maxDecimals = 2,\n): ValidationError[] => {\n const errors: ValidationError[] = []\n\n if (amount < 0) {\n errors.push({\n field: fieldName,\n code: 'AMOUNT_NEGATIVE',\n message: `${fieldName} cannot be negative`,\n severity: 'error',\n })\n }\n\n // Check total digits\n const amountStr = amount.toString()\n const [integerPart, decimalPart] = amountStr.split('.')\n\n if (integerPart && integerPart.length > maxDigits - maxDecimals) {\n errors.push({\n field: fieldName,\n code: 'AMOUNT_DIGITS_EXCEEDED',\n message: `${fieldName} exceeds maximum ${maxDigits} digits`,\n severity: 'error',\n })\n }\n\n if (decimalPart && decimalPart.length > maxDecimals) {\n errors.push({\n field: fieldName,\n code: 'AMOUNT_DECIMALS_EXCEEDED',\n message: `${fieldName} exceeds maximum ${maxDecimals} decimal places`,\n severity: 'error',\n })\n }\n\n return errors\n}\n\n/**\n * Validates line item tax calculation consistency for both fixed rate and percentage taxation\n */\nexport const validateLineItemTax = (\n item: InvoiceLineItem,\n index: number,\n): ValidationError[] => {\n const errors: ValidationError[] = []\n const tolerance = 0.01\n\n // Check if tax calculation method is specified\n const hasFixedRate =\n item.taxPerUnitAmount !== undefined && item.baseUnitMeasure !== undefined\n const hasPercentageRate = item.taxRate !== undefined\n\n if (!hasFixedRate && !hasPercentageRate) {\n errors.push({\n field: `lineItem[${index}]`,\n code: 'TAX_METHOD_MISSING',\n message: `Line item ${index + 1} must specify either taxRate (for percentage) or taxPerUnitAmount + baseUnitMeasure (for fixed rate)`,\n severity: 'error',\n })\n return errors\n }\n\n if (hasFixedRate && hasPercentageRate) {\n errors.push({\n field: `lineItem[${index}]`,\n code: 'TAX_METHOD_CONFLICT',\n message: `Line item ${index + 1} cannot have both percentage and fixed rate tax methods`,\n severity: 'error',\n })\n }\n\n // Validate fixed rate tax calculation\n if (hasFixedRate) {\n if (item.baseUnitMeasureCode === undefined) {\n errors.push({\n field: `lineItem[${index}].baseUnitMeasureCode`,\n code: 'UNIT_CODE_MISSING',\n message: `Line item ${index + 1} with fixed rate tax must specify baseUnitMeasureCode`,\n severity: 'error',\n })\n }\n\n const expectedTaxAmount = item.taxPerUnitAmount! * item.baseUnitMeasure!\n if (Math.abs(item.taxAmount - expectedTaxAmount) > tolerance) {\n errors.push({\n field: `lineItem[${index}].taxAmount`,\n code: 'FIXED_TAX_CALCULATION_MISMATCH',\n message: `Line item ${index + 1} tax amount (${item.taxAmount}) doesn't match fixed rate calculation (${item.taxPerUnitAmount} × ${item.baseUnitMeasure} = ${expectedTaxAmount})`,\n severity: 'error',\n })\n }\n }\n\n // Validate percentage tax calculation\n if (hasPercentageRate && !hasFixedRate) {\n const expectedTaxAmount =\n (item.totalTaxableAmountPerLine * item.taxRate!) / 100\n if (Math.abs(item.taxAmount - expectedTaxAmount) > tolerance) {\n errors.push({\n field: `lineItem[${index}].taxAmount`,\n code: 'PERCENTAGE_TAX_CALCULATION_MISMATCH',\n message: `Line item ${index + 1} tax amount (${item.taxAmount}) doesn't match percentage calculation (${item.totalTaxableAmountPerLine} × ${item.taxRate}% = ${expectedTaxAmount})`,\n severity: 'error',\n })\n }\n }\n\n return errors\n}\n\n/**\n * Validates tax calculation consistency\n */\nexport const validateTaxCalculations = (\n invoice: InvoiceV1_1,\n): ValidationError[] => {\n const errors: ValidationError[] = []\n\n // Validate individual line item tax calculations\n invoice.invoiceLineItems.forEach((item, index) => {\n errors.push(...validateLineItemTax(item, index))\n })\n\n // Calculate expected totals from line items\n const expectedTaxExclusive = invoice.invoiceLineItems.reduce(\n (sum, item) => sum + item.totalTaxableAmountPerLine,\n 0,\n )\n const expectedTaxAmount = invoice.invoiceLineItems.reduce(\n (sum, item) => sum + item.taxAmount,\n 0,\n )\n\n // Allow small rounding differences (0.01)\n const tolerance = 0.01\n\n if (\n Math.abs(\n invoice.legalMonetaryTotal.taxExclusiveAmount - expectedTaxExclusive,\n ) > tolerance\n ) {\n errors.push({\n field: 'legalMonetaryTotal.taxExclusiveAmount',\n code: 'TAX_EXCLUSIVE_MISMATCH',\n message: `Tax exclusive amount (${invoice.legalMonetaryTotal.taxExclusiveAmount}) doesn't match sum of line items (${expectedTaxExclusive})`,\n severity: 'error',\n })\n }\n\n if (Math.abs(invoice.taxTotal.taxAmount - expectedTaxAmount) > tolerance) {\n errors.push({\n field: 'taxTotal.taxAmount',\n code: 'TAX_AMOUNT_MISMATCH',\n message: `Tax amount (${invoice.taxTotal.taxAmount}) doesn't match sum of line item taxes (${expectedTaxAmount})`,\n severity: 'error',\n })\n }\n\n return errors\n}\n\n/**\n * Main validation function for complete invoice\n */\nexport const validateInvoice = (invoice: InvoiceV1_1): ValidationResult => {\n const allErrors: ValidationError[] = []\n\n // Core field validations\n allErrors.push(\n ...validateTIN(invoice.supplier.tin, invoice.supplier.registrationType),\n )\n allErrors.push(\n ...validateTIN(invoice.buyer.tin, invoice.buyer.registrationType),\n )\n\n allErrors.push(...validateContactNumber(invoice.supplier.contactNumber))\n allErrors.push(...validateContactNumber(invoice.buyer.contactNumber))\n\n // Monetary validations\n allErrors.push(\n ...validateMonetaryAmount(\n invoice.legalMonetaryTotal.taxExclusiveAmount,\n 'taxExclusiveAmount',\n ),\n )\n allErrors.push(\n ...validateMonetaryAmount(\n invoice.legalMonetaryTotal.payableAmount,\n 'payableAmount',\n ),\n )\n allErrors.push(\n ...validateMonetaryAmount(invoice.taxTotal.taxAmount, 'taxAmount'),\n )\n\n // Line item validations\n invoice.invoiceLineItems.forEach((item, index) => {\n allErrors.push(\n ...validateMonetaryAmount(item.unitPrice, `lineItem[${index}].unitPrice`),\n )\n allErrors.push(\n ...validateMonetaryAmount(item.taxAmount, `lineItem[${index}].taxAmount`),\n )\n allErrors.push(\n ...validateMonetaryAmount(\n item.totalTaxableAmountPerLine,\n `lineItem[${index}].totalTaxableAmountPerLine`,\n ),\n )\n })\n\n // Business rule validations\n allErrors.push(...validateTaxCalculations(invoice))\n\n // Separate errors and warnings\n const errors = allErrors.filter(e => e.severity === 'error')\n const warnings = allErrors.filter(\n e => e.severity === 'warning',\n ) as ValidationWarning[]\n\n return {\n isValid: errors.length === 0,\n errors,\n warnings,\n }\n}\n"],"mappings":";;;;;AA6BA,MAAa,cAAc,CACzBA,KACAC,qBACsB;CACtB,MAAMC,SAA4B,CAAE;AAEpC,MAAK,KAAK;AACR,SAAO,KAAK;GACV,OAAO;GACP,MAAM;GACN,SAAS;GACT,UAAU;EACX,EAAC;AACF,SAAO;CACR;AAGD,KAAI,qBAAqB,UAAU,IAAI,WAAW,IAAI,CACpD,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,SAAS;EACT,UAAU;CACX,EAAC;AAGJ,KAAI,qBAAqB,WAAW,IAAI,WAAW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