@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.
- package/CHANGELOG.md +16 -0
- package/package.json +4 -5
- package/src/index.ts +2 -1
- package/src/types/documents.d.ts +5 -6
- package/bun.lock +0 -460
- package/dist/0X-CTIq3y3a.d.ts +0 -210
- package/dist/0X-Cr3M7hci.d.cts +0 -211
- package/dist/1X-Bu4oiv8D.d.ts +0 -111
- package/dist/1X-BywXCqtn.d.ts +0 -19
- package/dist/1X-CWwmfCzo.d.cts +0 -112
- package/dist/1X-ClnJ79HH.d.cts +0 -20
- package/dist/2X-3fSEGIuE.d.ts +0 -39
- package/dist/2X-CV9eYhog.d.cts +0 -40
- package/dist/2X-DNtkJ0tj.d.cts +0 -140
- package/dist/2X-DnG3FY1f.d.ts +0 -139
- package/dist/3X--VWVsC84.d.cts +0 -21
- package/dist/3X-BOxfatu3.d.cts +0 -62
- package/dist/3X-CLdmoel1.d.ts +0 -61
- package/dist/3X-Ynjfgoll.d.ts +0 -20
- package/dist/4X-B5ePdMky.d.ts +0 -30
- package/dist/4X-BTG6o1Gn.d.ts +0 -264
- package/dist/4X-By9PzHaY.d.cts +0 -31
- package/dist/4X-C7fzDWJ_.d.cts +0 -265
- package/dist/5X-B5M0Cv_K.d.cts +0 -22
- package/dist/5X-CNAFsDm2.d.cts +0 -77
- package/dist/5X-CjSz1zxJ.d.ts +0 -76
- package/dist/5X-dhP6fyou.d.ts +0 -21
- package/dist/6X-B9KP_vEn.d.ts +0 -104
- package/dist/6X-BHaY0TCf.d.ts +0 -15
- package/dist/6X-C3elgd-n.d.cts +0 -16
- package/dist/6X-uObUP4VG.d.cts +0 -105
- package/dist/7X-BifJnY24.d.cts +0 -71
- package/dist/7X-C4eX_tAk.d.ts +0 -15
- package/dist/7X-D3idQBl9.d.cts +0 -16
- package/dist/7X-DtkQutx2.d.ts +0 -70
- package/dist/8X-5n9seY3z.d.ts +0 -109
- package/dist/8X-C6UMFvQW.d.cts +0 -19
- package/dist/8X-D6HTLShY.d.ts +0 -18
- package/dist/8X-DioBXCJ0.d.cts +0 -110
- package/dist/9X-BjffnXuq.d.cts +0 -98
- package/dist/9X-CHZKsIdD.d.ts +0 -14
- package/dist/9X-CJjPJgIG.d.cts +0 -15
- package/dist/9X-Cpb6V4JC.d.ts +0 -97
- package/dist/AX-C0w_r3PA.d.ts +0 -110
- package/dist/AX-DrEd2Ov6.d.cts +0 -111
- package/dist/BX-C5jc6myN.d.cts +0 -115
- package/dist/BX-RadlZ-6m.d.ts +0 -114
- package/dist/CX-CT1Zzb9D.d.ts +0 -127
- package/dist/CX-oSgvmn3h.d.cts +0 -128
- package/dist/DX-CtUeTKMM.d.ts +0 -114
- package/dist/DX-ZIG0enmK.d.cts +0 -115
- package/dist/EX-084Yu7Wt.d.ts +0 -106
- package/dist/EX-BpWZ5ADq.d.cts +0 -107
- package/dist/FX-BrbQM0CW.d.ts +0 -126
- package/dist/FX-CvYBEc51.d.cts +0 -127
- package/dist/GX-CU8PZy0G.d.cts +0 -136
- package/dist/GX-gKj8iAAh.d.ts +0 -135
- package/dist/HX-9D-ZXTy5.d.ts +0 -125
- package/dist/HX-DoEErDeE.d.cts +0 -126
- package/dist/IX-DR4Fc92A.d.ts +0 -22
- package/dist/IX-jLAUHe8i.d.cts +0 -23
- package/dist/JX-DIKa9ma-.d.ts +0 -103
- package/dist/JX-DX8BjYQC.d.cts +0 -104
- package/dist/KX-DpsJ_unT.d.ts +0 -150
- package/dist/KX-fZb4_vhw.d.cts +0 -151
- package/dist/LX-D_mI1bk-.d.cts +0 -123
- package/dist/LX-DeXPPWUX.d.ts +0 -122
- package/dist/MX-CKMjg_zK.d.ts +0 -152
- package/dist/MX-DlYZhpkT.d.cts +0 -153
- package/dist/NX-DELEEbad.d.cts +0 -122
- package/dist/NX-oYdb4NDo.d.ts +0 -121
- package/dist/OX-Bid9es3D.d.ts +0 -25
- package/dist/OX-CKPyrIFf.d.cts +0 -26
- package/dist/PX-D7jy9CFk.d.ts +0 -120
- package/dist/PX-SP6NxBtG.d.cts +0 -121
- package/dist/QX-BFWOR4g3.d.ts +0 -58
- package/dist/QX-QZA7E2O-.d.cts +0 -59
- package/dist/RX-DBcgbdeE.d.cts +0 -23
- package/dist/RX-XHgCyMV1.d.ts +0 -22
- package/dist/SX-Cl8RN8oH.d.ts +0 -39
- package/dist/SX-DmiJeCMN.d.cts +0 -40
- package/dist/TX-C1SoDobK.d.cts +0 -31
- package/dist/TX-ZymoIbtr.d.ts +0 -30
- package/dist/UX-D-Ndd1ov.d.ts +0 -17
- package/dist/UX-DFVynFhQ.d.cts +0 -18
- package/dist/VX-B-1b34r7.d.ts +0 -16
- package/dist/VX-DsRum5k3.d.cts +0 -17
- package/dist/WX-0GuMjPNZ.d.ts +0 -25
- package/dist/WX-VReU5R5M.d.cts +0 -26
- package/dist/XX-CF2NANsy.d.ts +0 -827
- package/dist/XX-ChAviUMj.d.cts +0 -828
- package/dist/YX-B51BbNSg.d.ts +0 -19
- package/dist/YX-QfzeMEKx.d.cts +0 -20
- package/dist/ZX-BMJS1iAv.d.ts +0 -21
- package/dist/ZX-Ca2E726a.d.cts +0 -22
- package/dist/api/platform/platformLogin.d.ts +0 -65
- package/dist/api/platform/platformLogin.js +0 -3
- package/dist/certificate-DFK-788s.cjs +0 -62
- package/dist/certificate-DFK-788s.cjs.map +0 -1
- package/dist/certificate-aooIRf9A.js +0 -49
- package/dist/chunk-CUT6urMc.cjs +0 -30
- package/dist/classification-codes-B15PbWxz.d.cts +0 -118
- package/dist/classification-codes-BKxV-rO9.d.ts +0 -117
- package/dist/country-code-CQuaiQm2.d.ts +0 -542
- package/dist/country-code-DPeNFMMi.d.cts +0 -543
- package/dist/currencies-BYJK-m6v.d.ts +0 -207
- package/dist/currencies-S5g1gzBU.d.cts +0 -208
- package/dist/document-CARHiGdp.cjs +0 -472
- package/dist/document-CARHiGdp.cjs.map +0 -1
- package/dist/document-D6VKMAtx.js +0 -405
- package/dist/documents-CJ8hqIGH.d.ts +0 -858
- package/dist/documents-MGs0EvXh.d.cts +0 -859
- package/dist/e-invoice-BuwtFnlI.d.cts +0 -44
- package/dist/e-invoice-CmbLQkHw.d.ts +0 -43
- package/dist/getBaseUrl-CO7Jp27d.cjs +0 -14
- package/dist/getBaseUrl-CO7Jp27d.cjs.map +0 -1
- package/dist/getBaseUrl-R3IdgCu3.js +0 -7
- package/dist/index-0-EvC6Nv.d.ts +0 -15
- package/dist/index-D2_HVwCz.d.cts +0 -16
- package/dist/index.cjs +0 -309
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -233
- package/dist/index.js +0 -308
- package/dist/index10.cjs +0 -0
- package/dist/index11.cjs +0 -34
- package/dist/index11.cjs.map +0 -1
- package/dist/index12.cjs +0 -24
- package/dist/index12.cjs.map +0 -1
- package/dist/index13.cjs +0 -0
- package/dist/index14.cjs +0 -13
- package/dist/index14.cjs.map +0 -1
- package/dist/index15.cjs +0 -4
- package/dist/index16.cjs +0 -13
- package/dist/index17.cjs +0 -3
- package/dist/index18.cjs +0 -340
- package/dist/index18.cjs.map +0 -1
- package/dist/index19.cjs +0 -329
- package/dist/index19.cjs.map +0 -1
- package/dist/index2.cjs +0 -62
- package/dist/index2.cjs.map +0 -1
- package/dist/index20.cjs +0 -140
- package/dist/index20.cjs.map +0 -1
- package/dist/index21.cjs +0 -208
- package/dist/index21.cjs.map +0 -1
- package/dist/index22.cjs +0 -109
- package/dist/index22.cjs.map +0 -1
- package/dist/index23.cjs +0 -137
- package/dist/index23.cjs.map +0 -1
- package/dist/index24.cjs +0 -64
- package/dist/index24.cjs.map +0 -1
- package/dist/index25.cjs +0 -267
- package/dist/index25.cjs.map +0 -1
- package/dist/index26.cjs +0 -79
- package/dist/index26.cjs.map +0 -1
- package/dist/index27.cjs +0 -107
- package/dist/index27.cjs.map +0 -1
- package/dist/index28.cjs +0 -73
- package/dist/index28.cjs.map +0 -1
- package/dist/index29.cjs +0 -112
- package/dist/index29.cjs.map +0 -1
- package/dist/index3.cjs +0 -532
- package/dist/index3.cjs.map +0 -1
- package/dist/index30.cjs +0 -100
- package/dist/index30.cjs.map +0 -1
- package/dist/index31.cjs +0 -18
- package/dist/index31.cjs.map +0 -1
- package/dist/index32.cjs +0 -38
- package/dist/index32.cjs.map +0 -1
- package/dist/index33.cjs +0 -19
- package/dist/index33.cjs.map +0 -1
- package/dist/index34.cjs +0 -29
- package/dist/index34.cjs.map +0 -1
- package/dist/index35.cjs +0 -20
- package/dist/index35.cjs.map +0 -1
- package/dist/index36.cjs +0 -14
- package/dist/index36.cjs.map +0 -1
- package/dist/index37.cjs +0 -14
- package/dist/index37.cjs.map +0 -1
- package/dist/index38.cjs +0 -17
- package/dist/index38.cjs.map +0 -1
- package/dist/index39.cjs +0 -13
- package/dist/index39.cjs.map +0 -1
- package/dist/index4.cjs +0 -196
- package/dist/index4.cjs.map +0 -1
- package/dist/index40.cjs +0 -108
- package/dist/index40.cjs.map +0 -1
- package/dist/index41.cjs +0 -113
- package/dist/index41.cjs.map +0 -1
- package/dist/index42.cjs +0 -126
- package/dist/index42.cjs.map +0 -1
- package/dist/index43.cjs +0 -113
- package/dist/index43.cjs.map +0 -1
- package/dist/index44.cjs +0 -105
- package/dist/index44.cjs.map +0 -1
- package/dist/index45.cjs +0 -125
- package/dist/index45.cjs.map +0 -1
- package/dist/index46.cjs +0 -134
- package/dist/index46.cjs.map +0 -1
- package/dist/index47.cjs +0 -124
- package/dist/index47.cjs.map +0 -1
- package/dist/index48.cjs +0 -21
- package/dist/index48.cjs.map +0 -1
- package/dist/index49.cjs +0 -102
- package/dist/index49.cjs.map +0 -1
- package/dist/index5.cjs +0 -0
- package/dist/index50.cjs +0 -149
- package/dist/index50.cjs.map +0 -1
- package/dist/index51.cjs +0 -121
- package/dist/index51.cjs.map +0 -1
- package/dist/index52.cjs +0 -151
- package/dist/index52.cjs.map +0 -1
- package/dist/index53.cjs +0 -120
- package/dist/index53.cjs.map +0 -1
- package/dist/index54.cjs +0 -24
- package/dist/index54.cjs.map +0 -1
- package/dist/index55.cjs +0 -119
- package/dist/index55.cjs.map +0 -1
- package/dist/index56.cjs +0 -54
- package/dist/index56.cjs.map +0 -1
- package/dist/index57.cjs +0 -21
- package/dist/index57.cjs.map +0 -1
- package/dist/index58.cjs +0 -35
- package/dist/index58.cjs.map +0 -1
- package/dist/index58.cts.map +0 -1
- package/dist/index59.cjs +0 -29
- package/dist/index59.cjs.map +0 -1
- package/dist/index59.cts.map +0 -1
- package/dist/index6.cjs +0 -25
- package/dist/index6.cjs.map +0 -1
- package/dist/index60.cjs +0 -16
- package/dist/index60.cjs.map +0 -1
- package/dist/index60.cts.map +0 -1
- package/dist/index61.cjs +0 -15
- package/dist/index61.cjs.map +0 -1
- package/dist/index61.cts.map +0 -1
- package/dist/index62.cjs +0 -24
- package/dist/index62.cjs.map +0 -1
- package/dist/index62.cts.map +0 -1
- package/dist/index63.cjs +0 -419
- package/dist/index63.cjs.map +0 -1
- package/dist/index63.cts.map +0 -1
- package/dist/index64.cjs +0 -15
- package/dist/index64.cjs.map +0 -1
- package/dist/index64.cts.map +0 -1
- package/dist/index65.cjs +0 -16
- package/dist/index65.cjs.map +0 -1
- package/dist/index65.cts.map +0 -1
- package/dist/index66.cjs +0 -3
- package/dist/index66.cts.map +0 -1
- package/dist/index7.cjs +0 -0
- package/dist/index8.cjs +0 -0
- package/dist/index9.cjs +0 -25
- package/dist/index9.cjs.map +0 -1
- package/dist/msic-codes-C8PJVOaA.d.ts +0 -25
- package/dist/msic-codes-CIKdPqag.d.cts +0 -26
- package/dist/payment-modes-BOTSRC_X.d.ts +0 -43
- package/dist/payment-modes-ghFEXnUl.d.cts +0 -44
- package/dist/platformLogin-PGzMhw1X.cjs +0 -37
- package/dist/platformLogin-PGzMhw1X.cjs.map +0 -1
- package/dist/platformLogin-f0bNAoZI.js +0 -30
- package/dist/signatures-W-_brwdb.d.ts +0 -172
- package/dist/signatures-hFbt_std.d.cts +0 -173
- package/dist/state-codes-BlILGZ9d.d.cts +0 -62
- package/dist/state-codes-oeFKlwXZ.d.ts +0 -61
- package/dist/tax-types-B5sQ8UyN.d.cts +0 -42
- package/dist/tax-types-CsQ76JMf.d.ts +0 -41
- package/dist/types/classification-codes.d.ts +0 -2
- package/dist/types/country-code.d.ts +0 -2
- package/dist/types/currencies.d.ts +0 -2
- package/dist/types/documents.d.ts +0 -18
- package/dist/types/e-invoice.d.ts +0 -2
- package/dist/types/index.d.ts +0 -58
- package/dist/types/msic/0X.d.ts +0 -2
- package/dist/types/msic/1X.d.ts +0 -2
- package/dist/types/msic/2X.d.ts +0 -2
- package/dist/types/msic/3X.d.ts +0 -2
- package/dist/types/msic/4X.d.ts +0 -2
- package/dist/types/msic/5X.d.ts +0 -2
- package/dist/types/msic/6X.d.ts +0 -2
- package/dist/types/msic/7X.d.ts +0 -2
- package/dist/types/msic/8X.d.ts +0 -2
- package/dist/types/msic/9X.d.ts +0 -2
- package/dist/types/msic-codes.d.ts +0 -12
- package/dist/types/payment-modes.d.ts +0 -2
- package/dist/types/signatures.d.ts +0 -2
- package/dist/types/state-codes.d.ts +0 -2
- package/dist/types/tax-types.d.ts +0 -2
- package/dist/types/unit/1X.d.ts +0 -2
- package/dist/types/unit/2X.d.ts +0 -2
- package/dist/types/unit/3X.d.ts +0 -2
- package/dist/types/unit/4X.d.ts +0 -2
- package/dist/types/unit/5X.d.ts +0 -2
- package/dist/types/unit/6X.d.ts +0 -2
- package/dist/types/unit/7X.d.ts +0 -2
- package/dist/types/unit/8X.d.ts +0 -2
- package/dist/types/unit/9X.d.ts +0 -2
- package/dist/types/unit/AX.d.ts +0 -2
- package/dist/types/unit/BX.d.ts +0 -2
- package/dist/types/unit/CX.d.ts +0 -2
- package/dist/types/unit/DX.d.ts +0 -2
- package/dist/types/unit/EX.d.ts +0 -2
- package/dist/types/unit/FX.d.ts +0 -2
- package/dist/types/unit/GX.d.ts +0 -2
- package/dist/types/unit/HX.d.ts +0 -2
- package/dist/types/unit/IX.d.ts +0 -2
- package/dist/types/unit/JX.d.ts +0 -2
- package/dist/types/unit/KX.d.ts +0 -2
- package/dist/types/unit/LX.d.ts +0 -2
- package/dist/types/unit/MX.d.ts +0 -2
- package/dist/types/unit/NX.d.ts +0 -2
- package/dist/types/unit/OX.d.ts +0 -2
- package/dist/types/unit/PX.d.ts +0 -2
- package/dist/types/unit/QX.d.ts +0 -2
- package/dist/types/unit/RX.d.ts +0 -2
- package/dist/types/unit/SX.d.ts +0 -2
- package/dist/types/unit/TX.d.ts +0 -2
- package/dist/types/unit/UX.d.ts +0 -2
- package/dist/types/unit/VX.d.ts +0 -2
- package/dist/types/unit/WX.d.ts +0 -2
- package/dist/types/unit/XX.d.ts +0 -2
- package/dist/types/unit/YX.d.ts +0 -2
- package/dist/types/unit/ZX.d.ts +0 -2
- package/dist/types/unit-types.d.ts +0 -37
- package/dist/unit-types-B41YFOLT.d.ts +0 -55
- package/dist/unit-types-CjWNk2wS.d.cts +0 -56
- package/dist/utils/base64.d.ts +0 -5
- package/dist/utils/base64.js +0 -10
- package/dist/utils/certificate.d.ts +0 -22
- package/dist/utils/certificate.js +0 -3
- package/dist/utils/document.d.ts +0 -135
- package/dist/utils/document.js +0 -3
- package/dist/utils/getBaseUrl.d.ts +0 -4
- package/dist/utils/getBaseUrl.js +0 -3
- package/dist/utils/helpers.d.ts +0 -271
- package/dist/utils/helpers.js +0 -330
- package/dist/utils/signature-diagnostics.d.ts +0 -93
- package/dist/utils/signature-diagnostics.js +0 -326
- package/dist/utils/validation.d.ts +0 -46
- package/dist/utils/validation.js +0 -134
|
@@ -1,61 +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 };
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
//#region src/types/tax-types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Represents the allowed codes for tax types.
|
|
4
|
-
* Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/
|
|
5
|
-
*/
|
|
6
|
-
type TaxTypeCode = '01' // Sales Tax
|
|
7
|
-
| '02' // Service Tax
|
|
8
|
-
| '03' // Tourism Tax
|
|
9
|
-
| '04' // High-Value Goods Tax
|
|
10
|
-
| '05' // Sales Tax on Low Value Goods
|
|
11
|
-
| '06' // Not Applicable
|
|
12
|
-
| 'E'; // Tax exemption (where applicable)
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Enum representing the allowed tax type codes with descriptive names.
|
|
16
|
-
* Provides a more readable way to reference tax types.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* const code = TaxTypeCodeEnum.SalesTax;
|
|
20
|
-
* console.log(code); // Output: "01"
|
|
21
|
-
*/
|
|
22
|
-
declare enum TaxTypeCodeEnum {
|
|
23
|
-
SalesTax = '01',
|
|
24
|
-
ServiceTax = '02',
|
|
25
|
-
TourismTax = '03',
|
|
26
|
-
HighValueGoodsTax = '04',
|
|
27
|
-
SalesTaxLowValueGoods = '05',
|
|
28
|
-
NotApplicable = '06',
|
|
29
|
-
TaxExemption = 'E',
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Interface representing a tax type entry.
|
|
34
|
-
* Contains the code and its corresponding description.
|
|
35
|
-
*/
|
|
36
|
-
interface TaxType {
|
|
37
|
-
code: TaxTypeCode;
|
|
38
|
-
description: string;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { TaxType, TaxTypeCode, TaxTypeCodeEnum };
|
|
42
|
-
//# sourceMappingURL=tax-types-B5sQ8UyN.d.cts.map
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//#region src/types/tax-types.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Represents the allowed codes for tax types.
|
|
4
|
-
* Based on the documentation: https://sdk.myinvois.hasil.gov.my/codes/tax-types/
|
|
5
|
-
*/
|
|
6
|
-
type TaxTypeCode = '01' // Sales Tax
|
|
7
|
-
| '02' // Service Tax
|
|
8
|
-
| '03' // Tourism Tax
|
|
9
|
-
| '04' // High-Value Goods Tax
|
|
10
|
-
| '05' // Sales Tax on Low Value Goods
|
|
11
|
-
| '06' // Not Applicable
|
|
12
|
-
| 'E'; // Tax exemption (where applicable)
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Enum representing the allowed tax type codes with descriptive names.
|
|
16
|
-
* Provides a more readable way to reference tax types.
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* const code = TaxTypeCodeEnum.SalesTax;
|
|
20
|
-
* console.log(code); // Output: "01"
|
|
21
|
-
*/
|
|
22
|
-
declare enum TaxTypeCodeEnum {
|
|
23
|
-
SalesTax = '01',
|
|
24
|
-
ServiceTax = '02',
|
|
25
|
-
TourismTax = '03',
|
|
26
|
-
HighValueGoodsTax = '04',
|
|
27
|
-
SalesTaxLowValueGoods = '05',
|
|
28
|
-
NotApplicable = '06',
|
|
29
|
-
TaxExemption = 'E',
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Interface representing a tax type entry.
|
|
34
|
-
* Contains the code and its corresponding description.
|
|
35
|
-
*/
|
|
36
|
-
interface TaxType {
|
|
37
|
-
code: TaxTypeCode;
|
|
38
|
-
description: string;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { TaxType, TaxTypeCode, TaxTypeCodeEnum };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import "../classification-codes-BKxV-rO9.js";
|
|
2
|
-
import "../currencies-BYJK-m6v.js";
|
|
3
|
-
import "../e-invoice-CmbLQkHw.js";
|
|
4
|
-
import "../0X-CTIq3y3a.js";
|
|
5
|
-
import "../1X-Bu4oiv8D.js";
|
|
6
|
-
import "../2X-DnG3FY1f.js";
|
|
7
|
-
import "../3X-CLdmoel1.js";
|
|
8
|
-
import "../4X-BTG6o1Gn.js";
|
|
9
|
-
import "../5X-CjSz1zxJ.js";
|
|
10
|
-
import "../6X-B9KP_vEn.js";
|
|
11
|
-
import "../7X-DtkQutx2.js";
|
|
12
|
-
import "../8X-5n9seY3z.js";
|
|
13
|
-
import "../9X-Cpb6V4JC.js";
|
|
14
|
-
import "../msic-codes-C8PJVOaA.js";
|
|
15
|
-
import "../signatures-W-_brwdb.js";
|
|
16
|
-
import "../tax-types-CsQ76JMf.js";
|
|
17
|
-
import { Address, Buyer, CompleteInvoice, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, LegalMonetaryTotal, RegistrationType, ResponseDocument, SignedInfoObject, SignedInvoiceSubmission, SignedPropertiesData, SignedPropertiesObject, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, UBLDocument } from "../documents-CJ8hqIGH.js";
|
|
18
|
-
export { Address, Buyer, CompleteInvoice, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, LegalMonetaryTotal, RegistrationType, ResponseDocument, SignedInfoObject, SignedInvoiceSubmission, SignedPropertiesData, SignedPropertiesObject, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, UBLDocument };
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { Classification, ClassificationCode, ClassificationCodeEnum } from "../classification-codes-BKxV-rO9.js";
|
|
2
|
-
import { Country, CountryCode, CountryCodeEnum, CountryNameEnum } from "../country-code-CQuaiQm2.js";
|
|
3
|
-
import { Currency, CurrencyCode, CurrencyCodeEnum } from "../currencies-BYJK-m6v.js";
|
|
4
|
-
import { EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum } from "../e-invoice-CmbLQkHw.js";
|
|
5
|
-
import "../0X-CTIq3y3a.js";
|
|
6
|
-
import "../1X-Bu4oiv8D.js";
|
|
7
|
-
import "../2X-DnG3FY1f.js";
|
|
8
|
-
import "../3X-CLdmoel1.js";
|
|
9
|
-
import "../4X-BTG6o1Gn.js";
|
|
10
|
-
import "../5X-CjSz1zxJ.js";
|
|
11
|
-
import "../6X-B9KP_vEn.js";
|
|
12
|
-
import "../7X-DtkQutx2.js";
|
|
13
|
-
import "../8X-5n9seY3z.js";
|
|
14
|
-
import "../9X-Cpb6V4JC.js";
|
|
15
|
-
import { MSICCode } from "../msic-codes-C8PJVOaA.js";
|
|
16
|
-
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "../signatures-W-_brwdb.js";
|
|
17
|
-
import { TaxType, TaxTypeCode, TaxTypeCodeEnum } from "../tax-types-CsQ76JMf.js";
|
|
18
|
-
import { Address, Buyer, CompleteInvoice, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, LegalMonetaryTotal, RegistrationType, ResponseDocument, SignedInfoObject, SignedInvoiceSubmission, SignedPropertiesData, SignedPropertiesObject, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, UBLDocument } from "../documents-CJ8hqIGH.js";
|
|
19
|
-
import { PaymentMode, PaymentModeCode, PaymentModeCodeEnum } from "../payment-modes-BOTSRC_X.js";
|
|
20
|
-
import "../1X-BywXCqtn.js";
|
|
21
|
-
import "../2X-3fSEGIuE.js";
|
|
22
|
-
import "../3X-Ynjfgoll.js";
|
|
23
|
-
import "../4X-B5ePdMky.js";
|
|
24
|
-
import "../5X-dhP6fyou.js";
|
|
25
|
-
import "../6X-BHaY0TCf.js";
|
|
26
|
-
import "../7X-C4eX_tAk.js";
|
|
27
|
-
import "../8X-D6HTLShY.js";
|
|
28
|
-
import "../9X-CHZKsIdD.js";
|
|
29
|
-
import "../AX-C0w_r3PA.js";
|
|
30
|
-
import "../BX-RadlZ-6m.js";
|
|
31
|
-
import "../CX-CT1Zzb9D.js";
|
|
32
|
-
import "../DX-CtUeTKMM.js";
|
|
33
|
-
import "../EX-084Yu7Wt.js";
|
|
34
|
-
import "../FX-BrbQM0CW.js";
|
|
35
|
-
import "../GX-gKj8iAAh.js";
|
|
36
|
-
import "../HX-9D-ZXTy5.js";
|
|
37
|
-
import "../IX-DR4Fc92A.js";
|
|
38
|
-
import "../JX-DIKa9ma-.js";
|
|
39
|
-
import "../KX-DpsJ_unT.js";
|
|
40
|
-
import "../LX-DeXPPWUX.js";
|
|
41
|
-
import "../MX-CKMjg_zK.js";
|
|
42
|
-
import "../NX-oYdb4NDo.js";
|
|
43
|
-
import "../OX-Bid9es3D.js";
|
|
44
|
-
import "../PX-D7jy9CFk.js";
|
|
45
|
-
import "../QX-BFWOR4g3.js";
|
|
46
|
-
import "../RX-XHgCyMV1.js";
|
|
47
|
-
import "../SX-Cl8RN8oH.js";
|
|
48
|
-
import "../TX-ZymoIbtr.js";
|
|
49
|
-
import "../UX-D-Ndd1ov.js";
|
|
50
|
-
import "../VX-B-1b34r7.js";
|
|
51
|
-
import "../WX-0GuMjPNZ.js";
|
|
52
|
-
import "../YX-B51BbNSg.js";
|
|
53
|
-
import "../ZX-BMJS1iAv.js";
|
|
54
|
-
import "../XX-CF2NANsy.js";
|
|
55
|
-
import { UnitType, UnitTypeCode } from "../unit-types-B41YFOLT.js";
|
|
56
|
-
import { State, StateCode, StateCodeEnum } from "../state-codes-oeFKlwXZ.js";
|
|
57
|
-
import { ClientCredentials, TokenResponse } from "../index-0-EvC6Nv.js";
|
|
58
|
-
export { Address, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, ClientCredentials, CompleteInvoice, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, DigestMethod, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, RegistrationType, ResponseDocument, SignatureMethod, SignedInfo, SignedInfoObject, SignedInvoiceSubmission, SignedProperties, SignedPropertiesData, SignedPropertiesObject, SignedSignatureProperties, SigningCertificate, SigningCredentials, StandardError, State, StateCode, StateCodeEnum, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, TokenResponse, Transform, UBLDocument, UnitType, UnitTypeCode, X509Data };
|
package/dist/types/msic/0X.d.ts
DELETED
package/dist/types/msic/1X.d.ts
DELETED
package/dist/types/msic/2X.d.ts
DELETED
package/dist/types/msic/3X.d.ts
DELETED
package/dist/types/msic/4X.d.ts
DELETED
package/dist/types/msic/5X.d.ts
DELETED
package/dist/types/msic/6X.d.ts
DELETED
package/dist/types/msic/7X.d.ts
DELETED
package/dist/types/msic/8X.d.ts
DELETED
package/dist/types/msic/9X.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import "../0X-CTIq3y3a.js";
|
|
2
|
-
import "../1X-Bu4oiv8D.js";
|
|
3
|
-
import "../2X-DnG3FY1f.js";
|
|
4
|
-
import "../3X-CLdmoel1.js";
|
|
5
|
-
import "../4X-BTG6o1Gn.js";
|
|
6
|
-
import "../5X-CjSz1zxJ.js";
|
|
7
|
-
import "../6X-B9KP_vEn.js";
|
|
8
|
-
import "../7X-DtkQutx2.js";
|
|
9
|
-
import "../8X-5n9seY3z.js";
|
|
10
|
-
import "../9X-Cpb6V4JC.js";
|
|
11
|
-
import { MSICCode } from "../msic-codes-C8PJVOaA.js";
|
|
12
|
-
export { MSICCode };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "../signatures-W-_brwdb.js";
|
|
2
|
-
export { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data };
|
package/dist/types/unit/1X.d.ts
DELETED
package/dist/types/unit/2X.d.ts
DELETED
package/dist/types/unit/3X.d.ts
DELETED
package/dist/types/unit/4X.d.ts
DELETED
package/dist/types/unit/5X.d.ts
DELETED
package/dist/types/unit/6X.d.ts
DELETED
package/dist/types/unit/7X.d.ts
DELETED
package/dist/types/unit/8X.d.ts
DELETED
package/dist/types/unit/9X.d.ts
DELETED
package/dist/types/unit/AX.d.ts
DELETED
package/dist/types/unit/BX.d.ts
DELETED
package/dist/types/unit/CX.d.ts
DELETED
package/dist/types/unit/DX.d.ts
DELETED
package/dist/types/unit/EX.d.ts
DELETED
package/dist/types/unit/FX.d.ts
DELETED
package/dist/types/unit/GX.d.ts
DELETED
package/dist/types/unit/HX.d.ts
DELETED
package/dist/types/unit/IX.d.ts
DELETED
package/dist/types/unit/JX.d.ts
DELETED
package/dist/types/unit/KX.d.ts
DELETED
package/dist/types/unit/LX.d.ts
DELETED
package/dist/types/unit/MX.d.ts
DELETED
package/dist/types/unit/NX.d.ts
DELETED
package/dist/types/unit/OX.d.ts
DELETED
package/dist/types/unit/PX.d.ts
DELETED
package/dist/types/unit/QX.d.ts
DELETED
package/dist/types/unit/RX.d.ts
DELETED
package/dist/types/unit/SX.d.ts
DELETED
package/dist/types/unit/TX.d.ts
DELETED
package/dist/types/unit/UX.d.ts
DELETED
package/dist/types/unit/VX.d.ts
DELETED
package/dist/types/unit/WX.d.ts
DELETED
package/dist/types/unit/XX.d.ts
DELETED
package/dist/types/unit/YX.d.ts
DELETED
package/dist/types/unit/ZX.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import "../1X-BywXCqtn.js";
|
|
2
|
-
import "../2X-3fSEGIuE.js";
|
|
3
|
-
import "../3X-Ynjfgoll.js";
|
|
4
|
-
import "../4X-B5ePdMky.js";
|
|
5
|
-
import "../5X-dhP6fyou.js";
|
|
6
|
-
import "../6X-BHaY0TCf.js";
|
|
7
|
-
import "../7X-C4eX_tAk.js";
|
|
8
|
-
import "../8X-D6HTLShY.js";
|
|
9
|
-
import "../9X-CHZKsIdD.js";
|
|
10
|
-
import "../AX-C0w_r3PA.js";
|
|
11
|
-
import "../BX-RadlZ-6m.js";
|
|
12
|
-
import "../CX-CT1Zzb9D.js";
|
|
13
|
-
import "../DX-CtUeTKMM.js";
|
|
14
|
-
import "../EX-084Yu7Wt.js";
|
|
15
|
-
import "../FX-BrbQM0CW.js";
|
|
16
|
-
import "../GX-gKj8iAAh.js";
|
|
17
|
-
import "../HX-9D-ZXTy5.js";
|
|
18
|
-
import "../IX-DR4Fc92A.js";
|
|
19
|
-
import "../JX-DIKa9ma-.js";
|
|
20
|
-
import "../KX-DpsJ_unT.js";
|
|
21
|
-
import "../LX-DeXPPWUX.js";
|
|
22
|
-
import "../MX-CKMjg_zK.js";
|
|
23
|
-
import "../NX-oYdb4NDo.js";
|
|
24
|
-
import "../OX-Bid9es3D.js";
|
|
25
|
-
import "../PX-D7jy9CFk.js";
|
|
26
|
-
import "../QX-BFWOR4g3.js";
|
|
27
|
-
import "../RX-XHgCyMV1.js";
|
|
28
|
-
import "../SX-Cl8RN8oH.js";
|
|
29
|
-
import "../TX-ZymoIbtr.js";
|
|
30
|
-
import "../UX-D-Ndd1ov.js";
|
|
31
|
-
import "../VX-B-1b34r7.js";
|
|
32
|
-
import "../WX-0GuMjPNZ.js";
|
|
33
|
-
import "../YX-B51BbNSg.js";
|
|
34
|
-
import "../ZX-BMJS1iAv.js";
|
|
35
|
-
import "../XX-CF2NANsy.js";
|
|
36
|
-
import { UnitType, UnitTypeCode } from "../unit-types-B41YFOLT.js";
|
|
37
|
-
export { UnitType, UnitTypeCode };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { UnitTypeCode_1X } from "./1X-BywXCqtn.js";
|
|
2
|
-
import { UnitTypeCode_2X } from "./2X-3fSEGIuE.js";
|
|
3
|
-
import { UnitTypeCode_3X } from "./3X-Ynjfgoll.js";
|
|
4
|
-
import { UnitTypeCode_4X } from "./4X-B5ePdMky.js";
|
|
5
|
-
import { UnitTypeCode_5X } from "./5X-dhP6fyou.js";
|
|
6
|
-
import { UnitTypeCode_6X } from "./6X-BHaY0TCf.js";
|
|
7
|
-
import { UnitTypeCode_7X } from "./7X-C4eX_tAk.js";
|
|
8
|
-
import { UnitTypeCode_8X } from "./8X-D6HTLShY.js";
|
|
9
|
-
import { UnitTypeCode_9X } from "./9X-CHZKsIdD.js";
|
|
10
|
-
import { UnitTypeCode_AX } from "./AX-C0w_r3PA.js";
|
|
11
|
-
import { UnitTypeCode_BX } from "./BX-RadlZ-6m.js";
|
|
12
|
-
import { UnitTypeCode_CX } from "./CX-CT1Zzb9D.js";
|
|
13
|
-
import { UnitTypeCode_DX } from "./DX-CtUeTKMM.js";
|
|
14
|
-
import { UnitTypeCode_EX } from "./EX-084Yu7Wt.js";
|
|
15
|
-
import { UnitTypeCode_FX } from "./FX-BrbQM0CW.js";
|
|
16
|
-
import { UnitTypeCode_GX } from "./GX-gKj8iAAh.js";
|
|
17
|
-
import { UnitTypeCode_HX } from "./HX-9D-ZXTy5.js";
|
|
18
|
-
import { UnitTypeCode_IX } from "./IX-DR4Fc92A.js";
|
|
19
|
-
import { UnitTypeCode_JX } from "./JX-DIKa9ma-.js";
|
|
20
|
-
import { UnitTypeCode_KX } from "./KX-DpsJ_unT.js";
|
|
21
|
-
import { UnitTypeCode_LX } from "./LX-DeXPPWUX.js";
|
|
22
|
-
import { UnitTypeCode_MX } from "./MX-CKMjg_zK.js";
|
|
23
|
-
import { UnitTypeCode_NX } from "./NX-oYdb4NDo.js";
|
|
24
|
-
import { UnitTypeCode_OX } from "./OX-Bid9es3D.js";
|
|
25
|
-
import { UnitTypeCode_PX } from "./PX-D7jy9CFk.js";
|
|
26
|
-
import { UnitTypeCode_QX } from "./QX-BFWOR4g3.js";
|
|
27
|
-
import { UnitTypeCode_RX } from "./RX-XHgCyMV1.js";
|
|
28
|
-
import { UnitTypeCode_SX } from "./SX-Cl8RN8oH.js";
|
|
29
|
-
import { UnitTypeCode_TX } from "./TX-ZymoIbtr.js";
|
|
30
|
-
import { UnitTypeCode_UX } from "./UX-D-Ndd1ov.js";
|
|
31
|
-
import { UnitTypeCode_VX } from "./VX-B-1b34r7.js";
|
|
32
|
-
import { UnitTypeCode_WX } from "./WX-0GuMjPNZ.js";
|
|
33
|
-
import { UnitTypeCode_YX } from "./YX-B51BbNSg.js";
|
|
34
|
-
import { UnitTypeCode_ZX } from "./ZX-BMJS1iAv.js";
|
|
35
|
-
import { UnitTypeCode_XX } from "./XX-CF2NANsy.js";
|
|
36
|
-
|
|
37
|
-
//#region src/types/unit-types.d.ts
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Represents the allowed codes for Unit of Measurement types.
|
|
41
|
-
* Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
|
|
42
|
-
* https://sdk.myinvois.hasil.gov.my/codes/unit-types/
|
|
43
|
-
*/
|
|
44
|
-
type UnitTypeCode = UnitTypeCode_1X | UnitTypeCode_2X | UnitTypeCode_3X | UnitTypeCode_4X | UnitTypeCode_5X | UnitTypeCode_6X | UnitTypeCode_7X | UnitTypeCode_8X | UnitTypeCode_9X | UnitTypeCode_AX | UnitTypeCode_BX | UnitTypeCode_CX | UnitTypeCode_DX | UnitTypeCode_EX | UnitTypeCode_FX | UnitTypeCode_GX | UnitTypeCode_HX | UnitTypeCode_IX | UnitTypeCode_JX | UnitTypeCode_KX | UnitTypeCode_LX | UnitTypeCode_MX | UnitTypeCode_NX | UnitTypeCode_OX | UnitTypeCode_PX | UnitTypeCode_QX | UnitTypeCode_RX | UnitTypeCode_SX | UnitTypeCode_TX | UnitTypeCode_UX | UnitTypeCode_VX | UnitTypeCode_WX | UnitTypeCode_YX | UnitTypeCode_ZX | UnitTypeCode_XX;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Interface representing a Unit of Measurement entry.
|
|
48
|
-
* Contains the code and its corresponding name.
|
|
49
|
-
*/
|
|
50
|
-
interface UnitType {
|
|
51
|
-
code: UnitTypeCode;
|
|
52
|
-
name: string;
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { UnitType, UnitTypeCode };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { UnitTypeCode_1X } from "./1X-ClnJ79HH.cjs";
|
|
2
|
-
import { UnitTypeCode_2X } from "./2X-CV9eYhog.cjs";
|
|
3
|
-
import { UnitTypeCode_3X } from "./3X--VWVsC84.cjs";
|
|
4
|
-
import { UnitTypeCode_4X } from "./4X-By9PzHaY.cjs";
|
|
5
|
-
import { UnitTypeCode_5X } from "./5X-B5M0Cv_K.cjs";
|
|
6
|
-
import { UnitTypeCode_6X } from "./6X-C3elgd-n.cjs";
|
|
7
|
-
import { UnitTypeCode_7X } from "./7X-D3idQBl9.cjs";
|
|
8
|
-
import { UnitTypeCode_8X } from "./8X-C6UMFvQW.cjs";
|
|
9
|
-
import { UnitTypeCode_9X } from "./9X-CJjPJgIG.cjs";
|
|
10
|
-
import { UnitTypeCode_AX } from "./AX-DrEd2Ov6.cjs";
|
|
11
|
-
import { UnitTypeCode_BX } from "./BX-C5jc6myN.cjs";
|
|
12
|
-
import { UnitTypeCode_CX } from "./CX-oSgvmn3h.cjs";
|
|
13
|
-
import { UnitTypeCode_DX } from "./DX-ZIG0enmK.cjs";
|
|
14
|
-
import { UnitTypeCode_EX } from "./EX-BpWZ5ADq.cjs";
|
|
15
|
-
import { UnitTypeCode_FX } from "./FX-CvYBEc51.cjs";
|
|
16
|
-
import { UnitTypeCode_GX } from "./GX-CU8PZy0G.cjs";
|
|
17
|
-
import { UnitTypeCode_HX } from "./HX-DoEErDeE.cjs";
|
|
18
|
-
import { UnitTypeCode_IX } from "./IX-jLAUHe8i.cjs";
|
|
19
|
-
import { UnitTypeCode_JX } from "./JX-DX8BjYQC.cjs";
|
|
20
|
-
import { UnitTypeCode_KX } from "./KX-fZb4_vhw.cjs";
|
|
21
|
-
import { UnitTypeCode_LX } from "./LX-D_mI1bk-.cjs";
|
|
22
|
-
import { UnitTypeCode_MX } from "./MX-DlYZhpkT.cjs";
|
|
23
|
-
import { UnitTypeCode_NX } from "./NX-DELEEbad.cjs";
|
|
24
|
-
import { UnitTypeCode_OX } from "./OX-CKPyrIFf.cjs";
|
|
25
|
-
import { UnitTypeCode_PX } from "./PX-SP6NxBtG.cjs";
|
|
26
|
-
import { UnitTypeCode_QX } from "./QX-QZA7E2O-.cjs";
|
|
27
|
-
import { UnitTypeCode_RX } from "./RX-DBcgbdeE.cjs";
|
|
28
|
-
import { UnitTypeCode_SX } from "./SX-DmiJeCMN.cjs";
|
|
29
|
-
import { UnitTypeCode_TX } from "./TX-C1SoDobK.cjs";
|
|
30
|
-
import { UnitTypeCode_UX } from "./UX-DFVynFhQ.cjs";
|
|
31
|
-
import { UnitTypeCode_VX } from "./VX-DsRum5k3.cjs";
|
|
32
|
-
import { UnitTypeCode_WX } from "./WX-VReU5R5M.cjs";
|
|
33
|
-
import { UnitTypeCode_YX } from "./YX-QfzeMEKx.cjs";
|
|
34
|
-
import { UnitTypeCode_ZX } from "./ZX-Ca2E726a.cjs";
|
|
35
|
-
import { UnitTypeCode_XX } from "./XX-ChAviUMj.cjs";
|
|
36
|
-
|
|
37
|
-
//#region src/types/unit-types.d.ts
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Represents the allowed codes for Unit of Measurement types.
|
|
41
|
-
* Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
|
|
42
|
-
* https://sdk.myinvois.hasil.gov.my/codes/unit-types/
|
|
43
|
-
*/
|
|
44
|
-
type UnitTypeCode = UnitTypeCode_1X | UnitTypeCode_2X | UnitTypeCode_3X | UnitTypeCode_4X | UnitTypeCode_5X | UnitTypeCode_6X | UnitTypeCode_7X | UnitTypeCode_8X | UnitTypeCode_9X | UnitTypeCode_AX | UnitTypeCode_BX | UnitTypeCode_CX | UnitTypeCode_DX | UnitTypeCode_EX | UnitTypeCode_FX | UnitTypeCode_GX | UnitTypeCode_HX | UnitTypeCode_IX | UnitTypeCode_JX | UnitTypeCode_KX | UnitTypeCode_LX | UnitTypeCode_MX | UnitTypeCode_NX | UnitTypeCode_OX | UnitTypeCode_PX | UnitTypeCode_QX | UnitTypeCode_RX | UnitTypeCode_SX | UnitTypeCode_TX | UnitTypeCode_UX | UnitTypeCode_VX | UnitTypeCode_WX | UnitTypeCode_YX | UnitTypeCode_ZX | UnitTypeCode_XX;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Interface representing a Unit of Measurement entry.
|
|
48
|
-
* Contains the code and its corresponding name.
|
|
49
|
-
*/
|
|
50
|
-
interface UnitType {
|
|
51
|
-
code: UnitTypeCode;
|
|
52
|
-
name: string;
|
|
53
|
-
}
|
|
54
|
-
//#endregion
|
|
55
|
-
export { UnitType, UnitTypeCode };
|
|
56
|
-
//# sourceMappingURL=unit-types-CjWNk2wS.d.cts.map
|