@ripwords/myinvois-client 0.0.7 → 0.0.9

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 (55) hide show
  1. package/bun.lock +110 -27
  2. package/dist/index.cjs +42 -20
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +2334 -481
  5. package/dist/index.js +42 -20
  6. package/package.json +19 -17
  7. package/rolldown.config.ts +5 -1
  8. package/src/api/platform/taxpayerLogin.ts +28 -0
  9. package/src/types/index.d.ts +12 -0
  10. package/src/types/unit/1X.d.ts +16 -0
  11. package/src/types/unit/2X.d.ts +62 -0
  12. package/src/types/unit/3X.d.ts +17 -0
  13. package/src/types/unit/4X.d.ts +44 -0
  14. package/src/types/unit/5X.d.ts +26 -0
  15. package/src/types/unit/6X.d.ts +12 -0
  16. package/src/types/unit/7X.d.ts +12 -0
  17. package/src/types/unit/8X.d.ts +15 -0
  18. package/src/types/unit/9X.d.ts +11 -0
  19. package/src/types/unit/AX.d.ts +202 -0
  20. package/src/types/unit/BX.d.ts +212 -0
  21. package/src/types/unit/CX.d.ts +238 -0
  22. package/src/types/unit/DX.d.ts +212 -0
  23. package/src/types/unit/EX.d.ts +196 -0
  24. package/src/types/unit/FX.d.ts +236 -0
  25. package/src/types/unit/GX.d.ts +254 -0
  26. package/src/types/unit/HX.d.ts +234 -0
  27. package/src/types/unit/IX.d.ts +28 -0
  28. package/src/types/unit/JX.d.ts +190 -0
  29. package/src/types/unit/KX.d.ts +284 -0
  30. package/src/types/unit/LX.d.ts +228 -0
  31. package/src/types/unit/MX.d.ts +288 -0
  32. package/src/types/unit/NX.d.ts +226 -0
  33. package/src/types/unit/OX.d.ts +34 -0
  34. package/src/types/unit/PX.d.ts +224 -0
  35. package/src/types/unit/QX.d.ts +94 -0
  36. package/src/types/unit/RX.d.ts +28 -0
  37. package/src/types/unit/SX.d.ts +56 -0
  38. package/src/types/unit/TX.d.ts +44 -0
  39. package/src/types/unit/UX.d.ts +14 -0
  40. package/src/types/unit/VX.d.ts +13 -0
  41. package/src/types/unit/WX.d.ts +34 -0
  42. package/src/types/unit/XX.d.ts +825 -0
  43. package/src/types/unit/YX.d.ts +17 -0
  44. package/src/types/unit/ZX.d.ts +19 -0
  45. package/src/types/unit-types.d.ts +71 -575
  46. package/src/utils/MyInvoisClient.ts +13 -35
  47. package/src/utils/getBaseUrl.ts +5 -0
  48. package/test/{MyInvoiClientRealData.test.ts → MyInvoiClientWithRealData.test.ts} +13 -1
  49. package/test/MyInvoisClient.test.ts +4 -7
  50. package/dist/cjs/index.cjs +0 -75
  51. package/dist/cjs/index.cjs.map +0 -1
  52. package/dist/cjs/multipart-parser-Bu3ikqFQ.cjs +0 -182
  53. package/dist/cjs/multipart-parser-Bu3ikqFQ.cjs.map +0 -1
  54. package/dist/cjs/node-qs2pnN6F.cjs +0 -4124
  55. package/dist/cjs/node-qs2pnN6F.cjs.map +0 -1
package/dist/index.d.ts CHANGED
@@ -1528,20 +1528,18 @@ interface Classification {
1528
1528
  }
1529
1529
 
1530
1530
  //#endregion
1531
- //#region src/types/unit-types.d.ts
1531
+ //#region src/types/unit/1X.d.ts
1532
1532
  /**
1533
- * Represents the allowed codes for Unit of Measurement types.
1534
- * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
1535
- * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
1536
- * NOTE: This list is incomplete as the provided documentation snippet omitted a large number of codes.
1533
+ * Unit type codes starting with '1'.
1537
1534
  */
1538
- type UnitTypeCode =
1539
- | '10'
1540
- | '11'
1541
- | '13'
1542
- | '14'
1543
- | '15'
1544
- | '1I'
1535
+ type UnitTypeCode_1X = '10' | '11' | '13' | '14' | '15' | '1I'
1536
+
1537
+ //#endregion
1538
+ //#region src/types/unit/2X.d.ts
1539
+ /**
1540
+ * Unit type codes starting with '2'.
1541
+ */
1542
+ type UnitTypeCode_2X =
1545
1543
  | '20'
1546
1544
  | '21'
1547
1545
  | '22'
@@ -1568,13 +1566,20 @@ type UnitTypeCode =
1568
1566
  | '2X'
1569
1567
  | '2Y'
1570
1568
  | '2Z'
1571
- | '33'
1572
- | '34'
1573
- | '35'
1574
- | '37'
1575
- | '38'
1576
- | '3B'
1577
- | '3C'
1569
+
1570
+ //#endregion
1571
+ //#region src/types/unit/3X.d.ts
1572
+ /**
1573
+ * Unit type codes starting with '3'.
1574
+ */
1575
+ type UnitTypeCode_3X = '33' | '34' | '35' | '37' | '38' | '3B' | '3C'
1576
+
1577
+ //#endregion
1578
+ //#region src/types/unit/4X.d.ts
1579
+ /**
1580
+ * Unit type codes starting with '4'.
1581
+ */
1582
+ type UnitTypeCode_4X =
1578
1583
  | '40'
1579
1584
  | '41'
1580
1585
  | '4C'
@@ -1592,6 +1597,13 @@ type UnitTypeCode =
1592
1597
  | '4U'
1593
1598
  | '4W'
1594
1599
  | '4X'
1600
+
1601
+ //#endregion
1602
+ //#region src/types/unit/5X.d.ts
1603
+ /**
1604
+ * Unit type codes starting with '5'.
1605
+ */
1606
+ type UnitTypeCode_5X =
1595
1607
  | '56'
1596
1608
  | '57'
1597
1609
  | '58'
@@ -1600,16 +1612,41 @@ type UnitTypeCode =
1600
1612
  | '5B'
1601
1613
  | '5E'
1602
1614
  | '5J'
1603
- | '60'
1604
- | '61'
1605
- | '74'
1606
- | '77'
1607
- | '80'
1608
- | '81'
1609
- | '85'
1610
- | '87'
1611
- | '89'
1612
- | '91'
1615
+
1616
+ //#endregion
1617
+ //#region src/types/unit/6X.d.ts
1618
+ /**
1619
+ * Unit type codes starting with '6'.
1620
+ */
1621
+ type UnitTypeCode_6X = '60' | '61'
1622
+
1623
+ //#endregion
1624
+ //#region src/types/unit/7X.d.ts
1625
+ /**
1626
+ * Unit type codes starting with '7'.
1627
+ */
1628
+ type UnitTypeCode_7X = '74' | '77'
1629
+
1630
+ //#endregion
1631
+ //#region src/types/unit/8X.d.ts
1632
+ /**
1633
+ * Unit type codes starting with '8'.
1634
+ */
1635
+ type UnitTypeCode_8X = '80' | '81' | '85' | '87' | '89'
1636
+
1637
+ //#endregion
1638
+ //#region src/types/unit/9X.d.ts
1639
+ /**
1640
+ * Unit type codes starting with '9'.
1641
+ */
1642
+ type UnitTypeCode_9X = '91'
1643
+
1644
+ //#endregion
1645
+ //#region src/types/unit/AX.d.ts
1646
+ /**
1647
+ * Unit type codes starting with 'A'.
1648
+ */
1649
+ type UnitTypeCode_AX =
1613
1650
  | 'A10'
1614
1651
  | 'A11'
1615
1652
  | 'A12'
@@ -1674,441 +1711,2244 @@ type UnitTypeCode =
1674
1711
  | 'A87'
1675
1712
  | 'A88'
1676
1713
  | 'A89'
