@ripwords/myinvois-client 0.2.11 → 0.2.13

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 (257) hide show
  1. package/dist/api/documentManagement.d.ts +60 -60
  2. package/dist/api/documentSubmission.d.ts +60 -60
  3. package/dist/api/documentSubmission.js +1 -1
  4. package/dist/api/documentTypeManagement.d.ts +60 -60
  5. package/dist/api/notificationManagement.d.ts +60 -60
  6. package/dist/api/platformLogin.d.ts +60 -60
  7. package/dist/api/taxpayerValidation.d.ts +60 -60
  8. package/dist/apiQueue-4pQwCc0e.js +138 -0
  9. package/dist/apiQueue-sL4mNlVz.cjs +151 -0
  10. package/dist/apiQueue-sL4mNlVz.cjs.map +1 -0
  11. package/dist/{documentSubmission-BPDiODUd.js → documentSubmission-BsLKf-L-.js} +6 -8
  12. package/dist/{documentSubmission-DvCgvq28.cjs → documentSubmission-ys1hH7jn.cjs} +7 -9
  13. package/dist/documentSubmission-ys1hH7jn.cjs.map +1 -0
  14. package/dist/{documents-ByWRZZfd.d.ts → documents-BPawWCi-.d.ts} +8 -8
  15. package/dist/index.cjs +5 -3
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.ts +60 -60
  18. package/dist/index.js +5 -3
  19. package/dist/index23.cjs +3 -207
  20. package/dist/index24.cjs +9 -105
  21. package/dist/index24.cjs.map +1 -1
  22. package/dist/index25.cjs +3 -136
  23. package/dist/index26.cjs +19 -63
  24. package/dist/index27.cjs +2 -266
  25. package/dist/index28.cjs +2 -78
  26. package/dist/index29.cjs +326 -103
  27. package/dist/index29.cjs.map +1 -1
  28. package/dist/index3.cjs +1 -1
  29. package/dist/index30.cjs +189 -69
  30. package/dist/index30.cjs.map +1 -1
  31. package/dist/index31.cjs +203 -107
  32. package/dist/index31.cjs.map +1 -1
  33. package/dist/index32.cjs +104 -95
  34. package/dist/index32.cjs.map +1 -1
  35. package/dist/index33.cjs +133 -9
  36. package/dist/index33.cjs.map +1 -1
  37. package/dist/index34.cjs +63 -3
  38. package/dist/{index26.cjs.map → index34.cjs.map} +1 -1
  39. package/dist/index35.cjs +266 -19
  40. package/dist/{index27.cjs.map → index35.cjs.map} +1 -1
  41. package/dist/index36.cjs +78 -2
  42. package/dist/{index28.cjs.map → index36.cjs.map} +1 -1
  43. package/dist/index37.cjs +106 -2
  44. package/dist/index37.cjs.map +1 -0
  45. package/dist/index38.cjs +69 -326
  46. package/dist/index38.cjs.map +1 -1
  47. package/dist/index39.cjs +108 -189
  48. package/dist/index39.cjs.map +1 -1
  49. package/dist/index40.cjs +95 -13
  50. package/dist/index40.cjs.map +1 -1
  51. package/dist/index41.cjs +11 -31
  52. package/dist/index41.cjs.map +1 -1
  53. package/dist/index42.cjs +31 -12
  54. package/dist/index42.cjs.map +1 -1
  55. package/dist/index43.cjs +12 -22
  56. package/dist/index43.cjs.map +1 -1
  57. package/dist/index44.cjs +22 -13
  58. package/dist/index44.cjs.map +1 -1
  59. package/dist/index45.cjs +13 -7
  60. package/dist/index45.cjs.map +1 -1
  61. package/dist/index46.cjs +7 -7
  62. package/dist/index46.cjs.map +1 -1
  63. package/dist/index47.cjs +7 -10
  64. package/dist/index47.cjs.map +1 -1
  65. package/dist/index48.cjs +10 -6
  66. package/dist/index48.cjs.map +1 -1
  67. package/dist/index49.cjs +6 -101
  68. package/dist/index49.cjs.map +1 -1
  69. package/dist/index50.cjs +101 -106
  70. package/dist/index50.cjs.map +1 -1
  71. package/dist/index51.cjs +106 -119
  72. package/dist/index51.cjs.map +1 -1
  73. package/dist/index52.cjs +119 -106
  74. package/dist/index52.cjs.map +1 -1
  75. package/dist/index53.cjs +106 -98
  76. package/dist/index53.cjs.map +1 -1
  77. package/dist/index54.cjs +98 -118
  78. package/dist/index54.cjs.map +1 -1
  79. package/dist/index55.cjs +118 -127
  80. package/dist/index55.cjs.map +1 -1
  81. package/dist/index56.cjs +127 -117
  82. package/dist/index56.cjs.map +1 -1
  83. package/dist/index57.cjs +117 -14
  84. package/dist/index57.cjs.map +1 -1
  85. package/dist/index58.cjs +14 -95
  86. package/dist/index58.cjs.map +1 -1
  87. package/dist/index59.cjs +95 -142
  88. package/dist/index59.cjs.map +1 -1
  89. package/dist/index60.cjs +142 -114
  90. package/dist/index60.cjs.map +1 -1
  91. package/dist/index61.cjs +114 -144
  92. package/dist/index61.cjs.map +1 -1
  93. package/dist/index62.cjs +144 -113
  94. package/dist/index62.cjs.map +1 -1
  95. package/dist/index63.cjs +113 -17
  96. package/dist/index63.cjs.map +1 -1
  97. package/dist/index64.cjs +17 -112
  98. package/dist/index64.cjs.map +1 -1
  99. package/dist/index65.cjs +112 -47
  100. package/dist/index65.cjs.map +1 -1
  101. package/dist/index66.cjs +47 -14
  102. package/dist/index66.cjs.map +1 -1
  103. package/dist/index67.cjs +14 -28
  104. package/dist/index67.cjs.map +1 -1
  105. package/dist/index68.cjs +28 -22
  106. package/dist/index68.cjs.map +1 -1
  107. package/dist/index68.cts.map +1 -1
  108. package/dist/index69.cjs +22 -9
  109. package/dist/index69.cjs.map +1 -1
  110. package/dist/index69.cts.map +1 -1
  111. package/dist/index70.cjs +9 -8
  112. package/dist/index70.cjs.map +1 -1
  113. package/dist/index70.cts.map +1 -1
  114. package/dist/index71.cjs +8 -17
  115. package/dist/index71.cjs.map +1 -1
  116. package/dist/index71.cts.map +1 -1
  117. package/dist/index72.cjs +17 -412
  118. package/dist/index72.cjs.map +1 -1
  119. package/dist/index72.cts.map +1 -1
  120. package/dist/index73.cjs +412 -8
  121. package/dist/index73.cjs.map +1 -1
  122. package/dist/index73.cts.map +1 -1
  123. package/dist/index74.cjs +8 -9
  124. package/dist/index74.cjs.map +1 -1
  125. package/dist/index74.cts.map +1 -1
  126. package/dist/index75.cjs +16 -0
  127. package/dist/index75.cjs.map +1 -0
  128. package/dist/index75.cts.map +1 -0
  129. package/dist/{msic-codes-bYv0T5WJ.d.ts → msic-codes-CjrrJmzb.d.ts} +10 -10
  130. package/dist/{taxpayer-yqCbpaJy.d.ts → taxpayer-SC6Tu_nN.d.ts} +2 -2
  131. package/dist/types/classification-codes.d.ts +1 -1
  132. package/dist/types/country-code.d.ts +1 -1
  133. package/dist/types/currencies.d.ts +1 -1
  134. package/dist/types/documents.d.ts +54 -54
  135. package/dist/types/e-invoice.d.ts +1 -1
  136. package/dist/types/index.d.ts +60 -60
  137. package/dist/types/msic/0X.d.ts +1 -1
  138. package/dist/types/msic/1X.d.ts +1 -1
  139. package/dist/types/msic/2X.d.ts +1 -1
  140. package/dist/types/msic/3X.d.ts +1 -1
  141. package/dist/types/msic/4X.d.ts +1 -1
  142. package/dist/types/msic/5X.d.ts +1 -1
  143. package/dist/types/msic/6X.d.ts +1 -1
  144. package/dist/types/msic/7X.d.ts +1 -1
  145. package/dist/types/msic/8X.d.ts +1 -1
  146. package/dist/types/msic/9X.d.ts +1 -1
  147. package/dist/types/msic-codes.d.ts +11 -11
  148. package/dist/types/notifications.d.ts +1 -1
  149. package/dist/types/payment-modes.d.ts +1 -1
  150. package/dist/types/signatures.d.ts +1 -1
  151. package/dist/types/state-codes.d.ts +1 -1
  152. package/dist/types/tax-types.d.ts +1 -1
  153. package/dist/types/taxpayer.d.ts +55 -55
  154. package/dist/types/unit/1X.d.ts +1 -1
  155. package/dist/types/unit/2X.d.ts +1 -1
  156. package/dist/types/unit/3X.d.ts +1 -1
  157. package/dist/types/unit/4X.d.ts +1 -1
  158. package/dist/types/unit/5X.d.ts +1 -1
  159. package/dist/types/unit/6X.d.ts +1 -1
  160. package/dist/types/unit/7X.d.ts +1 -1
  161. package/dist/types/unit/8X.d.ts +1 -1
  162. package/dist/types/unit/9X.d.ts +1 -1
  163. package/dist/types/unit/AX.d.ts +1 -1
  164. package/dist/types/unit/BX.d.ts +1 -1
  165. package/dist/types/unit/CX.d.ts +1 -1
  166. package/dist/types/unit/DX.d.ts +1 -1
  167. package/dist/types/unit/EX.d.ts +1 -1
  168. package/dist/types/unit/FX.d.ts +1 -1
  169. package/dist/types/unit/GX.d.ts +1 -1
  170. package/dist/types/unit/HX.d.ts +1 -1
  171. package/dist/types/unit/IX.d.ts +1 -1
  172. package/dist/types/unit/JX.d.ts +1 -1
  173. package/dist/types/unit/KX.d.ts +1 -1
  174. package/dist/types/unit/LX.d.ts +1 -1
  175. package/dist/types/unit/MX.d.ts +1 -1
  176. package/dist/types/unit/NX.d.ts +1 -1
  177. package/dist/types/unit/OX.d.ts +1 -1
  178. package/dist/types/unit/PX.d.ts +1 -1
  179. package/dist/types/unit/QX.d.ts +1 -1
  180. package/dist/types/unit/RX.d.ts +1 -1
  181. package/dist/types/unit/SX.d.ts +1 -1
  182. package/dist/types/unit/TX.d.ts +1 -1
  183. package/dist/types/unit/UX.d.ts +1 -1
  184. package/dist/types/unit/VX.d.ts +1 -1
  185. package/dist/types/unit/WX.d.ts +1 -1
  186. package/dist/types/unit/XX.d.ts +1 -1
  187. package/dist/types/unit/YX.d.ts +1 -1
  188. package/dist/types/unit/ZX.d.ts +1 -1
  189. package/dist/types/unit-types.d.ts +36 -36
  190. package/dist/types/utils.d.ts +1 -1
  191. package/dist/unit-types-VgYXIwTT.d.ts +55 -0
  192. package/dist/utils/apiQueue.d.ts +35 -0
  193. package/dist/utils/apiQueue.js +3 -0
  194. package/dist/utils/document.d.ts +60 -60
  195. package/dist/utils/signature-diagnostics.d.ts +60 -60
  196. package/dist/utils/validation.d.ts +60 -60
  197. package/package.json +1 -1
  198. package/dist/documentSubmission-DvCgvq28.cjs.map +0 -1
  199. package/dist/index23.cjs.map +0 -1
  200. package/dist/index25.cjs.map +0 -1
  201. package/dist/unit-types-BDqcMY-6.d.ts +0 -55
  202. /package/dist/{0X-Dd1CNvh-.d.ts → 0X-qj3c_vAo.d.ts} +0 -0
  203. /package/dist/{1X-CCvwRRue.d.ts → 1X-B-lyAVC4.d.ts} +0 -0
  204. /package/dist/{1X-tlQZHXWg.d.ts → 1X-C72Wa4pk.d.ts} +0 -0
  205. /package/dist/{2X-BNzH9sOi.d.ts → 2X-BfCK614i.d.ts} +0 -0
  206. /package/dist/{2X-Dpj2ruTC.d.ts → 2X-CH89y3Af.d.ts} +0 -0
  207. /package/dist/{3X-DGRZOL1h.d.ts → 3X-DryrwYRf.d.ts} +0 -0
  208. /package/dist/{3X-Dgh7ek-L.d.ts → 3X-Du10Ix_V.d.ts} +0 -0
  209. /package/dist/{4X-C2YvBCto.d.ts → 4X-BPMLRoDv.d.ts} +0 -0
  210. /package/dist/{4X-JEzpzgfD.d.ts → 4X-x3cRFuSM.d.ts} +0 -0
  211. /package/dist/{5X-Dh-FPoAo.d.ts → 5X-B52AKeTz.d.ts} +0 -0
  212. /package/dist/{5X-CLwXLO_A.d.ts → 5X-Bv7M6KyG.d.ts} +0 -0
  213. /package/dist/{6X-Bj2BTA-B.d.ts → 6X-DBwpWPQ6.d.ts} +0 -0
  214. /package/dist/{6X-DKI9x-xV.d.ts → 6X-ZeZ8OB57.d.ts} +0 -0
  215. /package/dist/{7X-CqUyxXiA.d.ts → 7X-C_XGDSpE.d.ts} +0 -0
  216. /package/dist/{7X-CfbV7a2x.d.ts → 7X-Dvw2Z2VN.d.ts} +0 -0
  217. /package/dist/{8X-LeWjhVT-.d.ts → 8X-BkgoX8dg.d.ts} +0 -0
  218. /package/dist/{8X-BiBd9Sgc.d.ts → 8X-Di_0wuRX.d.ts} +0 -0
  219. /package/dist/{9X-CPUAZZzu.d.ts → 9X-8ZnvvViY.d.ts} +0 -0
  220. /package/dist/{9X-DlQI2H7P.d.ts → 9X-Du0e44cq.d.ts} +0 -0
  221. /package/dist/{AX-LnjRRsXP.d.ts → AX-BSPLpkVT.d.ts} +0 -0
  222. /package/dist/{BX-BEB5dvmG.d.ts → BX-u4yMaIkz.d.ts} +0 -0
  223. /package/dist/{CX-DbUPhejT.d.ts → CX-BKZG0pVE.d.ts} +0 -0
  224. /package/dist/{DX-CQQRUzAX.d.ts → DX-CwA9WJAf.d.ts} +0 -0
  225. /package/dist/{EX-mr76RLy0.d.ts → EX-BRNu1Ooi.d.ts} +0 -0
  226. /package/dist/{FX-CsnNcgsB.d.ts → FX-DBxjq6xY.d.ts} +0 -0
  227. /package/dist/{GX-BdkB6I_6.d.ts → GX-B3CvWNrP.d.ts} +0 -0
  228. /package/dist/{HX-GMf5i5So.d.ts → HX-D7FABgTv.d.ts} +0 -0
  229. /package/dist/{IX-Duj6eppk.d.ts → IX-D3ZknsAB.d.ts} +0 -0
  230. /package/dist/{JX-Daa9spZ7.d.ts → JX-BRaZM3Gc.d.ts} +0 -0
  231. /package/dist/{KX-tnQXTKgl.d.ts → KX-B1K0OWoi.d.ts} +0 -0
  232. /package/dist/{LX-DZobJ-WG.d.ts → LX-CKRefinL.d.ts} +0 -0
  233. /package/dist/{MX-BVPhHIvx.d.ts → MX-DKmaeO9r.d.ts} +0 -0
  234. /package/dist/{NX-DEc1tsw0.d.ts → NX-CJL2Gn1U.d.ts} +0 -0
  235. /package/dist/{OX-CT_Dg5Xc.d.ts → OX-Do2ap5v_.d.ts} +0 -0
  236. /package/dist/{PX-BqEPcioe.d.ts → PX-_DOr_rm9.d.ts} +0 -0
  237. /package/dist/{QX-PkkdCvsL.d.ts → QX-HlXLkIki.d.ts} +0 -0
  238. /package/dist/{RX-DCff5kVD.d.ts → RX-DVPGOVES.d.ts} +0 -0
  239. /package/dist/{SX-B0U-jv6V.d.ts → SX-OGT3qwlS.d.ts} +0 -0
  240. /package/dist/{TX-UoXkAqwz.d.ts → TX-cPDINmZ5.d.ts} +0 -0
  241. /package/dist/{UX-CCbo58UC.d.ts → UX-Be3sqvPV.d.ts} +0 -0
  242. /package/dist/{VX-DhNvZGZW.d.ts → VX-CoEuBNDK.d.ts} +0 -0
  243. /package/dist/{WX-BNhx__qq.d.ts → WX-DMvw__jH.d.ts} +0 -0
  244. /package/dist/{XX-BohzIxEW.d.ts → XX-DOA-10JW.d.ts} +0 -0
  245. /package/dist/{YX-DNZeyxw3.d.ts → YX-F34sJ7Ik.d.ts} +0 -0
  246. /package/dist/{ZX-CLCrJ7Mg.d.ts → ZX-CDQOfsHh.d.ts} +0 -0
  247. /package/dist/{classification-codes-DLO4QazM.d.ts → classification-codes-C2X4xW5-.d.ts} +0 -0
  248. /package/dist/{country-code-DqhONNiC.d.ts → country-code-DsI8Mbzx.d.ts} +0 -0
  249. /package/dist/{currencies-Dgzd5iCT.d.ts → currencies-DKuDflOO.d.ts} +0 -0
  250. /package/dist/{e-invoice-Bbd2oyzZ.d.ts → e-invoice-C2TxhyrK.d.ts} +0 -0
  251. /package/dist/{index-Cvns0Vxq.d.ts → index-CygwSf0x.d.ts} +0 -0
  252. /package/dist/{notifications-CBKMhBtd.d.ts → notifications-sFhgh3rJ.d.ts} +0 -0
  253. /package/dist/{payment-modes-SbrTHOfF.d.ts → payment-modes-g3DzLmWb.d.ts} +0 -0
  254. /package/dist/{signatures-BjqNaINR.d.ts → signatures-CerHUrj3.d.ts} +0 -0
  255. /package/dist/{state-codes-B9___UB-.d.ts → state-codes-Ow4oehYT.d.ts} +0 -0
  256. /package/dist/{tax-types-ieqw5Ze7.d.ts → tax-types-ClyLgydM.d.ts} +0 -0
  257. /package/dist/{utils-BTAitDVa.d.ts → utils-C4FoVKLq.d.ts} +0 -0
