@ripwords/myinvois-client 0.2.3 → 0.2.5

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 (79) hide show
  1. package/dist/api/documentManagement.d.ts +2 -2
  2. package/dist/api/documentSubmission.d.ts +2 -2
  3. package/dist/api/documentSubmission.js +2 -2
  4. package/dist/api/documentTypeManagement.d.ts +4 -4
  5. package/dist/api/notificationManagement.d.ts +3 -3
  6. package/dist/api/platformLogin.d.ts +2 -2
  7. package/dist/api/taxpayerValidation.d.ts +4 -4
  8. package/dist/api/taxpayerValidation.js +1 -1
  9. package/dist/{document-BSuYbfXR.js → document-BvyYSCPx.js} +85 -1
  10. package/dist/{document-vDphtJTv.cjs → document-djvnrrZo.cjs} +121 -1
  11. package/dist/document-djvnrrZo.cjs.map +1 -0
  12. package/dist/{documentSubmission-BdJxIB_I.js → documentSubmission-695VhFA8.js} +1 -1
  13. package/dist/{documentSubmission-D5TC0MPC.cjs → documentSubmission-CK1zOsSV.cjs} +2 -2
  14. package/dist/{documentSubmission-D5TC0MPC.cjs.map → documentSubmission-CK1zOsSV.cjs.map} +1 -1
  15. package/dist/documentTypeManagement-DXRLfTsW.cjs.map +1 -1
  16. package/dist/{documents-zzL50wnG.d.ts → documents-Br8I8SvT.d.ts} +37 -2
  17. package/dist/{documents-DCOYxz61.d.cts → documents-BuH9ULyn.d.cts} +38 -3
  18. package/dist/index.cjs +3 -3
  19. package/dist/index.cjs.map +1 -1
  20. package/dist/index.d.ts +8 -8
  21. package/dist/index.js +3 -3
  22. package/dist/index10.cjs +16 -187
  23. package/dist/index10.cjs.map +1 -1
  24. package/dist/index12.cjs +25 -16
  25. package/dist/index12.cjs.map +1 -1
  26. package/dist/index13.cjs +24 -0
  27. package/dist/{index19.cjs.map → index13.cjs.map} +1 -1
  28. package/dist/index15.cjs +0 -29
  29. package/dist/index16.cjs +0 -25
  30. package/dist/index17.cjs +5 -0
  31. package/dist/index18.cjs +5 -33
  32. package/dist/index19.cjs +4 -23
  33. package/dist/index2.cjs +61 -4
  34. package/dist/{index8.cjs.map → index2.cjs.map} +1 -1
  35. package/dist/index20.cjs +3 -0
  36. package/dist/index21.cjs +3 -0
  37. package/dist/index22.cjs +5 -0
  38. package/dist/index25.cjs +7 -1
  39. package/dist/index27.cjs +1 -1
  40. package/dist/index28.cjs +53 -0
  41. package/dist/index28.cjs.map +1 -1
  42. package/dist/index3.cjs +531 -5
  43. package/dist/index3.cjs.map +1 -0
  44. package/dist/index4.cjs +195 -4
  45. package/dist/index4.cjs.map +1 -0
  46. package/dist/index5.cjs +0 -3
  47. package/dist/index6.cjs +24 -2
  48. package/dist/index6.cjs.map +1 -0
  49. package/dist/index63.cts.map +1 -1
  50. package/dist/index64.cts.map +1 -1
  51. package/dist/index66.cts.map +1 -1
  52. package/dist/index67.cts.map +1 -1
  53. package/dist/index7.cjs +0 -5
  54. package/dist/index70.cts.map +1 -1
  55. package/dist/index73.cts.map +1 -1
  56. package/dist/index8.cjs +0 -62
  57. package/dist/index9.cjs +23 -526
  58. package/dist/index9.cjs.map +1 -1
  59. package/dist/notificationManagement-C_qrFwWL.cjs.map +1 -1
  60. package/dist/{taxpayer-CxAVm7lJ.d.ts → taxpayer-5MlboTnW.d.ts} +1 -1
  61. package/dist/{taxpayer-aaXyVf7B.d.cts → taxpayer-DVjaFzJw.d.cts} +2 -2
  62. package/dist/{taxpayerValidation-DdeXCvPT.cjs → taxpayerValidation-CSuifcY1.cjs} +2 -15
  63. package/dist/taxpayerValidation-CSuifcY1.cjs.map +1 -0
  64. package/dist/{taxpayerValidation-DI4B6kWx.js → taxpayerValidation-DiLGJg1l.js} +1 -14
  65. package/dist/types/documents.d.ts +1 -1
  66. package/dist/types/index.d.ts +2 -2
  67. package/dist/types/taxpayer.d.ts +2 -2
  68. package/dist/utils/document.d.ts +54 -3
  69. package/dist/utils/document.js +2 -2
  70. package/dist/utils/signature-diagnostics.d.ts +2 -2
  71. package/dist/utils/signature-diagnostics.js +1 -1
  72. package/dist/utils/validation.d.ts +65 -3
  73. package/dist/utils/validation.js +53 -1
  74. package/package.json +1 -1
  75. package/dist/document-vDphtJTv.cjs.map +0 -1
  76. package/dist/index15.cjs.map +0 -1
  77. package/dist/index16.cjs.map +0 -1
  78. package/dist/index18.cjs.map +0 -1
  79. package/dist/taxpayerValidation-DdeXCvPT.cjs.map +0 -1
package/dist/index4.cjs CHANGED
@@ -1,5 +1,196 @@
1
- const require_documentTypeManagement = require('./documentTypeManagement-DXRLfTsW.cjs');
2
1
 