1677
- // ... (Codes omitted in provided documentation) ...
1678
- | 'XQP'
1679
- | 'XQQ'
1680
- | 'XQR'
1681
- | 'XQS'
1682
- | 'XRD'
1683
- | 'XRG'
1684
- | 'XRJ'
1685
- | 'XRK'
1686
- | 'XRL'
1687
- | 'XRO'
1688
- | 'XRT'
1689
- | 'XRZ'
1690
- | 'XSA'
1691
- | 'XSB'
1692
- | 'XSC'
1693
- | 'XSD'
1694
- | 'XSE'
1695
- | 'XSH'
1696
- | 'XSI'
1697
- | 'XSK'
1698
- | 'XSL'
1699
- | 'XSM'
1700
- | 'XSO'
1701
- | 'XSP'
1702
- | 'XSS'
1703
- | 'XST'
1704
- | 'XSU'
1705
- | 'XSV'
1706
- | 'XSW'
1707
- | 'XSX'
1708
- | 'XSY'
1709
- | 'XSZ'
1710
- | 'XT1'
1711
- | 'XTB'
1712
- | 'XTC'
1713
- | 'XTD'
1714
- | 'XTE'
1715
- | 'XTG'
1716
- | 'XTI'
1717
- | 'XTK'
1718
- | 'XTL'
1719
- | 'XTN'
1720
- | 'XTO'
1721
- | 'XTR'
1722
- | 'XTS'
1723
- | 'XTT'
1724
- | 'XTU'
1725
- | 'XTV'
1726
- | 'XTW'
1727
- | 'XTY'
1728
- | 'XTZ'
1729
- | 'XUC'
1730
- | 'XUN'
1731
- | 'XVA'
1732
- | 'XVG'
1733
- | 'XVI'
1734
- | 'XVK'
1735
- | 'XVL'
1736
- | 'XVN'
1737
- | 'XVO'
1738
- | 'XVP'
1739
- | 'XVQ'
1740
- | 'XVR'
1741
- | 'XVS'
1742
- | 'XVY'
1743
- | 'XWA'
1744
- | 'XWB'
1745
- | 'XWC'
1746
- | 'XWD'
1747
- | 'XWF'
1748
- | 'XWG'
1749
- | 'XWH'
1750
- | 'XWJ'
1751
- | 'XWK'
1752
- | 'XWL'
1753
- | 'XWM'
1754
- | 'XWN'
1755
- | 'XWP'
1756
- | 'XWQ'
1757
- | 'XWR'
1758
- | 'XWS'
1759
- | 'XWT'
1760
- | 'XWU'
1761
- | 'XWV'
1762
- | 'XWW'
1763
- | 'XWX'
1764
- | 'XWY'
1765
- | 'XWZ'
1766
- | 'XXA'
1767
- | 'XXB'
1768
- | 'XXC'
1769
- | 'XXD'
1770
- | 'XXF'
1771
- | 'XXG'
1772
- | 'XXH'
1773
- | 'XXJ'
1774
- | 'XXK'
1775
- | 'XYA'
1776
- | 'XYB'
1777
- | 'XYC'
1778
- | 'XYD'
1779
- | 'XYF'
1780
- | 'XYG'
1781
- | 'XYH'
1782
- | 'XYJ'
1783
- | 'XYK'
1784
- | 'XYL'
1785
- | 'XYM'
1786
- | 'XYN'
1787
- | 'XYP'
1788
- | 'XYQ'
1789
- | 'XYR'
1790
- | 'XYS'
1791
- | 'XYT'
1792
- | 'XYV'
1793
- | 'XYW'
1794
- | 'XYX'
1795
- | 'XYY'
1796
- | 'XYZ'
1797
- | 'XZA'
1798
- | 'XZB'
1799
- | 'XZC'
1800
- | 'XZD'
1801
- | 'XZF'
1802
- | 'XZG'
1803
- | 'XZH'
1804
- | 'XZJ'
1805
- | 'XZK'
1806
- | 'XZL'
1807
- | 'XZM'
1808
- | 'XZN'
1809
- | 'XZP'
1810
- | 'XZQ'
1811
- | 'XZR'
1812
- | 'XZS'
1813
- | 'XZT'
1814
- | 'XZU'
1815
- | 'XZV'
1816
- | 'XZW'
1817
- | 'XZX'
1818
- | 'XZY'
1714
+ | 'A9'
1715
+ | 'A90'
1716
+ | 'A91'
1717
+ | 'A93'
1718
+ | 'A94'
1719
+ | 'A95'
1720
+ | 'A96'
1721
+ | 'A97'
1722
+ | 'A98'
1723
+ | 'A99'
1724
+ | 'AA'
1725
+ | 'AB'
1726
+ | 'ACR'
1727
+ | 'ACT'
1728
+ | 'AD'
1729
+ | 'AE'
1730
+ | 'AH'
1731
+ | 'AI'
1732
+ | 'AK'
1733
+ | 'AL'
1734
+ | 'AMH'
1735
+ | 'AMP'
1736
+ | 'ANN'
1737
+ | 'APZ'
1738
+ | 'AQ'
1739
+ | 'AS'
1740
+ | 'ASM'
1741
+ | 'ASU'
1742
+ | 'ATM'
1743
+ | 'AWG'
1744
+ | 'AY'
1745
+ | 'AZ'
1746
+
1747
+ //#endregion
1748
+ //#region src/types/unit/BX.d.ts
1749
+ /**
1750
+ * Unit type codes starting with 'B'.
1751
+ */
1752
+ type UnitTypeCode_BX =
1753
+ | 'B1'
1754
+ | 'B10'
1755
+ | 'B11'
1756
+ | 'B12'
1757
+ | 'B13'
1758
+ | 'B14'
1759
+ | 'B15'
1760
+ | 'B16'
1761
+ | 'B17'
1762
+ | 'B18'
1763
+ | 'B19'
1764
+ | 'B20'
1765
+ | 'B21'
1766
+ | 'B22'
1767
+ | 'B23'
1768
+ | 'B24'
1769
+ | 'B25'
1770
+ | 'B26'
1771
+ | 'B27'
1772
+ | 'B28'
1773
+ | 'B29'
1774
+ | 'B3'
1775
+ | 'B30'
1776
+ | 'B31'
1777
+ | 'B32'
1778
+ | 'B33'
1779
+ | 'B34'
1780
+ | 'B35'
1781
+ | 'B4'
1782
+ | 'B41'
1783
+ | 'B42'
1784
+ | 'B43'
1785
+ | 'B44'
1786
+ | 'B45'
1787
+ | 'B46'
1788
+ | 'B47'
1789
+ | 'B48'
1790
+ | 'B49'
1791
+ | 'B50'
1792
+ | 'B52'
1793
+ | 'B53'
1794
+ | 'B54'
1795
+ | 'B55'
1796
+ | 'B56'
1797
+ | 'B57'
1798
+ | 'B58'
1799
+ | 'B59'
1800
+ | 'B60'
1801
+ | 'B61'
1802
+ | 'B62'
1803
+ | 'B63'
1804
+ | 'B64'
1805
+ | 'B66'
1806
+ | 'B67'
1807
+ | 'B68'
1808
+ | 'B69'
1809
+ | 'B7'
1810
+ | 'B70'
1811
+ | 'B71'
1812
+ | 'B72'
1813
+ | 'B73'
1814
+ | 'B74'
1815
+ | 'B75'
1816
+ | 'B76'
1817
+ | 'B77'
1818
+ | 'B78'
1819
+ | 'B79'
1820
+ | 'B8'
1821
+ | 'B80'
1822
+ | 'B81'
1823
+ | 'B82'
1824
+ | 'B83'
1825
+ | 'B84'
1826
+ | 'B85'
1827
+ | 'B86'
1828
+ | 'B87'
1829
+ | 'B88'
1830
+ | 'B89'
1831
+ | 'B90'
1832
+ | 'B91'
1833
+ | 'B92'
1834
+ | 'B93'
1835
+ | 'B94'
1836
+ | 'B95'
1837
+ | 'B96'
1838
+ | 'B97'
1839
+ | 'B98'
1840
+ | 'B99'
1841
+ | 'BAR'
1842
+ | 'BB'
1843
+ | 'BFT'
1844
+ | 'BHP'
1845
+ | 'BIL'
1846
+ | 'BLD'
1847
+ | 'BLL'
1848
+ | 'BP'
1849
+ | 'BPM'
1850
+ | 'BQL'
1851
+ | 'BTU'
1852
+ | 'BUA'
1853
+ | 'BUI'
1854
+
1855
+ //#endregion
1856
+ //#region src/types/unit/CX.d.ts
1857
+ /**
1858
+ * Unit type codes starting with 'C'.
1859
+ */
1860
+ type UnitTypeCode_CX =
1861
+ | 'C0'
1862
+ | 'C10'
1863
+ | 'C11'
1864
+ | 'C12'
1865
+ | 'C13'
1866
+ | 'C14'
1867
+ | 'C15'
1868
+ | 'C16'
1869
+ | 'C17'
1870
+ | 'C18'
1871
+ | 'C19'
1872
+ | 'C20'
1873
+ | 'C21'
1874
+ | 'C22'
1875
+ | 'C23'
1876
+ | 'C24'
1877
+ | 'C25'
1878
+ | 'C26'
1879
+ | 'C27'
1880
+ | 'C28'
1881
+ | 'C29'
1882
+ | 'C3'
1883
+ | 'C30'
1884
+ | 'C31'
1885
+ | 'C32'
1886
+ | 'C33'
1887
+ | 'C34'
1888
+ | 'C35'
1889
+ | 'C36'
1890
+ | 'C37'
1891
+ | 'C38'
1892
+ | 'C39'
1893
+ | 'C40'
1894
+ | 'C41'
1895
+ | 'C42'
1896
+ | 'C43'
1897
+ | 'C44'
1898
+ | 'C45'
1899
+ | 'C46'
1900
+ | 'C47'
1901
+ | 'C48'
1902
+ | 'C49'
1903
+ | 'C50'
1904
+ | 'C51'
1905
+ | 'C52'
1906
+ | 'C53'
1907
+ | 'C54'
1908
+ | 'C55'
1909
+ | 'C56'
1910
+ | 'C57'
1911
+ | 'C58'
1912
+ | 'C59'
1913
+ | 'C60'
1914
+ | 'C61'
1915
+ | 'C62'
1916
+ | 'C63'
1917
+ | 'C64'
1918
+ | 'C65'
1919
+ | 'C66'
1920
+ | 'C67'
1921
+ | 'C68'
1922
+ | 'C69'
1923
+ | 'C7'
1924
+ | 'C70'
1925
+ | 'C71'
1926
+ | 'C72'
1927
+ | 'C73'
1928
+ | 'C74'
1929
+ | 'C75'
1930
+ | 'C76'
1931
+ | 'C78'
1932
+ | 'C79'
1933
+ | 'C8'
1934
+ | 'C80'
1935
+ | 'C81'
1936
+ | 'C82'
1937
+ | 'C83'
1938
+ | 'C84'
1939
+ | 'C85'
1940
+ | 'C86'
1941
+ | 'C87'
1942
+ | 'C88'
1943
+ | 'C89'
1944
+ | 'C9'
1945
+ | 'C90'
1946
+ | 'C91'
1947
+ | 'C92'
1948
+ | 'C93'
1949
+ | 'C94'
1950
+ | 'C95'
1951
+ | 'C96'
1952
+ | 'C97'
1953
+ | 'C99'
1954
+ | 'CCT'
1955
+ | 'CDL'
1956
+ | 'CEL'
1957
+ | 'CEN'
1958
+ | 'CG'
1959
+ | 'CGM'
1960
+ | 'CKG'
1961
+ | 'CLF'
1962
+ | 'CLT'
1963
+ | 'CMK'
1964
+ | 'CMQ'
1965
+ | 'CMT'
1966
+ | 'CNP'
1967
+ | 'CNT'
1968
+ | 'COU'
1969
+ | 'CTG'
1970
+ | 'CTM'
1971
+ | 'CTN'
1972
+ | 'CUR'
1973
+ | 'CWA'
1974
+ | 'CWI'
1975
+
1976
+ //#endregion
1977
+ //#region src/types/unit/DX.d.ts
1978
+ /**
1979
+ * Unit type codes starting with 'D'.
1980
+ */
1981
+ type UnitTypeCode_DX =
1982
+ | 'D03'
1983
+ | 'D04'
1984
+ | 'D1'
1985
+ | 'D10'
1986
+ | 'D11'
1987
+ | 'D12'
1988
+ | 'D13'
1989
+ | 'D15'
1990
+ | 'D16'
1991
+ | 'D17'
1992
+ | 'D18'
1993
+ | 'D19'
1994
+ | 'D2'
1995
+ | 'D20'
1996
+ | 'D21'
1997
+ | 'D22'
1998
+ | 'D23'
1999
+ | 'D24'
2000
+ | 'D25'
2001
+ | 'D26'
2002
+ | 'D27'
2003
+ | 'D29'
2004
+ | 'D30'
2005
+ | 'D31'
2006
+ | 'D32'
2007
+ | 'D33'
2008
+ | 'D34'
2009
+ | 'D36'
2010
+ | 'D41'
2011
+ | 'D42'
2012
+ | 'D43'
2013
+ | 'D44'
2014
+ | 'D45'
2015
+ | 'D46'
2016
+ | 'D47'
2017
+ | 'D48'
2018
+ | 'D49'
2019
+ | 'D5'
2020
+ | 'D50'
2021
+ | 'D51'
2022
+ | 'D52'
2023
+ | 'D53'
2024
+ | 'D54'
2025
+ | 'D55'
2026
+ | 'D56'
2027
+ | 'D57'
2028
+ | 'D58'
2029
+ | 'D59'
2030
+ | 'D6'
2031
+ | 'D60'
2032
+ | 'D61'
2033
+ | 'D62'
2034
+ | 'D63'
2035
+ | 'D65'
2036
+ | 'D68'
2037
+ | 'D69'
2038
+ | 'D73'
2039
+ | 'D74'
2040
+ | 'D77'
2041
+ | 'D78'
2042
+ | 'D80'
2043
+ | 'D81'
2044
+ | 'D82'
2045
+ | 'D83'
2046
+ | 'D85'
2047
+ | 'D86'
2048
+ | 'D87'
2049
+ | 'D88'
2050
+ | 'D89'
2051
+ | 'D91'
2052
+ | 'D93'
2053
+ | 'D94'
2054
+ | 'D95'
2055
+ | 'DAA'
2056
+ | 'DAD'
2057
+ | 'DAY'
2058
+ | 'DB'
2059
+ | 'DBM'
2060
+ | 'DBW'
2061
+ | 'DD'
2062
+ | 'DEC'
2063
+ | 'DG'
2064
+ | 'DJ'
2065
+ | 'DLT'
2066
+ | 'DMA'
2067
+ | 'DMK'
2068
+ | 'DMO'
2069
+ | 'DMQ'
2070
+ | 'DMT'
2071
+ | 'DN'
2072
+ | 'DPC'
2073
+ | 'DPR'
2074
+ | 'DPT'
2075
+ | 'DRA'
2076
+ | 'DRI'
2077
+ | 'DRL'
2078
+ | 'DT'
2079
+ | 'DTN'
2080
+ | 'DWT'
2081
+ | 'DZN'
2082
+ | 'DZP'
2083
+
2084
+ //#endregion
2085
+ //#region src/types/unit/EX.d.ts
2086
+ /**
2087
+ * Unit type codes starting with 'E'.
2088
+ */
2089
+ type UnitTypeCode_EX =
2090
+ | 'E01'
2091
+ | 'E07'
2092
+ | 'E08'
2093
+ | 'E09'
2094
+ | 'E10'
2095
+ | 'E12'
2096
+ | 'E14'
2097
+ | 'E15'
2098
+ | 'E16'
2099
+ | 'E17'
2100
+ | 'E18'
2101
+ | 'E19'
2102
+ | 'E20'
2103
+ | 'E21'
2104
+ | 'E22'
2105
+ | 'E23'
2106
+ | 'E25'
2107
+ | 'E27'
2108
+ | 'E28'
2109
+ | 'E30'
2110
+ | 'E31'
2111
+ | 'E32'
2112
+ | 'E33'
2113
+ | 'E34'
2114
+ | 'E35'
2115
+ | 'E36'
2116
+ | 'E37'
2117
+ | 'E38'
2118
+ | 'E39'
2119
+ | 'E4'
2120
+ | 'E40'
2121
+ | 'E41'
2122
+ | 'E42'
2123
+ | 'E43'
2124
+ | 'E44'
2125
+ | 'E45'
2126
+ | 'E46'
2127
+ | 'E47'
2128
+ | 'E48'
2129
+ | 'E49'
2130
+ | 'E50'
2131
+ | 'E51'
2132
+ | 'E52'
2133
+ | 'E53'
2134
+ | 'E54'
2135
+ | 'E55'
2136
+ | 'E56'
2137
+ | 'E57'
2138
+ | 'E58'
2139
+ | 'E59'
2140
+ | 'E60'
2141
+ | 'E61'
2142
+ | 'E62'
2143
+ | 'E63'
2144
+ | 'E64'
2145
+ | 'E65'
2146
+ | 'E66'
2147
+ | 'E67'
2148
+ | 'E68'
2149
+ | 'E69'
2150
+ | 'E70'
2151
+ | 'E71'
2152
+ | 'E72'
2153
+ | 'E73'
2154
+ | 'E74'
2155
+ | 'E75'
2156
+ | 'E76'
2157
+ | 'E77'
2158
+ | 'E78'
2159
+ | 'E79'
2160
+ | 'E80'
2161
+ | 'E81'
2162
+ | 'E82'
2163
+ | 'E83'
2164
+ | 'E84'
2165
+ | 'E85'
2166
+ | 'E86'
2167
+ | 'E87'
2168
+ | 'E88'
2169
+ | 'E89'
2170
+ | 'E90'
2171
+ | 'E91'
2172
+ | 'E92'
2173
+ | 'E93'
2174
+ | 'E94'
2175
+ | 'E95'
2176
+ | 'E96'
2177
+ | 'E97'
2178
+ | 'E98'
2179
+ | 'E99'
2180
+ | 'EA'
2181
+ | 'EB'
2182
+ | 'EQ'
2183
+
2184
+ //#endregion
2185
+ //#region src/types/unit/FX.d.ts
2186
+ /**
2187
+ * Unit type codes starting with 'F'.
2188
+ */
2189
+ type UnitTypeCode_FX =
2190
+ | 'F01'
2191
+ | 'F02'
2192
+ | 'F03'
2193
+ | 'F04'
2194
+ | 'F05'
2195
+ | 'F06'
2196
+ | 'F07'
2197
+ | 'F08'
2198
+ | 'F10'
2199
+ | 'F11'
2200
+ | 'F12'
2201
+ | 'F13'
2202
+ | 'F14'
2203
+ | 'F15'
2204
+ | 'F16'
2205
+ | 'F17'
2206
+ | 'F18'
2207
+ | 'F19'
2208
+ | 'F20'
2209
+ | 'F21'
2210
+ | 'F22'
2211
+ | 'F23'
2212
+ | 'F24'
2213
+ | 'F25'
2214
+ | 'F26'
2215
+ | 'F27'
2216
+ | 'F28'
2217
+ | 'F29'
2218
+ | 'F30'
2219
+ | 'F31'
2220
+ | 'F32'
2221
+ | 'F33'
2222
+ | 'F34'
2223
+ | 'F35'
2224
+ | 'F36'
2225
+ | 'F37'
2226
+ | 'F38'
2227
+ | 'F39'
2228
+ | 'F40'
2229
+ | 'F41'
2230
+ | 'F42'
2231
+ | 'F43'
2232
+ | 'F44'
2233
+ | 'F45'
2234
+ | 'F46'
2235
+ | 'F47'
2236
+ | 'F48'
2237
+ | 'F49'
2238
+ | 'F50'
2239
+ | 'F51'
2240
+ | 'F52'
2241
+ | 'F53'
2242
+ | 'F54'
2243
+ | 'F55'
2244
+ | 'F56'
2245
+ | 'F57'
2246
+ | 'F58'
2247
+ | 'F59'
2248
+ | 'F60'
2249
+ | 'F61'
2250
+ | 'F62'
2251
+ | 'F63'
2252
+ | 'F64'
2253
+ | 'F65'
2254
+ | 'F66'
2255
+ | 'F67'
2256
+ | 'F68'
2257
+ | 'F69'
2258
+ | 'F70'
2259
+ | 'F71'
2260
+ | 'F72'
2261
+ | 'F73'
2262
+ | 'F74'
2263
+ | 'F75'
2264
+ | 'F76'
2265
+ | 'F77'
2266
+ | 'F78'
2267
+ | 'F79'
2268
+ | 'F80'
2269
+ | 'F81'
2270
+ | 'F82'
2271
+ | 'F83'
2272
+ | 'F84'
2273
+ | 'F85'
2274
+ | 'F86'
2275
+ | 'F87'
2276
+ | 'F88'
2277
+ | 'F89'
2278
+ | 'F90'
2279
+ | 'F91'
2280
+ | 'F92'
2281
+ | 'F93'
2282
+ | 'F94'
2283
+ | 'F95'
2284
+ | 'F96'
2285
+ | 'F97'
2286
+ | 'F98'
2287
+ | 'F99'
2288
+ | 'FAH'
2289
+ | 'FAR'
2290
+ | 'FBM'
2291
+ | 'FC'
2292
+ | 'FF'
2293
+ | 'FH'
2294
+ | 'FIT'
2295
+ | 'FL'
2296
+ | 'FNU'
2297
+ | 'FOT'
2298
+ | 'FP'
2299
+ | 'FR'
2300
+ | 'FS'
2301
+ | 'FTK'
2302
+ | 'FTQ'
2303
+
2304
+ //#endregion
2305
+ //#region src/types/unit/GX.d.ts
2306
+ /**
2307
+ * Unit type codes starting with 'G'.
2308
+ */
2309
+ type UnitTypeCode_GX =
2310
+ | 'G01'
2311
+ | 'G04'
2312
+ | 'G05'
2313
+ | 'G06'
2314
+ | 'G08'
2315
+ | 'G09'
2316
+ | 'G10'
2317
+ | 'G11'
2318
+ | 'G12'
2319
+ | 'G13'
2320
+ | 'G14'
2321
+ | 'G15'
2322
+ | 'G16'
2323
+ | 'G17'
2324
+ | 'G18'
2325
+ | 'G19'
2326
+ | 'G2'
2327
+ | 'G20'
2328
+ | 'G21'
2329
+ | 'G23'
2330
+ | 'G24'
2331
+ | 'G25'
2332
+ | 'G26'
2333
+ | 'G27'
2334
+ | 'G28'
2335
+ | 'G29'
2336
+ | 'G3'
2337
+ | 'G30'
2338
+ | 'G31'
2339
+ | 'G32'
2340
+ | 'G33'
2341
+ | 'G34'
2342
+ | 'G35'
2343
+ | 'G36'
2344
+ | 'G37'
2345
+ | 'G38'
2346
+ | 'G39'
2347
+ | 'G40'
2348
+ | 'G41'
2349
+ | 'G42'
2350
+ | 'G43'
2351
+ | 'G44'
2352
+ | 'G45'
2353
+ | 'G46'
2354
+ | 'G47'
2355
+ | 'G48'
2356
+ | 'G49'
2357
+ | 'G50'
2358
+ | 'G51'
2359
+ | 'G52'
2360
+ | 'G53'
2361
+ | 'G54'
2362
+ | 'G55'
2363
+ | 'G56'
2364
+ | 'G57'
2365
+ | 'G58'
2366
+ | 'G59'
2367
+ | 'G60'
2368
+ | 'G61'
2369
+ | 'G62'
2370
+ | 'G63'
2371
+ | 'G64'
2372
+ | 'G65'
2373
+ | 'G66'
2374
+ | 'G67'
2375
+ | 'G68'
2376
+ | 'G69'
2377
+ | 'G70'
2378
+ | 'G71'
2379
+ | 'G72'
2380
+ | 'G73'
2381
+ | 'G74'
2382
+ | 'G75'
2383
+ | 'G76'
2384
+ | 'G77'
2385
+ | 'G78'
2386
+ | 'G79'
2387
+ | 'G80'
2388
+ | 'G81'
2389
+ | 'G82'
2390
+ | 'G83'
2391
+ | 'G84'
2392
+ | 'G85'
2393
+ | 'G86'
2394
+ | 'G87'
2395
+ | 'G88'
2396
+ | 'G89'
2397
+ | 'G90'
2398
+ | 'G91'
2399
+ | 'G92'
2400
+ | 'G93'
2401
+ | 'G94'
2402
+ | 'G95'
2403
+ | 'G96'
2404
+ | 'G97'
2405
+ | 'G98'
2406
+ | 'G99'
2407
+ | 'GB'
2408
+ | 'GBQ'
2409
+ | 'GDW'
2410
+ | 'GE'
2411
+ | 'GF'
2412
+ | 'GFI'
2413
+ | 'GGR'
2414
+ | 'GIA'
2415
+ | 'GIC'
2416
+ | 'GII'
2417
+ | 'GIP'
2418
+ | 'GJ'
2419
+ | 'GL'
2420
+ | 'GLD'
2421
+ | 'GLI'
2422
+ | 'GLL'
2423
+ | 'GM'
2424
+ | 'GO'
2425
+ | 'GP'
2426
+ | 'GQ'
2427
+ | 'GRM'
2428
+ | 'GRN'
2429
+ | 'GRO'
2430
+ | 'GV'
2431
+ | 'GWH'
2432
+
2433
+ //#endregion
2434
+ //#region src/types/unit/HX.d.ts
2435
+ /**
2436
+ * Unit type codes starting with 'H'.
2437
+ */
2438
+ type UnitTypeCode_HX =
2439
+ | 'H03'
2440
+ | 'H04'
2441
+ | 'H05'
2442
+ | 'H06'
2443
+ | 'H07'
2444
+ | 'H08'
2445
+ | 'H09'
2446
+ | 'H10'
2447
+ | 'H11'
2448
+ | 'H12'
2449
+ | 'H13'
2450
+ | 'H14'
2451
+ | 'H15'
2452
+ | 'H16'
2453
+ | 'H18'
2454
+ | 'H19'
2455
+ | 'H20'
2456
+ | 'H21'
2457
+ | 'H22'
2458
+ | 'H23'
2459
+ | 'H24'
2460
+ | 'H25'
2461
+ | 'H26'
2462
+ | 'H27'
2463
+ | 'H28'
2464
+ | 'H29'
2465
+ | 'H30'
2466
+ | 'H31'
2467
+ | 'H32'
2468
+ | 'H33'
2469
+ | 'H34'
2470
+ | 'H35'
2471
+ | 'H36'
2472
+ | 'H37'
2473
+ | 'H38'
2474
+ | 'H39'
2475
+ | 'H40'
2476
+ | 'H41'
2477
+ | 'H42'
2478
+ | 'H43'
2479
+ | 'H44'
2480
+ | 'H45'
2481
+ | 'H46'
2482
+ | 'H47'
2483
+ | 'H48'
2484
+ | 'H49'
2485
+ | 'H50'
2486
+ | 'H51'
2487
+ | 'H52'
2488
+ | 'H53'
2489
+ | 'H54'
2490
+ | 'H55'
2491
+ | 'H56'
2492
+ | 'H57'
2493
+ | 'H58'
2494
+ | 'H59'
2495
+ | 'H60'
2496
+ | 'H61'
2497
+ | 'H62'
2498
+ | 'H63'
2499
+ | 'H64'
2500
+ | 'H65'
2501
+ | 'H66'
2502
+ | 'H67'
2503
+ | 'H68'
2504
+ | 'H69'
2505
+ | 'H70'
2506
+ | 'H71'
2507
+ | 'H72'
2508
+ | 'H73'
2509
+ | 'H74'
2510
+ | 'H75'
2511
+ | 'H76'
2512
+ | 'H77'
2513
+ | 'H79'
2514
+ | 'H80'
2515
+ | 'H81'
2516
+ | 'H82'
2517
+ | 'H83'
2518
+ | 'H84'
2519
+ | 'H85'
2520
+ | 'H87'
2521
+ | 'H88'
2522
+ | 'H89'
2523
+ | 'H90'
2524
+ | 'H91'
2525
+ | 'H92'
2526
+ | 'H93'
2527
+ | 'H94'
2528
+ | 'H95'
2529
+ | 'H96'
2530
+ | 'H98'
2531
+ | 'H99'
2532
+ | 'HA'
2533
+ | 'HAD'
2534
+ | 'HBA'
2535
+ | 'HBX'
2536
+ | 'HC'
2537
+ | 'HDW'
2538
+ | 'HEA'
2539
+ | 'HGM'
2540
+ | 'HH'
2541
+ | 'HIU'
2542
+ | 'HKM'
2543
+ | 'HLT'
2544
+ | 'HM'
2545
+ | 'HMO'
2546
+ | 'HMQ'
2547
+ | 'HMT'
2548
+ | 'HPA'
2549
+ | 'HTZ'
2550
+ | 'HUR'
2551
+
2552
+ //#endregion
2553
+ //#region src/types/unit/IX.d.ts
2554
+ /**
2555
+ * Unit type codes starting with 'I'.
2556
+ */
2557
+ type UnitTypeCode_IX =
2558
+ | 'IA'
2559
+ | 'IE'
2560
+ | 'INH'
2561
+ | 'INK'
2562
+ | 'INQ'
2563
+ | 'ISD'
2564
+ | 'IU'
2565
+ | 'IUG'
2566
+ | 'IV'
2567
+
2568
+ //#endregion
2569
+ //#region src/types/unit/JX.d.ts
2570
+ /**
2571
+ * Unit type codes starting with 'J'.
2572
+ */
2573
+ type UnitTypeCode_JX =
2574
+ | 'J10'
2575
+ | 'J12'
2576
+ | 'J13'
2577
+ | 'J14'
2578
+ | 'J15'
2579
+ | 'J16'
2580
+ | 'J17'
2581
+ | 'J18'
2582
+ | 'J19'
2583
+ | 'J2'
2584
+ | 'J20'
2585
+ | 'J21'
2586
+ | 'J22'
2587
+ | 'J23'
2588
+ | 'J24'
2589
+ | 'J25'
2590
+ | 'J26'
2591
+ | 'J27'
2592
+ | 'J28'
2593
+ | 'J29'
2594
+ | 'J30'
2595
+ | 'J31'
2596
+ | 'J32'
2597
+ | 'J33'
2598
+ | 'J34'
2599
+ | 'J35'
2600
+ | 'J36'
2601
+ | 'J38'
2602
+ | 'J39'
2603
+ | 'J40'
2604
+ | 'J41'
2605
+ | 'J42'
2606
+ | 'J43'
2607
+ | 'J44'
2608
+ | 'J45'
2609
+ | 'J46'
2610
+ | 'J47'
2611
+ | 'J48'
2612
+ | 'J49'
2613
+ | 'J50'
2614
+ | 'J51'
2615
+ | 'J52'
2616
+ | 'J53'
2617
+ | 'J54'
2618
+ | 'J55'
2619
+ | 'J56'
2620
+ | 'J57'
2621
+ | 'J58'
2622
+ | 'J59'
2623
+ | 'J60'
2624
+ | 'J61'
2625
+ | 'J62'
2626
+ | 'J63'
2627
+ | 'J64'
2628
+ | 'J65'
2629
+ | 'J66'
2630
+ | 'J67'
2631
+ | 'J68'
2632
+ | 'J69'
2633
+ | 'J70'
2634
+ | 'J71'
2635
+ | 'J72'
2636
+ | 'J73'
2637
+ | 'J74'
2638
+ | 'J75'
2639
+ | 'J76'
2640
+ | 'J78'
2641
+ | 'J79'
2642
+ | 'J81'
2643
+ | 'J82'
2644
+ | 'J83'
2645
+ | 'J84'
2646
+ | 'J85'
2647
+ | 'J87'
2648
+ | 'J90'
2649
+ | 'J91'
2650
+ | 'J92'
2651
+ | 'J93'
2652
+ | 'J95'
2653
+ | 'J96'
2654
+ | 'J97'
2655
+ | 'J98'
2656
+ | 'J99'
2657
+ | 'JE'
2658
+ | 'JK'
2659
+ | 'JM'
2660
+ | 'JNT'
2661
+ | 'JOU'
2662
+ | 'JPS'
2663
+ | 'JWL'
2664
+
2665
+ //#endregion
2666
+ //#region src/types/unit/KX.d.ts
2667
+ /**
2668
+ * Unit type codes starting with 'K'.
2669
+ */
2670
+ type UnitTypeCode_KX =
2671
+ | 'K1'
2672
+ | 'K10'
2673
+ | 'K11'
2674
+ | 'K12'
2675
+ | 'K13'
2676
+ | 'K14'
2677
+ | 'K15'
2678
+ | 'K16'
2679
+ | 'K17'
2680
+ | 'K18'
2681
+ | 'K19'
2682
+ | 'K2'
2683
+ | 'K20'
2684
+ | 'K21'
2685
+ | 'K22'
2686
+ | 'K23'
2687
+ | 'K26'
2688
+ | 'K27'
2689
+ | 'K28'
2690
+ | 'K3'
2691
+ | 'K30'
2692
+ | 'K31'
2693
+ | 'K32'
2694
+ | 'K33'
2695
+ | 'K34'
2696
+ | 'K35'
2697
+ | 'K36'
2698
+ | 'K37'
2699
+ | 'K38'
2700
+ | 'K39'
2701
+ | 'K40'
2702
+ | 'K41'
2703
+ | 'K42'
2704
+ | 'K43'
2705
+ | 'K45'
2706
+ | 'K46'
2707
+ | 'K47'
2708
+ | 'K48'
2709
+ | 'K49'
2710
+ | 'K50'
2711
+ | 'K51'
2712
+ | 'K52'
2713
+ | 'K53'
2714
+ | 'K54'
2715
+ | 'K55'
2716
+ | 'K58'
2717
+ | 'K59'
2718
+ | 'K6'
2719
+ | 'K60'
2720
+ | 'K61'
2721
+ | 'K62'
2722
+ | 'K63'
2723
+ | 'K64'
2724
+ | 'K65'
2725
+ | 'K66'
2726
+ | 'K67'
2727
+ | 'K68'
2728
+ | 'K69'
2729
+ | 'K70'
2730
+ | 'K71'
2731
+ | 'K73'
2732
+ | 'K74'
2733
+ | 'K75'
2734
+ | 'K76'
2735
+ | 'K77'
2736
+ | 'K78'
2737
+ | 'K79'
2738
+ | 'K80'
2739
+ | 'K81'
2740
+ | 'K82'
2741
+ | 'K83'
2742
+ | 'K84'
2743
+ | 'K85'
2744
+ | 'K86'
2745
+ | 'K87'
2746
+ | 'K88'
2747
+ | 'K89'
2748
+ | 'K90'
2749
+ | 'K91'
2750
+ | 'K92'
2751
+ | 'K93'
2752
+ | 'K94'
2753
+ | 'K95'
2754
+ | 'K96'
2755
+ | 'K97'
2756
+ | 'K98'
2757
+ | 'K99'
2758
+ | 'KA'
2759
+ | 'KAT'
2760
+ | 'KB'
2761
+ | 'KBA'
2762
+ | 'KCC'
2763
+ | 'KDW'
2764
+ | 'KEL'
2765
+ | 'KGM'
2766
+ | 'KGS'
2767
+ | 'KHY'
2768
+ | 'KHZ'
2769
+ | 'KI'
2770
+ | 'KIC'
2771
+ | 'KIP'
2772
+ | 'KJ'
2773
+ | 'KJO'
2774
+ | 'KL'
2775
+ | 'KLK'
2776
+ | 'KLX'
2777
+ | 'KMA'
2778
+ | 'KMH'
2779
+ | 'KMK'
2780
+ | 'KMQ'
2781
+ | 'KMT'
2782
+ | 'KNI'
2783
+ | 'KNM'
2784
+ | 'KNS'
2785
+ | 'KNT'
2786
+ | 'KO'
2787
+ | 'KPA'
2788
+ | 'KPH'
2789
+ | 'KPO'
2790
+ | 'KPP'
2791
+ | 'KR'
2792
+ | 'KSD'
2793
+ | 'KSH'
2794
+ | 'KT'
2795
+ | 'KTN'
2796
+ | 'KUR'
2797
+ | 'KVA'
2798
+ | 'KVR'
2799
+ | 'KVT'
2800
+ | 'KW'
2801
+ | 'KWH'
2802
+ | 'KWN'
2803
+ | 'KWO'
2804
+ | 'KWS'
2805
+ | 'KWT'
2806
+ | 'KWY'
2807
+ | 'KX'
2808
+
2809
+ //#endregion
2810
+ //#region src/types/unit/LX.d.ts
2811
+ /**
2812
+ * Unit type codes starting with 'L'.
2813
+ */
2814
+ type UnitTypeCode_LX =
2815
+ | 'L10'
2816
+ | 'L11'
2817
+ | 'L12'
2818
+ | 'L13'
2819
+ | 'L14'
2820
+ | 'L15'
2821
+ | 'L16'
2822
+ | 'L17'
2823
+ | 'L18'
2824
+ | 'L19'
2825
+ | 'L2'
2826
+ | 'L20'
2827
+ | 'L21'
2828
+ | 'L23'
2829
+ | 'L24'
2830
+ | 'L25'
2831
+ | 'L26'
2832
+ | 'L27'
2833
+ | 'L28'
2834
+ | 'L29'
2835
+ | 'L30'
2836
+ | 'L31'
2837
+ | 'L32'
2838
+ | 'L33'
2839
+ | 'L34'
2840
+ | 'L35'
2841
+ | 'L36'
2842
+ | 'L37'
2843
+ | 'L38'
2844
+ | 'L39'
2845
+ | 'L40'
2846
+ | 'L41'
2847
+ | 'L42'
2848
+ | 'L43'
2849
+ | 'L44'
2850
+ | 'L45'
2851
+ | 'L46'
2852
+ | 'L47'
2853
+ | 'L48'
2854
+ | 'L49'
2855
+ | 'L50'
2856
+ | 'L51'
2857
+ | 'L52'
2858
+ | 'L53'
2859
+ | 'L54'
2860
+ | 'L55'
2861
+ | 'L56'
2862
+ | 'L57'
2863
+ | 'L58'
2864
+ | 'L59'
2865
+ | 'L60'
2866
+ | 'L63'
2867
+ | 'L64'
2868
+ | 'L65'
2869
+ | 'L66'
2870
+ | 'L67'
2871
+ | 'L68'
2872
+ | 'L69'
2873
+ | 'L70'
2874
+ | 'L71'
2875
+ | 'L72'
2876
+ | 'L73'
2877
+ | 'L74'
2878
+ | 'L75'
2879
+ | 'L76'
2880
+ | 'L77'
2881
+ | 'L78'
2882
+ | 'L79'
2883
+ | 'L80'
2884
+ | 'L81'
2885
+ | 'L82'
2886
+ | 'L83'
2887
+ | 'L84'
2888
+ | 'L85'
2889
+ | 'L86'
2890
+ | 'L87'
2891
+ | 'L88'
2892
+ | 'L89'
2893
+ | 'L90'
2894
+ | 'L91'
2895
+ | 'L92'
2896
+ | 'L93'
2897
+ | 'L94'
2898
+ | 'L95'
2899
+ | 'L96'
2900
+ | 'L98'
2901
+ | 'L99'
2902
+ | 'LA'
2903
+ | 'LAC'
2904
+ | 'LBR'
2905
+ | 'LBT'
2906
+ | 'LD'
2907
+ | 'LEF'
2908
+ | 'LF'
2909
+ | 'LH'
2910
+ | 'LK'
2911
+ | 'LM'
2912
+ | 'LN'
2913
+ | 'LO'
2914
+ | 'LP'
2915
+ | 'LPA'
2916
+ | 'LR'
2917
+ | 'LS'
2918
+ | 'LTN'
2919
+ | 'LTR'
2920
+ | 'LUB'
2921
+ | 'LUM'
2922
+ | 'LUX'
2923
+ | 'LY'
2924
+
2925
+ //#endregion
2926
+ //#region src/types/unit/MX.d.ts
2927
+ /**
2928
+ * Unit type codes starting with 'M'.
2929
+ */
2930
+ type UnitTypeCode_MX =
2931
+ | 'M1'
2932
+ | 'M10'
2933
+ | 'M11'
2934
+ | 'M12'
2935
+ | 'M13'
2936
+ | 'M14'
2937
+ | 'M15'
2938
+ | 'M16'
2939
+ | 'M17'
2940
+ | 'M18'
2941
+ | 'M19'
2942
+ | 'M20'
2943
+ | 'M21'
2944
+ | 'M22'
2945
+ | 'M23'
2946
+ | 'M24'
2947
+ | 'M25'
2948
+ | 'M26'
2949
+ | 'M27'
2950
+ | 'M29'
2951
+ | 'M30'
2952
+ | 'M31'
2953
+ | 'M32'
2954
+ | 'M33'
2955
+ | 'M34'
2956
+ | 'M35'
2957
+ | 'M36'
2958
+ | 'M37'
2959
+ | 'M38'
2960
+ | 'M39'
2961
+ | 'M4'
2962
+ | 'M40'
2963
+ | 'M41'
2964
+ | 'M42'
2965
+ | 'M43'
2966
+ | 'M44'
2967
+ | 'M45'
2968
+ | 'M46'
2969
+ | 'M47'
2970
+ | 'M48'
2971
+ | 'M49'
2972
+ | 'M5'
2973
+ | 'M50'
2974
+ | 'M51'
2975
+ | 'M52'
2976
+ | 'M53'
2977
+ | 'M55'
2978
+ | 'M56'
2979
+ | 'M57'
2980
+ | 'M58'
2981
+ | 'M59'
2982
+ | 'M60'
2983
+ | 'M61'
2984
+ | 'M62'
2985
+ | 'M63'
2986
+ | 'M64'
2987
+ | 'M65'
2988
+ | 'M66'
2989
+ | 'M67'
2990
+ | 'M68'
2991
+ | 'M69'
2992
+ | 'M7'
2993
+ | 'M70'
2994
+ | 'M71'
2995
+ | 'M72'
2996
+ | 'M73'
2997
+ | 'M74'
2998
+ | 'M75'
2999
+ | 'M76'
3000
+ | 'M77'
3001
+ | 'M78'
3002
+ | 'M79'
3003
+ | 'M80'
3004
+ | 'M81'
3005
+ | 'M82'
3006
+ | 'M83'
3007
+ | 'M84'
3008
+ | 'M85'
3009
+ | 'M86'
3010
+ | 'M87'
3011
+ | 'M88'
3012
+ | 'M89'
3013
+ | 'M9'
3014
+ | 'M90'
3015
+ | 'M91'
3016
+ | 'M92'
3017
+ | 'M93'
3018
+ | 'M94'
3019
+ | 'M95'
3020
+ | 'M96'
3021
+ | 'M97'
3022
+ | 'M98'
3023
+ | 'M99'
3024
+ | 'MAH'
3025
+ | 'MAL'
3026
+ | 'MAM'
3027
+ | 'MAR'
3028
+ | 'MAW'
3029
+ | 'MBE'
3030
+ | 'MBF'
3031
+ | 'MBR'
3032
+ | 'MC'
3033
+ | 'MCU'
3034
+ | 'MD'
3035
+ | 'MGM'
3036
+ | 'MHZ'
3037
+ | 'MIK'
3038
+ | 'MIL'
3039
+ | 'MIN'
3040
+ | 'MIO'
3041
+ | 'MIU'
3042
+ | 'MKD'
3043
+ | 'MKM'
3044
+ | 'MKW'
3045
+ | 'MLD'
3046
+ | 'MLT'
3047
+ | 'MMK'
3048
+ | 'MMQ'
3049
+ | 'MMT'
3050
+ | 'MND'
3051
+ | 'MNJ'
3052
+ | 'MON'
3053
+ | 'MPA'
3054
+ | 'MQD'
3055
+ | 'MQH'
3056
+ | 'MQM'
3057
+ | 'MQS'
3058
+ | 'MQW'
3059
+ | 'MRD'
3060
+ | 'MRM'
3061
+ | 'MRW'
3062
+ | 'MSK'
3063
+ | 'MTK'
3064
+ | 'MTQ'
3065
+ | 'MTR'
3066
+ | 'MTS'
3067
+ | 'MTZ'
3068
+ | 'MVA'
3069
+ | 'MWH'
3070
+
3071
+ //#endregion
3072
+ //#region src/types/unit/NX.d.ts
3073
+ /**
3074
+ * Unit type codes starting with 'N'.
3075
+ */
3076
+ type UnitTypeCode_NX =
3077
+ | 'N1'
3078
+ | 'N10'
3079
+ | 'N11'
3080
+ | 'N12'
3081
+ | 'N13'
3082
+ | 'N14'
3083
+ | 'N15'
3084
+ | 'N16'
3085
+ | 'N17'
3086
+ | 'N18'
3087
+ | 'N19'
3088
+ | 'N20'
3089
+ | 'N21'
3090
+ | 'N22'
3091
+ | 'N23'
3092
+ | 'N24'
3093
+ | 'N25'
3094
+ | 'N26'
3095
+ | 'N27'
3096
+ | 'N28'
3097
+ | 'N29'
3098
+ | 'N3'
3099
+ | 'N30'
3100
+ | 'N31'
3101
+ | 'N32'
3102
+ | 'N33'
3103
+ | 'N34'
3104
+ | 'N35'
3105
+ | 'N36'
3106
+ | 'N37'
3107
+ | 'N38'
3108
+ | 'N39'
3109
+ | 'N40'
3110
+ | 'N41'
3111
+ | 'N42'
3112
+ | 'N43'
3113
+ | 'N44'
3114
+ | 'N45'
3115
+ | 'N46'
3116
+ | 'N47'
3117
+ | 'N48'
3118
+ | 'N49'
3119
+ | 'N50'
3120
+ | 'N51'
3121
+ | 'N52'
3122
+ | 'N53'
3123
+ | 'N54'
3124
+ | 'N55'
3125
+ | 'N56'
3126
+ | 'N57'
3127
+ | 'N58'
3128
+ | 'N59'
3129
+ | 'N60'
3130
+ | 'N61'
3131
+ | 'N62'
3132
+ | 'N63'
3133
+ | 'N64'
3134
+ | 'N65'
3135
+ | 'N66'
3136
+ | 'N67'
3137
+ | 'N68'
3138
+ | 'N69'
3139
+ | 'N70'
3140
+ | 'N71'
3141
+ | 'N72'
3142
+ | 'N73'
3143
+ | 'N74'
3144
+ | 'N75'
3145
+ | 'N76'
3146
+ | 'N77'
3147
+ | 'N78'
3148
+ | 'N79'
3149
+ | 'N80'
3150
+ | 'N81'
3151
+ | 'N82'
3152
+ | 'N83'
3153
+ | 'N84'
3154
+ | 'N85'
3155
+ | 'N86'
3156
+ | 'N87'
3157
+ | 'N88'
3158
+ | 'N89'
3159
+ | 'N90'
3160
+ | 'N91'
3161
+ | 'N92'
3162
+ | 'N93'
3163
+ | 'N94'
3164
+ | 'N95'
3165
+ | 'N96'
3166
+ | 'N97'
3167
+ | 'N98'
3168
+ | 'N99'
3169
+ | 'NA'
3170
+ | 'NAR'
3171
+ | 'NCL'
3172
+ | 'NEW'
3173
+ | 'NF'
3174
+ | 'NIL'
3175
+ | 'NIU'
3176
+ | 'NL'
3177
+ | 'NM3'
3178
+ | 'NMI'
3179
+ | 'NMP'
3180
+ | 'NPT'
3181
+ | 'NT'
3182
+ | 'NTU'
3183
+ | 'NU'
3184
+ | 'NX'
3185
+
3186
+ //#endregion
3187
+ //#region src/types/unit/OX.d.ts
3188
+ /**
3189
+ * Unit type codes starting with 'O'.
3190
+ */
3191
+ type UnitTypeCode_OX =
3192
+ | 'OA'
3193
+ | 'ODE'
3194
+ | 'ODG'
3195
+ | 'ODK'
3196
+ | 'ODM'
3197
+ | 'OHM'
3198
+ | 'ON'
3199
+ | 'ONZ'
3200
+ | 'OPM'
3201
+ | 'OT'
3202
+ | 'OZA'
3203
+ | 'OZI'
3204
+
3205
+ //#endregion
3206
+ //#region src/types/unit/PX.d.ts
3207
+ /**
3208
+ * Unit type codes starting with 'P'.
3209
+ */
3210
+ type UnitTypeCode_PX =
3211
+ | 'P1'
3212
+ | 'P10'
3213
+ | 'P11'
3214
+ | 'P12'
3215
+ | 'P13'
3216
+ | 'P14'
3217
+ | 'P15'
3218
+ | 'P16'
3219
+ | 'P17'
3220
+ | 'P18'
3221
+ | 'P19'
3222
+ | 'P2'
3223
+ | 'P20'
3224
+ | 'P21'
3225
+ | 'P22'
3226
+ | 'P23'
3227
+ | 'P24'
3228
+ | 'P25'
3229
+ | 'P26'
3230
+ | 'P27'
3231
+ | 'P28'
3232
+ | 'P29'
3233
+ | 'P30'
3234
+ | 'P31'
3235
+ | 'P32'
3236
+ | 'P33'
3237
+ | 'P34'
3238
+ | 'P35'
3239
+ | 'P36'
3240
+ | 'P37'
3241
+ | 'P38'
3242
+ | 'P39'
3243
+ | 'P40'
3244
+ | 'P41'
3245
+ | 'P42'
3246
+ | 'P43'
3247
+ | 'P44'
3248
+ | 'P45'
3249
+ | 'P46'
3250
+ | 'P47'
3251
+ | 'P48'
3252
+ | 'P49'
3253
+ | 'P5'
3254
+ | 'P50'
3255
+ | 'P51'
3256
+ | 'P52'
3257
+ | 'P53'
3258
+ | 'P54'
3259
+ | 'P55'
3260
+ | 'P56'
3261
+ | 'P57'
3262
+ | 'P58'
3263
+ | 'P59'
3264
+ | 'P60'
3265
+ | 'P61'
3266
+ | 'P62'
3267
+ | 'P63'
3268
+ | 'P64'
3269
+ | 'P65'
3270
+ | 'P66'
3271
+ | 'P67'
3272
+ | 'P68'
3273
+ | 'P69'
3274
+ | 'P70'
3275
+ | 'P71'
3276
+ | 'P72'
3277
+ | 'P73'
3278
+ | 'P74'
3279
+ | 'P75'
3280
+ | 'P76'
3281
+ | 'P77'
3282
+ | 'P78'
3283
+ | 'P79'
3284
+ | 'P80'
3285
+ | 'P81'
3286
+ | 'P82'
3287
+ | 'P83'
3288
+ | 'P84'
3289
+ | 'P85'
3290
+ | 'P86'
3291
+ | 'P87'
3292
+ | 'P88'
3293
+ | 'P89'
3294
+ | 'P90'
3295
+ | 'P91'
3296
+ | 'P92'
3297
+ | 'P93'
3298
+ | 'P94'
3299
+ | 'P95'
3300
+ | 'P96'
3301
+ | 'P97'
3302
+ | 'P98'
3303
+ | 'P99'
3304
+ | 'PAL'
3305
+ | 'PD'
3306
+ | 'PFL'
3307
+ | 'PGL'
3308
+ | 'PI'
3309
+ | 'PLA'
3310
+ | 'PO'
3311
+ | 'PQ'
3312
+ | 'PR'
3313
+ | 'PS'
3314
+ | 'PTD'
3315
+ | 'PTI'
3316
+ | 'PTL'
3317
+ | 'PTN'
3318
+
3319
+ //#endregion
3320
+ //#region src/types/unit/QX.d.ts
3321
+ /**
3322
+ * Unit type codes starting with 'Q'.
3323
+ */
3324
+ type UnitTypeCode_QX =
3325
+ | 'Q10'
3326
+ | 'Q11'
3327
+ | 'Q12'
3328
+ | 'Q13'
3329
+ | 'Q14'
3330
+ | 'Q15'
3331
+ | 'Q16'
3332
+ | 'Q17'
3333
+ | 'Q18'
3334
+ | 'Q19'
3335
+ | 'Q20'
3336
+ | 'Q21'
3337
+ | 'Q22'
3338
+ | 'Q23'
3339
+ | 'Q24'
3340
+ | 'Q25'
3341
+ | 'Q26'
3342
+ | 'Q27'
3343
+ | 'Q28'
3344
+ | 'Q29'
3345
+ | 'Q3'
3346
+ | 'Q30'
3347
+ | 'Q31'
3348
+ | 'Q32'
3349
+ | 'Q33'
3350
+ | 'Q34'
3351
+ | 'Q35'
3352
+ | 'Q36'
3353
+ | 'Q37'
3354
+ | 'Q38'
3355
+ | 'Q39'
3356
+ | 'Q40'
3357
+ | 'Q41'
3358
+ | 'Q42'
3359
+ | 'QA'
3360
+ | 'QAN'
3361
+ | 'QB'
3362
+ | 'QR'
3363
+ | 'QTD'
3364
+ | 'QTI'
3365
+ | 'QTL'
3366
+ | 'QTR'
3367
+
3368
+ //#endregion
3369
+ //#region src/types/unit/RX.d.ts
3370
+ /**
3371
+ * Unit type codes starting with 'R'.
3372
+ */
3373
+ type UnitTypeCode_RX =
3374
+ | 'R1'
3375
+ | 'R9'
3376
+ | 'RH'
3377
+ | 'RM'
3378
+ | 'ROM'
3379
+ | 'RP'
3380
+ | 'RPM'
3381
+ | 'RPS'
3382
+ | 'RT'
3383
+
3384
+ //#endregion
3385
+ //#region src/types/unit/SX.d.ts
3386
+ /**
3387
+ * Unit type codes starting with 'S'.
3388
+ */
3389
+ type UnitTypeCode_SX =
3390
+ | 'S3'
3391
+ | 'S4'
3392
+ | 'SAN'
3393
+ | 'SCO'
3394
+ | 'SCR'
3395
+ | 'SEC'
3396
+ | 'SET'
3397
+ | 'SG'
3398
+ | 'SIE'
3399
+ | 'SM3'
3400
+ | 'SMI'
3401
+ | 'SQ'
3402
+ | 'SQR'
3403
+ | 'SR'
3404
+ | 'STC'
3405
+ | 'STI'
3406
+ | 'STK'
3407
+ | 'STL'
3408
+ | 'STN'
3409
+ | 'STW'
3410
+ | 'SW'
3411
+ | 'SX'
3412
+ | 'SYR'
3413
+
3414
+ //#endregion
3415
+ //#region src/types/unit/TX.d.ts
3416
+ /**
3417
+ * Unit type codes starting with 'T'.
3418
+ */
3419
+ type UnitTypeCode_TX =
3420
+ | 'T0'
3421
+ | 'T3'
3422
+ | 'TAH'
3423
+ | 'TAN'
3424
+ | 'TI'
3425
+ | 'TIC'
3426
+ | 'TIP'
3427
+ | 'TKM'
3428
+ | 'TMS'
3429
+ | 'TNE'
3430
+ | 'TP'
3431
+ | 'TPI'
3432
+ | 'TPR'
3433
+ | 'TQD'
3434
+ | 'TRL'
3435
+ | 'TST'
3436
+ | 'TTS'
3437
+
3438
+ //#endregion
3439
+ //#region src/types/unit/UX.d.ts
3440
+ /**
3441
+ * Unit type codes starting with 'U'.
3442
+ */
3443
+ type UnitTypeCode_UX = 'U1' | 'U2' | 'UB' | 'UC'
3444
+
3445
+ //#endregion
3446
+ //#region src/types/unit/VX.d.ts
3447
+ /**
3448
+ * Unit type codes starting with 'V'.
3449
+ */
3450
+ type UnitTypeCode_VX = 'VA' | 'VLT' | 'VP'
3451
+
3452
+ //#endregion
3453
+ //#region src/types/unit/WX.d.ts
3454
+ /**
3455
+ * Unit type codes starting with 'W'.
3456
+ */
3457
+ type UnitTypeCode_WX =
3458
+ | 'W2'
3459
+ | 'WA'
3460
+ | 'WB'
3461
+ | 'WCD'
3462
+ | 'WE'
3463
+ | 'WEB'
3464
+ | 'WEE'
3465
+ | 'WG'
3466
+ | 'WHR'
3467
+ | 'WM'
3468
+ | 'WSD'
3469
+ | 'WTT'
3470
+
3471
+ //#endregion
3472
+ //#region src/types/unit/YX.d.ts
3473
+ /**
3474
+ * Unit types starting with Y
3475
+ * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
3476
+ */
3477
+ type UnitTypeCode_YX =
3478
+ | 'YDK' // square yard
3479
+ | 'YDQ' // cubic yard
3480
+ | 'YRD'
3481
+
3482
+ //#endregion
3483
+ //#region src/types/unit/ZX.d.ts
3484
+ /**
3485
+ * Unit types starting with Z
3486
+ * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
3487
+ */
3488
+ type UnitTypeCode_ZX =
3489
+ | 'Z11' // hanging container
3490
+ | 'Z9' // nanomole
3491
+ | 'ZP' // page
3492
+ | 'ZZ'
3493
+
3494
+ //#endregion
3495
+ //#region src/types/unit/XX.d.ts
3496
+ /**
3497
+ * Unit types starting with X
3498
+ * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
3499
+ */
3500
+ type UnitTypeCode_XX =
3501
+ | 'X1' // Gunter's chain
3502
+ | 'X1A' // Drum, steel
3503
+ | 'X1B' // Drum, aluminium
3504
+ | 'X1D' // Drum, plywood
3505
+ | 'X1F' // Container, flexible
3506
+ | 'X1G' // Drum, fibre
3507
+ | 'X1W' // Drum, wooden
3508
+ | 'X2C' // Barrel, wooden
3509
+ | 'X3A' // Jerrican, steel
3510
+ | 'X3H' // Jerrican, plastic
3511
+ | 'X43' // Bag, super bulk
3512
+ | 'X44' // Bag, polybag
3513
+ | 'X4A' // Box, steel
3514
+ | 'X4B' // Box, aluminium
3515
+ | 'X4C' // Box, natural wood
3516
+ | 'X4D' // Box, plywood
3517
+ | 'X4F' // Box, reconstituted wood
3518
+ | 'X4G' // Box, fibreboard
3519
+ | 'X4H' // Box, plastic
3520
+ | 'X5H' // Bag, woven plastic
3521
+ | 'X5L' // Bag, textile
3522
+ | 'X5M' // Bag, paper
3523
+ | 'X6H' // Composite packaging, plastic receptacle
3524
+ | 'X6P' // Composite packaging, glass receptacle
3525
+ | 'X7A' // Case, car
3526
+ | 'X7B' // Case, wooden
3527
+ | 'X8A' // Pallet, wooden
3528
+ | 'X8B' // Crate, wooden
3529
+ | 'X8C' // Bundle, wooden
3530
+ | 'XAA' // Intermediate bulk container, rigid plastic
3531
+ | 'XAB' // Receptacle, fibre
3532
+ | 'XAC' // Receptacle, paper
3533
+ | 'XAD' // Receptacle, wooden
3534
+ | 'XAE' // Aerosol
3535
+ | 'XAF' // Pallet, modular, collars 80cms * 60cms
3536
+ | 'XAG' // Pallet, shrinkwrapped
3537
+ | 'XAH' // Pallet, 100cms * 110cms
3538
+ | 'XAI' // Clamshell
3539
+ | 'XAJ' // Cone
3540
+ | 'XAL' // Ball
3541
+ | 'XAM' // Ampoule, non-protected
3542
+ | 'XAP' // Ampoule, protected
3543
+ | 'XAT' // Atomizer
3544
+ | 'XAV' // Capsule
3545
+ | 'XB4' // Belt
3546
+ | 'XBA' // Barrel
3547
+ | 'XBB' // Bobbin
3548
+ | 'XBC' // Bottlecrate / bottlerack
3549
+ | 'XBD' // Board
3550
+ | 'XBE' // Bundle
3551
+ | 'XBF' // Balloon, non-protected
3552
+ | 'XBG' // Bag
3553
+ | 'XBH' // Bunch
3554
+ | 'XBI' // Bin
3555
+ | 'XBJ' // Bucket
3556
+ | 'XBK' // Basket
3557
+ | 'XBL' // Bale, compressed
3558
+ | 'XBM' // Basin
3559
+ | 'XBN' // Bale, non-compressed
3560
+ | 'XBO' // Bottle, non-protected, cylindrical
3561
+ | 'XBP' // Balloon, protected
3562
+ | 'XBQ' // Bottle, protected cylindrical
3563
+ | 'XBR' // Bar
3564
+ | 'XBS' // Bottle, non-protected, bulbous
3565
+ | 'XBT' // Bolt
3566
+ | 'XBU' // Butt
3567
+ | 'XBV' // Bottle, protected bulbous
3568
+ | 'XBW' // Box, for liquids
3569
+ | 'XBX' // Box
3570
+ | 'XBY' // Board, in bundle/bunch/truss
3571
+ | 'XBZ' // Bars, in bundle/bunch/truss
3572
+ | 'XCA' // Can, rectangular
3573
+ | 'XCB' // Crate, beer
3574
+ | 'XCC' // Churn
3575
+ | 'XCD' // Can, with handle and spout
3576
+ | 'XCE' // Creel
3577
+ | 'XCF' // Coffer
3578
+ | 'XCG' // Cage
3579
+ | 'XCH' // Chest
3580
+ | 'XCI' // Canister
3581
+ | 'XCJ' // Coffin
3582
+ | 'XCK' // Cask
3583
+ | 'XCL' // Coil
3584
+ | 'XCM' // Card
3585
+ | 'XCN' // Container, not otherwise specified as transport equipment
3586
+ | 'XCO' // Carboy, non-protected
3587
+ | 'XCP' // Carboy, protected
3588
+ | 'XCQ' // Cartridge
3589
+ | 'XCR' // Crate
3590
+ | 'XCS' // Case
3591
+ | 'XCT' // Carton
3592
+ | 'XCU' // Cup
3593
+ | 'XCV' // Cover
3594
+ | 'XCW' // Cage, roll
3595
+ | 'XCX' // Can, cylindrical
3596
+ | 'XCY' // Cylinder
3597
+ | 'XCZ' // Canvas
3598
+ | 'XDA' // Crate, multiple layer, plastic
3599
+ | 'XDB' // Crate, multiple layer, wooden
3600
+ | 'XDC' // Crate, multiple layer, cardboard
3601
+ | 'XDG' // Cage, Commonwealth Handling Equipment Pool (CHEP)
3602
+ | 'XDH' // Box, Commonwealth Handling Equipment Pool (CHEP), Eurobox
3603
+ | 'XDI' // Drum, iron
3604
+ | 'XDJ' // Demijohn, non-protected
3605
+ | 'XDK' // Crate, bulk, cardboard
3606
+ | 'XDL' // Crate, bulk, plastic
3607
+ | 'XDM' // Crate, bulk, wooden
3608
+ | 'XDN' // Dispenser
3609
+ | 'XDP' // Demijohn, protected
3610
+ | 'XDR' // Drum
3611
+ | 'XDS' // Tray, one layer no cover, plastic
3612
+ | 'XDT' // Tray, one layer no cover, wooden
3613
+ | 'XDU' // Tray, one layer no cover, polystyrene
3614
+ | 'XDV' // Tray, one layer no cover, cardboard
3615
+ | 'XDW' // Tray, two layers no cover, plastic tray
3616
+ | 'XDX' // Tray, two layers no cover, wooden
3617
+ | 'XDY' // Tray, two layers no cover, cardboard
3618
+ | 'XEC' // Bag, plastic
3619
+ | 'XED' // Case, with pallet base
3620
+ | 'XEE' // Case, with pallet base, wooden
3621
+ | 'XEF' // Case, with pallet base, cardboard
3622
+ | 'XEG' // Case, with pallet base, plastic
3623
+ | 'XEH' // Case, with pallet base, metal
3624
+ | 'XEI' // Case, isothermic
3625
+ | 'XEN' // Envelope
3626
+ | 'XFB' // Flexibag
3627
+ | 'XFC' // Crate, fruit
3628
+ | 'XFD' // Crate, framed
3629
+ | 'XFE' // Flexitank
3630
+ | 'XFI' // Firkin
3631
+ | 'XFL' // Flask
3632
+ | 'XFO' // Footlocker
3633
+ | 'XFP' // Filmpack
3634
+ | 'XFR' // Frame
3635
+ | 'XFT' // Foodtainer
3636
+ | 'XFW' // Cart, flatbed
3637
+ | 'XFX' // Bag, flexible container
3638
+ | 'XGB' // Bottle, gas
3639
+ | 'XGI' // Girder
3640
+ | 'XGL' // Container, gallon
3641
+ | 'XGR' // Receptacle, glass
3642
+ | 'XGU' // Tray, containing horizontally stacked flat items
3643
+ | 'XGY' // Bag, gunny
3644
+ | 'XGZ' // Girders, in bundle/bunch/truss
3645
+ | 'XHA' // Basket, with handle, plastic
3646
+ | 'XHB' // Basket, with handle, wooden
3647
+ | 'XHC' // Basket, with handle, cardboard
3648
+ | 'XHG' // Hogshead
3649
+ | 'XHN' // Hanger
3650
+ | 'XHR' // Hamper
3651
+ | 'XIA' // Package, display, wooden
3652
+ | 'XIB' // Package, display, cardboard
3653
+ | 'XIC' // Package, display, plastic
3654
+ | 'XID' // Package, display, metal
3655
+ | 'XIE' // Package, show
3656
+ | 'XIF' // Package, flow
3657
+ | 'XIG' // Package, paper wrapped
3658
+ | 'XIH' // Drum, plastic
3659
+ | 'XIK' // Package, cardboard, with bottle grip-holes
3660
+ | 'XIL' // Tray, rigid, lidded stackable (CEN TS 14482:2002)
3661
+ | 'XIN' // Ingot
3662
+ | 'XIZ' // Ingots, in bundle/bunch/truss
3663
+ | 'XJB' // Bag, jumbo
3664
+ | 'XJC' // Jerrican, rectangular
3665
+ | 'XJG' // Jug
3666
+ | 'XJR' // Jar
3667
+ | 'XJT' // Jutebag
3668
+ | 'XJY' // Jerrican, cylindrical
3669
+ | 'XKG' // Keg
3670
+ | 'XKI' // Kit
3671
+ | 'XLE' // Luggage
3672
+ | 'XLG' // Log
3673
+ | 'XLT' // Lot
3674
+ | 'XLU' // Lug
3675
+ | 'XLV' // Liftvan
3676
+ | 'XLZ' // Logs, in bundle/bunch/truss
3677
+ | 'XMA' // Crate, metal
3678
+ | 'XMB' // Bag, multiply
3679
+ | 'XMC' // Crate, milk
3680
+ | 'XME' // Container, metal
3681
+ | 'XMR' // Receptacle, metal
3682
+ | 'XMS' // Sack, multi-wall
3683
+ | 'XMT' // Mat
3684
+ | 'XMW' // Receptacle, plastic wrapped
3685
+ | 'XMX' // Matchbox
3686
+ | 'XNA' // Not available
3687
+ | 'XNE' // Unpacked or unpackaged
3688
+ | 'XNF' // Unpacked or unpackaged, single unit
3689
+ | 'XNG' // Unpacked or unpackaged, multiple units
3690
+ | 'XNS' // Nest
3691
+ | 'XNT' // Net
3692
+ | 'XNU' // Net, tube, plastic
3693
+ | 'XNV' // Net, tube, textile
3694
+ | 'XO1' // Two sided cage on wheels with fixing strap
3695
+ | 'XO2' // Trolley
3696
+ | 'XO3' // Oneway pallet ISO 0 - 1/2 EURO Pallet
3697
+ | 'XO4' // Oneway pallet ISO 1 - 1/1 EURO Pallet
3698
+ | 'XO5' // Oneway pallet ISO 2 - 2/1 EURO Pallet
3699
+ | 'XO6' // Pallet with exceptional dimensions
3700
+ | 'XO7' // Wooden pallet 40 cm x 80 cm
3701
+ | 'XO8' // Plastic pallet SRS 60 cm x 80 cm
3702
+ | 'XO9' // Plastic pallet SRS 80 cm x 120 cm
3703
+ | 'XOA' // Pallet, CHEP 40 cm x 60 cm
3704
+ | 'XOB' // Pallet, CHEP 80 cm x 120 cm
3705
+ | 'XOC' // Pallet, CHEP 100 cm x 120 cm
3706
+ | 'XOD' // Pallet, AS 4068-1993
3707
+ | 'XOE' // Pallet, ISO T11
3708
+ | 'XOF' // Platform, unspecified weight or dimension
3709
+ | 'XOG' // Pallet ISO 0 - 1/2 EURO Pallet
3710
+ | 'XOH' // Pallet ISO 1 - 1/1 EURO Pallet
3711
+ | 'XOI' // Pallet ISO 2 – 2/1 EURO Pallet
3712
+ | 'XOJ' // 1/4 EURO Pallet
3713
+ | 'XOK' // Block
3714
+ | 'XOL' // 1/8 EURO Pallet
3715
+ | 'XOM' // Synthetic pallet ISO 1
3716
+ | 'XON' // Synthetic pallet ISO 2
3717
+ | 'XOP' // Wholesaler pallet
3718
+ | 'XOQ' // Pallet 80 X 100 cm
3719
+ | 'XOR' // Pallet 60 X 100 cm
3720
+ | 'XOS' // Oneway pallet
3721
+ | 'XOT' // Octabin
3722
+ | 'XOU' // Container, outer
3723
+ | 'XOV' // Returnable pallet
3724
+ | 'XOW' // Large bag, pallet sized
3725
+ | 'XOX' // A wheeled pallet with raised rim (81 x 67 x 135)
3726
+ | 'XOY' // A Wheeled pallet with raised rim (81 x 72 x 135)
3727
+ | 'XOZ' // Wheeled pallet with raised rim ( 81 x 60 x 16)
3728
+ | 'XP1' // CHEP pallet 60 cm x 80 cm
3729
+ | 'XP2' // Pan
3730
+ | 'XP3' // LPR pallet 60 cm x 80 cm
3731
+ | 'XP4' // LPR pallet 80 cm x 120 cm
3732
+ | 'XPA' // Packet
3733
+ | 'XPB' // Pallet, box Combined open-ended box and pallet
3734
+ | 'XPC' // Parcel
3735
+ | 'XPD' // Pallet, modular, collars 80cms * 100cms
3736
+ | 'XPE' // Pallet, modular, collars 80cms * 120cms
3737
+ | 'XPF' // Pen
3738
+ | 'XPG' // Plate
3739
+ | 'XPH' // Pitcher
3740
+ | 'XPI' // Pipe
3741
+ | 'XPJ' // Punnet
3742
+ | 'XPK' // Package
3743
+ | 'XPL' // Pail
3744
+ | 'XPN' // Plank
3745
+ | 'XPO' // Pouch
3746
+ | 'XPP' // Piece
3747
+ | 'XPR' // Receptacle, plastic
3748
+ | 'XPT' // Pot
3749
+ | 'XPU' // Tray
3750
+ | 'XPV' // Pipes, in bundle/bunch/truss
3751
+ | 'XPX' // Pallet
3752
+ | 'XPY' // Plates, in bundle/bunch/truss
3753
+ | 'XPZ' // Planks, in bundle/bunch/truss
3754
+ | 'XQA' // Drum, steel, non-removable head
3755
+ | 'XQB' // Drum, steel, removable head
3756
+ | 'XQC' // Drum, aluminium, non-removable head
3757
+ | 'XQD' // Drum, aluminium, removable head
3758
+ | 'XQF' // Drum, plastic, non-removable head
3759
+ | 'XQG' // Drum, plastic, removable head
3760
+ | 'XQH' // Barrel, wooden, bung type
3761
+ | 'XQJ' // Barrel, wooden, removable head
3762
+ | 'XQK' // Jerrican, steel, non-removable head
3763
+ | 'XQL' // Jerrican, steel, removable head
3764
+ | 'XQM' // Jerrican, plastic, non-removable head
3765
+ | 'XQN' // Jerrican, plastic, removable head
3766
+ | 'XQP' // Box, wooden, natural wood, ordinary
3767
+ | 'XQQ' // Box, wooden, natural wood, with sift proof walls
3768
+ | 'XQR' // Box, plastic, expanded
3769
+ | 'XQS' // Box, plastic, solid
3770
+ | 'XRD' // Rod
3771
+ | 'XRG' // Ring
3772
+ | 'XRJ' // Rack, clothing hanger
3773
+ | 'XRK' // Rack
3774
+ | 'XRL' // Reel
3775
+ | 'XRO' // Roll
3776
+ | 'XRT' // Rednet
3777
+ | 'XRZ' // Rods, in bundle/bunch/truss
3778
+ | 'XSA' // Sack
3779
+ | 'XSB' // Slab
3780
+ | 'XSC' // Crate, shallow
3781
+ | 'XSD' // Spindle
3782
+ | 'XSE' // Sea-chest
3783
+ | 'XSH' // Sachet
3784
+ | 'XSI' // Skid
3785
+ | 'XSK' // Case, skeleton
3786
+ | 'XSL' // Slipsheet
3787
+ | 'XSM' // Sheetmetal
3788
+ | 'XSO' // Spool
3789
+ | 'XSP' // Sheet, plastic wrapping
3790
+ | 'XSS' // Case, steel
3791
+ | 'XST' // Sheet
3792
+ | 'XSU' // Suitcase
3793
+ | 'XSV' // Envelope, steel
3794
+ | 'XSW' // Shrinkwrapped
3795
+ | 'XSX' // Set
3796
+ | 'XSY' // Sleeve
3797
+ | 'XSZ' // Sheets, in bundle/bunch/truss
3798
+ | 'XT1' // Tablet
3799
+ | 'XTB' // Tub
3800
+ | 'XTC' // Tea-chest
3801
+ | 'XTD' // Tube, collapsible
3802
+ | 'XTE' // Tyre
3803
+ | 'XTG' // Tank container, generic
3804
+ | 'XTI' // Tierce
3805
+ | 'XTK' // Tank, rectangular
3806
+ | 'XTL' // Tub, with lid
3807
+ | 'XTN' // Tin
3808
+ | 'XTO' // Tun
3809
+ | 'XTR' // Trunk
3810
+ | 'XTS' // Truss
3811
+ | 'XTT' // Bag, tote
3812
+ | 'XTU' // Tube
3813
+ | 'XTV' // Tube, with nozzle
3814
+ | 'XTW' // Pallet, triwall
3815
+ | 'XTY' // Tank, cylindrical
3816
+ | 'XTZ' // Tubes, in bundle/bunch/truss
3817
+ | 'XUC' // Uncaged
3818
+ | 'XUN' // Unit
3819
+ | 'XVA' // Vat
3820
+ | 'XVG' // Bulk, gas (at 1031 mbar and 15°C)
3821
+ | 'XVI' // Vial
3822
+ | 'XVK' // Vanpack
3823
+ | 'XVL' // Bulk, liquid
3824
+ | 'XVN' // Vehicle
3825
+ | 'XVO' // Bulk, solid, large particles (“nodules†)
3826
+ | 'XVP' // Vacuum-packed
3827
+ | 'XVQ' // Bulk, liquefied gas (at abnormal temperature/pressure)
3828
+ | 'XVR' // Bulk, solid, granular particles (“grains†)
3829
+ | 'XVS' // Bulk, scrap metal
3830
+ | 'XVY' // Bulk, solid, fine particles (“powders†)
3831
+ | 'XWA' // Intermediate bulk container
3832
+ | 'XWB' // Wickerbottle
3833
+ | 'XWC' // Intermediate bulk container, steel
3834
+ | 'XWD' // Intermediate bulk container, aluminium
3835
+ | 'XWF' // Intermediate bulk container, metal
3836
+ | 'XWG' // Intermediate bulk container, steel, pressurised > 10 kpa
3837
+ | 'XWH' // Intermediate bulk container, aluminium, pressurised > 10 kpa
3838
+ | 'XWJ' // Intermediate bulk container, metal, pressure 10 kpa
3839
+ | 'XWK' // Intermediate bulk container, steel, liquid
3840
+ | 'XWL' // Intermediate bulk container, aluminium, liquid
3841
+ | 'XWM' // Intermediate bulk container, metal, liquid
3842
+ | 'XWN' // Intermediate bulk container, woven plastic, without coat/liner
3843
+ | 'XWP' // Intermediate bulk container, woven plastic, coated
3844
+ | 'XWQ' // Intermediate bulk container, woven plastic, with liner
3845
+ | 'XWR' // Intermediate bulk container, woven plastic, coated and liner
3846
+ | 'XWS' // Intermediate bulk container, plastic film
3847
+ | 'XWT' // Intermediate bulk container, textile with out coat/liner
3848
+ | 'XWU' // Intermediate bulk container, natural wood, with inner liner
3849
+ | 'XWV' // Intermediate bulk container, textile, coated
3850
+ | 'XWW' // Intermediate bulk container, textile, with liner
3851
+ | 'XWX' // Intermediate bulk container, textile, coated and liner
3852
+ | 'XWY' // Intermediate bulk container, plywood, with inner liner
3853
+ | 'XWZ' // Intermediate bulk container, reconstituted wood, with inner liner
3854
+ | 'XXA' // Bag, woven plastic, without inner coat/liner
3855
+ | 'XXB' // Bag, woven plastic, sift proof
3856
+ | 'XXC' // Bag, woven plastic, water resistant
3857
+ | 'XXD' // Bag, plastics film
3858
+ | 'XXF' // Bag, textile, without inner coat/liner
3859
+ | 'XXG' // Bag, textile, sift proof
3860
+ | 'XXH' // Bag, textile, water resistant
3861
+ | 'XXJ' // Bag, paper, multi-wall
3862
+ | 'XXK' // Bag, paper, multi-wall, water resistant
3863
+ | 'XYA' // Composite packaging, plastic receptacle in steel drum
3864
+ | 'XYB' // Composite packaging, plastic receptacle in steel crate box
3865
+ | 'XYC' // Composite packaging, plastic receptacle in aluminium drum
3866
+ | 'XYD' // Composite packaging, plastic receptacle in aluminium crate
3867
+ | 'XYF' // Composite packaging, plastic receptacle in wooden box
3868
+ | 'XYG' // Composite packaging, plastic receptacle in plywood drum
3869
+ | 'XYH' // Composite packaging, plastic receptacle in plywood box
3870
+ | 'XYJ' // Composite packaging, plastic receptacle in fibre drum
3871
+ | 'XYK' // Composite packaging, plastic receptacle in fibreboard box
3872
+ | 'XYL' // Composite packaging, plastic receptacle in plastic drum
3873
+ | 'XYM' // Composite packaging, plastic receptacle in solid plastic box
3874
+ | 'XYN' // Composite packaging, glass receptacle in steel drum
3875
+ | 'XYP' // Composite packaging, glass receptacle in steel crate box
3876
+ | 'XYQ' // Composite packaging, glass receptacle in aluminium drum
3877
+ | 'XYR' // Composite packaging, glass receptacle in aluminium crate
3878
+ | 'XYS' // Composite packaging, glass receptacle in wooden box
3879
+ | 'XYT' // Composite packaging, glass receptacle in plywood drum
3880
+ | 'XYV' // Composite packaging, glass receptacle in wickerwork hamper
3881
+ | 'XYW' // Composite packaging, glass receptacle in fibre drum
3882
+ | 'XYX' // Composite packaging, glass receptacle in fibreboard box
3883
+ | 'XYY' // Composite packaging, glass receptacle in expandable plastic pack
3884
+ | 'XYZ' // Composite packaging, glass receptacle in solid plastic pack
3885
+ | 'XZA' // Intermediate bulk container, paper, multi-wall
3886
+ | 'XZB' // Bag, large
3887
+ | 'XZC' // Intermediate bulk container, paper, multi-wall, water resistant
3888
+ | 'XZD' // Intermediate bulk container, rigid plastic, with structural equipment, solids
3889
+ | 'XZF' // Intermediate bulk container, rigid plastic, freestanding, solids
3890
+ | 'XZG' // Intermediate bulk container, rigid plastic, with structural equipment, pressurised
3891
+ | 'XZH' // Intermediate bulk container, rigid plastic, freestanding, pressurised
3892
+ | 'XZJ' // Intermediate bulk container, rigid plastic, with structural equipment, liquids
3893
+ | 'XZK' // Intermediate bulk container, rigid plastic, freestanding, liquids
3894
+ | 'XZL' // Intermediate bulk container, composite, rigid plastic, solids
3895
+ | 'XZM' // Intermediate bulk container, composite, flexible plastic, solids
3896
+ | 'XZN' // Intermediate bulk container, composite, rigid plastic, pressurised
3897
+ | 'XZP' // Intermediate bulk container, composite, flexible plastic, pressurised
3898
+ | 'XZQ' // Intermediate bulk container, composite, rigid plastic, liquids
3899
+ | 'XZR' // Intermediate bulk container, composite, flexible plastic, liquids
3900
+ | 'XZS' // Intermediate bulk container, composite
3901
+ | 'XZT' // Intermediate bulk container, fibreboard
3902
+ | 'XZU' // Intermediate bulk container, flexible
3903
+ | 'XZV' // Intermediate bulk container, metal, other than steel
3904
+ | 'XZW' // Intermediate bulk container, natural wood
3905
+ | 'XZX' // Intermediate bulk container, plywood
3906
+ | 'XZY' // Intermediate bulk container, reconstituted wood
1819
3907
  | 'XZZ'
