@ripwords/myinvois-client 0.1.3 → 0.1.4

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 (339) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +4 -5
  3. package/src/index.ts +2 -1
  4. package/src/types/documents.d.ts +5 -6
  5. package/bun.lock +0 -460
  6. package/dist/0X-CTIq3y3a.d.ts +0 -210
  7. package/dist/0X-Cr3M7hci.d.cts +0 -211
  8. package/dist/1X-Bu4oiv8D.d.ts +0 -111
  9. package/dist/1X-BywXCqtn.d.ts +0 -19
  10. package/dist/1X-CWwmfCzo.d.cts +0 -112
  11. package/dist/1X-ClnJ79HH.d.cts +0 -20
  12. package/dist/2X-3fSEGIuE.d.ts +0 -39
  13. package/dist/2X-CV9eYhog.d.cts +0 -40
  14. package/dist/2X-DNtkJ0tj.d.cts +0 -140
  15. package/dist/2X-DnG3FY1f.d.ts +0 -139
  16. package/dist/3X--VWVsC84.d.cts +0 -21
  17. package/dist/3X-BOxfatu3.d.cts +0 -62
  18. package/dist/3X-CLdmoel1.d.ts +0 -61
  19. package/dist/3X-Ynjfgoll.d.ts +0 -20
  20. package/dist/4X-B5ePdMky.d.ts +0 -30
  21. package/dist/4X-BTG6o1Gn.d.ts +0 -264
  22. package/dist/4X-By9PzHaY.d.cts +0 -31
  23. package/dist/4X-C7fzDWJ_.d.cts +0 -265
  24. package/dist/5X-B5M0Cv_K.d.cts +0 -22
  25. package/dist/5X-CNAFsDm2.d.cts +0 -77
  26. package/dist/5X-CjSz1zxJ.d.ts +0 -76
  27. package/dist/5X-dhP6fyou.d.ts +0 -21
  28. package/dist/6X-B9KP_vEn.d.ts +0 -104
  29. package/dist/6X-BHaY0TCf.d.ts +0 -15
  30. package/dist/6X-C3elgd-n.d.cts +0 -16
  31. package/dist/6X-uObUP4VG.d.cts +0 -105
  32. package/dist/7X-BifJnY24.d.cts +0 -71
  33. package/dist/7X-C4eX_tAk.d.ts +0 -15
  34. package/dist/7X-D3idQBl9.d.cts +0 -16
  35. package/dist/7X-DtkQutx2.d.ts +0 -70
  36. package/dist/8X-5n9seY3z.d.ts +0 -109
  37. package/dist/8X-C6UMFvQW.d.cts +0 -19
  38. package/dist/8X-D6HTLShY.d.ts +0 -18
  39. package/dist/8X-DioBXCJ0.d.cts +0 -110
  40. package/dist/9X-BjffnXuq.d.cts +0 -98
  41. package/dist/9X-CHZKsIdD.d.ts +0 -14
  42. package/dist/9X-CJjPJgIG.d.cts +0 -15
  43. package/dist/9X-Cpb6V4JC.d.ts +0 -97
  44. package/dist/AX-C0w_r3PA.d.ts +0 -110
  45. package/dist/AX-DrEd2Ov6.d.cts +0 -111
  46. package/dist/BX-C5jc6myN.d.cts +0 -115
  47. package/dist/BX-RadlZ-6m.d.ts +0 -114
  48. package/dist/CX-CT1Zzb9D.d.ts +0 -127
  49. package/dist/CX-oSgvmn3h.d.cts +0 -128
  50. package/dist/DX-CtUeTKMM.d.ts +0 -114
  51. package/dist/DX-ZIG0enmK.d.cts +0 -115
  52. package/dist/EX-084Yu7Wt.d.ts +0 -106
  53. package/dist/EX-BpWZ5ADq.d.cts +0 -107
  54. package/dist/FX-BrbQM0CW.d.ts +0 -126
  55. package/dist/FX-CvYBEc51.d.cts +0 -127
  56. package/dist/GX-CU8PZy0G.d.cts +0 -136
  57. package/dist/GX-gKj8iAAh.d.ts +0 -135
  58. package/dist/HX-9D-ZXTy5.d.ts +0 -125
  59. package/dist/HX-DoEErDeE.d.cts +0 -126
  60. package/dist/IX-DR4Fc92A.d.ts +0 -22
  61. package/dist/IX-jLAUHe8i.d.cts +0 -23
  62. package/dist/JX-DIKa9ma-.d.ts +0 -103
  63. package/dist/JX-DX8BjYQC.d.cts +0 -104
  64. package/dist/KX-DpsJ_unT.d.ts +0 -150
  65. package/dist/KX-fZb4_vhw.d.cts +0 -151
  66. package/dist/LX-D_mI1bk-.d.cts +0 -123
  67. package/dist/LX-DeXPPWUX.d.ts +0 -122
  68. package/dist/MX-CKMjg_zK.d.ts +0 -152
  69. package/dist/MX-DlYZhpkT.d.cts +0 -153
  70. package/dist/NX-DELEEbad.d.cts +0 -122
  71. package/dist/NX-oYdb4NDo.d.ts +0 -121
  72. package/dist/OX-Bid9es3D.d.ts +0 -25
  73. package/dist/OX-CKPyrIFf.d.cts +0 -26
  74. package/dist/PX-D7jy9CFk.d.ts +0 -120
  75. package/dist/PX-SP6NxBtG.d.cts +0 -121
  76. package/dist/QX-BFWOR4g3.d.ts +0 -58
  77. package/dist/QX-QZA7E2O-.d.cts +0 -59
  78. package/dist/RX-DBcgbdeE.d.cts +0 -23
  79. package/dist/RX-XHgCyMV1.d.ts +0 -22
  80. package/dist/SX-Cl8RN8oH.d.ts +0 -39
  81. package/dist/SX-DmiJeCMN.d.cts +0 -40
  82. package/dist/TX-C1SoDobK.d.cts +0 -31
  83. package/dist/TX-ZymoIbtr.d.ts +0 -30
  84. package/dist/UX-D-Ndd1ov.d.ts +0 -17
  85. package/dist/UX-DFVynFhQ.d.cts +0 -18
  86. package/dist/VX-B-1b34r7.d.ts +0 -16
  87. package/dist/VX-DsRum5k3.d.cts +0 -17
  88. package/dist/WX-0GuMjPNZ.d.ts +0 -25
  89. package/dist/WX-VReU5R5M.d.cts +0 -26
  90. package/dist/XX-CF2NANsy.d.ts +0 -827
  91. package/dist/XX-ChAviUMj.d.cts +0 -828
  92. package/dist/YX-B51BbNSg.d.ts +0 -19
  93. package/dist/YX-QfzeMEKx.d.cts +0 -20
  94. package/dist/ZX-BMJS1iAv.d.ts +0 -21
  95. package/dist/ZX-Ca2E726a.d.cts +0 -22
  96. package/dist/api/platform/platformLogin.d.ts +0 -65
  97. package/dist/api/platform/platformLogin.js +0 -3
  98. package/dist/certificate-DFK-788s.cjs +0 -62
  99. package/dist/certificate-DFK-788s.cjs.map +0 -1
  100. package/dist/certificate-aooIRf9A.js +0 -49
  101. package/dist/chunk-CUT6urMc.cjs +0 -30
  102. package/dist/classification-codes-B15PbWxz.d.cts +0 -118
  103. package/dist/classification-codes-BKxV-rO9.d.ts +0 -117
  104. package/dist/country-code-CQuaiQm2.d.ts +0 -542
  105. package/dist/country-code-DPeNFMMi.d.cts +0 -543
  106. package/dist/currencies-BYJK-m6v.d.ts +0 -207
  107. package/dist/currencies-S5g1gzBU.d.cts +0 -208
  108. package/dist/document-CARHiGdp.cjs +0 -472
  109. package/dist/document-CARHiGdp.cjs.map +0 -1
  110. package/dist/document-D6VKMAtx.js +0 -405
  111. package/dist/documents-CJ8hqIGH.d.ts +0 -858
  112. package/dist/documents-MGs0EvXh.d.cts +0 -859
  113. package/dist/e-invoice-BuwtFnlI.d.cts +0 -44
  114. package/dist/e-invoice-CmbLQkHw.d.ts +0 -43
  115. package/dist/getBaseUrl-CO7Jp27d.cjs +0 -14
  116. package/dist/getBaseUrl-CO7Jp27d.cjs.map +0 -1
  117. package/dist/getBaseUrl-R3IdgCu3.js +0 -7
  118. package/dist/index-0-EvC6Nv.d.ts +0 -15
  119. package/dist/index-D2_HVwCz.d.cts +0 -16
  120. package/dist/index.cjs +0 -309
  121. package/dist/index.cjs.map +0 -1
  122. package/dist/index.d.ts +0 -233
  123. package/dist/index.js +0 -308
  124. package/dist/index10.cjs +0 -0
  125. package/dist/index11.cjs +0 -34
  126. package/dist/index11.cjs.map +0 -1
  127. package/dist/index12.cjs +0 -24
  128. package/dist/index12.cjs.map +0 -1
  129. package/dist/index13.cjs +0 -0
  130. package/dist/index14.cjs +0 -13
  131. package/dist/index14.cjs.map +0 -1
  132. package/dist/index15.cjs +0 -4
  133. package/dist/index16.cjs +0 -13
  134. package/dist/index17.cjs +0 -3
  135. package/dist/index18.cjs +0 -340
  136. package/dist/index18.cjs.map +0 -1
  137. package/dist/index19.cjs +0 -329
  138. package/dist/index19.cjs.map +0 -1
  139. package/dist/index2.cjs +0 -62
  140. package/dist/index2.cjs.map +0 -1
  141. package/dist/index20.cjs +0 -140
  142. package/dist/index20.cjs.map +0 -1
  143. package/dist/index21.cjs +0 -208
  144. package/dist/index21.cjs.map +0 -1
  145. package/dist/index22.cjs +0 -109
  146. package/dist/index22.cjs.map +0 -1
  147. package/dist/index23.cjs +0 -137
  148. package/dist/index23.cjs.map +0 -1
  149. package/dist/index24.cjs +0 -64
  150. package/dist/index24.cjs.map +0 -1
  151. package/dist/index25.cjs +0 -267
  152. package/dist/index25.cjs.map +0 -1
  153. package/dist/index26.cjs +0 -79
  154. package/dist/index26.cjs.map +0 -1
  155. package/dist/index27.cjs +0 -107
  156. package/dist/index27.cjs.map +0 -1
  157. package/dist/index28.cjs +0 -73
  158. package/dist/index28.cjs.map +0 -1
  159. package/dist/index29.cjs +0 -112
  160. package/dist/index29.cjs.map +0 -1
  161. package/dist/index3.cjs +0 -532
  162. package/dist/index3.cjs.map +0 -1
  163. package/dist/index30.cjs +0 -100
  164. package/dist/index30.cjs.map +0 -1
  165. package/dist/index31.cjs +0 -18
  166. package/dist/index31.cjs.map +0 -1
  167. package/dist/index32.cjs +0 -38
  168. package/dist/index32.cjs.map +0 -1
  169. package/dist/index33.cjs +0 -19
  170. package/dist/index33.cjs.map +0 -1
  171. package/dist/index34.cjs +0 -29
  172. package/dist/index34.cjs.map +0 -1
  173. package/dist/index35.cjs +0 -20
  174. package/dist/index35.cjs.map +0 -1
  175. package/dist/index36.cjs +0 -14
  176. package/dist/index36.cjs.map +0 -1
  177. package/dist/index37.cjs +0 -14
  178. package/dist/index37.cjs.map +0 -1
  179. package/dist/index38.cjs +0 -17
  180. package/dist/index38.cjs.map +0 -1
  181. package/dist/index39.cjs +0 -13
  182. package/dist/index39.cjs.map +0 -1
  183. package/dist/index4.cjs +0 -196
  184. package/dist/index4.cjs.map +0 -1
  185. package/dist/index40.cjs +0 -108
  186. package/dist/index40.cjs.map +0 -1
  187. package/dist/index41.cjs +0 -113
  188. package/dist/index41.cjs.map +0 -1
  189. package/dist/index42.cjs +0 -126
  190. package/dist/index42.cjs.map +0 -1
  191. package/dist/index43.cjs +0 -113
  192. package/dist/index43.cjs.map +0 -1
  193. package/dist/index44.cjs +0 -105
  194. package/dist/index44.cjs.map +0 -1
  195. package/dist/index45.cjs +0 -125
  196. package/dist/index45.cjs.map +0 -1
  197. package/dist/index46.cjs +0 -134
  198. package/dist/index46.cjs.map +0 -1
  199. package/dist/index47.cjs +0 -124
  200. package/dist/index47.cjs.map +0 -1
  201. package/dist/index48.cjs +0 -21
  202. package/dist/index48.cjs.map +0 -1
  203. package/dist/index49.cjs +0 -102
  204. package/dist/index49.cjs.map +0 -1
  205. package/dist/index5.cjs +0 -0
  206. package/dist/index50.cjs +0 -149
  207. package/dist/index50.cjs.map +0 -1
  208. package/dist/index51.cjs +0 -121
  209. package/dist/index51.cjs.map +0 -1
  210. package/dist/index52.cjs +0 -151
  211. package/dist/index52.cjs.map +0 -1
  212. package/dist/index53.cjs +0 -120
  213. package/dist/index53.cjs.map +0 -1
  214. package/dist/index54.cjs +0 -24
  215. package/dist/index54.cjs.map +0 -1
  216. package/dist/index55.cjs +0 -119
  217. package/dist/index55.cjs.map +0 -1
  218. package/dist/index56.cjs +0 -54
  219. package/dist/index56.cjs.map +0 -1
  220. package/dist/index57.cjs +0 -21
  221. package/dist/index57.cjs.map +0 -1
  222. package/dist/index58.cjs +0 -35
  223. package/dist/index58.cjs.map +0 -1
  224. package/dist/index58.cts.map +0 -1
  225. package/dist/index59.cjs +0 -29
  226. package/dist/index59.cjs.map +0 -1
  227. package/dist/index59.cts.map +0 -1
  228. package/dist/index6.cjs +0 -25
  229. package/dist/index6.cjs.map +0 -1
  230. package/dist/index60.cjs +0 -16
  231. package/dist/index60.cjs.map +0 -1
  232. package/dist/index60.cts.map +0 -1
  233. package/dist/index61.cjs +0 -15
  234. package/dist/index61.cjs.map +0 -1
  235. package/dist/index61.cts.map +0 -1
  236. package/dist/index62.cjs +0 -24
  237. package/dist/index62.cjs.map +0 -1
  238. package/dist/index62.cts.map +0 -1
  239. package/dist/index63.cjs +0 -419
  240. package/dist/index63.cjs.map +0 -1
  241. package/dist/index63.cts.map +0 -1
  242. package/dist/index64.cjs +0 -15
  243. package/dist/index64.cjs.map +0 -1
  244. package/dist/index64.cts.map +0 -1
  245. package/dist/index65.cjs +0 -16
  246. package/dist/index65.cjs.map +0 -1
  247. package/dist/index65.cts.map +0 -1
  248. package/dist/index66.cjs +0 -3
  249. package/dist/index66.cts.map +0 -1
  250. package/dist/index7.cjs +0 -0
  251. package/dist/index8.cjs +0 -0
  252. package/dist/index9.cjs +0 -25
  253. package/dist/index9.cjs.map +0 -1
  254. package/dist/msic-codes-C8PJVOaA.d.ts +0 -25
  255. package/dist/msic-codes-CIKdPqag.d.cts +0 -26
  256. package/dist/payment-modes-BOTSRC_X.d.ts +0 -43
  257. package/dist/payment-modes-ghFEXnUl.d.cts +0 -44
  258. package/dist/platformLogin-PGzMhw1X.cjs +0 -37
  259. package/dist/platformLogin-PGzMhw1X.cjs.map +0 -1
  260. package/dist/platformLogin-f0bNAoZI.js +0 -30
  261. package/dist/signatures-W-_brwdb.d.ts +0 -172
  262. package/dist/signatures-hFbt_std.d.cts +0 -173
  263. package/dist/state-codes-BlILGZ9d.d.cts +0 -62
  264. package/dist/state-codes-oeFKlwXZ.d.ts +0 -61
  265. package/dist/tax-types-B5sQ8UyN.d.cts +0 -42
  266. package/dist/tax-types-CsQ76JMf.d.ts +0 -41
  267. package/dist/types/classification-codes.d.ts +0 -2
  268. package/dist/types/country-code.d.ts +0 -2
  269. package/dist/types/currencies.d.ts +0 -2
  270. package/dist/types/documents.d.ts +0 -18
  271. package/dist/types/e-invoice.d.ts +0 -2
  272. package/dist/types/index.d.ts +0 -58
  273. package/dist/types/msic/0X.d.ts +0 -2
  274. package/dist/types/msic/1X.d.ts +0 -2
  275. package/dist/types/msic/2X.d.ts +0 -2
  276. package/dist/types/msic/3X.d.ts +0 -2
  277. package/dist/types/msic/4X.d.ts +0 -2
  278. package/dist/types/msic/5X.d.ts +0 -2
  279. package/dist/types/msic/6X.d.ts +0 -2
  280. package/dist/types/msic/7X.d.ts +0 -2
  281. package/dist/types/msic/8X.d.ts +0 -2
  282. package/dist/types/msic/9X.d.ts +0 -2
  283. package/dist/types/msic-codes.d.ts +0 -12
  284. package/dist/types/payment-modes.d.ts +0 -2
  285. package/dist/types/signatures.d.ts +0 -2
  286. package/dist/types/state-codes.d.ts +0 -2
  287. package/dist/types/tax-types.d.ts +0 -2
  288. package/dist/types/unit/1X.d.ts +0 -2
  289. package/dist/types/unit/2X.d.ts +0 -2
  290. package/dist/types/unit/3X.d.ts +0 -2
  291. package/dist/types/unit/4X.d.ts +0 -2
  292. package/dist/types/unit/5X.d.ts +0 -2
  293. package/dist/types/unit/6X.d.ts +0 -2
  294. package/dist/types/unit/7X.d.ts +0 -2
  295. package/dist/types/unit/8X.d.ts +0 -2
  296. package/dist/types/unit/9X.d.ts +0 -2
  297. package/dist/types/unit/AX.d.ts +0 -2
  298. package/dist/types/unit/BX.d.ts +0 -2
  299. package/dist/types/unit/CX.d.ts +0 -2
  300. package/dist/types/unit/DX.d.ts +0 -2
  301. package/dist/types/unit/EX.d.ts +0 -2
  302. package/dist/types/unit/FX.d.ts +0 -2
  303. package/dist/types/unit/GX.d.ts +0 -2
  304. package/dist/types/unit/HX.d.ts +0 -2
  305. package/dist/types/unit/IX.d.ts +0 -2
  306. package/dist/types/unit/JX.d.ts +0 -2
  307. package/dist/types/unit/KX.d.ts +0 -2
  308. package/dist/types/unit/LX.d.ts +0 -2
  309. package/dist/types/unit/MX.d.ts +0 -2
  310. package/dist/types/unit/NX.d.ts +0 -2
  311. package/dist/types/unit/OX.d.ts +0 -2
  312. package/dist/types/unit/PX.d.ts +0 -2
  313. package/dist/types/unit/QX.d.ts +0 -2
  314. package/dist/types/unit/RX.d.ts +0 -2
  315. package/dist/types/unit/SX.d.ts +0 -2
  316. package/dist/types/unit/TX.d.ts +0 -2
  317. package/dist/types/unit/UX.d.ts +0 -2
  318. package/dist/types/unit/VX.d.ts +0 -2
  319. package/dist/types/unit/WX.d.ts +0 -2
  320. package/dist/types/unit/XX.d.ts +0 -2
  321. package/dist/types/unit/YX.d.ts +0 -2
  322. package/dist/types/unit/ZX.d.ts +0 -2
  323. package/dist/types/unit-types.d.ts +0 -37
  324. package/dist/unit-types-B41YFOLT.d.ts +0 -55
  325. package/dist/unit-types-CjWNk2wS.d.cts +0 -56
  326. package/dist/utils/base64.d.ts +0 -5
  327. package/dist/utils/base64.js +0 -10
  328. package/dist/utils/certificate.d.ts +0 -22
  329. package/dist/utils/certificate.js +0 -3
  330. package/dist/utils/document.d.ts +0 -135
  331. package/dist/utils/document.js +0 -3
  332. package/dist/utils/getBaseUrl.d.ts +0 -4
  333. package/dist/utils/getBaseUrl.js +0 -3
  334. package/dist/utils/helpers.d.ts +0 -271
  335. package/dist/utils/helpers.js +0 -330
  336. package/dist/utils/signature-diagnostics.d.ts +0 -93
  337. package/dist/utils/signature-diagnostics.js +0 -326
  338. package/dist/utils/validation.d.ts +0 -46
  339. package/dist/utils/validation.js +0 -134