package/dist/index39.cjs CHANGED
@@ -1,193 +1,112 @@
1
1
 
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
- };
2
+ //#region src/types/msic/8X.d.ts
3
+ let MSIC_8X = /* @__PURE__ */ function(MSIC_8X$1) {
4
+ MSIC_8X$1["PRIVATE_SECURITY"] = "80100";
5
+ MSIC_8X$1["SECURITY_SYSTEMS"] = "80200";
6
+ MSIC_8X$1["INVESTIGATION"] = "80300";
7
+ MSIC_8X$1["FACILITIES_SUPPORT"] = "81100";
8
+ MSIC_8X$1["GENERAL_CLEANING"] = "81210";
9
+ MSIC_8X$1["BUILDING_CLEANING"] = "81291";
10
+ MSIC_8X$1["POOL_CLEANING"] = "81292";
11
+ MSIC_8X$1["INDUSTRIAL_MACHINERY_CLEANING"] = "81293";
12
+ MSIC_8X$1["TRANSPORT_CLEANING"] = "81294";
13
+ MSIC_8X$1["PEST_CONTROL"] = "81295";
14
+ MSIC_8X$1["DISINFECTING"] = "81296";
15
+ MSIC_8X$1["TANKER_CLEANING"] = "81297";
16
+ MSIC_8X$1["OTHER_CLEANING"] = "81299";
17
+ MSIC_8X$1["LANDSCAPE_MAINTENANCE"] = "81300";
18
+ MSIC_8X$1["OFFICE_ADMIN"] = "82110";
19
+ MSIC_8X$1["DOCUMENT_PREPARATION"] = "82191";
20
+ MSIC_8X$1["WORD_PROCESSING"] = "82192";
21
+ MSIC_8X$1["SECRETARIAL_SUPPORT"] = "82193";
22
+ MSIC_8X$1["TRANSCRIPTION"] = "82194";
23
+ MSIC_8X$1["MAILBOX_RENTAL"] = "82195";
24
+ MSIC_8X$1["PHOTOCOPYING"] = "82196";
25
+ MSIC_8X$1["OTHER_OFFICE_SUPPORT"] = "82199";
26
+ MSIC_8X$1["CALL_CENTRES"] = "82200";
27
+ MSIC_8X$1["EVENT_MANAGEMENT"] = "82301";
28
+ MSIC_8X$1["MICE"] = "82302";
29
+ MSIC_8X$1["COLLECTION_AGENCIES"] = "82910";
30
+ MSIC_8X$1["PACKAGING"] = "82920";
31
+ MSIC_8X$1["OTHER_BUSINESS_SUPPORT"] = "82990";
32
+ MSIC_8X$1["PUBLIC_ADMIN"] = "84111";
33
+ MSIC_8X$1["GOVERNMENT_SUPPORT"] = "84112";
34
+ MSIC_8X$1["EDUCATION_ADMIN"] = "84121";
35
+ MSIC_8X$1["HEALTHCARE_ADMIN"] = "84122";
36
+ MSIC_8X$1["HOUSING_ADMIN"] = "84123";
37
+ MSIC_8X$1["RECREATION_ADMIN"] = "84124";
38
+ MSIC_8X$1["RELIGIOUS_ADMIN"] = "84125";
39
+ MSIC_8X$1["WELFARE_ADMIN"] = "84126";
40
+ MSIC_8X$1["OTHER_SOCIAL_ADMIN"] = "84129";
41
+ MSIC_8X$1["TRADE_AFFAIRS"] = "84131";
42
+ MSIC_8X$1["AGRICULTURE_AFFAIRS"] = "84132";
43
+ MSIC_8X$1["PRIMARY_INDUSTRIES"] = "84133";
44
+ MSIC_8X$1["PUBLIC_WORKS"] = "84134";
45
+ MSIC_8X$1["TRANSPORT_AFFAIRS"] = "84135";
46
+ MSIC_8X$1["ENERGY_TELECOM"] = "84136";
47
+ MSIC_8X$1["TOURISM_AFFAIRS"] = "84137";
48
+ MSIC_8X$1["HR_AFFAIRS"] = "84138";
49
+ MSIC_8X$1["OTHER_BUSINESS_REGULATION"] = "84139";
50
+ MSIC_8X$1["FOREIGN_AFFAIRS"] = "84210";
51
+ MSIC_8X$1["DEFENSE"] = "84220";
52
+ MSIC_8X$1["POLICE"] = "84231";
53
+ MSIC_8X$1["PRISON"] = "84232";
54
+ MSIC_8X$1["IMMIGRATION"] = "84233";
55
+ MSIC_8X$1["NATIONAL_REGISTRATION"] = "84234";
56
+ MSIC_8X$1["LEGAL_SERVICE"] = "84235";
57
+ MSIC_8X$1["FIREFIGHTING"] = "84236";
58
+ MSIC_8X$1["OTHER_PUBLIC_ORDER"] = "84239";
59
+ MSIC_8X$1["SOCIAL_SECURITY"] = "84300";
60
+ MSIC_8X$1["PUBLIC_PRESCHOOL"] = "85101";
61
+ MSIC_8X$1["PRIVATE_PRESCHOOL"] = "85102";
62
+ MSIC_8X$1["PUBLIC_PRIMARY"] = "85103";
63
+ MSIC_8X$1["PRIVATE_PRIMARY"] = "85104";
64
+ MSIC_8X$1["PUBLIC_SECONDARY"] = "85211";
65
+ MSIC_8X$1["PRIVATE_SECONDARY"] = "85212";
66
+ MSIC_8X$1["PUBLIC_VOCATIONAL"] = "85221";
67
+ MSIC_8X$1["PRIVATE_VOCATIONAL"] = "85222";
68
+ MSIC_8X$1["PUBLIC_UNIVERSITY"] = "85301";
69
+ MSIC_8X$1["PRIVATE_UNIVERSITY"] = "85302";
70
+ MSIC_8X$1["SPORTS_INSTRUCTION"] = "85411";
71
+ MSIC_8X$1["MARTIAL_ARTS"] = "85412";
72
+ MSIC_8X$1["OTHER_SPORTS_EDUCATION"] = "85419";
73
+ MSIC_8X$1["MUSIC_DANCING"] = "85421";
74
+ MSIC_8X$1["OTHER_CULTURAL_EDUCATION"] = "85429";
75
+ MSIC_8X$1["TUITION"] = "85491";
76
+ MSIC_8X$1["DRIVING_SCHOOL"] = "85492";
77
+ MSIC_8X$1["RELIGIOUS_INSTRUCTION"] = "85493";
78
+ MSIC_8X$1["COMPUTER_TRAINING"] = "85494";
79
+ MSIC_8X$1["OTHER_EDUCATION"] = "85499";
80
+ MSIC_8X$1["EDUCATION_SUPPORT"] = "85500";
81
+ MSIC_8X$1["HOSPITAL"] = "86101";
82
+ MSIC_8X$1["MATERNITY_HOME"] = "86102";
83
+ MSIC_8X$1["GENERAL_MEDICAL"] = "86201";
84
+ MSIC_8X$1["SPECIALIZED_MEDICAL"] = "86202";
85
+ MSIC_8X$1["DENTAL"] = "86203";
86
+ MSIC_8X$1["DIALYSIS"] = "86901";
87
+ MSIC_8X$1["MEDICAL_LAB"] = "86902";
88
+ MSIC_8X$1["PHYSIOTHERAPY"] = "86903";
89
+ MSIC_8X$1["ACUPUNCTURE"] = "86904";
90
+ MSIC_8X$1["ALTERNATIVE_MEDICINE"] = "86905";
91
+ MSIC_8X$1["AMBULANCE"] = "86906";
92
+ MSIC_8X$1["OTHER_HEALTH"] = "86909";
93
+ MSIC_8X$1["ELDERLY_NURSING"] = "87101";
94
+ MSIC_8X$1["NURSING_HOMES"] = "87102";
95
+ MSIC_8X$1["HOSPICE"] = "87103";
96
+ MSIC_8X$1["DRUG_REHAB"] = "87201";
97
+ MSIC_8X$1["OTHER_MENTAL_CARE"] = "87209";
98
+ MSIC_8X$1["ELDERLY_CARE"] = "87300";
99
+ MSIC_8X$1["ORPHANAGES"] = "87901";
100
+ MSIC_8X$1["WELFARE_HOMES"] = "87902";
101
+ MSIC_8X$1["OTHER_RESIDENTIAL_CARE"] = "87909";
102
+ MSIC_8X$1["ELDERLY_DAYCARE"] = "88101";
103
+ MSIC_8X$1["OTHER_ELDERLY_CARE"] = "88109";
104
+ MSIC_8X$1["COUNSELLING"] = "88901";
105
+ MSIC_8X$1["CHILD_DAYCARE"] = "88902";
106
+ MSIC_8X$1["OTHER_SOCIAL_WORK"] = "88909";
107
+ return MSIC_8X$1;
108
+ }({});
185
109
 
