@ripwords/myinvois-client 0.1.7 → 0.2.0
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 +89 -0
- package/dist/api/documentManagement.js +3 -0
- package/dist/api/documentSubmission.d.ts +92 -0
- package/dist/api/documentSubmission.js +4 -0
- package/dist/api/documentTypeManagement.d.ts +70 -0
- package/dist/api/documentTypeManagement.js +3 -0
- package/dist/api/notificationManagement.d.ts +68 -0
- package/dist/api/notificationManagement.js +3 -0
- package/dist/api/platformLogin.d.ts +68 -0
- package/dist/api/platformLogin.js +3 -0
- package/dist/api/taxpayerValidation.d.ts +79 -0
- package/dist/api/taxpayerValidation.js +3 -0
- package/dist/{certificate-DFK-788s.cjs → certificate-CxsfE91s.cjs} +1 -1
- package/dist/{certificate-DFK-788s.cjs.map → certificate-CxsfE91s.cjs.map} +1 -1
- package/dist/{document-CARHiGdp.cjs → document-vDphtJTv.cjs} +1 -1
- package/dist/{document-CARHiGdp.cjs.map → document-vDphtJTv.cjs.map} +1 -1
- package/dist/documentManagement-CIQPkmyb.js +35 -0
- package/dist/documentManagement-DQ7JEcBq.cjs +54 -0
- package/dist/documentManagement-DQ7JEcBq.cjs.map +1 -0
- package/dist/documentSubmission-BdJxIB_I.js +119 -0
- package/dist/documentSubmission-D5TC0MPC.cjs +137 -0
- package/dist/documentSubmission-D5TC0MPC.cjs.map +1 -0
- package/dist/documentTypeManagement-DXRLfTsW.cjs +41 -0
- package/dist/documentTypeManagement-DXRLfTsW.cjs.map +1 -0
- package/dist/documentTypeManagement-tojgXfm9.js +22 -0
- package/dist/{documents-i5EV868Y.d.ts → documents-BgXt86Qp.d.ts} +44 -7
- package/dist/{documents-CQy_uB6C.d.cts → documents-BqM9qOnB.d.cts} +39 -2
- package/dist/{getBaseUrl-CO7Jp27d.cjs → getBaseUrl-D2iJdUGL.cjs} +1 -1
- package/dist/{getBaseUrl-CO7Jp27d.cjs.map → getBaseUrl-D2iJdUGL.cjs.map} +1 -1
- package/dist/{index-D2_HVwCz.d.cts → index-Yr1QAbIF.d.cts} +1 -1
- package/dist/index.cjs +234 -131
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +250 -60
- package/dist/index.js +234 -131
- package/dist/index10.cjs +196 -0
- package/dist/index10.cjs.map +1 -0
- package/dist/index11.cjs +0 -34
- package/dist/index12.cjs +16 -15
- package/dist/index12.cjs.map +1 -1
- package/dist/index14.cjs +0 -13
- package/dist/index15.cjs +28 -3
- package/dist/index15.cjs.map +1 -0
- package/dist/index16.cjs +24 -12
- package/dist/index16.cjs.map +1 -0
- package/dist/index17.cjs +0 -3
- package/dist/index18.cjs +28 -334
- package/dist/index18.cjs.map +1 -1
- package/dist/index19.cjs +18 -323
- package/dist/index19.cjs.map +1 -1
- package/dist/index2.cjs +4 -61
- package/dist/index20.cjs +0 -140
- package/dist/index21.cjs +0 -3
- package/dist/index22.cjs +0 -208
- package/dist/index23.cjs +9 -105
- package/dist/index23.cjs.map +1 -1
- package/dist/index24.cjs +3 -136
- package/dist/index25.cjs +12 -63
- package/dist/index26.cjs +2 -266
- package/dist/index27.cjs +325 -75
- package/dist/index27.cjs.map +1 -1
- package/dist/index28.cjs +136 -103
- package/dist/index28.cjs.map +1 -1
- package/dist/index29.cjs +203 -68
- package/dist/index29.cjs.map +1 -1
- package/dist/index3.cjs +5 -531
- package/dist/index30.cjs +104 -107
- package/dist/index30.cjs.map +1 -1
- package/dist/index31.cjs +132 -95
- package/dist/index31.cjs.map +1 -1
- package/dist/index32.cjs +59 -13
- package/dist/index32.cjs.map +1 -1
- package/dist/index33.cjs +262 -33
- package/dist/index33.cjs.map +1 -1
- package/dist/index34.cjs +74 -14
- package/dist/index34.cjs.map +1 -1
- package/dist/index35.cjs +102 -24
- package/dist/index35.cjs.map +1 -1
- package/dist/index36.cjs +68 -15
- package/dist/index36.cjs.map +1 -1
- package/dist/index37.cjs +107 -9
- package/dist/index37.cjs.map +1 -1
- package/dist/index38.cjs +95 -9
- package/dist/index38.cjs.map +1 -1
- package/dist/index39.cjs +11 -10
- package/dist/index39.cjs.map +1 -1
- package/dist/index4.cjs +4 -195
- package/dist/index40.cjs +31 -6
- package/dist/index40.cjs.map +1 -1
- package/dist/index41.cjs +12 -101
- package/dist/index41.cjs.map +1 -1
- package/dist/index42.cjs +22 -106
- package/dist/index42.cjs.map +1 -1
- package/dist/index43.cjs +13 -119
- package/dist/index43.cjs.map +1 -1
- package/dist/index44.cjs +7 -106
- package/dist/index44.cjs.map +1 -1
- package/dist/index45.cjs +7 -98
- package/dist/index45.cjs.map +1 -1
- package/dist/index46.cjs +10 -118
- package/dist/index46.cjs.map +1 -1
- package/dist/index47.cjs +6 -127
- package/dist/index47.cjs.map +1 -1
- package/dist/index48.cjs +101 -117
- package/dist/index48.cjs.map +1 -1
- package/dist/index49.cjs +106 -14
- package/dist/index49.cjs.map +1 -1
- package/dist/index5.cjs +3 -0
- package/dist/index50.cjs +119 -95
- package/dist/index50.cjs.map +1 -1
- package/dist/index51.cjs +106 -142
- package/dist/index51.cjs.map +1 -1
- package/dist/index52.cjs +98 -114
- package/dist/index52.cjs.map +1 -1
- package/dist/index53.cjs +118 -144
- package/dist/index53.cjs.map +1 -1
- package/dist/index54.cjs +127 -113
- package/dist/index54.cjs.map +1 -1
- package/dist/index55.cjs +117 -17
- package/dist/index55.cjs.map +1 -1
- package/dist/index56.cjs +14 -112
- package/dist/index56.cjs.map +1 -1
- package/dist/index57.cjs +95 -47
- package/dist/index57.cjs.map +1 -1
- package/dist/index58.cjs +142 -14
- package/dist/index58.cjs.map +1 -1
- package/dist/index59.cjs +114 -28
- package/dist/index59.cjs.map +1 -1
- package/dist/index6.cjs +2 -24
- package/dist/index60.cjs +144 -22
- package/dist/index60.cjs.map +1 -1
- package/dist/index61.cjs +113 -9
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.cts.map +1 -1
- package/dist/index62.cjs +17 -8
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.cts.map +1 -1
- package/dist/index63.cjs +112 -17
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.cts.map +1 -1
- package/dist/index64.cjs +47 -412
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.cts.map +1 -1
- package/dist/index65.cjs +14 -8
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.cts.map +1 -1
- package/dist/index66.cjs +28 -9
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.cts.map +1 -1
- package/dist/index67.cjs +29 -0
- package/dist/index67.cjs.map +1 -0
- package/dist/index67.cts.map +1 -0
- package/dist/index68.cjs +16 -0
- package/dist/index68.cjs.map +1 -0
- package/dist/{index60.cts.map → index68.cts.map} +1 -1
- package/dist/index69.cjs +15 -0
- package/dist/index69.cjs.map +1 -0
- package/dist/index69.cts.map +1 -0
- package/dist/index7.cjs +5 -0
- package/dist/index70.cjs +24 -0
- package/dist/index70.cjs.map +1 -0
- package/dist/index70.cts.map +1 -0
- package/dist/index71.cjs +419 -0
- package/dist/index71.cjs.map +1 -0
- package/dist/index71.cts.map +1 -0
- package/dist/index72.cjs +15 -0
- package/dist/index72.cjs.map +1 -0
- package/dist/index72.cts.map +1 -0
- package/dist/index73.cjs +16 -0
- package/dist/index73.cjs.map +1 -0
- package/dist/index73.cts.map +1 -0
- package/dist/index8.cjs +62 -0
- package/dist/{index2.cjs.map → index8.cjs.map} +1 -1
- package/dist/index9.cjs +523 -16
- package/dist/index9.cjs.map +1 -1
- package/dist/{msic-codes-C8PJVOaA.d.ts → msic-codes-CiPeemFK.d.ts} +10 -10
- package/dist/notificationManagement-CHDRVy8J.js +19 -0
- package/dist/notificationManagement-C_qrFwWL.cjs +26 -0
- package/dist/notificationManagement-C_qrFwWL.cjs.map +1 -0
- package/dist/notifications-B4l_qRj7.d.ts +62 -0
- package/dist/notifications-DdlEkprb.d.cts +63 -0
- package/dist/{platformLogin-PGzMhw1X.cjs → platformLogin-CPiPiVUh.cjs} +2 -2
- package/dist/platformLogin-CPiPiVUh.cjs.map +1 -0
- package/dist/{platformLogin-f0bNAoZI.js → platformLogin-Ck1Fge2n.js} +1 -1
- package/dist/taxpayer-D67d2zAC.d.ts +26 -0
- package/dist/taxpayer-sGkviG8J.d.cts +27 -0
- package/dist/taxpayerValidation-DI4B6kWx.js +54 -0
- package/dist/taxpayerValidation-DdeXCvPT.cjs +73 -0
- package/dist/taxpayerValidation-DdeXCvPT.cjs.map +1 -0
- package/dist/types/classification-codes.d.ts +1 -1
- package/dist/types/country-code.d.ts +1 -1
- package/dist/types/currencies.d.ts +1 -1
- package/dist/types/documents.d.ts +18 -18
- package/dist/types/e-invoice.d.ts +1 -1
- package/dist/types/index.d.ts +61 -58
- package/dist/types/msic/0X.d.ts +1 -1
- package/dist/types/msic/1X.d.ts +1 -1
- package/dist/types/msic/2X.d.ts +1 -1
- package/dist/types/msic/3X.d.ts +1 -1
- package/dist/types/msic/4X.d.ts +1 -1
- package/dist/types/msic/5X.d.ts +1 -1
- package/dist/types/msic/6X.d.ts +1 -1
- package/dist/types/msic/7X.d.ts +1 -1
- package/dist/types/msic/8X.d.ts +1 -1
- package/dist/types/msic/9X.d.ts +1 -1
- package/dist/types/msic-codes.d.ts +11 -11
- package/dist/types/notifications.d.ts +2 -0
- package/dist/types/payment-modes.d.ts +1 -1
- package/dist/types/signatures.d.ts +1 -1
- package/dist/types/state-codes.d.ts +1 -1
- package/dist/types/tax-types.d.ts +1 -1
- package/dist/types/taxpayer.d.ts +19 -0
- package/dist/types/unit/1X.d.ts +1 -1
- package/dist/types/unit/2X.d.ts +1 -1
- package/dist/types/unit/3X.d.ts +1 -1
- package/dist/types/unit/4X.d.ts +1 -1
- package/dist/types/unit/5X.d.ts +1 -1
- package/dist/types/unit/6X.d.ts +1 -1
- package/dist/types/unit/7X.d.ts +1 -1
- package/dist/types/unit/8X.d.ts +1 -1
- package/dist/types/unit/9X.d.ts +1 -1
- package/dist/types/unit/AX.d.ts +1 -1
- package/dist/types/unit/BX.d.ts +1 -1
- package/dist/types/unit/CX.d.ts +1 -1
- package/dist/types/unit/DX.d.ts +1 -1
- package/dist/types/unit/EX.d.ts +1 -1
- package/dist/types/unit/FX.d.ts +1 -1
- package/dist/types/unit/GX.d.ts +1 -1
- package/dist/types/unit/HX.d.ts +1 -1
- package/dist/types/unit/IX.d.ts +1 -1
- package/dist/types/unit/JX.d.ts +1 -1
- package/dist/types/unit/KX.d.ts +1 -1
- package/dist/types/unit/LX.d.ts +1 -1
- package/dist/types/unit/MX.d.ts +1 -1
- package/dist/types/unit/NX.d.ts +1 -1
- package/dist/types/unit/OX.d.ts +1 -1
- package/dist/types/unit/PX.d.ts +1 -1
- package/dist/types/unit/QX.d.ts +1 -1
- package/dist/types/unit/RX.d.ts +1 -1
- package/dist/types/unit/SX.d.ts +1 -1
- package/dist/types/unit/TX.d.ts +1 -1
- package/dist/types/unit/UX.d.ts +1 -1
- package/dist/types/unit/VX.d.ts +1 -1
- package/dist/types/unit/WX.d.ts +1 -1
- package/dist/types/unit/XX.d.ts +1 -1
- package/dist/types/unit/YX.d.ts +1 -1
- package/dist/types/unit/ZX.d.ts +1 -1
- package/dist/types/unit-types.d.ts +36 -36
- package/dist/types/utils.d.ts +2 -0
- package/dist/unit-types-VgYXIwTT.d.ts +55 -0
- package/dist/utils/certificate.js +1 -1
- package/dist/utils/document.d.ts +60 -57
- package/dist/utils/document.js +1 -1
- package/dist/utils/getBaseUrl.js +1 -1
- package/dist/utils/signature-diagnostics.d.ts +60 -57
- package/dist/utils/signature-diagnostics.js +1 -1
- package/dist/utils-B3mo51Zp.d.ts +4 -0
- package/dist/utils-Cdqbbzca.d.cts +5 -0
- package/package.json +1 -1
- package/dist/api/platform/platformLogin.d.ts +0 -65
- package/dist/api/platform/platformLogin.js +0 -3
- package/dist/index11.cjs.map +0 -1
- package/dist/index14.cjs.map +0 -1
- package/dist/index20.cjs.map +0 -1
- package/dist/index22.cjs.map +0 -1
- package/dist/index24.cjs.map +0 -1
- package/dist/index25.cjs.map +0 -1
- package/dist/index26.cjs.map +0 -1
- package/dist/index3.cjs.map +0 -1
- package/dist/index4.cjs.map +0 -1
- package/dist/index58.cts.map +0 -1
- package/dist/index59.cts.map +0 -1
- package/dist/index6.cjs.map +0 -1
- package/dist/platformLogin-PGzMhw1X.cjs.map +0 -1
- package/dist/unit-types-B41YFOLT.d.ts +0 -55
- package/dist/utils/helpers.d.ts +0 -271
- package/dist/utils/helpers.js +0 -330
- /package/dist/{0X-CTIq3y3a.d.ts → 0X-DZnB0al0.d.ts} +0 -0
- /package/dist/{1X-BywXCqtn.d.ts → 1X-C72Wa4pk.d.ts} +0 -0
- /package/dist/{1X-Bu4oiv8D.d.ts → 1X-Dg5J6Bfg.d.ts} +0 -0
- /package/dist/{2X-3fSEGIuE.d.ts → 2X-CH89y3Af.d.ts} +0 -0
- /package/dist/{2X-DnG3FY1f.d.ts → 2X-D_qwTeDT.d.ts} +0 -0
- /package/dist/{3X-CLdmoel1.d.ts → 3X-BJHYxgxa.d.ts} +0 -0
- /package/dist/{3X-Ynjfgoll.d.ts → 3X-DryrwYRf.d.ts} +0 -0
- /package/dist/{4X-B5ePdMky.d.ts → 4X-BPMLRoDv.d.ts} +0 -0
- /package/dist/{4X-BTG6o1Gn.d.ts → 4X-BbZgoRHO.d.ts} +0 -0
- /package/dist/{5X-dhP6fyou.d.ts → 5X-Bv7M6KyG.d.ts} +0 -0
- /package/dist/{5X-CjSz1zxJ.d.ts → 5X-oQRBnO0f.d.ts} +0 -0
- /package/dist/{6X-B9KP_vEn.d.ts → 6X-B9I2XJa4.d.ts} +0 -0
- /package/dist/{6X-BHaY0TCf.d.ts → 6X-ZeZ8OB57.d.ts} +0 -0
- /package/dist/{7X-DtkQutx2.d.ts → 7X-Ckv9bbzG.d.ts} +0 -0
- /package/dist/{7X-C4eX_tAk.d.ts → 7X-Dvw2Z2VN.d.ts} +0 -0
- /package/dist/{8X-D6HTLShY.d.ts → 8X-BkgoX8dg.d.ts} +0 -0
- /package/dist/{8X-5n9seY3z.d.ts → 8X-C37BJTl6.d.ts} +0 -0
- /package/dist/{9X-CHZKsIdD.d.ts → 9X-Du0e44cq.d.ts} +0 -0
- /package/dist/{9X-Cpb6V4JC.d.ts → 9X-_XRgT2-_.d.ts} +0 -0
- /package/dist/{AX-C0w_r3PA.d.ts → AX-BSPLpkVT.d.ts} +0 -0
- /package/dist/{BX-RadlZ-6m.d.ts → BX-u4yMaIkz.d.ts} +0 -0
- /package/dist/{CX-CT1Zzb9D.d.ts → CX-BKZG0pVE.d.ts} +0 -0
- /package/dist/{DX-CtUeTKMM.d.ts → DX-CwA9WJAf.d.ts} +0 -0
- /package/dist/{EX-084Yu7Wt.d.ts → EX-BRNu1Ooi.d.ts} +0 -0
- /package/dist/{FX-BrbQM0CW.d.ts → FX-DBxjq6xY.d.ts} +0 -0
- /package/dist/{GX-gKj8iAAh.d.ts → GX-B3CvWNrP.d.ts} +0 -0
- /package/dist/{HX-9D-ZXTy5.d.ts → HX-D7FABgTv.d.ts} +0 -0
- /package/dist/{IX-DR4Fc92A.d.ts → IX-D3ZknsAB.d.ts} +0 -0
- /package/dist/{JX-DIKa9ma-.d.ts → JX-BRaZM3Gc.d.ts} +0 -0
- /package/dist/{KX-DpsJ_unT.d.ts → KX-B1K0OWoi.d.ts} +0 -0
- /package/dist/{LX-DeXPPWUX.d.ts → LX-CKRefinL.d.ts} +0 -0
- /package/dist/{MX-CKMjg_zK.d.ts → MX-DKmaeO9r.d.ts} +0 -0
- /package/dist/{NX-oYdb4NDo.d.ts → NX-CJL2Gn1U.d.ts} +0 -0
- /package/dist/{OX-Bid9es3D.d.ts → OX-Do2ap5v_.d.ts} +0 -0
- /package/dist/{PX-D7jy9CFk.d.ts → PX-_DOr_rm9.d.ts} +0 -0
- /package/dist/{QX-BFWOR4g3.d.ts → QX-HlXLkIki.d.ts} +0 -0
- /package/dist/{RX-XHgCyMV1.d.ts → RX-DVPGOVES.d.ts} +0 -0
- /package/dist/{SX-Cl8RN8oH.d.ts → SX-OGT3qwlS.d.ts} +0 -0
- /package/dist/{TX-ZymoIbtr.d.ts → TX-cPDINmZ5.d.ts} +0 -0
- /package/dist/{UX-D-Ndd1ov.d.ts → UX-Be3sqvPV.d.ts} +0 -0
- /package/dist/{VX-B-1b34r7.d.ts → VX-CoEuBNDK.d.ts} +0 -0
- /package/dist/{WX-0GuMjPNZ.d.ts → WX-DMvw__jH.d.ts} +0 -0
- /package/dist/{XX-CF2NANsy.d.ts → XX-DOA-10JW.d.ts} +0 -0
- /package/dist/{YX-B51BbNSg.d.ts → YX-F34sJ7Ik.d.ts} +0 -0
- /package/dist/{ZX-BMJS1iAv.d.ts → ZX-CDQOfsHh.d.ts} +0 -0
- /package/dist/{certificate-aooIRf9A.js → certificate-BDECQL9C.js} +0 -0
- /package/dist/{classification-codes-BKxV-rO9.d.ts → classification-codes-B1D5xbq5.d.ts} +0 -0
- /package/dist/{country-code-CQuaiQm2.d.ts → country-code-D42kAyNH.d.ts} +0 -0
- /package/dist/{currencies-BYJK-m6v.d.ts → currencies-CDveO_yz.d.ts} +0 -0
- /package/dist/{document-D6VKMAtx.js → document-BSuYbfXR.js} +0 -0
- /package/dist/{e-invoice-CmbLQkHw.d.ts → e-invoice-BxNC6V_j.d.ts} +0 -0
- /package/dist/{getBaseUrl-R3IdgCu3.js → getBaseUrl-BYkBwhQP.js} +0 -0
- /package/dist/{index-0-EvC6Nv.d.ts → index-FTgB2nM6.d.ts} +0 -0
- /package/dist/{payment-modes-BOTSRC_X.d.ts → payment-modes-NpE3OcCV.d.ts} +0 -0
- /package/dist/{signatures-W-_brwdb.d.ts → signatures-DOKNMiZI.d.ts} +0 -0
- /package/dist/{state-codes-oeFKlwXZ.d.ts → state-codes-VOFWhHA0.d.ts} +0 -0
- /package/dist/{tax-types-CsQ76JMf.d.ts → tax-types-ieqw5Ze7.d.ts} +0 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,60 +1,63 @@
|
|
|
1
|
-
import { Classification, ClassificationCode, ClassificationCodeEnum } from "./classification-codes-
|
|
2
|
-
import { Country, CountryCode, CountryCodeEnum, CountryNameEnum } from "./country-code-
|
|
3
|
-
import { Currency, CurrencyCode, CurrencyCodeEnum } from "./currencies-
|
|
4
|
-
import { EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum } from "./e-invoice-
|
|
5
|
-
import "./0X-
|
|
6
|
-
import "./1X-
|
|
7
|
-
import "./2X-
|
|
8
|
-
import "./3X-
|
|
9
|
-
import "./4X-
|
|
10
|
-
import "./5X-
|
|
11
|
-
import "./6X-
|
|
12
|
-
import "./7X-
|
|
13
|
-
import "./8X-
|
|
14
|
-
import "./9X-
|
|
15
|
-
import { MSICCode } from "./msic-codes-
|
|
16
|
-
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "./signatures-
|
|
17
|
-
import { TaxType, TaxTypeCode, TaxTypeCodeEnum } from "./tax-types-
|
|
18
|
-
import { Address, Buyer, CompleteInvoice, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, LegalMonetaryTotal, RegistrationType, ResponseDocument, SignedInfoObject, SignedInvoiceSubmission, SignedPropertiesData, SignedPropertiesObject, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, UBLDocument } from "./documents-
|
|
19
|
-
import { PaymentMode, PaymentModeCode, PaymentModeCodeEnum } from "./payment-modes-
|
|
20
|
-
import "./1X-
|
|
21
|
-
import "./2X-
|
|
22
|
-
import "./3X-
|
|
23
|
-
import "./4X-
|
|
24
|
-
import "./5X-
|
|
25
|
-
import "./6X-
|
|
26
|
-
import "./7X-
|
|
27
|
-
import "./8X-
|
|
28
|
-
import "./9X-
|
|
29
|
-
import "./AX-
|
|
30
|
-
import "./BX-
|
|
31
|
-
import "./CX-
|
|
32
|
-
import "./DX-
|
|
33
|
-
import "./EX-
|
|
34
|
-
import "./FX-
|
|
35
|
-
import "./GX-
|
|
36
|
-
import "./HX-
|
|
37
|
-
import "./IX-
|
|
38
|
-
import "./JX-
|
|
39
|
-
import "./KX-
|
|
40
|
-
import "./LX-
|
|
41
|
-
import "./MX-
|
|
42
|
-
import "./NX-
|
|
43
|
-
import "./OX-
|
|
44
|
-
import "./PX-
|
|
45
|
-
import "./QX-
|
|
46
|
-
import "./RX-
|
|
47
|
-
import "./SX-
|
|
48
|
-
import "./TX-
|
|
49
|
-
import "./UX-
|
|
50
|
-
import "./VX-
|
|
51
|
-
import "./WX-
|
|
52
|
-
import "./YX-
|
|
53
|
-
import "./ZX-
|
|
54
|
-
import "./XX-
|
|
55
|
-
import { UnitType, UnitTypeCode } from "./unit-types-
|
|
56
|
-
import { State, StateCode, StateCodeEnum } from "./state-codes-
|
|
57
|
-
import {
|
|
1
|
+
import { Classification, ClassificationCode, ClassificationCodeEnum } from "./classification-codes-B1D5xbq5.js";
|
|
2
|
+
import { Country, CountryCode, CountryCodeEnum, CountryNameEnum } from "./country-code-D42kAyNH.js";
|
|
3
|
+
import { Currency, CurrencyCode, CurrencyCodeEnum } from "./currencies-CDveO_yz.js";
|
|
4
|
+
import { EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum } from "./e-invoice-BxNC6V_j.js";
|
|
5
|
+
import "./0X-DZnB0al0.js";
|
|
6
|
+
import "./1X-Dg5J6Bfg.js";
|
|
7
|
+
import "./2X-D_qwTeDT.js";
|
|
8
|
+
import "./3X-BJHYxgxa.js";
|
|
9
|
+
import "./4X-BbZgoRHO.js";
|
|
10
|
+
import "./5X-oQRBnO0f.js";
|
|
11
|
+
import "./6X-B9I2XJa4.js";
|
|
12
|
+
import "./7X-Ckv9bbzG.js";
|
|
13
|
+
import "./8X-C37BJTl6.js";
|
|
14
|
+
import "./9X-_XRgT2-_.js";
|
|
15
|
+
import { MSICCode } from "./msic-codes-CiPeemFK.js";
|
|
16
|
+
import { CanonicalizationMethod, Cert, CertDigest, DigestMethod, IssuerDigitalSignature, IssuerSerial, KeyInfo, QualifyingProperties, Reference, SignatureMethod, SignedInfo, SignedProperties, SignedSignatureProperties, SigningCertificate, Transform, X509Data } from "./signatures-DOKNMiZI.js";
|
|
17
|
+
import { TaxType, TaxTypeCode, TaxTypeCodeEnum } from "./tax-types-ieqw5Ze7.js";
|
|
18
|
+
import { Address, Buyer, CompleteInvoice, DocumentStatus, DocumentSummary, DocumentTypeResponse, DocumentTypeVersion, DocumentTypeVersionResponse, DocumentTypesResponse, DocumentValidationResult, DocumentValidationStepResult, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, LegalMonetaryTotal, RegistrationType, ResponseDocument, SignedInfoObject, SignedInvoiceSubmission, SignedPropertiesData, SignedPropertiesObject, SigningCredentials, StandardError, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, UBLDocument, WorkflowParameter } from "./documents-BgXt86Qp.js";
|
|
19
|
+
import { PaymentMode, PaymentModeCode, PaymentModeCodeEnum } from "./payment-modes-NpE3OcCV.js";
|
|
20
|
+
import "./1X-C72Wa4pk.js";
|
|
21
|
+
import "./2X-CH89y3Af.js";
|
|
22
|
+
import "./3X-DryrwYRf.js";
|
|
23
|
+
import "./4X-BPMLRoDv.js";
|
|
24
|
+
import "./5X-Bv7M6KyG.js";
|
|
25
|
+
import "./6X-ZeZ8OB57.js";
|
|
26
|
+
import "./7X-Dvw2Z2VN.js";
|
|
27
|
+
import "./8X-BkgoX8dg.js";
|
|
28
|
+
import "./9X-Du0e44cq.js";
|
|
29
|
+
import "./AX-BSPLpkVT.js";
|
|
30
|
+
import "./BX-u4yMaIkz.js";
|
|
31
|
+
import "./CX-BKZG0pVE.js";
|
|
32
|
+
import "./DX-CwA9WJAf.js";
|
|
33
|
+
import "./EX-BRNu1Ooi.js";
|
|
34
|
+
import "./FX-DBxjq6xY.js";
|
|
35
|
+
import "./GX-B3CvWNrP.js";
|
|
36
|
+
import "./HX-D7FABgTv.js";
|
|
37
|
+
import "./IX-D3ZknsAB.js";
|
|
38
|
+
import "./JX-BRaZM3Gc.js";
|
|
39
|
+
import "./KX-B1K0OWoi.js";
|
|
40
|
+
import "./LX-CKRefinL.js";
|
|
41
|
+
import "./MX-DKmaeO9r.js";
|
|
42
|
+
import "./NX-CJL2Gn1U.js";
|
|
43
|
+
import "./OX-Do2ap5v_.js";
|
|
44
|
+
import "./PX-_DOr_rm9.js";
|
|
45
|
+
import "./QX-HlXLkIki.js";
|
|
46
|
+
import "./RX-DVPGOVES.js";
|
|
47
|
+
import "./SX-OGT3qwlS.js";
|
|
48
|
+
import "./TX-cPDINmZ5.js";
|
|
49
|
+
import "./UX-Be3sqvPV.js";
|
|
50
|
+
import "./VX-CoEuBNDK.js";
|
|
51
|
+
import "./WX-DMvw__jH.js";
|
|
52
|
+
import "./YX-F34sJ7Ik.js";
|
|
53
|
+
import "./ZX-CDQOfsHh.js";
|
|
54
|
+
import "./XX-DOA-10JW.js";
|
|
55
|
+
import { UnitType, UnitTypeCode } from "./unit-types-VgYXIwTT.js";
|
|
56
|
+
import { State, StateCode, StateCodeEnum } from "./state-codes-VOFWhHA0.js";
|
|
57
|
+
import { Notification, NotificationDeliveryAttempt, NotificationMetadata, NotificationResponse, NotificationSearchParams, NotificationStatus, NotificationStatusEnum, NotificationType, NotificationTypeEnum } from "./notifications-B4l_qRj7.js";
|
|
58
|
+
import { TaxpayerQRCodeResponse } from "./taxpayer-D67d2zAC.js";
|
|
59
|
+
import { Fetch } from "./utils-B3mo51Zp.js";
|
|
60
|
+
import { ClientCredentials, TokenResponse } from "./index-FTgB2nM6.js";
|
|
58
61
|
|
|
59
62
|
//#region src/index.d.ts
|
|
60
63
|
declare class MyInvoisClient {
|
|
@@ -73,10 +76,30 @@ declare class MyInvoisClient {
|
|
|
73
76
|
/**
|
|
74
77
|
* Validates a TIN against a NRIC/ARMY/PASSPORT/BRN (Business Registration Number)
|
|
75
78
|
*
|
|
79
|
+
* This method verifies if a given Tax Identification Number (TIN) is valid by checking it against
|
|
80
|
+
* the provided identification type and value through the MyInvois platform's validation service.
|
|
81
|
+
*
|
|
76
82
|
* @param tin - The TIN to validate
|
|
77
|
-
* @param idType - The type of ID to validate against
|
|
83
|
+
* @param idType - The type of ID to validate against ('NRIC', 'ARMY', 'PASSPORT', or 'BRN')
|
|
78
84
|
* @param idValue - The value of the ID to validate against
|
|
79
|
-
* @returns true if the TIN is valid, false otherwise
|
|
85
|
+
* @returns Promise resolving to true if the TIN is valid, false otherwise
|
|
86
|
+
*
|
|
87
|
+
* @example
|
|
88
|
+
* ```typescript
|
|
89
|
+
* // Validate TIN against NRIC
|
|
90
|
+
* const isValid = await client.verifyTin('C12345678901234', 'NRIC', '123456789012');
|
|
91
|
+
* if (isValid) {
|
|
92
|
+
* console.log('TIN is valid');
|
|
93
|
+
* }
|
|
94
|
+
*
|
|
95
|
+
* // Validate TIN against Business Registration Number
|
|
96
|
+
* const isValidBusiness = await client.verifyTin('C98765432109876', 'BRN', '123456-K');
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @remarks
|
|
100
|
+
* - Returns false if validation fails due to network errors or invalid credentials
|
|
101
|
+
* - Debug mode provides error logging for troubleshooting validation failures
|
|
102
|
+
* - This is a non-blocking validation that won't throw exceptions on failure
|
|
80
103
|
*/
|
|
81
104
|
verifyTin(tin: string, idType: RegistrationType, idValue: string): Promise<boolean>;
|
|
82
105
|
/**
|
|
@@ -116,6 +139,41 @@ declare class MyInvoisClient {
|
|
|
116
139
|
data: SubmissionResponse;
|
|
117
140
|
status: number;
|
|
118
141
|
}>;
|
|
142
|
+
/**
|
|
143
|
+
* Polls the MyInvois platform to get the current status of a document submission.
|
|
144
|
+
*
|
|
145
|
+
* This method continuously checks the submission status until it receives a final result
|
|
146
|
+
* (Valid or Invalid) or reaches the maximum retry limit. It's designed to handle the
|
|
147
|
+
* asynchronous nature of document processing on the MyInvois platform.
|
|
148
|
+
*
|
|
149
|
+
* @param submissionUid - The unique identifier of the submission to check
|
|
150
|
+
* @param pollInterval - Time in milliseconds between status checks (default: 1000ms)
|
|
151
|
+
* @param maxRetries - Maximum number of retry attempts (default: 10)
|
|
152
|
+
* @returns Promise resolving to submission status object with document summary and any errors
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```typescript
|
|
156
|
+
* // Check submission status with default polling
|
|
157
|
+
* const result = await client.getSubmissionStatus('submission-uid-123');
|
|
158
|
+
* if (result.status === 'Valid') {
|
|
159
|
+
* console.log('All documents processed successfully');
|
|
160
|
+
* console.log('Document summaries:', result.documentSummary);
|
|
161
|
+
* }
|
|
162
|
+
*
|
|
163
|
+
* // Custom polling interval and retry count
|
|
164
|
+
* const result = await client.getSubmissionStatus(
|
|
165
|
+
* 'submission-uid-123',
|
|
166
|
+
* 2000, // Poll every 2 seconds
|
|
167
|
+
* 20 // Try up to 20 times
|
|
168
|
+
* );
|
|
169
|
+
* ```
|
|
170
|
+
*
|
|
171
|
+
* @remarks
|
|
172
|
+
* - Automatically retries on network errors until maxRetries is reached
|
|
173
|
+
* - Returns 'Invalid' status with timeout error if submission processing takes too long
|
|
174
|
+
* - Debug mode provides detailed logging of polling attempts and responses
|
|
175
|
+
* - Use reasonable poll intervals to avoid overwhelming the API
|
|
176
|
+
*/
|
|
119
177
|
getSubmissionStatus(submissionUid: string, pollInterval?: number, maxRetries?: number): Promise<{
|
|
120
178
|
status: SubmissionStatus;
|
|
121
179
|
documentSummary?: DocumentSummary[];
|
|
@@ -228,6 +286,138 @@ declare class MyInvoisClient {
|
|
|
228
286
|
documentType?: EInvoiceTypeCode;
|
|
229
287
|
searchQuery?: string;
|
|
230
288
|
}): Promise<DocumentSummary[]>;
|
|
289
|
+
/**
|
|
290
|
+
* Retrieves notifications from the MyInvois platform based on specified search criteria.
|
|
291
|
+
*
|
|
292
|
+
* This method allows you to search for system notifications, alerts, and messages
|
|
293
|
+
* sent by the MyInvois platform regarding document processing, system updates,
|
|
294
|
+
* or account-related information.
|
|
295
|
+
*
|
|
296
|
+
* @param params - Search parameters object for filtering notifications
|
|
297
|
+
* @param params.dateFrom - Optional start date for notification date range (ISO date string)
|
|
298
|
+
* @param params.dateTo - Optional end date for notification date range (ISO date string)
|
|
299
|
+
* @param params.type - Optional notification type filter
|
|
300
|
+
* @param params.language - Optional language preference for notifications
|
|
301
|
+
* @param params.status - Optional notification status filter
|
|
302
|
+
* @param params.pageNo - Optional page number for pagination (0-based)
|
|
303
|
+
* @param params.pageSize - Optional number of results per page
|
|
304
|
+
* @returns Promise resolving to notification response object or standard error
|
|
305
|
+
*
|
|
306
|
+
* @example
|
|
307
|
+
* ```typescript
|
|
308
|
+
* // Get all notifications from the last 7 days
|
|
309
|
+
* const notifications = await client.getNotifications({
|
|
310
|
+
* dateFrom: '2024-01-01',
|
|
311
|
+
* dateTo: '2024-01-07',
|
|
312
|
+
* pageSize: 20
|
|
313
|
+
* });
|
|
314
|
+
*
|
|
315
|
+
* // Get unread notifications only
|
|
316
|
+
* const unreadNotifications = await client.getNotifications({
|
|
317
|
+
* status: 0, // Assuming 0 = unread
|
|
318
|
+
* language: 'en'
|
|
319
|
+
* });
|
|
320
|
+
*
|
|
321
|
+
* // Paginated notification retrieval
|
|
322
|
+
* const firstPage = await client.getNotifications({
|
|
323
|
+
* dateFrom: '2024-01-01',
|
|
324
|
+
* pageNo: 0,
|
|
325
|
+
* pageSize: 10
|
|
326
|
+
* });
|
|
327
|
+
* ```
|
|
328
|
+
*
|
|
329
|
+
* @remarks
|
|
330
|
+
* - All parameters are optional, allowing flexible filtering
|
|
331
|
+
* - Returns paginated results when pageNo and pageSize are specified
|
|
332
|
+
* - Date parameters should be in ISO format (YYYY-MM-DD)
|
|
333
|
+
* - May return StandardError object if the request fails
|
|
334
|
+
*/
|
|
335
|
+
getNotifications({
|
|
336
|
+
dateFrom,
|
|
337
|
+
dateTo,
|
|
338
|
+
type,
|
|
339
|
+
language,
|
|
340
|
+
status,
|
|
341
|
+
pageNo,
|
|
342
|
+
pageSize
|
|
343
|
+
}: NotificationSearchParams): Promise<NotificationResponse | StandardError>;
|
|
344
|
+
getDocumentTypes(): Promise<DocumentTypesResponse | StandardError>;
|
|
345
|
+
/**
|
|
346
|
+
* Retrieves detailed information about a specific document type from the MyInvois platform.
|
|
347
|
+
*
|
|
348
|
+
* This method fetches metadata and configuration details for a specific document type,
|
|
349
|
+
* including supported versions, validation rules, and structural requirements.
|
|
350
|
+
* Useful for understanding document format requirements before submission.
|
|
351
|
+
*
|
|
352
|
+
* @param id - The unique identifier of the document type to retrieve
|
|
353
|
+
* @returns Promise resolving to document type response object or standard error
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* ```typescript
|
|
357
|
+
* // Get details for e-invoice document type
|
|
358
|
+
* const invoiceType = await client.getDocumentType(1);
|
|
359
|
+
* if ('id' in invoiceType) {
|
|
360
|
+
* console.log('Document type name:', invoiceType.name);
|
|
361
|
+
* console.log('Available versions:', invoiceType.versionNumber);
|
|
362
|
+
* console.log('Description:', invoiceType.description);
|
|
363
|
+
* }
|
|
364
|
+
*
|
|
365
|
+
* // Handle potential errors
|
|
366
|
+
* const documentType = await client.getDocumentType(999);
|
|
367
|
+
* if ('error' in documentType) {
|
|
368
|
+
* console.error('Failed to retrieve document type:', documentType.error.message);
|
|
369
|
+
* }
|
|
370
|
+
* ```
|
|
371
|
+
*
|
|
372
|
+
* @remarks
|
|
373
|
+
* - Returns StandardError object if the document type ID doesn't exist
|
|
374
|
+
* - Document type information includes validation schemas and business rules
|
|
375
|
+
* - Use this method to discover supported document formats and versions
|
|
376
|
+
* - Essential for understanding submission requirements for different document types
|
|
377
|
+
*/
|
|
378
|
+
getDocumentType(id: number): Promise<DocumentTypeResponse | StandardError>;
|
|
379
|
+
/**
|
|
380
|
+
* Retrieves detailed information about a specific version of a document type.
|
|
381
|
+
*
|
|
382
|
+
* This method fetches version-specific metadata, schema definitions, and validation rules
|
|
383
|
+
* for a particular document type version. Essential for understanding the exact format
|
|
384
|
+
* and requirements for document submission in a specific version.
|
|
385
|
+
*
|
|
386
|
+
* @param id - The unique identifier of the document type
|
|
387
|
+
* @param versionId - The unique identifier of the specific version to retrieve
|
|
388
|
+
* @returns Promise resolving to document type version response object or standard error
|
|
389
|
+
*
|
|
390
|
+
* @example
|
|
391
|
+
* ```typescript
|
|
392
|
+
* // Get specific version details for e-invoice
|
|
393
|
+
* const invoiceV1_1 = await client.getDocumentTypeVersion(1, 1);
|
|
394
|
+
* if ('id' in invoiceV1_1) {
|
|
395
|
+
* console.log('Version number:', invoiceV1_1.versionNumber);
|
|
396
|
+
* console.log('Schema:', invoiceV1_1.jsonSchema);
|
|
397
|
+
* console.log('Status:', invoiceV1_1.status);
|
|
398
|
+
* }
|
|
399
|
+
*
|
|
400
|
+
* // Compare different versions
|
|
401
|
+
* const [v1_0, v1_1] = await Promise.all([
|
|
402
|
+
* client.getDocumentTypeVersion(1, 0),
|
|
403
|
+
* client.getDocumentTypeVersion(1, 1)
|
|
404
|
+
* ]);
|
|
405
|
+
*
|
|
406
|
+
* // Handle version not found
|
|
407
|
+
* const result = await client.getDocumentTypeVersion(1, 999);
|
|
408
|
+
* if ('error' in result) {
|
|
409
|
+
* console.error('Version not found:', result.error.message);
|
|
410
|
+
* }
|
|
411
|
+
* ```
|
|
412
|
+
*
|
|
413
|
+
* @remarks
|
|
414
|
+
* - Returns StandardError object if document type ID or version ID doesn't exist
|
|
415
|
+
* - Version information includes JSON schema for validation
|
|
416
|
+
* - Different versions may have different validation rules and field requirements
|
|
417
|
+
* - Use this to ensure your documents conform to the specific version requirements
|
|
418
|
+
* - Version status indicates if the version is active, deprecated, or under development
|
|
419
|
+
*/
|
|
420
|
+
getDocumentTypeVersion(id: number, versionId: number): Promise<DocumentTypeVersionResponse | StandardError>;
|
|
231
421
|
}
|
|
232
422
|
//#endregion
|
|
233
|
-
export { Address, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, ClientCredentials, CompleteInvoice, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, DigestMethod, DocumentStatus, DocumentSummary, DocumentValidationResult, DocumentValidationStepResult, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, MyInvoisClient, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, RegistrationType, ResponseDocument, SignatureMethod, SignedInfo, SignedInfoObject, SignedInvoiceSubmission, SignedProperties, SignedPropertiesData, SignedPropertiesObject, SignedSignatureProperties, SigningCertificate, SigningCredentials, StandardError, State, StateCode, StateCodeEnum, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, TokenResponse, Transform, UBLDocument, UnitType, UnitTypeCode, X509Data };
|
|
423
|
+
export { Address, Buyer, CanonicalizationMethod, Cert, CertDigest, Classification, ClassificationCode, ClassificationCodeEnum, ClientCredentials, CompleteInvoice, Country, CountryCode, CountryCodeEnum, CountryNameEnum, Currency, CurrencyCode, CurrencyCodeEnum, DigestMethod, DocumentStatus, DocumentSummary, DocumentTypeResponse, DocumentTypeVersion, DocumentTypeVersionResponse, DocumentTypesResponse, DocumentValidationResult, DocumentValidationStepResult, EInvoiceType, EInvoiceTypeCode, EInvoiceTypeCodeEnum, Fetch, FinalDocumentData, GetSubmissionResponse, InvoiceLineItem, InvoiceSubmission, InvoiceV1_1, IssuerDigitalSignature, IssuerSerial, KeyInfo, LegalMonetaryTotal, MSICCode, MyInvoisClient, Notification, NotificationDeliveryAttempt, NotificationMetadata, NotificationResponse, NotificationSearchParams, NotificationStatus, NotificationStatusEnum, NotificationType, NotificationTypeEnum, PaymentMode, PaymentModeCode, PaymentModeCodeEnum, QualifyingProperties, Reference, RegistrationType, ResponseDocument, SignatureMethod, SignedInfo, SignedInfoObject, SignedInvoiceSubmission, SignedProperties, SignedPropertiesData, SignedPropertiesObject, SignedSignatureProperties, SigningCertificate, SigningCredentials, StandardError, State, StateCode, StateCodeEnum, SubmissionResponse, SubmissionStatus, Supplier, TaxCategory, TaxSubtotal, TaxTotal, TaxType, TaxTypeCode, TaxTypeCodeEnum, TaxpayerQRCodeResponse, TokenResponse, Transform, UBLDocument, UnitType, UnitTypeCode, WorkflowParameter, X509Data };
|