@ripwords/myinvois-client 0.3.0 → 0.3.2
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/dist/api/documentManagement.d.ts +2 -2
- package/dist/api/documentManagement.js +1 -1
- package/dist/api/documentSubmission.d.ts +2 -2
- package/dist/api/documentSubmission.js +2 -2
- package/dist/api/documentTypeManagement.d.ts +2 -2
- package/dist/api/notificationManagement.d.ts +2 -2
- package/dist/api/platformLogin.d.ts +2 -2
- package/dist/api/taxpayerValidation.d.ts +2 -2
- package/dist/{document-DLFdGSK1.js → document-D4O7JY0G.js} +9 -3
- package/dist/{document-CCza2JPL.cjs → document-DoQEvmcK.cjs} +10 -4
- package/dist/document-DoQEvmcK.cjs.map +1 -0
- package/dist/{documentManagement-CyPwiyP4.cjs → documentManagement-BviJDtf2.cjs} +5 -1
- package/dist/documentManagement-BviJDtf2.cjs.map +1 -0
- package/dist/{documentManagement-CeNbp3qm.js → documentManagement-lPm8Gziu.js} +4 -0
- package/dist/{documentSubmission-M4UlirJ7.cjs → documentSubmission-DUsjqWhR.cjs} +2 -2
- package/dist/{documentSubmission-M4UlirJ7.cjs.map → documentSubmission-DUsjqWhR.cjs.map} +1 -1
- package/dist/{documentSubmission-ZAgXsd3X.js → documentSubmission-uJ7yPWub.js} +1 -1
- package/dist/{documents-DCZ3Ffya.d.cts → documents-BECak3KN.d.cts} +7 -1
- package/dist/{documents-DzZA3NHj.d.ts → documents-Dp19RgNX.d.ts} +6 -0
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/index10.cjs +187 -16
- package/dist/index10.cjs.map +1 -1
- package/dist/index12.cjs +16 -25
- package/dist/index12.cjs.map +1 -1
- package/dist/index13.cjs +0 -24
- package/dist/index15.cjs +29 -0
- package/dist/index15.cjs.map +1 -0
- package/dist/index16.cjs +25 -0
- package/dist/index16.cjs.map +1 -0
- package/dist/index17.cjs +0 -5
- package/dist/index18.cjs +33 -6
- package/dist/index18.cjs.map +1 -0
- package/dist/index19.cjs +23 -4
- package/dist/{index13.cjs.map → index19.cjs.map} +1 -1
- package/dist/index2.cjs +4 -61
- package/dist/index20.cjs +0 -3
- package/dist/index21.cjs +0 -3
- package/dist/index22.cjs +0 -6
- package/dist/index23.cjs +4 -207
- package/dist/index24.cjs +9 -105
- package/dist/index24.cjs.map +1 -1
- package/dist/index25.cjs +4 -136
- package/dist/index26.cjs +21 -63
- package/dist/index27.cjs +2 -266
- package/dist/index28.cjs +2 -78
- package/dist/index29.cjs +326 -103
- package/dist/index29.cjs.map +1 -1
- package/dist/index3.cjs +6 -531
- package/dist/index30.cjs +189 -69
- package/dist/index30.cjs.map +1 -1
- package/dist/index31.cjs +203 -107
- package/dist/index31.cjs.map +1 -1
- package/dist/index32.cjs +104 -95
- package/dist/index32.cjs.map +1 -1
- package/dist/index33.cjs +132 -13
- package/dist/index33.cjs.map +1 -1
- package/dist/index34.cjs +59 -33
- package/dist/index34.cjs.map +1 -1
- package/dist/index35.cjs +262 -14
- package/dist/index35.cjs.map +1 -1
- package/dist/index36.cjs +74 -24
- package/dist/index36.cjs.map +1 -1
- package/dist/index37.cjs +102 -15
- package/dist/index37.cjs.map +1 -1
- package/dist/index38.cjs +68 -9
- package/dist/index38.cjs.map +1 -1
- package/dist/index39.cjs +107 -9
- package/dist/index39.cjs.map +1 -1
- package/dist/index4.cjs +4 -195
- package/dist/index40.cjs +95 -12
- package/dist/index40.cjs.map +1 -1
- package/dist/index41.cjs +11 -6
- package/dist/index41.cjs.map +1 -1
- package/dist/index42.cjs +31 -101
- package/dist/index42.cjs.map +1 -1
- package/dist/index43.cjs +12 -106
- package/dist/index43.cjs.map +1 -1
- package/dist/index44.cjs +22 -119
- package/dist/index44.cjs.map +1 -1
- package/dist/index45.cjs +13 -106
- package/dist/index45.cjs.map +1 -1
- package/dist/index46.cjs +7 -98
- package/dist/index46.cjs.map +1 -1
- package/dist/index47.cjs +7 -118
- package/dist/index47.cjs.map +1 -1
- package/dist/index48.cjs +10 -127
- package/dist/index48.cjs.map +1 -1
- package/dist/index49.cjs +6 -117
- package/dist/index49.cjs.map +1 -1
- package/dist/index5.cjs +3 -0
- package/dist/index50.cjs +101 -14
- package/dist/index50.cjs.map +1 -1
- package/dist/index51.cjs +106 -95
- package/dist/index51.cjs.map +1 -1
- package/dist/index52.cjs +119 -142
- package/dist/index52.cjs.map +1 -1
- package/dist/index53.cjs +106 -114
- package/dist/index53.cjs.map +1 -1
- package/dist/index54.cjs +98 -144
- package/dist/index54.cjs.map +1 -1
- package/dist/index55.cjs +118 -113
- package/dist/index55.cjs.map +1 -1
- package/dist/index56.cjs +127 -17
- package/dist/index56.cjs.map +1 -1
- package/dist/index57.cjs +117 -112
- package/dist/index57.cjs.map +1 -1
- package/dist/index58.cjs +14 -47
- package/dist/index58.cjs.map +1 -1
- package/dist/index59.cjs +95 -14
- package/dist/index59.cjs.map +1 -1
- package/dist/index6.cjs +2 -24
- package/dist/index60.cjs +142 -28
- package/dist/index60.cjs.map +1 -1
- package/dist/index61.cjs +114 -22
- package/dist/index61.cjs.map +1 -1
- package/dist/index62.cjs +144 -9
- package/dist/index62.cjs.map +1 -1
- package/dist/index63.cjs +113 -8
- package/dist/index63.cjs.map +1 -1
- package/dist/index64.cjs +17 -17
- package/dist/index64.cjs.map +1 -1
- package/dist/index65.cjs +112 -412
- package/dist/index65.cjs.map +1 -1
- package/dist/index66.cjs +47 -8
- package/dist/index66.cjs.map +1 -1
- package/dist/index67.cjs +14 -9
- package/dist/index67.cjs.map +1 -1
- package/dist/index68.cjs +34 -4
- package/dist/index68.cjs.map +1 -0
- package/dist/index69.cjs +25 -9
- package/dist/index69.cjs.map +1 -1
- package/dist/index7.cjs +6 -0
- package/dist/index70.cjs +15 -4
- package/dist/index70.cjs.map +1 -0
- package/dist/index71.cjs +14 -21
- package/dist/index71.cjs.map +1 -0
- package/dist/index71.cts.map +1 -1
- package/dist/index72.cjs +23 -2
- package/dist/index72.cjs.map +1 -0
- package/dist/index73.cjs +418 -2
- package/dist/index73.cjs.map +1 -0
- package/dist/index74.cjs +9 -324
- package/dist/index74.cjs.map +1 -1
- package/dist/index75.cjs +10 -187
- package/dist/index75.cjs.map +1 -1
- package/dist/index8.cjs +62 -0
- package/dist/{index2.cjs.map → index8.cjs.map} +1 -1
- package/dist/index9.cjs +526 -23
- package/dist/index9.cjs.map +1 -1
- package/dist/{taxpayer-DmHW0m7o.d.ts → taxpayer-BdvCGHHC.d.ts} +1 -1
- package/dist/{taxpayer-Pm90MrPj.d.cts → taxpayer-CaDfslWB.d.cts} +2 -2
- package/dist/types/documents.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/taxpayer.d.ts +2 -2
- package/dist/utils/document.d.ts +4 -3
- package/dist/utils/document.js +1 -1
- package/dist/utils/signature-diagnostics.d.ts +2 -2
- package/dist/utils/signature-diagnostics.js +1 -1
- package/dist/utils/validation.d.ts +2 -2
- package/package.json +1 -1
- package/dist/document-CCza2JPL.cjs.map +0 -1
- package/dist/documentManagement-CyPwiyP4.cjs.map +0 -1
- package/dist/index23.cjs.map +0 -1
- package/dist/index25.cjs.map +0 -1
- package/dist/index26.cjs.map +0 -1
- package/dist/index27.cjs.map +0 -1
- package/dist/index28.cjs.map +0 -1
- package/dist/index3.cjs.map +0 -1
- package/dist/index4.cjs.map +0 -1
- package/dist/index6.cjs.map +0 -1
package/dist/index65.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index65.cjs","names":[],"sources":["../src/types/unit/XX.d.ts"],"sourcesContent":["/**\n * Unit types starting with X\n * https://sdk.myinvois.hasil.gov.my/codes/unit-types/\n */\nexport type UnitTypeCode_XX =\n | 'X1' // Gunter's chain\n | 'X1A' // Drum, steel\n | 'X1B' // Drum, aluminium\n | 'X1D' // Drum, plywood\n | 'X1F' // Container, flexible\n | 'X1G' // Drum, fibre\n | 'X1W' // Drum, wooden\n | 'X2C' // Barrel, wooden\n | 'X3A' // Jerrican, steel\n | 'X3H' // Jerrican, plastic\n | 'X43' // Bag, super bulk\n | 'X44' // Bag, polybag\n | 'X4A' // Box, steel\n | 'X4B' // Box, aluminium\n | 'X4C' // Box, natural wood\n | 'X4D' // Box, plywood\n | 'X4F' // Box, reconstituted wood\n | 'X4G' // Box, fibreboard\n | 'X4H' // Box, plastic\n | 'X5H' // Bag, woven plastic\n | 'X5L' // Bag, textile\n | 'X5M' // Bag, paper\n | 'X6H' // Composite packaging, plastic receptacle\n | 'X6P' // Composite packaging, glass receptacle\n | 'X7A' // Case, car\n | 'X7B' // Case, wooden\n | 'X8A' // Pallet, wooden\n | 'X8B' // Crate, wooden\n | 'X8C' // Bundle, wooden\n | 'XAA' // Intermediate bulk container, rigid plastic\n | 'XAB' // Receptacle, fibre\n | 'XAC' // Receptacle, paper\n | 'XAD' // Receptacle, wooden\n | 'XAE' // Aerosol\n | 'XAF' // Pallet, modular, collars 80cms * 60cms\n | 'XAG' // Pallet, shrinkwrapped\n | 'XAH' // Pallet, 100cms * 110cms\n | 'XAI' // Clamshell\n | 'XAJ' // Cone\n | 'XAL' // Ball\n | 'XAM' // Ampoule, non-protected\n | 'XAP' // Ampoule, protected\n | 'XAT' // Atomizer\n | 'XAV' // Capsule\n | 'XB4' // Belt\n | 'XBA' // Barrel\n | 'XBB' // Bobbin\n | 'XBC' // Bottlecrate / bottlerack\n | 'XBD' // Board\n | 'XBE' // Bundle\n | 'XBF' // Balloon, non-protected\n | 'XBG' // Bag\n | 'XBH' // Bunch\n | 'XBI' // Bin\n | 'XBJ' // Bucket\n | 'XBK' // Basket\n | 'XBL' // Bale, compressed\n | 'XBM' // Basin\n | 'XBN' // Bale, non-compressed\n | 'XBO' // Bottle, non-protected, cylindrical\n | 'XBP' // Balloon, protected\n | 'XBQ' // Bottle, protected cylindrical\n | 'XBR' // Bar\n | 'XBS' // Bottle, non-protected, bulbous\n | 'XBT' // Bolt\n | 'XBU' // Butt\n | 'XBV' // Bottle, protected bulbous\n | 'XBW' // Box, for liquids\n | 'XBX' // Box\n | 'XBY' // Board, in bundle/bunch/truss\n | 'XBZ' // Bars, in bundle/bunch/truss\n | 'XCA' // Can, rectangular\n | 'XCB' // Crate, beer\n | 'XCC' // Churn\n | 'XCD' // Can, with handle and spout\n | 'XCE' // Creel\n | 'XCF' // Coffer\n | 'XCG' // Cage\n | 'XCH' // Chest\n | 'XCI' // Canister\n | 'XCJ' // Coffin\n | 'XCK' // Cask\n | 'XCL' // Coil\n | 'XCM' // Card\n | 'XCN' // Container, not otherwise specified as transport equipment\n | 'XCO' // Carboy, non-protected\n | 'XCP' // Carboy, protected\n | 'XCQ' // Cartridge\n | 'XCR' // Crate\n | 'XCS' // Case\n | 'XCT' // Carton\n | 'XCU' // Cup\n | 'XCV' // Cover\n | 'XCW' // Cage, roll\n | 'XCX' // Can, cylindrical\n | 'XCY' // Cylinder\n | 'XCZ' // Canvas\n | 'XDA' // Crate, multiple layer, plastic\n | 'XDB' // Crate, multiple layer, wooden\n | 'XDC' // Crate, multiple layer, cardboard\n | 'XDG' // Cage, Commonwealth Handling Equipment Pool (CHEP)\n | 'XDH' // Box, Commonwealth Handling Equipment Pool (CHEP), Eurobox\n | 'XDI' // Drum, iron\n | 'XDJ' // Demijohn, non-protected\n | 'XDK' // Crate, bulk, cardboard\n | 'XDL' // Crate, bulk, plastic\n | 'XDM' // Crate, bulk, wooden\n | 'XDN' // Dispenser\n | 'XDP' // Demijohn, protected\n | 'XDR' // Drum\n | 'XDS' // Tray, one layer no cover, plastic\n | 'XDT' // Tray, one layer no cover, wooden\n | 'XDU' // Tray, one layer no cover, polystyrene\n | 'XDV' // Tray, one layer no cover, cardboard\n | 'XDW' // Tray, two layers no cover, plastic tray\n | 'XDX' // Tray, two layers no cover, wooden\n | 'XDY' // Tray, two layers no cover, cardboard\n | 'XEC' // Bag, plastic\n | 'XED' // Case, with pallet base\n | 'XEE' // Case, with pallet base, wooden\n | 'XEF' // Case, with pallet base, cardboard\n | 'XEG' // Case, with pallet base, plastic\n | 'XEH' // Case, with pallet base, metal\n | 'XEI' // Case, isothermic\n | 'XEN' // Envelope\n | 'XFB' // Flexibag\n | 'XFC' // Crate, fruit\n | 'XFD' // Crate, framed\n | 'XFE' // Flexitank\n | 'XFI' // Firkin\n | 'XFL' // Flask\n | 'XFO' // Footlocker\n | 'XFP' // Filmpack\n | 'XFR' // Frame\n | 'XFT' // Foodtainer\n | 'XFW' // Cart, flatbed\n | 'XFX' // Bag, flexible container\n | 'XGB' // Bottle, gas\n | 'XGI' // Girder\n | 'XGL' // Container, gallon\n | 'XGR' // Receptacle, glass\n | 'XGU' // Tray, containing horizontally stacked flat items\n | 'XGY' // Bag, gunny\n | 'XGZ' // Girders, in bundle/bunch/truss\n | 'XHA' // Basket, with handle, plastic\n | 'XHB' // Basket, with handle, wooden\n | 'XHC' // Basket, with handle, cardboard\n | 'XHG' // Hogshead\n | 'XHN' // Hanger\n | 'XHR' // Hamper\n | 'XIA' // Package, display, wooden\n | 'XIB' // Package, display, cardboard\n | 'XIC' // Package, display, plastic\n | 'XID' // Package, display, metal\n | 'XIE' // Package, show\n | 'XIF' // Package, flow\n | 'XIG' // Package, paper wrapped\n | 'XIH' // Drum, plastic\n | 'XIK' // Package, cardboard, with bottle grip-holes\n | 'XIL' // Tray, rigid, lidded stackable (CEN TS 14482:2002)\n | 'XIN' // Ingot\n | 'XIZ' // Ingots, in bundle/bunch/truss\n | 'XJB' // Bag, jumbo\n | 'XJC' // Jerrican, rectangular\n | 'XJG' // Jug\n | 'XJR' // Jar\n | 'XJT' // Jutebag\n | 'XJY' // Jerrican, cylindrical\n | 'XKG' // Keg\n | 'XKI' // Kit\n | 'XLE' // Luggage\n | 'XLG' // Log\n | 'XLT' // Lot\n | 'XLU' // Lug\n | 'XLV' // Liftvan\n | 'XLZ' // Logs, in bundle/bunch/truss\n | 'XMA' // Crate, metal\n | 'XMB' // Bag, multiply\n | 'XMC' // Crate, milk\n | 'XME' // Container, metal\n | 'XMR' // Receptacle, metal\n | 'XMS' // Sack, multi-wall\n | 'XMT' // Mat\n | 'XMW' // Receptacle, plastic wrapped\n | 'XMX' // Matchbox\n | 'XNA' // Not available\n | 'XNE' // Unpacked or unpackaged\n | 'XNF' // Unpacked or unpackaged, single unit\n | 'XNG' // Unpacked or unpackaged, multiple units\n | 'XNS' // Nest\n | 'XNT' // Net\n | 'XNU' // Net, tube, plastic\n | 'XNV' // Net, tube, textile\n | 'XO1' // Two sided cage on wheels with fixing strap\n | 'XO2' // Trolley\n | 'XO3' // Oneway pallet ISO 0 - 1/2 EURO Pallet\n | 'XO4' // Oneway pallet ISO 1 - 1/1 EURO Pallet\n | 'XO5' // Oneway pallet ISO 2 - 2/1 EURO Pallet\n | 'XO6' // Pallet with exceptional dimensions\n | 'XO7' // Wooden pallet 40 cm x 80 cm\n | 'XO8' // Plastic pallet SRS 60 cm x 80 cm\n | 'XO9' // Plastic pallet SRS 80 cm x 120 cm\n | 'XOA' // Pallet, CHEP 40 cm x 60 cm\n | 'XOB' // Pallet, CHEP 80 cm x 120 cm\n | 'XOC' // Pallet, CHEP 100 cm x 120 cm\n | 'XOD' // Pallet, AS 4068-1993\n | 'XOE' // Pallet, ISO T11\n | 'XOF' // Platform, unspecified weight or dimension\n | 'XOG' // Pallet ISO 0 - 1/2 EURO Pallet\n | 'XOH' // Pallet ISO 1 - 1/1 EURO Pallet\n | 'XOI' // Pallet ISO 2 – 2/1 EURO Pallet\n | 'XOJ' // 1/4 EURO Pallet\n | 'XOK' // Block\n | 'XOL' // 1/8 EURO Pallet\n | 'XOM' // Synthetic pallet ISO 1\n | 'XON' // Synthetic pallet ISO 2\n | 'XOP' // Wholesaler pallet\n | 'XOQ' // Pallet 80 X 100 cm\n | 'XOR' // Pallet 60 X 100 cm\n | 'XOS' // Oneway pallet\n | 'XOT' // Octabin\n | 'XOU' // Container, outer\n | 'XOV' // Returnable pallet\n | 'XOW' // Large bag, pallet sized\n | 'XOX' // A wheeled pallet with raised rim (81 x 67 x 135)\n | 'XOY' // A Wheeled pallet with raised rim (81 x 72 x 135)\n | 'XOZ' // Wheeled pallet with raised rim ( 81 x 60 x 16)\n | 'XP1' // CHEP pallet 60 cm x 80 cm\n | 'XP2' // Pan\n | 'XP3' // LPR pallet 60 cm x 80 cm\n | 'XP4' // LPR pallet 80 cm x 120 cm\n | 'XPA' // Packet\n | 'XPB' // Pallet, box Combined open-ended box and pallet\n | 'XPC' // Parcel\n | 'XPD' // Pallet, modular, collars 80cms * 100cms\n | 'XPE' // Pallet, modular, collars 80cms * 120cms\n | 'XPF' // Pen\n | 'XPG' // Plate\n | 'XPH' // Pitcher\n | 'XPI' // Pipe\n | 'XPJ' // Punnet\n | 'XPK' // Package\n | 'XPL' // Pail\n | 'XPN' // Plank\n | 'XPO' // Pouch\n | 'XPP' // Piece\n | 'XPR' // Receptacle, plastic\n | 'XPT' // Pot\n | 'XPU' // Tray\n | 'XPV' // Pipes, in bundle/bunch/truss\n | 'XPX' // Pallet\n | 'XPY' // Plates, in bundle/bunch/truss\n | 'XPZ' // Planks, in bundle/bunch/truss\n | 'XQA' // Drum, steel, non-removable head\n | 'XQB' // Drum, steel, removable head\n | 'XQC' // Drum, aluminium, non-removable head\n | 'XQD' // Drum, aluminium, removable head\n | 'XQF' // Drum, plastic, non-removable head\n | 'XQG' // Drum, plastic, removable head\n | 'XQH' // Barrel, wooden, bung type\n | 'XQJ' // Barrel, wooden, removable head\n | 'XQK' // Jerrican, steel, non-removable head\n | 'XQL' // Jerrican, steel, removable head\n | 'XQM' // Jerrican, plastic, non-removable head\n | 'XQN' // Jerrican, plastic, removable head\n | 'XQP' // Box, wooden, natural wood, ordinary\n | 'XQQ' // Box, wooden, natural wood, with sift proof walls\n | 'XQR' // Box, plastic, expanded\n | 'XQS' // Box, plastic, solid\n | 'XRD' // Rod\n | 'XRG' // Ring\n | 'XRJ' // Rack, clothing hanger\n | 'XRK' // Rack\n | 'XRL' // Reel\n | 'XRO' // Roll\n | 'XRT' // Rednet\n | 'XRZ' // Rods, in bundle/bunch/truss\n | 'XSA' // Sack\n | 'XSB' // Slab\n | 'XSC' // Crate, shallow\n | 'XSD' // Spindle\n | 'XSE' // Sea-chest\n | 'XSH' // Sachet\n | 'XSI' // Skid\n | 'XSK' // Case, skeleton\n | 'XSL' // Slipsheet\n | 'XSM' // Sheetmetal\n | 'XSO' // Spool\n | 'XSP' // Sheet, plastic wrapping\n | 'XSS' // Case, steel\n | 'XST' // Sheet\n | 'XSU' // Suitcase\n | 'XSV' // Envelope, steel\n | 'XSW' // Shrinkwrapped\n | 'XSX' // Set\n | 'XSY' // Sleeve\n | 'XSZ' // Sheets, in bundle/bunch/truss\n | 'XT1' // Tablet\n | 'XTB' // Tub\n | 'XTC' // Tea-chest\n | 'XTD' // Tube, collapsible\n | 'XTE' // Tyre\n | 'XTG' // Tank container, generic\n | 'XTI' // Tierce\n | 'XTK' // Tank, rectangular\n | 'XTL' // Tub, with lid\n | 'XTN' // Tin\n | 'XTO' // Tun\n | 'XTR' // Trunk\n | 'XTS' // Truss\n | 'XTT' // Bag, tote\n | 'XTU' // Tube\n | 'XTV' // Tube, with nozzle\n | 'XTW' // Pallet, triwall\n | 'XTY' // Tank, cylindrical\n | 'XTZ' // Tubes, in bundle/bunch/truss\n | 'XUC' // Uncaged\n | 'XUN' // Unit\n | 'XVA' // Vat\n | 'XVG' // Bulk, gas (at 1031 mbar and 15°C)\n | 'XVI' // Vial\n | 'XVK' // Vanpack\n | 'XVL' // Bulk, liquid\n | 'XVN' // Vehicle\n | 'XVO' // Bulk, solid, large particles (“nodules†)\n | 'XVP' // Vacuum-packed\n | 'XVQ' // Bulk, liquefied gas (at abnormal temperature/pressure)\n | 'XVR' // Bulk, solid, granular particles (“grains†)\n | 'XVS' // Bulk, scrap metal\n | 'XVY' // Bulk, solid, fine particles (“powders†)\n | 'XWA' // Intermediate bulk container\n | 'XWB' // Wickerbottle\n | 'XWC' // Intermediate bulk container, steel\n | 'XWD' // Intermediate bulk container, aluminium\n | 'XWF' // Intermediate bulk container, metal\n | 'XWG' // Intermediate bulk container, steel, pressurised > 10 kpa\n | 'XWH' // Intermediate bulk container, aluminium, pressurised > 10 kpa\n | 'XWJ' // Intermediate bulk container, metal, pressure 10 kpa\n | 'XWK' // Intermediate bulk container, steel, liquid\n | 'XWL' // Intermediate bulk container, aluminium, liquid\n | 'XWM' // Intermediate bulk container, metal, liquid\n | 'XWN' // Intermediate bulk container, woven plastic, without coat/liner\n | 'XWP' // Intermediate bulk container, woven plastic, coated\n | 'XWQ' // Intermediate bulk container, woven plastic, with liner\n | 'XWR' // Intermediate bulk container, woven plastic, coated and liner\n | 'XWS' // Intermediate bulk container, plastic film\n | 'XWT' // Intermediate bulk container, textile with out coat/liner\n | 'XWU' // Intermediate bulk container, natural wood, with inner liner\n | 'XWV' // Intermediate bulk container, textile, coated\n | 'XWW' // Intermediate bulk container, textile, with liner\n | 'XWX' // Intermediate bulk container, textile, coated and liner\n | 'XWY' // Intermediate bulk container, plywood, with inner liner\n | 'XWZ' // Intermediate bulk container, reconstituted wood, with inner liner\n | 'XXA' // Bag, woven plastic, without inner coat/liner\n | 'XXB' // Bag, woven plastic, sift proof\n | 'XXC' // Bag, woven plastic, water resistant\n | 'XXD' // Bag, plastics film\n | 'XXF' // Bag, textile, without inner coat/liner\n | 'XXG' // Bag, textile, sift proof\n | 'XXH' // Bag, textile, water resistant\n | 'XXJ' // Bag, paper, multi-wall\n | 'XXK' // Bag, paper, multi-wall, water resistant\n | 'XYA' // Composite packaging, plastic receptacle in steel drum\n | 'XYB' // Composite packaging, plastic receptacle in steel crate box\n | 'XYC' // Composite packaging, plastic receptacle in aluminium drum\n | 'XYD' // Composite packaging, plastic receptacle in aluminium crate\n | 'XYF' // Composite packaging, plastic receptacle in wooden box\n | 'XYG' // Composite packaging, plastic receptacle in plywood drum\n | 'XYH' // Composite packaging, plastic receptacle in plywood box\n | 'XYJ' // Composite packaging, plastic receptacle in fibre drum\n | 'XYK' // Composite packaging, plastic receptacle in fibreboard box\n | 'XYL' // Composite packaging, plastic receptacle in plastic drum\n | 'XYM' // Composite packaging, plastic receptacle in solid plastic box\n | 'XYN' // Composite packaging, glass receptacle in steel drum\n | 'XYP' // Composite packaging, glass receptacle in steel crate box\n | 'XYQ' // Composite packaging, glass receptacle in aluminium drum\n | 'XYR' // Composite packaging, glass receptacle in aluminium crate\n | 'XYS' // Composite packaging, glass receptacle in wooden box\n | 'XYT' // Composite packaging, glass receptacle in plywood drum\n | 'XYV' // Composite packaging, glass receptacle in wickerwork hamper\n | 'XYW' // Composite packaging, glass receptacle in fibre drum\n | 'XYX' // Composite packaging, glass receptacle in fibreboard box\n | 'XYY' // Composite packaging, glass receptacle in expandable plastic pack\n | 'XYZ' // Composite packaging, glass receptacle in solid plastic pack\n | 'XZA' // Intermediate bulk container, paper, multi-wall\n | 'XZB' // Bag, large\n | 'XZC' // Intermediate bulk container, paper, multi-wall, water resistant\n | 'XZD' // Intermediate bulk container, rigid plastic, with structural equipment, solids\n | 'XZF' // Intermediate bulk container, rigid plastic, freestanding, solids\n | 'XZG' // Intermediate bulk container, rigid plastic, with structural equipment, pressurised\n | 'XZH' // Intermediate bulk container, rigid plastic, freestanding, pressurised\n | 'XZJ' // Intermediate bulk container, rigid plastic, with structural equipment, liquids\n | 'XZK' // Intermediate bulk container, rigid plastic, freestanding, liquids\n | 'XZL' // Intermediate bulk container, composite, rigid plastic, solids\n | 'XZM' // Intermediate bulk container, composite, flexible plastic, solids\n | 'XZN' // Intermediate bulk container, composite, rigid plastic, pressurised\n | 'XZP' // Intermediate bulk container, composite, flexible plastic, pressurised\n | 'XZQ' // Intermediate bulk container, composite, rigid plastic, liquids\n | 'XZR' // Intermediate bulk container, composite, flexible plastic, liquids\n | 'XZS' // Intermediate bulk container, composite\n | 'XZT' // Intermediate bulk container, fibreboard\n | 'XZU' // Intermediate bulk container, flexible\n | 'XZV' // Intermediate bulk container, metal, other than steel\n | 'XZW' // Intermediate bulk container, natural wood\n | 'XZX' // Intermediate bulk container, plywood\n | 'XZY' // Intermediate bulk container, reconstituted wood\n | 'XZZ' // Mutually defined\n\n/**\n * Enum representing unit type codes starting with 'X'.\n */\nexport enum UnitTypeCodeEnum_XX {\n GuntersChain = 'X1',\n DrumSteel = 'X1A',\n DrumAluminium = 'X1B',\n DrumPlywood = 'X1D',\n ContainerFlexible = 'X1F',\n DrumFibre = 'X1G',\n DrumWooden = 'X1W',\n BarrelWooden = 'X2C',\n JerricanSteel = 'X3A',\n JerricanPlastic = 'X3H',\n BagSuperBulk = 'X43',\n BagPolybag = 'X44',\n BoxSteel = 'X4A',\n BoxAluminium = 'X4B',\n BoxNaturalWood = 'X4C',\n BoxPlywood = 'X4D',\n BoxReconstitutedWood = 'X4F',\n BoxFibreboard = 'X4G',\n BoxPlastic = 'X4H',\n BagWovenPlastic = 'X5H',\n BagTextile = 'X5L',\n BagPaper = 'X5M',\n CompositePackagingPlasticReceptacle = 'X6H',\n CompositePackagingGlassReceptacle = 'X6P',\n CaseCar = 'X7A',\n CaseWooden = 'X7B',\n PalletWooden = 'X8A',\n CrateWooden = 'X8B',\n BundleWooden = 'X8C',\n IntermediateBulkContainerRigidPlastic = 'XAA',\n ReceptacleFibre = 'XAB',\n ReceptaclePaper = 'XAC',\n ReceptacleWooden = 'XAD',\n Aerosol = 'XAE',\n PalletModularCollar80cms60cms = 'XAF',\n PalletShrinkwrapped = 'XAG',\n Pallet100cms110cms = 'XAH',\n Clamshell = 'XAI',\n Cone = 'XAJ',\n Ball = 'XAL',\n AmpouleNonProtected = 'XAM',\n AmpouleProtected = 'XAP',\n Atomizer = 'XAT',\n Capsule = 'XAV',\n Belt = 'XB4',\n Barrel = 'XBA',\n Bobbin = 'XBB',\n BottlecrateBottlerack = 'XBC',\n Board = 'XBD',\n Bundle = 'XBE',\n BalloonNonProtected = 'XBF',\n Bag = 'XBG',\n Bunch = 'XBH',\n Bin = 'XBI',\n Bucket = 'XBJ',\n Basket = 'XBK',\n BaleCompressed = 'XBL',\n Basin = 'XBM',\n BaleNonCompressed = 'XBN',\n BottleNonProtectedCylindrical = 'XBO',\n BalloonProtected = 'XBP',\n BottleProtectedCylindrical = 'XBQ',\n Bar = 'XBR',\n BottleNonProtectedBulbous = 'XBS',\n Bolt = 'XBT',\n Butt = 'XBU',\n BottleProtectedBulbous = 'XBV',\n BoxForLiquids = 'XBW',\n Box = 'XBX',\n BoardInBundleBunchTruss = 'XBY',\n BarsInBundleBunchTruss = 'XBZ',\n CanRectangular = 'XCA',\n CrateBeer = 'XCB',\n Churn = 'XCC',\n CanWithHandleAndSpout = 'XCD',\n Creel = 'XCE',\n Coffer = 'XCF',\n Cage = 'XCG',\n Chest = 'XCH',\n Canister = 'XCI',\n Coffin = 'XCJ',\n Cask = 'XCK',\n Coil = 'XCL',\n Card = 'XCM',\n ContainerNotOtherwiseSpecifiedAsTransportEquipment = 'XCN',\n CarboyNonProtected = 'XCO',\n CarboyProtected = 'XCP',\n Cartridge = 'XCQ',\n Crate = 'XCR',\n Case = 'XCS',\n Carton = 'XCT',\n Cup = 'XCU',\n Cover = 'XCV',\n CageRoll = 'XCW',\n CanCylindrical = 'XCX',\n Cylinder = 'XCY',\n Canvas = 'XCZ',\n CrateMultipleLayerPlastic = 'XDA',\n CrateMultipleLayerWooden = 'XDB',\n CrateMultipleLayerCardboard = 'XDC',\n CageCommonwealthHandlingEquipmentPoolCHEP = 'XDG',\n BoxCommonwealthHandlingEquipmentPoolCHEPEurobox = 'XDH',\n DrumIron = 'XDI',\n DemijohnNonProtected = 'XDJ',\n CrateBulkCardboard = 'XDK',\n CrateBulkPlastic = 'XDL',\n CrateBulkWoden = 'XDM',\n Dispenser = 'XDN',\n DemijohnProtected = 'XDP',\n Drum = 'XDR',\n TrayOneLayerNoCoverPlastic = 'XDS',\n TrayOneLayerNoCoverWooden = 'XDT',\n TrayOneLayerNoCoverPolystyrene = 'XDU',\n TrayOneLayerNoCoverCardboard = 'XDV',\n TrayTwoLayersNoCoverPlasticTray = 'XDW',\n TrayTwoLayersNoCoverWooden = 'XDX',\n TrayTwoLayersNoCoverCardboard = 'XDY',\n BagPlastic = 'XEC',\n CaseWithPalletBase = 'XED',\n CaseWithPalletBaseWooden = 'XEE',\n CaseWithPalletBaseCardboard = 'XEF',\n CaseWithPalletBasePlastic = 'XEG',\n CaseWithPalletBaseMetal = 'XEH',\n CaseIsothermic = 'XEI',\n Envelope = 'XEN',\n Flexibag = 'XFB',\n CrateFruit = 'XFC',\n CrateFramed = 'XFD',\n Flexitank = 'XFE',\n Firkin = 'XFI',\n Flask = 'XFL',\n Footlocker = 'XFO',\n Filmpack = 'XFP',\n Frame = 'XFR',\n Foodtainer = 'XFT',\n CartFlatbed = 'XFW',\n BagFlexibleContainer = 'XFX',\n BottleGas = 'XGB',\n Girder = 'XGI',\n ContainerGallon = 'XGL',\n ReceptacleGlass = 'XGR',\n TrayContainingHorizontallyStackedFlatItems = 'XGU',\n BagGunny = 'XGY',\n GirdersInBundleBunchTruss = 'XGZ',\n BasketWithHandlePlastic = 'XHA',\n BasketWithHandleWooden = 'XHB',\n BasketWithHandleCardboard = 'XHC',\n Hogshead = 'XHG',\n Hanger = 'XHN',\n Hamper = 'XHR',\n PackageDisplayWooden = 'XIA',\n PackageDisplayCardboard = 'XIB',\n PackageDisplayPlastic = 'XIC',\n PackageDisplayMetal = 'XID',\n PackageShow = 'XIE',\n PackageFlow = 'XIF',\n PackagePaperWrapped = 'XIG',\n DrumPlastic = 'XIH',\n PackageCardboardWithBottleGripHoles = 'XIK',\n TrayRigidLiddedStackableCENTS144822002 = 'XIL',\n Ingot = 'XIN',\n IngotsInBundleBunchTruss = 'XIZ',\n BagJumbo = 'XJB',\n JerricanRectangular = 'XJC',\n Jug = 'XJG',\n Jar = 'XJR',\n Jutebag = 'XJT',\n JerricanCylindrical = 'XJY',\n Keg = 'XKG',\n Kit = 'XKI',\n Luggage = 'XLE',\n Log = 'XLG',\n Lot = 'XLT',\n Lug = 'XLU',\n Liftvan = 'XLV',\n LogsInBundleBunchTruss = 'XLZ',\n CrateMetal = 'XMA',\n BagMultiply = 'XMB',\n CrateMilk = 'XMC',\n ContainerMetal = 'XME',\n ReceptacleMetal = 'XMR',\n SackMultiWall = 'XMS',\n Mat = 'XMT',\n ReceptaclePlasticWrapped = 'XMW',\n Matchbox = 'XMX',\n NotAvailable = 'XNA',\n UnpackedOrUnpackaged = 'XNE',\n UnpackedOrUnpackagedSingleUnit = 'XNF',\n UnpackedOrUnpackagedMultipleUnits = 'XNG',\n Nest = 'XNS',\n Net = 'XNT',\n NetTubePlastic = 'XNU',\n NetTubeTextile = 'XNV',\n TwoSidedCageOnWheelsWithFixingStrap = 'XO1',\n Trolley = 'XO2',\n OnewayPalletISO0HalfEUROPallet = 'XO3',\n OnewayPalletISO1OneEUROPallet = 'XO4',\n OnewayPalletISO2TwoEUROPallet = 'XO5',\n PalletWithExceptionalDimensions = 'XO6',\n WoodenPallet40cmX80cm = 'XO7',\n PlasticPalletSRS60cmX80cm = 'XO8',\n PlasticPalletSRS80cmX120cm = 'XO9',\n PalletCHEP40cmX60cm = 'XOA',\n PalletCHEP80cmX120cm = 'XOB',\n PalletCHEP100cmX120cm = 'XOC',\n PalletAS40681993 = 'XOD',\n PalletISOT11 = 'XOE',\n PlatformUnspecifiedWeightOrDimension = 'XOF',\n PalletISO0HalfEUROPallet = 'XOG',\n PalletISO1OneEUROPallet = 'XOH',\n PalletISO2TwoEUROPallet = 'XOI',\n OneQuarterEUROPallet = 'XOJ',\n Block = 'XOK',\n OneEighthEUROPallet = 'XOL',\n SyntheticPalletISO1 = 'XOM',\n SyntheticPalletISO2 = 'XON',\n WholesalerPallet = 'XOP',\n Pallet80X100cm = 'XOQ',\n Pallet60X100cm = 'XOR',\n OnewayPallet = 'XOS',\n Octabin = 'XOT',\n ContainerOuter = 'XOU',\n ReturnablePallet = 'XOV',\n LargeBagPalletSized = 'XOW',\n AWheeledPalletWithRaisedRim81x67x135 = 'XOX',\n AWheeledPalletWithRaisedRim81x72x135 = 'XOY',\n WheeledPalletWithRaisedRim81x60x16 = 'XOZ',\n CHEPPallet60cmX80cm = 'XP1',\n Pan = 'XP2',\n LPRPallet60cmX80cm = 'XP3',\n LPRPallet80cmX120cm = 'XP4',\n Packet = 'XPA',\n PalletBoxCombinedOpenEndedBoxAndPallet = 'XPB',\n Parcel = 'XPC',\n PalletModularCollar80cms100cms = 'XPD',\n PalletModularCollar80cms120cms = 'XPE',\n Pen = 'XPF',\n Plate = 'XPG',\n Pitcher = 'XPH',\n Pipe = 'XPI',\n Punnet = 'XPJ',\n Package = 'XPK',\n Pail = 'XPL',\n Plank = 'XPN',\n Pouch = 'XPO',\n Piece = 'XPP',\n ReceptaclePlastic = 'XPR',\n Pot = 'XPT',\n Tray = 'XPU',\n PipesInBundleBunchTruss = 'XPV',\n Pallet = 'XPX',\n PlatesInBundleBunchTruss = 'XPY',\n PlanksInBundleBunchTruss = 'XPZ',\n DrumSteelNonRemovableHead = 'XQA',\n DrumSteelRemovableHead = 'XQB',\n DrumAluminiumNonRemovableHead = 'XQC',\n DrumAluminiumRemovableHead = 'XQD',\n DrumPlasticNonRemovableHead = 'XQF',\n DrumPlasticRemovableHead = 'XQG',\n BarrelWoodenBungType = 'XQH',\n BarrelWoodenRemovableHead = 'XQJ',\n JerricanSteelNonRemovableHead = 'XQK',\n JerricanSteelRemovableHead = 'XQL',\n JerricanPlasticNonRemovableHead = 'XQM',\n JerricanPlasticRemovableHead = 'XQN',\n BoxWoodenNaturalWoodOrdinary = 'XQP',\n BoxWoodenNaturalWoodWithSiftProofWalls = 'XQQ',\n BoxPlasticExpanded = 'XQR',\n BoxPlasticSolid = 'XQS',\n Rod = 'XRD',\n Ring = 'XRG',\n RackClothingHanger = 'XRJ',\n Rack = 'XRK',\n Reel = 'XRL',\n Roll = 'XRO',\n Rednet = 'XRT',\n RodsInBundleBunchTruss = 'XRZ',\n Sack = 'XSA',\n Slab = 'XSB',\n CrateShallow = 'XSC',\n Spindle = 'XSD',\n SeaChest = 'XSE',\n Sachet = 'XSH',\n Skid = 'XSI',\n CaseSkeleton = 'XSK',\n Slipsheet = 'XSL',\n Sheetmetal = 'XSM',\n Spool = 'XSO',\n SheetPlasticWrapping = 'XSP',\n CaseSteel = 'XSS',\n Sheet = 'XST',\n Suitcase = 'XSU',\n EnvelopeSteel = 'XSV',\n Shrinkwrapped = 'XSW',\n Set = 'XSX',\n Sleeve = 'XSY',\n SheetsInBundleBunchTruss = 'XSZ',\n Tablet = 'XT1',\n Tub = 'XTB',\n TeaChest = 'XTC',\n TubeCollapsible = 'XTD',\n Tyre = 'XTE',\n TankContainerGeneric = 'XTG',\n Tierce = 'XTI',\n TankRectangular = 'XTK',\n TubWithLid = 'XTL',\n Tin = 'XTN',\n Tun = 'XTO',\n Trunk = 'XTR',\n Truss = 'XTS',\n BagTote = 'XTT',\n Tube = 'XTU',\n TubeWithNozzle = 'XTV',\n PalletTriwall = 'XTW',\n TankCylindrical = 'XTY',\n TubesInBundleBunchTruss = 'XTZ',\n Uncaged = 'XUC',\n Unit = 'XUN',\n Vat = 'XVA',\n BulkGasAt1031MbarAnd15C = 'XVG',\n Vial = 'XVI',\n Vanpack = 'XVK',\n BulkLiquid = 'XVL',\n Vehicle = 'XVN',\n BulkSolidLargeParticlesNodules = 'XVO',\n VacuumPacked = 'XVP',\n BulkLiquefiedGasAtAbnormalTemperaturePressure = 'XVQ',\n BulkSolidGranularParticlesGrains = 'XVR',\n BulkScrapMetal = 'XVS',\n BulkSolidFineParticlesPowders = 'XVY',\n IntermediateBulkContainer = 'XWA',\n Wickerbottle = 'XWB',\n IntermediateBulkContainerSteel = 'XWC',\n IntermediateBulkContainerAluminium = 'XWD',\n IntermediateBulkContainerMetal = 'XWF',\n IntermediateBulkContainerSteelPressurisedGreaterThan10Kpa = 'XWG',\n IntermediateBulkContainerAluminiumPressurisedGreaterThan10Kpa = 'XWH',\n IntermediateBulkContainerMetalPressure10Kpa = 'XWJ',\n IntermediateBulkContainerSteelLiquid = 'XWK',\n IntermediateBulkContainerAluminiumLiquid = 'XWL',\n IntermediateBulkContainerMetalLiquid = 'XWM',\n IntermediateBulkContainerWovenPlasticWithoutCoatLiner = 'XWN',\n IntermediateBulkContainerWovenPlasticCoated = 'XWP',\n IntermediateBulkContainerWovenPlasticWithLiner = 'XWQ',\n IntermediateBulkContainerWovenPlasticCoatedAndLiner = 'XWR',\n IntermediateBulkContainerPlasticFilm = 'XWS',\n IntermediateBulkContainerTextileWithOutCoatLiner = 'XWT',\n IntermediateBulkContainerNaturalWoodWithInnerLiner = 'XWU',\n IntermediateBulkContainerTextileCoated = 'XWV',\n IntermediateBulkContainerTextileWithLiner = 'XWW',\n IntermediateBulkContainerTextileCoatedAndLiner = 'XWX',\n IntermediateBulkContainerPlywoodWithInnerLiner = 'XWY',\n IntermediateBulkContainerReconstitutedWoodWithInnerLiner = 'XWZ',\n BagWovenPlasticWithoutInnerCoatLiner = 'XXA',\n BagWovenPlasticSiftProof = 'XXB',\n BagWovenPlasticWaterResistant = 'XXC',\n BagPlasticsFilm = 'XXD',\n BagTextileWithoutInnerCoatLiner = 'XXF',\n BagTextileSiftProof = 'XXG',\n BagTextileWaterResistant = 'XXH',\n BagPaperMultiWall = 'XXJ',\n BagPaperMultiWallWaterResistant = 'XXK',\n CompositePackagingPlasticReceptacleInSteelDrum = 'XYA',\n CompositePackagingPlasticReceptacleInSteelCrateBox = 'XYB',\n CompositePackagingPlasticReceptacleInAluminiumDrum = 'XYC',\n CompositePackagingPlasticReceptacleInAluminiumCrate = 'XYD',\n CompositePackagingPlasticReceptacleInWoodenBox = 'XYF',\n CompositePackagingPlasticReceptacleInPlywoodDrum = 'XYG',\n CompositePackagingPlasticReceptacleInPlywoodBox = 'XYH',\n CompositePackagingPlasticReceptacleInFibreDrum = 'XYJ',\n CompositePackagingPlasticReceptacleInFibreboardBox = 'XYK',\n CompositePackagingPlasticReceptacleInPlasticDrum = 'XYL',\n CompositePackagingPlasticReceptacleInSolidPlasticBox = 'XYM',\n CompositePackagingGlassReceptacleInSteelDrum = 'XYN',\n CompositePackagingGlassReceptacleInSteelCrateBox = 'XYP',\n CompositePackagingGlassReceptacleInAluminiumDrum = 'XYQ',\n CompositePackagingGlassReceptacleInAluminiumCrate = 'XYR',\n CompositePackagingGlassReceptacleInWoodenBox = 'XYS',\n CompositePackagingGlassReceptacleInPlywoodDrum = 'XYT',\n CompositePackagingGlassReceptacleInWickerworkHamper = 'XYV',\n CompositePackagingGlassReceptacleInFibreDrum = 'XYW',\n CompositePackagingGlassReceptacleInFibreboardBox = 'XYX',\n CompositePackagingGlassReceptacleInExpandablePlasticPack = 'XYY',\n CompositePackagingGlassReceptacleInSolidPlasticPack = 'XYZ',\n IntermediateBulkContainerPaperMultiWall = 'XZA',\n BagLarge = 'XZB',\n IntermediateBulkContainerPaperMultiWallWaterResistant = 'XZC',\n IntermediateBulkContainerRigidPlasticWithStructuralEquipmentSolids = 'XZD',\n IntermediateBulkContainerRigidPlasticFreestandingSolids = 'XZF',\n IntermediateBulkContainerRigidPlasticWithStructuralEquipmentPressurised = 'XZG',\n IntermediateBulkContainerRigidPlasticFreestandingPressurised = 'XZH',\n IntermediateBulkContainerRigidPlasticWithStructuralEquipmentLiquids = 'XZJ',\n IntermediateBulkContainerRigidPlasticFreestandingLiquids = 'XZK',\n IntermediateBulkContainerCompositeRigidPlasticSolids = 'XZL',\n IntermediateBulkContainerCompositeFlexiblePlasticSolids = 'XZM',\n IntermediateBulkContainerCompositeRigidPlasticPressurised = 'XZN',\n IntermediateBulkContainerCompositeFlexiblePlasticPressurised = 'XZP',\n IntermediateBulkContainerCompositeRigidPlasticLiquids = 'XZQ',\n IntermediateBulkContainerCompositeFlexiblePlasticLiquids = 'XZR',\n IntermediateBulkContainerComposite = 'XZS',\n IntermediateBulkContainerFibreboard = 'XZT',\n IntermediateBulkContainerFlexible = 'XZU',\n IntermediateBulkContainerMetalOtherThanSteel = 'XZV',\n IntermediateBulkContainerNaturalWood = 'XZW',\n IntermediateBulkContainerPlywood = 'XZX',\n IntermediateBulkContainerReconstitutedWood = 'XZY',\n MutuallyDefined = 'XZZ',\n}\n"],"mappings":";;;;;AAgaA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
|
1
|
+
{"version":3,"file":"index65.cjs","names":[],"sources":["../src/types/unit/PX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'P'.\n */\nexport type UnitTypeCode_PX =\n | 'P1'\n | 'P10'\n | 'P11'\n | 'P12'\n | 'P13'\n | 'P14'\n | 'P15'\n | 'P16'\n | 'P17'\n | 'P18'\n | 'P19'\n | 'P2'\n | 'P20'\n | 'P21'\n | 'P22'\n | 'P23'\n | 'P24'\n | 'P25'\n | 'P26'\n | 'P27'\n | 'P28'\n | 'P29'\n | 'P30'\n | 'P31'\n | 'P32'\n | 'P33'\n | 'P34'\n | 'P35'\n | 'P36'\n | 'P37'\n | 'P38'\n | 'P39'\n | 'P40'\n | 'P41'\n | 'P42'\n | 'P43'\n | 'P44'\n | 'P45'\n | 'P46'\n | 'P47'\n | 'P48'\n | 'P49'\n | 'P5'\n | 'P50'\n | 'P51'\n | 'P52'\n | 'P53'\n | 'P54'\n | 'P55'\n | 'P56'\n | 'P57'\n | 'P58'\n | 'P59'\n | 'P60'\n | 'P61'\n | 'P62'\n | 'P63'\n | 'P64'\n | 'P65'\n | 'P66'\n | 'P67'\n | 'P68'\n | 'P69'\n | 'P70'\n | 'P71'\n | 'P72'\n | 'P73'\n | 'P74'\n | 'P75'\n | 'P76'\n | 'P77'\n | 'P78'\n | 'P79'\n | 'P80'\n | 'P81'\n | 'P82'\n | 'P83'\n | 'P84'\n | 'P85'\n | 'P86'\n | 'P87'\n | 'P88'\n | 'P89'\n | 'P90'\n | 'P91'\n | 'P92'\n | 'P93'\n | 'P94'\n | 'P95'\n | 'P96'\n | 'P97'\n | 'P98'\n | 'P99'\n | 'PAL'\n | 'PD'\n | 'PFL'\n | 'PGL'\n | 'PI'\n | 'PLA'\n | 'PO'\n | 'PQ'\n | 'PR'\n | 'PS'\n | 'PTD'\n | 'PTI'\n | 'PTL'\n | 'PTN'\n\n/**\n * Enum representing unit type codes starting with 'P'.\n */\nexport enum UnitTypeCodeEnum_PX {\n Percent = 'P1',\n CoulombPerMetre = 'P10',\n Kiloweber = 'P11',\n Gamma = 'P12',\n Kilotesla = 'P13',\n JoulePerSecond = 'P14',\n JoulePerMinute = 'P15',\n JoulePerHour = 'P16',\n JoulePerDay = 'P17',\n KilojoulePerSecond = 'P18',\n KilojoulePerMinute = 'P19',\n PoundPerFoot = 'P2',\n KilojoulePerHour = 'P20',\n KilojoulePerDay = 'P21',\n Nanoohm = 'P22',\n OhmCircularMilPerFoot = 'P23',\n Kilohenry = 'P24',\n LumenPerSquareFoot = 'P25',\n Phot = 'P26',\n Footcandle = 'P27',\n CandelaPerSquareInch = 'P28',\n Footlambert = 'P29',\n Lambert = 'P30',\n Stilb = 'P31',\n CandelaPerSquareFoot = 'P32',\n Kilocandela = 'P33',\n Millicandela = 'P34',\n HefnerKerze = 'P35',\n InternationalCandle = 'P36',\n BritishThermalUnitInternationalTablePerSquareFoot = 'P37',\n BritishThermalUnitThermochemicalPerSquareFoot = 'P38',\n CalorieThermochemicalPerSquareCentimetre = 'P39',\n Langley = 'P40',\n DecadeLogarithmic = 'P41',\n PascalSquaredSecond = 'P42',\n BelPerMetre = 'P43',\n PoundMole = 'P44',\n PoundMolePerSecond = 'P45',\n PoundMolePerMinute = 'P46',\n KilomolePerKilogram = 'P47',\n PoundMolePerPound = 'P48',\n NewtonSquareMetrePerAmpere = 'P49',\n FivePack = 'P5',\n WeberMetre = 'P50',\n MolPerKilogramPascal = 'P51',\n MolPerCubicMetrePascal = 'P52',\n UnitPole = 'P53',\n MilligrayPerSecond = 'P54',\n MicrograyPerSecond = 'P55',\n NanograyPerSecond = 'P56',\n GrayPerMinute = 'P57',\n MilligrayPerMinute = 'P58',\n MicrograyPerMinute = 'P59',\n NanograyPerMinute = 'P60',\n GrayPerHour = 'P61',\n MilligrayPerHour = 'P62',\n MicrograyPerHour = 'P63',\n NanograyPerHour = 'P64',\n SievertPerSecond = 'P65',\n MillisievertPerSecond = 'P66',\n MicrosievertPerSecond = 'P67',\n NanosievertPerSecond = 'P68',\n RemPerSecond = 'P69',\n SievertPerHour = 'P70',\n MillisievertPerHour = 'P71',\n MicrosievertPerHour = 'P72',\n NanosievertPerHour = 'P73',\n SievertPerMinute = 'P74',\n MillisievertPerMinute = 'P75',\n MicrosievertPerMinute = 'P76',\n NanosievertPerMinute = 'P77',\n ReciprocalSquareInch = 'P78',\n PascalSquareMetrePerKilogram = 'P79',\n MillipascalPerMetre = 'P80',\n KilopascalPerMetre = 'P81',\n HectopascalPerMetre = 'P82',\n StandardAtmospherePerMetre = 'P83',\n TechnicalAtmospherePerMetre = 'P84',\n TorrPerMetre = 'P85',\n PsiPerInch = 'P86',\n CubicMetrePerSecondSquareMetre = 'P87',\n Rhe = 'P88',\n PoundForceFootPerInch = 'P89',\n PoundForceInchPerInch = 'P90',\n Perm0DegreesC = 'P91',\n Perm23DegreesC = 'P92',\n BytePerSecond = 'P93',\n KilobytePerSecond = 'P94',\n MegabytePerSecond = 'P95',\n ReciprocalVolt = 'P96',\n ReciprocalRadian = 'P97',\n PascalToThePowerSumOfStoichiometricNumbers = 'P98',\n MolePerCubivMetreToThePowerSumOfStoichiometricNumbers = 'P99',\n Pascal = 'PAL',\n Pad = 'PD',\n ProofLitre = 'PFL',\n ProofGallon = 'PGL',\n Pitch = 'PI',\n DegreePlato = 'PLA',\n PoundPerInchOfLength = 'PO',\n PagePerInch = 'PQ',\n Pair = 'PR',\n PoundForcePerSquareInch = 'PS',\n DryPintUS = 'PTD',\n PintUK = 'PTI',\n LiquidPintUS = 'PTL',\n Portion = 'PTN',\n}\n"],"mappings":";;;;;AAmHA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index66.cjs
CHANGED
|
@@ -1,15 +1,54 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/types/unit/
|
|
2
|
+
//#region src/types/unit/QX.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Enum representing unit type codes starting with '
|
|
4
|
+
* Enum representing unit type codes starting with 'Q'.
|
|
5
5
|
*/
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
let UnitTypeCodeEnum_QX = /* @__PURE__ */ function(UnitTypeCodeEnum_QX$1) {
|
|
7
|
+
UnitTypeCodeEnum_QX$1["JoulePerTesla"] = "Q10";
|
|
8
|
+
UnitTypeCodeEnum_QX$1["Erlang"] = "Q11";
|
|
9
|
+
UnitTypeCodeEnum_QX$1["Octet"] = "Q12";
|
|
10
|
+
UnitTypeCodeEnum_QX$1["OctetPerSecond"] = "Q13";
|
|
11
|
+
UnitTypeCodeEnum_QX$1["Shannon"] = "Q14";
|
|
12
|
+
UnitTypeCodeEnum_QX$1["Hartley"] = "Q15";
|
|
13
|
+
UnitTypeCodeEnum_QX$1["NaturalUnitOfInformation"] = "Q16";
|
|
14
|
+
UnitTypeCodeEnum_QX$1["ShannonPerSecond"] = "Q17";
|
|
15
|
+
UnitTypeCodeEnum_QX$1["HartleyPerSecond"] = "Q18";
|
|
16
|
+
UnitTypeCodeEnum_QX$1["NaturalUnitOfInformationPerSecond"] = "Q19";
|
|
17
|
+
UnitTypeCodeEnum_QX$1["SecondPerKilogram"] = "Q20";
|
|
18
|
+
UnitTypeCodeEnum_QX$1["WattSquareMetre"] = "Q21";
|
|
19
|
+
UnitTypeCodeEnum_QX$1["SecondPerRadianCubicMetre"] = "Q22";
|
|
20
|
+
UnitTypeCodeEnum_QX$1["ReciprocalWeber"] = "Q23";
|
|
21
|
+
UnitTypeCodeEnum_QX$1["ReciprocalInch"] = "Q24";
|
|
22
|
+
UnitTypeCodeEnum_QX$1["Dioptre"] = "Q25";
|
|
23
|
+
UnitTypeCodeEnum_QX$1["Ratio"] = "Q26";
|
|
24
|
+
UnitTypeCodeEnum_QX$1["NewtonMetrePerMetre"] = "Q27";
|
|
25
|
+
UnitTypeCodeEnum_QX$1["KilogramPerSquareMetrePascalSecond"] = "Q28";
|
|
26
|
+
UnitTypeCodeEnum_QX$1["MicrogramPerHectogram"] = "Q29";
|
|
27
|
+
UnitTypeCodeEnum_QX$1["Meal"] = "Q3";
|
|
28
|
+
UnitTypeCodeEnum_QX$1["PH"] = "Q30";
|
|
29
|
+
UnitTypeCodeEnum_QX$1["KilojoulePerGram"] = "Q31";
|
|
30
|
+
UnitTypeCodeEnum_QX$1["Femtolitre"] = "Q32";
|
|
31
|
+
UnitTypeCodeEnum_QX$1["Picolitre"] = "Q33";
|
|
32
|
+
UnitTypeCodeEnum_QX$1["Nanolitre"] = "Q34";
|
|
33
|
+
UnitTypeCodeEnum_QX$1["MegawattsPerMinute"] = "Q35";
|
|
34
|
+
UnitTypeCodeEnum_QX$1["SquareMetrePerCubicMetre"] = "Q36";
|
|
35
|
+
UnitTypeCodeEnum_QX$1["StandardCubicMetrePerDay"] = "Q37";
|
|
36
|
+
UnitTypeCodeEnum_QX$1["StandardCubicMetrePerHour"] = "Q38";
|
|
37
|
+
UnitTypeCodeEnum_QX$1["NormalizedCubicMetrePerDay"] = "Q39";
|
|
38
|
+
UnitTypeCodeEnum_QX$1["NormalizedCubicMetrePerHour"] = "Q40";
|
|
39
|
+
UnitTypeCodeEnum_QX$1["JoulePerNormalizedCubicMetre"] = "Q41";
|
|
40
|
+
UnitTypeCodeEnum_QX$1["JoulePerStandardCubicMetre"] = "Q42";
|
|
41
|
+
UnitTypeCodeEnum_QX$1["PageFacsimile"] = "QA";
|
|
42
|
+
UnitTypeCodeEnum_QX$1["QuarterYear"] = "QAN";
|
|
43
|
+
UnitTypeCodeEnum_QX$1["PageHardcopy"] = "QB";
|
|
44
|
+
UnitTypeCodeEnum_QX$1["Quire"] = "QR";
|
|
45
|
+
UnitTypeCodeEnum_QX$1["DryQuartUS"] = "QTD";
|
|
46
|
+
UnitTypeCodeEnum_QX$1["QuartUK"] = "QTI";
|
|
47
|
+
UnitTypeCodeEnum_QX$1["LiquidQuartUS"] = "QTL";
|
|
48
|
+
UnitTypeCodeEnum_QX$1["QuarterUK"] = "QTR";
|
|
49
|
+
return UnitTypeCodeEnum_QX$1;
|
|
11
50
|
}({});
|
|
12
51
|
|
|
13
52
|
//#endregion
|
|
14
|
-
exports.
|
|
53
|
+
exports.UnitTypeCodeEnum_QX = UnitTypeCodeEnum_QX;
|
|
15
54
|
//# sourceMappingURL=index66.cjs.map
|
package/dist/index66.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index66.cjs","names":[],"sources":["../src/types/unit/
|
|
1
|
+
{"version":3,"file":"index66.cjs","names":[],"sources":["../src/types/unit/QX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'Q'.\n */\nexport type UnitTypeCode_QX =\n | 'Q10'\n | 'Q11'\n | 'Q12'\n | 'Q13'\n | 'Q14'\n | 'Q15'\n | 'Q16'\n | 'Q17'\n | 'Q18'\n | 'Q19'\n | 'Q20'\n | 'Q21'\n | 'Q22'\n | 'Q23'\n | 'Q24'\n | 'Q25'\n | 'Q26'\n | 'Q27'\n | 'Q28'\n | 'Q29'\n | 'Q3'\n | 'Q30'\n | 'Q31'\n | 'Q32'\n | 'Q33'\n | 'Q34'\n | 'Q35'\n | 'Q36'\n | 'Q37'\n | 'Q38'\n | 'Q39'\n | 'Q40'\n | 'Q41'\n | 'Q42'\n | 'QA'\n | 'QAN'\n | 'QB'\n | 'QR'\n | 'QTD'\n | 'QTI'\n | 'QTL'\n | 'QTR'\n\n/**\n * Enum representing unit type codes starting with 'Q'.\n */\nexport enum UnitTypeCodeEnum_QX {\n JoulePerTesla = 'Q10',\n Erlang = 'Q11',\n Octet = 'Q12',\n OctetPerSecond = 'Q13',\n Shannon = 'Q14',\n Hartley = 'Q15',\n NaturalUnitOfInformation = 'Q16',\n ShannonPerSecond = 'Q17',\n HartleyPerSecond = 'Q18',\n NaturalUnitOfInformationPerSecond = 'Q19',\n SecondPerKilogram = 'Q20',\n WattSquareMetre = 'Q21',\n SecondPerRadianCubicMetre = 'Q22',\n ReciprocalWeber = 'Q23',\n ReciprocalInch = 'Q24',\n Dioptre = 'Q25',\n Ratio = 'Q26', // 1/1\n NewtonMetrePerMetre = 'Q27',\n KilogramPerSquareMetrePascalSecond = 'Q28',\n MicrogramPerHectogram = 'Q29',\n Meal = 'Q3',\n PH = 'Q30', // potential of Hydrogen\n KilojoulePerGram = 'Q31',\n Femtolitre = 'Q32',\n Picolitre = 'Q33',\n Nanolitre = 'Q34',\n MegawattsPerMinute = 'Q35',\n SquareMetrePerCubicMetre = 'Q36',\n StandardCubicMetrePerDay = 'Q37',\n StandardCubicMetrePerHour = 'Q38',\n NormalizedCubicMetrePerDay = 'Q39',\n NormalizedCubicMetrePerHour = 'Q40',\n JoulePerNormalizedCubicMetre = 'Q41',\n JoulePerStandardCubicMetre = 'Q42',\n PageFacsimile = 'QA',\n QuarterYear = 'QAN',\n PageHardcopy = 'QB',\n Quire = 'QR',\n DryQuartUS = 'QTD',\n QuartUK = 'QTI',\n LiquidQuartUS = 'QTL',\n QuarterUK = 'QTR', // Weight\n}\n"],"mappings":";;;;;AAkDA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index67.cjs
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/types/unit/
|
|
2
|
+
//#region src/types/unit/RX.d.ts
|
|
3
3
|
/**
|
|
4
|
-
* Enum representing unit type codes starting with '
|
|
4
|
+
* Enum representing unit type codes starting with 'R'.
|
|
5
5
|
*/
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
let UnitTypeCodeEnum_RX = /* @__PURE__ */ function(UnitTypeCodeEnum_RX$1) {
|
|
7
|
+
UnitTypeCodeEnum_RX$1["Pica"] = "R1";
|
|
8
|
+
UnitTypeCodeEnum_RX$1["ThousandCubicMetre"] = "R9";
|
|
9
|
+
UnitTypeCodeEnum_RX$1["OperatingHour"] = "RH";
|
|
10
|
+
UnitTypeCodeEnum_RX$1["Ream"] = "RM";
|
|
11
|
+
UnitTypeCodeEnum_RX$1["Room"] = "ROM";
|
|
12
|
+
UnitTypeCodeEnum_RX$1["PoundPerReam"] = "RP";
|
|
13
|
+
UnitTypeCodeEnum_RX$1["RevolutionsPerMinute"] = "RPM";
|
|
14
|
+
UnitTypeCodeEnum_RX$1["RevolutionsPerSecond"] = "RPS";
|
|
15
|
+
UnitTypeCodeEnum_RX$1["RevenueTonMile"] = "RT";
|
|
16
|
+
return UnitTypeCodeEnum_RX$1;
|
|
12
17
|
}({});
|
|
13
18
|
|
|
14
19
|
//#endregion
|
|
15
|
-
exports.
|
|
20
|
+
exports.UnitTypeCodeEnum_RX = UnitTypeCodeEnum_RX;
|
|
16
21
|
//# sourceMappingURL=index67.cjs.map
|
package/dist/index67.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index67.cjs","names":[],"sources":["../src/types/unit/
|
|
1
|
+
{"version":3,"file":"index67.cjs","names":[],"sources":["../src/types/unit/RX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'R'.\n */\nexport type UnitTypeCode_RX =\n | 'R1'\n | 'R9'\n | 'RH'\n | 'RM'\n | 'ROM'\n | 'RP'\n | 'RPM'\n | 'RPS'\n | 'RT'\n\n/**\n * Enum representing unit type codes starting with 'R'.\n */\nexport enum UnitTypeCodeEnum_RX {\n Pica = 'R1',\n ThousandCubicMetre = 'R9',\n OperatingHour = 'RH',\n Ream = 'RM',\n Room = 'ROM',\n PoundPerReam = 'RP',\n RevolutionsPerMinute = 'RPM',\n RevolutionsPerSecond = 'RPS',\n RevenueTonMile = 'RT',\n}\n"],"mappings":";;;;;AAiBA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index68.cjs
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
const require_apiQueue = require('./apiQueue-DgKWaQDS.cjs');
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region src/types/unit/SX.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing unit type codes starting with 'S'.
|
|
5
|
+
*/
|
|
6
|
+
let UnitTypeCodeEnum_SX = /* @__PURE__ */ function(UnitTypeCodeEnum_SX$1) {
|
|
7
|
+
UnitTypeCodeEnum_SX$1["SquareFootPerSecond"] = "S3";
|
|
8
|
+
UnitTypeCodeEnum_SX$1["SquareMetrePerSecond"] = "S4";
|
|
9
|
+
UnitTypeCodeEnum_SX$1["HalfYear"] = "SAN";
|
|
10
|
+
UnitTypeCodeEnum_SX$1["Score"] = "SCO";
|
|
11
|
+
UnitTypeCodeEnum_SX$1["Scruple"] = "SCR";
|
|
12
|
+
UnitTypeCodeEnum_SX$1["SecondTime"] = "SEC";
|
|
13
|
+
UnitTypeCodeEnum_SX$1["Set"] = "SET";
|
|
14
|
+
UnitTypeCodeEnum_SX$1["Segment"] = "SG";
|
|
15
|
+
UnitTypeCodeEnum_SX$1["Siemens"] = "SIE";
|
|
16
|
+
UnitTypeCodeEnum_SX$1["StandardCubicMetre"] = "SM3";
|
|
17
|
+
UnitTypeCodeEnum_SX$1["StatuteMile"] = "SMI";
|
|
18
|
+
UnitTypeCodeEnum_SX$1["Square"] = "SQ";
|
|
19
|
+
UnitTypeCodeEnum_SX$1["SquareRoofing"] = "SQR";
|
|
20
|
+
UnitTypeCodeEnum_SX$1["Strip"] = "SR";
|
|
21
|
+
UnitTypeCodeEnum_SX$1["Stick"] = "STC";
|
|
22
|
+
UnitTypeCodeEnum_SX$1["StoneUK"] = "STI";
|
|
23
|
+
UnitTypeCodeEnum_SX$1["StickCigarette"] = "STK";
|
|
24
|
+
UnitTypeCodeEnum_SX$1["StandardLitre"] = "STL";
|
|
25
|
+
UnitTypeCodeEnum_SX$1["ShortTon"] = "STN";
|
|
26
|
+
UnitTypeCodeEnum_SX$1["Straw"] = "STW";
|
|
27
|
+
UnitTypeCodeEnum_SX$1["Skein"] = "SW";
|
|
28
|
+
UnitTypeCodeEnum_SX$1["Shipment"] = "SX";
|
|
29
|
+
UnitTypeCodeEnum_SX$1["Syringe"] = "SYR";
|
|
30
|
+
return UnitTypeCodeEnum_SX$1;
|
|
31
|
+
}({});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.UnitTypeCodeEnum_SX = UnitTypeCodeEnum_SX;
|
|
35
|
+
//# sourceMappingURL=index68.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index68.cjs","names":[],"sources":["../src/types/unit/SX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'S'.\n */\nexport type UnitTypeCode_SX =\n | 'S3'\n | 'S4'\n | 'SAN'\n | 'SCO'\n | 'SCR'\n | 'SEC'\n | 'SET'\n | 'SG'\n | 'SIE'\n | 'SM3'\n | 'SMI'\n | 'SQ'\n | 'SQR'\n | 'SR'\n | 'STC'\n | 'STI'\n | 'STK'\n | 'STL'\n | 'STN'\n | 'STW'\n | 'SW'\n | 'SX'\n | 'SYR'\n\n/**\n * Enum representing unit type codes starting with 'S'.\n */\nexport enum UnitTypeCodeEnum_SX {\n SquareFootPerSecond = 'S3',\n SquareMetrePerSecond = 'S4',\n HalfYear = 'SAN', // 6 months\n Score = 'SCO',\n Scruple = 'SCR',\n SecondTime = 'SEC', // [unit of time]\n Set = 'SET',\n Segment = 'SG',\n Siemens = 'SIE',\n StandardCubicMetre = 'SM3',\n StatuteMile = 'SMI',\n Square = 'SQ',\n SquareRoofing = 'SQR',\n Strip = 'SR',\n Stick = 'STC',\n StoneUK = 'STI',\n StickCigarette = 'STK',\n StandardLitre = 'STL',\n ShortTon = 'STN', // ton (US) or short ton (UK/US)\n Straw = 'STW',\n Skein = 'SW',\n Shipment = 'SX',\n Syringe = 'SYR',\n}\n"],"mappings":";;;;;AA+BA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index69.cjs
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
1
|
|
|
2
|
-
//#region src/
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
function
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
//#region src/types/unit/TX.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing unit type codes starting with 'T'.
|
|
5
|
+
*/
|
|
6
|
+
let UnitTypeCodeEnum_TX = /* @__PURE__ */ function(UnitTypeCodeEnum_TX$1) {
|
|
7
|
+
UnitTypeCodeEnum_TX$1["TelecomLineInService"] = "T0";
|
|
8
|
+
UnitTypeCodeEnum_TX$1["ThousandPiece"] = "T3";
|
|
9
|
+
UnitTypeCodeEnum_TX$1["KiloampereHour"] = "TAH";
|
|
10
|
+
UnitTypeCodeEnum_TX$1["TotalAcidNumber"] = "TAN";
|
|
11
|
+
UnitTypeCodeEnum_TX$1["ThousandSquareInch"] = "TI";
|
|
12
|
+
UnitTypeCodeEnum_TX$1["MetricTonIncContainer"] = "TIC";
|
|
13
|
+
UnitTypeCodeEnum_TX$1["MetricTonIncInnerPack"] = "TIP";
|
|
14
|
+
UnitTypeCodeEnum_TX$1["TonneKilometre"] = "TKM";
|
|
15
|
+
UnitTypeCodeEnum_TX$1["KgImportedMeatLessOffal"] = "TMS";
|
|
16
|
+
UnitTypeCodeEnum_TX$1["Tonne"] = "TNE";
|
|
17
|
+
UnitTypeCodeEnum_TX$1["TenPack"] = "TP";
|
|
18
|
+
UnitTypeCodeEnum_TX$1["TeethPerInch"] = "TPI";
|
|
19
|
+
UnitTypeCodeEnum_TX$1["TenPair"] = "TPR";
|
|
20
|
+
UnitTypeCodeEnum_TX$1["ThousandCubicMetrePerDay"] = "TQD";
|
|
21
|
+
UnitTypeCodeEnum_TX$1["TrillionEUR"] = "TRL";
|
|
22
|
+
UnitTypeCodeEnum_TX$1["TenSet"] = "TST";
|
|
23
|
+
UnitTypeCodeEnum_TX$1["TenThousandSticks"] = "TTS";
|
|
24
|
+
return UnitTypeCodeEnum_TX$1;
|
|
25
|
+
}({});
|
|
9
26
|
|
|
10
27
|
//#endregion
|
|
11
|
-
exports.
|
|
12
|
-
exports.encodeToBase64 = encodeToBase64;
|
|
28
|
+
exports.UnitTypeCodeEnum_TX = UnitTypeCodeEnum_TX;
|
|
13
29
|
//# sourceMappingURL=index69.cjs.map
|
package/dist/index69.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index69.cjs","names":[
|
|
1
|
+
{"version":3,"file":"index69.cjs","names":[],"sources":["../src/types/unit/TX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'T'.\n */\nexport type UnitTypeCode_TX =\n | 'T0'\n | 'T3'\n | 'TAH'\n | 'TAN'\n | 'TI'\n | 'TIC'\n | 'TIP'\n | 'TKM'\n | 'TMS'\n | 'TNE'\n | 'TP'\n | 'TPI'\n | 'TPR'\n | 'TQD'\n | 'TRL'\n | 'TST'\n | 'TTS'\n\n/**\n * Enum representing unit type codes starting with 'T'.\n */\nexport enum UnitTypeCodeEnum_TX {\n TelecomLineInService = 'T0',\n ThousandPiece = 'T3',\n KiloampereHour = 'TAH',\n TotalAcidNumber = 'TAN',\n ThousandSquareInch = 'TI',\n MetricTonIncContainer = 'TIC',\n MetricTonIncInnerPack = 'TIP',\n TonneKilometre = 'TKM',\n KgImportedMeatLessOffal = 'TMS',\n Tonne = 'TNE',\n TenPack = 'TP',\n TeethPerInch = 'TPI',\n TenPair = 'TPR',\n ThousandCubicMetrePerDay = 'TQD',\n TrillionEUR = 'TRL',\n TenSet = 'TST',\n TenThousandSticks = 'TTS',\n}\n"],"mappings":";;;;;AAyBA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|
package/dist/index7.cjs
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
require('./formatIdValue-i67o4kyD.cjs');
|
|
2
|
+
const require_taxpayerValidation = require('./taxpayerValidation-D_jGaVty.cjs');
|
|
3
|
+
|
|
4
|
+
exports.taxpayerQRCode = require_taxpayerValidation.taxpayerQRCode;
|
|
5
|
+
exports.tinSearch = require_taxpayerValidation.tinSearch;
|
|
6
|
+
exports.verifyTin = require_taxpayerValidation.verifyTin;
|
package/dist/index70.cjs
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
|
-
const require_certificate = require('./certificate-CWmfCPdt.cjs');
|
|
2
1
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
//#region src/types/unit/UX.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing unit type codes starting with 'U'.
|
|
5
|
+
*/
|
|
6
|
+
let UnitTypeCodeEnum_UX = /* @__PURE__ */ function(UnitTypeCodeEnum_UX$1) {
|
|
7
|
+
UnitTypeCodeEnum_UX$1["Treatment"] = "U1";
|
|
8
|
+
UnitTypeCodeEnum_UX$1["Tablet"] = "U2";
|
|
9
|
+
UnitTypeCodeEnum_UX$1["TelecomLineInServiceAvg"] = "UB";
|
|
10
|
+
UnitTypeCodeEnum_UX$1["TelecomPort"] = "UC";
|
|
11
|
+
return UnitTypeCodeEnum_UX$1;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
exports.UnitTypeCodeEnum_UX = UnitTypeCodeEnum_UX;
|
|
16
|
+
//# sourceMappingURL=index70.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index70.cjs","names":[],"sources":["../src/types/unit/UX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'U'.\n */\nexport type UnitTypeCode_UX = 'U1' | 'U2' | 'UB' | 'UC'\n\n/**\n * Enum representing unit type codes starting with 'U'.\n */\nexport enum UnitTypeCodeEnum_UX {\n Treatment = 'U1',\n Tablet = 'U2',\n TelecomLineInServiceAvg = 'UB',\n TelecomPort = 'UC',\n}\n"],"mappings":";;;;;AAQA,IAAY,sEAAL;AACL;AACA;AACA;AACA;;AACD"}
|
package/dist/index71.cjs
CHANGED
|
@@ -1,22 +1,15 @@
|
|
|
1
|
-
require('./formatIdValue-i67o4kyD.cjs');
|
|
2
|
-
const require_document = require('./document-CCza2JPL.cjs');
|
|
3
1
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
exports.
|
|
17
|
-
|
|
18
|
-
exports.isFixedRateTax = require_document.isFixedRateTax;
|
|
19
|
-
exports.isPercentageTax = require_document.isPercentageTax;
|
|
20
|
-
exports.signDocumentString = require_document.signDocumentString;
|
|
21
|
-
exports.sortObjectKeys = require_document.sortObjectKeys;
|
|
22
|
-
exports.transformDocumentForHashing = require_document.transformDocumentForHashing;
|
|
2
|
+
//#region src/types/unit/VX.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing unit type codes starting with 'V'.
|
|
5
|
+
*/
|
|
6
|
+
let UnitTypeCodeEnum_VX = /* @__PURE__ */ function(UnitTypeCodeEnum_VX$1) {
|
|
7
|
+
UnitTypeCodeEnum_VX$1["VoltAmperePerKilogram"] = "VA";
|
|
8
|
+
UnitTypeCodeEnum_VX$1["Volt"] = "VLT";
|
|
9
|
+
UnitTypeCodeEnum_VX$1["PercentVolume"] = "VP";
|
|
10
|
+
return UnitTypeCodeEnum_VX$1;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.UnitTypeCodeEnum_VX = UnitTypeCodeEnum_VX;
|
|
15
|
+
//# sourceMappingURL=index71.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index71.cjs","names":[],"sources":["../src/types/unit/VX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'V'.\n */\nexport type UnitTypeCode_VX = 'VA' | 'VLT' | 'VP'\n\n/**\n * Enum representing unit type codes starting with 'V'.\n */\nexport enum UnitTypeCodeEnum_VX {\n VoltAmperePerKilogram = 'VA',\n Volt = 'VLT',\n PercentVolume = 'VP',\n}\n"],"mappings":";;;;;AAQA,IAAY,sEAAL;AACL;AACA;AACA;;AACD"}
|
package/dist/index71.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index71.cts","names":[],"sources":["../src/utils/document.d.ts"],"sourcesContent":["import { InvoiceSubmission, AllDocumentsV1_1, SigningCredentials, SignedPropertiesObject, UBLDocument, CompleteInvoice, SignedInfoObject, UnitTypeCode, InvoiceLineItem } from '../types';\nimport type { ClassificationCode } from '../types';\nimport type { TaxTypeCode } from '../types';\n/**\n * MyInvois v1.1 Document Generation and Signing Utilities\n * Strictly follows: https://sdk.myinvois.hasil.gov.my/documents/invoice-v1-1\n * JSON Signature Guide: https://sdk.myinvois.hasil.gov.my/signature-creation-json/\n */\n/**\n * Determines if a line item uses fixed rate taxation\n */\nexport declare const isFixedRateTax: (item: InvoiceLineItem) => boolean;\n/**\n * Determines if a line item uses percentage taxation\n */\nexport declare const isPercentageTax: (item: InvoiceLineItem) => boolean;\n/**\n * Calculates expected tax amount for a line item based on its tax type\n */\nexport declare const calculateExpectedTaxAmount: (item: InvoiceLineItem) => number;\n/**\n * Helper function to recursively sort object keys for JSON canonicalization\n */\nexport declare function sortObjectKeys(obj: unknown): unknown;\n/**\n * Enhanced canonicalization following MyInvois specification exactly\n * Key changes: ensure consistent ordering and formatting\n */\nexport declare const canonicalizeJSON: (obj: unknown) => string;\n/**\n * Generates a clean invoice object following MyInvois v1.1 specification exactly\n * This is the base invoice structure WITHOUT signature elements (for hash calculation)\n *\n * Key requirements from working documents:\n * - All mandatory fields must be present\n * - Many optional fields must be present even if empty\n * - Specific field ordering and structure\n * - Correct listID values (e.g., \"3166-1\" not \"ISO3166-1\")\n */\nexport declare const generateCleanInvoiceObject: (invoice: AllDocumentsV1_1) => InvoiceSubmission;\n/**\n * Generates the complete UBL document structure with namespace declarations\n */\nexport declare const generateCleanUBLDocument: (invoices: AllDocumentsV1_1[]) => UBLDocument;\n/**\n * Step 1: Transform the document for hashing or transmission\n * Removes UBLExtensions and Signature, and minifies the JSON\n * Returns the minified, cleaned JSON string\n *\n * FIXED: Use regex-based minification to match PowerShell script exactly\n */\nexport declare const transformDocumentForHashing: (invoices: AllDocumentsV1_1[]) => string;\n/**\n * Step 2: Calculate Document Digest\n * FIXED: Remove UBLExtensions and Signature before hashing (DS322)\n * Based on working implementation pattern\n */\nexport declare const calculateDocumentDigest: (invoices: AllDocumentsV1_1[]) => string;\n/**\n * Step 4: Calculate Certificate Digest\n * Enhanced to handle certificate content properly\n * FIXED: Match PowerShell script exactly - use raw certificate data like $cert.RawData\n */\nexport declare const calculateCertificateDigest: (certificatePem: string) => string;\n/**\n * Enhanced certificate info extraction with better error handling\n * FIXED: Normalize issuer name format to match MyInvois expectations (DS326)\n */\nexport declare const extractCertificateInfo: (certificatePem: string) => {\n issuerName: string;\n serialNumber: string;\n subjectName: string;\n};\n/**\n * Step 5: Create SignedProperties with enhanced structure\n * FIXED: Simplified structure to match MyInvois expectations (DS320)\n * Following MyInvois JSON signature specification exactly\n */\nexport declare const createSignedProperties: (certificateDigest: string, signingTime: string, issuerName: string, serialNumber: string) => SignedPropertiesObject;\n/**\n * Step 6: Calculate SignedProperties Digest\n * Calculates the digest over the correct structure for validator compliance.\n * FIXED: Calculate digest from SignedProperties only (without Target wrapper)\n */\nexport declare const calculateSignedPropertiesDigest: (signedProperties: SignedPropertiesObject, useTargetWrapper?: boolean) => string;\n/**\n * Step 3: Create SignedInfo and calculate signature\n * Enhanced with better structure and signature generation\n */\nexport declare const createSignedInfoAndSign: (docDigest: string, propsDigest: string, privateKeyPem: string) => {\n signedInfo: SignedInfoObject;\n signatureValue: string;\n};\n/**\n * Signs the minified document string using the provided private key PEM\n * Returns the signature as a base64 string\n * FIXED: Match PowerShell script exactly - first compute hash, then sign the hash\n */\nexport declare const signDocumentString: (documentString: string, privateKeyPem: string) => string;\n/**\n * Complete document generation with signatures\n * Follows the complete MyInvois JSON signature creation process (Steps 1-7)\n */\nexport declare const generateCompleteDocument: (invoices: AllDocumentsV1_1[], signingCredentials: SigningCredentials) => CompleteInvoice;\n/**\n * Creates a line item with percentage-based taxation (e.g., SST, GST)\n */\nexport declare const createPercentageTaxLineItem: (params: {\n itemClassificationCode: ClassificationCode;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: TaxTypeCode;\n taxRate: number;\n totalTaxableAmountPerLine?: number;\n discountAmount?: number;\n discountRate?: number;\n}) => InvoiceLineItem;\n/**\n * Creates a line item with fixed rate taxation (e.g., Tourism Tax)\n */\nexport declare const createFixedRateTaxLineItem: (params: {\n itemClassificationCode: ClassificationCode;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: TaxTypeCode;\n taxPerUnitAmount: number;\n baseUnitMeasure: number;\n baseUnitMeasureCode: UnitTypeCode;\n totalTaxableAmountPerLine?: number;\n discountAmount?: number;\n discountRate?: number;\n}) => InvoiceLineItem;\n/**\n * Calculates invoice totals from line items\n */\nexport declare const calculateInvoiceTotals: (lineItems: InvoiceLineItem[]) => {\n legalMonetaryTotal: {\n taxExclusiveAmount: number;\n taxInclusiveAmount: number;\n payableAmount: number;\n };\n taxTotal: {\n taxAmount: number;\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAE,iBAAA,CAAA,KAAA,MAAA,eAAA;AACF,IAAW,kBAAkB,CAAC,KAAK,MAAM,eAAgB;AACzD,IAAW,6BAA6B,CAAC,KAAK,MAAM,eAAgB;AACpE,IAAW,iBAAiB,CAAC,GAAI;AACjC,IAAE,mBAAA,CAAA,GAAA;AACF,IAAE,6BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,2BAA2B;CAAC;CAAK,MAAM;CAAE,MAAA;AAAA;AACpD,IAAE,8BAAA,CAAA,KAAA,MAAA,gBAAA;AACF,IAAW,0BAA0B,CAAC,KAAK,MAAM,gBAAiB;AAClE,IAAE,6BAAA,CAAA,GAAA;AACF,IAAW,yBAAyB,CAAC,GAAI;AACzC,IAAE,yBAAA,CAAA,KAAA,MAAA,sBAAA;AACF,IAAW,kCAAkC,CAAC,KAAK,MAAM,sBAAe;AACxE,IAAE,0BAAA,CAAA,KAAA,MAAA,gBAAA;AACF,IAAW,qBAAqB,CAAC,GAAI;AACrC,IAAE,2BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,8BAA8B;CAAC;CAAK,MAAM;CAAoB,MAAM;CAAG,MAAA;AAAA;AAClF,IAAE,6BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,yBAAyB,CAAC,KAAK,MAAM,eAAgB"}
|
|
1
|
+
{"version":3,"file":"index71.cts","names":[],"sources":["../src/utils/document.d.ts"],"sourcesContent":["import { InvoiceSubmission, AllDocumentsV1_1, SigningCredentials, SignedPropertiesObject, UBLDocument, CompleteInvoice, SignedInfoObject, UnitTypeCode, InvoiceLineItem } from '../types';\nimport type { ClassificationCode } from '../types';\nimport type { TaxTypeCode } from '../types';\n/**\n * MyInvois v1.1 Document Generation and Signing Utilities\n * Strictly follows: https://sdk.myinvois.hasil.gov.my/documents/invoice-v1-1\n * JSON Signature Guide: https://sdk.myinvois.hasil.gov.my/signature-creation-json/\n */\n/**\n * Determines if a line item uses fixed rate taxation\n */\nexport declare const isFixedRateTax: (item: InvoiceLineItem) => boolean;\n/**\n * Determines if a line item uses percentage taxation\n */\nexport declare const isPercentageTax: (item: InvoiceLineItem) => boolean;\n/**\n * Calculates expected tax amount for a line item based on its tax type\n */\nexport declare const calculateExpectedTaxAmount: (item: InvoiceLineItem) => number;\n/**\n * Helper function to recursively sort object keys for JSON canonicalization\n */\nexport declare function sortObjectKeys(obj: unknown): unknown;\n/**\n * Enhanced canonicalization following MyInvois specification exactly\n * Key changes: ensure consistent ordering and formatting\n */\nexport declare const canonicalizeJSON: (obj: unknown) => string;\n/**\n * Generates a clean invoice object following MyInvois v1.1 specification exactly\n * This is the base invoice structure WITHOUT signature elements (for hash calculation)\n *\n * Key requirements from working documents:\n * - All mandatory fields must be present\n * - Many optional fields must be present even if empty\n * - Specific field ordering and structure\n * - Correct listID values (e.g., \"3166-1\" not \"ISO3166-1\")\n */\nexport declare const generateCleanInvoiceObject: (invoice: AllDocumentsV1_1) => InvoiceSubmission;\n/**\n * Generates the complete UBL document structure with namespace declarations\n */\nexport declare const generateCleanUBLDocument: (invoices: AllDocumentsV1_1[]) => UBLDocument;\n/**\n * Step 1: Transform the document for hashing or transmission\n * Removes UBLExtensions and Signature, and minifies the JSON\n * Returns the minified, cleaned JSON string\n *\n * FIXED: Use regex-based minification to match PowerShell script exactly\n */\nexport declare const transformDocumentForHashing: (invoices: AllDocumentsV1_1[]) => string;\n/**\n * Step 2: Calculate Document Digest\n * FIXED: Remove UBLExtensions and Signature before hashing (DS322)\n * Based on working implementation pattern\n */\nexport declare const calculateDocumentDigest: (invoices: AllDocumentsV1_1[]) => string;\n/**\n * Step 4: Calculate Certificate Digest\n * Enhanced to handle certificate content properly\n * FIXED: Match PowerShell script exactly - use raw certificate data like $cert.RawData\n */\nexport declare const calculateCertificateDigest: (certificatePem: string) => string;\n/**\n * Enhanced certificate info extraction with better error handling\n * FIXED: Normalize issuer name format to match MyInvois expectations (DS326)\n */\nexport declare const extractCertificateInfo: (certificatePem: string) => {\n issuerName: string;\n serialNumber: string;\n subjectName: string;\n};\n/**\n * Step 5: Create SignedProperties with enhanced structure\n * FIXED: Simplified structure to match MyInvois expectations (DS320)\n * Following MyInvois JSON signature specification exactly\n */\nexport declare const createSignedProperties: (certificateDigest: string, signingTime: string, issuerName: string, serialNumber: string) => SignedPropertiesObject;\n/**\n * Step 6: Calculate SignedProperties Digest\n * Calculates the digest over the correct structure for validator compliance.\n * FIXED: Calculate digest from SignedProperties only (without Target wrapper)\n */\nexport declare const calculateSignedPropertiesDigest: (signedProperties: SignedPropertiesObject, useTargetWrapper?: boolean) => string;\n/**\n * Step 3: Create SignedInfo and calculate signature\n * Enhanced with better structure and signature generation\n */\nexport declare const createSignedInfoAndSign: (docDigest: string, propsDigest: string, privateKeyPem: string) => {\n signedInfo: SignedInfoObject;\n signatureValue: string;\n};\n/**\n * Signs the minified document string using the provided private key PEM\n * Returns the signature as a base64 string\n * FIXED: Match PowerShell script exactly - first compute hash, then sign the hash\n */\nexport declare const signDocumentString: (documentString: string, privateKeyPem: string) => string;\n/**\n * Complete document generation with signatures\n * Follows the complete MyInvois JSON signature creation process (Steps 1-7)\n */\nexport declare const generateCompleteDocument: (invoices: AllDocumentsV1_1[], signingCredentials: SigningCredentials) => CompleteInvoice;\n/**\n * Creates a line item with percentage-based taxation (e.g., SST, GST)\n */\nexport declare const createPercentageTaxLineItem: (params: {\n itemClassificationCode: ClassificationCode;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: TaxTypeCode;\n taxRate: number;\n totalTaxableAmountPerLine?: number;\n discountAmount?: number;\n discountRate?: number;\n}) => InvoiceLineItem;\n/**\n * Creates a line item with fixed rate taxation (e.g., Tourism Tax)\n */\nexport declare const createFixedRateTaxLineItem: (params: {\n itemClassificationCode: ClassificationCode;\n itemDescription: string;\n unitPrice: number;\n quantity?: number;\n taxType: TaxTypeCode;\n taxPerUnitAmount: number;\n baseUnitMeasure: number;\n baseUnitMeasureCode: UnitTypeCode;\n totalTaxableAmountPerLine?: number;\n discountAmount?: number;\n discountRate?: number;\n}) => InvoiceLineItem;\n/**\n * Calculates invoice totals from line items\n */\nexport declare const calculateInvoiceTotals: (lineItems: InvoiceLineItem[], payableRoundingAmount?: number) => {\n legalMonetaryTotal: {\n taxExclusiveAmount: number;\n taxInclusiveAmount: number;\n payableRoundingAmount: number;\n payableAmount: number;\n };\n taxTotal: {\n taxAmount: number;\n };\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAE,iBAAA,CAAA,KAAA,MAAA,eAAA;AACF,IAAW,kBAAkB,CAAC,KAAK,MAAM,eAAgB;AACzD,IAAW,6BAA6B,CAAC,KAAK,MAAM,eAAgB;AACpE,IAAW,iBAAiB,CAAC,GAAI;AACjC,IAAE,mBAAA,CAAA,GAAA;AACF,IAAE,6BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,2BAA2B;CAAC;CAAK,MAAM;CAAE,MAAA;AAAA;AACpD,IAAE,8BAAA,CAAA,KAAA,MAAA,gBAAA;AACF,IAAW,0BAA0B,CAAC,KAAK,MAAM,gBAAiB;AAClE,IAAE,6BAAA,CAAA,GAAA;AACF,IAAW,yBAAyB,CAAC,GAAI;AACzC,IAAE,yBAAA,CAAA,KAAA,MAAA,sBAAA;AACF,IAAW,kCAAkC,CAAC,KAAK,MAAM,sBAAe;AACxE,IAAE,0BAAA,CAAA,KAAA,MAAA,gBAAA;AACF,IAAW,qBAAqB,CAAC,GAAI;AACrC,IAAE,2BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,8BAA8B;CAAC;CAAK,MAAM;CAAoB,MAAM;CAAG,MAAA;AAAA;AAClF,IAAE,6BAAA;CAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;CAAA,MAAA;AAAA;AACF,IAAW,yBAAyB,CAAC,KAAK,MAAM,eAAgB"}
|
package/dist/index72.cjs
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
const require_formatIdValue = require('./formatIdValue-i67o4kyD.cjs');
|
|
2
1
|
|
|
3
|
-
|
|
2
|
+
//#region src/types/unit/WX.d.ts
|
|
3
|
+
/**
|
|
4
|
+
* Enum representing unit type codes starting with 'W'.
|
|
5
|
+
*/
|
|
6
|
+
let UnitTypeCodeEnum_WX = /* @__PURE__ */ function(UnitTypeCodeEnum_WX$1) {
|
|
7
|
+
UnitTypeCodeEnum_WX$1["WetKilo"] = "W2";
|
|
8
|
+
UnitTypeCodeEnum_WX$1["WattPerKilogram"] = "WA";
|
|
9
|
+
UnitTypeCodeEnum_WX$1["WetPound"] = "WB";
|
|
10
|
+
UnitTypeCodeEnum_WX$1["Cord"] = "WCD";
|
|
11
|
+
UnitTypeCodeEnum_WX$1["WetTon"] = "WE";
|
|
12
|
+
UnitTypeCodeEnum_WX$1["Weber"] = "WEB";
|
|
13
|
+
UnitTypeCodeEnum_WX$1["Week"] = "WEE";
|
|
14
|
+
UnitTypeCodeEnum_WX$1["WineGallon"] = "WG";
|
|
15
|
+
UnitTypeCodeEnum_WX$1["WattHour"] = "WHR";
|
|
16
|
+
UnitTypeCodeEnum_WX$1["WorkingMonth"] = "WM";
|
|
17
|
+
UnitTypeCodeEnum_WX$1["Standard"] = "WSD";
|
|
18
|
+
UnitTypeCodeEnum_WX$1["Watt"] = "WTT";
|
|
19
|
+
return UnitTypeCodeEnum_WX$1;
|
|
20
|
+
}({});
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.UnitTypeCodeEnum_WX = UnitTypeCodeEnum_WX;
|
|
24
|
+
//# sourceMappingURL=index72.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index72.cjs","names":[],"sources":["../src/types/unit/WX.d.ts"],"sourcesContent":["/**\n * Unit type codes starting with 'W'.\n */\nexport type UnitTypeCode_WX =\n | 'W2'\n | 'WA'\n | 'WB'\n | 'WCD'\n | 'WE'\n | 'WEB'\n | 'WEE'\n | 'WG'\n | 'WHR'\n | 'WM'\n | 'WSD'\n | 'WTT'\n\n/**\n * Enum representing unit type codes starting with 'W'.\n */\nexport enum UnitTypeCodeEnum_WX {\n WetKilo = 'W2',\n WattPerKilogram = 'WA',\n WetPound = 'WB',\n Cord = 'WCD',\n WetTon = 'WE',\n Weber = 'WEB',\n Week = 'WEE',\n WineGallon = 'WG',\n WattHour = 'WHR',\n WorkingMonth = 'WM',\n Standard = 'WSD',\n Watt = 'WTT',\n}\n"],"mappings":";;;;;AAoBA,IAAY,sEAAL;AACL;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AACD"}
|