3908
+
3909
+ //#endregion
3910
+ //#region src/types/unit-types.d.ts
1820
3911
  /**
1821
- * Enum representing the allowed Unit of Measurement codes with descriptive names.
1822
- * Provides a more readable way to reference unit types.
1823
- * NOTE: This enum is incomplete as the provided documentation snippet omitted a large number of codes.
1824
- *
1825
- * @example
1826
- * const code = UnitTypeCodeEnum.KilogramPerSquareMetre;
1827
- * console.log(code); // Output: "28"
1828
- */
1829
- declare enum UnitTypeCodeEnum {
1830
- Group = '10',
1831
- Outfit = '11',
1832
- Ration = '13',
1833
- Shot = '14',
1834
- StickMilitary = '15',
1835
- FixedRate = '1I',
1836
- TwentyFootContainer = '20',
1837
- FortyFootContainer = '21',
1838
- DecilitrePerGram = '22',
1839
- GramPerCubicCentimetre = '23',
1840
- TheoreticalPound = '24',
1841
- GramPerSquareCentimetre = '25',
1842
- TheoreticalTon = '27',
1843
- KilogramPerSquareMetre = '28',
1844
- RadianPerSecond = '2A',
1845
- RadianPerSecondSquared = '2B',
1846
- Roentgen = '2C',
1847
- VoltAC = '2G',
1848
- VoltDC = '2H',
1849
- BritishThermalUnitInternationalTablePerHour = '2I',
1850
- CubicCentimetrePerSecond = '2J',
1851
- CubicFootPerHour = '2K',
1852
- CubicFootPerMinute = '2L',
1853
- CentimetrePerSecond = '2M',
1854
- Decibel = '2N',
1855
- Kilobyte = '2P',
1856
- Kilobecquerel = '2Q',
1857
- Kilocurie = '2R',
1858
- Megagram = '2U',
1859
- MetrePerMinute = '2X',
1860
- Milliroentgen = '2Y',
1861
- Millivolt = '2Z',
1862
- KilopascalSquareMetrePerGram = '33',
1863
- KilopascalPerMillimetre = '34',
1864
- MillilitrePerSquareCentimetreSecond = '35',
1865
- OuncePerSquareFoot = '37',
1866
- OuncePerSquareFootPer0_01inch = '38',
1867
- Megajoule = '3B',
1868
- Manmonth = '3C',
1869
- MillilitrePerSecond = '40',
1870
- MillilitrePerMinute = '41',
1871
- Centistokes = '4C',
1872
- Microlitre = '4G',
1873
- MicrometreMicron = '4H',
1874
- Milliampere = '4K',
1875
- Megabyte = '4L',
1876
- MilligramPerHour = '4M',
1877
- Megabecquerel = '4N',
1878
- Microfarad = '4O',
1879
- NewtonPerMetre = '4P',
1880
- OunceInch = '4Q',
1881
- OunceFoot = '4R',
1882
- Picofarad = '4T',
1883
- PoundPerHour = '4U',
1884
- TonUSPerHour = '4W',
1885
- KilolitrePerHour = '4X',
1886
- Sitas = '56',
1887
- Mesh = '57',
1888
- NetKilogram = '58',
1889
- PartPerMillion = '59',
1890
- BarrelUSPerMinute = '5A',
1891
- Batch = '5B',
1892
- MMSCFDay = '5E',
1893
- HydraulicHorsePower = '5J',
1894
- PercentWeight = '60',
1895
- PartPerBillionUS = '61',
1896
- Millipascal = '74',
1897
- MilliInch = '77',
1898
- PoundPerSquareInchAbsolute = '80',
1899
- Henry = '81',
1900
- FootPoundForce = '85',
1901
- PoundPerCubicFoot = '87',
1902
- Poise = '89',
1903
- Stokes = '91',
1904
- AmpereSquareMetrePerJouleSecond = 'A10',
1905
- Angstrom = 'A11',
1906
- AstronomicalUnit = 'A12',
1907
- Attojoule = 'A13',
1908
- Barn = 'A14',
1909
- BarnPerElectronvolt = 'A15',
1910
- BarnPerSteradianElectronvolt = 'A16',
1911
- BarnPerSteradian = 'A17',
1912
- BecquerelPerKilogram = 'A18',
1913
- BecquerelPerCubicMetre = 'A19',
1914
- AmperePerCentimetre = 'A2',
1915
- BritishThermalUnitInternationalTablePerSecondSquareFootDegreeRankine = 'A20',
1916
- BritishThermalUnitInternationalTablePerPoundDegreeRankine = 'A21',
1917
- BritishThermalUnitInternationalTablePerSecondFootDegreeRankine = 'A22',
1918
- BritishThermalUnitInternationalTablePerHourSquareFootDegreeRankine = 'A23',
1919
- CandelaPerSquareMetre = 'A24',
1920
- CoulombMetre = 'A26',
1921
- CoulombMetreSquaredPerVolt = 'A27',
1922
- CoulombPerCubicCentimetre = 'A28',
1923
- CoulombPerCubicMetre = 'A29',
1924
- AmperePerMillimetre = 'A3',
1925
- CoulombPerCubicMillimetre = 'A30',
1926
- CoulombPerKilogramSecond = 'A31',
1927
- CoulombPerMole = 'A32',
1928
- CoulombPerSquareCentimetre = 'A33',
1929
- CoulombPerSquareMetre = 'A34',
1930
- CoulombPerSquareMillimetre = 'A35',
1931
- CubicCentimetrePerMole = 'A36',
1932
- CubicDecimetrePerMole = 'A37',
1933
- CubicMetrePerCoulomb = 'A38',
1934
- CubicMetrePerKilogram = 'A39',
1935
- AmperePerSquareCentimetre = 'A4',
1936
- CubicMetrePerMole = 'A40',
1937
- AmperePerSquareMetre = 'A41',
1938
- CuriePerKilogram = 'A42',
1939
- DeadweightTonnage = 'A43',
1940
- Decalitre = 'A44',
1941
- Decametre = 'A45',
1942
- Decitex = 'A47',
1943
- DegreeRankine = 'A48',
1944
- Denier = 'A49',
1945
- AmpereSquareMetre = 'A5',
1946
- Electronvolt = 'A53',
1947
- ElectronvoltPerMetre = 'A54',
1948
- ElectronvoltSquareMetre = 'A55',
1949
- ElectronvoltSquareMetrePerKilogram = 'A56',
1950
- _8PartCloudCover = 'A59', // Enum member names cannot start with a number
1951
- AmperePerSquareMetreKelvinSquared = 'A6',
1952
- Exajoule = 'A68',
1953
- FaradPerMetre = 'A69',
1954
- AmperePerSquareMillimetre = 'A7',
1955
- Femtojoule = 'A70',
1956
- Femtometre = 'A71',
1957
- FootPerSecondSquared = 'A73',
1958
- FootPoundForcePerSecond = 'A74',
1959
- FreightTon = 'A75',
1960
- Gal = 'A76',
1961
- AmpereSecond = 'A8',
1962
- GigacoulombPerCubicMetre = 'A84',
1963
- Gigaelectronvolt = 'A85',
1964
- Gigahertz = 'A86',
1965
- Gigaohm = 'A87',
1966
- GigaohmMetre = 'A88',
1967
- Gigapascal = 'A89',
1968
- // ... (Codes omitted in provided documentation) ...
1969
- BoxWoodenNaturalWoodOrdinary = 'XQP',
1970
- BoxWoodenNaturalWoodWithSiftProofWalls = 'XQQ',
1971
- BoxPlasticExpanded = 'XQR',
1972
- BoxPlasticSolid = 'XQS',
1973
- Rod = 'XRD',
1974
- Ring = 'XRG',
1975
- RackClothingHanger = 'XRJ',
1976
- Rack = 'XRK',
1977
- Reel = 'XRL',
1978
- Roll = 'XRO',
1979
- Rednet = 'XRT',
1980
- RodsInBundleBunchTruss = 'XRZ',
1981
- Sack = 'XSA',
1982
- Slab = 'XSB',
1983
- CrateShallow = 'XSC',
1984
- Spindle = 'XSD',
1985
- SeaChest = 'XSE',
1986
- Sachet = 'XSH',
1987
- Skid = 'XSI',
1988
- CaseSkeleton = 'XSK',
1989
- Slipsheet = 'XSL',
1990
- Sheetmetal = 'XSM',
1991
- Spool = 'XSO',
1992
- SheetPlasticWrapping = 'XSP',
1993
- CaseSteel = 'XSS',
1994
- Sheet = 'XST',
1995
- Suitcase = 'XSU',
1996
- EnvelopeSteel = 'XSV',
1997
- Shrinkwrapped = 'XSW',
1998
- Set = 'XSX',
1999
- Sleeve = 'XSY',
2000
- SheetsInBundleBunchTruss = 'XSZ',
2001
- Tablet = 'XT1',
2002
- Tub = 'XTB',
2003
- TeaChest = 'XTC',
2004
- TubeCollapsible = 'XTD',
2005
- Tyre = 'XTE',
2006
- TankContainerGeneric = 'XTG',
2007
- Tierce = 'XTI',
2008
- TankRectangular = 'XTK',
2009
- TubWithLid = 'XTL',
2010
- Tin = 'XTN',
2011
- Tun = 'XTO',
2012
- Trunk = 'XTR',
2013
- Truss = 'XTS',
2014
- BagTote = 'XTT',
2015
- Tube = 'XTU',
2016
- TubeWithNozzle = 'XTV',
2017
- PalletTriwall = 'XTW',
2018
- TankCylindrical = 'XTY',
2019
- TubesInBundleBunchTruss = 'XTZ',
2020
- Uncaged = 'XUC',
2021
- Unit = 'XUN',
2022
- Vat = 'XVA',
2023
- BulkGasAt1031MbarAnd15C = 'XVG',
2024
- Vial = 'XVI',
2025
- Vanpack = 'XVK',
2026
- BulkLiquid = 'XVL',
2027
- Vehicle = 'XVN',
2028
- BulkSolidLargeParticlesNodules = 'XVO',
2029
- VacuumPacked = 'XVP',
2030
- BulkLiquefiedGasAtAbnormalTemperaturePressure = 'XVQ',
2031
- BulkSolidGranularParticlesGrains = 'XVR',
2032
- BulkScrapMetal = 'XVS',
2033
- BulkSolidFineParticlesPowders = 'XVY',
2034
- IntermediateBulkContainer = 'XWA',
2035
- Wickerbottle = 'XWB',
2036
- IntermediateBulkContainerSteel = 'XWC',
2037
- IntermediateBulkContainerAluminium = 'XWD',
2038
- IntermediateBulkContainerMetal = 'XWF',
2039
- IntermediateBulkContainerSteelPressurisedGreaterThan10Kpa = 'XWG',
2040
- IntermediateBulkContainerAluminiumPressurisedGreaterThan10Kpa = 'XWH',
2041
- IntermediateBulkContainerMetalPressure10Kpa = 'XWJ',
2042
- IntermediateBulkContainerSteelLiquid = 'XWK',
2043
- IntermediateBulkContainerAluminiumLiquid = 'XWL',
2044
- IntermediateBulkContainerMetalLiquid = 'XWM',
2045
- IntermediateBulkContainerWovenPlasticWithoutCoatLiner = 'XWN',
2046
- IntermediateBulkContainerWovenPlasticCoated = 'XWP',
2047
- IntermediateBulkContainerWovenPlasticWithLiner = 'XWQ',
2048
- IntermediateBulkContainerWovenPlasticCoatedAndLiner = 'XWR',
2049
- IntermediateBulkContainerPlasticFilm = 'XWS',
2050
- IntermediateBulkContainerTextileWithOutCoatLiner = 'XWT',
2051
- IntermediateBulkContainerNaturalWoodWithInnerLiner = 'XWU',
2052
- IntermediateBulkContainerTextileCoated = 'XWV',
2053
- IntermediateBulkContainerTextileWithLiner = 'XWW',
2054
- IntermediateBulkContainerTextileCoatedAndLiner = 'XWX',
2055
- IntermediateBulkContainerPlywoodWithInnerLiner = 'XWY',
2056
- IntermediateBulkContainerReconstitutedWoodWithInnerLiner = 'XWZ',
2057
- BagWovenPlasticWithoutInnerCoatLiner = 'XXA',
2058
- BagWovenPlasticSiftProof = 'XXB',
2059
- BagWovenPlasticWaterResistant = 'XXC',
2060
- BagPlasticsFilm = 'XXD',
2061
- BagTextileWithoutInnerCoatLiner = 'XXF',
2062
- BagTextileSiftProof = 'XXG',
2063
- BagTextileWaterResistant = 'XXH',
2064
- BagPaperMultiWall = 'XXJ',
2065
- BagPaperMultiWallWaterResistant = 'XXK',
2066
- CompositePackagingPlasticReceptacleInSteelDrum = 'XYA',
2067
- CompositePackagingPlasticReceptacleInSteelCrateBox = 'XYB',
2068
- CompositePackagingPlasticReceptacleInAluminiumDrum = 'XYC',
2069
- CompositePackagingPlasticReceptacleInAluminiumCrate = 'XYD',
2070
- CompositePackagingPlasticReceptacleInWoodenBox = 'XYF',
2071
- CompositePackagingPlasticReceptacleInPlywoodDrum = 'XYG',
2072
- CompositePackagingPlasticReceptacleInPlywoodBox = 'XYH',
2073
- CompositePackagingPlasticReceptacleInFibreDrum = 'XYJ',
2074
- CompositePackagingPlasticReceptacleInFibreboardBox = 'XYK',
2075
- CompositePackagingPlasticReceptacleInPlasticDrum = 'XYL',
2076
- CompositePackagingPlasticReceptacleInSolidPlasticBox = 'XYM',
2077
- CompositePackagingGlassReceptacleInSteelDrum = 'XYN',
2078
- CompositePackagingGlassReceptacleInSteelCrateBox = 'XYP',
2079
- CompositePackagingGlassReceptacleInAluminiumDrum = 'XYQ',
2080
- CompositePackagingGlassReceptacleInAluminiumCrate = 'XYR',
2081
- CompositePackagingGlassReceptacleInWoodenBox = 'XYS',
2082
- CompositePackagingGlassReceptacleInPlywoodDrum = 'XYT',
2083
- CompositePackagingGlassReceptacleInWickerworkHamper = 'XYV',
2084
- CompositePackagingGlassReceptacleInFibreDrum = 'XYW',
2085
- CompositePackagingGlassReceptacleInFibreboardBox = 'XYX',
2086
- CompositePackagingGlassReceptacleInExpandablePlasticPack = 'XYY',
2087
- CompositePackagingGlassReceptacleInSolidPlasticPack = 'XYZ',
2088
- IntermediateBulkContainerPaperMultiWall = 'XZA',
2089
- BagLarge = 'XZB',
2090
- IntermediateBulkContainerPaperMultiWallWaterResistant = 'XZC',
2091
- IntermediateBulkContainerRigidPlasticWithStructuralEquipmentSolids = 'XZD',
2092
- IntermediateBulkContainerRigidPlasticFreestandingSolids = 'XZF',
2093
- IntermediateBulkContainerRigidPlasticWithStructuralEquipmentPressurised = 'XZG',
2094
- IntermediateBulkContainerRigidPlasticFreestandingPressurised = 'XZH',
2095
- IntermediateBulkContainerRigidPlasticWithStructuralEquipmentLiquids = 'XZJ',
2096
- IntermediateBulkContainerRigidPlasticFreestandingLiquids = 'XZK',
2097
- IntermediateBulkContainerCompositeRigidPlasticSolids = 'XZL',
2098
- IntermediateBulkContainerCompositeFlexiblePlasticSolids = 'XZM',
2099
- IntermediateBulkContainerCompositeRigidPlasticPressurised = 'XZN',
2100
- IntermediateBulkContainerCompositeFlexiblePlasticPressurised = 'XZP',
2101
- IntermediateBulkContainerCompositeRigidPlasticLiquids = 'XZQ',
2102
- IntermediateBulkContainerCompositeFlexiblePlasticLiquids = 'XZR',
2103
- IntermediateBulkContainerComposite = 'XZS',
2104
- IntermediateBulkContainerFibreboard = 'XZT',
2105
- IntermediateBulkContainerFlexible = 'XZU',
2106
- IntermediateBulkContainerMetalOtherThanSteel = 'XZV',
2107
- IntermediateBulkContainerNaturalWood = 'XZW',
2108
- IntermediateBulkContainerPlywood = 'XZX',
2109
- IntermediateBulkContainerReconstitutedWood = 'XZY',
2110
- MutuallyDefined = 'XZZ',
2111
- }
3912
+ * Represents the allowed codes for Unit of Measurement types.
3913
+ * Based on UN/ECE Recommendation 20, Revision 17 (2021) as per the documentation:
3914
+ * https://sdk.myinvois.hasil.gov.my/codes/unit-types/
3915
+ */
3916
+ type UnitTypeCode =
3917
+ | UnitTypeCode_1X
3918
+ | UnitTypeCode_2X
3919
+ | UnitTypeCode_3X
3920
+ | UnitTypeCode_4X
3921
+ | UnitTypeCode_5X
3922
+ | UnitTypeCode_6X
3923
+ | UnitTypeCode_7X
3924
+ | UnitTypeCode_8X
3925
+ | UnitTypeCode_9X
3926
+ | UnitTypeCode_AX
3927
+ | UnitTypeCode_BX
3928
+ | UnitTypeCode_CX
3929
+ | UnitTypeCode_DX
3930
+ | UnitTypeCode_EX
3931
+ | UnitTypeCode_FX
3932
+ | UnitTypeCode_GX
3933
+ | UnitTypeCode_HX
3934
+ | UnitTypeCode_IX
3935
+ | UnitTypeCode_JX
3936
+ | UnitTypeCode_KX
3937
+ | UnitTypeCode_LX
3938
+ | UnitTypeCode_MX
3939
+ | UnitTypeCode_NX
3940
+ | UnitTypeCode_OX
3941
+ | UnitTypeCode_PX
3942
+ | UnitTypeCode_QX
3943
+ | UnitTypeCode_RX
3944
+ | UnitTypeCode_SX
3945
+ | UnitTypeCode_TX
3946
+ | UnitTypeCode_UX
3947
+ | UnitTypeCode_VX
3948
+ | UnitTypeCode_WX
3949
+ | UnitTypeCode_YX
3950
+ | UnitTypeCode_ZX
3951
+ | UnitTypeCode_XX
2112
3952
  /**
2113
3953
  * Interface representing a Unit of Measurement entry.
2114
3954
  * Contains the code and its corresponding name.
@@ -3784,28 +5624,41 @@ interface MsicEntry {
3784
5624
  description: string
3785
5625
  }
3786
5626
 
5627
+ //#endregion
5628
+ //#region src/types/index.d.ts
5629
+ interface TokenResponse {
5630
+ access_token: string
5631
+ expires_in: number
5632
+ }
5633
+ interface ClientCredentials {
5634
+ clientId: string
5635
+ clientSecret: string
5636
+ baseUrl: string
5637
+ debug?: boolean
5638
+ }
5639
+
3787
5640
  //#endregion
3788
5641
  //#region src/utils/MyInvoisClient.d.ts
3789
5642
  declare class MyInvoisClient {
3790
- private readonly baseUrl;
3791
- private readonly clientId;
3792
- private readonly clientSecret;
3793
- private readonly debug;
3794
- private token;
3795
- private tokenExpiration;
3796
- constructor(clientId: string, clientSecret: string, environment: 'sandbox' | 'production', debug?: boolean);
3797
- private refreshToken;
3798
- private getToken;
3799
- private fetch;
3800
- /**
3801
- * Validates a TIN against a NRIC
3802
- *
3803
- * @param tin
3804
- * @param nric
3805
- * @returns
3806
- */
3807
- verifyTin(tin: string, nric: string): Promise<boolean>;
5643
+ private readonly baseUrl;
5644
+ private readonly clientId;
5645
+ private readonly clientSecret;
5646
+ private readonly debug;
5647
+ private token;
5648
+ private tokenExpiration;
5649
+ constructor(clientId: string, clientSecret: string, environment: "sandbox" | "production", debug?: boolean);
5650
+ private refreshToken;
5651
+ private getToken;
5652
+ private fetch;
5653
+ /**
5654
+ * Validates a TIN against a NRIC
5655
+ *
5656
+ * @param tin
5657
+ * @param nric
5658
+ * @returns true if the TIN is valid, false otherwise
5659
+ */
5660
+ verifyTin(tin: string, nric: string): Promise<boolean>;
3808
5661
  }
3809
5662
 
3810
5663
  //#endregion
3811
- export { Address, AllowanceCharge, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, Delivery, DigestMethod, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, InvoiceLineItem, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, MsicEntry, MyInvoisClient, PaymentMeans, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, State, StateCode, StateCodeEnum, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, Transform, UnitType, UnitTypeCode, UnitTypeCodeEnum, X509Data };
5664
+ export { Address, AllowanceCharge, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, ClientCredentials, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, Delivery, DigestMethod, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, InvoiceLineItem, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, MsicEntry, MyInvoisClient, PaymentMeans, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, State, StateCode, StateCodeEnum, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, TokenResponse, Transform, UnitType, UnitTypeCode, X509Data };