186
110
  //#endregion
187
- exports.validateContactNumber = validateContactNumber;
188
- exports.validateInvoice = validateInvoice;
189
- exports.validateLineItemTax = validateLineItemTax;
190
- exports.validateMonetaryAmount = validateMonetaryAmount;
191
- exports.validateTIN = validateTIN;
192
- exports.validateTaxCalculations = validateTaxCalculations;
111
+ exports.MSIC_8X = MSIC_8X;
193
112
  //# sourceMappingURL=index39.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index39.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,KAAK,CACtD,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,SAAS;EACT,UAAU;CACX,EAAC;AAIJ,KAAI,IAAI,SAAS,GACf,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,SAAS;EACT,UAAU;CACX,EAAC;AAGJ,QAAO;AACR;;;;AAKD,MAAa,wBAAwB,CACnCC,kBACsB;CACtB,MAAMD,SAA4B,CAAE;AAEpC,MAAK,iBAAiB,kBAAkB,KACtC,QAAO;CAIT,MAAM,YAAY;AAClB,MAAK,UAAU,KAAK,cAAc,CAChC,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,SAAS;EACT,UAAU;CACX,EAAC;AAGJ,KAAI,cAAc,SAAS,EACzB,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,SAAS;EACT,UAAU;CACX,EAAC;AAGJ,QAAO;AACR;;;;AAKD,MAAa,yBAAyB,CACpCE,QACAC,WACA,YAAY,IACZ,cAAc,MACQ;CACtB,MAAMH,SAA4B,CAAE;AAEpC,KAAI,SAAS,EACX,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,UAAU,EAAE,UAAU;EACtB,UAAU;CACX,EAAC;CAIJ,MAAM,YAAY,OAAO,UAAU;CACnC,MAAM,CAAC,aAAa,YAAY,GAAG,UAAU,MAAM,IAAI;AAEvD,KAAI,eAAe,YAAY,SAAS,YAAY,YAClD,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,UAAU,EAAE,UAAU,mBAAmB,UAAU;EACnD,UAAU;CACX,EAAC;AAGJ,KAAI,eAAe,YAAY,SAAS,YACtC,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,UAAU,EAAE,UAAU,mBAAmB,YAAY;EACrD,UAAU;CACX,EAAC;AAGJ,QAAO;AACR;;;;AAKD,MAAa,sBAAsB,CACjCI,MACAC,UACsB;CACtB,MAAML,SAA4B,CAAE;CACpC,MAAM,YAAY;CAGlB,MAAM,eACJ,KAAK,+BAAkC,KAAK;CAC9C,MAAM,oBAAoB,KAAK;AAE/B,MAAK,iBAAiB,mBAAmB;AACvC,SAAO,KAAK;GACV,QAAQ,WAAW,MAAM;GACzB,MAAM;GACN,UAAU,YAAY,QAAQ,EAAE;GAChC,UAAU;EACX,EAAC;AACF,SAAO;CACR;AAED,KAAI,gBAAgB,kBAClB,QAAO,KAAK;EACV,QAAQ,WAAW,MAAM;EACzB,MAAM;EACN,UAAU,YAAY,QAAQ,EAAE;EAChC,UAAU;CACX,EAAC;AAIJ,KAAI,cAAc;AAChB,MAAI,KAAK,+BACP,QAAO,KAAK;GACV,QAAQ,WAAW,MAAM;GACzB,MAAM;GACN,UAAU,YAAY,QAAQ,EAAE;GAChC,UAAU;EACX,EAAC;EAGJ,MAAM,oBAAoB,KAAK,mBAAoB,KAAK;AACxD,MAAI,KAAK,IAAI,KAAK,YAAY,kBAAkB,GAAG,UACjD,QAAO,KAAK;GACV,QAAQ,WAAW,MAAM;GACzB,MAAM;GACN,UAAU,YAAY,QAAQ,EAAE,eAAe,KAAK,UAAU,0CAA0C,KAAK,iBAAiB,KAAK,KAAK,gBAAgB,KAAK,kBAAkB;GAC/K,UAAU;EACX,EAAC;CAEL;AAGD,KAAI,sBAAsB,cAAc;EACtC,MAAM,oBACH,KAAK,4BAA4B,KAAK,UAAY;AACrD,MAAI,KAAK,IAAI,KAAK,YAAY,kBAAkB,GAAG,UACjD,QAAO,KAAK;GACV,QAAQ,WAAW,MAAM;GACzB,MAAM;GACN,UAAU,YAAY,QAAQ,EAAE,eAAe,KAAK,UAAU,0CAA0C,KAAK,0BAA0B,KAAK,KAAK,QAAQ,MAAM,kBAAkB;GACjL,UAAU;EACX,EAAC;CAEL;AAED,QAAO;AACR;;;;AAKD,MAAa,0BAA0B,CACrCM,YACsB;CACtB,MAAMN,SAA4B,CAAE;AAGpC,SAAQ,iBAAiB,QAAQ,CAAC,MAAM,UAAU;AAChD,SAAO,KAAK,GAAG,oBAAoB,MAAM,MAAM,CAAC;CACjD,EAAC;CAGF,MAAM,uBAAuB,QAAQ,iBAAiB,OACpD,CAAC,KAAK,SAAS,MAAM,KAAK,2BAC1B,EACD;CACD,MAAM,oBAAoB,QAAQ,iBAAiB,OACjD,CAAC,KAAK,SAAS,MAAM,KAAK,WAC1B,EACD;CAGD,MAAM,YAAY;AAElB,KACE,KAAK,IACH,QAAQ,mBAAmB,qBAAqB,qBACjD,GAAG,UAEJ,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,UAAU,wBAAwB,QAAQ,mBAAmB,mBAAmB,qCAAqC,qBAAqB;EAC1I,UAAU;CACX,EAAC;AAGJ,KAAI,KAAK,IAAI,QAAQ,SAAS,YAAY,kBAAkB,GAAG,UAC7D,QAAO,KAAK;EACV,OAAO;EACP,MAAM;EACN,UAAU,cAAc,QAAQ,SAAS,UAAU,0CAA0C,kBAAkB;EAC/G,UAAU;CACX,EAAC;AAGJ,QAAO;AACR;;;;AAKD,MAAa,kBAAkB,CAACM,YAA2C;CACzE,MAAMC,YAA+B,CAAE;AAGvC,WAAU,KACR,GAAG,YAAY,QAAQ,SAAS,KAAK,QAAQ,SAAS,iBAAiB,CACxE;AACD,WAAU,KACR,GAAG,YAAY,QAAQ,MAAM,KAAK,QAAQ,MAAM,iBAAiB,CAClE;AAED,WAAU,KAAK,GAAG,sBAAsB,QAAQ,SAAS,cAAc,CAAC;AACxE,WAAU,KAAK,GAAG,sBAAsB,QAAQ,MAAM,cAAc,CAAC;AAGrE,WAAU,KACR,GAAG,uBACD,QAAQ,mBAAmB,oBAC3B,qBACD,CACF;AACD,WAAU,KACR,GAAG,uBACD,QAAQ,mBAAmB,eAC3B,gBACD,CACF;AACD,WAAU,KACR,GAAG,uBAAuB,QAAQ,SAAS,WAAW,YAAY,CACnE;AAGD,SAAQ,iBAAiB,QAAQ,CAAC,MAAM,UAAU;AAChD,YAAU,KACR,GAAG,uBAAuB,KAAK,YAAY,WAAW,MAAM,aAAa,CAC1E;AACD,YAAU,KACR,GAAG,uBAAuB,KAAK,YAAY,WAAW,MAAM,aAAa,CAC1E;AACD,YAAU,KACR,GAAG,uBACD,KAAK,4BACJ,WAAW,MAAM,6BACnB,CACF;CACF,EAAC;AAGF,WAAU,KAAK,GAAG,wBAAwB,QAAQ,CAAC;CAGnD,MAAM,SAAS,UAAU,OAAO,OAAK,EAAE,aAAa,QAAQ;CAC5D,MAAM,WAAW,UAAU,OACzB,OAAK,EAAE,aAAa,UACrB;AAED,QAAO;EACL,SAAS,OAAO,WAAW;EAC3B;EACA;CACD;AACF"}