3
- exports.getDocumentType = require_documentTypeManagement.getDocumentType;
4
- exports.getDocumentTypeVersion = require_documentTypeManagement.getDocumentTypeVersion;
5
- exports.getDocumentTypes = require_documentTypeManagement.getDocumentTypes;
2
+ //#region src/types/currencies.d.ts
3
+ /**
4
+ * Enum representing the allowed ISO-4217 3-letter currency codes.
5
+ * Provides a more readable way to reference currency codes.
6
+ *
7
+ * @example
8
+ * const currency = CurrencyCodeEnum.MYR;
9
+ * console.log(currency); // Output: "MYR"
10
+ */
11
+ let CurrencyCodeEnum = /* @__PURE__ */ function(CurrencyCodeEnum$1) {
12
+ CurrencyCodeEnum$1["AED"] = "AED";
13
+ CurrencyCodeEnum$1["AFN"] = "AFN";
14
+ CurrencyCodeEnum$1["ALL"] = "ALL";
15
+ CurrencyCodeEnum$1["AMD"] = "AMD";
16
+ CurrencyCodeEnum$1["ANG"] = "ANG";
17
+ CurrencyCodeEnum$1["AOA"] = "AOA";
18
+ CurrencyCodeEnum$1["ARS"] = "ARS";
19
+ CurrencyCodeEnum$1["AUD"] = "AUD";
20
+ CurrencyCodeEnum$1["AWG"] = "AWG";
21
+ CurrencyCodeEnum$1["AZN"] = "AZN";
22
+ CurrencyCodeEnum$1["BAM"] = "BAM";
23
+ CurrencyCodeEnum$1["BBD"] = "BBD";
24
+ CurrencyCodeEnum$1["BDT"] = "BDT";
25
+ CurrencyCodeEnum$1["BGN"] = "BGN";
26
+ CurrencyCodeEnum$1["BHD"] = "BHD";
27
+ CurrencyCodeEnum$1["BIF"] = "BIF";
28
+ CurrencyCodeEnum$1["BMD"] = "BMD";
29
+ CurrencyCodeEnum$1["BND"] = "BND";
30
+ CurrencyCodeEnum$1["BOB"] = "BOB";
31
+ CurrencyCodeEnum$1["BOV"] = "BOV";
32
+ CurrencyCodeEnum$1["BRL"] = "BRL";
33
+ CurrencyCodeEnum$1["BSD"] = "BSD";
34
+ CurrencyCodeEnum$1["BTN"] = "BTN";
35
+ CurrencyCodeEnum$1["BWP"] = "BWP";
36
+ CurrencyCodeEnum$1["BYN"] = "BYN";
37
+ CurrencyCodeEnum$1["BZD"] = "BZD";
38
+ CurrencyCodeEnum$1["CAD"] = "CAD";
39
+ CurrencyCodeEnum$1["CDF"] = "CDF";
40
+ CurrencyCodeEnum$1["CHE"] = "CHE";
41
+ CurrencyCodeEnum$1["CHF"] = "CHF";
42
+ CurrencyCodeEnum$1["CHW"] = "CHW";
43
+ CurrencyCodeEnum$1["CLF"] = "CLF";
44
+ CurrencyCodeEnum$1["CLP"] = "CLP";
45
+ CurrencyCodeEnum$1["CNY"] = "CNY";
46
+ CurrencyCodeEnum$1["COP"] = "COP";
47
+ CurrencyCodeEnum$1["COU"] = "COU";
48
+ CurrencyCodeEnum$1["CRC"] = "CRC";
49
+ CurrencyCodeEnum$1["CUC"] = "CUC";
50
+ CurrencyCodeEnum$1["CUP"] = "CUP";
51
+ CurrencyCodeEnum$1["CVE"] = "CVE";
52
+ CurrencyCodeEnum$1["CZK"] = "CZK";
53
+ CurrencyCodeEnum$1["DJF"] = "DJF";
54
+ CurrencyCodeEnum$1["DKK"] = "DKK";
55
+ CurrencyCodeEnum$1["DOP"] = "DOP";
56
+ CurrencyCodeEnum$1["DZD"] = "DZD";
57
+ CurrencyCodeEnum$1["EGP"] = "EGP";
58
+ CurrencyCodeEnum$1["ERN"] = "ERN";
59
+ CurrencyCodeEnum$1["ETB"] = "ETB";
60
+ CurrencyCodeEnum$1["EUR"] = "EUR";
61
+ CurrencyCodeEnum$1["FJD"] = "FJD";
62
+ CurrencyCodeEnum$1["FKP"] = "FKP";
63
+ CurrencyCodeEnum$1["GBP"] = "GBP";
64
+ CurrencyCodeEnum$1["GEL"] = "GEL";
65
+ CurrencyCodeEnum$1["GHS"] = "GHS";
66
+ CurrencyCodeEnum$1["GIP"] = "GIP";
67
+ CurrencyCodeEnum$1["GMD"] = "GMD";
68
+ CurrencyCodeEnum$1["GNF"] = "GNF";
69
+ CurrencyCodeEnum$1["GTQ"] = "GTQ";
70
+ CurrencyCodeEnum$1["GYD"] = "GYD";
71
+ CurrencyCodeEnum$1["HKD"] = "HKD";
72
+ CurrencyCodeEnum$1["HNL"] = "HNL";
73
+ CurrencyCodeEnum$1["HRK"] = "HRK";
74
+ CurrencyCodeEnum$1["HTG"] = "HTG";
75
+ CurrencyCodeEnum$1["HUF"] = "HUF";
76
+ CurrencyCodeEnum$1["IDR"] = "IDR";
77
+ CurrencyCodeEnum$1["ILS"] = "ILS";
78
+ CurrencyCodeEnum$1["INR"] = "INR";
79
+ CurrencyCodeEnum$1["IQD"] = "IQD";
80
+ CurrencyCodeEnum$1["IRR"] = "IRR";
81
+ CurrencyCodeEnum$1["ISK"] = "ISK";
82
+ CurrencyCodeEnum$1["JMD"] = "JMD";
83
+ CurrencyCodeEnum$1["JOD"] = "JOD";
84
+ CurrencyCodeEnum$1["JPY"] = "JPY";
85
+ CurrencyCodeEnum$1["KES"] = "KES";
86
+ CurrencyCodeEnum$1["KGS"] = "KGS";
87
+ CurrencyCodeEnum$1["KHR"] = "KHR";
88
+ CurrencyCodeEnum$1["KMF"] = "KMF";
89
+ CurrencyCodeEnum$1["KPW"] = "KPW";
90
+ CurrencyCodeEnum$1["KRW"] = "KRW";
91
+ CurrencyCodeEnum$1["KWD"] = "KWD";
92
+ CurrencyCodeEnum$1["KYD"] = "KYD";
93
+ CurrencyCodeEnum$1["KZT"] = "KZT";
94
+ CurrencyCodeEnum$1["LAK"] = "LAK";
95
+ CurrencyCodeEnum$1["LBP"] = "LBP";
96
+ CurrencyCodeEnum$1["LKR"] = "LKR";
97
+ CurrencyCodeEnum$1["LRD"] = "LRD";
98
+ CurrencyCodeEnum$1["LSL"] = "LSL";
99
+ CurrencyCodeEnum$1["LYD"] = "LYD";
100
+ CurrencyCodeEnum$1["MAD"] = "MAD";
101
+ CurrencyCodeEnum$1["MDL"] = "MDL";
102
+ CurrencyCodeEnum$1["MGA"] = "MGA";
103
+ CurrencyCodeEnum$1["MKD"] = "MKD";
104
+ CurrencyCodeEnum$1["MMK"] = "MMK";
105
+ CurrencyCodeEnum$1["MNT"] = "MNT";
106
+ CurrencyCodeEnum$1["MOP"] = "MOP";
107
+ CurrencyCodeEnum$1["MRU"] = "MRU";
108
+ CurrencyCodeEnum$1["MUR"] = "MUR";
109
+ CurrencyCodeEnum$1["MVR"] = "MVR";
110
+ CurrencyCodeEnum$1["MWK"] = "MWK";
111
+ CurrencyCodeEnum$1["MXN"] = "MXN";
112
+ CurrencyCodeEnum$1["MXV"] = "MXV";
113
+ CurrencyCodeEnum$1["MYR"] = "MYR";
114
+ CurrencyCodeEnum$1["MZN"] = "MZN";
115
+ CurrencyCodeEnum$1["NAD"] = "NAD";
116
+ CurrencyCodeEnum$1["NGN"] = "NGN";
117
+ CurrencyCodeEnum$1["NIO"] = "NIO";
118
+ CurrencyCodeEnum$1["NOK"] = "NOK";
119
+ CurrencyCodeEnum$1["NPR"] = "NPR";
120
+ CurrencyCodeEnum$1["NZD"] = "NZD";
121
+ CurrencyCodeEnum$1["OMR"] = "OMR";
122
+ CurrencyCodeEnum$1["PAB"] = "PAB";
123
+ CurrencyCodeEnum$1["PEN"] = "PEN";
124
+ CurrencyCodeEnum$1["PGK"] = "PGK";
125
+ CurrencyCodeEnum$1["PHP"] = "PHP";
126
+ CurrencyCodeEnum$1["PKR"] = "PKR";
127
+ CurrencyCodeEnum$1["PLN"] = "PLN";
128
+ CurrencyCodeEnum$1["PYG"] = "PYG";
129
+ CurrencyCodeEnum$1["QAR"] = "QAR";
130
+ CurrencyCodeEnum$1["RON"] = "RON";
131
+ CurrencyCodeEnum$1["RSD"] = "RSD";
132
+ CurrencyCodeEnum$1["RUB"] = "RUB";
133
+ CurrencyCodeEnum$1["RWF"] = "RWF";
134
+ CurrencyCodeEnum$1["SAR"] = "SAR";
135
+ CurrencyCodeEnum$1["SBD"] = "SBD";
136
+ CurrencyCodeEnum$1["SCR"] = "SCR";
137
+ CurrencyCodeEnum$1["SDG"] = "SDG";
138
+ CurrencyCodeEnum$1["SEK"] = "SEK";
139
+ CurrencyCodeEnum$1["SGD"] = "SGD";
140
+ CurrencyCodeEnum$1["SHP"] = "SHP";
141
+ CurrencyCodeEnum$1["SLL"] = "SLL";
142
+ CurrencyCodeEnum$1["SOS"] = "SOS";
143
+ CurrencyCodeEnum$1["SRD"] = "SRD";
144
+ CurrencyCodeEnum$1["SSP"] = "SSP";
145
+ CurrencyCodeEnum$1["STN"] = "STN";
146
+ CurrencyCodeEnum$1["SVC"] = "SVC";
147
+ CurrencyCodeEnum$1["SYP"] = "SYP";
148
+ CurrencyCodeEnum$1["SZL"] = "SZL";
149
+ CurrencyCodeEnum$1["THB"] = "THB";
150
+ CurrencyCodeEnum$1["TJS"] = "TJS";
151
+ CurrencyCodeEnum$1["TMT"] = "TMT";
152
+ CurrencyCodeEnum$1["TND"] = "TND";
153
+ CurrencyCodeEnum$1["TOP"] = "TOP";
154
+ CurrencyCodeEnum$1["TRY"] = "TRY";
155
+ CurrencyCodeEnum$1["TTD"] = "TTD";
156
+ CurrencyCodeEnum$1["TWD"] = "TWD";
157
+ CurrencyCodeEnum$1["TZS"] = "TZS";
158
+ CurrencyCodeEnum$1["UAH"] = "UAH";
159
+ CurrencyCodeEnum$1["UGX"] = "UGX";
160
+ CurrencyCodeEnum$1["USD"] = "USD";
161
+ CurrencyCodeEnum$1["USN"] = "USN";
162
+ CurrencyCodeEnum$1["UYI"] = "UYI";
163
+ CurrencyCodeEnum$1["UYU"] = "UYU";
164
+ CurrencyCodeEnum$1["UYW"] = "UYW";
165
+ CurrencyCodeEnum$1["UZS"] = "UZS";
166
+ CurrencyCodeEnum$1["VED"] = "VED";
167
+ CurrencyCodeEnum$1["VES"] = "VES";
168
+ CurrencyCodeEnum$1["VND"] = "VND";
169
+ CurrencyCodeEnum$1["VUV"] = "VUV";
170
+ CurrencyCodeEnum$1["WST"] = "WST";
171
+ CurrencyCodeEnum$1["XAF"] = "XAF";
172
+ CurrencyCodeEnum$1["XAG"] = "XAG";
173
+ CurrencyCodeEnum$1["XAU"] = "XAU";
174
+ CurrencyCodeEnum$1["XBA"] = "XBA";
175
+ CurrencyCodeEnum$1["XBB"] = "XBB";
176
+ CurrencyCodeEnum$1["XBC"] = "XBC";
177
+ CurrencyCodeEnum$1["XBD"] = "XBD";
178
+ CurrencyCodeEnum$1["XCD"] = "XCD";
179
+ CurrencyCodeEnum$1["XDR"] = "XDR";
180
+ CurrencyCodeEnum$1["XOF"] = "XOF";
181
+ CurrencyCodeEnum$1["XPD"] = "XPD";
182
+ CurrencyCodeEnum$1["XPF"] = "XPF";
183
+ CurrencyCodeEnum$1["XPT"] = "XPT";
184
+ CurrencyCodeEnum$1["XSU"] = "XSU";
185
+ CurrencyCodeEnum$1["XUA"] = "XUA";
186
+ CurrencyCodeEnum$1["XXX"] = "XXX";
187
+ CurrencyCodeEnum$1["YER"] = "YER";
188
+ CurrencyCodeEnum$1["ZAR"] = "ZAR";
189
+ CurrencyCodeEnum$1["ZMW"] = "ZMW";
190
+ CurrencyCodeEnum$1["ZWL"] = "ZWL";
191
+ return CurrencyCodeEnum$1;
192
+ }({});
193
+
194
+ //#endregion
195
+ exports.CurrencyCodeEnum = CurrencyCodeEnum;
196
+ //# sourceMappingURL=index4.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index4.cjs","names":[],"sources":["../src/types/currencies.d.ts"],"sourcesContent":["/**\n * Represents the allowed ISO-4217 3-letter currency codes.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/currencies/\n */\nexport type CurrencyCode =\n | 'AED'\n | 'AFN'\n | 'ALL'\n | 'AMD'\n | 'ANG'\n | 'AOA'\n | 'ARS'\n | 'AUD'\n | 'AWG'\n | 'AZN'\n | 'BAM'\n | 'BBD'\n | 'BDT'\n | 'BGN'\n | 'BHD'\n | 'BIF'\n | 'BMD'\n | 'BND'\n | 'BOB'\n | 'BOV'\n | 'BRL'\n | 'BSD'\n | 'BTN'\n | 'BWP'\n | 'BYN'\n | 'BZD'\n | 'CAD'\n | 'CDF'\n | 'CHE'\n | 'CHF'\n | 'CHW'\n | 'CLF'\n | 'CLP'\n | 'CNY'\n | 'COP'\n | 'COU'\n | 'CRC'\n | 'CUC'\n | 'CUP'\n | 'CVE'\n | 'CZK'\n | 'DJF'\n | 'DKK'\n | 'DOP'\n | 'DZD'\n | 'EGP'\n | 'ERN'\n | 'ETB'\n | 'EUR'\n | 'FJD'\n | 'FKP'\n | 'GBP'\n | 'GEL'\n | 'GHS'\n | 'GIP'\n | 'GMD'\n | 'GNF'\n | 'GTQ'\n | 'GYD'\n | 'HKD'\n | 'HNL'\n | 'HRK'\n | 'HTG'\n | 'HUF'\n | 'IDR'\n | 'ILS'\n | 'INR'\n | 'IQD'\n | 'IRR'\n | 'ISK'\n | 'JMD'\n | 'JOD'\n | 'JPY'\n | 'KES'\n | 'KGS'\n | 'KHR'\n | 'KMF'\n | 'KPW'\n | 'KRW'\n | 'KWD'\n | 'KYD'\n | 'KZT'\n | 'LAK'\n | 'LBP'\n | 'LKR'\n | 'LRD'\n | 'LSL'\n | 'LYD'\n | 'MAD'\n | 'MDL'\n | 'MGA'\n | 'MKD'\n | 'MMK'\n | 'MNT'\n | 'MOP'\n | 'MRU'\n | 'MUR'\n | 'MVR'\n | 'MWK'\n | 'MXN'\n | 'MXV'\n | 'MYR'\n | 'MZN'\n | 'NAD'\n | 'NGN'\n | 'NIO'\n | 'NOK'\n | 'NPR'\n | 'NZD'\n | 'OMR'\n | 'PAB'\n | 'PEN'\n | 'PGK'\n | 'PHP'\n | 'PKR'\n | 'PLN'\n | 'PYG'\n | 'QAR'\n | 'RON'\n | 'RSD'\n | 'RUB'\n | 'RWF'\n | 'SAR'\n | 'SBD'\n | 'SCR'\n | 'SDG'\n | 'SEK'\n | 'SGD'\n | 'SHP'\n | 'SLL'\n | 'SOS'\n | 'SRD'\n | 'SSP'\n | 'STN'\n | 'SVC'\n | 'SYP'\n | 'SZL'\n | 'THB'\n | 'TJS'\n | 'TMT'\n | 'TND'\n | 'TOP'\n | 'TRY'\n | 'TTD'\n | 'TWD'\n | 'TZS'\n | 'UAH'\n | 'UGX'\n | 'USD'\n | 'USN'\n | 'UYI'\n | 'UYU'\n | 'UYW'\n | 'UZS'\n | 'VED'\n | 'VES'\n | 'VND'\n | 'VUV'\n | 'WST'\n | 'XAF'\n | 'XAG'\n | 'XAU'\n | 'XBA'\n | 'XBB'\n | 'XBC'\n | 'XBD'\n | 'XCD'\n | 'XDR'\n | 'XOF'\n | 'XPD'\n | 'XPF'\n | 'XPT'\n | 'XSU'\n | 'XUA'\n | 'XXX'\n | 'YER'\n | 'ZAR'\n | 'ZMW'\n | 'ZWL'\n\n/**\n * Enum representing the allowed ISO-4217 3-letter currency codes.\n * Provides a more readable way to reference currency codes.\n *\n * @example\n * const currency = CurrencyCodeEnum.MYR;\n * console.log(currency); // Output: \"MYR\"\n */\nexport enum CurrencyCodeEnum {\n AED = 'AED',\n AFN = 'AFN',\n ALL = 'ALL',\n AMD = 'AMD',\n ANG = 'ANG',\n AOA = 'AOA',\n ARS = 'ARS',\n AUD = 'AUD',\n AWG = 'AWG',\n AZN = 'AZN',\n BAM = 'BAM',\n BBD = 'BBD',\n BDT = 'BDT',\n BGN = 'BGN',\n BHD = 'BHD',\n BIF = 'BIF',\n BMD = 'BMD',\n BND = 'BND',\n BOB = 'BOB',\n BOV = 'BOV',\n BRL = 'BRL',\n BSD = 'BSD',\n BTN = 'BTN',\n BWP = 'BWP',\n BYN = 'BYN',\n BZD = 'BZD',\n CAD = 'CAD',\n CDF = 'CDF',\n CHE = 'CHE',\n CHF = 'CHF',\n CHW = 'CHW',\n CLF = 'CLF',\n CLP = 'CLP',\n CNY = 'CNY',\n COP = 'COP',\n COU = 'COU',\n CRC = 'CRC',\n CUC = 'CUC',\n CUP = 'CUP',\n CVE = 'CVE',\n CZK = 'CZK',\n DJF = 'DJF',\n DKK = 'DKK',\n DOP = 'DOP',\n DZD = 'DZD',\n EGP = 'EGP',\n ERN = 'ERN',\n ETB = 'ETB',\n EUR = 'EUR',\n FJD = 'FJD',\n FKP = 'FKP',\n GBP = 'GBP',\n GEL = 'GEL',\n GHS = 'GHS',\n GIP = 'GIP',\n GMD = 'GMD',\n GNF = 'GNF',\n GTQ = 'GTQ',\n GYD = 'GYD',\n HKD = 'HKD',\n HNL = 'HNL',\n HRK = 'HRK',\n HTG = 'HTG',\n HUF = 'HUF',\n IDR = 'IDR',\n ILS = 'ILS',\n INR = 'INR',\n IQD = 'IQD',\n IRR = 'IRR',\n ISK = 'ISK',\n JMD = 'JMD',\n JOD = 'JOD',\n JPY = 'JPY',\n KES = 'KES',\n KGS = 'KGS',\n KHR = 'KHR',\n KMF = 'KMF',\n KPW = 'KPW',\n KRW = 'KRW',\n KWD = 'KWD',\n KYD = 'KYD',\n KZT = 'KZT',\n LAK = 'LAK',\n LBP = 'LBP',\n LKR = 'LKR',\n LRD = 'LRD',\n LSL = 'LSL',\n LYD = 'LYD',\n MAD = 'MAD',\n MDL = 'MDL',\n MGA = 'MGA',\n MKD = 'MKD',\n MMK = 'MMK',\n MNT = 'MNT',\n MOP = 'MOP',\n MRU = 'MRU',\n MUR = 'MUR',\n MVR = 'MVR',\n MWK = 'MWK',\n MXN = 'MXN',\n MXV = 'MXV',\n MYR = 'MYR',\n MZN = 'MZN',\n NAD = 'NAD',\n NGN = 'NGN',\n NIO = 'NIO',\n NOK = 'NOK',\n NPR = 'NPR',\n NZD = 'NZD',\n OMR = 'OMR',\n PAB = 'PAB',\n PEN = 'PEN',\n PGK = 'PGK',\n PHP = 'PHP',\n PKR = 'PKR',\n PLN = 'PLN',\n PYG = 'PYG',\n QAR = 'QAR',\n RON = 'RON',\n RSD = 'RSD',\n RUB = 'RUB',\n RWF = 'RWF',\n SAR = 'SAR',\n SBD = 'SBD',\n SCR = 'SCR',\n SDG = 'SDG',\n SEK = 'SEK',\n SGD = 'SGD',\n SHP = 'SHP',\n SLL = 'SLL',\n SOS = 'SOS',\n SRD = 'SRD',\n SSP = 'SSP',\n STN = 'STN',\n SVC = 'SVC',\n SYP = 'SYP',\n SZL = 'SZL',\n THB = 'THB',\n TJS = 'TJS',\n TMT = 'TMT',\n TND = 'TND',\n TOP = 'TOP',\n TRY = 'TRY',\n TTD = 'TTD',\n TWD = 'TWD',\n TZS = 'TZS',\n UAH = 'UAH',\n UGX = 'UGX',\n USD = 'USD',\n USN = 'USN',\n UYI = 'UYI',\n UYU = 'UYU',\n UYW = 'UYW',\n UZS = 'UZS',\n VED = 'VED',\n VES = 'VES',\n VND = 'VND',\n VUV = 'VUV',\n WST = 'WST',\n XAF = 'XAF',\n XAG = 'XAG',\n XAU = 'XAU',\n XBA = 'XBA',\n XBB = 'XBB',\n XBC = 'XBC',\n XBD = 'XBD',\n XCD = 'XCD',\n XDR = 'XDR',\n XOF = 'XOF',\n XPD = 'XPD',\n XPF = 'XPF',\n XPT = 'XPT',\n XSU = 'XSU',\n XUA = 'XUA',\n XXX = 'XXX',\n YER = 'YER',\n ZAR = 'ZAR',\n ZMW = 'ZMW',\n ZWL = 'ZWL',\n}\n\n/**\n * Interface representing a currency entry.\n * Contains the ISO-4217 code and the currency name.\n */\nexport interface Currency {\n code: CurrencyCode\n name: string\n}\n"],"mappings":";;;;;;;;;;AAiMA,IAAY,gEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
package/dist/index5.cjs CHANGED
@@ -1,3 +0,0 @@
1
- const require_notificationManagement = require('./notificationManagement-C_qrFwWL.cjs');
2
-
3
- exports.getNotifications = require_notificationManagement.getNotifications;
package/dist/index6.cjs CHANGED
@@ -1,3 +1,25 @@
1
- const require_platformLogin = require('./platformLogin-CPiPiVUh.cjs');
2
1
 