@@ -1 +0,0 @@
1
- {"version":3,"file":"index66.cts","names":[],"sources":["../src/utils/validation.d.ts"],"sourcesContent":["import type { InvoiceV1_1 } from '../types/documents/index.js';\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 */\nexport interface ValidationResult {\n isValid: boolean;\n errors: ValidationError[];\n warnings: ValidationWarning[];\n}\nexport interface ValidationError {\n field: string;\n code: string;\n message: string;\n severity: 'error' | 'warning';\n}\nexport interface ValidationWarning extends ValidationError {\n severity: 'warning';\n}\n/**\n * Validates TIN format based on registration type\n */\nexport declare const validateTIN: (tin: string, registrationType?: string) => ValidationError[];\n/**\n * Validates contact number format (E.164 standard)\n */\nexport declare const validateContactNumber: (contactNumber: string) => ValidationError[];\n/**\n * Validates monetary amounts\n */\nexport declare const validateMonetaryAmount: (amount: number, fieldName: string, maxDigits?: number, maxDecimals?: number) => ValidationError[];\n/**\n * Validates tax calculation consistency\n */\nexport declare const validateTaxCalculations: (invoice: InvoiceV1_1) => ValidationError[];\n/**\n * Main validation function for complete invoice\n */\nexport declare const validateInvoice: (invoice: InvoiceV1_1) => ValidationResult;\n"],"mappings":";;;AACA,IAAE,mBAAA;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,kBAAkB,CAAC,GAAI;AAClC,IAAC,oBAAA,CAAA,KAAA,MAAA,eAAA;AACD,IAAW,cAAc,CAAC,KAAK,MAAM,eAAgB;AACrD,IAAW,wBAAwB,CAAC,KAAK,MAAM,eAAgB;AAC/D,IAAE,yBAAA,CAAA,KAAA,MAAA,eAAA;AACF,IAAW,0BAAuB;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAClC,IAAW,kBAAS;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
package/dist/index7.cjs DELETED
File without changes
package/dist/index8.cjs DELETED
File without changes
package/dist/index9.cjs DELETED
@@ -1,25 +0,0 @@
1
-
2
- //#region src/types/payment-modes.d.ts
3
- /**
4
- * Enum representing the allowed payment mode codes with descriptive names.
5
- * Provides a more readable way to reference payment modes.
6
- *
7
- * @example
8
- * const mode = PaymentModeCodeEnum.Cash;
9
- * console.log(mode); // Output: "01"
10
- */
11
- let PaymentModeCodeEnum = /* @__PURE__ */ function(PaymentModeCodeEnum$1) {
12
- PaymentModeCodeEnum$1["Cash"] = "01";
13
- PaymentModeCodeEnum$1["Cheque"] = "02";
14
- PaymentModeCodeEnum$1["BankTransfer"] = "03";
15
- PaymentModeCodeEnum$1["CreditCard"] = "04";
16
- PaymentModeCodeEnum$1["DebitCard"] = "05";
17
- PaymentModeCodeEnum$1["EWalletDigitalWallet"] = "06";
18
- PaymentModeCodeEnum$1["DigitalBank"] = "07";
19
- PaymentModeCodeEnum$1["Others"] = "08";
20
- return PaymentModeCodeEnum$1;
21
- }({});
22
-
23
- //#endregion
24
- exports.PaymentModeCodeEnum = PaymentModeCodeEnum;
25
- //# sourceMappingURL=index9.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index9.cjs","names":[],"sources":["../src/types/payment-modes.d.ts"],"sourcesContent":["/**\n * Represents the allowed codes for payment modes.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/payment-methods/\n */\nexport type PaymentModeCode =\n | '01' // Cash\n | '02' // Cheque\n | '03' // Bank Transfer\n | '04' // Credit Card\n | '05' // Debit Card\n | '06' // e-Wallet / Digital Wallet\n | '07' // Digital Bank\n | '08' // Others\n\n/**\n * Enum representing the allowed payment mode codes with descriptive names.\n * Provides a more readable way to reference payment modes.\n *\n * @example\n * const mode = PaymentModeCodeEnum.Cash;\n * console.log(mode); // Output: \"01\"\n */\nexport enum PaymentModeCodeEnum {\n Cash = '01',\n Cheque = '02',\n BankTransfer = '03',\n CreditCard = '04',\n DebitCard = '05',\n EWalletDigitalWallet = '06',\n DigitalBank = '07',\n Others = '08',\n}\n\n/**\n * Interface representing a payment mode entry.\n * Contains the code and its corresponding description.\n */\nexport interface PaymentMode {\n code: PaymentModeCode\n description: string\n}\n"],"mappings":";;;;;;;;;;AAsBA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
@@ -1,25 +0,0 @@
1
- import { MSIC_0X_CODE } from "./0X-CTIq3y3a.js";
2
- import { MSIC_1X_CODE } from "./1X-Bu4oiv8D.js";
3
- import { MSIC_2X_CODE } from "./2X-DnG3FY1f.js";
4
- import { MSIC_3X_CODE } from "./3X-CLdmoel1.js";
5
- import { MSIC_4X_CODE } from "./4X-BTG6o1Gn.js";
6
- import { MSIC_5X_CODE } from "./5X-CjSz1zxJ.js";
7
- import { MSIC_6X_CODE } from "./6X-B9KP_vEn.js";
8
- import { MSIC_7X_CODE } from "./7X-DtkQutx2.js";
9
- import { MSIC_8X_CODE } from "./8X-5n9seY3z.js";
10
- import { MSIC_9X_CODE } from "./9X-Cpb6V4JC.js";
11
-
12
- //#region src/types/msic-codes.d.ts
13
-
14
- /**
15
- * Represents the allowed 5-digit Malaysia Standard Industrial Classification (MSIC) codes.
16
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/msic-codes/
17
- * Interface representing an MSIC code entry.
18
- * Contains the 5-digit code and its description.
19
- */
20
- interface MSICCode {
21
- code: MSIC_0X_CODE | MSIC_1X_CODE | MSIC_2X_CODE | MSIC_3X_CODE | MSIC_4X_CODE | MSIC_5X_CODE | MSIC_6X_CODE | MSIC_7X_CODE | MSIC_8X_CODE | MSIC_9X_CODE;
22
- description: string;
23
- }
24
- //#endregion
25
- export { MSICCode };
@@ -1,26 +0,0 @@
1
- import { MSIC_0X_CODE } from "./0X-Cr3M7hci.cjs";
2
- import { MSIC_1X_CODE } from "./1X-CWwmfCzo.cjs";
3
- import { MSIC_2X_CODE } from "./2X-DNtkJ0tj.cjs";
4
- import { MSIC_3X_CODE } from "./3X-BOxfatu3.cjs";
5
- import { MSIC_4X_CODE } from "./4X-C7fzDWJ_.cjs";
6
- import { MSIC_5X_CODE } from "./5X-CNAFsDm2.cjs";
7
- import { MSIC_6X_CODE } from "./6X-uObUP4VG.cjs";
8
- import { MSIC_7X_CODE } from "./7X-BifJnY24.cjs";
9
- import { MSIC_8X_CODE } from "./8X-DioBXCJ0.cjs";
10
- import { MSIC_9X_CODE } from "./9X-BjffnXuq.cjs";
11
-
12
- //#region src/types/msic-codes.d.ts
13
-
14
- /**
15
- * Represents the allowed 5-digit Malaysia Standard Industrial Classification (MSIC) codes.
16
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/msic-codes/
17
- * Interface representing an MSIC code entry.
18
- * Contains the 5-digit code and its description.
19
- */
20
- interface MSICCode {
21
- code: MSIC_0X_CODE | MSIC_1X_CODE | MSIC_2X_CODE | MSIC_3X_CODE | MSIC_4X_CODE | MSIC_5X_CODE | MSIC_6X_CODE | MSIC_7X_CODE | MSIC_8X_CODE | MSIC_9X_CODE;
22
- description: string;
23
- }
24
- //#endregion
25
- export { MSICCode };
26
- //# sourceMappingURL=msic-codes-CIKdPqag.d.cts.map
@@ -1,43 +0,0 @@
1
- //#region src/types/payment-modes.d.ts
2
- /**
3
- * Represents the allowed codes for payment modes.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/payment-methods/
5
- */
6
- type PaymentModeCode = '01' // Cash
7
- | '02' // Cheque
8
- | '03' // Bank Transfer
9
- | '04' // Credit Card
10
- | '05' // Debit Card
11
- | '06' // e-Wallet / Digital Wallet
12
- | '07' // Digital Bank
13
- | '08'; // Others
14
-
15
- /**
16
- * Enum representing the allowed payment mode codes with descriptive names.
17
- * Provides a more readable way to reference payment modes.
18
- *
19
- * @example
20
- * const mode = PaymentModeCodeEnum.Cash;
21
- * console.log(mode); // Output: "01"
22
- */
23
- declare enum PaymentModeCodeEnum {
24
- Cash = '01',
25
- Cheque = '02',
26
- BankTransfer = '03',
27
- CreditCard = '04',
28
- DebitCard = '05',
29
- EWalletDigitalWallet = '06',
30
- DigitalBank = '07',
31
- Others = '08',
32
- }
33
-
34
- /**
35
- * Interface representing a payment mode entry.
36
- * Contains the code and its corresponding description.
37
- */
38
- interface PaymentMode {
39
- code: PaymentModeCode;
40
- description: string;
41
- }
42
- //#endregion
43
- export { PaymentMode, PaymentModeCode, PaymentModeCodeEnum };
@@ -1,44 +0,0 @@
1
- //#region src/types/payment-modes.d.ts
2
- /**
3
- * Represents the allowed codes for payment modes.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/payment-methods/
5
- */
6
- type PaymentModeCode = '01' // Cash
7
- | '02' // Cheque
8
- | '03' // Bank Transfer
9
- | '04' // Credit Card
10
- | '05' // Debit Card
11
- | '06' // e-Wallet / Digital Wallet
12
- | '07' // Digital Bank
13
- | '08'; // Others
14
-
15
- /**
16
- * Enum representing the allowed payment mode codes with descriptive names.
17
- * Provides a more readable way to reference payment modes.
18
- *
19
- * @example
20
- * const mode = PaymentModeCodeEnum.Cash;
21
- * console.log(mode); // Output: "01"
22
- */
23
- declare enum PaymentModeCodeEnum {
24
- Cash = '01',
25
- Cheque = '02',
26
- BankTransfer = '03',
27
- CreditCard = '04',
28
- DebitCard = '05',
29
- EWalletDigitalWallet = '06',
30
- DigitalBank = '07',
31
- Others = '08',
32
- }
33
-
34
- /**
35
- * Interface representing a payment mode entry.
36
- * Contains the code and its corresponding description.
37
- */
38
- interface PaymentMode {
39
- code: PaymentModeCode;
40
- description: string;
41
- }
42
- //#endregion
43
- export { PaymentMode, PaymentModeCode, PaymentModeCodeEnum };
44
- //# sourceMappingURL=payment-modes-ghFEXnUl.d.cts.map
@@ -1,37 +0,0 @@
1
-
2
- //#region src/api/platform/platformLogin.ts
3
- const platformLogin = async (client) => {
4
- const { clientId, clientSecret, baseUrl, onBehalfOf, debug } = client;
5
- try {
6
- const response = await fetch(`${baseUrl}/connect/token`, {
7
- method: "POST",
8
- headers: {
9
- "Content-Type": "application/x-www-form-urlencoded",
10
- ...onBehalfOf ? { onbehalfof: onBehalfOf } : {}
11
- },
12
- body: new URLSearchParams({
13
- grant_type: "client_credentials",
14
- client_id: clientId,
15
- client_secret: clientSecret,
16
- scope: "InvoicingAPI"
17
- })
18
- });
19
- const tokenResponse = await response.json();
20
- return {
21
- token: tokenResponse.access_token,
22
- tokenExpiration: new Date(Date.now() + tokenResponse.expires_in * 1e3)
23
- };
24
- } catch (error) {
25
- if (debug) console.error(error);
26
- throw error;
27
- }
28
- };
29
-
30
- //#endregion
31
- Object.defineProperty(exports, 'platformLogin', {
32
- enumerable: true,
33
- get: function () {
34
- return platformLogin;
35
- }
36
- });
37
- //# sourceMappingURL=platformLogin-PGzMhw1X.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"platformLogin-PGzMhw1X.cjs","names":["client: ClientCredentials","tokenResponse: TokenResponse"],"sources":["../src/api/platform/platformLogin.ts"],"sourcesContent":["import type { ClientCredentials, TokenResponse } from '../../types'\n\nexport const platformLogin = async (\n client: ClientCredentials,\n): Promise<{\n token: string\n tokenExpiration: Date\n}> => {\n const { clientId, clientSecret, baseUrl, onBehalfOf, debug } = client\n try {\n const response = await fetch(`${baseUrl}/connect/token`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/x-www-form-urlencoded',\n ...(onBehalfOf ? { onbehalfof: onBehalfOf } : {}),\n },\n body: new URLSearchParams({\n grant_type: 'client_credentials',\n client_id: clientId,\n client_secret: clientSecret,\n scope: 'InvoicingAPI',\n }),\n })\n\n const tokenResponse: TokenResponse = await response.json()\n return {\n token: tokenResponse.access_token,\n tokenExpiration: new Date(Date.now() + tokenResponse.expires_in * 1000),\n }\n } catch (error) {\n if (debug) console.error(error)\n throw error\n }\n}\n"],"mappings":";;AAEA,MAAa,gBAAgB,OAC3BA,WAII;CACJ,MAAM,EAAE,UAAU,cAAc,SAAS,YAAY,OAAO,GAAG;AAC/D,KAAI;EACF,MAAM,WAAW,MAAM,OAAO,EAAE,QAAQ,iBAAiB;GACvD,QAAQ;GACR,SAAS;IACP,gBAAgB;IAChB,GAAI,aAAa,EAAE,YAAY,WAAY,IAAG,CAAE;GACjD;GACD,MAAM,IAAI,gBAAgB;IACxB,YAAY;IACZ,WAAW;IACX,eAAe;IACf,OAAO;GACR;EACF,EAAC;EAEF,MAAMC,gBAA+B,MAAM,SAAS,MAAM;AAC1D,SAAO;GACL,OAAO,cAAc;GACrB,iBAAiB,IAAI,KAAK,KAAK,KAAK,GAAG,cAAc,aAAa;EACnE;CACF,SAAQ,OAAO;AACd,MAAI,MAAO,SAAQ,MAAM,MAAM;AAC/B,QAAM;CACP;AACF"}
@@ -1,30 +0,0 @@
1
- //#region src/api/platform/platformLogin.ts
2
- const platformLogin = async (client) => {
3
- const { clientId, clientSecret, baseUrl, onBehalfOf, debug } = client;
4
- try {
5
- const response = await fetch(`${baseUrl}/connect/token`, {
6
- method: "POST",
7
- headers: {
8
- "Content-Type": "application/x-www-form-urlencoded",
9
- ...onBehalfOf ? { onbehalfof: onBehalfOf } : {}
10
- },
11
- body: new URLSearchParams({
12
- grant_type: "client_credentials",
13
- client_id: clientId,
14
- client_secret: clientSecret,
15
- scope: "InvoicingAPI"
16
- })
17
- });
18
- const tokenResponse = await response.json();
19
- return {
20
- token: tokenResponse.access_token,
21
- tokenExpiration: new Date(Date.now() + tokenResponse.expires_in * 1e3)
22
- };
23
- } catch (error) {
24
- if (debug) console.error(error);
25
- throw error;
26
- }
27
- };
28
-
29
- //#endregion
30
- export { platformLogin };
@@ -1,172 +0,0 @@
1
- //#region src/types/signatures.d.ts
2
- /**
3
- * Represents the Digest Method structure used within the signature.
4
- */
5
- interface DigestMethod {
6
- /** Algorithm used for digest. Should be http://www.w3.org/2001/04/xmlenc#sha256 */
7
- Algorithm: string;
8
- }
9
-
10
- /**
11
- * Represents the Cert Digest structure.
12
- */
13
- interface CertDigest {
14
- /** Digest method details. */
15
- "ds:DigestMethod": DigestMethod;
16
- /** Base64 encoded HEX-SHA256 certificate information (CertDigest). */
17
- "ds:DigestValue": string; // base64binary
18
- }
19
-
20
- /**
21
- * Represents the Issuer Serial structure within the Signing Certificate.
22
- */
23
- interface IssuerSerial {
24
- /** CN of the certificate issuer (Organization name). */
25
- "ds:X509IssuerName": string;
26
- /** Digital certificate serial number. */
27
- "ds:X509SerialNumber": string; // xsd:normalizedString -> string
28
- }
29
-
30
- /**
31
- * Represents the Certificate structure within Signing Certificate.
32
- */
33
- interface Cert {
34
- /** Certificate digest details. */
35
- "xades:CertDigest": CertDigest;
36
- /** Issuer details. */
37
- "xades:IssuerSerial": IssuerSerial;
38
- }
39
-
40
- /**
41
- * Represents the Signing Certificate structure.
42
- */
43
- interface SigningCertificate {
44
- /** Certificate details. */
45
- "xades:Cert": Cert;
46
- }
47
-
48
- /**
49
- * Represents the Signed Signature Properties.
50
- */
51
- interface SignedSignatureProperties {
52
- /** UTC timestamp of signing (YYYY-MM-DDTHH:mm:ssZ). */
53
- "xades:SigningTime": string; // dateTime
54
- /** Signing certificate details. */
55
- "xades:SigningCertificate": SigningCertificate;
56
- // Note: Other optional properties like SignaturePolicyIdentifier might exist
57
- }
58
-
59
- /**
60
- * Represents the Signed Properties structure.
61
- */
62
- interface SignedProperties {
63
- /** Target attribute, should be 'signature'. */
64
- Target: string;
65
- /** ID attribute, should be 'id-xades-signed-props'. */
66
- Id: string;
67
- /** Signed signature properties. */
68
- "xades:SignedSignatureProperties": SignedSignatureProperties;
69
- }
70
-
71
- /**
72
- * Represents the Qualifying Properties structure (Object element).
73
- */
74
- interface QualifyingProperties {
75
- /** Target attribute, should be 'signature'. */
76
- Target: string;
77
- /** Signed properties details. */
78
- "xades:SignedProperties": SignedProperties;
79
- // Note: UnsignedProperties might exist but are not detailed in the mandatory part
80
- }
81
-
82
- /**
83
- * Represents the X509 Data structure within KeyInfo.
84
- */
85
- interface X509Data {
86
- /** Base64 encoded X509 certificate. */
87
- "ds:X509Certificate": string; // base64binary
88
- }
89
-
90
- /**
91
- * Represents the Key Information structure.
92
- */
93
- interface KeyInfo {
94
- /** X509 certificate data. */
95
- "ds:X509Data": X509Data;
96
- }
97
-
98
- /**
99
- * Represents the Transform structure within Reference.
100
- */
101
- interface Transform {
102
- /** Algorithm attribute for the transform. */
103
- Algorithm: string;
104
- }
105
-
106
- /**
107
- * Represents a Reference within SignedInfo.
108
- */
109
- interface Reference {
110
- /** ID attribute for the reference (e.g., 'id-doc-signed-data', 'id-xades-signed-props'). */
111
- Id?: string;
112
- /** URI attribute for the reference (e.g., '', '#id-xades-signed-props'). */
113
- URI: string;
114
- /** Optional Transforms applied. */
115
- "ds:Transforms"?: {
116
- "ds:Transform": Transform | Transform[]; // Can be single or multiple transforms
117
- };
118
- /** Digest method details. */
119
- "ds:DigestMethod": DigestMethod;
120
- /** Base64 encoded digest value (DocDigest or PropsDigest). */
121
- "ds:DigestValue": string; // base64binary
122
- }
123
-
124
- /**
125
- * Represents the Canonicalization Method structure.
126
- */
127
- interface CanonicalizationMethod {
128
- /** Algorithm used for canonicalization. Should be http://www.w3.org/2006/12/xml-c14n11 */
129
- Algorithm: string;
130
- }
131
-
132
- /**
133
- * Represents the Signature Method structure.
134
- */
135
- interface SignatureMethod {
136
- /** Algorithm used for signing. Should be http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 */
137
- Algorithm: string;
138
- }
139
-
140
- /**
141
- * Represents the Signed Information structure.
142
- */
143
- interface SignedInfo {
144
- /** Canonicalization method details. */
145
- "ds:CanonicalizationMethod": CanonicalizationMethod;
146
- /** Signature method details. */
147
- "ds:SignatureMethod": SignatureMethod;
148
- /** References to signed data and properties. Should contain two references. */
149
- "ds:Reference": [Reference, Reference]; // Expecting two: one for document, one for signed properties
150
- }
151
-
152
- /**
153
- * Represents the root Signature element (IssuerDigitalSignature).
154
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/signature/
155
- * Conforms to XAdES enveloped signature requirements for UBL.
156
- */
157
- interface IssuerDigitalSignature {
158
- /** ID attribute, should be 'DocSig'. */
159
- Id: string;
160
- /** Signed information details. */
161
- "ds:SignedInfo": SignedInfo;
162
- /** Base64 encoded signature value (Sig). */
163
- "ds:SignatureValue": string; // base64binary
164
- /** Public key information (certificate). */
165
- "ds:KeyInfo": KeyInfo;
166
- /** Object containing signed properties. */
167
- "ds:Object": {
168
- "xades:QualifyingProperties": QualifyingProperties;
169
- };
170
- }
171
- //#endregion
172
- export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
@@ -1,173 +0,0 @@
1
- //#region src/types/signatures.d.ts
2
- /**
3
- * Represents the Digest Method structure used within the signature.
4
- */
5
- interface DigestMethod {
6
- /** Algorithm used for digest. Should be http://www.w3.org/2001/04/xmlenc#sha256 */
7
- Algorithm: string;
8
- }
9
-
10
- /**
11
- * Represents the Cert Digest structure.
12
- */
13
- interface CertDigest {
14
- /** Digest method details. */
15
- "ds:DigestMethod": DigestMethod;
16
- /** Base64 encoded HEX-SHA256 certificate information (CertDigest). */
17
- "ds:DigestValue": string; // base64binary
18
- }
19
-
20
- /**
21
- * Represents the Issuer Serial structure within the Signing Certificate.
22
- */
23
- interface IssuerSerial {
24
- /** CN of the certificate issuer (Organization name). */
25
- "ds:X509IssuerName": string;
26
- /** Digital certificate serial number. */
27
- "ds:X509SerialNumber": string; // xsd:normalizedString -> string
28
- }
29
-
30
- /**
31
- * Represents the Certificate structure within Signing Certificate.
32
- */
33
- interface Cert {
34
- /** Certificate digest details. */
35
- "xades:CertDigest": CertDigest;
36
- /** Issuer details. */
37
- "xades:IssuerSerial": IssuerSerial;
38
- }
39
-
40
- /**
41
- * Represents the Signing Certificate structure.
42
- */
43
- interface SigningCertificate {
44
- /** Certificate details. */
45
- "xades:Cert": Cert;
46
- }
47
-
48
- /**
49
- * Represents the Signed Signature Properties.
50
- */
51
- interface SignedSignatureProperties {
52
- /** UTC timestamp of signing (YYYY-MM-DDTHH:mm:ssZ). */
53
- "xades:SigningTime": string; // dateTime
54
- /** Signing certificate details. */
55
- "xades:SigningCertificate": SigningCertificate;
56
- // Note: Other optional properties like SignaturePolicyIdentifier might exist
57
- }
58
-
59
- /**
60
- * Represents the Signed Properties structure.
61
- */
62
- interface SignedProperties {
63
- /** Target attribute, should be 'signature'. */
64
- Target: string;
65
- /** ID attribute, should be 'id-xades-signed-props'. */
66
- Id: string;
67
- /** Signed signature properties. */
68
- "xades:SignedSignatureProperties": SignedSignatureProperties;
69
- }
70
-
71
- /**
72
- * Represents the Qualifying Properties structure (Object element).
73
- */
74
- interface QualifyingProperties {
75
- /** Target attribute, should be 'signature'. */
76
- Target: string;
77
- /** Signed properties details. */
78
- "xades:SignedProperties": SignedProperties;
79
- // Note: UnsignedProperties might exist but are not detailed in the mandatory part
80
- }
81
-
82
- /**
83
- * Represents the X509 Data structure within KeyInfo.
84
- */
85
- interface X509Data {
86
- /** Base64 encoded X509 certificate. */
87
- "ds:X509Certificate": string; // base64binary
88
- }
89
-
90
- /**
91
- * Represents the Key Information structure.
92
- */
93
- interface KeyInfo {
94
- /** X509 certificate data. */
95
- "ds:X509Data": X509Data;
96
- }
97
-
98
- /**
99
- * Represents the Transform structure within Reference.
100
- */
101
- interface Transform {
102
- /** Algorithm attribute for the transform. */
103
- Algorithm: string;
104
- }
105
-
106
- /**
107
- * Represents a Reference within SignedInfo.
108
- */
109
- interface Reference {
110
- /** ID attribute for the reference (e.g., 'id-doc-signed-data', 'id-xades-signed-props'). */
111
- Id?: string;
112
- /** URI attribute for the reference (e.g., '', '#id-xades-signed-props'). */
113
- URI: string;
114
- /** Optional Transforms applied. */
115
- "ds:Transforms"?: {
116
- "ds:Transform": Transform | Transform[]; // Can be single or multiple transforms
117
- };
118
- /** Digest method details. */
119
- "ds:DigestMethod": DigestMethod;
120
- /** Base64 encoded digest value (DocDigest or PropsDigest). */
121
- "ds:DigestValue": string; // base64binary
122
- }
123
-
124
- /**
125
- * Represents the Canonicalization Method structure.
126
- */
127
- interface CanonicalizationMethod {
128
- /** Algorithm used for canonicalization. Should be http://www.w3.org/2006/12/xml-c14n11 */
129
- Algorithm: string;
130
- }
131
-
132
- /**
133
- * Represents the Signature Method structure.
134
- */
135
- interface SignatureMethod {
136
- /** Algorithm used for signing. Should be http://www.w3.org/2001/04/xmldsig-more#rsa-sha256 */
137
- Algorithm: string;
138
- }
139
-
140
- /**
141
- * Represents the Signed Information structure.
142
- */
143
- interface SignedInfo {
144
- /** Canonicalization method details. */
145
- "ds:CanonicalizationMethod": CanonicalizationMethod;
146
- /** Signature method details. */
147
- "ds:SignatureMethod": SignatureMethod;
148
- /** References to signed data and properties. Should contain two references. */
149
- "ds:Reference": [Reference, Reference]; // Expecting two: one for document, one for signed properties
150
- }
151
-
152
- /**
153
- * Represents the root Signature element (IssuerDigitalSignature).
154
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/signature/
155
- * Conforms to XAdES enveloped signature requirements for UBL.
156
- */
157
- interface IssuerDigitalSignature {
158
- /** ID attribute, should be 'DocSig'. */
159
- Id: string;
160
- /** Signed information details. */
161
- "ds:SignedInfo": SignedInfo;
162
- /** Base64 encoded signature value (Sig). */
163
- "ds:SignatureValue": string; // base64binary
164
- /** Public key information (certificate). */
165
- "ds:KeyInfo": KeyInfo;
166
- /** Object containing signed properties. */
167
- "ds:Object": {
168
- "xades:QualifyingProperties": QualifyingProperties;
169
- };
170
- }
171
- //#endregion
172
- export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
173
- //# sourceMappingURL=signatures-hFbt_std.d.cts.map
@@ -1,62 +0,0 @@
1
- //#region src/types/state-codes.d.ts
2
- /**
3
- * Represents the allowed codes for Malaysian states and federal territories.
4
- * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/state-codes/
5
- */
6
- type StateCode = '01' // Johor
7
- | '02' // Kedah
8
- | '03' // Kelantan
9
- | '04' // Melaka
10
- | '05' // Negeri Sembilan
11
- | '06' // Pahang
12
- | '07' // Pulau Pinang
13
- | '08' // Perak
14
- | '09' // Perlis
15
- | '10' // Selangor
16
- | '11' // Terengganu
17
- | '12' // Sabah
18
- | '13' // Sarawak
19
- | '14' // Wilayah Persekutuan Kuala Lumpur
20
- | '15' // Wilayah Persekutuan Labuan
21
- | '16' // Wilayah Persekutuan Putrajaya
22
- | '17'; // Not Applicable
23
-
24
- /**
25
- * Enum representing the allowed state codes with descriptive names.
26
- * Provides a more readable way to reference states.
27
- *
28
- * @example
29
- * const code = StateCodeEnum.Selangor;
30
- * console.log(code); // Output: "10"
31
- */
32
- declare enum StateCodeEnum {
33
- Johor = '01',
34
- Kedah = '02',
35
- Kelantan = '03',
36
- Melaka = '04',
37
- NegeriSembilan = '05',
38
- Pahang = '06',
39
- PulauPinang = '07',
40
- Perak = '08',
41
- Perlis = '09',
42
- Selangor = '10',
43
- Terengganu = '11',
44
- Sabah = '12',
45
- Sarawak = '13',
46
- WPKualaLumpur = '14',
47
- WPLabuan = '15',
48
- WPPutrajaya = '16',
49
- NotApplicable = '17',
50
- }
51
-
52
- /**
53
- * Interface representing a state code entry.
54
- * Contains the code and its corresponding name.
55
- */
56
- interface State {
57
- code: StateCode;
58
- name: string;
59
- }
60
- //#endregion
61
- export { State, StateCode, StateCodeEnum };
62
- //# sourceMappingURL=state-codes-BlILGZ9d.d.cts.map