1
+ {"version":3,"file":"index39.cjs","names":[],"sources":["../src/types/msic/8X.d.ts"],"sourcesContent":["export type MSIC_8X_CODE =\n | '80100'\n | '80200'\n | '80300'\n | '81100'\n | '81210'\n | '81291'\n | '81292'\n | '81293'\n | '81294'\n | '81295'\n | '81296'\n | '81297'\n | '81299'\n | '81300'\n | '82110'\n | '82191'\n | '82192'\n | '82193'\n | '82194'\n | '82195'\n | '82196'\n | '82199'\n | '82200'\n | '82301'\n | '82302'\n | '82910'\n | '82920'\n | '82990'\n | '84111'\n | '84112'\n | '84121'\n | '84122'\n | '84123'\n | '84124'\n | '84125'\n | '84126'\n | '84129'\n | '84131'\n | '84132'\n | '84133'\n | '84134'\n | '84135'\n | '84136'\n | '84137'\n | '84138'\n | '84139'\n | '84210'\n | '84220'\n | '84231'\n | '84232'\n | '84233'\n | '84234'\n | '84235'\n | '84236'\n | '84239'\n | '84300'\n | '85101'\n | '85102'\n | '85103'\n | '85104'\n | '85211'\n | '85212'\n | '85221'\n | '85222'\n | '85301'\n | '85302'\n | '85411'\n | '85412'\n | '85419'\n | '85421'\n | '85429'\n | '85491'\n | '85492'\n | '85493'\n | '85494'\n | '85499'\n | '85500'\n | '86101'\n | '86102'\n | '86201'\n | '86202'\n | '86203'\n | '86901'\n | '86902'\n | '86903'\n | '86904'\n | '86905'\n | '86906'\n | '86909'\n | '87101'\n | '87102'\n | '87103'\n | '87201'\n | '87209'\n | '87300'\n | '87901'\n | '87902'\n | '87909'\n | '88101'\n | '88109'\n | '88901'\n | '88902'\n | '88909'\n\nexport enum MSIC_8X {\n PRIVATE_SECURITY = '80100',\n SECURITY_SYSTEMS = '80200',\n INVESTIGATION = '80300',\n FACILITIES_SUPPORT = '81100',\n GENERAL_CLEANING = '81210',\n BUILDING_CLEANING = '81291',\n POOL_CLEANING = '81292',\n INDUSTRIAL_MACHINERY_CLEANING = '81293',\n TRANSPORT_CLEANING = '81294',\n PEST_CONTROL = '81295',\n DISINFECTING = '81296',\n TANKER_CLEANING = '81297',\n OTHER_CLEANING = '81299',\n LANDSCAPE_MAINTENANCE = '81300',\n OFFICE_ADMIN = '82110',\n DOCUMENT_PREPARATION = '82191',\n WORD_PROCESSING = '82192',\n SECRETARIAL_SUPPORT = '82193',\n TRANSCRIPTION = '82194',\n MAILBOX_RENTAL = '82195',\n PHOTOCOPYING = '82196',\n OTHER_OFFICE_SUPPORT = '82199',\n CALL_CENTRES = '82200',\n EVENT_MANAGEMENT = '82301',\n MICE = '82302',\n COLLECTION_AGENCIES = '82910',\n PACKAGING = '82920',\n OTHER_BUSINESS_SUPPORT = '82990',\n PUBLIC_ADMIN = '84111',\n GOVERNMENT_SUPPORT = '84112',\n EDUCATION_ADMIN = '84121',\n HEALTHCARE_ADMIN = '84122',\n HOUSING_ADMIN = '84123',\n RECREATION_ADMIN = '84124',\n RELIGIOUS_ADMIN = '84125',\n WELFARE_ADMIN = '84126',\n OTHER_SOCIAL_ADMIN = '84129',\n TRADE_AFFAIRS = '84131',\n AGRICULTURE_AFFAIRS = '84132',\n PRIMARY_INDUSTRIES = '84133',\n PUBLIC_WORKS = '84134',\n TRANSPORT_AFFAIRS = '84135',\n ENERGY_TELECOM = '84136',\n TOURISM_AFFAIRS = '84137',\n HR_AFFAIRS = '84138',\n OTHER_BUSINESS_REGULATION = '84139',\n FOREIGN_AFFAIRS = '84210',\n DEFENSE = '84220',\n POLICE = '84231',\n PRISON = '84232',\n IMMIGRATION = '84233',\n NATIONAL_REGISTRATION = '84234',\n LEGAL_SERVICE = '84235',\n FIREFIGHTING = '84236',\n OTHER_PUBLIC_ORDER = '84239',\n SOCIAL_SECURITY = '84300',\n PUBLIC_PRESCHOOL = '85101',\n PRIVATE_PRESCHOOL = '85102',\n PUBLIC_PRIMARY = '85103',\n PRIVATE_PRIMARY = '85104',\n PUBLIC_SECONDARY = '85211',\n PRIVATE_SECONDARY = '85212',\n PUBLIC_VOCATIONAL = '85221',\n PRIVATE_VOCATIONAL = '85222',\n PUBLIC_UNIVERSITY = '85301',\n PRIVATE_UNIVERSITY = '85302',\n SPORTS_INSTRUCTION = '85411',\n MARTIAL_ARTS = '85412',\n OTHER_SPORTS_EDUCATION = '85419',\n MUSIC_DANCING = '85421',\n OTHER_CULTURAL_EDUCATION = '85429',\n TUITION = '85491',\n DRIVING_SCHOOL = '85492',\n RELIGIOUS_INSTRUCTION = '85493',\n COMPUTER_TRAINING = '85494',\n OTHER_EDUCATION = '85499',\n EDUCATION_SUPPORT = '85500',\n HOSPITAL = '86101',\n MATERNITY_HOME = '86102',\n GENERAL_MEDICAL = '86201',\n SPECIALIZED_MEDICAL = '86202',\n DENTAL = '86203',\n DIALYSIS = '86901',\n MEDICAL_LAB = '86902',\n PHYSIOTHERAPY = '86903',\n ACUPUNCTURE = '86904',\n ALTERNATIVE_MEDICINE = '86905',\n AMBULANCE = '86906',\n OTHER_HEALTH = '86909',\n ELDERLY_NURSING = '87101',\n NURSING_HOMES = '87102',\n HOSPICE = '87103',\n DRUG_REHAB = '87201',\n OTHER_MENTAL_CARE = '87209',\n ELDERLY_CARE = '87300',\n ORPHANAGES = '87901',\n WELFARE_HOMES = '87902',\n OTHER_RESIDENTIAL_CARE = '87909',\n ELDERLY_DAYCARE = '88101',\n OTHER_ELDERLY_CARE = '88109',\n COUNSELLING = '88901',\n CHILD_DAYCARE = '88902',\n OTHER_SOCIAL_WORK = '88909',\n}\n"],"mappings":";;AAyGA,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;;AACD"}
package/dist/index40.cjs CHANGED
@@ -1,18 +1,100 @@
1
1
 
