@commercelayer/sdk 7.8.0 → 7.10.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/lib/api-C56k_eNN.d.cts +18274 -0
- package/lib/api-fR7vDjer.d.ts +18274 -0
- package/lib/api.cjs +271 -271
- package/lib/api.d.cts +2 -2
- package/lib/api.d.ts +2 -2
- package/lib/api.js +139 -139
- package/lib/bundle.cjs +274 -274
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +3 -3
- package/lib/bundle.d.ts +3 -3
- package/lib/bundle.js +140 -140
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-22RVT2J2.js +20 -0
- package/lib/chunk-22RVT2J2.js.map +1 -0
- package/lib/chunk-22YZMDGS.js +73 -0
- package/lib/chunk-22YZMDGS.js.map +1 -0
- package/lib/chunk-24DYX22L.cjs +34 -0
- package/lib/chunk-24DYX22L.cjs.map +1 -0
- package/lib/chunk-25LV6XNE.js +57 -0
- package/lib/chunk-25LV6XNE.js.map +1 -0
- package/lib/chunk-25SYMOHP.js +63 -0
- package/lib/chunk-25SYMOHP.js.map +1 -0
- package/lib/chunk-26IU3VMW.cjs +73 -0
- package/lib/chunk-26IU3VMW.cjs.map +1 -0
- package/lib/chunk-2COD7SFI.js +24 -0
- package/lib/chunk-2COD7SFI.js.map +1 -0
- package/lib/chunk-2D7XHAVQ.js +59 -0
- package/lib/chunk-2D7XHAVQ.js.map +1 -0
- package/lib/chunk-2TD56UNA.js +97 -0
- package/lib/chunk-2TD56UNA.js.map +1 -0
- package/lib/chunk-2UBHGJAR.cjs +30 -0
- package/lib/chunk-2UBHGJAR.cjs.map +1 -0
- package/lib/chunk-353DTUT5.js +56 -0
- package/lib/chunk-353DTUT5.js.map +1 -0
- package/lib/chunk-3AQSJH4T.js +53 -0
- package/lib/chunk-3AQSJH4T.js.map +1 -0
- package/lib/chunk-3CYUKNAO.js +48 -0
- package/lib/chunk-3CYUKNAO.js.map +1 -0
- package/lib/chunk-3F4JHN42.cjs +72 -0
- package/lib/chunk-3F4JHN42.cjs.map +1 -0
- package/lib/chunk-3GOADUES.cjs +63 -0
- package/lib/chunk-3GOADUES.cjs.map +1 -0
- package/lib/chunk-3KCHHQTI.js +97 -0
- package/lib/chunk-3KCHHQTI.js.map +1 -0
- package/lib/chunk-3QSWUE22.cjs +43 -0
- package/lib/chunk-3QSWUE22.cjs.map +1 -0
- package/lib/chunk-3R5E4QEL.cjs +57 -0
- package/lib/chunk-3R5E4QEL.cjs.map +1 -0
- package/lib/chunk-3XPKZ3WM.js +77 -0
- package/lib/chunk-3XPKZ3WM.js.map +1 -0
- package/lib/chunk-42TXSEGY.js +53 -0
- package/lib/chunk-42TXSEGY.js.map +1 -0
- package/lib/chunk-42VXKVD6.js +53 -0
- package/lib/chunk-42VXKVD6.js.map +1 -0
- package/lib/chunk-4KIM2UAJ.cjs +72 -0
- package/lib/chunk-4KIM2UAJ.cjs.map +1 -0
- package/lib/chunk-4KPMQG57.js +49 -0
- package/lib/chunk-4KPMQG57.js.map +1 -0
- package/lib/chunk-4MV6VICV.js +35 -0
- package/lib/chunk-4MV6VICV.js.map +1 -0
- package/lib/chunk-4QMCNTO4.js +44 -0
- package/lib/chunk-4QMCNTO4.js.map +1 -0
- package/lib/chunk-4W5EFFJ5.js +48 -0
- package/lib/chunk-4W5EFFJ5.js.map +1 -0
- package/lib/chunk-4WQKP2HI.js +44 -0
- package/lib/chunk-4WQKP2HI.js.map +1 -0
- package/lib/chunk-4YEJFKWN.cjs +55 -0
- package/lib/chunk-4YEJFKWN.cjs.map +1 -0
- package/lib/chunk-4YS4H4WH.cjs +54 -0
- package/lib/chunk-4YS4H4WH.cjs.map +1 -0
- package/lib/chunk-52L77NN2.js +59 -0
- package/lib/chunk-52L77NN2.js.map +1 -0
- package/lib/chunk-53R4X7QD.js +49 -0
- package/lib/chunk-53R4X7QD.js.map +1 -0
- package/lib/chunk-54765SFP.js +55 -0
- package/lib/chunk-54765SFP.js.map +1 -0
- package/lib/chunk-56DPVYQJ.js +41 -0
- package/lib/chunk-56DPVYQJ.js.map +1 -0
- package/lib/chunk-57EVDZVF.js +63 -0
- package/lib/chunk-57EVDZVF.js.map +1 -0
- package/lib/chunk-5CXQ67TT.js +53 -0
- package/lib/chunk-5CXQ67TT.js.map +1 -0
- package/lib/chunk-5FZ57V3M.cjs +93 -0
- package/lib/chunk-5FZ57V3M.cjs.map +1 -0
- package/lib/chunk-5NX7MHXP.cjs +51 -0
- package/lib/chunk-5NX7MHXP.cjs.map +1 -0
- package/lib/chunk-5QA264ZF.cjs +74 -0
- package/lib/chunk-5QA264ZF.cjs.map +1 -0
- package/lib/chunk-5QFZLLE2.js +37 -0
- package/lib/chunk-5QFZLLE2.js.map +1 -0
- package/lib/chunk-5T44TAQU.cjs +130 -0
- package/lib/chunk-5T44TAQU.cjs.map +1 -0
- package/lib/chunk-5UPTFJAY.cjs +51 -0
- package/lib/chunk-5UPTFJAY.cjs.map +1 -0
- package/lib/chunk-5WLMMRAX.js +93 -0
- package/lib/chunk-5WLMMRAX.js.map +1 -0
- package/lib/chunk-5Z47LT7L.js +53 -0
- package/lib/chunk-5Z47LT7L.js.map +1 -0
- package/lib/chunk-5ZWOLVB6.js +128 -0
- package/lib/chunk-5ZWOLVB6.js.map +1 -0
- package/lib/chunk-65QUR5IL.js +97 -0
- package/lib/chunk-65QUR5IL.js.map +1 -0
- package/lib/chunk-66BQF7RB.cjs +61 -0
- package/lib/chunk-66BQF7RB.cjs.map +1 -0
- package/lib/chunk-6ES3UMTH.cjs +286 -0
- package/lib/chunk-6ES3UMTH.cjs.map +1 -0
- package/lib/chunk-6EY5MW3N.js +53 -0
- package/lib/chunk-6EY5MW3N.js.map +1 -0
- package/lib/chunk-6GB4YMFB.js +52 -0
- package/lib/chunk-6GB4YMFB.js.map +1 -0
- package/lib/chunk-6RLGIXTB.cjs +61 -0
- package/lib/chunk-6RLGIXTB.cjs.map +1 -0
- package/lib/chunk-6YX6BZB6.js +55 -0
- package/lib/chunk-6YX6BZB6.js.map +1 -0
- package/lib/chunk-73IEITRE.js +44 -0
- package/lib/chunk-73IEITRE.js.map +1 -0
- package/lib/chunk-73XFO6GL.cjs +51 -0
- package/lib/chunk-73XFO6GL.cjs.map +1 -0
- package/lib/chunk-76RBIF4U.cjs +79 -0
- package/lib/chunk-76RBIF4U.cjs.map +1 -0
- package/lib/chunk-7FKCICOI.js +55 -0
- package/lib/chunk-7FKCICOI.js.map +1 -0
- package/lib/chunk-7N7KBV6L.js +158 -0
- package/lib/chunk-7N7KBV6L.js.map +1 -0
- package/lib/chunk-7RZTCBDR.cjs +22 -0
- package/lib/chunk-7RZTCBDR.cjs.map +1 -0
- package/lib/chunk-7UCAVCXA.cjs +99 -0
- package/lib/chunk-7UCAVCXA.cjs.map +1 -0
- package/lib/chunk-7XIPWO7I.cjs +61 -0
- package/lib/chunk-7XIPWO7I.cjs.map +1 -0
- package/lib/chunk-A7PIWL4I.js +58 -0
- package/lib/chunk-A7PIWL4I.js.map +1 -0
- package/lib/chunk-AGJQ5BMW.cjs +107 -0
- package/lib/chunk-AGJQ5BMW.cjs.map +1 -0
- package/lib/chunk-AHJQVBKB.cjs +160 -0
- package/lib/chunk-AHJQVBKB.cjs.map +1 -0
- package/lib/chunk-AJ5YOH5P.cjs +30 -0
- package/lib/chunk-AJ5YOH5P.cjs.map +1 -0
- package/lib/chunk-AQHMSOPU.js +45 -0
- package/lib/chunk-AQHMSOPU.js.map +1 -0
- package/lib/chunk-ASRC3G5N.cjs +42 -0
- package/lib/chunk-ASRC3G5N.cjs.map +1 -0
- package/lib/chunk-B3IWIR5W.cjs +46 -0
- package/lib/chunk-B3IWIR5W.cjs.map +1 -0
- package/lib/chunk-B4ASY4NL.js +45 -0
- package/lib/chunk-B4ASY4NL.js.map +1 -0
- package/lib/chunk-B6IY37XK.js +70 -0
- package/lib/chunk-B6IY37XK.js.map +1 -0
- package/lib/chunk-B6RRN2R4.cjs +51 -0
- package/lib/chunk-B6RRN2R4.cjs.map +1 -0
- package/lib/chunk-BBNWP52Z.cjs +44 -0
- package/lib/chunk-BBNWP52Z.cjs.map +1 -0
- package/lib/chunk-BCFDI5BB.cjs +51 -0
- package/lib/chunk-BCFDI5BB.cjs.map +1 -0
- package/lib/chunk-BE7FUFTL.js +53 -0
- package/lib/chunk-BE7FUFTL.js.map +1 -0
- package/lib/chunk-BGS3XVZ5.js +107 -0
- package/lib/chunk-BGS3XVZ5.js.map +1 -0
- package/lib/chunk-BLZ627KE.js +59 -0
- package/lib/chunk-BLZ627KE.js.map +1 -0
- package/lib/chunk-BOFLUBPB.js +55 -0
- package/lib/chunk-BOFLUBPB.js.map +1 -0
- package/lib/chunk-BUCTRSWS.js +45 -0
- package/lib/chunk-BUCTRSWS.js.map +1 -0
- package/lib/chunk-BUKCNQRD.cjs +43 -0
- package/lib/chunk-BUKCNQRD.cjs.map +1 -0
- package/lib/chunk-C2JKMWGR.cjs +51 -0
- package/lib/chunk-C2JKMWGR.cjs.map +1 -0
- package/lib/chunk-C5ML5FMX.cjs +53 -0
- package/lib/chunk-C5ML5FMX.cjs.map +1 -0
- package/lib/chunk-C77T7SV5.js +49 -0
- package/lib/chunk-C77T7SV5.js.map +1 -0
- package/lib/chunk-CAR7HCIH.cjs +50 -0
- package/lib/chunk-CAR7HCIH.cjs.map +1 -0
- package/lib/chunk-CD4WJZWD.js +49 -0
- package/lib/chunk-CD4WJZWD.js.map +1 -0
- package/lib/chunk-CHJOIVWT.cjs +51 -0
- package/lib/chunk-CHJOIVWT.cjs.map +1 -0
- package/lib/chunk-CIEVYLNA.cjs +57 -0
- package/lib/chunk-CIEVYLNA.cjs.map +1 -0
- package/lib/chunk-CRRVMIDJ.js +32 -0
- package/lib/chunk-CRRVMIDJ.js.map +1 -0
- package/lib/chunk-CSRXWHGF.cjs +662 -0
- package/lib/chunk-CSRXWHGF.cjs.map +1 -0
- package/lib/chunk-CXDNL2TL.cjs +57 -0
- package/lib/chunk-CXDNL2TL.cjs.map +1 -0
- package/lib/chunk-CZVJWKHF.cjs +51 -0
- package/lib/chunk-CZVJWKHF.cjs.map +1 -0
- package/lib/chunk-D5KCXRAI.js +57 -0
- package/lib/chunk-D5KCXRAI.js.map +1 -0
- package/lib/chunk-DGYQ3LEP.cjs +34 -0
- package/lib/chunk-DGYQ3LEP.cjs.map +1 -0
- package/lib/chunk-DHT6PN4S.js +72 -0
- package/lib/chunk-DHT6PN4S.js.map +1 -0
- package/lib/chunk-DKKVAVBN.cjs +99 -0
- package/lib/chunk-DKKVAVBN.cjs.map +1 -0
- package/lib/chunk-DKUONF23.cjs +56 -0
- package/lib/chunk-DKUONF23.cjs.map +1 -0
- package/lib/chunk-DZ6EOOOY.js +41 -0
- package/lib/chunk-DZ6EOOOY.js.map +1 -0
- package/lib/chunk-E2GOZ7ZV.js +55 -0
- package/lib/chunk-E2GOZ7ZV.js.map +1 -0
- package/lib/chunk-E4RUQPMF.js +40 -0
- package/lib/chunk-E4RUQPMF.js.map +1 -0
- package/lib/chunk-ED72HDOR.js +31 -0
- package/lib/chunk-ED72HDOR.js.map +1 -0
- package/lib/chunk-EGM5WCK7.js +40 -0
- package/lib/chunk-EGM5WCK7.js.map +1 -0
- package/lib/chunk-EN3E3X22.cjs +46 -0
- package/lib/chunk-EN3E3X22.cjs.map +1 -0
- package/lib/chunk-EOSTJ3GG.cjs +50 -0
- package/lib/chunk-EOSTJ3GG.cjs.map +1 -0
- package/lib/chunk-ESUFQPT7.cjs +71 -0
- package/lib/chunk-ESUFQPT7.cjs.map +1 -0
- package/lib/chunk-ESW2GV47.js +100 -0
- package/lib/chunk-ESW2GV47.js.map +1 -0
- package/lib/chunk-EV7JAD4X.js +91 -0
- package/lib/chunk-EV7JAD4X.js.map +1 -0
- package/lib/chunk-EY3D7ONH.cjs +109 -0
- package/lib/chunk-EY3D7ONH.cjs.map +1 -0
- package/lib/chunk-EZQHOZI2.js +49 -0
- package/lib/chunk-EZQHOZI2.js.map +1 -0
- package/lib/chunk-F3P63HYI.cjs +65 -0
- package/lib/chunk-F3P63HYI.cjs.map +1 -0
- package/lib/chunk-F6J4CRBZ.cjs +38 -0
- package/lib/chunk-F6J4CRBZ.cjs.map +1 -0
- package/lib/chunk-FBGHKFDZ.js +68 -0
- package/lib/chunk-FBGHKFDZ.js.map +1 -0
- package/lib/chunk-FEKNIG3W.js +99 -0
- package/lib/chunk-FEKNIG3W.js.map +1 -0
- package/lib/chunk-FKAKFPAS.js +61 -0
- package/lib/chunk-FKAKFPAS.js.map +1 -0
- package/lib/chunk-FSXKG62A.js +100 -0
- package/lib/chunk-FSXKG62A.js.map +1 -0
- package/lib/chunk-FT2UGQVD.js +54 -0
- package/lib/chunk-FT2UGQVD.js.map +1 -0
- package/lib/chunk-FUYP7J3H.js +53 -0
- package/lib/chunk-FUYP7J3H.js.map +1 -0
- package/lib/chunk-FYI5M2XM.cjs +57 -0
- package/lib/chunk-FYI5M2XM.cjs.map +1 -0
- package/lib/chunk-FYKH5NLF.cjs +50 -0
- package/lib/chunk-FYKH5NLF.cjs.map +1 -0
- package/lib/chunk-G2XGWVV4.cjs +81 -0
- package/lib/chunk-G2XGWVV4.cjs.map +1 -0
- package/lib/chunk-GNLY3HQ4.js +105 -0
- package/lib/chunk-GNLY3HQ4.js.map +1 -0
- package/lib/chunk-GRKXRJZE.js +65 -0
- package/lib/chunk-GRKXRJZE.js.map +1 -0
- package/lib/chunk-GSHDLOHZ.js +97 -0
- package/lib/chunk-GSHDLOHZ.js.map +1 -0
- package/lib/chunk-GSTAUOVL.js +57 -0
- package/lib/chunk-GSTAUOVL.js.map +1 -0
- package/lib/chunk-H3IBVZVF.js +28 -0
- package/lib/chunk-H3IBVZVF.js.map +1 -0
- package/lib/chunk-H4MPRTXI.js +37 -0
- package/lib/chunk-H4MPRTXI.js.map +1 -0
- package/lib/chunk-H5JOZYXN.cjs +51 -0
- package/lib/chunk-H5JOZYXN.cjs.map +1 -0
- package/lib/chunk-H7ZINK52.cjs +93 -0
- package/lib/chunk-H7ZINK52.cjs.map +1 -0
- package/lib/chunk-HFAQPY4K.cjs +42 -0
- package/lib/chunk-HFAQPY4K.cjs.map +1 -0
- package/lib/chunk-HLL6WIIC.js +91 -0
- package/lib/chunk-HLL6WIIC.js.map +1 -0
- package/lib/chunk-HLPUCTAZ.js +103 -0
- package/lib/chunk-HLPUCTAZ.js.map +1 -0
- package/lib/chunk-HNADBQ2G.cjs +55 -0
- package/lib/chunk-HNADBQ2G.cjs.map +1 -0
- package/lib/chunk-HOKEKQDI.js +49 -0
- package/lib/chunk-HOKEKQDI.js.map +1 -0
- package/lib/chunk-HP2WA7CM.cjs +59 -0
- package/lib/chunk-HP2WA7CM.cjs.map +1 -0
- package/lib/chunk-HQZ3S65M.js +44 -0
- package/lib/chunk-HQZ3S65M.js.map +1 -0
- package/lib/chunk-HR6ZQP3L.cjs +66 -0
- package/lib/chunk-HR6ZQP3L.cjs.map +1 -0
- package/lib/chunk-HR773LV5.cjs +54 -0
- package/lib/chunk-HR773LV5.cjs.map +1 -0
- package/lib/chunk-HTQJYP75.cjs +46 -0
- package/lib/chunk-HTQJYP75.cjs.map +1 -0
- package/lib/chunk-HWEIUKPN.cjs +57 -0
- package/lib/chunk-HWEIUKPN.cjs.map +1 -0
- package/lib/chunk-HWL3MJQJ.cjs +60 -0
- package/lib/chunk-HWL3MJQJ.cjs.map +1 -0
- package/lib/chunk-HZB22SU2.cjs +51 -0
- package/lib/chunk-HZB22SU2.cjs.map +1 -0
- package/lib/chunk-I22GQQSK.js +97 -0
- package/lib/chunk-I22GQQSK.js.map +1 -0
- package/lib/chunk-IESEQGGO.js +65 -0
- package/lib/chunk-IESEQGGO.js.map +1 -0
- package/lib/chunk-IFLQJWJG.cjs +55 -0
- package/lib/chunk-IFLQJWJG.cjs.map +1 -0
- package/lib/chunk-IGK3AET6.cjs +47 -0
- package/lib/chunk-IGK3AET6.cjs.map +1 -0
- package/lib/chunk-IJT6ADCT.cjs +70 -0
- package/lib/chunk-IJT6ADCT.cjs.map +1 -0
- package/lib/chunk-IKCYKGYL.js +151 -0
- package/lib/chunk-IKCYKGYL.js.map +1 -0
- package/lib/chunk-IMZ67YBL.cjs +55 -0
- package/lib/chunk-IMZ67YBL.cjs.map +1 -0
- package/lib/chunk-IR7ERHZU.js +57 -0
- package/lib/chunk-IR7ERHZU.js.map +1 -0
- package/lib/chunk-IWQQN4E4.js +47 -0
- package/lib/chunk-IWQQN4E4.js.map +1 -0
- package/lib/chunk-J3K32YXQ.js +49 -0
- package/lib/chunk-J3K32YXQ.js.map +1 -0
- package/lib/chunk-J5QKU3U7.cjs +54 -0
- package/lib/chunk-J5QKU3U7.cjs.map +1 -0
- package/lib/chunk-JAL5VEJ4.cjs +51 -0
- package/lib/chunk-JAL5VEJ4.cjs.map +1 -0
- package/lib/chunk-JBNN5FLR.cjs +99 -0
- package/lib/chunk-JBNN5FLR.cjs.map +1 -0
- package/lib/chunk-JEFXEO7O.js +49 -0
- package/lib/chunk-JEFXEO7O.js.map +1 -0
- package/lib/chunk-JIAAPIJS.js +69 -0
- package/lib/chunk-JIAAPIJS.js.map +1 -0
- package/lib/chunk-JNDUIJGS.js +32 -0
- package/lib/chunk-JNDUIJGS.js.map +1 -0
- package/lib/chunk-JTECSGQK.cjs +95 -0
- package/lib/chunk-JTECSGQK.cjs.map +1 -0
- package/lib/chunk-JU2GYUKV.js +54 -0
- package/lib/chunk-JU2GYUKV.js.map +1 -0
- package/lib/chunk-JW3TKFSF.cjs +99 -0
- package/lib/chunk-JW3TKFSF.cjs.map +1 -0
- package/lib/chunk-JWW6RX2L.cjs +47 -0
- package/lib/chunk-JWW6RX2L.cjs.map +1 -0
- package/lib/chunk-JZ5VDGTD.cjs +29 -0
- package/lib/chunk-JZ5VDGTD.cjs.map +1 -0
- package/lib/chunk-K277GYCD.cjs +40 -0
- package/lib/chunk-K277GYCD.cjs.map +1 -0
- package/lib/chunk-K4FGKWEQ.js +36 -0
- package/lib/chunk-K4FGKWEQ.js.map +1 -0
- package/lib/chunk-KAARRP5O.js +59 -0
- package/lib/chunk-KAARRP5O.js.map +1 -0
- package/lib/chunk-KDCQAUUV.js +48 -0
- package/lib/chunk-KDCQAUUV.js.map +1 -0
- package/lib/chunk-KMPHWFCV.cjs +47 -0
- package/lib/chunk-KMPHWFCV.cjs.map +1 -0
- package/lib/chunk-KRNU2FZC.js +53 -0
- package/lib/chunk-KRNU2FZC.js.map +1 -0
- package/lib/chunk-KUX4X636.js +49 -0
- package/lib/chunk-KUX4X636.js.map +1 -0
- package/lib/chunk-KWIFQC7H.js +52 -0
- package/lib/chunk-KWIFQC7H.js.map +1 -0
- package/lib/chunk-KZNM2CKM.cjs +59 -0
- package/lib/chunk-KZNM2CKM.cjs.map +1 -0
- package/lib/chunk-L27E3EGQ.js +49 -0
- package/lib/chunk-L27E3EGQ.js.map +1 -0
- package/lib/chunk-L2R5G3V5.js +276 -0
- package/lib/chunk-L2R5G3V5.js.map +1 -0
- package/lib/chunk-L6OLNB6W.js +41 -0
- package/lib/chunk-L6OLNB6W.js.map +1 -0
- package/lib/chunk-L7VZ5ST5.cjs +60 -0
- package/lib/chunk-L7VZ5ST5.cjs.map +1 -0
- package/lib/chunk-LBY2RHI4.js +45 -0
- package/lib/chunk-LBY2RHI4.js.map +1 -0
- package/lib/chunk-LGYK5DTL.cjs +50 -0
- package/lib/chunk-LGYK5DTL.cjs.map +1 -0
- package/lib/chunk-LLRE4DNW.cjs +55 -0
- package/lib/chunk-LLRE4DNW.cjs.map +1 -0
- package/lib/chunk-LQ5GKVLT.cjs +163 -0
- package/lib/chunk-LQ5GKVLT.cjs.map +1 -0
- package/lib/chunk-MAU4GMOM.js +52 -0
- package/lib/chunk-MAU4GMOM.js.map +1 -0
- package/lib/chunk-MBDEK4FD.cjs +51 -0
- package/lib/chunk-MBDEK4FD.cjs.map +1 -0
- package/lib/chunk-MDT7RJZY.cjs +39 -0
- package/lib/chunk-MDT7RJZY.cjs.map +1 -0
- package/lib/chunk-MF72Q5LL.cjs +39 -0
- package/lib/chunk-MF72Q5LL.cjs.map +1 -0
- package/lib/chunk-MGIOWUKO.cjs +38 -0
- package/lib/chunk-MGIOWUKO.cjs.map +1 -0
- package/lib/chunk-MIBC5G27.js +77 -0
- package/lib/chunk-MIBC5G27.js.map +1 -0
- package/lib/chunk-MU6PHJWP.js +48 -0
- package/lib/chunk-MU6PHJWP.js.map +1 -0
- package/lib/chunk-MVNE63MT.cjs +67 -0
- package/lib/chunk-MVNE63MT.cjs.map +1 -0
- package/lib/chunk-MWDZBQOU.cjs +47 -0
- package/lib/chunk-MWDZBQOU.cjs.map +1 -0
- package/lib/chunk-NKPMXNFW.js +49 -0
- package/lib/chunk-NKPMXNFW.js.map +1 -0
- package/lib/chunk-NKSXB523.js +42 -0
- package/lib/chunk-NKSXB523.js.map +1 -0
- package/lib/chunk-NL65GQHX.cjs +39 -0
- package/lib/chunk-NL65GQHX.cjs.map +1 -0
- package/lib/chunk-NM2TVMKS.cjs +43 -0
- package/lib/chunk-NM2TVMKS.cjs.map +1 -0
- package/lib/chunk-NUQ5KNXC.cjs +63 -0
- package/lib/chunk-NUQ5KNXC.cjs.map +1 -0
- package/lib/chunk-OQ3ZPPCE.js +55 -0
- package/lib/chunk-OQ3ZPPCE.js.map +1 -0
- package/lib/chunk-OR5ULL43.js +55 -0
- package/lib/chunk-OR5ULL43.js.map +1 -0
- package/lib/chunk-OSGNFURJ.js +63 -0
- package/lib/chunk-OSGNFURJ.js.map +1 -0
- package/lib/chunk-OSPDLBK7.cjs +57 -0
- package/lib/chunk-OSPDLBK7.cjs.map +1 -0
- package/lib/chunk-OTJ3AG3G.js +45 -0
- package/lib/chunk-OTJ3AG3G.js.map +1 -0
- package/lib/chunk-OUZO3UT3.cjs +65 -0
- package/lib/chunk-OUZO3UT3.cjs.map +1 -0
- package/lib/chunk-OXMHLYDD.js +49 -0
- package/lib/chunk-OXMHLYDD.js.map +1 -0
- package/lib/chunk-P2B3G2TZ.js +44 -0
- package/lib/chunk-P2B3G2TZ.js.map +1 -0
- package/lib/chunk-P3AQZNTG.js +79 -0
- package/lib/chunk-P3AQZNTG.js.map +1 -0
- package/lib/chunk-P3C4DMT6.cjs +57 -0
- package/lib/chunk-P3C4DMT6.cjs.map +1 -0
- package/lib/chunk-P6H53BD7.cjs +102 -0
- package/lib/chunk-P6H53BD7.cjs.map +1 -0
- package/lib/chunk-PAWJTO7I.js +49 -0
- package/lib/chunk-PAWJTO7I.js.map +1 -0
- package/lib/chunk-PD4I73FB.cjs +105 -0
- package/lib/chunk-PD4I73FB.cjs.map +1 -0
- package/lib/chunk-PGXMLN7A.js +49 -0
- package/lib/chunk-PGXMLN7A.js.map +1 -0
- package/lib/chunk-PIHQS6OG.js +153 -0
- package/lib/chunk-PIHQS6OG.js.map +1 -0
- package/lib/chunk-PUX7CAAV.js +53 -0
- package/lib/chunk-PUX7CAAV.js.map +1 -0
- package/lib/chunk-QE7S4OUZ.cjs +51 -0
- package/lib/chunk-QE7S4OUZ.cjs.map +1 -0
- package/lib/chunk-QKCTP2RD.cjs +55 -0
- package/lib/chunk-QKCTP2RD.cjs.map +1 -0
- package/lib/chunk-QNFZBJFQ.cjs +58 -0
- package/lib/chunk-QNFZBJFQ.cjs.map +1 -0
- package/lib/chunk-QU4NPZQC.cjs +56 -0
- package/lib/chunk-QU4NPZQC.cjs.map +1 -0
- package/lib/chunk-QVJTWTUN.cjs +54 -0
- package/lib/chunk-QVJTWTUN.cjs.map +1 -0
- package/lib/chunk-R3PNGGDR.cjs +55 -0
- package/lib/chunk-R3PNGGDR.cjs.map +1 -0
- package/lib/chunk-R7JDWIQK.cjs +107 -0
- package/lib/chunk-R7JDWIQK.cjs.map +1 -0
- package/lib/chunk-R7PR3V6Z.cjs +51 -0
- package/lib/chunk-R7PR3V6Z.cjs.map +1 -0
- package/lib/chunk-RH363QI7.cjs +99 -0
- package/lib/chunk-RH363QI7.cjs.map +1 -0
- package/lib/chunk-RLZGD4WS.cjs +57 -0
- package/lib/chunk-RLZGD4WS.cjs.map +1 -0
- package/lib/chunk-RNCWBCHU.js +55 -0
- package/lib/chunk-RNCWBCHU.js.map +1 -0
- package/lib/chunk-SEY2W62A.js +53 -0
- package/lib/chunk-SEY2W62A.js.map +1 -0
- package/lib/chunk-SGJTWE5I.js +40 -0
- package/lib/chunk-SGJTWE5I.js.map +1 -0
- package/lib/chunk-SK7SIING.cjs +42 -0
- package/lib/chunk-SK7SIING.cjs.map +1 -0
- package/lib/chunk-SNHW3YC5.cjs +55 -0
- package/lib/chunk-SNHW3YC5.cjs.map +1 -0
- package/lib/chunk-SWZUFDHY.js +102 -0
- package/lib/chunk-SWZUFDHY.js.map +1 -0
- package/lib/chunk-SXCTTGYT.cjs +50 -0
- package/lib/chunk-SXCTTGYT.cjs.map +1 -0
- package/lib/chunk-SXQSMTHR.js +58 -0
- package/lib/chunk-SXQSMTHR.js.map +1 -0
- package/lib/chunk-SZYWVDPJ.cjs +42 -0
- package/lib/chunk-SZYWVDPJ.cjs.map +1 -0
- package/lib/chunk-T4SW2CZX.cjs +67 -0
- package/lib/chunk-T4SW2CZX.cjs.map +1 -0
- package/lib/chunk-TE54DOJ6.cjs +75 -0
- package/lib/chunk-TE54DOJ6.cjs.map +1 -0
- package/lib/chunk-TJGZYDVV.js +58 -0
- package/lib/chunk-TJGZYDVV.js.map +1 -0
- package/lib/chunk-TPFXLI3J.js +27 -0
- package/lib/chunk-TPFXLI3J.js.map +1 -0
- package/lib/chunk-U43UPLTK.cjs +42 -0
- package/lib/chunk-U43UPLTK.cjs.map +1 -0
- package/lib/chunk-U5ZUHRP7.cjs +65 -0
- package/lib/chunk-U5ZUHRP7.cjs.map +1 -0
- package/lib/chunk-U7NVUYAO.js +71 -0
- package/lib/chunk-U7NVUYAO.js.map +1 -0
- package/lib/chunk-UBH2EC5P.cjs +284 -0
- package/lib/chunk-UBH2EC5P.cjs.map +1 -0
- package/lib/chunk-UMIZNUUK.js +45 -0
- package/lib/chunk-UMIZNUUK.js.map +1 -0
- package/lib/chunk-UQQTNQX3.cjs +153 -0
- package/lib/chunk-UQQTNQX3.cjs.map +1 -0
- package/lib/chunk-UR35VE5O.js +53 -0
- package/lib/chunk-UR35VE5O.js.map +1 -0
- package/lib/chunk-UTJX7SU6.cjs +55 -0
- package/lib/chunk-UTJX7SU6.cjs.map +1 -0
- package/lib/chunk-V2JFGTP4.cjs +33 -0
- package/lib/chunk-V2JFGTP4.cjs.map +1 -0
- package/lib/chunk-V3VI5SLU.cjs +58 -0
- package/lib/chunk-V3VI5SLU.cjs.map +1 -0
- package/lib/chunk-V57VEB52.cjs +51 -0
- package/lib/chunk-V57VEB52.cjs.map +1 -0
- package/lib/chunk-VCJOH3IE.js +63 -0
- package/lib/chunk-VCJOH3IE.js.map +1 -0
- package/lib/chunk-VROIQJ2H.js +48 -0
- package/lib/chunk-VROIQJ2H.js.map +1 -0
- package/lib/chunk-W5HJOZUZ.js +55 -0
- package/lib/chunk-W5HJOZUZ.js.map +1 -0
- package/lib/chunk-W6D7ACVK.cjs +26 -0
- package/lib/chunk-W6D7ACVK.cjs.map +1 -0
- package/lib/chunk-W76GDFLA.cjs +49 -0
- package/lib/chunk-W76GDFLA.cjs.map +1 -0
- package/lib/chunk-W7A5TBOT.js +37 -0
- package/lib/chunk-W7A5TBOT.js.map +1 -0
- package/lib/chunk-W7QZ4IET.js +55 -0
- package/lib/chunk-W7QZ4IET.js.map +1 -0
- package/lib/chunk-WAXSMT74.js +49 -0
- package/lib/chunk-WAXSMT74.js.map +1 -0
- package/lib/chunk-WENVZ7YQ.cjs +60 -0
- package/lib/chunk-WENVZ7YQ.cjs.map +1 -0
- package/lib/chunk-WN4NEQG3.cjs +47 -0
- package/lib/chunk-WN4NEQG3.cjs.map +1 -0
- package/lib/chunk-WPMZGCSL.js +49 -0
- package/lib/chunk-WPMZGCSL.js.map +1 -0
- package/lib/chunk-WVXUXB6M.cjs +51 -0
- package/lib/chunk-WVXUXB6M.cjs.map +1 -0
- package/lib/chunk-WYSCB65K.cjs +65 -0
- package/lib/chunk-WYSCB65K.cjs.map +1 -0
- package/lib/chunk-WZKB5BTI.cjs +57 -0
- package/lib/chunk-WZKB5BTI.cjs.map +1 -0
- package/lib/chunk-X3FOQEIP.cjs +57 -0
- package/lib/chunk-X3FOQEIP.cjs.map +1 -0
- package/lib/chunk-X435FPBT.js +70 -0
- package/lib/chunk-X435FPBT.js.map +1 -0
- package/lib/chunk-XAHCI5JE.js +284 -0
- package/lib/chunk-XAHCI5JE.js.map +1 -0
- package/lib/chunk-XAWZYCIT.cjs +51 -0
- package/lib/chunk-XAWZYCIT.cjs.map +1 -0
- package/lib/chunk-XFOVGIFM.cjs +59 -0
- package/lib/chunk-XFOVGIFM.cjs.map +1 -0
- package/lib/chunk-XGQYAM2O.cjs +102 -0
- package/lib/chunk-XGQYAM2O.cjs.map +1 -0
- package/lib/chunk-XHRLLOTH.cjs +46 -0
- package/lib/chunk-XHRLLOTH.cjs.map +1 -0
- package/lib/chunk-XLHGFYJD.js +40 -0
- package/lib/chunk-XLHGFYJD.js.map +1 -0
- package/lib/chunk-XLSIK3Q5.js +40 -0
- package/lib/chunk-XLSIK3Q5.js.map +1 -0
- package/lib/chunk-XMOZVHO7.js +56 -0
- package/lib/chunk-XMOZVHO7.js.map +1 -0
- package/lib/chunk-YDYPUEOW.js +52 -0
- package/lib/chunk-YDYPUEOW.js.map +1 -0
- package/lib/chunk-YF5IJQZK.cjs +55 -0
- package/lib/chunk-YF5IJQZK.cjs.map +1 -0
- package/lib/chunk-YI3IDZIR.js +646 -0
- package/lib/chunk-YI3IDZIR.js.map +1 -0
- package/lib/chunk-YNFTOIKI.cjs +47 -0
- package/lib/chunk-YNFTOIKI.cjs.map +1 -0
- package/lib/chunk-YOAULZCB.js +28 -0
- package/lib/chunk-YOAULZCB.js.map +1 -0
- package/lib/chunk-YOH56Z73.js +64 -0
- package/lib/chunk-YOH56Z73.js.map +1 -0
- package/lib/chunk-YYFNNQAF.js +49 -0
- package/lib/chunk-YYFNNQAF.js.map +1 -0
- package/lib/chunk-Z7FWE3KQ.cjs +55 -0
- package/lib/chunk-Z7FWE3KQ.cjs.map +1 -0
- package/lib/chunk-ZA4UM7JC.js +36 -0
- package/lib/chunk-ZA4UM7JC.js.map +1 -0
- package/lib/chunk-ZBKA7LEU.js +51 -0
- package/lib/chunk-ZBKA7LEU.js.map +1 -0
- package/lib/chunk-ZDO4C624.cjs +79 -0
- package/lib/chunk-ZDO4C624.cjs.map +1 -0
- package/lib/chunk-ZDPMTK4O.js +49 -0
- package/lib/chunk-ZDPMTK4O.js.map +1 -0
- package/lib/chunk-ZKTVCW5B.cjs +51 -0
- package/lib/chunk-ZKTVCW5B.cjs.map +1 -0
- package/lib/chunk-ZKZLRD43.cjs +46 -0
- package/lib/chunk-ZKZLRD43.cjs.map +1 -0
- package/lib/chunk-ZNRKFQBN.cjs +59 -0
- package/lib/chunk-ZNRKFQBN.cjs.map +1 -0
- package/lib/chunk-ZU3CNZKE.cjs +51 -0
- package/lib/chunk-ZU3CNZKE.cjs.map +1 -0
- package/lib/chunk-ZUURLADK.cjs +55 -0
- package/lib/chunk-ZUURLADK.cjs.map +1 -0
- package/lib/chunk-ZWTMB75R.js +49 -0
- package/lib/chunk-ZWTMB75R.js.map +1 -0
- package/lib/chunk-ZYU4XA7Z.cjs +101 -0
- package/lib/chunk-ZYU4XA7Z.cjs.map +1 -0
- package/lib/client.cjs +5 -5
- package/lib/client.d.cts +1 -1
- package/lib/client.d.ts +1 -1
- package/lib/client.js +4 -4
- package/lib/commercelayer.cjs +12 -12
- package/lib/commercelayer.d.cts +5 -5
- package/lib/commercelayer.d.ts +5 -5
- package/lib/commercelayer.js +8 -8
- package/lib/config.d.cts +1 -1
- package/lib/config.d.ts +1 -1
- package/lib/debug.cjs +2 -2
- package/lib/debug.js +1 -1
- package/lib/enum.cjs +16 -16
- package/lib/enum.d.cts +2 -2
- package/lib/enum.d.ts +2 -2
- package/lib/enum.js +1 -1
- package/lib/error.cjs +9 -9
- package/lib/error.js +2 -2
- package/lib/fetch-B8-kP4X0.d.cts +55 -0
- package/lib/fetch-B8-kP4X0.d.ts +55 -0
- package/lib/fetch.cjs +4 -4
- package/lib/fetch.d.cts +1 -1
- package/lib/fetch.d.ts +1 -1
- package/lib/fetch.js +2 -2
- package/lib/index.cjs +276 -276
- package/lib/index.d.cts +2 -2
- package/lib/index.d.ts +2 -2
- package/lib/index.js +141 -141
- package/lib/interceptor.d.cts +1 -1
- package/lib/interceptor.d.ts +1 -1
- package/lib/jsonapi.cjs +9 -9
- package/lib/jsonapi.d.cts +2 -2
- package/lib/jsonapi.d.ts +2 -2
- package/lib/jsonapi.js +7 -7
- package/lib/model.d.cts +2 -2
- package/lib/model.d.ts +2 -2
- package/lib/query.cjs +6 -6
- package/lib/query.d.cts +2 -2
- package/lib/query.d.ts +2 -2
- package/lib/query.js +3 -3
- package/lib/resource.cjs +12 -12
- package/lib/resource.d.cts +2 -2
- package/lib/resource.d.ts +2 -2
- package/lib/resource.js +7 -7
- package/lib/resources/addresses.cjs +9 -9
- package/lib/resources/addresses.d.cts +3 -3
- package/lib/resources/addresses.d.ts +2 -2
- package/lib/resources/addresses.js +8 -8
- package/lib/resources/adjustments.cjs +9 -9
- package/lib/resources/adjustments.d.cts +3 -3
- package/lib/resources/adjustments.d.ts +2 -2
- package/lib/resources/adjustments.js +8 -8
- package/lib/resources/adyen_gateways.cjs +9 -9
- package/lib/resources/adyen_gateways.d.cts +3 -3
- package/lib/resources/adyen_gateways.d.ts +2 -2
- package/lib/resources/adyen_gateways.js +8 -8
- package/lib/resources/adyen_payments.cjs +9 -9
- package/lib/resources/adyen_payments.d.cts +3 -3
- package/lib/resources/adyen_payments.d.ts +2 -2
- package/lib/resources/adyen_payments.js +8 -8
- package/lib/resources/applications.cjs +9 -9
- package/lib/resources/applications.d.cts +3 -3
- package/lib/resources/applications.d.ts +2 -2
- package/lib/resources/applications.js +8 -8
- package/lib/resources/attachments.cjs +9 -9
- package/lib/resources/attachments.d.cts +3 -3
- package/lib/resources/attachments.d.ts +2 -2
- package/lib/resources/attachments.js +8 -8
- package/lib/resources/authorizations.cjs +9 -9
- package/lib/resources/authorizations.d.cts +3 -3
- package/lib/resources/authorizations.d.ts +2 -2
- package/lib/resources/authorizations.js +8 -8
- package/lib/resources/avalara_accounts.cjs +9 -9
- package/lib/resources/avalara_accounts.d.cts +3 -3
- package/lib/resources/avalara_accounts.d.ts +2 -2
- package/lib/resources/avalara_accounts.js +8 -8
- package/lib/resources/axerve_gateways.cjs +9 -9
- package/lib/resources/axerve_gateways.d.cts +3 -3
- package/lib/resources/axerve_gateways.d.ts +2 -2
- package/lib/resources/axerve_gateways.js +8 -8
- package/lib/resources/axerve_payments.cjs +9 -9
- package/lib/resources/axerve_payments.d.cts +3 -3
- package/lib/resources/axerve_payments.d.ts +2 -2
- package/lib/resources/axerve_payments.js +8 -8
- package/lib/resources/bing_geocoders.cjs +9 -9
- package/lib/resources/bing_geocoders.d.cts +3 -3
- package/lib/resources/bing_geocoders.d.ts +2 -2
- package/lib/resources/bing_geocoders.js +8 -8
- package/lib/resources/braintree_gateways.cjs +9 -9
- package/lib/resources/braintree_gateways.d.cts +3 -3
- package/lib/resources/braintree_gateways.d.ts +2 -2
- package/lib/resources/braintree_gateways.js +8 -8
- package/lib/resources/braintree_payments.cjs +9 -9
- package/lib/resources/braintree_payments.d.cts +3 -3
- package/lib/resources/braintree_payments.d.ts +2 -2
- package/lib/resources/braintree_payments.js +8 -8
- package/lib/resources/bundles.cjs +9 -9
- package/lib/resources/bundles.d.cts +3 -3
- package/lib/resources/bundles.d.ts +2 -2
- package/lib/resources/bundles.js +8 -8
- package/lib/resources/buy_x_pay_y_promotions.cjs +9 -9
- package/lib/resources/buy_x_pay_y_promotions.d.cts +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.ts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.js +8 -8
- package/lib/resources/captures.cjs +9 -9
- package/lib/resources/captures.d.cts +3 -3
- package/lib/resources/captures.d.ts +2 -2
- package/lib/resources/captures.js +8 -8
- package/lib/resources/carrier_accounts.cjs +9 -9
- package/lib/resources/carrier_accounts.d.cts +3 -3
- package/lib/resources/carrier_accounts.d.ts +2 -2
- package/lib/resources/carrier_accounts.js +8 -8
- package/lib/resources/checkout_com_gateways.cjs +9 -9
- package/lib/resources/checkout_com_gateways.d.cts +3 -3
- package/lib/resources/checkout_com_gateways.d.ts +2 -2
- package/lib/resources/checkout_com_gateways.js +8 -8
- package/lib/resources/checkout_com_payments.cjs +9 -9
- package/lib/resources/checkout_com_payments.d.cts +3 -3
- package/lib/resources/checkout_com_payments.d.ts +2 -2
- package/lib/resources/checkout_com_payments.js +8 -8
- package/lib/resources/cleanups.cjs +9 -9
- package/lib/resources/cleanups.d.cts +3 -3
- package/lib/resources/cleanups.d.ts +2 -2
- package/lib/resources/cleanups.js +8 -8
- package/lib/resources/coupon_codes_promotion_rules.cjs +9 -9
- package/lib/resources/coupon_codes_promotion_rules.d.cts +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.ts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.js +8 -8
- package/lib/resources/coupon_recipients.cjs +9 -9
- package/lib/resources/coupon_recipients.d.cts +3 -3
- package/lib/resources/coupon_recipients.d.ts +2 -2
- package/lib/resources/coupon_recipients.js +8 -8
- package/lib/resources/coupons.cjs +9 -9
- package/lib/resources/coupons.d.cts +3 -3
- package/lib/resources/coupons.d.ts +2 -2
- package/lib/resources/coupons.js +8 -8
- package/lib/resources/custom_promotion_rules.cjs +9 -9
- package/lib/resources/custom_promotion_rules.d.cts +3 -3
- package/lib/resources/custom_promotion_rules.d.ts +2 -2
- package/lib/resources/custom_promotion_rules.js +8 -8
- package/lib/resources/customer_addresses.cjs +9 -9
- package/lib/resources/customer_addresses.d.cts +3 -3
- package/lib/resources/customer_addresses.d.ts +2 -2
- package/lib/resources/customer_addresses.js +8 -8
- package/lib/resources/customer_groups.cjs +9 -9
- package/lib/resources/customer_groups.d.cts +3 -3
- package/lib/resources/customer_groups.d.ts +2 -2
- package/lib/resources/customer_groups.js +8 -8
- package/lib/resources/customer_password_resets.cjs +9 -9
- package/lib/resources/customer_password_resets.d.cts +3 -3
- package/lib/resources/customer_password_resets.d.ts +2 -2
- package/lib/resources/customer_password_resets.js +8 -8
- package/lib/resources/customer_payment_sources.cjs +9 -9
- package/lib/resources/customer_payment_sources.d.cts +3 -3
- package/lib/resources/customer_payment_sources.d.ts +2 -2
- package/lib/resources/customer_payment_sources.js +8 -8
- package/lib/resources/customer_subscriptions.cjs +9 -9
- package/lib/resources/customer_subscriptions.d.cts +3 -3
- package/lib/resources/customer_subscriptions.d.ts +2 -2
- package/lib/resources/customer_subscriptions.js +8 -8
- package/lib/resources/customers.cjs +9 -9
- package/lib/resources/customers.d.cts +3 -3
- package/lib/resources/customers.d.ts +2 -2
- package/lib/resources/customers.js +8 -8
- package/lib/resources/delivery_lead_times.cjs +9 -9
- package/lib/resources/delivery_lead_times.d.cts +3 -3
- package/lib/resources/delivery_lead_times.d.ts +2 -2
- package/lib/resources/delivery_lead_times.js +8 -8
- package/lib/resources/discount_engine_items.cjs +9 -9
- package/lib/resources/discount_engine_items.d.cts +3 -3
- package/lib/resources/discount_engine_items.d.ts +2 -2
- package/lib/resources/discount_engine_items.js +8 -8
- package/lib/resources/discount_engines.cjs +9 -9
- package/lib/resources/discount_engines.d.cts +3 -3
- package/lib/resources/discount_engines.d.ts +2 -2
- package/lib/resources/discount_engines.js +8 -8
- package/lib/resources/easypost_pickups.cjs +9 -9
- package/lib/resources/easypost_pickups.d.cts +3 -3
- package/lib/resources/easypost_pickups.d.ts +2 -2
- package/lib/resources/easypost_pickups.js +8 -8
- package/lib/resources/event_callbacks.cjs +9 -9
- package/lib/resources/event_callbacks.d.cts +3 -3
- package/lib/resources/event_callbacks.d.ts +2 -2
- package/lib/resources/event_callbacks.js +8 -8
- package/lib/resources/event_stores.cjs +9 -9
- package/lib/resources/event_stores.d.cts +3 -3
- package/lib/resources/event_stores.d.ts +2 -2
- package/lib/resources/event_stores.js +8 -8
- package/lib/resources/events.cjs +9 -9
- package/lib/resources/events.d.cts +3 -3
- package/lib/resources/events.d.ts +2 -2
- package/lib/resources/events.js +8 -8
- package/lib/resources/exports.cjs +9 -9
- package/lib/resources/exports.d.cts +3 -3
- package/lib/resources/exports.d.ts +2 -2
- package/lib/resources/exports.js +8 -8
- package/lib/resources/external_gateways.cjs +9 -9
- package/lib/resources/external_gateways.d.cts +3 -3
- package/lib/resources/external_gateways.d.ts +2 -2
- package/lib/resources/external_gateways.js +8 -8
- package/lib/resources/external_payments.cjs +9 -9
- package/lib/resources/external_payments.d.cts +3 -3
- package/lib/resources/external_payments.d.ts +2 -2
- package/lib/resources/external_payments.js +8 -8
- package/lib/resources/external_promotions.cjs +9 -9
- package/lib/resources/external_promotions.d.cts +3 -3
- package/lib/resources/external_promotions.d.ts +2 -2
- package/lib/resources/external_promotions.js +8 -8
- package/lib/resources/external_tax_calculators.cjs +9 -9
- package/lib/resources/external_tax_calculators.d.cts +3 -3
- package/lib/resources/external_tax_calculators.d.ts +2 -2
- package/lib/resources/external_tax_calculators.js +8 -8
- package/lib/resources/fixed_amount_promotions.cjs +9 -9
- package/lib/resources/fixed_amount_promotions.d.cts +3 -3
- package/lib/resources/fixed_amount_promotions.d.ts +2 -2
- package/lib/resources/fixed_amount_promotions.js +8 -8
- package/lib/resources/fixed_price_promotions.cjs +9 -9
- package/lib/resources/fixed_price_promotions.d.cts +3 -3
- package/lib/resources/fixed_price_promotions.d.ts +2 -2
- package/lib/resources/fixed_price_promotions.js +8 -8
- package/lib/resources/flex_promotions.cjs +9 -9
- package/lib/resources/flex_promotions.d.cts +3 -3
- package/lib/resources/flex_promotions.d.ts +2 -2
- package/lib/resources/flex_promotions.js +8 -8
- package/lib/resources/free_gift_promotions.cjs +9 -9
- package/lib/resources/free_gift_promotions.d.cts +3 -3
- package/lib/resources/free_gift_promotions.d.ts +2 -2
- package/lib/resources/free_gift_promotions.js +8 -8
- package/lib/resources/free_shipping_promotions.cjs +9 -9
- package/lib/resources/free_shipping_promotions.d.cts +3 -3
- package/lib/resources/free_shipping_promotions.d.ts +2 -2
- package/lib/resources/free_shipping_promotions.js +8 -8
- package/lib/resources/geocoders.cjs +9 -9
- package/lib/resources/geocoders.d.cts +3 -3
- package/lib/resources/geocoders.d.ts +2 -2
- package/lib/resources/geocoders.js +8 -8
- package/lib/resources/gift_card_recipients.cjs +9 -9
- package/lib/resources/gift_card_recipients.d.cts +3 -3
- package/lib/resources/gift_card_recipients.d.ts +2 -2
- package/lib/resources/gift_card_recipients.js +8 -8
- package/lib/resources/gift_cards.cjs +9 -9
- package/lib/resources/gift_cards.d.cts +3 -3
- package/lib/resources/gift_cards.d.ts +2 -2
- package/lib/resources/gift_cards.js +8 -8
- package/lib/resources/google_geocoders.cjs +9 -9
- package/lib/resources/google_geocoders.d.cts +3 -3
- package/lib/resources/google_geocoders.d.ts +2 -2
- package/lib/resources/google_geocoders.js +8 -8
- package/lib/resources/imports.cjs +9 -9
- package/lib/resources/imports.d.cts +3 -3
- package/lib/resources/imports.d.ts +2 -2
- package/lib/resources/imports.js +8 -8
- package/lib/resources/in_stock_subscriptions.cjs +9 -9
- package/lib/resources/in_stock_subscriptions.d.cts +3 -3
- package/lib/resources/in_stock_subscriptions.d.ts +2 -2
- package/lib/resources/in_stock_subscriptions.js +8 -8
- package/lib/resources/inventory_models.cjs +9 -9
- package/lib/resources/inventory_models.d.cts +3 -3
- package/lib/resources/inventory_models.d.ts +2 -2
- package/lib/resources/inventory_models.js +8 -8
- package/lib/resources/inventory_return_locations.cjs +9 -9
- package/lib/resources/inventory_return_locations.d.cts +3 -3
- package/lib/resources/inventory_return_locations.d.ts +2 -2
- package/lib/resources/inventory_return_locations.js +8 -8
- package/lib/resources/inventory_stock_locations.cjs +9 -9
- package/lib/resources/inventory_stock_locations.d.cts +3 -3
- package/lib/resources/inventory_stock_locations.d.ts +2 -2
- package/lib/resources/inventory_stock_locations.js +8 -8
- package/lib/resources/klarna_gateways.cjs +9 -9
- package/lib/resources/klarna_gateways.d.cts +3 -3
- package/lib/resources/klarna_gateways.d.ts +2 -2
- package/lib/resources/klarna_gateways.js +8 -8
- package/lib/resources/klarna_payments.cjs +9 -9
- package/lib/resources/klarna_payments.d.cts +3 -3
- package/lib/resources/klarna_payments.d.ts +2 -2
- package/lib/resources/klarna_payments.js +8 -8
- package/lib/resources/line_item_options.cjs +9 -9
- package/lib/resources/line_item_options.d.cts +3 -3
- package/lib/resources/line_item_options.d.ts +2 -2
- package/lib/resources/line_item_options.js +8 -8
- package/lib/resources/line_items.cjs +9 -9
- package/lib/resources/line_items.d.cts +3 -3
- package/lib/resources/line_items.d.ts +2 -2
- package/lib/resources/line_items.js +8 -8
- package/lib/resources/links.cjs +9 -9
- package/lib/resources/links.d.cts +3 -3
- package/lib/resources/links.d.ts +2 -2
- package/lib/resources/links.js +8 -8
- package/lib/resources/manual_gateways.cjs +9 -9
- package/lib/resources/manual_gateways.d.cts +3 -3
- package/lib/resources/manual_gateways.d.ts +2 -2
- package/lib/resources/manual_gateways.js +8 -8
- package/lib/resources/manual_tax_calculators.cjs +9 -9
- package/lib/resources/manual_tax_calculators.d.cts +3 -3
- package/lib/resources/manual_tax_calculators.d.ts +2 -2
- package/lib/resources/manual_tax_calculators.js +8 -8
- package/lib/resources/markets.cjs +9 -9
- package/lib/resources/markets.d.cts +3 -3
- package/lib/resources/markets.d.ts +2 -2
- package/lib/resources/markets.js +8 -8
- package/lib/resources/merchants.cjs +9 -9
- package/lib/resources/merchants.d.cts +3 -3
- package/lib/resources/merchants.d.ts +2 -2
- package/lib/resources/merchants.js +8 -8
- package/lib/resources/notifications.cjs +9 -9
- package/lib/resources/notifications.d.cts +3 -3
- package/lib/resources/notifications.d.ts +2 -2
- package/lib/resources/notifications.js +8 -8
- package/lib/resources/order_amount_promotion_rules.cjs +9 -9
- package/lib/resources/order_amount_promotion_rules.d.cts +3 -3
- package/lib/resources/order_amount_promotion_rules.d.ts +2 -2
- package/lib/resources/order_amount_promotion_rules.js +8 -8
- package/lib/resources/order_copies.cjs +9 -9
- package/lib/resources/order_copies.d.cts +3 -3
- package/lib/resources/order_copies.d.ts +2 -2
- package/lib/resources/order_copies.js +8 -8
- package/lib/resources/order_factories.cjs +9 -9
- package/lib/resources/order_factories.d.cts +3 -3
- package/lib/resources/order_factories.d.ts +2 -2
- package/lib/resources/order_factories.js +8 -8
- package/lib/resources/order_subscription_items.cjs +9 -9
- package/lib/resources/order_subscription_items.d.cts +3 -3
- package/lib/resources/order_subscription_items.d.ts +2 -2
- package/lib/resources/order_subscription_items.js +8 -8
- package/lib/resources/order_subscriptions.cjs +9 -9
- package/lib/resources/order_subscriptions.d.cts +3 -3
- package/lib/resources/order_subscriptions.d.ts +2 -2
- package/lib/resources/order_subscriptions.js +8 -8
- package/lib/resources/orders.cjs +9 -9
- package/lib/resources/orders.d.cts +3 -3
- package/lib/resources/orders.d.ts +2 -2
- package/lib/resources/orders.js +8 -8
- package/lib/resources/organizations.cjs +9 -9
- package/lib/resources/organizations.d.cts +3 -3
- package/lib/resources/organizations.d.ts +2 -2
- package/lib/resources/organizations.js +8 -8
- package/lib/resources/packages.cjs +9 -9
- package/lib/resources/packages.d.cts +3 -3
- package/lib/resources/packages.d.ts +2 -2
- package/lib/resources/packages.js +8 -8
- package/lib/resources/parcel_line_items.cjs +9 -9
- package/lib/resources/parcel_line_items.d.cts +3 -3
- package/lib/resources/parcel_line_items.d.ts +2 -2
- package/lib/resources/parcel_line_items.js +8 -8
- package/lib/resources/parcels.cjs +9 -9
- package/lib/resources/parcels.d.cts +3 -3
- package/lib/resources/parcels.d.ts +2 -2
- package/lib/resources/parcels.js +8 -8
- package/lib/resources/payment_gateways.cjs +9 -9
- package/lib/resources/payment_gateways.d.cts +3 -3
- package/lib/resources/payment_gateways.d.ts +2 -2
- package/lib/resources/payment_gateways.js +8 -8
- package/lib/resources/payment_methods.cjs +9 -9
- package/lib/resources/payment_methods.d.cts +3 -3
- package/lib/resources/payment_methods.d.ts +2 -2
- package/lib/resources/payment_methods.js +8 -8
- package/lib/resources/payment_options.cjs +9 -9
- package/lib/resources/payment_options.d.cts +3 -3
- package/lib/resources/payment_options.d.ts +2 -2
- package/lib/resources/payment_options.js +8 -8
- package/lib/resources/paypal_gateways.cjs +9 -9
- package/lib/resources/paypal_gateways.d.cts +3 -3
- package/lib/resources/paypal_gateways.d.ts +2 -2
- package/lib/resources/paypal_gateways.js +8 -8
- package/lib/resources/paypal_payments.cjs +9 -9
- package/lib/resources/paypal_payments.d.cts +3 -3
- package/lib/resources/paypal_payments.d.ts +2 -2
- package/lib/resources/paypal_payments.js +8 -8
- package/lib/resources/percentage_discount_promotions.cjs +9 -9
- package/lib/resources/percentage_discount_promotions.d.cts +3 -3
- package/lib/resources/percentage_discount_promotions.d.ts +2 -2
- package/lib/resources/percentage_discount_promotions.js +8 -8
- package/lib/resources/pickups.cjs +9 -9
- package/lib/resources/pickups.d.cts +3 -3
- package/lib/resources/pickups.d.ts +2 -2
- package/lib/resources/pickups.js +8 -8
- package/lib/resources/price_frequency_tiers.cjs +9 -9
- package/lib/resources/price_frequency_tiers.d.cts +3 -3
- package/lib/resources/price_frequency_tiers.d.ts +2 -2
- package/lib/resources/price_frequency_tiers.js +8 -8
- package/lib/resources/price_list_schedulers.cjs +9 -9
- package/lib/resources/price_list_schedulers.d.cts +3 -3
- package/lib/resources/price_list_schedulers.d.ts +2 -2
- package/lib/resources/price_list_schedulers.js +8 -8
- package/lib/resources/price_lists.cjs +9 -9
- package/lib/resources/price_lists.d.cts +3 -3
- package/lib/resources/price_lists.d.ts +2 -2
- package/lib/resources/price_lists.js +8 -8
- package/lib/resources/price_tiers.cjs +9 -9
- package/lib/resources/price_tiers.d.cts +3 -3
- package/lib/resources/price_tiers.d.ts +2 -2
- package/lib/resources/price_tiers.js +8 -8
- package/lib/resources/price_volume_tiers.cjs +9 -9
- package/lib/resources/price_volume_tiers.d.cts +3 -3
- package/lib/resources/price_volume_tiers.d.ts +2 -2
- package/lib/resources/price_volume_tiers.js +8 -8
- package/lib/resources/prices.cjs +9 -9
- package/lib/resources/prices.d.cts +3 -3
- package/lib/resources/prices.d.ts +2 -2
- package/lib/resources/prices.js +8 -8
- package/lib/resources/promotion_rules.cjs +9 -9
- package/lib/resources/promotion_rules.d.cts +3 -3
- package/lib/resources/promotion_rules.d.ts +2 -2
- package/lib/resources/promotion_rules.js +8 -8
- package/lib/resources/promotions.cjs +9 -9
- package/lib/resources/promotions.d.cts +3 -3
- package/lib/resources/promotions.d.ts +2 -2
- package/lib/resources/promotions.js +8 -8
- package/lib/resources/recurring_order_copies.cjs +9 -9
- package/lib/resources/recurring_order_copies.d.cts +3 -3
- package/lib/resources/recurring_order_copies.d.ts +2 -2
- package/lib/resources/recurring_order_copies.js +8 -8
- package/lib/resources/refunds.cjs +9 -9
- package/lib/resources/refunds.d.cts +3 -3
- package/lib/resources/refunds.d.ts +2 -2
- package/lib/resources/refunds.js +8 -8
- package/lib/resources/reserved_stocks.cjs +9 -9
- package/lib/resources/reserved_stocks.d.cts +3 -3
- package/lib/resources/reserved_stocks.d.ts +2 -2
- package/lib/resources/reserved_stocks.js +8 -8
- package/lib/resources/resource_errors.cjs +9 -9
- package/lib/resources/resource_errors.d.cts +3 -3
- package/lib/resources/resource_errors.d.ts +2 -2
- package/lib/resources/resource_errors.js +8 -8
- package/lib/resources/return_line_items.cjs +9 -9
- package/lib/resources/return_line_items.d.cts +3 -3
- package/lib/resources/return_line_items.d.ts +2 -2
- package/lib/resources/return_line_items.js +8 -8
- package/lib/resources/returns.cjs +9 -9
- package/lib/resources/returns.d.cts +3 -3
- package/lib/resources/returns.d.ts +2 -2
- package/lib/resources/returns.js +8 -8
- package/lib/resources/satispay_gateways.cjs +9 -9
- package/lib/resources/satispay_gateways.d.cts +3 -3
- package/lib/resources/satispay_gateways.d.ts +2 -2
- package/lib/resources/satispay_gateways.js +8 -8
- package/lib/resources/satispay_payments.cjs +9 -9
- package/lib/resources/satispay_payments.d.cts +3 -3
- package/lib/resources/satispay_payments.d.ts +2 -2
- package/lib/resources/satispay_payments.js +8 -8
- package/lib/resources/shipments.cjs +9 -9
- package/lib/resources/shipments.d.cts +3 -3
- package/lib/resources/shipments.d.ts +2 -2
- package/lib/resources/shipments.js +8 -8
- package/lib/resources/shipping_categories.cjs +9 -9
- package/lib/resources/shipping_categories.d.cts +3 -3
- package/lib/resources/shipping_categories.d.ts +2 -2
- package/lib/resources/shipping_categories.js +8 -8
- package/lib/resources/shipping_method_tiers.cjs +9 -9
- package/lib/resources/shipping_method_tiers.d.cts +3 -3
- package/lib/resources/shipping_method_tiers.d.ts +2 -2
- package/lib/resources/shipping_method_tiers.js +8 -8
- package/lib/resources/shipping_methods.cjs +9 -9
- package/lib/resources/shipping_methods.d.cts +3 -3
- package/lib/resources/shipping_methods.d.ts +2 -2
- package/lib/resources/shipping_methods.js +8 -8
- package/lib/resources/shipping_weight_tiers.cjs +9 -9
- package/lib/resources/shipping_weight_tiers.d.cts +3 -3
- package/lib/resources/shipping_weight_tiers.d.ts +2 -2
- package/lib/resources/shipping_weight_tiers.js +8 -8
- package/lib/resources/shipping_zones.cjs +9 -9
- package/lib/resources/shipping_zones.d.cts +3 -3
- package/lib/resources/shipping_zones.d.ts +2 -2
- package/lib/resources/shipping_zones.js +8 -8
- package/lib/resources/sku_list_items.cjs +9 -9
- package/lib/resources/sku_list_items.d.cts +3 -3
- package/lib/resources/sku_list_items.d.ts +2 -2
- package/lib/resources/sku_list_items.js +8 -8
- package/lib/resources/sku_list_promotion_rules.cjs +9 -9
- package/lib/resources/sku_list_promotion_rules.d.cts +3 -3
- package/lib/resources/sku_list_promotion_rules.d.ts +2 -2
- package/lib/resources/sku_list_promotion_rules.js +8 -8
- package/lib/resources/sku_lists.cjs +9 -9
- package/lib/resources/sku_lists.d.cts +3 -3
- package/lib/resources/sku_lists.d.ts +2 -2
- package/lib/resources/sku_lists.js +8 -8
- package/lib/resources/sku_options.cjs +9 -9
- package/lib/resources/sku_options.d.cts +3 -3
- package/lib/resources/sku_options.d.ts +2 -2
- package/lib/resources/sku_options.js +8 -8
- package/lib/resources/skus.cjs +9 -9
- package/lib/resources/skus.d.cts +3 -3
- package/lib/resources/skus.d.ts +2 -2
- package/lib/resources/skus.js +8 -8
- package/lib/resources/stock_items.cjs +9 -9
- package/lib/resources/stock_items.d.cts +3 -3
- package/lib/resources/stock_items.d.ts +2 -2
- package/lib/resources/stock_items.js +8 -8
- package/lib/resources/stock_line_items.cjs +9 -9
- package/lib/resources/stock_line_items.d.cts +3 -3
- package/lib/resources/stock_line_items.d.ts +2 -2
- package/lib/resources/stock_line_items.js +8 -8
- package/lib/resources/stock_locations.cjs +9 -9
- package/lib/resources/stock_locations.d.cts +3 -3
- package/lib/resources/stock_locations.d.ts +2 -2
- package/lib/resources/stock_locations.js +8 -8
- package/lib/resources/stock_reservations.cjs +9 -9
- package/lib/resources/stock_reservations.d.cts +3 -3
- package/lib/resources/stock_reservations.d.ts +2 -2
- package/lib/resources/stock_reservations.js +8 -8
- package/lib/resources/stock_transfers.cjs +9 -9
- package/lib/resources/stock_transfers.d.cts +3 -3
- package/lib/resources/stock_transfers.d.ts +2 -2
- package/lib/resources/stock_transfers.js +8 -8
- package/lib/resources/stores.cjs +9 -9
- package/lib/resources/stores.d.cts +3 -3
- package/lib/resources/stores.d.ts +2 -2
- package/lib/resources/stores.js +8 -8
- package/lib/resources/stripe_gateways.cjs +9 -9
- package/lib/resources/stripe_gateways.d.cts +3 -3
- package/lib/resources/stripe_gateways.d.ts +2 -2
- package/lib/resources/stripe_gateways.js +8 -8
- package/lib/resources/stripe_payments.cjs +9 -9
- package/lib/resources/stripe_payments.d.cts +3 -3
- package/lib/resources/stripe_payments.d.ts +2 -2
- package/lib/resources/stripe_payments.js +8 -8
- package/lib/resources/stripe_tax_accounts.cjs +9 -9
- package/lib/resources/stripe_tax_accounts.d.cts +3 -3
- package/lib/resources/stripe_tax_accounts.d.ts +2 -2
- package/lib/resources/stripe_tax_accounts.js +8 -8
- package/lib/resources/subscription_models.cjs +9 -9
- package/lib/resources/subscription_models.d.cts +3 -3
- package/lib/resources/subscription_models.d.ts +2 -2
- package/lib/resources/subscription_models.js +8 -8
- package/lib/resources/tags.cjs +9 -9
- package/lib/resources/tags.d.cts +3 -3
- package/lib/resources/tags.d.ts +2 -2
- package/lib/resources/tags.js +8 -8
- package/lib/resources/talon_one_accounts.cjs +9 -9
- package/lib/resources/talon_one_accounts.d.cts +3 -3
- package/lib/resources/talon_one_accounts.d.ts +2 -2
- package/lib/resources/talon_one_accounts.js +8 -8
- package/lib/resources/tax_calculators.cjs +9 -9
- package/lib/resources/tax_calculators.d.cts +3 -3
- package/lib/resources/tax_calculators.d.ts +2 -2
- package/lib/resources/tax_calculators.js +8 -8
- package/lib/resources/tax_categories.cjs +9 -9
- package/lib/resources/tax_categories.d.cts +3 -3
- package/lib/resources/tax_categories.d.ts +2 -2
- package/lib/resources/tax_categories.js +8 -8
- package/lib/resources/tax_rules.cjs +9 -9
- package/lib/resources/tax_rules.d.cts +3 -3
- package/lib/resources/tax_rules.d.ts +2 -2
- package/lib/resources/tax_rules.js +8 -8
- package/lib/resources/taxjar_accounts.cjs +9 -9
- package/lib/resources/taxjar_accounts.d.cts +3 -3
- package/lib/resources/taxjar_accounts.d.ts +2 -2
- package/lib/resources/taxjar_accounts.js +8 -8
- package/lib/resources/transactions.cjs +9 -9
- package/lib/resources/transactions.d.cts +3 -3
- package/lib/resources/transactions.d.ts +2 -2
- package/lib/resources/transactions.js +8 -8
- package/lib/resources/versions.cjs +9 -9
- package/lib/resources/versions.d.cts +3 -3
- package/lib/resources/versions.d.ts +2 -2
- package/lib/resources/versions.js +8 -8
- package/lib/resources/vertex_accounts.cjs +9 -9
- package/lib/resources/vertex_accounts.d.cts +3 -3
- package/lib/resources/vertex_accounts.d.ts +2 -2
- package/lib/resources/vertex_accounts.js +8 -8
- package/lib/resources/voids.cjs +9 -9
- package/lib/resources/voids.d.cts +3 -3
- package/lib/resources/voids.d.ts +2 -2
- package/lib/resources/voids.js +8 -8
- package/lib/resources/webhooks.cjs +9 -9
- package/lib/resources/webhooks.d.cts +3 -3
- package/lib/resources/webhooks.d.ts +2 -2
- package/lib/resources/webhooks.js +8 -8
- package/lib/resources/wire_transfers.cjs +9 -9
- package/lib/resources/wire_transfers.d.cts +3 -3
- package/lib/resources/wire_transfers.d.ts +2 -2
- package/lib/resources/wire_transfers.js +8 -8
- package/lib/static.cjs +10 -10
- package/lib/static.d.cts +2 -2
- package/lib/static.d.ts +2 -2
- package/lib/static.js +9 -9
- package/lib/util.cjs +5 -5
- package/lib/util.js +1 -1
- package/package.json +6 -8
- package/lib/api-D2LyR3zD.d.cts +0 -18255
- package/lib/api-D8k2hYlQ.d.ts +0 -18255
- package/lib/chunk-2AIPAXOH.cjs +0 -65
- package/lib/chunk-2AIPAXOH.cjs.map +0 -1
- package/lib/chunk-2CPNHJAZ.cjs +0 -51
- package/lib/chunk-2CPNHJAZ.cjs.map +0 -1
- package/lib/chunk-2H2ODZUY.cjs +0 -160
- package/lib/chunk-2H2ODZUY.cjs.map +0 -1
- package/lib/chunk-2JB3IVP4.js +0 -99
- package/lib/chunk-2JB3IVP4.js.map +0 -1
- package/lib/chunk-2M54XID3.cjs +0 -51
- package/lib/chunk-2M54XID3.cjs.map +0 -1
- package/lib/chunk-2M5MIMZG.cjs +0 -55
- package/lib/chunk-2M5MIMZG.cjs.map +0 -1
- package/lib/chunk-2QBP2WHJ.js +0 -49
- package/lib/chunk-2QBP2WHJ.js.map +0 -1
- package/lib/chunk-2VNQTC3B.cjs +0 -56
- package/lib/chunk-2VNQTC3B.cjs.map +0 -1
- package/lib/chunk-2XDNWGMO.cjs +0 -99
- package/lib/chunk-2XDNWGMO.cjs.map +0 -1
- package/lib/chunk-2ZVHALAO.cjs +0 -39
- package/lib/chunk-2ZVHALAO.cjs.map +0 -1
- package/lib/chunk-33CXJXIW.js +0 -63
- package/lib/chunk-33CXJXIW.js.map +0 -1
- package/lib/chunk-34MN4L45.js +0 -37
- package/lib/chunk-34MN4L45.js.map +0 -1
- package/lib/chunk-3CBCQQBN.cjs +0 -79
- package/lib/chunk-3CBCQQBN.cjs.map +0 -1
- package/lib/chunk-3FQU4LWE.js +0 -53
- package/lib/chunk-3FQU4LWE.js.map +0 -1
- package/lib/chunk-3KNN5WPE.js +0 -55
- package/lib/chunk-3KNN5WPE.js.map +0 -1
- package/lib/chunk-3QQQMHYY.js +0 -72
- package/lib/chunk-3QQQMHYY.js.map +0 -1
- package/lib/chunk-3WTRPII2.cjs +0 -47
- package/lib/chunk-3WTRPII2.cjs.map +0 -1
- package/lib/chunk-3X6OVCVT.cjs +0 -57
- package/lib/chunk-3X6OVCVT.cjs.map +0 -1
- package/lib/chunk-3YINNWNG.cjs +0 -51
- package/lib/chunk-3YINNWNG.cjs.map +0 -1
- package/lib/chunk-3ZOHHEJR.js +0 -59
- package/lib/chunk-3ZOHHEJR.js.map +0 -1
- package/lib/chunk-43SLAYP5.js +0 -68
- package/lib/chunk-43SLAYP5.js.map +0 -1
- package/lib/chunk-45YSQMGA.cjs +0 -81
- package/lib/chunk-45YSQMGA.cjs.map +0 -1
- package/lib/chunk-46ESSSNR.cjs +0 -102
- package/lib/chunk-46ESSSNR.cjs.map +0 -1
- package/lib/chunk-4IOIA2JQ.cjs +0 -93
- package/lib/chunk-4IOIA2JQ.cjs.map +0 -1
- package/lib/chunk-4L73VYT5.cjs +0 -51
- package/lib/chunk-4L73VYT5.cjs.map +0 -1
- package/lib/chunk-4MCWJ5GT.js +0 -57
- package/lib/chunk-4MCWJ5GT.js.map +0 -1
- package/lib/chunk-4MDMKEMH.js +0 -645
- package/lib/chunk-4MDMKEMH.js.map +0 -1
- package/lib/chunk-4XQNILDJ.js +0 -59
- package/lib/chunk-4XQNILDJ.js.map +0 -1
- package/lib/chunk-5BIP4OLZ.js +0 -54
- package/lib/chunk-5BIP4OLZ.js.map +0 -1
- package/lib/chunk-5QHMVNEQ.cjs +0 -34
- package/lib/chunk-5QHMVNEQ.cjs.map +0 -1
- package/lib/chunk-5TL34ZY6.js +0 -49
- package/lib/chunk-5TL34ZY6.js.map +0 -1
- package/lib/chunk-5WUI6OHH.cjs +0 -43
- package/lib/chunk-5WUI6OHH.cjs.map +0 -1
- package/lib/chunk-62EOOGD4.js +0 -128
- package/lib/chunk-62EOOGD4.js.map +0 -1
- package/lib/chunk-65LSQZTV.js +0 -45
- package/lib/chunk-65LSQZTV.js.map +0 -1
- package/lib/chunk-67LLQOPH.js +0 -55
- package/lib/chunk-67LLQOPH.js.map +0 -1
- package/lib/chunk-67TJ6ALR.js +0 -47
- package/lib/chunk-67TJ6ALR.js.map +0 -1
- package/lib/chunk-67U7A4FV.cjs +0 -72
- package/lib/chunk-67U7A4FV.cjs.map +0 -1
- package/lib/chunk-6DRGTFBA.cjs +0 -57
- package/lib/chunk-6DRGTFBA.cjs.map +0 -1
- package/lib/chunk-6EIS4TN3.js +0 -49
- package/lib/chunk-6EIS4TN3.js.map +0 -1
- package/lib/chunk-6KOFQEOI.cjs +0 -60
- package/lib/chunk-6KOFQEOI.cjs.map +0 -1
- package/lib/chunk-6KXHU2QJ.js +0 -70
- package/lib/chunk-6KXHU2QJ.js.map +0 -1
- package/lib/chunk-6LHRWK5U.cjs +0 -39
- package/lib/chunk-6LHRWK5U.cjs.map +0 -1
- package/lib/chunk-6PKJDHVC.js +0 -48
- package/lib/chunk-6PKJDHVC.js.map +0 -1
- package/lib/chunk-6S7EJUCA.cjs +0 -47
- package/lib/chunk-6S7EJUCA.cjs.map +0 -1
- package/lib/chunk-6SGYQRO6.js +0 -53
- package/lib/chunk-6SGYQRO6.js.map +0 -1
- package/lib/chunk-6SO2W3YA.js +0 -56
- package/lib/chunk-6SO2W3YA.js.map +0 -1
- package/lib/chunk-6STKOQR7.cjs +0 -63
- package/lib/chunk-6STKOQR7.cjs.map +0 -1
- package/lib/chunk-7P3ZTIQX.cjs +0 -55
- package/lib/chunk-7P3ZTIQX.cjs.map +0 -1
- package/lib/chunk-7YWXHAMP.cjs +0 -61
- package/lib/chunk-7YWXHAMP.cjs.map +0 -1
- package/lib/chunk-7Z7FQA33.cjs +0 -661
- package/lib/chunk-7Z7FQA33.cjs.map +0 -1
- package/lib/chunk-A2SZPZSG.cjs +0 -50
- package/lib/chunk-A2SZPZSG.cjs.map +0 -1
- package/lib/chunk-A3VWVK2F.js +0 -36
- package/lib/chunk-A3VWVK2F.js.map +0 -1
- package/lib/chunk-A4MUL4NB.js +0 -53
- package/lib/chunk-A4MUL4NB.js.map +0 -1
- package/lib/chunk-A5KAGODH.js +0 -51
- package/lib/chunk-A5KAGODH.js.map +0 -1
- package/lib/chunk-ALCZSKPR.cjs +0 -88
- package/lib/chunk-ALCZSKPR.cjs.map +0 -1
- package/lib/chunk-AWV5Y4SH.js +0 -70
- package/lib/chunk-AWV5Y4SH.js.map +0 -1
- package/lib/chunk-BGH55KTL.js +0 -55
- package/lib/chunk-BGH55KTL.js.map +0 -1
- package/lib/chunk-BGHPRKU4.cjs +0 -51
- package/lib/chunk-BGHPRKU4.cjs.map +0 -1
- package/lib/chunk-BHXCVURA.cjs +0 -130
- package/lib/chunk-BHXCVURA.cjs.map +0 -1
- package/lib/chunk-BNWM637R.js +0 -73
- package/lib/chunk-BNWM637R.js.map +0 -1
- package/lib/chunk-BQ4VRKE7.js +0 -28
- package/lib/chunk-BQ4VRKE7.js.map +0 -1
- package/lib/chunk-BRXYDOGG.cjs +0 -56
- package/lib/chunk-BRXYDOGG.cjs.map +0 -1
- package/lib/chunk-BT72RZCE.js +0 -36
- package/lib/chunk-BT72RZCE.js.map +0 -1
- package/lib/chunk-BTLPF6RH.js +0 -49
- package/lib/chunk-BTLPF6RH.js.map +0 -1
- package/lib/chunk-BUHV5UDN.cjs +0 -54
- package/lib/chunk-BUHV5UDN.cjs.map +0 -1
- package/lib/chunk-C27B7IUW.cjs +0 -39
- package/lib/chunk-C27B7IUW.cjs.map +0 -1
- package/lib/chunk-C47UWH7R.js +0 -48
- package/lib/chunk-C47UWH7R.js.map +0 -1
- package/lib/chunk-C6ACTKJH.js +0 -48
- package/lib/chunk-C6ACTKJH.js.map +0 -1
- package/lib/chunk-CETB5FAI.js +0 -41
- package/lib/chunk-CETB5FAI.js.map +0 -1
- package/lib/chunk-CHYP5F26.js +0 -59
- package/lib/chunk-CHYP5F26.js.map +0 -1
- package/lib/chunk-CQASXR3J.cjs +0 -60
- package/lib/chunk-CQASXR3J.cjs.map +0 -1
- package/lib/chunk-D2HUJSJV.cjs +0 -74
- package/lib/chunk-D2HUJSJV.cjs.map +0 -1
- package/lib/chunk-D7SALAS2.cjs +0 -29
- package/lib/chunk-D7SALAS2.cjs.map +0 -1
- package/lib/chunk-D7VHCT5M.cjs +0 -47
- package/lib/chunk-D7VHCT5M.cjs.map +0 -1
- package/lib/chunk-DIE5NWNX.js +0 -105
- package/lib/chunk-DIE5NWNX.js.map +0 -1
- package/lib/chunk-DM62R5CL.cjs +0 -50
- package/lib/chunk-DM62R5CL.cjs.map +0 -1
- package/lib/chunk-DOY7VJPG.js +0 -58
- package/lib/chunk-DOY7VJPG.js.map +0 -1
- package/lib/chunk-DPE4FTTS.cjs +0 -42
- package/lib/chunk-DPE4FTTS.cjs.map +0 -1
- package/lib/chunk-DPJDEC6A.js +0 -42
- package/lib/chunk-DPJDEC6A.js.map +0 -1
- package/lib/chunk-DQWWKXLR.cjs +0 -51
- package/lib/chunk-DQWWKXLR.cjs.map +0 -1
- package/lib/chunk-E2EVY45K.js +0 -48
- package/lib/chunk-E2EVY45K.js.map +0 -1
- package/lib/chunk-E2G3K7H4.js +0 -32
- package/lib/chunk-E2G3K7H4.js.map +0 -1
- package/lib/chunk-EAR4AXVU.cjs +0 -51
- package/lib/chunk-EAR4AXVU.cjs.map +0 -1
- package/lib/chunk-EFQH4OGQ.cjs +0 -46
- package/lib/chunk-EFQH4OGQ.cjs.map +0 -1
- package/lib/chunk-EJNNEY2F.cjs +0 -60
- package/lib/chunk-EJNNEY2F.cjs.map +0 -1
- package/lib/chunk-ERA2COOU.js +0 -37
- package/lib/chunk-ERA2COOU.js.map +0 -1
- package/lib/chunk-ESGRB4YB.cjs +0 -55
- package/lib/chunk-ESGRB4YB.cjs.map +0 -1
- package/lib/chunk-EVVUYC7T.cjs +0 -47
- package/lib/chunk-EVVUYC7T.cjs.map +0 -1
- package/lib/chunk-EZHUH52J.cjs +0 -54
- package/lib/chunk-EZHUH52J.cjs.map +0 -1
- package/lib/chunk-F3UMNXXH.js +0 -45
- package/lib/chunk-F3UMNXXH.js.map +0 -1
- package/lib/chunk-F46RW7IU.cjs +0 -109
- package/lib/chunk-F46RW7IU.cjs.map +0 -1
- package/lib/chunk-F4P2PUF7.cjs +0 -73
- package/lib/chunk-F4P2PUF7.cjs.map +0 -1
- package/lib/chunk-F6WABN7F.cjs +0 -105
- package/lib/chunk-F6WABN7F.cjs.map +0 -1
- package/lib/chunk-FDW7JX5A.cjs +0 -55
- package/lib/chunk-FDW7JX5A.cjs.map +0 -1
- package/lib/chunk-FFX5MED5.js +0 -55
- package/lib/chunk-FFX5MED5.js.map +0 -1
- package/lib/chunk-FI2PWG6C.js +0 -63
- package/lib/chunk-FI2PWG6C.js.map +0 -1
- package/lib/chunk-FI7BWBCX.js +0 -63
- package/lib/chunk-FI7BWBCX.js.map +0 -1
- package/lib/chunk-FIM76CMU.cjs +0 -42
- package/lib/chunk-FIM76CMU.cjs.map +0 -1
- package/lib/chunk-FMGDNZQ6.cjs +0 -51
- package/lib/chunk-FMGDNZQ6.cjs.map +0 -1
- package/lib/chunk-FTYGJZZM.js +0 -44
- package/lib/chunk-FTYGJZZM.js.map +0 -1
- package/lib/chunk-FUDBWYKD.js +0 -49
- package/lib/chunk-FUDBWYKD.js.map +0 -1
- package/lib/chunk-G2ZCHH4W.js +0 -55
- package/lib/chunk-G2ZCHH4W.js.map +0 -1
- package/lib/chunk-G5IOYKFS.js +0 -53
- package/lib/chunk-G5IOYKFS.js.map +0 -1
- package/lib/chunk-G74VYKRY.js +0 -45
- package/lib/chunk-G74VYKRY.js.map +0 -1
- package/lib/chunk-G7MROYQP.cjs +0 -42
- package/lib/chunk-G7MROYQP.cjs.map +0 -1
- package/lib/chunk-GAPLQGJO.js +0 -97
- package/lib/chunk-GAPLQGJO.js.map +0 -1
- package/lib/chunk-GHYWZ5KT.cjs +0 -99
- package/lib/chunk-GHYWZ5KT.cjs.map +0 -1
- package/lib/chunk-GJOZR5TC.cjs +0 -93
- package/lib/chunk-GJOZR5TC.cjs.map +0 -1
- package/lib/chunk-GKUFMSZL.js +0 -32
- package/lib/chunk-GKUFMSZL.js.map +0 -1
- package/lib/chunk-GLL264QG.cjs +0 -55
- package/lib/chunk-GLL264QG.cjs.map +0 -1
- package/lib/chunk-H5CKBXQS.js +0 -53
- package/lib/chunk-H5CKBXQS.js.map +0 -1
- package/lib/chunk-H7EX22DB.cjs +0 -65
- package/lib/chunk-H7EX22DB.cjs.map +0 -1
- package/lib/chunk-HBDXHKBE.js +0 -91
- package/lib/chunk-HBDXHKBE.js.map +0 -1
- package/lib/chunk-HBVSEXIQ.js +0 -58
- package/lib/chunk-HBVSEXIQ.js.map +0 -1
- package/lib/chunk-HOJUXLZD.cjs +0 -75
- package/lib/chunk-HOJUXLZD.cjs.map +0 -1
- package/lib/chunk-HU6DRUWJ.js +0 -86
- package/lib/chunk-HU6DRUWJ.js.map +0 -1
- package/lib/chunk-HUDH634O.cjs +0 -67
- package/lib/chunk-HUDH634O.cjs.map +0 -1
- package/lib/chunk-I2NZB6KN.js +0 -44
- package/lib/chunk-I2NZB6KN.js.map +0 -1
- package/lib/chunk-I3ZMOPMJ.js +0 -52
- package/lib/chunk-I3ZMOPMJ.js.map +0 -1
- package/lib/chunk-I56ZABWO.cjs +0 -38
- package/lib/chunk-I56ZABWO.cjs.map +0 -1
- package/lib/chunk-I5VOVSS7.cjs +0 -71
- package/lib/chunk-I5VOVSS7.cjs.map +0 -1
- package/lib/chunk-I64U2VMD.cjs +0 -51
- package/lib/chunk-I64U2VMD.cjs.map +0 -1
- package/lib/chunk-IHPFHOEJ.js +0 -40
- package/lib/chunk-IHPFHOEJ.js.map +0 -1
- package/lib/chunk-IKHD5UQP.cjs +0 -163
- package/lib/chunk-IKHD5UQP.cjs.map +0 -1
- package/lib/chunk-INW4SZG7.js +0 -93
- package/lib/chunk-INW4SZG7.js.map +0 -1
- package/lib/chunk-IODJPN7Z.js +0 -77
- package/lib/chunk-IODJPN7Z.js.map +0 -1
- package/lib/chunk-IQQNG3U2.cjs +0 -55
- package/lib/chunk-IQQNG3U2.cjs.map +0 -1
- package/lib/chunk-IQVSM3MS.js +0 -57
- package/lib/chunk-IQVSM3MS.js.map +0 -1
- package/lib/chunk-IT2MWRJY.js +0 -54
- package/lib/chunk-IT2MWRJY.js.map +0 -1
- package/lib/chunk-IXOAGKRD.cjs +0 -65
- package/lib/chunk-IXOAGKRD.cjs.map +0 -1
- package/lib/chunk-IYPHDMBD.js +0 -52
- package/lib/chunk-IYPHDMBD.js.map +0 -1
- package/lib/chunk-J32Z2XNX.cjs +0 -57
- package/lib/chunk-J32Z2XNX.cjs.map +0 -1
- package/lib/chunk-J3IOXLY2.cjs +0 -107
- package/lib/chunk-J3IOXLY2.cjs.map +0 -1
- package/lib/chunk-J42WGTN6.cjs +0 -50
- package/lib/chunk-J42WGTN6.cjs.map +0 -1
- package/lib/chunk-JAOFRM22.js +0 -61
- package/lib/chunk-JAOFRM22.js.map +0 -1
- package/lib/chunk-JCOJGOXF.cjs +0 -107
- package/lib/chunk-JCOJGOXF.cjs.map +0 -1
- package/lib/chunk-JD3MI7AO.js +0 -55
- package/lib/chunk-JD3MI7AO.js.map +0 -1
- package/lib/chunk-JDFDWBXQ.js +0 -53
- package/lib/chunk-JDFDWBXQ.js.map +0 -1
- package/lib/chunk-JLLZQ7JR.cjs +0 -57
- package/lib/chunk-JLLZQ7JR.cjs.map +0 -1
- package/lib/chunk-JPKZBEAY.js +0 -59
- package/lib/chunk-JPKZBEAY.js.map +0 -1
- package/lib/chunk-JPX4RLBV.js +0 -158
- package/lib/chunk-JPX4RLBV.js.map +0 -1
- package/lib/chunk-JUVEIRM4.cjs +0 -47
- package/lib/chunk-JUVEIRM4.cjs.map +0 -1
- package/lib/chunk-JVF5KY2J.cjs +0 -22
- package/lib/chunk-JVF5KY2J.cjs.map +0 -1
- package/lib/chunk-JWB5Y2WT.cjs +0 -58
- package/lib/chunk-JWB5Y2WT.cjs.map +0 -1
- package/lib/chunk-JWLNUOL5.js +0 -79
- package/lib/chunk-JWLNUOL5.js.map +0 -1
- package/lib/chunk-JYSIXEKG.cjs +0 -54
- package/lib/chunk-JYSIXEKG.cjs.map +0 -1
- package/lib/chunk-K2E4PX3F.cjs +0 -51
- package/lib/chunk-K2E4PX3F.cjs.map +0 -1
- package/lib/chunk-K3CF32TJ.cjs +0 -46
- package/lib/chunk-K3CF32TJ.cjs.map +0 -1
- package/lib/chunk-K6MX6OZL.js +0 -44
- package/lib/chunk-K6MX6OZL.js.map +0 -1
- package/lib/chunk-K7AR7Z3J.cjs +0 -58
- package/lib/chunk-K7AR7Z3J.cjs.map +0 -1
- package/lib/chunk-KAZKQXUO.js +0 -103
- package/lib/chunk-KAZKQXUO.js.map +0 -1
- package/lib/chunk-KDDMRBB6.cjs +0 -30
- package/lib/chunk-KDDMRBB6.cjs.map +0 -1
- package/lib/chunk-KGZ3FTYR.cjs +0 -43
- package/lib/chunk-KGZ3FTYR.cjs.map +0 -1
- package/lib/chunk-KM27D322.cjs +0 -70
- package/lib/chunk-KM27D322.cjs.map +0 -1
- package/lib/chunk-KMWKIU65.js +0 -107
- package/lib/chunk-KMWKIU65.js.map +0 -1
- package/lib/chunk-KT2FGWBT.cjs +0 -59
- package/lib/chunk-KT2FGWBT.cjs.map +0 -1
- package/lib/chunk-KVRZZTDE.js +0 -40
- package/lib/chunk-KVRZZTDE.js.map +0 -1
- package/lib/chunk-KWOKL6HK.cjs +0 -59
- package/lib/chunk-KWOKL6HK.cjs.map +0 -1
- package/lib/chunk-LE4I5AHS.js +0 -53
- package/lib/chunk-LE4I5AHS.js.map +0 -1
- package/lib/chunk-LESXALEZ.js +0 -49
- package/lib/chunk-LESXALEZ.js.map +0 -1
- package/lib/chunk-LF3CZYGK.js +0 -49
- package/lib/chunk-LF3CZYGK.js.map +0 -1
- package/lib/chunk-LGOJTWKL.js +0 -52
- package/lib/chunk-LGOJTWKL.js.map +0 -1
- package/lib/chunk-LIIFLHEH.cjs +0 -286
- package/lib/chunk-LIIFLHEH.cjs.map +0 -1
- package/lib/chunk-LKBPLGXI.cjs +0 -57
- package/lib/chunk-LKBPLGXI.cjs.map +0 -1
- package/lib/chunk-LKVJRTT2.cjs +0 -72
- package/lib/chunk-LKVJRTT2.cjs.map +0 -1
- package/lib/chunk-LTCWS2HF.cjs +0 -43
- package/lib/chunk-LTCWS2HF.cjs.map +0 -1
- package/lib/chunk-LUS6TTEC.js +0 -284
- package/lib/chunk-LUS6TTEC.js.map +0 -1
- package/lib/chunk-M37U5CLH.js +0 -102
- package/lib/chunk-M37U5CLH.js.map +0 -1
- package/lib/chunk-M6BKGQCR.js +0 -100
- package/lib/chunk-M6BKGQCR.js.map +0 -1
- package/lib/chunk-MBROL4C2.cjs +0 -101
- package/lib/chunk-MBROL4C2.cjs.map +0 -1
- package/lib/chunk-MCZXCMRV.js +0 -97
- package/lib/chunk-MCZXCMRV.js.map +0 -1
- package/lib/chunk-MHCLPVOI.js +0 -56
- package/lib/chunk-MHCLPVOI.js.map +0 -1
- package/lib/chunk-MHQOHOZS.js +0 -97
- package/lib/chunk-MHQOHOZS.js.map +0 -1
- package/lib/chunk-MKV2B7P5.cjs +0 -46
- package/lib/chunk-MKV2B7P5.cjs.map +0 -1
- package/lib/chunk-MOKBZVUU.js +0 -53
- package/lib/chunk-MOKBZVUU.js.map +0 -1
- package/lib/chunk-MUMTGXL2.js +0 -57
- package/lib/chunk-MUMTGXL2.js.map +0 -1
- package/lib/chunk-MXT6VH7V.js +0 -45
- package/lib/chunk-MXT6VH7V.js.map +0 -1
- package/lib/chunk-MYWCHH2I.cjs +0 -79
- package/lib/chunk-MYWCHH2I.cjs.map +0 -1
- package/lib/chunk-N35FM5P4.js +0 -64
- package/lib/chunk-N35FM5P4.js.map +0 -1
- package/lib/chunk-N4COQM5Q.js +0 -37
- package/lib/chunk-N4COQM5Q.js.map +0 -1
- package/lib/chunk-NEVN2SMR.js +0 -53
- package/lib/chunk-NEVN2SMR.js.map +0 -1
- package/lib/chunk-NQHQV4PY.js +0 -31
- package/lib/chunk-NQHQV4PY.js.map +0 -1
- package/lib/chunk-NRZBSJPM.js +0 -45
- package/lib/chunk-NRZBSJPM.js.map +0 -1
- package/lib/chunk-NTAREPLJ.js +0 -91
- package/lib/chunk-NTAREPLJ.js.map +0 -1
- package/lib/chunk-NVNPOVIQ.cjs +0 -46
- package/lib/chunk-NVNPOVIQ.cjs.map +0 -1
- package/lib/chunk-NWKIFDQH.cjs +0 -55
- package/lib/chunk-NWKIFDQH.cjs.map +0 -1
- package/lib/chunk-O3NWYOPV.cjs +0 -55
- package/lib/chunk-O3NWYOPV.cjs.map +0 -1
- package/lib/chunk-O66EZDG2.cjs +0 -53
- package/lib/chunk-O66EZDG2.cjs.map +0 -1
- package/lib/chunk-OA4DVMEQ.cjs +0 -59
- package/lib/chunk-OA4DVMEQ.cjs.map +0 -1
- package/lib/chunk-OA7RZ24N.js +0 -49
- package/lib/chunk-OA7RZ24N.js.map +0 -1
- package/lib/chunk-OEUSTDGS.cjs +0 -42
- package/lib/chunk-OEUSTDGS.cjs.map +0 -1
- package/lib/chunk-OH5533KN.cjs +0 -55
- package/lib/chunk-OH5533KN.cjs.map +0 -1
- package/lib/chunk-OL6PRNU5.js +0 -49
- package/lib/chunk-OL6PRNU5.js.map +0 -1
- package/lib/chunk-OPPZLGKC.js +0 -53
- package/lib/chunk-OPPZLGKC.js.map +0 -1
- package/lib/chunk-OSZIVS3X.cjs +0 -99
- package/lib/chunk-OSZIVS3X.cjs.map +0 -1
- package/lib/chunk-OV4JT553.cjs +0 -51
- package/lib/chunk-OV4JT553.cjs.map +0 -1
- package/lib/chunk-P2OLPCWV.cjs +0 -54
- package/lib/chunk-P2OLPCWV.cjs.map +0 -1
- package/lib/chunk-P7E2LQ6Q.js +0 -53
- package/lib/chunk-P7E2LQ6Q.js.map +0 -1
- package/lib/chunk-PA43CMMI.cjs +0 -55
- package/lib/chunk-PA43CMMI.cjs.map +0 -1
- package/lib/chunk-PBE4XAIR.cjs +0 -65
- package/lib/chunk-PBE4XAIR.cjs.map +0 -1
- package/lib/chunk-PBIARBZH.cjs +0 -51
- package/lib/chunk-PBIARBZH.cjs.map +0 -1
- package/lib/chunk-PLIS7EYD.js +0 -41
- package/lib/chunk-PLIS7EYD.js.map +0 -1
- package/lib/chunk-PXSMF4QS.cjs +0 -57
- package/lib/chunk-PXSMF4QS.cjs.map +0 -1
- package/lib/chunk-Q3ULISRX.cjs +0 -57
- package/lib/chunk-Q3ULISRX.cjs.map +0 -1
- package/lib/chunk-QB7GGVK7.js +0 -52
- package/lib/chunk-QB7GGVK7.js.map +0 -1
- package/lib/chunk-QGFAOPJG.cjs +0 -26
- package/lib/chunk-QGFAOPJG.cjs.map +0 -1
- package/lib/chunk-QPQRYXII.js +0 -44
- package/lib/chunk-QPQRYXII.js.map +0 -1
- package/lib/chunk-QVJM26QQ.cjs +0 -95
- package/lib/chunk-QVJM26QQ.cjs.map +0 -1
- package/lib/chunk-QXYNFQDJ.js +0 -24
- package/lib/chunk-QXYNFQDJ.js.map +0 -1
- package/lib/chunk-QYVJGMYT.cjs +0 -51
- package/lib/chunk-QYVJGMYT.cjs.map +0 -1
- package/lib/chunk-R2LRLUUY.js +0 -35
- package/lib/chunk-R2LRLUUY.js.map +0 -1
- package/lib/chunk-R5NSJSKB.js +0 -49
- package/lib/chunk-R5NSJSKB.js.map +0 -1
- package/lib/chunk-RAF3LK5T.cjs +0 -51
- package/lib/chunk-RAF3LK5T.cjs.map +0 -1
- package/lib/chunk-RHG3UVET.cjs +0 -44
- package/lib/chunk-RHG3UVET.cjs.map +0 -1
- package/lib/chunk-RJJQU44M.js +0 -45
- package/lib/chunk-RJJQU44M.js.map +0 -1
- package/lib/chunk-RK3E3UJ2.cjs +0 -61
- package/lib/chunk-RK3E3UJ2.cjs.map +0 -1
- package/lib/chunk-RZMSILW7.js +0 -71
- package/lib/chunk-RZMSILW7.js.map +0 -1
- package/lib/chunk-SDGSOWXI.js +0 -49
- package/lib/chunk-SDGSOWXI.js.map +0 -1
- package/lib/chunk-SFFSVEXJ.js +0 -55
- package/lib/chunk-SFFSVEXJ.js.map +0 -1
- package/lib/chunk-SKETQJTW.cjs +0 -59
- package/lib/chunk-SKETQJTW.cjs.map +0 -1
- package/lib/chunk-SRW7OWVS.cjs +0 -40
- package/lib/chunk-SRW7OWVS.cjs.map +0 -1
- package/lib/chunk-SWBSSC3A.js +0 -97
- package/lib/chunk-SWBSSC3A.js.map +0 -1
- package/lib/chunk-SXPZRQBF.js +0 -49
- package/lib/chunk-SXPZRQBF.js.map +0 -1
- package/lib/chunk-T2VDBKD4.js +0 -44
- package/lib/chunk-T2VDBKD4.js.map +0 -1
- package/lib/chunk-T5AO4445.cjs +0 -49
- package/lib/chunk-T5AO4445.cjs.map +0 -1
- package/lib/chunk-TE3N57V6.js +0 -40
- package/lib/chunk-TE3N57V6.js.map +0 -1
- package/lib/chunk-TFJYQUEH.cjs +0 -51
- package/lib/chunk-TFJYQUEH.cjs.map +0 -1
- package/lib/chunk-TIINXXHU.cjs +0 -46
- package/lib/chunk-TIINXXHU.cjs.map +0 -1
- package/lib/chunk-TLOIOTYF.cjs +0 -66
- package/lib/chunk-TLOIOTYF.cjs.map +0 -1
- package/lib/chunk-TWL4WEOL.js +0 -49
- package/lib/chunk-TWL4WEOL.js.map +0 -1
- package/lib/chunk-TZAGUXNS.cjs +0 -61
- package/lib/chunk-TZAGUXNS.cjs.map +0 -1
- package/lib/chunk-U22VLCMN.cjs +0 -284
- package/lib/chunk-U22VLCMN.cjs.map +0 -1
- package/lib/chunk-U25QRMJY.js +0 -28
- package/lib/chunk-U25QRMJY.js.map +0 -1
- package/lib/chunk-U4ELOYK7.cjs +0 -42
- package/lib/chunk-U4ELOYK7.cjs.map +0 -1
- package/lib/chunk-U7OGOZ5B.cjs +0 -51
- package/lib/chunk-U7OGOZ5B.cjs.map +0 -1
- package/lib/chunk-UEDVN7C4.js +0 -49
- package/lib/chunk-UEDVN7C4.js.map +0 -1
- package/lib/chunk-UEQ3CRVM.cjs +0 -50
- package/lib/chunk-UEQ3CRVM.cjs.map +0 -1
- package/lib/chunk-UG5XMVH3.cjs +0 -50
- package/lib/chunk-UG5XMVH3.cjs.map +0 -1
- package/lib/chunk-URMWXBVU.cjs +0 -99
- package/lib/chunk-URMWXBVU.cjs.map +0 -1
- package/lib/chunk-UUY77JM3.js +0 -151
- package/lib/chunk-UUY77JM3.js.map +0 -1
- package/lib/chunk-UWM5SGDS.js +0 -65
- package/lib/chunk-UWM5SGDS.js.map +0 -1
- package/lib/chunk-VDC2LQMB.cjs +0 -57
- package/lib/chunk-VDC2LQMB.cjs.map +0 -1
- package/lib/chunk-VEBN2D2K.js +0 -53
- package/lib/chunk-VEBN2D2K.js.map +0 -1
- package/lib/chunk-VGMMPMUL.js +0 -55
- package/lib/chunk-VGMMPMUL.js.map +0 -1
- package/lib/chunk-VKNNJ5CS.js +0 -49
- package/lib/chunk-VKNNJ5CS.js.map +0 -1
- package/lib/chunk-VO5QTCJ4.js +0 -97
- package/lib/chunk-VO5QTCJ4.js.map +0 -1
- package/lib/chunk-VRJJX4JV.js +0 -40
- package/lib/chunk-VRJJX4JV.js.map +0 -1
- package/lib/chunk-VT5HP44I.js +0 -49
- package/lib/chunk-VT5HP44I.js.map +0 -1
- package/lib/chunk-VUVL5VPT.js +0 -49
- package/lib/chunk-VUVL5VPT.js.map +0 -1
- package/lib/chunk-VZGJGOH3.js +0 -55
- package/lib/chunk-VZGJGOH3.js.map +0 -1
- package/lib/chunk-W2EFIUTW.js +0 -40
- package/lib/chunk-W2EFIUTW.js.map +0 -1
- package/lib/chunk-WAC3LO4S.cjs +0 -51
- package/lib/chunk-WAC3LO4S.cjs.map +0 -1
- package/lib/chunk-WFBWZVOK.js +0 -77
- package/lib/chunk-WFBWZVOK.js.map +0 -1
- package/lib/chunk-WK3SIZUG.js +0 -41
- package/lib/chunk-WK3SIZUG.js.map +0 -1
- package/lib/chunk-WLTZ66G4.cjs +0 -38
- package/lib/chunk-WLTZ66G4.cjs.map +0 -1
- package/lib/chunk-WO4S2ZUQ.js +0 -49
- package/lib/chunk-WO4S2ZUQ.js.map +0 -1
- package/lib/chunk-XD7GS4QW.js +0 -20
- package/lib/chunk-XD7GS4QW.js.map +0 -1
- package/lib/chunk-XFHMLWZM.js +0 -63
- package/lib/chunk-XFHMLWZM.js.map +0 -1
- package/lib/chunk-XKERR6OR.js +0 -276
- package/lib/chunk-XKERR6OR.js.map +0 -1
- package/lib/chunk-XOVAUMDC.cjs +0 -55
- package/lib/chunk-XOVAUMDC.cjs.map +0 -1
- package/lib/chunk-XYBXDS3Z.cjs +0 -30
- package/lib/chunk-XYBXDS3Z.cjs.map +0 -1
- package/lib/chunk-Y3NZRCF4.js +0 -49
- package/lib/chunk-Y3NZRCF4.js.map +0 -1
- package/lib/chunk-YDMB4XPA.cjs +0 -57
- package/lib/chunk-YDMB4XPA.cjs.map +0 -1
- package/lib/chunk-YIABS6K6.js +0 -57
- package/lib/chunk-YIABS6K6.js.map +0 -1
- package/lib/chunk-YII77MGK.cjs +0 -99
- package/lib/chunk-YII77MGK.cjs.map +0 -1
- package/lib/chunk-YPGYBULL.cjs +0 -33
- package/lib/chunk-YPGYBULL.cjs.map +0 -1
- package/lib/chunk-YTXFX5LA.js +0 -27
- package/lib/chunk-YTXFX5LA.js.map +0 -1
- package/lib/chunk-YVF52KQK.js +0 -58
- package/lib/chunk-YVF52KQK.js.map +0 -1
- package/lib/chunk-YX4ZQEON.cjs +0 -67
- package/lib/chunk-YX4ZQEON.cjs.map +0 -1
- package/lib/chunk-YY5ENJSH.cjs +0 -63
- package/lib/chunk-YY5ENJSH.cjs.map +0 -1
- package/lib/chunk-YYI4OFL3.js +0 -48
- package/lib/chunk-YYI4OFL3.js.map +0 -1
- package/lib/chunk-YZZQ7GVQ.js +0 -65
- package/lib/chunk-YZZQ7GVQ.js.map +0 -1
- package/lib/chunk-Z66CWIH5.cjs +0 -51
- package/lib/chunk-Z66CWIH5.cjs.map +0 -1
- package/lib/chunk-ZLFWYCCG.cjs +0 -34
- package/lib/chunk-ZLFWYCCG.cjs.map +0 -1
- package/lib/chunk-ZPEK2ZCL.cjs +0 -55
- package/lib/chunk-ZPEK2ZCL.cjs.map +0 -1
- package/lib/chunk-ZSG25S6U.cjs +0 -51
- package/lib/chunk-ZSG25S6U.cjs.map +0 -1
- package/lib/chunk-ZSH3A37I.js +0 -55
- package/lib/chunk-ZSH3A37I.js.map +0 -1
- package/lib/chunk-ZSWW2XGD.cjs +0 -57
- package/lib/chunk-ZSWW2XGD.cjs.map +0 -1
- package/lib/chunk-ZU7GFVQ6.js +0 -153
- package/lib/chunk-ZU7GFVQ6.js.map +0 -1
- package/lib/chunk-ZWVME7CU.cjs +0 -153
- package/lib/chunk-ZWVME7CU.cjs.map +0 -1
- package/lib/chunk-ZYAGX4RM.js +0 -69
- package/lib/chunk-ZYAGX4RM.js.map +0 -1
- package/lib/chunk-ZZOSKORP.cjs +0 -47
- package/lib/chunk-ZZOSKORP.cjs.map +0 -1
- package/lib/interceptor-ETmS7Tab.d.cts +0 -55
- package/lib/interceptor-ETmS7Tab.d.ts +0 -55
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/external_gateways.ts
|
|
4
|
+
var ExternalGateways = class _ExternalGateways extends ApiResource {
|
|
5
|
+
static TYPE = "external_gateways";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _ExternalGateways.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ExternalGateways.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async payment_methods(externalGatewayId, params, options) {
|
|
16
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
17
|
+
return this.resources.fetch({ type: "payment_methods" }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async versions(externalGatewayId, params, options) {
|
|
20
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
21
|
+
return this.resources.fetch({ type: "versions" }, `external_gateways/${_externalGatewayId}/versions`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(externalGatewayId, params, options) {
|
|
24
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `external_gateways/${_externalGatewayId}/event_stores`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async external_payments(externalGatewayId, params, options) {
|
|
28
|
+
const _externalGatewayId = externalGatewayId.id || externalGatewayId;
|
|
29
|
+
return this.resources.fetch({ type: "external_payments" }, `external_gateways/${_externalGatewayId}/external_payments`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async _disable(id, params, options) {
|
|
32
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _disable: true }, params, options);
|
|
33
|
+
}
|
|
34
|
+
async _enable(id, params, options) {
|
|
35
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _enable: true }, params, options);
|
|
36
|
+
}
|
|
37
|
+
async _reset_circuit(id, params, options) {
|
|
38
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _ExternalGateways.TYPE, _reset_circuit: true }, params, options);
|
|
39
|
+
}
|
|
40
|
+
isExternalGateway(resource) {
|
|
41
|
+
return resource.type && resource.type === _ExternalGateways.TYPE;
|
|
42
|
+
}
|
|
43
|
+
relationship(id) {
|
|
44
|
+
return super.relationshipOneToOne(id);
|
|
45
|
+
}
|
|
46
|
+
relationshipToMany(...ids) {
|
|
47
|
+
return super.relationshipOneToMany(...ids);
|
|
48
|
+
}
|
|
49
|
+
type() {
|
|
50
|
+
return _ExternalGateways.TYPE;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
var instance = new ExternalGateways();
|
|
54
|
+
var external_gateways_default = instance;
|
|
55
|
+
|
|
56
|
+
export { external_gateways_default };
|
|
57
|
+
//# sourceMappingURL=chunk-A7PIWL4I.js.map
|
|
58
|
+
//# sourceMappingURL=chunk-A7PIWL4I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/external_gateways.ts"],"names":[],"mappings":";;;AA+MA,IAAM,gBAAA,GAAN,MAAM,iBAAA,SAAyB,WAAA,CAA6B;AAAA,EAE3D,OAAgB,IAAA,GAA4B,mBAAA;AAAA,EAE5C,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAiC,MAAA,EAA+C,OAAA,EAAqD;AACjJ,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA+C,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,iBAAA,CAAiB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACnI;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA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,EAGA,aAAa,EAAA,EAAoD;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAyC,EAAE,CAAA;AAAA,EACzD;AAAA,EAEA,sBAAsB,GAAA,EAAqC;AAC1D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA0C,GAAG,GAAG,CAAA;AAAA,EAC9D;AAAA,EAGA,IAAA,GAA4B;AAC3B,IAAA,OAAO,iBAAA,CAAiB,IAAA;AAAA,EACzB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,gBAAA,EAAiB;AACtC,IAAO,yBAAA,GAAQ","file":"chunk-A7PIWL4I.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { EventStore } from './event_stores'\nimport type { ExternalPayment } from './external_payments'\nimport type { PaymentMethod } from './payment_methods'\nimport type { Version } from './versions'\n\n\ntype ExternalGatewayType = 'external_gateways'\ntype ExternalGatewayRel = ResourceRel & { type: ExternalGatewayType }\n\n\nexport type ExternalGatewaySort = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceSort\n// export type ExternalGatewayFilter = Pick<ExternalGateway, 'id' | 'name' | 'disabled_at' | 'circuit_state' | 'circuit_failure_count'> & ResourceFilter\n\n\ninterface ExternalGateway extends Resource {\n\t\n\treadonly type: ExternalGatewayType\n\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Time at which this resource was disabled.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdisabled_at?: string | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * The circuit breaker state, by default it is 'closed'. It can become 'open' once the number of consecutive failures overlaps the specified threshold, in such case no further calls to the failing callback are made.\n\t * @example ```\"closed\"```\n\t */\n\tcircuit_state?: string | null\n\t/** \n\t * The number of consecutive failures recorded by the circuit breaker associated to this resource, will be reset on first successful call to callback.\n\t * @example ```5```\n\t */\n\tcircuit_failure_count?: number | null\n\t/** \n\t * The shared secret used to sign the external request payload.\n\t * @example ```\"1c0994cc4e996e8c6ee56a2198f66f3c\"```\n\t */\n\tshared_secret: string\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\n\tpayment_methods?: PaymentMethod[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\texternal_payments?: ExternalPayment[] | null\n\n}\n\n\ninterface ExternalGatewayCreate extends ResourceCreate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname: string\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\ninterface ExternalGatewayUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The payment gateway's internal name.\n\t * @example ```\"US payment gateway\"```\n\t */\n\tname?: string | null\n\t/** \n\t * Indicates if the payment source is forced on the editable order upon receiving a successful event from the gateway.\n\t * @example ```true```\n\t */\n\tforce_payments?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as disabled.\n\t * @example ```true```\n\t */\n\t_disable?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this resource as enabled.\n\t * @example ```true```\n\t */\n\t_enable?: boolean | null\n\t/** \n\t * The endpoint used by the external gateway to authorize payments.\n\t * @example ```\"https://external_gateway.com/authorize\"```\n\t */\n\tauthorize_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to capture payments.\n\t * @example ```\"https://external_gateway.com/capture\"```\n\t */\n\tcapture_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to void payments.\n\t * @example ```\"https://external_gateway.com/void\"```\n\t */\n\tvoid_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to refund payments.\n\t * @example ```\"https://external_gateway.com/refund\"```\n\t */\n\trefund_url?: string | null\n\t/** \n\t * The endpoint used by the external gateway to create a customer payment token.\n\t * @example ```\"https://external_gateway.com/token\"```\n\t */\n\ttoken_url?: string | null\n\t/** \n\t * Send this attribute if you want to reset the circuit breaker associated to this resource to 'closed' state and zero failures count. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reset_circuit?: boolean | null\n\t/** \n\t * List of related resources that will be included in the request to the external callback. Please do consult the documentation to check on which resource the includes are related (i.e. the order) and the defaults in case no list is provided.\n\t * @example ```[\"order.line_item_options\"]```\n\t */\n\texternal_includes?: string[] | null\n\t\n}\n\n\nclass ExternalGateways extends ApiResource<ExternalGateway> {\n\n\tstatic readonly TYPE: ExternalGatewayType = 'external_gateways' as const\n\n\tasync create(resource: ExternalGatewayCreate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.create<ExternalGatewayCreate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ExternalGatewayUpdate, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ ...resource, type: ExternalGateways.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: ExternalGateways.TYPE } : id, options)\n\t}\n\n\tasync payment_methods(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<PaymentMethod>, options?: ResourcesConfig): Promise<ListResponse<PaymentMethod>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<PaymentMethod>({ type: 'payment_methods' }, `external_gateways/${_externalGatewayId}/payment_methods`, params, options) as unknown as ListResponse<PaymentMethod>\n\t}\n\n\tasync versions(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `external_gateways/${_externalGatewayId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `external_gateways/${_externalGatewayId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync external_payments(externalGatewayId: string | ExternalGateway, params?: QueryParamsList<ExternalPayment>, options?: ResourcesConfig): Promise<ListResponse<ExternalPayment>> {\n\t\tconst _externalGatewayId = (externalGatewayId as ExternalGateway).id || externalGatewayId as string\n\t\treturn this.resources.fetch<ExternalPayment>({ type: 'external_payments' }, `external_gateways/${_externalGatewayId}/external_payments`, params, options) as unknown as ListResponse<ExternalPayment>\n\t}\n\n\tasync _disable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _reset_circuit(id: string | ExternalGateway, params?: QueryParamsRetrieve<ExternalGateway>, options?: ResourcesConfig): Promise<ExternalGateway> {\n\t\treturn this.resources.update<ExternalGatewayUpdate, ExternalGateway>({ id: (typeof id === 'string')? id: id.id, type: ExternalGateways.TYPE, _reset_circuit: true }, params, options)\n\t}\n\n\n\tisExternalGateway(resource: any): resource is ExternalGateway {\n\t\treturn resource.type && (resource.type === ExternalGateways.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ExternalGatewayRel {\n\t\treturn super.relationshipOneToOne<ExternalGatewayRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ExternalGatewayRel[] {\n\t\treturn super.relationshipOneToMany<ExternalGatewayRel>(...ids)\n\t}\n\n\n\ttype(): ExternalGatewayType {\n\t\treturn ExternalGateways.TYPE\n\t}\n\n}\n\n\nconst instance = new ExternalGateways()\nexport default instance\n\nexport type { ExternalGateway, ExternalGatewayCreate, ExternalGateways, ExternalGatewayType, ExternalGatewayUpdate }\n"]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/customers.ts
|
|
6
|
+
var Customers = class _Customers extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "customers";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _Customers.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _Customers.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Customers.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async customer_group(customerId, params, options) {
|
|
18
|
+
const _customerId = customerId.id || customerId;
|
|
19
|
+
return this.resources.fetch({ type: "customer_groups" }, `customers/${_customerId}/customer_group`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async customer_addresses(customerId, params, options) {
|
|
22
|
+
const _customerId = customerId.id || customerId;
|
|
23
|
+
return this.resources.fetch({ type: "customer_addresses" }, `customers/${_customerId}/customer_addresses`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async customer_payment_sources(customerId, params, options) {
|
|
26
|
+
const _customerId = customerId.id || customerId;
|
|
27
|
+
return this.resources.fetch({ type: "customer_payment_sources" }, `customers/${_customerId}/customer_payment_sources`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async customer_subscriptions(customerId, params, options) {
|
|
30
|
+
const _customerId = customerId.id || customerId;
|
|
31
|
+
return this.resources.fetch({ type: "customer_subscriptions" }, `customers/${_customerId}/customer_subscriptions`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async orders(customerId, params, options) {
|
|
34
|
+
const _customerId = customerId.id || customerId;
|
|
35
|
+
return this.resources.fetch({ type: "orders" }, `customers/${_customerId}/orders`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async order_subscriptions(customerId, params, options) {
|
|
38
|
+
const _customerId = customerId.id || customerId;
|
|
39
|
+
return this.resources.fetch({ type: "order_subscriptions" }, `customers/${_customerId}/order_subscriptions`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async returns(customerId, params, options) {
|
|
42
|
+
const _customerId = customerId.id || customerId;
|
|
43
|
+
return this.resources.fetch({ type: "returns" }, `customers/${_customerId}/returns`, params, options);
|
|
44
|
+
}
|
|
45
|
+
async sku_lists(customerId, params, options) {
|
|
46
|
+
const _customerId = customerId.id || customerId;
|
|
47
|
+
return this.resources.fetch({ type: "sku_lists" }, `customers/${_customerId}/sku_lists`, params, options);
|
|
48
|
+
}
|
|
49
|
+
async attachments(customerId, params, options) {
|
|
50
|
+
const _customerId = customerId.id || customerId;
|
|
51
|
+
return this.resources.fetch({ type: "attachments" }, `customers/${_customerId}/attachments`, params, options);
|
|
52
|
+
}
|
|
53
|
+
async events(customerId, params, options) {
|
|
54
|
+
const _customerId = customerId.id || customerId;
|
|
55
|
+
return this.resources.fetch({ type: "events" }, `customers/${_customerId}/events`, params, options);
|
|
56
|
+
}
|
|
57
|
+
async tags(customerId, params, options) {
|
|
58
|
+
const _customerId = customerId.id || customerId;
|
|
59
|
+
return this.resources.fetch({ type: "tags" }, `customers/${_customerId}/tags`, params, options);
|
|
60
|
+
}
|
|
61
|
+
async jwt_customer(customerId, params, options) {
|
|
62
|
+
const _customerId = customerId.id || customerId;
|
|
63
|
+
return this.resources.fetch({ type: "customers" }, `customers/${_customerId}/jwt_customer`, params, options);
|
|
64
|
+
}
|
|
65
|
+
async jwt_markets(customerId, params, options) {
|
|
66
|
+
const _customerId = customerId.id || customerId;
|
|
67
|
+
return this.resources.fetch({ type: "markets" }, `customers/${_customerId}/jwt_markets`, params, options);
|
|
68
|
+
}
|
|
69
|
+
async jwt_stock_locations(customerId, params, options) {
|
|
70
|
+
const _customerId = customerId.id || customerId;
|
|
71
|
+
return this.resources.fetch({ type: "stock_locations" }, `customers/${_customerId}/jwt_stock_locations`, params, options);
|
|
72
|
+
}
|
|
73
|
+
async event_stores(customerId, params, options) {
|
|
74
|
+
const _customerId = customerId.id || customerId;
|
|
75
|
+
return this.resources.fetch({ type: "event_stores" }, `customers/${_customerId}/event_stores`, params, options);
|
|
76
|
+
}
|
|
77
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
78
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _add_tags: triggerValue }, params, options);
|
|
79
|
+
}
|
|
80
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
81
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _remove_tags: triggerValue }, params, options);
|
|
82
|
+
}
|
|
83
|
+
async _request_anonymization(id, params, options) {
|
|
84
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _request_anonymization: true }, params, options);
|
|
85
|
+
}
|
|
86
|
+
async _cancel_anonymization(id, params, options) {
|
|
87
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Customers.TYPE, _cancel_anonymization: true }, params, options);
|
|
88
|
+
}
|
|
89
|
+
isCustomer(resource) {
|
|
90
|
+
return resource.type && resource.type === _Customers.TYPE;
|
|
91
|
+
}
|
|
92
|
+
relationship(id) {
|
|
93
|
+
return super.relationshipOneToOne(id);
|
|
94
|
+
}
|
|
95
|
+
relationshipToMany(...ids) {
|
|
96
|
+
return super.relationshipOneToMany(...ids);
|
|
97
|
+
}
|
|
98
|
+
type() {
|
|
99
|
+
return _Customers.TYPE;
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
var instance = new Customers();
|
|
103
|
+
var customers_default = instance;
|
|
104
|
+
|
|
105
|
+
exports.customers_default = customers_default;
|
|
106
|
+
//# sourceMappingURL=chunk-AGJQ5BMW.cjs.map
|
|
107
|
+
//# sourceMappingURL=chunk-AGJQ5BMW.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/customers.ts"],"names":["ApiResource"],"mappings":";;;;;AA4LA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA0B,MAAA,EAAwC,OAAA,EAA8C;AAC5H,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAiC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,UAAA,CAAU,IAAA,EAAK,EAAG,MAAA,EAAQ,OAA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ACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-AGJQ5BMW.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CustomerAddress } from './customer_addresses'\nimport type { CustomerGroup, CustomerGroupType } from './customer_groups'\nimport type { CustomerPaymentSource } from './customer_payment_sources'\nimport type { CustomerSubscription } from './customer_subscriptions'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\nimport type { OrderSubscription } from './order_subscriptions'\nimport type { Order } from './orders'\nimport type { Return } from './returns'\nimport type { SkuList } from './sku_lists'\nimport type { StockLocation } from './stock_locations'\nimport type { Tag, TagType } from './tags'\n\n\ntype CustomerType = 'customers'\ntype CustomerRel = ResourceRel & { type: CustomerType }\ntype CustomerGroupRel = ResourceRel & { type: CustomerGroupType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type CustomerSort = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceSort\n// export type CustomerFilter = Pick<Customer, 'id' | 'email' | 'status' | 'total_orders_count' | 'anonymization_status'> & ResourceFilter\n\n\ninterface Customer extends Resource {\n\t\n\treadonly type: CustomerType\n\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's status. One of 'prospect' (default), 'acquired', or 'repeat'.\n\t * @example ```\"prospect\"```\n\t */\n\tstatus: 'prospect' | 'acquired' | 'repeat'\n\t/** \n\t * Indicates if the customer has a password.\n\t */\n\thas_password?: boolean | null\n\t/** \n\t * The total number of orders for the customer.\n\t * @example ```6```\n\t */\n\ttotal_orders_count?: number | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * The custom_claim attached to the current JWT (if any).\n\t * @example ```{}```\n\t */\n\tjwt_custom_claim?: Record<string, any> | null\n\t/** \n\t * The anonymization info object.\n\t * @example ```{\"status\":\"requested\",\"requested_at\":\"2025-03-15 11:39:21 UTC\",\"requester\":{\"id\":\"fdgt56hh\",\"first_name\":\"Travis\",\"last_name\":\"Muller\",\"email\":\"test@labadie.test\"}}```\n\t */\n\tanonymization_info?: Record<string, any> | null\n\t/** \n\t * Status of the current anonymization request (if any).\n\t * @example ```\"requested\"```\n\t */\n\tanonymization_status?: string | null\n\n\tcustomer_group?: CustomerGroup | null\n\tcustomer_addresses?: CustomerAddress[] | null\n\tcustomer_payment_sources?: CustomerPaymentSource[] | null\n\tcustomer_subscriptions?: CustomerSubscription[] | null\n\torders?: Order[] | null\n\torder_subscriptions?: OrderSubscription[] | null\n\treturns?: Return[] | null\n\tsku_lists?: SkuList[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tjwt_customer?: Customer | null\n\tjwt_markets?: Market[] | null\n\tjwt_stock_locations?: StockLocation[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface CustomerCreate extends ResourceCreate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail: string\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface CustomerUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The customer's email address.\n\t * @example ```\"john@example.com\"```\n\t */\n\temail?: string | null\n\t/** \n\t * The customer's password. Initiate a customer password reset flow if you need to change it.\n\t * @example ```\"secret\"```\n\t */\n\tpassword?: string | null\n\t/** \n\t * A reference to uniquely identify the shopper during payment sessions.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tshopper_reference?: string | null\n\t/** \n\t * A reference to uniquely identify the customer on any connected external services.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\tprofile_id?: string | null\n\t/** \n\t * A specific code to identify the tax exemption reason for this customer.\n\t * @example ```\"xxx-yyy-zzz\"```\n\t */\n\ttax_exemption_code?: string | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\t/** \n\t * Send this attribute if you want to trigger anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_request_anonymization?: boolean | null\n\t/** \n\t * Send this attribute if you want to trigger a cancellation of anonymization. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_cancel_anonymization?: boolean | null\n\n\tcustomer_group?: CustomerGroupRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Customers extends ApiResource<Customer> {\n\n\tstatic readonly TYPE: CustomerType = 'customers' as const\n\n\tasync create(resource: CustomerCreate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.create<CustomerCreate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: CustomerUpdate, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ ...resource, type: Customers.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Customers.TYPE } : id, options)\n\t}\n\n\tasync customer_group(customerId: string | Customer, params?: QueryParamsRetrieve<CustomerGroup>, options?: ResourcesConfig): Promise<CustomerGroup> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerGroup>({ type: 'customer_groups' }, `customers/${_customerId}/customer_group`, params, options) as unknown as CustomerGroup\n\t}\n\n\tasync customer_addresses(customerId: string | Customer, params?: QueryParamsList<CustomerAddress>, options?: ResourcesConfig): Promise<ListResponse<CustomerAddress>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerAddress>({ type: 'customer_addresses' }, `customers/${_customerId}/customer_addresses`, params, options) as unknown as ListResponse<CustomerAddress>\n\t}\n\n\tasync customer_payment_sources(customerId: string | Customer, params?: QueryParamsList<CustomerPaymentSource>, options?: ResourcesConfig): Promise<ListResponse<CustomerPaymentSource>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerPaymentSource>({ type: 'customer_payment_sources' }, `customers/${_customerId}/customer_payment_sources`, params, options) as unknown as ListResponse<CustomerPaymentSource>\n\t}\n\n\tasync customer_subscriptions(customerId: string | Customer, params?: QueryParamsList<CustomerSubscription>, options?: ResourcesConfig): Promise<ListResponse<CustomerSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<CustomerSubscription>({ type: 'customer_subscriptions' }, `customers/${_customerId}/customer_subscriptions`, params, options) as unknown as ListResponse<CustomerSubscription>\n\t}\n\n\tasync orders(customerId: string | Customer, params?: QueryParamsList<Order>, options?: ResourcesConfig): Promise<ListResponse<Order>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `customers/${_customerId}/orders`, params, options) as unknown as ListResponse<Order>\n\t}\n\n\tasync order_subscriptions(customerId: string | Customer, params?: QueryParamsList<OrderSubscription>, options?: ResourcesConfig): Promise<ListResponse<OrderSubscription>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `customers/${_customerId}/order_subscriptions`, params, options) as unknown as ListResponse<OrderSubscription>\n\t}\n\n\tasync returns(customerId: string | Customer, params?: QueryParamsList<Return>, options?: ResourcesConfig): Promise<ListResponse<Return>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Return>({ type: 'returns' }, `customers/${_customerId}/returns`, params, options) as unknown as ListResponse<Return>\n\t}\n\n\tasync sku_lists(customerId: string | Customer, params?: QueryParamsList<SkuList>, options?: ResourcesConfig): Promise<ListResponse<SkuList>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `customers/${_customerId}/sku_lists`, params, options) as unknown as ListResponse<SkuList>\n\t}\n\n\tasync attachments(customerId: string | Customer, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `customers/${_customerId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(customerId: string | Customer, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `customers/${_customerId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(customerId: string | Customer, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `customers/${_customerId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync jwt_customer(customerId: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Customer>({ type: 'customers' }, `customers/${_customerId}/jwt_customer`, params, options) as unknown as Customer\n\t}\n\n\tasync jwt_markets(customerId: string | Customer, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `customers/${_customerId}/jwt_markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync jwt_stock_locations(customerId: string | Customer, params?: QueryParamsList<StockLocation>, options?: ResourcesConfig): Promise<ListResponse<StockLocation>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `customers/${_customerId}/jwt_stock_locations`, params, options) as unknown as ListResponse<StockLocation>\n\t}\n\n\tasync event_stores(customerId: string | Customer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _customerId = (customerId as Customer).id || customerId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `customers/${_customerId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _add_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Customer, triggerValue: string, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\tasync _request_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _request_anonymization: true }, params, options)\n\t}\n\n\tasync _cancel_anonymization(id: string | Customer, params?: QueryParamsRetrieve<Customer>, options?: ResourcesConfig): Promise<Customer> {\n\t\treturn this.resources.update<CustomerUpdate, Customer>({ id: (typeof id === 'string')? id: id.id, type: Customers.TYPE, _cancel_anonymization: true }, params, options)\n\t}\n\n\n\tisCustomer(resource: any): resource is Customer {\n\t\treturn resource.type && (resource.type === Customers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): CustomerRel {\n\t\treturn super.relationshipOneToOne<CustomerRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): CustomerRel[] {\n\t\treturn super.relationshipOneToMany<CustomerRel>(...ids)\n\t}\n\n\n\ttype(): CustomerType {\n\t\treturn Customers.TYPE\n\t}\n\n}\n\n\nconst instance = new Customers()\nexport default instance\n\nexport type { Customer, CustomerCreate, Customers, CustomerType, CustomerUpdate }\n"]}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/shipments.ts
|
|
6
|
+
var Shipments = class _Shipments extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "shipments";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _Shipments.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _Shipments.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Shipments.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async order(shipmentId, params, options) {
|
|
18
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
19
|
+
return this.resources.fetch({ type: "orders" }, `shipments/${_shipmentId}/order`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async shipping_category(shipmentId, params, options) {
|
|
22
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
23
|
+
return this.resources.fetch({ type: "shipping_categories" }, `shipments/${_shipmentId}/shipping_category`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async inventory_stock_location(shipmentId, params, options) {
|
|
26
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
27
|
+
return this.resources.fetch({ type: "inventory_stock_locations" }, `shipments/${_shipmentId}/inventory_stock_location`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async stock_location(shipmentId, params, options) {
|
|
30
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
31
|
+
return this.resources.fetch({ type: "stock_locations" }, `shipments/${_shipmentId}/stock_location`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async origin_address(shipmentId, params, options) {
|
|
34
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
35
|
+
return this.resources.fetch({ type: "addresses" }, `shipments/${_shipmentId}/origin_address`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async shipping_address(shipmentId, params, options) {
|
|
38
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
39
|
+
return this.resources.fetch({ type: "addresses" }, `shipments/${_shipmentId}/shipping_address`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async shipping_method(shipmentId, params, options) {
|
|
42
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
43
|
+
return this.resources.fetch({ type: "shipping_methods" }, `shipments/${_shipmentId}/shipping_method`, params, options);
|
|
44
|
+
}
|
|
45
|
+
async delivery_lead_time(shipmentId, params, options) {
|
|
46
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
47
|
+
return this.resources.fetch({ type: "delivery_lead_times" }, `shipments/${_shipmentId}/delivery_lead_time`, params, options);
|
|
48
|
+
}
|
|
49
|
+
async pickup(shipmentId, params, options) {
|
|
50
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
51
|
+
return this.resources.fetch({ type: "pickups" }, `shipments/${_shipmentId}/pickup`, params, options);
|
|
52
|
+
}
|
|
53
|
+
async stock_line_items(shipmentId, params, options) {
|
|
54
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
55
|
+
return this.resources.fetch({ type: "stock_line_items" }, `shipments/${_shipmentId}/stock_line_items`, params, options);
|
|
56
|
+
}
|
|
57
|
+
async stock_transfers(shipmentId, params, options) {
|
|
58
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
59
|
+
return this.resources.fetch({ type: "stock_transfers" }, `shipments/${_shipmentId}/stock_transfers`, params, options);
|
|
60
|
+
}
|
|
61
|
+
async line_items(shipmentId, params, options) {
|
|
62
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
63
|
+
return this.resources.fetch({ type: "line_items" }, `shipments/${_shipmentId}/line_items`, params, options);
|
|
64
|
+
}
|
|
65
|
+
async available_shipping_methods(shipmentId, params, options) {
|
|
66
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
67
|
+
return this.resources.fetch({ type: "shipping_methods" }, `shipments/${_shipmentId}/available_shipping_methods`, params, options);
|
|
68
|
+
}
|
|
69
|
+
async carrier_accounts(shipmentId, params, options) {
|
|
70
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
71
|
+
return this.resources.fetch({ type: "carrier_accounts" }, `shipments/${_shipmentId}/carrier_accounts`, params, options);
|
|
72
|
+
}
|
|
73
|
+
async parcels(shipmentId, params, options) {
|
|
74
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
75
|
+
return this.resources.fetch({ type: "parcels" }, `shipments/${_shipmentId}/parcels`, params, options);
|
|
76
|
+
}
|
|
77
|
+
async attachments(shipmentId, params, options) {
|
|
78
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
79
|
+
return this.resources.fetch({ type: "attachments" }, `shipments/${_shipmentId}/attachments`, params, options);
|
|
80
|
+
}
|
|
81
|
+
async events(shipmentId, params, options) {
|
|
82
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
83
|
+
return this.resources.fetch({ type: "events" }, `shipments/${_shipmentId}/events`, params, options);
|
|
84
|
+
}
|
|
85
|
+
async tags(shipmentId, params, options) {
|
|
86
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
87
|
+
return this.resources.fetch({ type: "tags" }, `shipments/${_shipmentId}/tags`, params, options);
|
|
88
|
+
}
|
|
89
|
+
async versions(shipmentId, params, options) {
|
|
90
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
91
|
+
return this.resources.fetch({ type: "versions" }, `shipments/${_shipmentId}/versions`, params, options);
|
|
92
|
+
}
|
|
93
|
+
async event_stores(shipmentId, params, options) {
|
|
94
|
+
const _shipmentId = shipmentId.id || shipmentId;
|
|
95
|
+
return this.resources.fetch({ type: "event_stores" }, `shipments/${_shipmentId}/event_stores`, params, options);
|
|
96
|
+
}
|
|
97
|
+
async _upcoming(id, params, options) {
|
|
98
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _upcoming: true }, params, options);
|
|
99
|
+
}
|
|
100
|
+
async _cancel(id, params, options) {
|
|
101
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _cancel: true }, params, options);
|
|
102
|
+
}
|
|
103
|
+
async _on_hold(id, params, options) {
|
|
104
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _on_hold: true }, params, options);
|
|
105
|
+
}
|
|
106
|
+
async _picking(id, params, options) {
|
|
107
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _picking: true }, params, options);
|
|
108
|
+
}
|
|
109
|
+
async _packing(id, params, options) {
|
|
110
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _packing: true }, params, options);
|
|
111
|
+
}
|
|
112
|
+
async _ready_to_ship(id, params, options) {
|
|
113
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _ready_to_ship: true }, params, options);
|
|
114
|
+
}
|
|
115
|
+
async _ship(id, params, options) {
|
|
116
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _ship: true }, params, options);
|
|
117
|
+
}
|
|
118
|
+
async _deliver(id, params, options) {
|
|
119
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _deliver: true }, params, options);
|
|
120
|
+
}
|
|
121
|
+
async _reserve_stock(id, params, options) {
|
|
122
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _reserve_stock: true }, params, options);
|
|
123
|
+
}
|
|
124
|
+
async _release_stock(id, params, options) {
|
|
125
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _release_stock: true }, params, options);
|
|
126
|
+
}
|
|
127
|
+
async _decrement_stock(id, params, options) {
|
|
128
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _decrement_stock: true }, params, options);
|
|
129
|
+
}
|
|
130
|
+
async _get_rates(id, params, options) {
|
|
131
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _get_rates: true }, params, options);
|
|
132
|
+
}
|
|
133
|
+
async _purchase(id, params, options) {
|
|
134
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _purchase: true }, params, options);
|
|
135
|
+
}
|
|
136
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
137
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _add_tags: triggerValue }, params, options);
|
|
138
|
+
}
|
|
139
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
140
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Shipments.TYPE, _remove_tags: triggerValue }, params, options);
|
|
141
|
+
}
|
|
142
|
+
isShipment(resource) {
|
|
143
|
+
return resource.type && resource.type === _Shipments.TYPE;
|
|
144
|
+
}
|
|
145
|
+
relationship(id) {
|
|
146
|
+
return super.relationshipOneToOne(id);
|
|
147
|
+
}
|
|
148
|
+
relationshipToMany(...ids) {
|
|
149
|
+
return super.relationshipOneToMany(...ids);
|
|
150
|
+
}
|
|
151
|
+
type() {
|
|
152
|
+
return _Shipments.TYPE;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
var instance = new Shipments();
|
|
156
|
+
var shipments_default = instance;
|
|
157
|
+
|
|
158
|
+
exports.shipments_default = shipments_default;
|
|
159
|
+
//# sourceMappingURL=chunk-AHJQVBKB.cjs.map
|
|
160
|
+
//# sourceMappingURL=chunk-AHJQVBKB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/shipments.ts"],"names":["ApiResource"],"mappings":";;;;;AAgSA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkBA,6BAAA,CAAsB;AAAA,EAE7C,OAAgB,I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AAa,EAAG,QAAQ,OAAO,CAAA;AAAA,EACtK;AAAA,EAGA,WAAW,QAAA,EAAqC;AAC/C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,UAAA,CAAU,IAAA;AAAA,EACtD;AAAA,EAGA,aAAa,EAAA,EAA6C;AACzD,IAAA,OAAO,KAAA,CAAM,qBAAkC,EAAE,CAAA;AAAA,EAClD;AAAA,EAEA,sBAAsB,GAAA,EAA8B;AACnD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAmC,GAAG,GAAG,CAAA;AAAA,EACvD;AAAA,EAGA,IAAA,GAAqB;AACpB,IAAA,OAAO,UAAA,CAAU,IAAA;AAAA,EAClB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,SAAA,EAAU;AAC/B,IAAO,iBAAA,GAAQ","file":"chunk-AHJQVBKB.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Address, AddressType } from './addresses'\nimport type { Attachment } from './attachments'\nimport type { CarrierAccount } from './carrier_accounts'\nimport type { DeliveryLeadTime } from './delivery_lead_times'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { InventoryStockLocation, InventoryStockLocationType } from './inventory_stock_locations'\nimport type { LineItem } from './line_items'\nimport type { Order, OrderType } from './orders'\nimport type { Parcel } from './parcels'\nimport type { Pickup } from './pickups'\nimport type { ShippingCategory, ShippingCategoryType } from './shipping_categories'\nimport type { ShippingMethod, ShippingMethodType } from './shipping_methods'\nimport type { StockLineItem } from './stock_line_items'\nimport type { StockLocation } from './stock_locations'\nimport type { StockTransfer } from './stock_transfers'\nimport type { Tag, TagType } from './tags'\nimport type { Version } from './versions'\n\n\ntype ShipmentType = 'shipments'\ntype ShipmentRel = ResourceRel & { type: ShipmentType }\ntype OrderRel = ResourceRel & { type: OrderType }\ntype ShippingCategoryRel = ResourceRel & { type: ShippingCategoryType }\ntype InventoryStockLocationRel = ResourceRel & { type: InventoryStockLocationType }\ntype AddressRel = ResourceRel & { type: AddressType }\ntype ShippingMethodRel = ResourceRel & { type: ShippingMethodType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type ShipmentSort = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at' | 'delivered_at'> & ResourceSort\n// export type ShipmentFilter = Pick<Shipment, 'id' | 'number' | 'status' | 'cost_amount_cents' | 'get_rates_started_at' | 'get_rates_completed_at' | 'purchase_started_at' | 'purchase_completed_at' | 'purchase_failed_at' | 'on_hold_at' | 'picking_at' | 'packing_at' | 'ready_to_ship_at' | 'shipped_at' | 'delivered_at'> & ResourceFilter\n\n\ninterface Shipment extends Resource {\n\t\n\treadonly type: ShipmentType\n\n\t/** \n\t * Unique identifier for the shipment. Cannot be passed by sales channels.\n\t * @example ```\"#1234/S/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * The shipment status. One of 'draft' (default), 'upcoming', 'cancelled', 'on_hold', 'picking', 'packing', 'ready_to_ship', 'shipped', or 'delivered'.\n\t * @example ```\"draft\"```\n\t */\n\tstatus: 'draft' | 'upcoming' | 'cancelled' | 'on_hold' | 'picking' | 'packing' | 'ready_to_ship' | 'shipped' | 'delivered'\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, automatically inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The cost of this shipment from the selected carrier account, in cents.\n\t * @example ```1000```\n\t */\n\tcost_amount_cents?: number | null\n\t/** \n\t * The cost of this shipment from the selected carrier account, float.\n\t * @example ```10```\n\t */\n\tcost_amount_float?: number | null\n\t/** \n\t * The cost of this shipment from the selected carrier account, formatted.\n\t * @example ```\"€10,00\"```\n\t */\n\tformatted_cost_amount?: string | null\n\t/** \n\t * The total number of SKUs in the shipment's line items. This can be useful to display a preview of the shipment content.\n\t * @example ```2```\n\t */\n\tskus_count?: number | null\n\t/** \n\t * The selected purchase rate from the available shipping rates.\n\t * @example ```\"rate_f89e4663c3ed47ee94d37763f6d21d54\"```\n\t */\n\tselected_rate_id?: string | null\n\t/** \n\t * The available shipping rates.\n\t * @example ```[{\"id\":\"rate_f89e4663c3ed47ee94d37763f6d21d54\",\"rate\":\"45.59\",\"carrier\":\"DHLExpress\",\"service\":\"MedicalExpress\"}]```\n\t */\n\trates?: Array<Record<string, any>> | null\n\t/** \n\t * The shipping rate purchase error code, if any.\n\t * @example ```\"SHIPMENT.POSTAGE.FAILURE\"```\n\t */\n\tpurchase_error_code?: string | null\n\t/** \n\t * The shipping rate purchase error message, if any.\n\t * @example ```\"Account not allowed for this service.\"```\n\t */\n\tpurchase_error_message?: string | null\n\t/** \n\t * Any errors collected when fetching shipping rates.\n\t * @example ```[{\"carrier\":\"DHLExpress\",\"message\":\"to_address.postal_code: Shorter than minimum length 3\",\"type\":\"rate_error\"}]```\n\t */\n\tget_rates_errors?: Array<Record<string, any>> | null\n\t/** \n\t * Time at which the getting of the shipping rates started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tget_rates_started_at?: string | null\n\t/** \n\t * Time at which the getting of the shipping rates completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tget_rates_completed_at?: string | null\n\t/** \n\t * Time at which the purchasing of the shipping rate started.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpurchase_started_at?: string | null\n\t/** \n\t * Time at which the purchasing of the shipping rate completed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpurchase_completed_at?: string | null\n\t/** \n\t * Time at which the purchasing of the shipping rate failed.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpurchase_failed_at?: string | null\n\t/** \n\t * Time at which the shipment was put on hold.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\ton_hold_at?: string | null\n\t/** \n\t * Time at which the shipment was picking.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpicking_at?: string | null\n\t/** \n\t * Time at which the shipment was packing.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tpacking_at?: string | null\n\t/** \n\t * Time at which the shipment was ready to ship.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tready_to_ship_at?: string | null\n\t/** \n\t * Time at which the shipment was shipped.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tshipped_at?: string | null\n\t/** \n\t * Time at which the shipment was delivered.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tdelivered_at?: string | null\n\n\torder?: Order | null\n\tshipping_category?: ShippingCategory | null\n\tinventory_stock_location?: InventoryStockLocation | null\n\tstock_location?: StockLocation | null\n\torigin_address?: Address | null\n\tshipping_address?: Address | null\n\tshipping_method?: ShippingMethod | null\n\tdelivery_lead_time?: DeliveryLeadTime | null\n\tpickup?: Pickup | null\n\tstock_line_items?: StockLineItem[] | null\n\tstock_transfers?: StockTransfer[] | null\n\tline_items?: LineItem[] | null\n\tavailable_shipping_methods?: ShippingMethod[] | null\n\tcarrier_accounts?: CarrierAccount[] | null\n\tparcels?: Parcel[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tversions?: Version[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface ShipmentCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\tshipping_category?: ShippingCategoryRel | null\n\tinventory_stock_location: InventoryStockLocationRel\n\tshipping_address?: AddressRel | null\n\tshipping_method?: ShippingMethodRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface ShipmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Unique identifier for the shipment. Cannot be passed by sales channels.\n\t * @example ```\"#1234/S/001\"```\n\t */\n\tnumber?: string | null\n\t/** \n\t * Send this attribute if you want to mark this shipment as upcoming. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_upcoming?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this shipment as cancelled (unless already shipped or delivered). Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_cancel?: boolean | null\n\t/** \n\t * Send this attribute if you want to put this shipment on hold.\n\t * @example ```true```\n\t */\n\t_on_hold?: boolean | null\n\t/** \n\t * Send this attribute if you want to start picking this shipment.\n\t * @example ```true```\n\t */\n\t_picking?: boolean | null\n\t/** \n\t * Send this attribute if you want to start packing this shipment.\n\t * @example ```true```\n\t */\n\t_packing?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this shipment as ready to ship.\n\t * @example ```true```\n\t */\n\t_ready_to_ship?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this shipment as shipped.\n\t * @example ```true```\n\t */\n\t_ship?: boolean | null\n\t/** \n\t * Send this attribute if you want to mark this shipment as delivered.\n\t * @example ```true```\n\t */\n\t_deliver?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically reserve the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_reserve_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically destroy the stock reservations for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_release_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want to automatically decrement and release the stock for each of the associated stock line item. Can be done only when fulfillment is in progress. Cannot be passed by sales channels.\n\t * @example ```true```\n\t */\n\t_decrement_stock?: boolean | null\n\t/** \n\t * Send this attribute if you want get the shipping rates from the associated carrier accounts.\n\t * @example ```true```\n\t */\n\t_get_rates?: boolean | null\n\t/** \n\t * The selected purchase rate from the available shipping rates.\n\t * @example ```\"rate_f89e4663c3ed47ee94d37763f6d21d54\"```\n\t */\n\tselected_rate_id?: string | null\n\t/** \n\t * Send this attribute if you want to purchase this shipment with the selected rate.\n\t * @example ```true```\n\t */\n\t_purchase?: boolean | null\n\t/** \n\t * Comma separated list of tags to be added. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_add_tags?: string | null\n\t/** \n\t * Comma separated list of tags to be removed. Duplicates, invalid and non existing ones are discarded. Cannot be passed by sales channels.\n\t */\n\t_remove_tags?: string | null\n\n\tshipping_category?: ShippingCategoryRel | null\n\tinventory_stock_location?: InventoryStockLocationRel | null\n\tshipping_address?: AddressRel | null\n\tshipping_method?: ShippingMethodRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass Shipments extends ApiResource<Shipment> {\n\n\tstatic readonly TYPE: ShipmentType = 'shipments' as const\n\n\tasync create(resource: ShipmentCreate, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.create<ShipmentCreate, Shipment>({ ...resource, type: Shipments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ShipmentUpdate, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ ...resource, type: Shipments.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: Shipments.TYPE } : id, options)\n\t}\n\n\tasync order(shipmentId: string | Shipment, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `shipments/${_shipmentId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync shipping_category(shipmentId: string | Shipment, params?: QueryParamsRetrieve<ShippingCategory>, options?: ResourcesConfig): Promise<ShippingCategory> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<ShippingCategory>({ type: 'shipping_categories' }, `shipments/${_shipmentId}/shipping_category`, params, options) as unknown as ShippingCategory\n\t}\n\n\tasync inventory_stock_location(shipmentId: string | Shipment, params?: QueryParamsRetrieve<InventoryStockLocation>, options?: ResourcesConfig): Promise<InventoryStockLocation> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<InventoryStockLocation>({ type: 'inventory_stock_locations' }, `shipments/${_shipmentId}/inventory_stock_location`, params, options) as unknown as InventoryStockLocation\n\t}\n\n\tasync stock_location(shipmentId: string | Shipment, params?: QueryParamsRetrieve<StockLocation>, options?: ResourcesConfig): Promise<StockLocation> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<StockLocation>({ type: 'stock_locations' }, `shipments/${_shipmentId}/stock_location`, params, options) as unknown as StockLocation\n\t}\n\n\tasync origin_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `shipments/${_shipmentId}/origin_address`, params, options) as unknown as Address\n\t}\n\n\tasync shipping_address(shipmentId: string | Shipment, params?: QueryParamsRetrieve<Address>, options?: ResourcesConfig): Promise<Address> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `shipments/${_shipmentId}/shipping_address`, params, options) as unknown as Address\n\t}\n\n\tasync shipping_method(shipmentId: string | Shipment, params?: QueryParamsRetrieve<ShippingMethod>, options?: ResourcesConfig): Promise<ShippingMethod> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `shipments/${_shipmentId}/shipping_method`, params, options) as unknown as ShippingMethod\n\t}\n\n\tasync delivery_lead_time(shipmentId: string | Shipment, params?: QueryParamsRetrieve<DeliveryLeadTime>, options?: ResourcesConfig): Promise<DeliveryLeadTime> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<DeliveryLeadTime>({ type: 'delivery_lead_times' }, `shipments/${_shipmentId}/delivery_lead_time`, params, options) as unknown as DeliveryLeadTime\n\t}\n\n\tasync pickup(shipmentId: string | Shipment, params?: QueryParamsRetrieve<Pickup>, options?: ResourcesConfig): Promise<Pickup> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Pickup>({ type: 'pickups' }, `shipments/${_shipmentId}/pickup`, params, options) as unknown as Pickup\n\t}\n\n\tasync stock_line_items(shipmentId: string | Shipment, params?: QueryParamsList<StockLineItem>, options?: ResourcesConfig): Promise<ListResponse<StockLineItem>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<StockLineItem>({ type: 'stock_line_items' }, `shipments/${_shipmentId}/stock_line_items`, params, options) as unknown as ListResponse<StockLineItem>\n\t}\n\n\tasync stock_transfers(shipmentId: string | Shipment, params?: QueryParamsList<StockTransfer>, options?: ResourcesConfig): Promise<ListResponse<StockTransfer>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<StockTransfer>({ type: 'stock_transfers' }, `shipments/${_shipmentId}/stock_transfers`, params, options) as unknown as ListResponse<StockTransfer>\n\t}\n\n\tasync line_items(shipmentId: string | Shipment, params?: QueryParamsList<LineItem>, options?: ResourcesConfig): Promise<ListResponse<LineItem>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `shipments/${_shipmentId}/line_items`, params, options) as unknown as ListResponse<LineItem>\n\t}\n\n\tasync available_shipping_methods(shipmentId: string | Shipment, params?: QueryParamsList<ShippingMethod>, options?: ResourcesConfig): Promise<ListResponse<ShippingMethod>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<ShippingMethod>({ type: 'shipping_methods' }, `shipments/${_shipmentId}/available_shipping_methods`, params, options) as unknown as ListResponse<ShippingMethod>\n\t}\n\n\tasync carrier_accounts(shipmentId: string | Shipment, params?: QueryParamsList<CarrierAccount>, options?: ResourcesConfig): Promise<ListResponse<CarrierAccount>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<CarrierAccount>({ type: 'carrier_accounts' }, `shipments/${_shipmentId}/carrier_accounts`, params, options) as unknown as ListResponse<CarrierAccount>\n\t}\n\n\tasync parcels(shipmentId: string | Shipment, params?: QueryParamsList<Parcel>, options?: ResourcesConfig): Promise<ListResponse<Parcel>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Parcel>({ type: 'parcels' }, `shipments/${_shipmentId}/parcels`, params, options) as unknown as ListResponse<Parcel>\n\t}\n\n\tasync attachments(shipmentId: string | Shipment, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `shipments/${_shipmentId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(shipmentId: string | Shipment, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `shipments/${_shipmentId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(shipmentId: string | Shipment, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `shipments/${_shipmentId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync versions(shipmentId: string | Shipment, params?: QueryParamsList<Version>, options?: ResourcesConfig): Promise<ListResponse<Version>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<Version>({ type: 'versions' }, `shipments/${_shipmentId}/versions`, params, options) as unknown as ListResponse<Version>\n\t}\n\n\tasync event_stores(shipmentId: string | Shipment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _shipmentId = (shipmentId as Shipment).id || shipmentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `shipments/${_shipmentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _upcoming(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _upcoming: true }, params, options)\n\t}\n\n\tasync _cancel(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _cancel: true }, params, options)\n\t}\n\n\tasync _on_hold(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _on_hold: true }, params, options)\n\t}\n\n\tasync _picking(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _picking: true }, params, options)\n\t}\n\n\tasync _packing(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _packing: true }, params, options)\n\t}\n\n\tasync _ready_to_ship(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _ready_to_ship: true }, params, options)\n\t}\n\n\tasync _ship(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _ship: true }, params, options)\n\t}\n\n\tasync _deliver(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _deliver: true }, params, options)\n\t}\n\n\tasync _reserve_stock(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _reserve_stock: true }, params, options)\n\t}\n\n\tasync _release_stock(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _release_stock: true }, params, options)\n\t}\n\n\tasync _decrement_stock(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _decrement_stock: true }, params, options)\n\t}\n\n\tasync _get_rates(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _get_rates: true }, params, options)\n\t}\n\n\tasync _purchase(id: string | Shipment, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _purchase: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | Shipment, triggerValue: string, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Shipment, triggerValue: string, params?: QueryParamsRetrieve<Shipment>, options?: ResourcesConfig): Promise<Shipment> {\n\t\treturn this.resources.update<ShipmentUpdate, Shipment>({ id: (typeof id === 'string')? id: id.id, type: Shipments.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisShipment(resource: any): resource is Shipment {\n\t\treturn resource.type && (resource.type === Shipments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ShipmentRel {\n\t\treturn super.relationshipOneToOne<ShipmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ShipmentRel[] {\n\t\treturn super.relationshipOneToMany<ShipmentRel>(...ids)\n\t}\n\n\n\ttype(): ShipmentType {\n\t\treturn Shipments.TYPE\n\t}\n\n}\n\n\nconst instance = new Shipments()\nexport default instance\n\nexport type { Shipment, ShipmentCreate, Shipments, ShipmentType, ShipmentUpdate }\n"]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkUBH2EC5P_cjs = require('./chunk-UBH2EC5P.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/versions.ts
|
|
6
|
+
var Versions = class _Versions extends chunkUBH2EC5P_cjs.ApiResource {
|
|
7
|
+
static TYPE = "versions";
|
|
8
|
+
async event_stores(versionId, params, options) {
|
|
9
|
+
const _versionId = versionId.id || versionId;
|
|
10
|
+
return this.resources.fetch({ type: "event_stores" }, `versions/${_versionId}/event_stores`, params, options);
|
|
11
|
+
}
|
|
12
|
+
isVersion(resource) {
|
|
13
|
+
return resource.type && resource.type === _Versions.TYPE;
|
|
14
|
+
}
|
|
15
|
+
relationship(id) {
|
|
16
|
+
return super.relationshipOneToOne(id);
|
|
17
|
+
}
|
|
18
|
+
relationshipToMany(...ids) {
|
|
19
|
+
return super.relationshipOneToMany(...ids);
|
|
20
|
+
}
|
|
21
|
+
type() {
|
|
22
|
+
return _Versions.TYPE;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
var instance = new Versions();
|
|
26
|
+
var versions_default = instance;
|
|
27
|
+
|
|
28
|
+
exports.versions_default = versions_default;
|
|
29
|
+
//# sourceMappingURL=chunk-AJ5YOH5P.cjs.map
|
|
30
|
+
//# sourceMappingURL=chunk-AJ5YOH5P.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/versions.ts"],"names":["ApiResource"],"mappings":";;;;;AAkDA,IAAM,QAAA,GAAN,MAAM,SAAA,SAAiBA,6BAAA,CAAqB;AAAA,EAE3C,OAAgB,IAAA,GAAoB,UAAA;AAAA,EAEpC,MAAM,YAAA,CAAa,SAAA,EAA6B,MAAA,EAAsC,OAAA,EAA8D;AACnJ,IAAA,MAAM,UAAA,GAAc,UAAsB,EAAA,IAAM,SAAA;AAChD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,SAAA,EAAY,UAAU,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzH;AAAA,EAGA,UAAU,QAAA,EAAoC;AAC7C,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,SAAA,CAAS,IAAA;AAAA,EACrD;AAAA,EAGA,aAAa,EAAA,EAA4C;AACxD,IAAA,OAAO,KAAA,CAAM,qBAAiC,EAAE,CAAA;AAAA,EACjD;AAAA,EAEA,sBAAsB,GAAA,EAA6B;AAClD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAkC,GAAG,GAAG,CAAA;AAAA,EACtD;AAAA,EAGA,IAAA,GAAoB;AACnB,IAAA,OAAO,SAAA,CAAS,IAAA;AAAA,EACjB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,QAAA,EAAS;AAC9B,IAAO,gBAAA,GAAQ","file":"chunk-AJ5YOH5P.cjs","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\n\nimport type { EventStore } from './event_stores'\n\n\ntype VersionType = 'versions'\ntype VersionRel = ResourceRel & { type: VersionType }\n\n\nexport type VersionSort = Pick<Version, 'id'> & ResourceSort\n// export type VersionFilter = Pick<Version, 'id' | 'resource_type' | 'resource_id'> & ResourceFilter\n\n\ninterface Version extends Resource {\n\t\n\treadonly type: VersionType\n\n\t/** \n\t * The type of the versioned resource.\n\t * @example ```\"orders\"```\n\t */\n\tresource_type?: string | null\n\t/** \n\t * The versioned resource id.\n\t * @example ```\"PzdJhdLdYV\"```\n\t */\n\tresource_id?: string | null\n\t/** \n\t * The event which generates the version.\n\t * @example ```\"update\"```\n\t */\n\tevent?: string | null\n\t/** \n\t * The object changes payload.\n\t * @example ```{\"status\":[\"draft\",\"placed\"]}```\n\t */\n\tchanges?: Record<string, any> | null\n\t/** \n\t * Information about who triggered the change.\n\t * @example ```{\"application\":{\"id\":\"DNOPYiZYpn\",\"kind\":\"sales_channel\",\"public\":true},\"owner\":{\"id\":\"yQQrBhLBmQ\",\"type\":\"Customer\"}}```\n\t */\n\twho?: Record<string, any> | null\n\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Versions extends ApiResource<Version> {\n\n\tstatic readonly TYPE: VersionType = 'versions' as const\n\n\tasync event_stores(versionId: string | Version, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _versionId = (versionId as Version).id || versionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `versions/${_versionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisVersion(resource: any): resource is Version {\n\t\treturn resource.type && (resource.type === Versions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VersionRel {\n\t\treturn super.relationshipOneToOne<VersionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VersionRel[] {\n\t\treturn super.relationshipOneToMany<VersionRel>(...ids)\n\t}\n\n\n\ttype(): VersionType {\n\t\treturn Versions.TYPE\n\t}\n\n}\n\n\nconst instance = new Versions()\nexport default instance\n\nexport type { Version, Versions, VersionType }\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-L2R5G3V5.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/order_subscription_items.ts
|
|
4
|
+
var OrderSubscriptionItems = class _OrderSubscriptionItems extends ApiResource {
|
|
5
|
+
static TYPE = "order_subscription_items";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _OrderSubscriptionItems.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _OrderSubscriptionItems.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _OrderSubscriptionItems.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async order_subscription(orderSubscriptionItemId, params, options) {
|
|
16
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
|
17
|
+
return this.resources.fetch({ type: "order_subscriptions" }, `order_subscription_items/${_orderSubscriptionItemId}/order_subscription`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async source_line_item(orderSubscriptionItemId, params, options) {
|
|
20
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
|
21
|
+
return this.resources.fetch({ type: "line_items" }, `order_subscription_items/${_orderSubscriptionItemId}/source_line_item`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async event_stores(orderSubscriptionItemId, params, options) {
|
|
24
|
+
const _orderSubscriptionItemId = orderSubscriptionItemId.id || orderSubscriptionItemId;
|
|
25
|
+
return this.resources.fetch({ type: "event_stores" }, `order_subscription_items/${_orderSubscriptionItemId}/event_stores`, params, options);
|
|
26
|
+
}
|
|
27
|
+
isOrderSubscriptionItem(resource) {
|
|
28
|
+
return resource.type && resource.type === _OrderSubscriptionItems.TYPE;
|
|
29
|
+
}
|
|
30
|
+
relationship(id) {
|
|
31
|
+
return super.relationshipOneToOne(id);
|
|
32
|
+
}
|
|
33
|
+
relationshipToMany(...ids) {
|
|
34
|
+
return super.relationshipOneToMany(...ids);
|
|
35
|
+
}
|
|
36
|
+
type() {
|
|
37
|
+
return _OrderSubscriptionItems.TYPE;
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
var instance = new OrderSubscriptionItems();
|
|
41
|
+
var order_subscription_items_default = instance;
|
|
42
|
+
|
|
43
|
+
export { order_subscription_items_default };
|
|
44
|
+
//# sourceMappingURL=chunk-AQHMSOPU.js.map
|
|
45
|
+
//# sourceMappingURL=chunk-AQHMSOPU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":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AAA,EAA8C;AACrK,IAAA,MAAM,wBAAA,GAA4B,wBAAkD,EAAA,IAAM,uBAAA;AAC1F,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAgB,EAAE,IAAA,EAAM,YAAA,EAAa,EAAG,CAAA,yBAAA,EAA4B,wBAAwB,CAAA,iBAAA,CAAA,EAAqB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAEA,MAAM,YAAA,CAAa,uBAAA,EAAyD,MAAA,EAAsC,OAAA,EAA8D;AAC/K,IAAA,MAAM,wBAAA,GAA4B,wBAAkD,EAAA,IAAM,uBAAA;AAC1F,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,yBAAA,EAA4B,wBAAwB,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACvJ;AAAA,EAGA,wBAAwB,QAAA,EAAkD;AACzE,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,uBAAA,CAAuB,IAAA;AAAA,EACnE;AAAA,EAGA,aAAa,EAAA,EAA0D;AACtE,IAAA,OAAO,KAAA,CAAM,qBAA+C,EAAE,CAAA;AAAA,EAC/D;AAAA,EAEA,sBAAsB,GAAA,EAA2C;AAChE,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAgD,GAAG,GAAG,CAAA;AAAA,EACpE;AAAA,EAGA,IAAA,GAAkC;AACjC,IAAA,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-AQHMSOPU.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceCreate, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Adjustment, AdjustmentType } from './adjustments'\nimport type { Bundle, BundleType } from './bundles'\nimport type { EventStore } from './event_stores'\nimport type { LineItem } from './line_items'\nimport type { OrderSubscription, OrderSubscriptionType } from './order_subscriptions'\nimport type { Sku, SkuType } from './skus'\n\n\ntype OrderSubscriptionItemType = 'order_subscription_items'\ntype OrderSubscriptionItemRel = ResourceRel & { type: OrderSubscriptionItemType }\ntype OrderSubscriptionRel = ResourceRel & { type: OrderSubscriptionType }\ntype SkuRel = ResourceRel & { type: SkuType }\ntype BundleRel = ResourceRel & { type: BundleType }\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\n\n\nexport type OrderSubscriptionItemSort = Pick<OrderSubscriptionItem, 'id' | 'quantity' | 'unit_amount_cents'> & ResourceSort\n// export type OrderSubscriptionItemFilter = Pick<OrderSubscriptionItem, 'id' | 'quantity' | 'unit_amount_cents'> & ResourceFilter\n\n\ninterface OrderSubscriptionItem extends Resource {\n\t\n\treadonly type: OrderSubscriptionItemType\n\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\t/** \n\t * The unit amount of the subscription item, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```99```\n\t */\n\tunit_amount_float?: number | null\n\t/** \n\t * The unit amount of the subscription item, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€99,00\"```\n\t */\n\tformatted_unit_amount?: string | null\n\t/** \n\t * Calculated as unit amount x quantity amount, in cents.\n\t * @example ```18800```\n\t */\n\ttotal_amount_cents?: number | null\n\t/** \n\t * Calculated as unit amount x quantity amount, float. This can be useful to track the purchase on thrid party systems, e.g Google Analyitcs Enhanced Ecommerce.\n\t * @example ```188```\n\t */\n\ttotal_amount_float: number\n\t/** \n\t * Calculated as unit amount x quantity amount, formatted. This can be useful to display the amount with currency in you views.\n\t * @example ```\"€188,00\"```\n\t */\n\tformatted_total_amount?: string | null\n\n\torder_subscription?: OrderSubscription | null\n\titem?: Sku | Bundle | Adjustment | null\n\tsku?: Sku | null\n\tbundle?: Bundle | null\n\tadjustment?: Adjustment | null\n\tsource_line_item?: LineItem | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface OrderSubscriptionItemCreate extends ResourceCreate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity: number\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\n\torder_subscription: OrderSubscriptionRel\n\titem: SkuRel | BundleRel | AdjustmentRel\n\tsku?: SkuRel | null\n\tbundle?: BundleRel | null\n\tadjustment?: AdjustmentRel | null\n\n}\n\n\ninterface OrderSubscriptionItemUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The code of the associated SKU.\n\t * @example ```\"TSHIRTMM000000FFFFFFXLXX\"```\n\t */\n\tsku_code?: string | null\n\t/** \n\t * The code of the associated bundle.\n\t * @example ```\"BUNDLEMM000000FFFFFFXLXX\"```\n\t */\n\tbundle_code?: string | null\n\t/** \n\t * The subscription item quantity.\n\t * @example ```4```\n\t */\n\tquantity?: number | null\n\t/** \n\t * The unit amount of the subscription item, in cents.\n\t * @example ```9900```\n\t */\n\tunit_amount_cents?: number | null\n\t\n}\n\n\nclass OrderSubscriptionItems extends ApiResource<OrderSubscriptionItem> {\n\n\tstatic readonly TYPE: OrderSubscriptionItemType = 'order_subscription_items' as const\n\n\tasync create(resource: OrderSubscriptionItemCreate, params?: QueryParamsRetrieve<OrderSubscriptionItem>, options?: ResourcesConfig): Promise<OrderSubscriptionItem> {\n\t\treturn this.resources.create<OrderSubscriptionItemCreate, OrderSubscriptionItem>({ ...resource, type: OrderSubscriptionItems.TYPE }, params, options)\n\t}\n\n\tasync update(resource: OrderSubscriptionItemUpdate, params?: QueryParamsRetrieve<OrderSubscriptionItem>, options?: ResourcesConfig): Promise<OrderSubscriptionItem> {\n\t\treturn this.resources.update<OrderSubscriptionItemUpdate, OrderSubscriptionItem>({ ...resource, type: OrderSubscriptionItems.TYPE }, params, options)\n\t}\n\n\tasync delete(id: string | ResourceId, options?: ResourcesConfig): Promise<void> {\n\t\tawait this.resources.delete((typeof id === 'string')? { id, type: OrderSubscriptionItems.TYPE } : id, options)\n\t}\n\n\tasync order_subscription(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve<OrderSubscription>, options?: ResourcesConfig): Promise<OrderSubscription> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<OrderSubscription>({ type: 'order_subscriptions' }, `order_subscription_items/${_orderSubscriptionItemId}/order_subscription`, params, options) as unknown as OrderSubscription\n\t}\n\n\tasync source_line_item(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsRetrieve<LineItem>, options?: ResourcesConfig): Promise<LineItem> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<LineItem>({ type: 'line_items' }, `order_subscription_items/${_orderSubscriptionItemId}/source_line_item`, params, options) as unknown as LineItem\n\t}\n\n\tasync event_stores(orderSubscriptionItemId: string | OrderSubscriptionItem, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _orderSubscriptionItemId = (orderSubscriptionItemId as OrderSubscriptionItem).id || orderSubscriptionItemId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `order_subscription_items/${_orderSubscriptionItemId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisOrderSubscriptionItem(resource: any): resource is OrderSubscriptionItem {\n\t\treturn resource.type && (resource.type === OrderSubscriptionItems.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): OrderSubscriptionItemRel {\n\t\treturn super.relationshipOneToOne<OrderSubscriptionItemRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): OrderSubscriptionItemRel[] {\n\t\treturn super.relationshipOneToMany<OrderSubscriptionItemRel>(...ids)\n\t}\n\n\n\ttype(): OrderSubscriptionItemType {\n\t\treturn OrderSubscriptionItems.TYPE\n\t}\n\n}\n\n\nconst instance = new OrderSubscriptionItems()\nexport default instance\n\nexport type { OrderSubscriptionItem, OrderSubscriptionItemCreate, OrderSubscriptionItems, OrderSubscriptionItemType, OrderSubscriptionItemUpdate }\n"]}
|