3
- exports.platformLogin = require_platformLogin.platformLogin;
2
+ //#region src/types/e-invoice.d.ts
3
+ /**
4
+ * Enum representing the allowed codes for e-Invoice types with descriptive names.
5
+ * Provides a more readable way to reference e-Invoice types compared to using raw codes.
6
+ *
7
+ * @example
8
+ * const invoiceCode = EInvoiceTypeCodeEnum.Invoice;
9
+ * console.log(invoiceCode); // Output: "01"
10
+ */
11
+ let EInvoiceTypeCodeEnum = /* @__PURE__ */ function(EInvoiceTypeCodeEnum$1) {
12
+ EInvoiceTypeCodeEnum$1["Invoice"] = "01";
13
+ EInvoiceTypeCodeEnum$1["CreditNote"] = "02";
14
+ EInvoiceTypeCodeEnum$1["DebitNote"] = "03";
15
+ EInvoiceTypeCodeEnum$1["RefundNote"] = "04";
16
+ EInvoiceTypeCodeEnum$1["SelfBilledInvoice"] = "11";
17
+ EInvoiceTypeCodeEnum$1["SelfBilledCreditNote"] = "12";
18
+ EInvoiceTypeCodeEnum$1["SelfBilledDebitNote"] = "13";
19
+ EInvoiceTypeCodeEnum$1["SelfBilledRefundNote"] = "14";
20
+ return EInvoiceTypeCodeEnum$1;
21
+ }({});
22
+
23
+ //#endregion
24
+ exports.EInvoiceTypeCodeEnum = EInvoiceTypeCodeEnum;
25
+ //# sourceMappingURL=index6.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index6.cjs","names":[],"sources":["../src/types/e-invoice.d.ts"],"sourcesContent":["/**\n * Represents the allowed codes for e-Invoice types.\n * Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/e-invoice-types/\n */\nexport type EInvoiceTypeCode =\n | '01' // Invoice\n | '02' // Credit Note\n | '03' // Debit Note\n | '04' // Refund Note\n | '11' // Self-billed Invoice\n | '12' // Self-billed Credit Note\n | '13' // Self-billed Debit Note\n | '14' // Self-billed Refund Note\n\n/**\n * Interface representing an e-Invoice type entry.\n * Contains the code and its corresponding description.\n */\nexport interface EInvoiceType {\n code: EInvoiceTypeCode\n description: string\n}\n\n/**\n * Enum representing the allowed codes for e-Invoice types with descriptive names.\n * Provides a more readable way to reference e-Invoice types compared to using raw codes.\n *\n * @example\n * const invoiceCode = EInvoiceTypeCodeEnum.Invoice;\n * console.log(invoiceCode); // Output: \"01\"\n */\nexport enum EInvoiceTypeCodeEnum {\n Invoice = '01',\n CreditNote = '02',\n DebitNote = '03',\n RefundNote = '04',\n SelfBilledInvoice = '11',\n SelfBilledCreditNote = '12',\n SelfBilledDebitNote = '13',\n SelfBilledRefundNote = '14',\n}\n"],"mappings":";;;;;;;;;;AA+BA,IAAY,wEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"index63.cts","names":[],"sources":["../src/api/documentTypeManagement.d.ts"],"sourcesContent":["import type { DocumentTypesResponse, DocumentTypeResponse, DocumentTypeVersionResponse, StandardError, Fetch } from '../types';\ninterface DocumentTypeContext {\n fetch: Fetch;\n}\nexport declare function getDocumentTypes(context: DocumentTypeContext): Promise<DocumentTypesResponse>;\nexport declare function getDocumentType(context: DocumentTypeContext, id: number): Promise<DocumentTypeResponse | StandardError>;\nexport declare function getDocumentTypeVersion(context: DocumentTypeContext, id: number, versionId: number): Promise<DocumentTypeVersionResponse | StandardError>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,sBAAsB,CAAC,KAAG,MAAA,KAAA;AAC9B,IAAW,mBAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAChB,IAAA,kBAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACA,IAAW,yBAAyB;CAAC;CAAK,MAAM;CAAqB,MAAM;CAA2B,MAAA;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"index63.cts","names":[],"sources":["../src/api/documentTypeManagement.d.ts"],"sourcesContent":["import type { DocumentTypeResponse, DocumentTypesResponse, DocumentTypeVersionResponse, Fetch } from '../types';\ninterface DocumentTypeContext {\n fetch: Fetch;\n}\nexport declare function getDocumentTypes(context: DocumentTypeContext): Promise<DocumentTypesResponse>;\nexport declare function getDocumentType(context: DocumentTypeContext, id: number): Promise<DocumentTypeResponse>;\nexport declare function getDocumentTypeVersion(context: DocumentTypeContext, id: number, versionId: number): Promise<DocumentTypeVersionResponse>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,sBAAsB,CAAC,KAAG,MAAA,KAAA;AAC9B,IAAW,mBAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAChB,IAAA,kBAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACA,IAAW,yBAAyB;CAAC;CAAK,MAAM;CAAqB,MAAM;CAA2B,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index64.cts","names":[],"sources":["../src/api/notificationManagement.d.ts"],"sourcesContent":["import type { NotificationResponse, NotificationSearchParams, StandardError, Fetch } from '../types';\ninterface NotificationContext {\n fetch: Fetch;\n}\nexport declare function getNotifications(context: NotificationContext, params: NotificationSearchParams): Promise<NotificationResponse | StandardError>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,sBAAsB,CAAC,KAAG,MAAA,KAAA;AAC9B,IAAW,mBAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"index64.cts","names":[],"sources":["../src/api/notificationManagement.d.ts"],"sourcesContent":["import type { Fetch, NotificationResponse, NotificationSearchParams } from '../types';\ninterface NotificationContext {\n fetch: Fetch;\n}\nexport declare function getNotifications(context: NotificationContext, params: NotificationSearchParams): Promise<NotificationResponse>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,sBAAsB,CAAC,KAAG,MAAA,KAAA;AAC9B,IAAW,mBAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index66.cts","names":[],"sources":["../src/api/taxpayerValidation.d.ts"],"sourcesContent":["import type { Fetch, RegistrationType, StandardError, TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse } from '../types';\ninterface TaxpayerContext {\n fetch: Fetch;\n debug: boolean;\n}\nexport declare function tinSearch(context: TaxpayerContext, params: TinSearchParams): Promise<TinSearchResponse | StandardError>;\nexport declare function verifyTin(context: TaxpayerContext, tin: string, idType: RegistrationType, idValue: string): Promise<boolean>;\nexport declare function taxpayerQRCode(context: TaxpayerContext, qrCodeText: string): Promise<TaxpayerQRCodeResponse | StandardError>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,kBAAkB,CAAC,KAAG,MAAA,KAAA;AAC1B,IAAW,YAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAChB,IAAW,YAAO;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAClB,IAAA,iBAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"index66.cts","names":[],"sources":["../src/api/taxpayerValidation.d.ts"],"sourcesContent":["import type { Fetch, RegistrationType, TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse } from '../types';\ninterface TaxpayerContext {\n fetch: Fetch;\n debug: boolean;\n}\nexport declare function tinSearch(context: TaxpayerContext, params: TinSearchParams): Promise<TinSearchResponse>;\nexport declare function verifyTin(context: TaxpayerContext, tin: string, idType: RegistrationType, idValue: string): Promise<boolean>;\nexport declare function taxpayerQRCode(context: TaxpayerContext, qrCodeText: string): Promise<TaxpayerQRCodeResponse>;\nexport {};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAI,kBAAkB,CAAC,KAAG,MAAA,KAAA;AAC1B,IAAW,YAAK;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAChB,IAAW,YAAO;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AAClB,IAAA,iBAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index67.cts","names":[],"sources":["../src/index.d.ts"],"sourcesContent":["import { DocumentStatus, DocumentSummary, DocumentTypeResponse, DocumentTypesResponse, DocumentTypeVersionResponse, DocumentValidationResult, DocumentValidationStepResult, EInvoiceTypeCode, InvoiceV1_1, NotificationResponse, NotificationSearchParams, RegistrationType, StandardError, SubmissionResponse, SubmissionStatus, TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse } from './types';\nexport type * from './types/index.d.ts';\nexport declare class MyInvoisClient {\n private readonly baseUrl;\n private readonly clientId;\n private readonly clientSecret;\n private readonly onBehalfOf?;\n private readonly signingCredentials;\n private readonly debug;\n private token;\n private tokenExpiration;\n constructor(clientId: string, clientSecret: string, environment: 'sandbox' | 'production', certificatePem: string, privateKeyPem: string, onBehalfOf?: string, debug?: boolean);\n private refreshToken;\n private getToken;\n private fetch;\n /**\n * Validates a TIN against a NRIC/ARMY/PASSPORT/BRN (Business Registration Number)\n *\n * This method verifies if a given Tax Identification Number (TIN) is valid by checking it against\n * the provided identification type and value through the MyInvois platform's validation service.\n *\n * @param tin - The TIN to validate\n * @param idType - The type of ID to validate against ('NRIC', 'ARMY', 'PASSPORT', or 'BRN')\n * @param idValue - The value of the ID to validate against\n * @returns Promise resolving to true if the TIN is valid, false otherwise\n *\n * @example\n * ```typescript\n * // Validate TIN against NRIC\n * const isValid = await client.verifyTin('C12345678901234', 'NRIC', '123456789012');\n * if (isValid) {\n * console.log('TIN is valid');\n * }\n *\n * // Validate TIN against Business Registration Number\n * const isValidBusiness = await client.verifyTin('C98765432109876', 'BRN', '123456-K');\n * ```\n *\n * @remarks\n * - Returns false if validation fails due to network errors or invalid credentials\n * - Debug mode provides error logging for troubleshooting validation failures\n * - This is a non-blocking validation that won't throw exceptions on failure\n */\n verifyTin(tin: string, idType: RegistrationType, idValue: string): Promise<boolean>;\n /**\n * Searches for a Tax Identification Number (TIN) using taxpayer information.\n *\n * This method allows searching for a TIN using either a taxpayer name or a combination\n * of identification type and value. The search is flexible and supports multiple\n * identification types including NRIC, ARMY, PASSPORT, and BRN.\n *\n * @param params - Search parameters object\n * @param params.taxpayerName - Optional name of the taxpayer to search for\n * @param params.idType - Optional type of ID to search with (NRIC, ARMY, PASSPORT, BRN)\n * @param params.idValue - Optional value of the ID to search with\n * @returns Promise resolving to TIN search response or standard error\n *\n * @example\n * ```typescript\n * // Search by taxpayer name\n * const result = await client.searchTin({ taxpayerName: 'John Doe' });\n * if ('tin' in result) {\n * console.log('Found TIN:', result.tin);\n * }\n *\n * // Search by ID type and value\n * const result = await client.searchTin({\n * idType: 'NRIC',\n * idValue: '123456789012'\n * });\n * ```\n *\n * @remarks\n * - Either taxpayerName or both idType and idValue must be provided\n * - Returns StandardError object if search criteria are invalid or inconclusive\n * - Debug mode provides detailed error logging for troubleshooting\n * - Search results are not guaranteed to be unique\n */\n searchTin(params: TinSearchParams): Promise<TinSearchResponse | StandardError>;\n /**\n * Retrieves taxpayer information from a QR code.\n *\n * This method decodes a QR code containing taxpayer information and returns\n * detailed taxpayer data including TIN, name, contact details, and business information.\n *\n * @param qrCodeText - The QR code text to decode\n * @returns Promise resolving to taxpayer QR code response or standard error\n *\n * @example\n * ```typescript\n * // Get taxpayer info from QR code\n * const taxpayerInfo = await client.getTaxpayerQRCode('QR_CODE_TEXT');\n * if ('tin' in taxpayerInfo) {\n * console.log('Taxpayer TIN:', taxpayerInfo.tin);\n * console.log('Business Name:', taxpayerInfo.name);\n * console.log('Address:', taxpayerInfo.addressLine1);\n * }\n * ```\n *\n * @remarks\n * - QR code must be in the correct format specified by MyInvois\n * - Returns StandardError if QR code is invalid or cannot be decoded\n * - Debug mode provides detailed error logging\n */\n getTaxpayerQRCode(qrCodeText: string): Promise<TaxpayerQRCodeResponse | StandardError>;\n /**\n * Performs an action on a document such as rejection or cancellation.\n *\n * This method allows updating the status of a document to either rejected or cancelled,\n * along with providing a reason for the action. Useful for managing document workflow\n * and maintaining audit trails.\n *\n * @param documentUid - The unique identifier of the document\n * @param status - The new status to set ('rejected' or 'cancelled')\n * @param reason - The reason for the status change\n * @returns Promise resolving to document action response containing UUID, status, and any errors\n *\n * @example\n * ```typescript\n * // Reject a document with reason\n * const result = await client.performDocumentAction(\n * 'doc-123',\n * 'rejected',\n * 'Invalid tax calculation'\n * );\n *\n * // Cancel a document\n * const result = await client.performDocumentAction(\n * 'doc-456',\n * 'cancelled',\n * 'Duplicate submission'\n * );\n * ```\n *\n * @remarks\n * - Only valid for documents in appropriate states\n * - Reason is required and should be descriptive\n * - Action is irreversible once completed\n * - Returns error if document cannot be found or action is invalid\n */\n performDocumentAction(documentUid: string, status: 'rejected' | 'cancelled', reason: string): Promise<{\n uuid: string;\n status: string;\n error: StandardError;\n }>;\n /**\n * Submits one or more e-invoice documents to the MyInvois platform for processing.\n *\n * This method digitally signs each document using the provided certificate and private key,\n * generates document hashes, encodes them for submission, and sends them to the platform.\n * The method includes comprehensive validation warnings for document size and count limits.\n *\n * @param documents - Array of InvoiceV1_1 documents to be submitted\n * @returns Promise resolving to submission response containing the submission data and HTTP status\n * @throws {Error} If PRIVATE_KEY or CERTIFICATE environment variables are missing\n * @throws {Error} If document signing, encoding, or API submission fails\n *\n * @example\n * ```typescript\n * // Submit a single invoice\n * const result = await client.submitDocument([invoiceData]);\n * console.log(result.data.submissionUid); // Track submission with this UID\n *\n * // Submit multiple invoices\n * const result = await client.submitDocument([invoice1, invoice2, invoice3]);\n * if (result.status === 202) {\n * console.log('Documents submitted successfully');\n * }\n * ```\n *\n * @remarks\n * - Requires PRIVATE_KEY and CERTIFICATE environment variables for document signing\n * - Each document is digitally signed with XML-DSIG before submission\n * - Documents are base64-encoded for transmission\n * - API limits: Max 100 documents per submission, 5MB total payload, 300KB per document\n * - Debug mode provides detailed logging of payload sizes and validation warnings\n * - Returns HTTP 202 for successful submissions that require processing\n */\n submitDocument(documents: InvoiceV1_1[]): Promise<{\n data: SubmissionResponse;\n status: number;\n }>;\n /**\n * Polls the MyInvois platform to get the current status of a document submission.\n *\n * This method continuously checks the submission status until it receives a final result\n * (Valid or Invalid) or reaches the maximum retry limit. It's designed to handle the\n * asynchronous nature of document processing on the MyInvois platform.\n *\n * @param submissionUid - The unique identifier of the submission to check\n * @param pollInterval - Time in milliseconds between status checks (default: 1000ms)\n * @param maxRetries - Maximum number of retry attempts (default: 10)\n * @returns Promise resolving to submission status object with document summary and any errors\n *\n * @example\n * ```typescript\n * // Check submission status with default polling\n * const result = await client.getSubmissionStatus('submission-uid-123');\n * if (result.status === 'Valid') {\n * console.log('All documents processed successfully');\n * console.log('Document summaries:', result.documentSummary);\n * }\n *\n * // Custom polling interval and retry count\n * const result = await client.getSubmissionStatus(\n * 'submission-uid-123',\n * 2000, // Poll every 2 seconds\n * 20 // Try up to 20 times\n * );\n * ```\n *\n * @remarks\n * - Automatically retries on network errors until maxRetries is reached\n * - Returns 'Invalid' status with timeout error if submission processing takes too long\n * - Debug mode provides detailed logging of polling attempts and responses\n * - Use reasonable poll intervals to avoid overwhelming the API\n */\n getSubmissionStatus(submissionUid: string, pollInterval?: number, maxRetries?: number): Promise<{\n status: SubmissionStatus;\n documentSummary?: DocumentSummary[];\n error?: {\n code: string;\n message: string | null;\n target: string;\n details: {\n code: string;\n message: string;\n target: string;\n }[];\n };\n }>;\n /**\n * Retrieves a document by its unique identifier with the raw document content.\n *\n * @param documentUid - The unique identifier of the document to retrieve\n * @returns Promise resolving to document summary with raw document content as a string\n * @throws {Error} If the document is not found or request fails\n *\n * @example\n * ```typescript\n * const document = await client.getDocument('doc-uuid-123');\n * console.log(document.document); // Raw XML/JSON content\n * console.log(document.uuid); // Document UUID\n * ```\n */\n getDocument(documentUid: string): Promise<DocumentSummary & {\n document: string;\n }>;\n /**\n * Retrieves detailed information about a document including validation results.\n *\n * @param documentUid - The unique identifier of the document to get details for\n * @returns Promise resolving to document summary with detailed validation results\n * @throws {Error} If the document is not found or request fails\n *\n * @example\n * ```typescript\n * const details = await client.getDocumentDetails('doc-uuid-123');\n * console.log(details.validationResults.status); // 'Valid' | 'Invalid' | 'Processing'\n * console.log(details.validationResults.validationSteps); // Array of validation step results\n * ```\n */\n getDocumentDetails(documentUid: string): Promise<DocumentSummary & {\n validationResults: {\n status: DocumentValidationResult;\n validationSteps: DocumentValidationStepResult[];\n };\n }>;\n /**\n * Searches for documents based on various filter criteria.\n *\n * @param params - Search parameters object\n * @param params.uuid - Optional specific document UUID to search for\n * @param params.submissionDateFrom - Required start date for submission date range (ISO date string)\n * @param params.submissionDateTo - Optional end date for submission date range (ISO date string)\n * @param params.pageSize - Optional number of results per page (default handled by API)\n * @param params.pageNo - Optional page number for pagination (0-based)\n * @param params.issueDateFrom - Optional start date for issue date range (ISO date string)\n * @param params.issueDateTo - Optional end date for issue date range (ISO date string)\n * @param params.invoiceDirection - Optional filter by invoice direction ('Sent' or 'Received')\n * @param params.status - Optional filter by document status\n * @param params.documentType - Optional filter by e-invoice type code\n * @param params.searchQuery - Optional text search across uuid, buyerTIN, supplierTIN, buyerName, supplierName, internalID, total\n * @returns Promise resolving to array of document summaries matching the search criteria\n * @throws {Error} If the search request fails\n *\n * @example\n * ```typescript\n * // Search for documents submitted in the last 30 days\n * const documents = await client.searchDocuments({\n * submissionDateFrom: '2024-01-01',\n * submissionDateTo: '2024-01-31',\n * status: 'Valid',\n * pageSize: 10\n * });\n *\n * // Search by supplier name\n * const supplierDocs = await client.searchDocuments({\n * submissionDateFrom: '2024-01-01',\n * searchQuery: 'ACME Corp',\n * invoiceDirection: 'Received'\n * });\n * ```\n */\n searchDocuments({ uuid, submissionDateFrom, submissionDateTo, pageSize, pageNo, issueDateFrom, issueDateTo, invoiceDirection, status, documentType, searchQuery, }: {\n uuid?: string;\n submissionDateFrom: string;\n submissionDateTo?: string;\n pageSize?: number;\n pageNo?: number;\n issueDateFrom?: string;\n issueDateTo?: string;\n invoiceDirection?: 'Sent' | 'Received';\n status?: DocumentStatus;\n documentType?: EInvoiceTypeCode;\n searchQuery?: string;\n }): Promise<DocumentSummary[]>;\n /**\n * Retrieves notifications from the MyInvois platform based on specified search criteria.\n *\n * This method allows you to search for system notifications, alerts, and messages\n * sent by the MyInvois platform regarding document processing, system updates,\n * or account-related information.\n *\n * @param params - Search parameters object for filtering notifications\n * @param params.dateFrom - Optional start date for notification date range (ISO date string)\n * @param params.dateTo - Optional end date for notification date range (ISO date string)\n * @param params.type - Optional notification type filter\n * @param params.language - Optional language preference for notifications\n * @param params.status - Optional notification status filter\n * @param params.pageNo - Optional page number for pagination (0-based)\n * @param params.pageSize - Optional number of results per page\n * @returns Promise resolving to notification response object or standard error\n *\n * @example\n * ```typescript\n * // Get all notifications from the last 7 days\n * const notifications = await client.getNotifications({\n * dateFrom: '2024-01-01',\n * dateTo: '2024-01-07',\n * pageSize: 20\n * });\n *\n * // Get unread notifications only\n * const unreadNotifications = await client.getNotifications({\n * status: 0, // Assuming 0 = unread\n * language: 'en'\n * });\n *\n * // Paginated notification retrieval\n * const firstPage = await client.getNotifications({\n * dateFrom: '2024-01-01',\n * pageNo: 0,\n * pageSize: 10\n * });\n * ```\n *\n * @remarks\n * - All parameters are optional, allowing flexible filtering\n * - Returns paginated results when pageNo and pageSize are specified\n * - Date parameters should be in ISO format (YYYY-MM-DD)\n * - May return StandardError object if the request fails\n */\n getNotifications({ dateFrom, dateTo, type, language, status, pageNo, pageSize, }: NotificationSearchParams): Promise<NotificationResponse | StandardError>;\n getDocumentTypes(): Promise<DocumentTypesResponse | StandardError>;\n /**\n * Retrieves detailed information about a specific document type from the MyInvois platform.\n *\n * This method fetches metadata and configuration details for a specific document type,\n * including supported versions, validation rules, and structural requirements.\n * Useful for understanding document format requirements before submission.\n *\n * @param id - The unique identifier of the document type to retrieve\n * @returns Promise resolving to document type response object or standard error\n *\n * @example\n * ```typescript\n * // Get details for e-invoice document type\n * const invoiceType = await client.getDocumentType(1);\n * if ('id' in invoiceType) {\n * console.log('Document type name:', invoiceType.name);\n * console.log('Available versions:', invoiceType.versionNumber);\n * console.log('Description:', invoiceType.description);\n * }\n *\n * // Handle potential errors\n * const documentType = await client.getDocumentType(999);\n * if ('error' in documentType) {\n * console.error('Failed to retrieve document type:', documentType.error.message);\n * }\n * ```\n *\n * @remarks\n * - Returns StandardError object if the document type ID doesn't exist\n * - Document type information includes validation schemas and business rules\n * - Use this method to discover supported document formats and versions\n * - Essential for understanding submission requirements for different document types\n */\n getDocumentType(id: number): Promise<DocumentTypeResponse | StandardError>;\n /**\n * Retrieves detailed information about a specific version of a document type.\n *\n * This method fetches version-specific metadata, schema definitions, and validation rules\n * for a particular document type version. Essential for understanding the exact format\n * and requirements for document submission in a specific version.\n *\n * @param id - The unique identifier of the document type\n * @param versionId - The unique identifier of the specific version to retrieve\n * @returns Promise resolving to document type version response object or standard error\n *\n * @example\n * ```typescript\n * // Get specific version details for e-invoice\n * const invoiceV1_1 = await client.getDocumentTypeVersion(1, 1);\n * if ('id' in invoiceV1_1) {\n * console.log('Version number:', invoiceV1_1.versionNumber);\n * console.log('Schema:', invoiceV1_1.jsonSchema);\n * console.log('Status:', invoiceV1_1.status);\n * }\n *\n * // Compare different versions\n * const [v1_0, v1_1] = await Promise.all([\n * client.getDocumentTypeVersion(1, 0),\n * client.getDocumentTypeVersion(1, 1)\n * ]);\n *\n * // Handle version not found\n * const result = await client.getDocumentTypeVersion(1, 999);\n * if ('error' in result) {\n * console.error('Version not found:', result.error.message);\n * }\n * ```\n *\n * @remarks\n * - Returns StandardError object if document type ID or version ID doesn't exist\n * - Version information includes JSON schema for validation\n * - Different versions may have different validation rules and field requirements\n * - Use this to ensure your documents conform to the specific version requirements\n * - Version status indicates if the version is active, deprecated, or under development\n */\n getDocumentTypeVersion(id: number, versionId: number): Promise<DocumentTypeVersionResponse | StandardError>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAW,iBAAiB;CAAC;CAAK,MAAE;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"index67.cts","names":[],"sources":["../src/index.d.ts"],"sourcesContent":["import { DocumentStatus, DocumentSummary, DocumentTypeResponse, DocumentTypesResponse, DocumentTypeVersionResponse, DocumentValidationResult, DocumentValidationStepResult, EInvoiceTypeCode, InvoiceV1_1, NotificationResponse, NotificationSearchParams, RegistrationType, StandardError, SubmissionResponse, SubmissionStatus, TaxpayerQRCodeResponse, TinSearchParams, TinSearchResponse } from './types';\nexport type * from './types/index.d.ts';\nexport declare class MyInvoisClient {\n private readonly baseUrl;\n private readonly clientId;\n private readonly clientSecret;\n private readonly onBehalfOf?;\n private readonly signingCredentials;\n private readonly debug;\n private token;\n private tokenExpiration;\n constructor(clientId: string, clientSecret: string, environment: 'sandbox' | 'production', certificatePem: string, privateKeyPem: string, onBehalfOf?: string, debug?: boolean);\n private refreshToken;\n private getToken;\n private fetch;\n /**\n * Validates a TIN against a NRIC/ARMY/PASSPORT/BRN (Business Registration Number)\n *\n * This method verifies if a given Tax Identification Number (TIN) is valid by checking it against\n * the provided identification type and value through the MyInvois platform's validation service.\n *\n * @param tin - The TIN to validate\n * @param idType - The type of ID to validate against ('NRIC', 'ARMY', 'PASSPORT', or 'BRN')\n * @param idValue - The value of the ID to validate against\n * @returns Promise resolving to true if the TIN is valid, false otherwise\n *\n * @example\n * ```typescript\n * // Validate TIN against NRIC\n * const isValid = await client.verifyTin('C12345678901234', 'NRIC', '123456789012');\n * if (isValid) {\n * console.log('TIN is valid');\n * }\n *\n * // Validate TIN against Business Registration Number\n * const isValidBusiness = await client.verifyTin('C98765432109876', 'BRN', '123456-K');\n * ```\n *\n * @remarks\n * - Returns false if validation fails due to network errors or invalid credentials\n * - Debug mode provides error logging for troubleshooting validation failures\n * - This is a non-blocking validation that won't throw exceptions on failure\n */\n verifyTin(tin: string, idType: RegistrationType, idValue: string): Promise<boolean>;\n /**\n * Searches for a Tax Identification Number (TIN) using taxpayer information.\n *\n * This method allows searching for a TIN using either a taxpayer name or a combination\n * of identification type and value. The search is flexible and supports multiple\n * identification types including NRIC, ARMY, PASSPORT, and BRN.\n *\n * @param params - Search parameters object\n * @param params.taxpayerName - Optional name of the taxpayer to search for\n * @param params.idType - Optional type of ID to search with (NRIC, ARMY, PASSPORT, BRN)\n * @param params.idValue - Optional value of the ID to search with\n * @returns Promise resolving to TIN search response or standard error\n *\n * @example\n * ```typescript\n * // Search by taxpayer name\n * const result = await client.searchTin({ taxpayerName: 'John Doe' });\n * if ('tin' in result) {\n * console.log('Found TIN:', result.tin);\n * }\n *\n * // Search by ID type and value\n * const result = await client.searchTin({\n * idType: 'NRIC',\n * idValue: '123456789012'\n * });\n * ```\n *\n * @remarks\n * - Either taxpayerName or both idType and idValue must be provided\n * - Returns StandardError object if search criteria are invalid or inconclusive\n * - Debug mode provides detailed error logging for troubleshooting\n * - Search results are not guaranteed to be unique\n */\n searchTin(params: TinSearchParams): Promise<TinSearchResponse>;\n /**\n * Retrieves taxpayer information from a QR code.\n *\n * This method decodes a QR code containing taxpayer information and returns\n * detailed taxpayer data including TIN, name, contact details, and business information.\n *\n * @param qrCodeText - The QR code text to decode\n * @returns Promise resolving to taxpayer QR code response or standard error\n *\n * @example\n * ```typescript\n * // Get taxpayer info from QR code\n * const taxpayerInfo = await client.getTaxpayerQRCode('QR_CODE_TEXT');\n * if ('tin' in taxpayerInfo) {\n * console.log('Taxpayer TIN:', taxpayerInfo.tin);\n * console.log('Business Name:', taxpayerInfo.name);\n * console.log('Address:', taxpayerInfo.addressLine1);\n * }\n * ```\n *\n * @remarks\n * - QR code must be in the correct format specified by MyInvois\n * - Returns StandardError if QR code is invalid or cannot be decoded\n * - Debug mode provides detailed error logging\n */\n getTaxpayerQRCode(qrCodeText: string): Promise<TaxpayerQRCodeResponse>;\n /**\n * Performs an action on a document such as rejection or cancellation.\n *\n * This method allows updating the status of a document to either rejected or cancelled,\n * along with providing a reason for the action. Useful for managing document workflow\n * and maintaining audit trails.\n *\n * @param documentUid - The unique identifier of the document\n * @param status - The new status to set ('rejected' or 'cancelled')\n * @param reason - The reason for the status change\n * @returns Promise resolving to document action response containing UUID, status, and any errors\n *\n * @example\n * ```typescript\n * // Reject a document with reason\n * const result = await client.performDocumentAction(\n * 'doc-123',\n * 'rejected',\n * 'Invalid tax calculation'\n * );\n *\n * // Cancel a document\n * const result = await client.performDocumentAction(\n * 'doc-456',\n * 'cancelled',\n * 'Duplicate submission'\n * );\n * ```\n *\n * @remarks\n * - Only valid for documents in appropriate states\n * - Reason is required and should be descriptive\n * - Action is irreversible once completed\n * - Returns error if document cannot be found or action is invalid\n */\n performDocumentAction(documentUid: string, status: 'rejected' | 'cancelled', reason: string): Promise<{\n uuid: string;\n status: string;\n error: StandardError;\n }>;\n /**\n * Submits one or more e-invoice documents to the MyInvois platform for processing.\n *\n * This method digitally signs each document using the provided certificate and private key,\n * generates document hashes, encodes them for submission, and sends them to the platform.\n * The method includes comprehensive validation warnings for document size and count limits.\n *\n * @param documents - Array of InvoiceV1_1 documents to be submitted\n * @returns Promise resolving to submission response containing the submission data and HTTP status\n * @throws {Error} If PRIVATE_KEY or CERTIFICATE environment variables are missing\n * @throws {Error} If document signing, encoding, or API submission fails\n *\n * @example\n * ```typescript\n * // Submit a single invoice\n * const result = await client.submitDocument([invoiceData]);\n * console.log(result.data.submissionUid); // Track submission with this UID\n *\n * // Submit multiple invoices\n * const result = await client.submitDocument([invoice1, invoice2, invoice3]);\n * if (result.status === 202) {\n * console.log('Documents submitted successfully');\n * }\n * ```\n *\n * @remarks\n * - Requires PRIVATE_KEY and CERTIFICATE environment variables for document signing\n * - Each document is digitally signed with XML-DSIG before submission\n * - Documents are base64-encoded for transmission\n * - API limits: Max 100 documents per submission, 5MB total payload, 300KB per document\n * - Debug mode provides detailed logging of payload sizes and validation warnings\n * - Returns HTTP 202 for successful submissions that require processing\n */\n submitDocument(documents: InvoiceV1_1[]): Promise<{\n data: SubmissionResponse;\n status: number;\n }>;\n /**\n * Polls the MyInvois platform to get the current status of a document submission.\n *\n * This method continuously checks the submission status until it receives a final result\n * (Valid or Invalid) or reaches the maximum retry limit. It's designed to handle the\n * asynchronous nature of document processing on the MyInvois platform.\n *\n * @param submissionUid - The unique identifier of the submission to check\n * @param pollInterval - Time in milliseconds between status checks (default: 1000ms)\n * @param maxRetries - Maximum number of retry attempts (default: 10)\n * @returns Promise resolving to submission status object with document summary and any errors\n *\n * @example\n * ```typescript\n * // Check submission status with default polling\n * const result = await client.getSubmissionStatus('submission-uid-123');\n * if (result.status === 'Valid') {\n * console.log('All documents processed successfully');\n * console.log('Document summaries:', result.documentSummary);\n * }\n *\n * // Custom polling interval and retry count\n * const result = await client.getSubmissionStatus(\n * 'submission-uid-123',\n * 2000, // Poll every 2 seconds\n * 20 // Try up to 20 times\n * );\n * ```\n *\n * @remarks\n * - Automatically retries on network errors until maxRetries is reached\n * - Returns 'Invalid' status with timeout error if submission processing takes too long\n * - Debug mode provides detailed logging of polling attempts and responses\n * - Use reasonable poll intervals to avoid overwhelming the API\n */\n getSubmissionStatus(submissionUid: string, pollInterval?: number, maxRetries?: number): Promise<{\n status: SubmissionStatus;\n documentSummary?: DocumentSummary[];\n error?: {\n code: string;\n message: string | null;\n target: string;\n details: {\n code: string;\n message: string;\n target: string;\n }[];\n };\n }>;\n /**\n * Retrieves a document by its unique identifier with the raw document content.\n *\n * @param documentUid - The unique identifier of the document to retrieve\n * @returns Promise resolving to document summary with raw document content as a string\n * @throws {Error} If the document is not found or request fails\n *\n * @example\n * ```typescript\n * const document = await client.getDocument('doc-uuid-123');\n * console.log(document.document); // Raw XML/JSON content\n * console.log(document.uuid); // Document UUID\n * ```\n */\n getDocument(documentUid: string): Promise<DocumentSummary & {\n document: string;\n }>;\n /**\n * Retrieves detailed information about a document including validation results.\n *\n * @param documentUid - The unique identifier of the document to get details for\n * @returns Promise resolving to document summary with detailed validation results\n * @throws {Error} If the document is not found or request fails\n *\n * @example\n * ```typescript\n * const details = await client.getDocumentDetails('doc-uuid-123');\n * console.log(details.validationResults.status); // 'Valid' | 'Invalid' | 'Processing'\n * console.log(details.validationResults.validationSteps); // Array of validation step results\n * ```\n */\n getDocumentDetails(documentUid: string): Promise<DocumentSummary & {\n validationResults: {\n status: DocumentValidationResult;\n validationSteps: DocumentValidationStepResult[];\n };\n }>;\n /**\n * Searches for documents based on various filter criteria.\n *\n * @param params - Search parameters object\n * @param params.uuid - Optional specific document UUID to search for\n * @param params.submissionDateFrom - Required start date for submission date range (ISO date string)\n * @param params.submissionDateTo - Optional end date for submission date range (ISO date string)\n * @param params.pageSize - Optional number of results per page (default handled by API)\n * @param params.pageNo - Optional page number for pagination (0-based)\n * @param params.issueDateFrom - Optional start date for issue date range (ISO date string)\n * @param params.issueDateTo - Optional end date for issue date range (ISO date string)\n * @param params.invoiceDirection - Optional filter by invoice direction ('Sent' or 'Received')\n * @param params.status - Optional filter by document status\n * @param params.documentType - Optional filter by e-invoice type code\n * @param params.searchQuery - Optional text search across uuid, buyerTIN, supplierTIN, buyerName, supplierName, internalID, total\n * @returns Promise resolving to array of document summaries matching the search criteria\n * @throws {Error} If the search request fails\n *\n * @example\n * ```typescript\n * // Search for documents submitted in the last 30 days\n * const documents = await client.searchDocuments({\n * submissionDateFrom: '2024-01-01',\n * submissionDateTo: '2024-01-31',\n * status: 'Valid',\n * pageSize: 10\n * });\n *\n * // Search by supplier name\n * const supplierDocs = await client.searchDocuments({\n * submissionDateFrom: '2024-01-01',\n * searchQuery: 'ACME Corp',\n * invoiceDirection: 'Received'\n * });\n * ```\n */\n searchDocuments({ uuid, submissionDateFrom, submissionDateTo, pageSize, pageNo, issueDateFrom, issueDateTo, invoiceDirection, status, documentType, searchQuery, }: {\n uuid?: string;\n submissionDateFrom: string;\n submissionDateTo?: string;\n pageSize?: number;\n pageNo?: number;\n issueDateFrom?: string;\n issueDateTo?: string;\n invoiceDirection?: 'Sent' | 'Received';\n status?: DocumentStatus;\n documentType?: EInvoiceTypeCode;\n searchQuery?: string;\n }): Promise<DocumentSummary[]>;\n /**\n * Retrieves notifications from the MyInvois platform based on specified search criteria.\n *\n * This method allows you to search for system notifications, alerts, and messages\n * sent by the MyInvois platform regarding document processing, system updates,\n * or account-related information.\n *\n * @param params - Search parameters object for filtering notifications\n * @param params.dateFrom - Optional start date for notification date range (ISO date string)\n * @param params.dateTo - Optional end date for notification date range (ISO date string)\n * @param params.type - Optional notification type filter\n * @param params.language - Optional language preference for notifications\n * @param params.status - Optional notification status filter\n * @param params.pageNo - Optional page number for pagination (0-based)\n * @param params.pageSize - Optional number of results per page\n * @returns Promise resolving to notification response object or standard error\n *\n * @example\n * ```typescript\n * // Get all notifications from the last 7 days\n * const notifications = await client.getNotifications({\n * dateFrom: '2024-01-01',\n * dateTo: '2024-01-07',\n * pageSize: 20\n * });\n *\n * // Get unread notifications only\n * const unreadNotifications = await client.getNotifications({\n * status: 0, // Assuming 0 = unread\n * language: 'en'\n * });\n *\n * // Paginated notification retrieval\n * const firstPage = await client.getNotifications({\n * dateFrom: '2024-01-01',\n * pageNo: 0,\n * pageSize: 10\n * });\n * ```\n *\n * @remarks\n * - All parameters are optional, allowing flexible filtering\n * - Returns paginated results when pageNo and pageSize are specified\n * - Date parameters should be in ISO format (YYYY-MM-DD)\n * - May return StandardError object if the request fails\n */\n getNotifications({ dateFrom, dateTo, type, language, status, pageNo, pageSize, }: NotificationSearchParams): Promise<NotificationResponse>;\n getDocumentTypes(): Promise<DocumentTypesResponse>;\n /**\n * Retrieves detailed information about a specific document type from the MyInvois platform.\n *\n * This method fetches metadata and configuration details for a specific document type,\n * including supported versions, validation rules, and structural requirements.\n * Useful for understanding document format requirements before submission.\n *\n * @param id - The unique identifier of the document type to retrieve\n * @returns Promise resolving to document type response object or standard error\n *\n * @example\n * ```typescript\n * // Get details for e-invoice document type\n * const invoiceType = await client.getDocumentType(1);\n * if ('id' in invoiceType) {\n * console.log('Document type name:', invoiceType.name);\n * console.log('Available versions:', invoiceType.versionNumber);\n * console.log('Description:', invoiceType.description);\n * }\n *\n * // Handle potential errors\n * const documentType = await client.getDocumentType(999);\n * if ('error' in documentType) {\n * console.error('Failed to retrieve document type:', documentType.error.message);\n * }\n * ```\n *\n * @remarks\n * - Returns StandardError object if the document type ID doesn't exist\n * - Document type information includes validation schemas and business rules\n * - Use this method to discover supported document formats and versions\n * - Essential for understanding submission requirements for different document types\n */\n getDocumentType(id: number): Promise<DocumentTypeResponse>;\n /**\n * Retrieves detailed information about a specific version of a document type.\n *\n * This method fetches version-specific metadata, schema definitions, and validation rules\n * for a particular document type version. Essential for understanding the exact format\n * and requirements for document submission in a specific version.\n *\n * @param id - The unique identifier of the document type\n * @param versionId - The unique identifier of the specific version to retrieve\n * @returns Promise resolving to document type version response object or standard error\n *\n * @example\n * ```typescript\n * // Get specific version details for e-invoice\n * const invoiceV1_1 = await client.getDocumentTypeVersion(1, 1);\n * if ('id' in invoiceV1_1) {\n * console.log('Version number:', invoiceV1_1.versionNumber);\n * console.log('Schema:', invoiceV1_1.jsonSchema);\n * console.log('Status:', invoiceV1_1.status);\n * }\n *\n * // Compare different versions\n * const [v1_0, v1_1] = await Promise.all([\n * client.getDocumentTypeVersion(1, 0),\n * client.getDocumentTypeVersion(1, 1)\n * ]);\n *\n * // Handle version not found\n * const result = await client.getDocumentTypeVersion(1, 999);\n * if ('error' in result) {\n * console.error('Version not found:', result.error.message);\n * }\n * ```\n *\n * @remarks\n * - Returns StandardError object if document type ID or version ID doesn't exist\n * - Version information includes JSON schema for validation\n * - Different versions may have different validation rules and field requirements\n * - Use this to ensure your documents conform to the specific version requirements\n * - Version status indicates if the version is active, deprecated, or under development\n */\n getDocumentTypeVersion(id: number, versionId: number): Promise<DocumentTypeVersionResponse>;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAW,iBAAiB;CAAC;CAAK,MAAE;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
package/dist/index7.cjs CHANGED
@@ -1,5 +0,0 @@
1
- const require_taxpayerValidation = require('./taxpayerValidation-DdeXCvPT.cjs');
2
-
3
- exports.taxpayerQRCode = require_taxpayerValidation.taxpayerQRCode;
4
- exports.tinSearch = require_taxpayerValidation.tinSearch;
5
- exports.verifyTin = require_taxpayerValidation.verifyTin;
@@ -1 +1 @@
1
- {"version":3,"file":"index70.cts","names":[],"sources":["../src/utils/document.d.ts"],"sourcesContent":["import { InvoiceSubmission, InvoiceV1_1, SigningCredentials, SignedPropertiesObject, UBLDocument, CompleteInvoice, SignedInfoObject } from '../types';\n/**\n * MyInvois v1.1 Document Generation and Signing Utilities\n * Strictly follows: https://sdk.myinvois.hasil.gov.my/documents/invoice-v1-1\n * JSON Signature Guide: https://sdk.myinvois.hasil.gov.my/signature-creation-json/\n */\n/**\n * Helper function to recursively sort object keys for JSON canonicalization\n */\nexport declare function sortObjectKeys(obj: unknown): unknown;\n/**\n * Enhanced canonicalization following MyInvois specification exactly\n * Key changes: ensure consistent ordering and formatting\n */\nexport declare const canonicalizeJSON: (obj: unknown) => string;\n/**\n * Generates a clean invoice object following MyInvois v1.1 specification exactly\n * This is the base invoice structure WITHOUT signature elements (for hash calculation)\n *\n * Key requirements from working documents:\n * - All mandatory fields must be present\n * - Many optional fields must be present even if empty\n * - Specific field ordering and structure\n * - Correct listID values (e.g., \"3166-1\" not \"ISO3166-1\")\n */\nexport declare const generateCleanInvoiceObject: (invoice: InvoiceV1_1) => InvoiceSubmission;\n/**\n * Generates the complete UBL document structure with namespace declarations\n */\nexport declare const generateCleanUBLDocument: (invoices: InvoiceV1_1[]) => UBLDocument;\n/**\n * Step 2: Calculate Document Digest\n * FIXED: Remove UBLExtensions and Signature before hashing (DS322)\n * Based on working implementation pattern\n */\nexport declare const calculateDocumentDigest: (invoices: InvoiceV1_1[]) => string;\n/**\n * Step 4: Calculate Certificate Digest\n * Enhanced to handle certificate content properly\n */\nexport declare const calculateCertificateDigest: (certificatePem: string) => string;\n/**\n * Enhanced certificate info extraction with better error handling\n * FIXED: Normalize issuer name format to match MyInvois expectations (DS326)\n */\nexport declare const extractCertificateInfo: (certificatePem: string) => {\n issuerName: string;\n serialNumber: string;\n subjectName: string;\n};\n/**\n * Step 5: Create SignedProperties with enhanced structure\n * FIXED: Simplified structure to match MyInvois expectations (DS320)\n * Following MyInvois JSON signature specification exactly\n */\nexport declare const createSignedProperties: (certificateDigest: string, signingTime: string, issuerName: string, serialNumber: string) => SignedPropertiesObject;\n/**\n * Step 6: Calculate SignedProperties Digest\n * FIXED: Add Target wrapper and use direct JSON stringify (DS320)\n * Based on working implementation pattern\n */\nexport declare const calculateSignedPropertiesDigest: (signedProperties: SignedPropertiesObject) => string;\n/**\n * Step 3: Create SignedInfo and calculate signature\n * Enhanced with better structure and signature generation\n */\nexport declare const createSignedInfoAndSign: (docDigest: string, propsDigest: string, privateKeyPem: string) => {\n signedInfo: SignedInfoObject;\n signatureValue: string;\n};\n/**\n * Complete document generation with signatures\n * Follows the complete MyInvois JSON signature creation process (Steps 1-7)\n */\nexport declare const generateCompleteDocument: (invoices: InvoiceV1_1[], signingCredentials: SigningCredentials) => CompleteInvoice;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAE,iBAAA,CAAA,GAAA;AACF,IAAW,mBAAmB,CAAC,GAAI;AACnC,IAAW,6BAA6B;CAAC;CAAK,MAAM;CAAa,MAAM;AAAK;AAC5E,IAAW,2BAA2B;CAAC;CAAK,MAAM;CAAa,MAAM;AAAY;AACjF,IAAE,0BAAA,CAAA,KAAA,MAAA,WAAA;AACF,IAAE,6BAAA,CAAA,GAAA;AACF,IAAW,yBAAyB,CAAC,GAAI;AACzC,IAAE,yBAAA,CAAA,KAAA,MAAA,sBAAA;AACF,IAAW,kCAAkC,CAAC,KAAK,MAAM,sBAAI;AAC7D,IAAE,0BAAA,CAAA,KAAA,MAAA,gBAAA;AACF,IAAW,2BAA2B;CAAC;CAAK,MAAM;CAAa,MAAK;CAAA,MAAA;AAAA"}
1
+ {"version":3,"file":"index70.cts","names":[],"sources":["../src/utils/document.d.ts"],"sourcesContent":["import { InvoiceSubmission, InvoiceV1_1, SigningCredentials, SignedPropertiesObject, UBLDocument, CompleteInvoice, SignedInfoObject } from '../types';\n/**\n * MyInvois v1.1 Document Generation and Signing Utilities\n * Strictly follows: https://sdk.myinvois.hasil.gov.my/documents/invoice-v1-1\n * JSON Signature Guide: https://sdk.myinvois.hasil.gov.my/signature-creation-json/\n */\n/**\n * Determines if a line item uses fixed rate taxation\n */\nexport declare const isFixedRateTax: (item: InvoiceV1_1[\"invoiceLineItems\"][0]) => boolean;\n/**\n * Determines if a line item uses percentage taxation\n */\nexport declare const isPercentageTax: (item: InvoiceV1_1[\"invoiceLineItems\"][0]) => boolean;\n/**\n * Calculates expected tax amount for a line item based on its tax type\n */\nexport declare const calculateExpectedTaxAmount: (item: InvoiceV1_1[\"invoiceLineItems\"][0]) => number;\n/**\n * Helper function to recursively sort object keys for JSON canonicalization\n */\nexport declare function sortObjectKeys(obj: unknown): unknown;\n/**\n * Enhanced canonicalization following MyInvois specification exactly\n * Key changes: ensure consistent ordering and formatting\n */\nexport declare const canonicalizeJSON: (obj: unknown) => string;\n/**\n * Generates a clean invoice object following MyInvois v1.1 specification exactly\n * This is the base invoice structure WITHOUT signature elements (for hash calculation)\n *\n * Key requirements from working documents:\n * - All mandatory fields must be present\n * - Many optional fields must be present even if empty\n * - Specific field ordering and structure\n * - Correct listID values (e.g., \"3166-1\" not \"ISO3166-1\")\n */\nexport declare const generateCleanInvoiceObject: (invoice: InvoiceV1_1) => InvoiceSubmission;\n/**\n * Generates the complete UBL document structure with namespace declarations\n */\nexport declare const generateCleanUBLDocument: (invoices: InvoiceV1_1[]) => UBLDocument;\n/**\n * Step 2: Calculate Document Digest\n * FIXED: Remove UBLExtensions and Signature before hashing (DS322)\n * Based on working implementation pattern\n */\nexport declare const calculateDocumentDigest: (invoices: InvoiceV1_1[]) => string;\n/**\n * Step 4: Calculate Certificate Digest\n * Enhanced to handle certificate content properly\n */\nexport declare const calculateCertificateDigest: (certificatePem: string) => string;\n/**\n * Enhanced certificate info extraction with better error handling\n * FIXED: Normalize issuer name format to match MyInvois expectations (DS326)\n */\nexport declare const extractCertificateInfo: (certificatePem: string) => {\n issuerName: string;\n serialNumber: string;\n subjectName: string;\n};\n/**\n * Step 5: Create SignedProperties with enhanced structure\n * FIXED: Simplified structure to match MyInvois expectations (DS320)\n * Following MyInvois JSON signature specification exactly\n */\nexport declare const createSignedProperties: (certificateDigest: string, signingTime: string, issuerName: string, serialNumber: string) => SignedPropertiesObject;\n/**\n * Step 6: Calculate SignedProperties Digest\n * FIXED: Add Target wrapper and use direct JSON stringify (DS320)\n * Based on working implementation pattern\n */\nexport declare const calculateSignedPropertiesDigest: (signedProperties: SignedPropertiesObject) => string;\n/**\n * Step 3: Create SignedInfo and calculate signature\n * Enhanced with better structure and signature generation\n */\nexport declare const createSignedInfoAndSign: (docDigest: string, propsDigest: string, privateKeyPem: string) => {\n signedInfo: SignedInfoObject;\n signatureValue: string;\n};\n/**\n * Complete document generation with signatures\n * Follows the complete MyInvois JSON signature creation process (Steps 1-7)\n */\nexport declare const generateCompleteDocument: (invoices: InvoiceV1_1[], signingCredentials: SigningCredentials) => CompleteInvoice;\n/**\n * Creates a line item with percentage-based taxation (e.g., SST, GST)\n */\nexport declare const createPercentageTaxLineItem: (params: {\n itemClassificationCode: string;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: string;\n taxRate: number;\n totalTaxableAmountPerLine?: number;\n}) => InvoiceV1_1[\"invoiceLineItems\"][0];\n/**\n * Creates a line item with fixed rate taxation (e.g., Tourism Tax)\n */\nexport declare const createFixedRateTaxLineItem: (params: {\n itemClassificationCode: string;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: string;\n taxPerUnitAmount: number;\n baseUnitMeasure: number;\n baseUnitMeasureCode: string;\n totalTaxableAmountPerLine?: number;\n}) => InvoiceV1_1[\"invoiceLineItems\"][0];\n/**\n * Calculates invoice totals from line items\n */\nexport declare const calculateInvoiceTotals: (lineItems: InvoiceV1_1[\"invoiceLineItems\"]) => {\n legalMonetaryTotal: {\n taxExclusiveAmount: number;\n taxInclusiveAmount: number;\n payableAmount: number;\n };\n taxTotal: {\n taxAmount: number;\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,IAAE,iBAAA,CAAA,KAAA,MAAA,WAAA;AACF,IAAW,kBAAkB,CAAC,KAAK,MAAM,WAAY;AACrD,IAAW,6BAA6B,CAAC,KAAK,MAAM,WAAY;AAChE,IAAW,iBAAiB,CAAC,GAAI;AACjC,IAAE,mBAAA,CAAA,GAAA;AACF,IAAE,6BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,2BAA2B;CAAC;CAAK,MAAM;CAAE,MAAA;AAAA;AACpD,IAAE,0BAAA,CAAA,KAAA,MAAA,WAAA;AACF,IAAW,6BAA6B,CAAC,GAAI;AAC7C,IAAE,yBAAA,CAAA,GAAA;AACF,IAAW,yBAAyB,CAAC,KAAK,MAAM,sBAAI;AACpD,IAAE,kCAAA,CAAA,KAAA,MAAA,sBAAA;AACF,IAAW,0BAA0B,CAAC,KAAK,MAAM,gBAAiB;AAClE,IAAE,2BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,8BAA8B,CAAC,KAAK,MAAM,WAAY;AACjE,IAAE,6BAAA,CAAA,KAAA,MAAA,WAAA;AACF,IAAW,yBAAyB,CAAC,KAAK,MAAM,WAAY"}
@@ -1 +1 @@
1
- {"version":3,"file":"index73.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"}
1
+ {"version":3,"file":"index73.cts","names":[],"sources":["../src/utils/validation.d.ts"],"sourcesContent":["import type { InvoiceV1_1, InvoiceLineItem } from '../types';\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 line item tax calculation consistency for both fixed rate and percentage taxation\n */\nexport declare const validateLineItemTax: (item: InvoiceLineItem, index: 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,sBAAsB;CAAC;CAAA,MAAA;CAAA,MAAA;AAAA;AAClC,IAAW,0BAAS;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACpB,IAAW,kBAAkB;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA"}
package/dist/index8.cjs CHANGED
@@ -1,62 +0,0 @@
1
-
2
- //#region src/types/classification-codes.d.ts
3
- /**
4
- * Enum representing the allowed classification codes with descriptive names.
5
- * Provides a more readable way to reference classification codes.
6
- *
7
- * @example
8
- * const code = ClassificationCodeEnum.ComputerSmartphoneOrTablet;
9
- * console.log(code); // Output: "003"
10
- */
11
- let ClassificationCodeEnum = /* @__PURE__ */ function(ClassificationCodeEnum$1) {
12
- ClassificationCodeEnum$1["BreastfeedingEquipment"] = "001";
13
- ClassificationCodeEnum$1["ChildCareCentresAndKindergartensFees"] = "002";
14
- ClassificationCodeEnum$1["ComputerSmartphoneOrTablet"] = "003";
15
- ClassificationCodeEnum$1["ConsolidatedEInvoice"] = "004";
16
- ClassificationCodeEnum$1["ConstructionMaterials"] = "005";
17
- ClassificationCodeEnum$1["Disbursement"] = "006";
18
- ClassificationCodeEnum$1["Donation"] = "007";
19
- ClassificationCodeEnum$1["ECommerceEInvoiceToBuyer"] = "008";
20
- ClassificationCodeEnum$1["ECommerceSelfBilledToSellerLogistics"] = "009";
21
- ClassificationCodeEnum$1["EducationFees"] = "010";
22
- ClassificationCodeEnum$1["GoodsOnConsignmentConsignor"] = "011";
23
- ClassificationCodeEnum$1["GoodsOnConsignmentConsignee"] = "012";
24
- ClassificationCodeEnum$1["GymMembership"] = "013";
25
- ClassificationCodeEnum$1["InsuranceEducationMedicalBenefits"] = "014";
26
- ClassificationCodeEnum$1["InsuranceTakafulLife"] = "015";
27
- ClassificationCodeEnum$1["InterestFinancingExpenses"] = "016";
28
- ClassificationCodeEnum$1["InternetSubscription"] = "017";
29
- ClassificationCodeEnum$1["LandAndBuilding"] = "018";
30
- ClassificationCodeEnum$1["MedicalExamLearningDisabilities"] = "019";
31
- ClassificationCodeEnum$1["MedicalExamVaccination"] = "020";
32
- ClassificationCodeEnum$1["MedicalExpensesSeriousDiseases"] = "021";
33
- ClassificationCodeEnum$1["Others"] = "022";
34
- ClassificationCodeEnum$1["PetroleumOperations"] = "023";
35
- ClassificationCodeEnum$1["PrivateRetirementSchemeDeferredAnnuity"] = "024";
36
- ClassificationCodeEnum$1["MotorVehicle"] = "025";
37
- ClassificationCodeEnum$1["SubscriptionBooksJournalsEtc"] = "026";
38
- ClassificationCodeEnum$1["Reimbursement"] = "027";
39
- ClassificationCodeEnum$1["RentalOfMotorVehicle"] = "028";
40
- ClassificationCodeEnum$1["EVChargingFacilities"] = "029";
41
- ClassificationCodeEnum$1["RepairAndMaintenance"] = "030";
42
- ClassificationCodeEnum$1["ResearchAndDevelopment"] = "031";
43
- ClassificationCodeEnum$1["ForeignIncome"] = "032";
44
- ClassificationCodeEnum$1["SelfBilledBettingGaming"] = "033";
45
- ClassificationCodeEnum$1["SelfBilledImportationGoods"] = "034";
46
- ClassificationCodeEnum$1["SelfBilledImportationServices"] = "035";
47
- ClassificationCodeEnum$1["SelfBilledOthers"] = "036";
48
- ClassificationCodeEnum$1["SelfBilledMonetaryPaymentToAgents"] = "037";
49
- ClassificationCodeEnum$1["SportsEquipmentRentalFeesEtc"] = "038";
50
- ClassificationCodeEnum$1["SupportingEquipmentDisabledPerson"] = "039";
51
- ClassificationCodeEnum$1["VoluntaryContributionProvidentFund"] = "040";
52
- ClassificationCodeEnum$1["DentalExamTreatment"] = "041";
53
- ClassificationCodeEnum$1["FertilityTreatment"] = "042";
54
- ClassificationCodeEnum$1["TreatmentHomeCareNursingEtc"] = "043";
55
- ClassificationCodeEnum$1["VouchersGiftCardsLoyaltyPoints"] = "044";
56
- ClassificationCodeEnum$1["SelfBilledNonMonetaryPaymentToAgents"] = "045";
57
- return ClassificationCodeEnum$1;
58
- }({});
59
-
60
- //#endregion
61
- exports.ClassificationCodeEnum = ClassificationCodeEnum;
62
- //# sourceMappingURL=index8.cjs.map