2
- //#region src/types/unit/1X.d.ts
3
- /**
4
- * Enum representing unit type codes starting with '1'.
5
- */
6
- let UnitTypeCodeEnum_1X = /* @__PURE__ */ function(UnitTypeCodeEnum_1X$1) {
7
- UnitTypeCodeEnum_1X$1["Group"] = "10";
8
- UnitTypeCodeEnum_1X$1["Outfit"] = "11";
9
- UnitTypeCodeEnum_1X$1["Ration"] = "13";
10
- UnitTypeCodeEnum_1X$1["Shot"] = "14";
11
- UnitTypeCodeEnum_1X$1["StickMilitary"] = "15";
12
- UnitTypeCodeEnum_1X$1["FixedRate"] = "1I";
13
- return UnitTypeCodeEnum_1X$1;
2
+ //#region src/types/msic/9X.d.ts
3
+ let MSIC_9X = /* @__PURE__ */ function(MSIC_9X$1) {
4
+ MSIC_9X$1["THEATRICAL_PRODUCTION"] = "90001";
5
+ MSIC_9X$1["CONCERT_HALLS"] = "90002";
6
+ MSIC_9X$1["VISUAL_ARTISTS"] = "90003";
7
+ MSIC_9X$1["WRITERS"] = "90004";
8
+ MSIC_9X$1["JOURNALISTS"] = "90005";
9
+ MSIC_9X$1["ART_RESTORATION"] = "90006";
10
+ MSIC_9X$1["ARTS_EVENT_PRODUCTION"] = "90007";
11
+ MSIC_9X$1["OTHER_CREATIVE_ARTS"] = "90009";
12
+ MSIC_9X$1["LIBRARIES"] = "91011";
13
+ MSIC_9X$1["PHOTO_LIBRARIES"] = "91012";
14
+ MSIC_9X$1["MUSEUMS"] = "91021";
15
+ MSIC_9X$1["HISTORICAL_SITES"] = "91022";
16
+ MSIC_9X$1["BOTANICAL_ZOOLOGICAL"] = "91031";
17
+ MSIC_9X$1["NATURE_RESERVES"] = "91032";
18
+ MSIC_9X$1["GAMBLING"] = "92000";
19
+ MSIC_9X$1["SPORTS_FACILITIES"] = "93111";
20
+ MSIC_9X$1["AUTO_RACING"] = "93112";
21
+ MSIC_9X$1["EQUESTRIAN"] = "93113";
22
+ MSIC_9X$1["SWIMMING_FACILITIES"] = "93114";
23
+ MSIC_9X$1["ATHLETICS_FACILITIES"] = "93115";
24
+ MSIC_9X$1["GOLF_COURSES"] = "93116";
25
+ MSIC_9X$1["BOWLING_CENTRES"] = "93117";
26
+ MSIC_9X$1["FITNESS_CENTRES"] = "93118";
27
+ MSIC_9X$1["SPORTS_EVENTS"] = "93119";
28
+ MSIC_9X$1["SPORTS_CLUBS"] = "93120";
29
+ MSIC_9X$1["SPORTS_PROMOTERS"] = "93191";
30
+ MSIC_9X$1["SPORTS_REGULATORS"] = "93192";
31
+ MSIC_9X$1["SPORTS_PROMOTION"] = "93193";
32
+ MSIC_9X$1["OTHER_SPORTS"] = "93199";
33
+ MSIC_9X$1["AMUSEMENT_PARKS"] = "93210";
34
+ MSIC_9X$1["RECREATION_PARKS"] = "93291";
35
+ MSIC_9X$1["RECREATIONAL_TRANSPORT"] = "93292";
36
+ MSIC_9X$1["LEISURE_EQUIPMENT_RENTAL"] = "93293";
37
+ MSIC_9X$1["RECREATIONAL_FAIRS"] = "93294";
38
+ MSIC_9X$1["DISCOTHEQUES"] = "93295";
39
+ MSIC_9X$1["EVENT_PRODUCTION"] = "93296";
40
+ MSIC_9X$1["CYBER_CAFE"] = "93297";
41
+ MSIC_9X$1["OTHER_RECREATION"] = "93299";
42
+ MSIC_9X$1["BUSINESS_ORGANIZATIONS"] = "94110";
43
+ MSIC_9X$1["PROFESSIONAL_ORGANIZATIONS"] = "94120";
44
+ MSIC_9X$1["TRADE_UNIONS"] = "94200";
45
+ MSIC_9X$1["RELIGIOUS_ORGANIZATIONS"] = "94910";
46
+ MSIC_9X$1["POLITICAL_ORGANIZATIONS"] = "94920";
47
+ MSIC_9X$1["OTHER_ORGANIZATIONS"] = "94990";
48
+ MSIC_9X$1["ELECTRONIC_REPAIR"] = "95111";
49
+ MSIC_9X$1["COMPUTER_REPAIR"] = "95112";
50
+ MSIC_9X$1["PDA_REPAIR"] = "95113";
51
+ MSIC_9X$1["CORDLESS_PHONE_REPAIR"] = "95121";
52
+ MSIC_9X$1["MOBILE_PHONE_REPAIR"] = "95122";
53
+ MSIC_9X$1["MODEM_REPAIR"] = "95123";
54
+ MSIC_9X$1["FAX_REPAIR"] = "95124";
55
+ MSIC_9X$1["COMMUNICATIONS_REPAIR"] = "95125";
56
+ MSIC_9X$1["RADIO_REPAIR"] = "95126";
57
+ MSIC_9X$1["CAMERA_REPAIR"] = "95127";
58
+ MSIC_9X$1["TV_REPAIR"] = "95211";
59
+ MSIC_9X$1["VIDEO_PLAYER_REPAIR"] = "95212";
60
+ MSIC_9X$1["CD_PLAYER_REPAIR"] = "95213";
61
+ MSIC_9X$1["VIDEO_CAMERA_REPAIR"] = "95214";
62
+ MSIC_9X$1["APPLIANCE_REPAIR"] = "95221";
63
+ MSIC_9X$1["GARDEN_EQUIPMENT_REPAIR"] = "95222";
64
+ MSIC_9X$1["FOOTWEAR_REPAIR"] = "95230";
65
+ MSIC_9X$1["FURNITURE_REPAIR"] = "95240";
66
+ MSIC_9X$1["BICYCLE_REPAIR"] = "95291";
67
+ MSIC_9X$1["CLOTHING_REPAIR"] = "95292";
68
+ MSIC_9X$1["JEWELRY_REPAIR"] = "95293";
69
+ MSIC_9X$1["WATCH_REPAIR"] = "95294";
70
+ MSIC_9X$1["SPORTS_EQUIPMENT_REPAIR"] = "95295";
71
+ MSIC_9X$1["MUSICAL_INSTRUMENT_REPAIR"] = "95296";
72
+ MSIC_9X$1["OTHER_REPAIRS"] = "95299";
73
+ MSIC_9X$1["LAUNDRY"] = "96011";
74
+ MSIC_9X$1["CARPET_CLEANING"] = "96012";
75
+ MSIC_9X$1["UNIFORM_RENTAL"] = "96013";
76
+ MSIC_9X$1["DIAPER_SERVICE"] = "96014";
77
+ MSIC_9X$1["BEAUTY_SERVICES"] = "96020";
78
+ MSIC_9X$1["MORTUARY_SERVICES"] = "96031";
79
+ MSIC_9X$1["FUNERAL_SERVICES"] = "96032";
80
+ MSIC_9X$1["FUNERAL_PARLOUR_RENTAL"] = "96033";
81
+ MSIC_9X$1["GRAVE_SALES"] = "96034";
82
+ MSIC_9X$1["GRAVE_MAINTENANCE"] = "96035";
83
+ MSIC_9X$1["WELLNESS_SERVICES"] = "96091";
84
+ MSIC_9X$1["ASTROLOGY_SERVICES"] = "96092";
85
+ MSIC_9X$1["DATING_SERVICES"] = "96093";
86
+ MSIC_9X$1["PET_CARE"] = "96094";
87
+ MSIC_9X$1["GENEALOGY"] = "96095";
88
+ MSIC_9X$1["PERSONAL_SERVICES"] = "96096";
89
+ MSIC_9X$1["VENDING_MACHINES"] = "96097";
90
+ MSIC_9X$1["OTHER_SERVICES"] = "96099";
91
+ MSIC_9X$1["DOMESTIC_PERSONNEL"] = "97000";
92
+ MSIC_9X$1["HOUSEHOLD_GOODS_PRODUCTION"] = "98100";
93
+ MSIC_9X$1["HOUSEHOLD_SERVICES"] = "98200";
94
+ MSIC_9X$1["EXTRATERRITORIAL_ORGANIZATIONS"] = "99000";
95
+ return MSIC_9X$1;
14
96
  }({});
15
97
 
16
98
  //#endregion
17
- exports.UnitTypeCodeEnum_1X = UnitTypeCodeEnum_1X;
99
+ exports.MSIC_9X = MSIC_9X;
18
100
  //# sourceMappingURL=index40.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index40.cjs","names":[],"sources":["../src/types/unit/1X.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with '1'.\n */\nexport type UnitTypeCode_1X = '10' | '11' | '13' | '14' | '15' | '1I'\n\n/**\n * Enum representing unit type codes starting with '1'.\n */\nexport enum UnitTypeCodeEnum_1X {\n Group = '10',\n Outfit = '11',\n Ration = '13',\n Shot = '14',\n StickMilitary = '15',\n FixedRate = '1I',\n}\n"],"mappings":";;;;;AAQA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;;AACD"}
1
+ {"version":3,"file":"index40.cjs","names":[],"sources":["../src/types/msic/9X.d.ts"],"sourcesContent":["export type MSIC_9X_CODE =\n | '90001'\n | '90002'\n | '90003'\n | '90004'\n | '90005'\n | '90006'\n | '90007'\n | '90009'\n | '91011'\n | '91012'\n | '91021'\n | '91022'\n | '91031'\n | '91032'\n | '92000'\n | '93111'\n | '93112'\n | '93113'\n | '93114'\n | '93115'\n | '93116'\n | '93117'\n | '93118'\n | '93119'\n | '93120'\n | '93191'\n | '93192'\n | '93193'\n | '93199'\n | '93210'\n | '93291'\n | '93292'\n | '93293'\n | '93294'\n | '93295'\n | '93296'\n | '93297'\n | '93299'\n | '94110'\n | '94120'\n | '94200'\n | '94910'\n | '94920'\n | '94990'\n | '95111'\n | '95112'\n | '95113'\n | '95121'\n | '95122'\n | '95123'\n | '95124'\n | '95125'\n | '95126'\n | '95127'\n | '95211'\n | '95212'\n | '95213'\n | '95214'\n | '95221'\n | '95222'\n | '95230'\n | '95240'\n | '95291'\n | '95292'\n | '95293'\n | '95294'\n | '95295'\n | '95296'\n | '95299'\n | '96011'\n | '96012'\n | '96013'\n | '96014'\n | '96020'\n | '96031'\n | '96032'\n | '96033'\n | '96034'\n | '96035'\n | '96091'\n | '96092'\n | '96093'\n | '96094'\n | '96095'\n | '96096'\n | '96097'\n | '96099'\n | '97000'\n | '98100'\n | '98200'\n | '99000'\n\nexport enum MSIC_9X {\n THEATRICAL_PRODUCTION = '90001',\n CONCERT_HALLS = '90002',\n VISUAL_ARTISTS = '90003',\n WRITERS = '90004',\n JOURNALISTS = '90005',\n ART_RESTORATION = '90006',\n ARTS_EVENT_PRODUCTION = '90007',\n OTHER_CREATIVE_ARTS = '90009',\n LIBRARIES = '91011',\n PHOTO_LIBRARIES = '91012',\n MUSEUMS = '91021',\n HISTORICAL_SITES = '91022',\n BOTANICAL_ZOOLOGICAL = '91031',\n NATURE_RESERVES = '91032',\n GAMBLING = '92000',\n SPORTS_FACILITIES = '93111',\n AUTO_RACING = '93112',\n EQUESTRIAN = '93113',\n SWIMMING_FACILITIES = '93114',\n ATHLETICS_FACILITIES = '93115',\n GOLF_COURSES = '93116',\n BOWLING_CENTRES = '93117',\n FITNESS_CENTRES = '93118',\n SPORTS_EVENTS = '93119',\n SPORTS_CLUBS = '93120',\n SPORTS_PROMOTERS = '93191',\n SPORTS_REGULATORS = '93192',\n SPORTS_PROMOTION = '93193',\n OTHER_SPORTS = '93199',\n AMUSEMENT_PARKS = '93210',\n RECREATION_PARKS = '93291',\n RECREATIONAL_TRANSPORT = '93292',\n LEISURE_EQUIPMENT_RENTAL = '93293',\n RECREATIONAL_FAIRS = '93294',\n DISCOTHEQUES = '93295',\n EVENT_PRODUCTION = '93296',\n CYBER_CAFE = '93297',\n OTHER_RECREATION = '93299',\n BUSINESS_ORGANIZATIONS = '94110',\n PROFESSIONAL_ORGANIZATIONS = '94120',\n TRADE_UNIONS = '94200',\n RELIGIOUS_ORGANIZATIONS = '94910',\n POLITICAL_ORGANIZATIONS = '94920',\n OTHER_ORGANIZATIONS = '94990',\n ELECTRONIC_REPAIR = '95111',\n COMPUTER_REPAIR = '95112',\n PDA_REPAIR = '95113',\n CORDLESS_PHONE_REPAIR = '95121',\n MOBILE_PHONE_REPAIR = '95122',\n MODEM_REPAIR = '95123',\n FAX_REPAIR = '95124',\n COMMUNICATIONS_REPAIR = '95125',\n RADIO_REPAIR = '95126',\n CAMERA_REPAIR = '95127',\n TV_REPAIR = '95211',\n VIDEO_PLAYER_REPAIR = '95212',\n CD_PLAYER_REPAIR = '95213',\n VIDEO_CAMERA_REPAIR = '95214',\n APPLIANCE_REPAIR = '95221',\n GARDEN_EQUIPMENT_REPAIR = '95222',\n FOOTWEAR_REPAIR = '95230',\n FURNITURE_REPAIR = '95240',\n BICYCLE_REPAIR = '95291',\n CLOTHING_REPAIR = '95292',\n JEWELRY_REPAIR = '95293',\n WATCH_REPAIR = '95294',\n SPORTS_EQUIPMENT_REPAIR = '95295',\n MUSICAL_INSTRUMENT_REPAIR = '95296',\n OTHER_REPAIRS = '95299',\n LAUNDRY = '96011',\n CARPET_CLEANING = '96012',\n UNIFORM_RENTAL = '96013',\n DIAPER_SERVICE = '96014',\n BEAUTY_SERVICES = '96020',\n MORTUARY_SERVICES = '96031',\n FUNERAL_SERVICES = '96032',\n FUNERAL_PARLOUR_RENTAL = '96033',\n GRAVE_SALES = '96034',\n GRAVE_MAINTENANCE = '96035',\n WELLNESS_SERVICES = '96091',\n ASTROLOGY_SERVICES = '96092',\n DATING_SERVICES = '96093',\n PET_CARE = '96094',\n GENEALOGY = '96095',\n PERSONAL_SERVICES = '96096',\n VENDING_MACHINES = '96097',\n OTHER_SERVICES = '96099',\n DOMESTIC_PERSONNEL = '97000',\n HOUSEHOLD_GOODS_PRODUCTION = '98100',\n HOUSEHOLD_SERVICES = '98200',\n EXTRATERRITORIAL_ORGANIZATIONS = '99000',\n}\n"],"mappings":";;AA6FA,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;;AACD"}
package/dist/index41.cjs CHANGED
@@ -1,38 +1,18 @@
1
1
 
2
- //#region src/types/unit/2X.d.ts
2
+ //#region src/types/unit/1X.d.ts
3
3
  /**
4
- * Enum representing unit type codes starting with '2'.
4
+ * Enum representing unit type codes starting with '1'.
5
5
  */
6
- let UnitTypeCodeEnum_2X = /* @__PURE__ */ function(UnitTypeCodeEnum_2X$1) {
7
- UnitTypeCodeEnum_2X$1["TwentyFootContainer"] = "20";
8
- UnitTypeCodeEnum_2X$1["FortyFootContainer"] = "21";
9
- UnitTypeCodeEnum_2X$1["DecilitrePerGram"] = "22";
10
- UnitTypeCodeEnum_2X$1["GramPerCubicCentimetre"] = "23";
11
- UnitTypeCodeEnum_2X$1["TheoreticalPound"] = "24";
12
- UnitTypeCodeEnum_2X$1["GramPerSquareCentimetre"] = "25";
13
- UnitTypeCodeEnum_2X$1["TheoreticalTon"] = "27";
14
- UnitTypeCodeEnum_2X$1["KilogramPerSquareMetre"] = "28";
15
- UnitTypeCodeEnum_2X$1["RadianPerSecond"] = "2A";
16
- UnitTypeCodeEnum_2X$1["RadianPerSecondSquared"] = "2B";
17
- UnitTypeCodeEnum_2X$1["Roentgen"] = "2C";
18
- UnitTypeCodeEnum_2X$1["VoltAC"] = "2G";
19
- UnitTypeCodeEnum_2X$1["VoltDC"] = "2H";
20
- UnitTypeCodeEnum_2X$1["BritishThermalUnitInternationalTablePerHour"] = "2I";
21
- UnitTypeCodeEnum_2X$1["CubicCentimetrePerSecond"] = "2J";
22
- UnitTypeCodeEnum_2X$1["CubicFootPerHour"] = "2K";
23
- UnitTypeCodeEnum_2X$1["CubicFootPerMinute"] = "2L";
24
- UnitTypeCodeEnum_2X$1["CentimetrePerSecond"] = "2M";
25
- UnitTypeCodeEnum_2X$1["Decibel"] = "2N";
26
- UnitTypeCodeEnum_2X$1["Kilobyte"] = "2P";
27
- UnitTypeCodeEnum_2X$1["Kilobecquerel"] = "2Q";
28
- UnitTypeCodeEnum_2X$1["Kilocurie"] = "2R";
29
- UnitTypeCodeEnum_2X$1["Megagram"] = "2U";
30
- UnitTypeCodeEnum_2X$1["MetrePerMinute"] = "2X";
31
- UnitTypeCodeEnum_2X$1["Milliroentgen"] = "2Y";
32
- UnitTypeCodeEnum_2X$1["Millivolt"] = "2Z";
33
- return UnitTypeCodeEnum_2X$1;
6
+ let UnitTypeCodeEnum_1X = /* @__PURE__ */ function(UnitTypeCodeEnum_1X$1) {
7
+ UnitTypeCodeEnum_1X$1["Group"] = "10";
8
+ UnitTypeCodeEnum_1X$1["Outfit"] = "11";
9
+ UnitTypeCodeEnum_1X$1["Ration"] = "13";
10
+ UnitTypeCodeEnum_1X$1["Shot"] = "14";
11
+ UnitTypeCodeEnum_1X$1["StickMilitary"] = "15";
12
+ UnitTypeCodeEnum_1X$1["FixedRate"] = "1I";
13
+ return UnitTypeCodeEnum_1X$1;
34
14
  }({});
35
15
 
36
16
  //#endregion
37
- exports.UnitTypeCodeEnum_2X = UnitTypeCodeEnum_2X;
17
+ exports.UnitTypeCodeEnum_1X = UnitTypeCodeEnum_1X;
38
18
  //# sourceMappingURL=index41.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index41.cjs","names":[],"sources":["../src/types/unit/2X.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with '2'.\n */\nexport type UnitTypeCode_2X =\n | '20'\n | '21'\n | '22'\n | '23'\n | '24'\n | '25'\n | '27'\n | '28'\n | '2A'\n | '2B'\n | '2C'\n | '2G'\n | '2H'\n | '2I'\n | '2J'\n | '2K'\n | '2L'\n | '2M'\n | '2N'\n | '2P'\n | '2Q'\n | '2R'\n | '2U'\n | '2X'\n | '2Y'\n | '2Z'\n\n/**\n * Enum representing unit type codes starting with '2'.\n */\nexport enum UnitTypeCodeEnum_2X {\n TwentyFootContainer = '20',\n FortyFootContainer = '21',\n DecilitrePerGram = '22',\n GramPerCubicCentimetre = '23',\n TheoreticalPound = '24',\n GramPerSquareCentimetre = '25',\n TheoreticalTon = '27',\n KilogramPerSquareMetre = '28',\n RadianPerSecond = '2A',\n RadianPerSecondSquared = '2B',\n Roentgen = '2C',\n VoltAC = '2G',\n VoltDC = '2H',\n BritishThermalUnitInternationalTablePerHour = '2I',\n CubicCentimetrePerSecond = '2J',\n CubicFootPerHour = '2K',\n CubicFootPerMinute = '2L',\n CentimetrePerSecond = '2M',\n Decibel = '2N',\n Kilobyte = '2P',\n Kilobecquerel = '2Q',\n Kilocurie = '2R',\n Megagram = '2U',\n MetrePerMinute = '2X',\n Milliroentgen = '2Y',\n Millivolt = '2Z',\n}\n"],"mappings":";;;;;AAkCA,IAAY,sEAAL;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;;AACD"}
1
+ {"version":3,"file":"index41.cjs","names":[],"sources":["../src/types/unit/1X.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with '1'.\n */\nexport type UnitTypeCode_1X = '10' | '11' | '13' | '14' | '15' | '1I'\n\n/**\n * Enum representing unit type codes starting with '1'.\n */\nexport enum UnitTypeCodeEnum_1X {\n Group = '10',\n Outfit = '11',\n Ration = '13',\n Shot = '14',\n StickMilitary = '15',\n FixedRate = '1I',\n}\n"],"mappings":";;;;;AAQA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;;AACD"}
package/dist/index42.cjs CHANGED
@@ -1,19 +1,38 @@
1
1
 
2
- //#region src/types/unit/3X.d.ts
2
+ //#region src/types/unit/2X.d.ts
3
3
  /**
4
- * Enum representing unit type codes starting with '3'.
4
+ * Enum representing unit type codes starting with '2'.
5
5
  */
6
- let UnitTypeCodeEnum_3X = /* @__PURE__ */ function(UnitTypeCodeEnum_3X$1) {
7
- UnitTypeCodeEnum_3X$1["KilopascalSquareMetrePerGram"] = "33";
8
- UnitTypeCodeEnum_3X$1["KilopascalPerMillimetre"] = "34";
9
- UnitTypeCodeEnum_3X$1["MillilitrePerSquareCentimetreSecond"] = "35";
10
- UnitTypeCodeEnum_3X$1["OuncePerSquareFoot"] = "37";
11
- UnitTypeCodeEnum_3X$1["OuncePerSquareFootPer0_01inch"] = "38";
12
- UnitTypeCodeEnum_3X$1["Megajoule"] = "3B";
13
- UnitTypeCodeEnum_3X$1["Manmonth"] = "3C";
14
- return UnitTypeCodeEnum_3X$1;
6
+ let UnitTypeCodeEnum_2X = /* @__PURE__ */ function(UnitTypeCodeEnum_2X$1) {
7
+ UnitTypeCodeEnum_2X$1["TwentyFootContainer"] = "20";
8
+ UnitTypeCodeEnum_2X$1["FortyFootContainer"] = "21";
9
+ UnitTypeCodeEnum_2X$1["DecilitrePerGram"] = "22";
10
+ UnitTypeCodeEnum_2X$1["GramPerCubicCentimetre"] = "23";
11
+ UnitTypeCodeEnum_2X$1["TheoreticalPound"] = "24";
12
+ UnitTypeCodeEnum_2X$1["GramPerSquareCentimetre"] = "25";
13
+ UnitTypeCodeEnum_2X$1["TheoreticalTon"] = "27";
14
+ UnitTypeCodeEnum_2X$1["KilogramPerSquareMetre"] = "28";
15
+ UnitTypeCodeEnum_2X$1["RadianPerSecond"] = "2A";
16
+ UnitTypeCodeEnum_2X$1["RadianPerSecondSquared"] = "2B";
17
+ UnitTypeCodeEnum_2X$1["Roentgen"] = "2C";
18
+ UnitTypeCodeEnum_2X$1["VoltAC"] = "2G";
19
+ UnitTypeCodeEnum_2X$1["VoltDC"] = "2H";
20
+ UnitTypeCodeEnum_2X$1["BritishThermalUnitInternationalTablePerHour"] = "2I";
21
+ UnitTypeCodeEnum_2X$1["CubicCentimetrePerSecond"] = "2J";
22
+ UnitTypeCodeEnum_2X$1["CubicFootPerHour"] = "2K";
23
+ UnitTypeCodeEnum_2X$1["CubicFootPerMinute"] = "2L";
24
+ UnitTypeCodeEnum_2X$1["CentimetrePerSecond"] = "2M";
25
+ UnitTypeCodeEnum_2X$1["Decibel"] = "2N";
26
+ UnitTypeCodeEnum_2X$1["Kilobyte"] = "2P";
27
+ UnitTypeCodeEnum_2X$1["Kilobecquerel"] = "2Q";
28
+ UnitTypeCodeEnum_2X$1["Kilocurie"] = "2R";
29
+ UnitTypeCodeEnum_2X$1["Megagram"] = "2U";
30
+ UnitTypeCodeEnum_2X$1["MetrePerMinute"] = "2X";
31
+ UnitTypeCodeEnum_2X$1["Milliroentgen"] = "2Y";
32
+ UnitTypeCodeEnum_2X$1["Millivolt"] = "2Z";
33
+ return UnitTypeCodeEnum_2X$1;
15
34
  }({});
16
35
 
17
36
  //#endregion
18
- exports.UnitTypeCodeEnum_3X = UnitTypeCodeEnum_3X;
37
+ exports.UnitTypeCodeEnum_2X = UnitTypeCodeEnum_2X;
19
38
  //# sourceMappingURL=index42.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index42.cjs","names":[],"sources":["../src/types/unit/3X.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with '3'.\n */\nexport type UnitTypeCode_3X = '33' | '34' | '35' | '37' | '38' | '3B' | '3C'\n\n/**\n * Enum representing unit type codes starting with '3'.\n */\nexport enum UnitTypeCodeEnum_3X {\n KilopascalSquareMetrePerGram = '33',\n KilopascalPerMillimetre = '34',\n MillilitrePerSquareCentimetreSecond = '35',\n OuncePerSquareFoot = '37',\n OuncePerSquareFootPer0_01inch = '38',\n Megajoule = '3B',\n Manmonth = '3C',\n}\n"],"mappings":";;;;;AAQA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
1
+ {"version":3,"file":"index42.cjs","names":[],"sources":["../src/types/unit/2X.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with '2'.\n */\nexport type UnitTypeCode_2X =\n | '20'\n | '21'\n | '22'\n | '23'\n | '24'\n | '25'\n | '27'\n | '28'\n | '2A'\n | '2B'\n | '2C'\n | '2G'\n | '2H'\n | '2I'\n | '2J'\n | '2K'\n | '2L'\n | '2M'\n | '2N'\n | '2P'\n | '2Q'\n | '2R'\n | '2U'\n | '2X'\n | '2Y'\n | '2Z'\n\n/**\n * Enum representing unit type codes starting with '2'.\n */\nexport enum UnitTypeCodeEnum_2X {\n TwentyFootContainer = '20',\n FortyFootContainer = '21',\n DecilitrePerGram = '22',\n GramPerCubicCentimetre = '23',\n TheoreticalPound = '24',\n GramPerSquareCentimetre = '25',\n TheoreticalTon = '27',\n KilogramPerSquareMetre = '28',\n RadianPerSecond = '2A',\n RadianPerSecondSquared = '2B',\n Roentgen = '2C',\n VoltAC = '2G',\n VoltDC = '2H',\n BritishThermalUnitInternationalTablePerHour = '2I',\n CubicCentimetrePerSecond = '2J',\n CubicFootPerHour = '2K',\n CubicFootPerMinute = '2L',\n CentimetrePerSecond = '2M',\n Decibel = '2N',\n Kilobyte = '2P',\n Kilobecquerel = '2Q',\n Kilocurie = '2R',\n Megagram = '2U',\n MetrePerMinute = '2X',\n Milliroentgen = '2Y',\n Millivolt = '2Z',\n}\n"],"mappings":";;;;;AAkCA,IAAY,sEAAL;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;;AACD"}