@commercelayer/sdk 7.12.0 → 7.12.1
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-BL9tZFHY.d.cts +18190 -0
- package/lib/api-DZQtGYwQ.d.ts +18190 -0
- package/lib/api.cjs +263 -263
- package/lib/api.d.cts +1 -1
- package/lib/api.d.ts +1 -1
- package/lib/api.js +132 -132
- package/lib/bundle.cjs +406 -270
- package/lib/bundle.cjs.map +1 -1
- package/lib/bundle.d.cts +3 -1
- package/lib/bundle.d.ts +3 -1
- package/lib/bundle.js +405 -269
- package/lib/bundle.js.map +1 -1
- package/lib/chunk-24NE5SNH.cjs +56 -0
- package/lib/chunk-24NE5SNH.cjs.map +1 -0
- package/lib/chunk-2BD5EQXE.js +51 -0
- package/lib/chunk-2BD5EQXE.js.map +1 -0
- package/lib/chunk-2CFM6BXC.cjs +95 -0
- package/lib/chunk-2CFM6BXC.cjs.map +1 -0
- package/lib/chunk-2DG24Y6O.cjs +51 -0
- package/lib/chunk-2DG24Y6O.cjs.map +1 -0
- package/lib/chunk-2DQPE4FR.cjs +51 -0
- package/lib/chunk-2DQPE4FR.cjs.map +1 -0
- package/lib/chunk-2GU7EWJC.js +44 -0
- package/lib/chunk-2GU7EWJC.js.map +1 -0
- package/lib/chunk-2ILQ3GLM.cjs +47 -0
- package/lib/chunk-2ILQ3GLM.cjs.map +1 -0
- package/lib/chunk-2IW23WZS.cjs +47 -0
- package/lib/chunk-2IW23WZS.cjs.map +1 -0
- package/lib/chunk-2NFQDGNK.cjs +47 -0
- package/lib/chunk-2NFQDGNK.cjs.map +1 -0
- package/lib/chunk-2S7PLJHX.js +32 -0
- package/lib/chunk-2S7PLJHX.js.map +1 -0
- package/lib/chunk-2TXRJQTU.cjs +44 -0
- package/lib/chunk-2TXRJQTU.cjs.map +1 -0
- package/lib/chunk-2WH7FZLF.js +37 -0
- package/lib/chunk-2WH7FZLF.js.map +1 -0
- package/lib/chunk-3D4FUEMG.js +49 -0
- package/lib/chunk-3D4FUEMG.js.map +1 -0
- package/lib/chunk-3JAP7TVC.js +51 -0
- package/lib/chunk-3JAP7TVC.js.map +1 -0
- package/lib/chunk-43NY4KEG.js +49 -0
- package/lib/chunk-43NY4KEG.js.map +1 -0
- package/lib/chunk-44LYFX4Z.js +69 -0
- package/lib/chunk-44LYFX4Z.js.map +1 -0
- package/lib/chunk-46GP7OXR.js +96 -0
- package/lib/chunk-46GP7OXR.js.map +1 -0
- package/lib/chunk-4DIICB2C.js +68 -0
- package/lib/chunk-4DIICB2C.js.map +1 -0
- package/lib/chunk-4GRYDY72.js +36 -0
- package/lib/chunk-4GRYDY72.js.map +1 -0
- package/lib/chunk-4HI7WNDF.cjs +55 -0
- package/lib/chunk-4HI7WNDF.cjs.map +1 -0
- package/lib/chunk-4POJYIPJ.js +95 -0
- package/lib/chunk-4POJYIPJ.js.map +1 -0
- package/lib/chunk-4QWRJHKI.cjs +47 -0
- package/lib/chunk-4QWRJHKI.cjs.map +1 -0
- package/lib/chunk-4UPCZNRS.cjs +34 -0
- package/lib/chunk-4UPCZNRS.cjs.map +1 -0
- package/lib/chunk-4XTBGJWW.js +52 -0
- package/lib/chunk-4XTBGJWW.js.map +1 -0
- package/lib/chunk-537HL2FZ.cjs +107 -0
- package/lib/chunk-537HL2FZ.cjs.map +1 -0
- package/lib/chunk-54PMSXTI.cjs +51 -0
- package/lib/chunk-54PMSXTI.cjs.map +1 -0
- package/lib/chunk-57GQ3X6P.js +91 -0
- package/lib/chunk-57GQ3X6P.js.map +1 -0
- package/lib/chunk-5ARYINZ2.cjs +50 -0
- package/lib/chunk-5ARYINZ2.cjs.map +1 -0
- package/lib/chunk-5EIKNK5S.js +66 -0
- package/lib/chunk-5EIKNK5S.js.map +1 -0
- package/lib/chunk-5J35GMM3.js +28 -0
- package/lib/chunk-5J35GMM3.js.map +1 -0
- package/lib/chunk-5Q2MYZ5B.js +59 -0
- package/lib/chunk-5Q2MYZ5B.js.map +1 -0
- package/lib/chunk-5TOKIUAB.js +89 -0
- package/lib/chunk-5TOKIUAB.js.map +1 -0
- package/lib/chunk-5UVYU4XN.cjs +51 -0
- package/lib/chunk-5UVYU4XN.cjs.map +1 -0
- package/lib/chunk-5XLKZYDF.cjs +30 -0
- package/lib/chunk-5XLKZYDF.cjs.map +1 -0
- package/lib/chunk-64WLJSJG.cjs +51 -0
- package/lib/chunk-64WLJSJG.cjs.map +1 -0
- package/lib/chunk-6BMCLZBQ.cjs +51 -0
- package/lib/chunk-6BMCLZBQ.cjs.map +1 -0
- package/lib/chunk-6BUVYKSP.cjs +49 -0
- package/lib/chunk-6BUVYKSP.cjs.map +1 -0
- package/lib/chunk-6CRXGM2S.cjs +50 -0
- package/lib/chunk-6CRXGM2S.cjs.map +1 -0
- package/lib/chunk-6RG3EDXD.js +49 -0
- package/lib/chunk-6RG3EDXD.js.map +1 -0
- package/lib/chunk-6TBUF3H2.cjs +68 -0
- package/lib/chunk-6TBUF3H2.cjs.map +1 -0
- package/lib/chunk-6TO7G4WZ.cjs +118 -0
- package/lib/chunk-6TO7G4WZ.cjs.map +1 -0
- package/lib/chunk-6VN4NEUS.js +52 -0
- package/lib/chunk-6VN4NEUS.js.map +1 -0
- package/lib/chunk-6X3SERAO.cjs +39 -0
- package/lib/chunk-6X3SERAO.cjs.map +1 -0
- package/lib/chunk-6XX3G5GF.cjs +61 -0
- package/lib/chunk-6XX3G5GF.cjs.map +1 -0
- package/lib/chunk-73PTWYSG.js +48 -0
- package/lib/chunk-73PTWYSG.js.map +1 -0
- package/lib/chunk-73QKCTFL.cjs +95 -0
- package/lib/chunk-73QKCTFL.cjs.map +1 -0
- package/lib/chunk-74OFKAKF.js +54 -0
- package/lib/chunk-74OFKAKF.js.map +1 -0
- package/lib/chunk-7C2RQMWG.cjs +56 -0
- package/lib/chunk-7C2RQMWG.cjs.map +1 -0
- package/lib/chunk-7CG3LRH3.js +32 -0
- package/lib/chunk-7CG3LRH3.js.map +1 -0
- package/lib/chunk-7OHJVGWS.js +93 -0
- package/lib/chunk-7OHJVGWS.js.map +1 -0
- package/lib/chunk-7SB7OFM7.js +41 -0
- package/lib/chunk-7SB7OFM7.js.map +1 -0
- package/lib/chunk-7W4HDA22.js +61 -0
- package/lib/chunk-7W4HDA22.js.map +1 -0
- package/lib/chunk-7YTV5CFU.js +113 -0
- package/lib/chunk-7YTV5CFU.js.map +1 -0
- package/lib/chunk-A5P5CV26.js +99 -0
- package/lib/chunk-A5P5CV26.js.map +1 -0
- package/lib/chunk-ADBL6GHI.js +287 -0
- package/lib/chunk-ADBL6GHI.js.map +1 -0
- package/lib/chunk-AFCHVA7J.cjs +51 -0
- package/lib/chunk-AFCHVA7J.cjs.map +1 -0
- package/lib/chunk-ALWCRWTW.js +41 -0
- package/lib/chunk-ALWCRWTW.js.map +1 -0
- package/lib/chunk-ATUQUSZW.cjs +42 -0
- package/lib/chunk-ATUQUSZW.cjs.map +1 -0
- package/lib/chunk-B3C3H44A.cjs +47 -0
- package/lib/chunk-B3C3H44A.cjs.map +1 -0
- package/lib/chunk-B66V3CZY.cjs +56 -0
- package/lib/chunk-B66V3CZY.cjs.map +1 -0
- package/lib/chunk-BA5RFQPZ.cjs +95 -0
- package/lib/chunk-BA5RFQPZ.cjs.map +1 -0
- package/lib/chunk-BAHXWPSG.cjs +61 -0
- package/lib/chunk-BAHXWPSG.cjs.map +1 -0
- package/lib/chunk-BDXU3PHK.cjs +51 -0
- package/lib/chunk-BDXU3PHK.cjs.map +1 -0
- package/lib/chunk-BFGICGFK.js +73 -0
- package/lib/chunk-BFGICGFK.js.map +1 -0
- package/lib/chunk-BKHI7LSW.js +51 -0
- package/lib/chunk-BKHI7LSW.js.map +1 -0
- package/lib/chunk-BMMDE6ES.cjs +47 -0
- package/lib/chunk-BMMDE6ES.cjs.map +1 -0
- package/lib/chunk-BNRBLHHS.js +37 -0
- package/lib/chunk-BNRBLHHS.js.map +1 -0
- package/lib/chunk-BQIGX57O.js +48 -0
- package/lib/chunk-BQIGX57O.js.map +1 -0
- package/lib/chunk-BVJSDDPT.js +68 -0
- package/lib/chunk-BVJSDDPT.js.map +1 -0
- package/lib/chunk-BW4KC4JJ.js +48 -0
- package/lib/chunk-BW4KC4JJ.js.map +1 -0
- package/lib/chunk-C5TXM4TK.js +73 -0
- package/lib/chunk-C5TXM4TK.js.map +1 -0
- package/lib/chunk-C6RXW4YY.cjs +89 -0
- package/lib/chunk-C6RXW4YY.cjs.map +1 -0
- package/lib/chunk-C7K53SPD.js +24 -0
- package/lib/chunk-C7K53SPD.js.map +1 -0
- package/lib/chunk-CEZMXGF2.js +51 -0
- package/lib/chunk-CEZMXGF2.js.map +1 -0
- package/lib/chunk-CGJSEELZ.js +37 -0
- package/lib/chunk-CGJSEELZ.js.map +1 -0
- package/lib/chunk-CHD7QDKS.js +59 -0
- package/lib/chunk-CHD7QDKS.js.map +1 -0
- package/lib/chunk-CIKMIKZ6.js +42 -0
- package/lib/chunk-CIKMIKZ6.js.map +1 -0
- package/lib/chunk-CN4ZAHGA.js +40 -0
- package/lib/chunk-CN4ZAHGA.js.map +1 -0
- package/lib/chunk-CNDVEHRU.cjs +56 -0
- package/lib/chunk-CNDVEHRU.cjs.map +1 -0
- package/lib/chunk-COHQZCSV.js +54 -0
- package/lib/chunk-COHQZCSV.js.map +1 -0
- package/lib/chunk-CVEC2QZK.cjs +55 -0
- package/lib/chunk-CVEC2QZK.cjs.map +1 -0
- package/lib/chunk-CXIIIZIG.js +49 -0
- package/lib/chunk-CXIIIZIG.js.map +1 -0
- package/lib/chunk-CYBDCJQP.cjs +47 -0
- package/lib/chunk-CYBDCJQP.cjs.map +1 -0
- package/lib/chunk-D6LGIBLP.js +65 -0
- package/lib/chunk-D6LGIBLP.js.map +1 -0
- package/lib/chunk-D7CJRB3O.cjs +42 -0
- package/lib/chunk-D7CJRB3O.cjs.map +1 -0
- package/lib/chunk-DBZRDDQC.js +51 -0
- package/lib/chunk-DBZRDDQC.js.map +1 -0
- package/lib/chunk-DGN6CMSF.cjs +54 -0
- package/lib/chunk-DGN6CMSF.cjs.map +1 -0
- package/lib/chunk-DMYSSEB4.js +36 -0
- package/lib/chunk-DMYSSEB4.js.map +1 -0
- package/lib/chunk-DRHA2WTQ.js +67 -0
- package/lib/chunk-DRHA2WTQ.js.map +1 -0
- package/lib/chunk-DU7BKVA6.js +37 -0
- package/lib/chunk-DU7BKVA6.js.map +1 -0
- package/lib/chunk-DUQUDIXD.js +54 -0
- package/lib/chunk-DUQUDIXD.js.map +1 -0
- package/lib/chunk-E23O3HTZ.js +45 -0
- package/lib/chunk-E23O3HTZ.js.map +1 -0
- package/lib/chunk-E347ZWT4.js +49 -0
- package/lib/chunk-E347ZWT4.js.map +1 -0
- package/lib/chunk-EBBRMPEP.js +59 -0
- package/lib/chunk-EBBRMPEP.js.map +1 -0
- package/lib/chunk-EURZY6LF.js +45 -0
- package/lib/chunk-EURZY6LF.js.map +1 -0
- package/lib/chunk-EV2V5IMS.cjs +71 -0
- package/lib/chunk-EV2V5IMS.cjs.map +1 -0
- package/lib/chunk-EVZXYAFX.cjs +47 -0
- package/lib/chunk-EVZXYAFX.cjs.map +1 -0
- package/lib/chunk-EWGNTRWZ.cjs +51 -0
- package/lib/chunk-EWGNTRWZ.cjs.map +1 -0
- package/lib/chunk-EWPZW23I.cjs +50 -0
- package/lib/chunk-EWPZW23I.cjs.map +1 -0
- package/lib/chunk-EZBICJIP.cjs +30 -0
- package/lib/chunk-EZBICJIP.cjs.map +1 -0
- package/lib/chunk-FD73BWXU.js +93 -0
- package/lib/chunk-FD73BWXU.js.map +1 -0
- package/lib/chunk-FDG63RME.js +49 -0
- package/lib/chunk-FDG63RME.js.map +1 -0
- package/lib/chunk-FTEO3U3B.js +105 -0
- package/lib/chunk-FTEO3U3B.js.map +1 -0
- package/lib/chunk-FYD5UJFR.js +87 -0
- package/lib/chunk-FYD5UJFR.js.map +1 -0
- package/lib/chunk-FZQEBN4H.js +124 -0
- package/lib/chunk-FZQEBN4H.js.map +1 -0
- package/lib/chunk-GBFK7JL7.cjs +156 -0
- package/lib/chunk-GBFK7JL7.cjs.map +1 -0
- package/lib/chunk-GDB54Z5E.cjs +47 -0
- package/lib/chunk-GDB54Z5E.cjs.map +1 -0
- package/lib/chunk-GDMYCRU2.cjs +56 -0
- package/lib/chunk-GDMYCRU2.cjs.map +1 -0
- package/lib/chunk-GEYB6J6Q.cjs +51 -0
- package/lib/chunk-GEYB6J6Q.cjs.map +1 -0
- package/lib/chunk-GGOX5RVE.cjs +63 -0
- package/lib/chunk-GGOX5RVE.cjs.map +1 -0
- package/lib/chunk-GHXAIVNL.cjs +50 -0
- package/lib/chunk-GHXAIVNL.cjs.map +1 -0
- package/lib/chunk-GM6TOVU3.cjs +63 -0
- package/lib/chunk-GM6TOVU3.cjs.map +1 -0
- package/lib/chunk-GQ2VOYQW.cjs +47 -0
- package/lib/chunk-GQ2VOYQW.cjs.map +1 -0
- package/lib/chunk-GQSHLDFM.js +41 -0
- package/lib/chunk-GQSHLDFM.js.map +1 -0
- package/lib/chunk-GXS65DGD.js +93 -0
- package/lib/chunk-GXS65DGD.js.map +1 -0
- package/lib/chunk-HA2JISXS.cjs +56 -0
- package/lib/chunk-HA2JISXS.cjs.map +1 -0
- package/lib/chunk-HKE5VQN6.js +47 -0
- package/lib/chunk-HKE5VQN6.js.map +1 -0
- package/lib/chunk-HVB7P2BK.cjs +62 -0
- package/lib/chunk-HVB7P2BK.cjs.map +1 -0
- package/lib/chunk-HYJ7Z6D7.js +40 -0
- package/lib/chunk-HYJ7Z6D7.js.map +1 -0
- package/lib/chunk-IA3XLO6M.js +54 -0
- package/lib/chunk-IA3XLO6M.js.map +1 -0
- package/lib/chunk-ICFDBQ5X.cjs +75 -0
- package/lib/chunk-ICFDBQ5X.cjs.map +1 -0
- package/lib/chunk-IKTZENHC.js +53 -0
- package/lib/chunk-IKTZENHC.js.map +1 -0
- package/lib/chunk-ILX5NRZ6.cjs +55 -0
- package/lib/chunk-ILX5NRZ6.cjs.map +1 -0
- package/lib/chunk-ISUCEW36.cjs +39 -0
- package/lib/chunk-ISUCEW36.cjs.map +1 -0
- package/lib/chunk-IW6D2ATB.cjs +47 -0
- package/lib/chunk-IW6D2ATB.cjs.map +1 -0
- package/lib/chunk-J3EPWRQF.js +54 -0
- package/lib/chunk-J3EPWRQF.js.map +1 -0
- package/lib/chunk-JF7ZZKBL.cjs +70 -0
- package/lib/chunk-JF7ZZKBL.cjs.map +1 -0
- package/lib/chunk-JMINY25P.js +53 -0
- package/lib/chunk-JMINY25P.js.map +1 -0
- package/lib/chunk-JQWRLR32.js +37 -0
- package/lib/chunk-JQWRLR32.js.map +1 -0
- package/lib/chunk-JWSRNFYM.js +50 -0
- package/lib/chunk-JWSRNFYM.js.map +1 -0
- package/lib/chunk-JWZ3H57F.js +40 -0
- package/lib/chunk-JWZ3H57F.js.map +1 -0
- package/lib/chunk-JZ3NGNOU.cjs +75 -0
- package/lib/chunk-JZ3NGNOU.cjs.map +1 -0
- package/lib/chunk-K45H4QRJ.cjs +91 -0
- package/lib/chunk-K45H4QRJ.cjs.map +1 -0
- package/lib/chunk-KAEKTLB6.cjs +43 -0
- package/lib/chunk-KAEKTLB6.cjs.map +1 -0
- package/lib/chunk-KIYGE6PC.cjs +47 -0
- package/lib/chunk-KIYGE6PC.cjs.map +1 -0
- package/lib/chunk-KPX3O2BQ.cjs +34 -0
- package/lib/chunk-KPX3O2BQ.cjs.map +1 -0
- package/lib/chunk-KQ62ZCOB.js +45 -0
- package/lib/chunk-KQ62ZCOB.js.map +1 -0
- package/lib/chunk-KRINYHI4.js +48 -0
- package/lib/chunk-KRINYHI4.js.map +1 -0
- package/lib/chunk-KW6OBE6A.js +93 -0
- package/lib/chunk-KW6OBE6A.js.map +1 -0
- package/lib/chunk-KZHDWO2M.js +54 -0
- package/lib/chunk-KZHDWO2M.js.map +1 -0
- package/lib/chunk-L36P6TCW.cjs +61 -0
- package/lib/chunk-L36P6TCW.cjs.map +1 -0
- package/lib/chunk-L7UYIV5U.js +52 -0
- package/lib/chunk-L7UYIV5U.js.map +1 -0
- package/lib/chunk-LH3NVT5R.cjs +67 -0
- package/lib/chunk-LH3NVT5R.cjs.map +1 -0
- package/lib/chunk-LLV57FCL.cjs +95 -0
- package/lib/chunk-LLV57FCL.cjs.map +1 -0
- package/lib/chunk-LMDYSL5J.cjs +50 -0
- package/lib/chunk-LMDYSL5J.cjs.map +1 -0
- package/lib/chunk-LU7NF3DQ.cjs +39 -0
- package/lib/chunk-LU7NF3DQ.cjs.map +1 -0
- package/lib/chunk-MG6ISTV3.js +60 -0
- package/lib/chunk-MG6ISTV3.js.map +1 -0
- package/lib/chunk-MGHVUU2R.cjs +49 -0
- package/lib/chunk-MGHVUU2R.cjs.map +1 -0
- package/lib/chunk-MH54XBSX.cjs +29 -0
- package/lib/chunk-MH54XBSX.cjs.map +1 -0
- package/lib/chunk-MLED3JD2.js +45 -0
- package/lib/chunk-MLED3JD2.js.map +1 -0
- package/lib/chunk-MPGYQKVP.cjs +56 -0
- package/lib/chunk-MPGYQKVP.cjs.map +1 -0
- package/lib/chunk-MPYP5HNA.js +45 -0
- package/lib/chunk-MPYP5HNA.js.map +1 -0
- package/lib/chunk-MSAAHT3W.js +28 -0
- package/lib/chunk-MSAAHT3W.js.map +1 -0
- package/lib/chunk-MV3DXOEE.cjs +47 -0
- package/lib/chunk-MV3DXOEE.cjs.map +1 -0
- package/lib/chunk-MYXLBPGW.js +31 -0
- package/lib/chunk-MYXLBPGW.js.map +1 -0
- package/lib/chunk-N26J535W.js +53 -0
- package/lib/chunk-N26J535W.js.map +1 -0
- package/lib/chunk-NEPV2QT6.cjs +42 -0
- package/lib/chunk-NEPV2QT6.cjs.map +1 -0
- package/lib/chunk-NG7M2SWO.cjs +101 -0
- package/lib/chunk-NG7M2SWO.cjs.map +1 -0
- package/lib/chunk-NJ7VTZ45.js +40 -0
- package/lib/chunk-NJ7VTZ45.js.map +1 -0
- package/lib/chunk-NJZ5526I.cjs +98 -0
- package/lib/chunk-NJZ5526I.cjs.map +1 -0
- package/lib/chunk-NQ2WJSTK.js +45 -0
- package/lib/chunk-NQ2WJSTK.js.map +1 -0
- package/lib/chunk-NUJMM4IE.cjs +46 -0
- package/lib/chunk-NUJMM4IE.cjs.map +1 -0
- package/lib/chunk-NZV7T6OS.cjs +42 -0
- package/lib/chunk-NZV7T6OS.cjs.map +1 -0
- package/lib/chunk-O5LELQ3H.cjs +55 -0
- package/lib/chunk-O5LELQ3H.cjs.map +1 -0
- package/lib/chunk-O5ZCTFGS.cjs +57 -0
- package/lib/chunk-O5ZCTFGS.cjs.map +1 -0
- package/lib/chunk-OCHJ6H5L.js +59 -0
- package/lib/chunk-OCHJ6H5L.js.map +1 -0
- package/lib/chunk-OEOPKYYH.cjs +77 -0
- package/lib/chunk-OEOPKYYH.cjs.map +1 -0
- package/lib/chunk-OOWF4KZW.js +49 -0
- package/lib/chunk-OOWF4KZW.js.map +1 -0
- package/lib/chunk-OQ6XCVXY.js +41 -0
- package/lib/chunk-OQ6XCVXY.js.map +1 -0
- package/lib/chunk-OQJSTZNL.cjs +61 -0
- package/lib/chunk-OQJSTZNL.cjs.map +1 -0
- package/lib/chunk-ORUCCVMU.js +45 -0
- package/lib/chunk-ORUCCVMU.js.map +1 -0
- package/lib/chunk-OUXO6SLS.cjs +49 -0
- package/lib/chunk-OUXO6SLS.cjs.map +1 -0
- package/lib/chunk-OY6MZVBQ.cjs +38 -0
- package/lib/chunk-OY6MZVBQ.cjs.map +1 -0
- package/lib/chunk-PAQOOCG3.cjs +126 -0
- package/lib/chunk-PAQOOCG3.cjs.map +1 -0
- package/lib/chunk-PASUJC7O.cjs +51 -0
- package/lib/chunk-PASUJC7O.cjs.map +1 -0
- package/lib/chunk-PDGVNV5M.js +154 -0
- package/lib/chunk-PDGVNV5M.js.map +1 -0
- package/lib/chunk-PECN2STI.cjs +47 -0
- package/lib/chunk-PECN2STI.cjs.map +1 -0
- package/lib/chunk-PN24CPTP.js +40 -0
- package/lib/chunk-PN24CPTP.js.map +1 -0
- package/lib/chunk-PSSGYICM.cjs +47 -0
- package/lib/chunk-PSSGYICM.cjs.map +1 -0
- package/lib/chunk-PWISCPLC.cjs +55 -0
- package/lib/chunk-PWISCPLC.cjs.map +1 -0
- package/lib/chunk-Q35LAO5H.cjs +61 -0
- package/lib/chunk-Q35LAO5H.cjs.map +1 -0
- package/lib/chunk-Q5LEAU3I.js +44 -0
- package/lib/chunk-Q5LEAU3I.js.map +1 -0
- package/lib/chunk-QDU2H45U.cjs +53 -0
- package/lib/chunk-QDU2H45U.cjs.map +1 -0
- package/lib/chunk-QHDNUJT6.js +45 -0
- package/lib/chunk-QHDNUJT6.js.map +1 -0
- package/lib/chunk-QHLRNRP7.js +54 -0
- package/lib/chunk-QHLRNRP7.js.map +1 -0
- package/lib/chunk-QIAXU2SJ.cjs +54 -0
- package/lib/chunk-QIAXU2SJ.cjs.map +1 -0
- package/lib/chunk-QLHBMADF.cjs +52 -0
- package/lib/chunk-QLHBMADF.cjs.map +1 -0
- package/lib/chunk-QLLPSD32.cjs +51 -0
- package/lib/chunk-QLLPSD32.cjs.map +1 -0
- package/lib/chunk-QLW5QVVW.cjs +70 -0
- package/lib/chunk-QLW5QVVW.cjs.map +1 -0
- package/lib/chunk-QNJQIJKL.cjs +98 -0
- package/lib/chunk-QNJQIJKL.cjs.map +1 -0
- package/lib/chunk-QPFAATIQ.js +49 -0
- package/lib/chunk-QPFAATIQ.js.map +1 -0
- package/lib/chunk-QRRPEYJZ.cjs +26 -0
- package/lib/chunk-QRRPEYJZ.cjs.map +1 -0
- package/lib/chunk-QYNCYKXA.cjs +51 -0
- package/lib/chunk-QYNCYKXA.cjs.map +1 -0
- package/lib/chunk-QYQLV3UF.js +57 -0
- package/lib/chunk-QYQLV3UF.js.map +1 -0
- package/lib/chunk-R5GWVFCY.cjs +95 -0
- package/lib/chunk-R5GWVFCY.cjs.map +1 -0
- package/lib/chunk-R5RKU5ET.cjs +68 -0
- package/lib/chunk-R5RKU5ET.cjs.map +1 -0
- package/lib/chunk-RAVVFNM3.cjs +42 -0
- package/lib/chunk-RAVVFNM3.cjs.map +1 -0
- package/lib/chunk-RDACMJVS.js +53 -0
- package/lib/chunk-RDACMJVS.js.map +1 -0
- package/lib/chunk-RJIKKTQZ.cjs +39 -0
- package/lib/chunk-RJIKKTQZ.cjs.map +1 -0
- package/lib/chunk-ROYOEYGX.cjs +33 -0
- package/lib/chunk-ROYOEYGX.cjs.map +1 -0
- package/lib/chunk-RSYBOKNE.js +45 -0
- package/lib/chunk-RSYBOKNE.js.map +1 -0
- package/lib/chunk-RYPA7HYS.js +93 -0
- package/lib/chunk-RYPA7HYS.js.map +1 -0
- package/lib/chunk-S2SYYYG2.cjs +69 -0
- package/lib/chunk-S2SYYYG2.cjs.map +1 -0
- package/lib/chunk-S6XPCUJW.js +75 -0
- package/lib/chunk-S6XPCUJW.js.map +1 -0
- package/lib/chunk-SFYB5GXI.js +59 -0
- package/lib/chunk-SFYB5GXI.js.map +1 -0
- package/lib/chunk-SSQYQJV3.js +66 -0
- package/lib/chunk-SSQYQJV3.js.map +1 -0
- package/lib/chunk-SUUOHRSG.js +61 -0
- package/lib/chunk-SUUOHRSG.js.map +1 -0
- package/lib/chunk-SW5N35FH.cjs +43 -0
- package/lib/chunk-SW5N35FH.cjs.map +1 -0
- package/lib/chunk-T26776MO.cjs +105 -0
- package/lib/chunk-T26776MO.cjs.map +1 -0
- package/lib/chunk-T2OKZDN4.js +49 -0
- package/lib/chunk-T2OKZDN4.js.map +1 -0
- package/lib/chunk-T5G655QT.js +27 -0
- package/lib/chunk-T5G655QT.js.map +1 -0
- package/lib/chunk-TE67ODLT.js +47 -0
- package/lib/chunk-TE67ODLT.js.map +1 -0
- package/lib/chunk-TGFRUTII.js +45 -0
- package/lib/chunk-TGFRUTII.js.map +1 -0
- package/lib/chunk-TM3WY5JX.js +49 -0
- package/lib/chunk-TM3WY5JX.js.map +1 -0
- package/lib/chunk-TOIJVWRZ.cjs +285 -0
- package/lib/chunk-TOIJVWRZ.cjs.map +1 -0
- package/lib/chunk-TUCNQX6Y.js +49 -0
- package/lib/chunk-TUCNQX6Y.js.map +1 -0
- package/lib/chunk-U5RLBTS6.js +49 -0
- package/lib/chunk-U5RLBTS6.js.map +1 -0
- package/lib/chunk-UBFZSSUZ.js +50 -0
- package/lib/chunk-UBFZSSUZ.js.map +1 -0
- package/lib/chunk-UD2ZHF5I.js +49 -0
- package/lib/chunk-UD2ZHF5I.js.map +1 -0
- package/lib/chunk-UMID2D26.js +45 -0
- package/lib/chunk-UMID2D26.js.map +1 -0
- package/lib/chunk-UUL3UDIC.js +45 -0
- package/lib/chunk-UUL3UDIC.js.map +1 -0
- package/lib/chunk-V4PP6IUM.cjs +42 -0
- package/lib/chunk-V4PP6IUM.cjs.map +1 -0
- package/lib/chunk-VH65L3FZ.cjs +43 -0
- package/lib/chunk-VH65L3FZ.cjs.map +1 -0
- package/lib/chunk-VIPTK4KE.js +40 -0
- package/lib/chunk-VIPTK4KE.js.map +1 -0
- package/lib/chunk-VS7D74RY.cjs +54 -0
- package/lib/chunk-VS7D74RY.cjs.map +1 -0
- package/lib/chunk-VWZ2H35A.cjs +53 -0
- package/lib/chunk-VWZ2H35A.cjs.map +1 -0
- package/lib/chunk-W2ZODWRB.cjs +47 -0
- package/lib/chunk-W2ZODWRB.cjs.map +1 -0
- package/lib/chunk-W534ZCYS.cjs +43 -0
- package/lib/chunk-W534ZCYS.cjs.map +1 -0
- package/lib/chunk-WAQYCXXA.cjs +55 -0
- package/lib/chunk-WAQYCXXA.cjs.map +1 -0
- package/lib/chunk-WGKGDMJG.js +54 -0
- package/lib/chunk-WGKGDMJG.js.map +1 -0
- package/lib/chunk-WKD345DZ.cjs +52 -0
- package/lib/chunk-WKD345DZ.cjs.map +1 -0
- package/lib/chunk-WM3MOTCN.js +45 -0
- package/lib/chunk-WM3MOTCN.js.map +1 -0
- package/lib/chunk-WQKG5HJS.js +45 -0
- package/lib/chunk-WQKG5HJS.js.map +1 -0
- package/lib/chunk-WSNUMIIY.cjs +56 -0
- package/lib/chunk-WSNUMIIY.cjs.map +1 -0
- package/lib/chunk-WYULLF7A.cjs +53 -0
- package/lib/chunk-WYULLF7A.cjs.map +1 -0
- package/lib/chunk-X2BR77L2.js +283 -0
- package/lib/chunk-X2BR77L2.js.map +1 -0
- package/lib/chunk-X46PVG74.js +45 -0
- package/lib/chunk-X46PVG74.js.map +1 -0
- package/lib/chunk-X5OWNCC4.cjs +38 -0
- package/lib/chunk-X5OWNCC4.cjs.map +1 -0
- package/lib/chunk-X6SULYQB.cjs +38 -0
- package/lib/chunk-X6SULYQB.cjs.map +1 -0
- package/lib/chunk-X7AKN4S6.js +48 -0
- package/lib/chunk-X7AKN4S6.js.map +1 -0
- package/lib/chunk-XBBVFGOJ.js +45 -0
- package/lib/chunk-XBBVFGOJ.js.map +1 -0
- package/lib/chunk-XC67WDBZ.cjs +39 -0
- package/lib/chunk-XC67WDBZ.cjs.map +1 -0
- package/lib/chunk-XCFDOKIM.cjs +47 -0
- package/lib/chunk-XCFDOKIM.cjs.map +1 -0
- package/lib/chunk-XKDMHHU6.js +53 -0
- package/lib/chunk-XKDMHHU6.js.map +1 -0
- package/lib/chunk-XPE3CHFX.js +40 -0
- package/lib/chunk-XPE3CHFX.js.map +1 -0
- package/lib/chunk-XRYS36MH.js +45 -0
- package/lib/chunk-XRYS36MH.js.map +1 -0
- package/lib/chunk-XXL66GOT.js +103 -0
- package/lib/chunk-XXL66GOT.js.map +1 -0
- package/lib/chunk-XYFVAE5Q.js +37 -0
- package/lib/chunk-XYFVAE5Q.js.map +1 -0
- package/lib/chunk-XYPIGF36.cjs +295 -0
- package/lib/chunk-XYPIGF36.cjs.map +1 -0
- package/lib/chunk-Y262ZN7R.cjs +42 -0
- package/lib/chunk-Y262ZN7R.cjs.map +1 -0
- package/lib/chunk-YBRIQ52U.cjs +97 -0
- package/lib/chunk-YBRIQ52U.cjs.map +1 -0
- package/lib/chunk-YGGJGJU7.js +55 -0
- package/lib/chunk-YGGJGJU7.js.map +1 -0
- package/lib/chunk-YNKM6H3D.cjs +59 -0
- package/lib/chunk-YNKM6H3D.cjs.map +1 -0
- package/lib/chunk-YPX3YJ4L.cjs +93 -0
- package/lib/chunk-YPX3YJ4L.cjs.map +1 -0
- package/lib/chunk-YXMPQHE4.cjs +57 -0
- package/lib/chunk-YXMPQHE4.cjs.map +1 -0
- package/lib/chunk-Z3XTAUYM.js +96 -0
- package/lib/chunk-Z3XTAUYM.js.map +1 -0
- package/lib/chunk-Z4CUVPMW.js +47 -0
- package/lib/chunk-Z4CUVPMW.js.map +1 -0
- package/lib/chunk-Z4PD2SXY.js +55 -0
- package/lib/chunk-Z4PD2SXY.js.map +1 -0
- package/lib/chunk-ZBIJQ4CN.js +53 -0
- package/lib/chunk-ZBIJQ4CN.js.map +1 -0
- package/lib/chunk-ZCMD5U3M.js +36 -0
- package/lib/chunk-ZCMD5U3M.js.map +1 -0
- package/lib/chunk-ZF5RJEW7.cjs +39 -0
- package/lib/chunk-ZF5RJEW7.cjs.map +1 -0
- package/lib/chunk-ZGKZWE7U.cjs +53 -0
- package/lib/chunk-ZGKZWE7U.cjs.map +1 -0
- package/lib/chunk-ZHCI2QRX.cjs +46 -0
- package/lib/chunk-ZHCI2QRX.cjs.map +1 -0
- package/lib/chunk-ZMZ73HFP.cjs +53 -0
- package/lib/chunk-ZMZ73HFP.cjs.map +1 -0
- package/lib/chunk-ZT5VCXSB.js +45 -0
- package/lib/chunk-ZT5VCXSB.js.map +1 -0
- package/lib/chunk-ZTSVFTKP.cjs +51 -0
- package/lib/chunk-ZTSVFTKP.cjs.map +1 -0
- package/lib/chunk-ZVJZFSX5.cjs +47 -0
- package/lib/chunk-ZVJZFSX5.cjs.map +1 -0
- package/lib/chunk-ZZZ5IYR4.js +49 -0
- package/lib/chunk-ZZZ5IYR4.js.map +1 -0
- package/lib/commercelayer.cjs +6 -6
- package/lib/commercelayer.d.cts +3 -1
- package/lib/commercelayer.d.ts +3 -1
- package/lib/commercelayer.js +2 -2
- package/lib/enum.d.cts +1 -1
- package/lib/enum.d.ts +1 -1
- package/lib/index.cjs +268 -268
- package/lib/index.d.cts +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +134 -134
- package/lib/jsonapi.cjs +3 -3
- package/lib/jsonapi.d.cts +1 -1
- package/lib/jsonapi.d.ts +1 -1
- package/lib/jsonapi.js +1 -1
- package/lib/model.d.cts +1 -1
- package/lib/model.d.ts +1 -1
- package/lib/query.d.cts +1 -1
- package/lib/query.d.ts +1 -1
- package/lib/resource.cjs +6 -6
- package/lib/resource.d.cts +1 -1
- package/lib/resource.d.ts +1 -1
- package/lib/resource.js +1 -1
- package/lib/resources/addresses.cjs +3 -3
- package/lib/resources/addresses.d.cts +2 -2
- package/lib/resources/addresses.d.ts +1 -1
- package/lib/resources/addresses.js +2 -2
- package/lib/resources/adjustments.cjs +3 -3
- package/lib/resources/adjustments.d.cts +2 -2
- package/lib/resources/adjustments.d.ts +1 -1
- package/lib/resources/adjustments.js +2 -2
- package/lib/resources/adyen_gateways.cjs +3 -3
- package/lib/resources/adyen_gateways.d.cts +2 -2
- package/lib/resources/adyen_gateways.d.ts +1 -1
- package/lib/resources/adyen_gateways.js +2 -2
- package/lib/resources/adyen_payments.cjs +3 -3
- package/lib/resources/adyen_payments.d.cts +2 -2
- package/lib/resources/adyen_payments.d.ts +1 -1
- package/lib/resources/adyen_payments.js +2 -2
- package/lib/resources/applications.cjs +3 -3
- package/lib/resources/applications.d.cts +2 -2
- package/lib/resources/applications.d.ts +1 -1
- package/lib/resources/applications.js +2 -2
- package/lib/resources/attachments.cjs +3 -3
- package/lib/resources/attachments.d.cts +2 -2
- package/lib/resources/attachments.d.ts +1 -1
- package/lib/resources/attachments.js +2 -2
- package/lib/resources/authorizations.cjs +3 -3
- package/lib/resources/authorizations.d.cts +2 -2
- package/lib/resources/authorizations.d.ts +1 -1
- package/lib/resources/authorizations.js +2 -2
- package/lib/resources/avalara_accounts.cjs +3 -3
- package/lib/resources/avalara_accounts.d.cts +2 -2
- package/lib/resources/avalara_accounts.d.ts +1 -1
- package/lib/resources/avalara_accounts.js +2 -2
- package/lib/resources/axerve_gateways.cjs +3 -3
- package/lib/resources/axerve_gateways.d.cts +2 -2
- package/lib/resources/axerve_gateways.d.ts +1 -1
- package/lib/resources/axerve_gateways.js +2 -2
- package/lib/resources/axerve_payments.cjs +3 -3
- package/lib/resources/axerve_payments.d.cts +2 -2
- package/lib/resources/axerve_payments.d.ts +1 -1
- package/lib/resources/axerve_payments.js +2 -2
- package/lib/resources/bing_geocoders.cjs +3 -3
- package/lib/resources/bing_geocoders.d.cts +2 -2
- package/lib/resources/bing_geocoders.d.ts +1 -1
- package/lib/resources/bing_geocoders.js +2 -2
- package/lib/resources/braintree_gateways.cjs +3 -3
- package/lib/resources/braintree_gateways.d.cts +2 -2
- package/lib/resources/braintree_gateways.d.ts +1 -1
- package/lib/resources/braintree_gateways.js +2 -2
- package/lib/resources/braintree_payments.cjs +3 -3
- package/lib/resources/braintree_payments.d.cts +2 -2
- package/lib/resources/braintree_payments.d.ts +1 -1
- package/lib/resources/braintree_payments.js +2 -2
- package/lib/resources/bundles.cjs +3 -3
- package/lib/resources/bundles.d.cts +2 -2
- package/lib/resources/bundles.d.ts +1 -1
- package/lib/resources/bundles.js +2 -2
- package/lib/resources/buy_x_pay_y_promotions.cjs +3 -3
- package/lib/resources/buy_x_pay_y_promotions.d.cts +2 -2
- package/lib/resources/buy_x_pay_y_promotions.d.ts +1 -1
- package/lib/resources/buy_x_pay_y_promotions.js +2 -2
- package/lib/resources/captures.cjs +3 -3
- package/lib/resources/captures.d.cts +2 -2
- package/lib/resources/captures.d.ts +1 -1
- package/lib/resources/captures.js +2 -2
- package/lib/resources/carrier_accounts.cjs +3 -3
- package/lib/resources/carrier_accounts.d.cts +2 -2
- package/lib/resources/carrier_accounts.d.ts +1 -1
- package/lib/resources/carrier_accounts.js +2 -2
- package/lib/resources/checkout_com_gateways.cjs +3 -3
- package/lib/resources/checkout_com_gateways.d.cts +2 -2
- package/lib/resources/checkout_com_gateways.d.ts +1 -1
- package/lib/resources/checkout_com_gateways.js +2 -2
- package/lib/resources/checkout_com_payments.cjs +3 -3
- package/lib/resources/checkout_com_payments.d.cts +2 -2
- package/lib/resources/checkout_com_payments.d.ts +1 -1
- package/lib/resources/checkout_com_payments.js +2 -2
- package/lib/resources/cleanups.cjs +3 -3
- package/lib/resources/cleanups.d.cts +2 -2
- package/lib/resources/cleanups.d.ts +1 -1
- package/lib/resources/cleanups.js +2 -2
- package/lib/resources/coupon_codes_promotion_rules.cjs +3 -3
- package/lib/resources/coupon_codes_promotion_rules.d.cts +2 -2
- package/lib/resources/coupon_codes_promotion_rules.d.ts +1 -1
- package/lib/resources/coupon_codes_promotion_rules.js +2 -2
- package/lib/resources/coupon_recipients.cjs +3 -3
- package/lib/resources/coupon_recipients.d.cts +2 -2
- package/lib/resources/coupon_recipients.d.ts +1 -1
- package/lib/resources/coupon_recipients.js +2 -2
- package/lib/resources/coupons.cjs +3 -3
- package/lib/resources/coupons.d.cts +2 -2
- package/lib/resources/coupons.d.ts +1 -1
- package/lib/resources/coupons.js +2 -2
- package/lib/resources/custom_promotion_rules.cjs +3 -3
- package/lib/resources/custom_promotion_rules.d.cts +2 -2
- package/lib/resources/custom_promotion_rules.d.ts +1 -1
- package/lib/resources/custom_promotion_rules.js +2 -2
- package/lib/resources/customer_addresses.cjs +3 -3
- package/lib/resources/customer_addresses.d.cts +2 -2
- package/lib/resources/customer_addresses.d.ts +1 -1
- package/lib/resources/customer_addresses.js +2 -2
- package/lib/resources/customer_groups.cjs +3 -3
- package/lib/resources/customer_groups.d.cts +2 -2
- package/lib/resources/customer_groups.d.ts +1 -1
- package/lib/resources/customer_groups.js +2 -2
- package/lib/resources/customer_password_resets.cjs +3 -3
- package/lib/resources/customer_password_resets.d.cts +2 -2
- package/lib/resources/customer_password_resets.d.ts +1 -1
- package/lib/resources/customer_password_resets.js +2 -2
- package/lib/resources/customer_payment_sources.cjs +3 -3
- package/lib/resources/customer_payment_sources.d.cts +2 -2
- package/lib/resources/customer_payment_sources.d.ts +1 -1
- package/lib/resources/customer_payment_sources.js +2 -2
- package/lib/resources/customer_subscriptions.cjs +3 -3
- package/lib/resources/customer_subscriptions.d.cts +2 -2
- package/lib/resources/customer_subscriptions.d.ts +1 -1
- package/lib/resources/customer_subscriptions.js +2 -2
- package/lib/resources/customers.cjs +3 -3
- package/lib/resources/customers.d.cts +2 -2
- package/lib/resources/customers.d.ts +1 -1
- package/lib/resources/customers.js +2 -2
- package/lib/resources/delivery_lead_times.cjs +3 -3
- package/lib/resources/delivery_lead_times.d.cts +2 -2
- package/lib/resources/delivery_lead_times.d.ts +1 -1
- package/lib/resources/delivery_lead_times.js +2 -2
- package/lib/resources/discount_engine_items.cjs +3 -3
- package/lib/resources/discount_engine_items.d.cts +2 -2
- package/lib/resources/discount_engine_items.d.ts +1 -1
- package/lib/resources/discount_engine_items.js +2 -2
- package/lib/resources/discount_engines.cjs +3 -3
- package/lib/resources/discount_engines.d.cts +2 -2
- package/lib/resources/discount_engines.d.ts +1 -1
- package/lib/resources/discount_engines.js +2 -2
- package/lib/resources/easypost_pickups.cjs +3 -3
- package/lib/resources/easypost_pickups.d.cts +2 -2
- package/lib/resources/easypost_pickups.d.ts +1 -1
- package/lib/resources/easypost_pickups.js +2 -2
- package/lib/resources/event_callbacks.cjs +3 -3
- package/lib/resources/event_callbacks.d.cts +2 -2
- package/lib/resources/event_callbacks.d.ts +1 -1
- package/lib/resources/event_callbacks.js +2 -2
- package/lib/resources/event_stores.cjs +3 -3
- package/lib/resources/event_stores.d.cts +2 -2
- package/lib/resources/event_stores.d.ts +1 -1
- package/lib/resources/event_stores.js +2 -2
- package/lib/resources/events.cjs +3 -3
- package/lib/resources/events.d.cts +2 -2
- package/lib/resources/events.d.ts +1 -1
- package/lib/resources/events.js +2 -2
- package/lib/resources/exports.cjs +3 -3
- package/lib/resources/exports.d.cts +2 -2
- package/lib/resources/exports.d.ts +1 -1
- package/lib/resources/exports.js +2 -2
- package/lib/resources/external_gateways.cjs +3 -3
- package/lib/resources/external_gateways.d.cts +2 -2
- package/lib/resources/external_gateways.d.ts +1 -1
- package/lib/resources/external_gateways.js +2 -2
- package/lib/resources/external_payments.cjs +3 -3
- package/lib/resources/external_payments.d.cts +2 -2
- package/lib/resources/external_payments.d.ts +1 -1
- package/lib/resources/external_payments.js +2 -2
- package/lib/resources/external_promotions.cjs +3 -3
- package/lib/resources/external_promotions.d.cts +2 -2
- package/lib/resources/external_promotions.d.ts +1 -1
- package/lib/resources/external_promotions.js +2 -2
- package/lib/resources/external_tax_calculators.cjs +3 -3
- package/lib/resources/external_tax_calculators.d.cts +2 -2
- package/lib/resources/external_tax_calculators.d.ts +1 -1
- package/lib/resources/external_tax_calculators.js +2 -2
- package/lib/resources/fixed_amount_promotions.cjs +3 -3
- package/lib/resources/fixed_amount_promotions.d.cts +2 -2
- package/lib/resources/fixed_amount_promotions.d.ts +1 -1
- package/lib/resources/fixed_amount_promotions.js +2 -2
- package/lib/resources/fixed_price_promotions.cjs +3 -3
- package/lib/resources/fixed_price_promotions.d.cts +2 -2
- package/lib/resources/fixed_price_promotions.d.ts +1 -1
- package/lib/resources/fixed_price_promotions.js +2 -2
- package/lib/resources/flex_promotions.cjs +3 -3
- package/lib/resources/flex_promotions.d.cts +2 -2
- package/lib/resources/flex_promotions.d.ts +1 -1
- package/lib/resources/flex_promotions.js +2 -2
- package/lib/resources/free_gift_promotions.cjs +3 -3
- package/lib/resources/free_gift_promotions.d.cts +2 -2
- package/lib/resources/free_gift_promotions.d.ts +1 -1
- package/lib/resources/free_gift_promotions.js +2 -2
- package/lib/resources/free_shipping_promotions.cjs +3 -3
- package/lib/resources/free_shipping_promotions.d.cts +2 -2
- package/lib/resources/free_shipping_promotions.d.ts +1 -1
- package/lib/resources/free_shipping_promotions.js +2 -2
- package/lib/resources/geocoders.cjs +3 -3
- package/lib/resources/geocoders.d.cts +2 -2
- package/lib/resources/geocoders.d.ts +1 -1
- package/lib/resources/geocoders.js +2 -2
- package/lib/resources/gift_card_recipients.cjs +3 -3
- package/lib/resources/gift_card_recipients.d.cts +2 -2
- package/lib/resources/gift_card_recipients.d.ts +1 -1
- package/lib/resources/gift_card_recipients.js +2 -2
- package/lib/resources/gift_cards.cjs +3 -3
- package/lib/resources/gift_cards.d.cts +2 -2
- package/lib/resources/gift_cards.d.ts +1 -1
- package/lib/resources/gift_cards.js +2 -2
- package/lib/resources/google_geocoders.cjs +3 -3
- package/lib/resources/google_geocoders.d.cts +2 -2
- package/lib/resources/google_geocoders.d.ts +1 -1
- package/lib/resources/google_geocoders.js +2 -2
- package/lib/resources/imports.cjs +3 -3
- package/lib/resources/imports.d.cts +2 -2
- package/lib/resources/imports.d.ts +1 -1
- package/lib/resources/imports.js +2 -2
- package/lib/resources/in_stock_subscriptions.cjs +3 -3
- package/lib/resources/in_stock_subscriptions.d.cts +2 -2
- package/lib/resources/in_stock_subscriptions.d.ts +1 -1
- package/lib/resources/in_stock_subscriptions.js +2 -2
- package/lib/resources/inventory_models.cjs +3 -3
- package/lib/resources/inventory_models.d.cts +2 -2
- package/lib/resources/inventory_models.d.ts +1 -1
- package/lib/resources/inventory_models.js +2 -2
- package/lib/resources/inventory_return_locations.cjs +3 -3
- package/lib/resources/inventory_return_locations.d.cts +2 -2
- package/lib/resources/inventory_return_locations.d.ts +1 -1
- package/lib/resources/inventory_return_locations.js +2 -2
- package/lib/resources/inventory_stock_locations.cjs +3 -3
- package/lib/resources/inventory_stock_locations.d.cts +2 -2
- package/lib/resources/inventory_stock_locations.d.ts +1 -1
- package/lib/resources/inventory_stock_locations.js +2 -2
- package/lib/resources/klarna_gateways.cjs +3 -3
- package/lib/resources/klarna_gateways.d.cts +2 -2
- package/lib/resources/klarna_gateways.d.ts +1 -1
- package/lib/resources/klarna_gateways.js +2 -2
- package/lib/resources/klarna_payments.cjs +3 -3
- package/lib/resources/klarna_payments.d.cts +2 -2
- package/lib/resources/klarna_payments.d.ts +1 -1
- package/lib/resources/klarna_payments.js +2 -2
- package/lib/resources/line_item_options.cjs +3 -3
- package/lib/resources/line_item_options.d.cts +2 -2
- package/lib/resources/line_item_options.d.ts +1 -1
- package/lib/resources/line_item_options.js +2 -2
- package/lib/resources/line_items.cjs +3 -3
- package/lib/resources/line_items.d.cts +2 -2
- package/lib/resources/line_items.d.ts +1 -1
- package/lib/resources/line_items.js +2 -2
- package/lib/resources/links.cjs +3 -3
- package/lib/resources/links.d.cts +2 -2
- package/lib/resources/links.d.ts +1 -1
- package/lib/resources/links.js +2 -2
- package/lib/resources/manual_gateways.cjs +3 -3
- package/lib/resources/manual_gateways.d.cts +2 -2
- package/lib/resources/manual_gateways.d.ts +1 -1
- package/lib/resources/manual_gateways.js +2 -2
- package/lib/resources/manual_tax_calculators.cjs +3 -3
- package/lib/resources/manual_tax_calculators.d.cts +2 -2
- package/lib/resources/manual_tax_calculators.d.ts +1 -1
- package/lib/resources/manual_tax_calculators.js +2 -2
- package/lib/resources/markets.cjs +3 -3
- package/lib/resources/markets.d.cts +2 -2
- package/lib/resources/markets.d.ts +1 -1
- package/lib/resources/markets.js +2 -2
- package/lib/resources/merchants.cjs +3 -3
- package/lib/resources/merchants.d.cts +2 -2
- package/lib/resources/merchants.d.ts +1 -1
- package/lib/resources/merchants.js +2 -2
- package/lib/resources/notifications.cjs +3 -3
- package/lib/resources/notifications.d.cts +2 -2
- package/lib/resources/notifications.d.ts +1 -1
- package/lib/resources/notifications.js +2 -2
- package/lib/resources/order_amount_promotion_rules.cjs +3 -3
- package/lib/resources/order_amount_promotion_rules.d.cts +2 -2
- package/lib/resources/order_amount_promotion_rules.d.ts +1 -1
- package/lib/resources/order_amount_promotion_rules.js +2 -2
- package/lib/resources/order_copies.cjs +3 -3
- package/lib/resources/order_copies.d.cts +2 -2
- package/lib/resources/order_copies.d.ts +1 -1
- package/lib/resources/order_copies.js +2 -2
- package/lib/resources/order_factories.cjs +3 -3
- package/lib/resources/order_factories.d.cts +2 -2
- package/lib/resources/order_factories.d.ts +1 -1
- package/lib/resources/order_factories.js +2 -2
- package/lib/resources/order_subscription_items.cjs +3 -3
- package/lib/resources/order_subscription_items.d.cts +2 -2
- package/lib/resources/order_subscription_items.d.ts +1 -1
- package/lib/resources/order_subscription_items.js +2 -2
- package/lib/resources/order_subscriptions.cjs +3 -3
- package/lib/resources/order_subscriptions.d.cts +2 -2
- package/lib/resources/order_subscriptions.d.ts +1 -1
- package/lib/resources/order_subscriptions.js +2 -2
- package/lib/resources/orders.cjs +3 -3
- package/lib/resources/orders.d.cts +2 -2
- package/lib/resources/orders.d.ts +1 -1
- package/lib/resources/orders.js +2 -2
- package/lib/resources/organizations.cjs +3 -3
- package/lib/resources/organizations.d.cts +2 -2
- package/lib/resources/organizations.d.ts +1 -1
- package/lib/resources/organizations.js +2 -2
- package/lib/resources/packages.cjs +3 -3
- package/lib/resources/packages.d.cts +2 -2
- package/lib/resources/packages.d.ts +1 -1
- package/lib/resources/packages.js +2 -2
- package/lib/resources/parcel_line_items.cjs +3 -3
- package/lib/resources/parcel_line_items.d.cts +2 -2
- package/lib/resources/parcel_line_items.d.ts +1 -1
- package/lib/resources/parcel_line_items.js +2 -2
- package/lib/resources/parcels.cjs +3 -3
- package/lib/resources/parcels.d.cts +2 -2
- package/lib/resources/parcels.d.ts +1 -1
- package/lib/resources/parcels.js +2 -2
- package/lib/resources/payment_gateways.cjs +3 -3
- package/lib/resources/payment_gateways.d.cts +2 -2
- package/lib/resources/payment_gateways.d.ts +1 -1
- package/lib/resources/payment_gateways.js +2 -2
- package/lib/resources/payment_methods.cjs +3 -3
- package/lib/resources/payment_methods.d.cts +2 -2
- package/lib/resources/payment_methods.d.ts +1 -1
- package/lib/resources/payment_methods.js +2 -2
- package/lib/resources/payment_options.cjs +3 -3
- package/lib/resources/payment_options.d.cts +2 -2
- package/lib/resources/payment_options.d.ts +1 -1
- package/lib/resources/payment_options.js +2 -2
- package/lib/resources/paypal_gateways.cjs +3 -3
- package/lib/resources/paypal_gateways.d.cts +2 -2
- package/lib/resources/paypal_gateways.d.ts +1 -1
- package/lib/resources/paypal_gateways.js +2 -2
- package/lib/resources/paypal_payments.cjs +3 -3
- package/lib/resources/paypal_payments.d.cts +2 -2
- package/lib/resources/paypal_payments.d.ts +1 -1
- package/lib/resources/paypal_payments.js +2 -2
- package/lib/resources/percentage_discount_promotions.cjs +3 -3
- package/lib/resources/percentage_discount_promotions.d.cts +2 -2
- package/lib/resources/percentage_discount_promotions.d.ts +1 -1
- package/lib/resources/percentage_discount_promotions.js +2 -2
- package/lib/resources/pickups.cjs +3 -3
- package/lib/resources/pickups.d.cts +2 -2
- package/lib/resources/pickups.d.ts +1 -1
- package/lib/resources/pickups.js +2 -2
- package/lib/resources/price_frequency_tiers.cjs +3 -3
- package/lib/resources/price_frequency_tiers.d.cts +2 -2
- package/lib/resources/price_frequency_tiers.d.ts +1 -1
- package/lib/resources/price_frequency_tiers.js +2 -2
- package/lib/resources/price_list_schedulers.cjs +3 -3
- package/lib/resources/price_list_schedulers.d.cts +2 -2
- package/lib/resources/price_list_schedulers.d.ts +1 -1
- package/lib/resources/price_list_schedulers.js +2 -2
- package/lib/resources/price_lists.cjs +3 -3
- package/lib/resources/price_lists.d.cts +2 -2
- package/lib/resources/price_lists.d.ts +1 -1
- package/lib/resources/price_lists.js +2 -2
- package/lib/resources/price_tiers.cjs +3 -3
- package/lib/resources/price_tiers.d.cts +2 -2
- package/lib/resources/price_tiers.d.ts +1 -1
- package/lib/resources/price_tiers.js +2 -2
- package/lib/resources/price_volume_tiers.cjs +3 -3
- package/lib/resources/price_volume_tiers.d.cts +2 -2
- package/lib/resources/price_volume_tiers.d.ts +1 -1
- package/lib/resources/price_volume_tiers.js +2 -2
- package/lib/resources/prices.cjs +3 -3
- package/lib/resources/prices.d.cts +2 -2
- package/lib/resources/prices.d.ts +1 -1
- package/lib/resources/prices.js +2 -2
- package/lib/resources/promotion_rules.cjs +3 -3
- package/lib/resources/promotion_rules.d.cts +2 -2
- package/lib/resources/promotion_rules.d.ts +1 -1
- package/lib/resources/promotion_rules.js +2 -2
- package/lib/resources/promotions.cjs +3 -3
- package/lib/resources/promotions.d.cts +2 -2
- package/lib/resources/promotions.d.ts +1 -1
- package/lib/resources/promotions.js +2 -2
- package/lib/resources/recurring_order_copies.cjs +3 -3
- package/lib/resources/recurring_order_copies.d.cts +2 -2
- package/lib/resources/recurring_order_copies.d.ts +1 -1
- package/lib/resources/recurring_order_copies.js +2 -2
- package/lib/resources/refunds.cjs +3 -3
- package/lib/resources/refunds.d.cts +2 -2
- package/lib/resources/refunds.d.ts +1 -1
- package/lib/resources/refunds.js +2 -2
- package/lib/resources/reserved_stocks.cjs +3 -3
- package/lib/resources/reserved_stocks.d.cts +2 -2
- package/lib/resources/reserved_stocks.d.ts +1 -1
- package/lib/resources/reserved_stocks.js +2 -2
- package/lib/resources/resource_errors.cjs +3 -3
- package/lib/resources/resource_errors.d.cts +2 -2
- package/lib/resources/resource_errors.d.ts +1 -1
- package/lib/resources/resource_errors.js +2 -2
- package/lib/resources/return_line_items.cjs +3 -3
- package/lib/resources/return_line_items.d.cts +2 -2
- package/lib/resources/return_line_items.d.ts +1 -1
- package/lib/resources/return_line_items.js +2 -2
- package/lib/resources/returns.cjs +3 -3
- package/lib/resources/returns.d.cts +2 -2
- package/lib/resources/returns.d.ts +1 -1
- package/lib/resources/returns.js +2 -2
- package/lib/resources/satispay_gateways.cjs +3 -3
- package/lib/resources/satispay_gateways.d.cts +2 -2
- package/lib/resources/satispay_gateways.d.ts +1 -1
- package/lib/resources/satispay_gateways.js +2 -2
- package/lib/resources/satispay_payments.cjs +3 -3
- package/lib/resources/satispay_payments.d.cts +2 -2
- package/lib/resources/satispay_payments.d.ts +1 -1
- package/lib/resources/satispay_payments.js +2 -2
- package/lib/resources/shipments.cjs +3 -3
- package/lib/resources/shipments.d.cts +2 -2
- package/lib/resources/shipments.d.ts +1 -1
- package/lib/resources/shipments.js +2 -2
- package/lib/resources/shipping_categories.cjs +3 -3
- package/lib/resources/shipping_categories.d.cts +2 -2
- package/lib/resources/shipping_categories.d.ts +1 -1
- package/lib/resources/shipping_categories.js +2 -2
- package/lib/resources/shipping_method_tiers.cjs +3 -3
- package/lib/resources/shipping_method_tiers.d.cts +2 -2
- package/lib/resources/shipping_method_tiers.d.ts +1 -1
- package/lib/resources/shipping_method_tiers.js +2 -2
- package/lib/resources/shipping_methods.cjs +3 -3
- package/lib/resources/shipping_methods.d.cts +2 -2
- package/lib/resources/shipping_methods.d.ts +1 -1
- package/lib/resources/shipping_methods.js +2 -2
- package/lib/resources/shipping_weight_tiers.cjs +3 -3
- package/lib/resources/shipping_weight_tiers.d.cts +2 -2
- package/lib/resources/shipping_weight_tiers.d.ts +1 -1
- package/lib/resources/shipping_weight_tiers.js +2 -2
- package/lib/resources/shipping_zones.cjs +3 -3
- package/lib/resources/shipping_zones.d.cts +2 -2
- package/lib/resources/shipping_zones.d.ts +1 -1
- package/lib/resources/shipping_zones.js +2 -2
- package/lib/resources/sku_list_items.cjs +3 -3
- package/lib/resources/sku_list_items.d.cts +2 -2
- package/lib/resources/sku_list_items.d.ts +1 -1
- package/lib/resources/sku_list_items.js +2 -2
- package/lib/resources/sku_list_promotion_rules.cjs +3 -3
- package/lib/resources/sku_list_promotion_rules.d.cts +2 -2
- package/lib/resources/sku_list_promotion_rules.d.ts +1 -1
- package/lib/resources/sku_list_promotion_rules.js +2 -2
- package/lib/resources/sku_lists.cjs +3 -3
- package/lib/resources/sku_lists.d.cts +2 -2
- package/lib/resources/sku_lists.d.ts +1 -1
- package/lib/resources/sku_lists.js +2 -2
- package/lib/resources/sku_options.cjs +3 -3
- package/lib/resources/sku_options.d.cts +2 -2
- package/lib/resources/sku_options.d.ts +1 -1
- package/lib/resources/sku_options.js +2 -2
- package/lib/resources/skus.cjs +3 -3
- package/lib/resources/skus.d.cts +2 -2
- package/lib/resources/skus.d.ts +1 -1
- package/lib/resources/skus.js +2 -2
- package/lib/resources/stock_items.cjs +3 -3
- package/lib/resources/stock_items.d.cts +2 -2
- package/lib/resources/stock_items.d.ts +1 -1
- package/lib/resources/stock_items.js +2 -2
- package/lib/resources/stock_line_items.cjs +3 -3
- package/lib/resources/stock_line_items.d.cts +2 -2
- package/lib/resources/stock_line_items.d.ts +1 -1
- package/lib/resources/stock_line_items.js +2 -2
- package/lib/resources/stock_locations.cjs +3 -3
- package/lib/resources/stock_locations.d.cts +2 -2
- package/lib/resources/stock_locations.d.ts +1 -1
- package/lib/resources/stock_locations.js +2 -2
- package/lib/resources/stock_reservations.cjs +3 -3
- package/lib/resources/stock_reservations.d.cts +2 -2
- package/lib/resources/stock_reservations.d.ts +1 -1
- package/lib/resources/stock_reservations.js +2 -2
- package/lib/resources/stock_transfers.cjs +3 -3
- package/lib/resources/stock_transfers.d.cts +2 -2
- package/lib/resources/stock_transfers.d.ts +1 -1
- package/lib/resources/stock_transfers.js +2 -2
- package/lib/resources/stores.cjs +3 -3
- package/lib/resources/stores.d.cts +2 -2
- package/lib/resources/stores.d.ts +1 -1
- package/lib/resources/stores.js +2 -2
- package/lib/resources/stripe_gateways.cjs +3 -3
- package/lib/resources/stripe_gateways.d.cts +2 -2
- package/lib/resources/stripe_gateways.d.ts +1 -1
- package/lib/resources/stripe_gateways.js +2 -2
- package/lib/resources/stripe_payments.cjs +3 -3
- package/lib/resources/stripe_payments.d.cts +2 -2
- package/lib/resources/stripe_payments.d.ts +1 -1
- package/lib/resources/stripe_payments.js +2 -2
- package/lib/resources/stripe_tax_accounts.cjs +3 -3
- package/lib/resources/stripe_tax_accounts.d.cts +2 -2
- package/lib/resources/stripe_tax_accounts.d.ts +1 -1
- package/lib/resources/stripe_tax_accounts.js +2 -2
- package/lib/resources/subscription_models.cjs +3 -3
- package/lib/resources/subscription_models.d.cts +2 -2
- package/lib/resources/subscription_models.d.ts +1 -1
- package/lib/resources/subscription_models.js +2 -2
- package/lib/resources/tags.cjs +3 -3
- package/lib/resources/tags.d.cts +2 -2
- package/lib/resources/tags.d.ts +1 -1
- package/lib/resources/tags.js +2 -2
- package/lib/resources/talon_one_accounts.cjs +3 -3
- package/lib/resources/talon_one_accounts.d.cts +2 -2
- package/lib/resources/talon_one_accounts.d.ts +1 -1
- package/lib/resources/talon_one_accounts.js +2 -2
- package/lib/resources/tax_calculators.cjs +3 -3
- package/lib/resources/tax_calculators.d.cts +2 -2
- package/lib/resources/tax_calculators.d.ts +1 -1
- package/lib/resources/tax_calculators.js +2 -2
- package/lib/resources/tax_categories.cjs +3 -3
- package/lib/resources/tax_categories.d.cts +2 -2
- package/lib/resources/tax_categories.d.ts +1 -1
- package/lib/resources/tax_categories.js +2 -2
- package/lib/resources/tax_rules.cjs +3 -3
- package/lib/resources/tax_rules.d.cts +2 -2
- package/lib/resources/tax_rules.d.ts +1 -1
- package/lib/resources/tax_rules.js +2 -2
- package/lib/resources/taxjar_accounts.cjs +3 -3
- package/lib/resources/taxjar_accounts.d.cts +2 -2
- package/lib/resources/taxjar_accounts.d.ts +1 -1
- package/lib/resources/taxjar_accounts.js +2 -2
- package/lib/resources/transactions.cjs +3 -3
- package/lib/resources/transactions.d.cts +2 -2
- package/lib/resources/transactions.d.ts +1 -1
- package/lib/resources/transactions.js +2 -2
- package/lib/resources/vertex_accounts.cjs +3 -3
- package/lib/resources/vertex_accounts.d.cts +2 -2
- package/lib/resources/vertex_accounts.d.ts +1 -1
- package/lib/resources/vertex_accounts.js +2 -2
- package/lib/resources/voids.cjs +3 -3
- package/lib/resources/voids.d.cts +2 -2
- package/lib/resources/voids.d.ts +1 -1
- package/lib/resources/voids.js +2 -2
- package/lib/resources/webhooks.cjs +3 -3
- package/lib/resources/webhooks.d.cts +2 -2
- package/lib/resources/webhooks.d.ts +1 -1
- package/lib/resources/webhooks.js +2 -2
- package/lib/resources/wire_transfers.cjs +3 -3
- package/lib/resources/wire_transfers.d.cts +2 -2
- package/lib/resources/wire_transfers.d.ts +1 -1
- package/lib/resources/wire_transfers.js +2 -2
- package/lib/static.cjs +4 -4
- package/lib/static.d.cts +1 -1
- package/lib/static.d.ts +1 -1
- package/lib/static.js +3 -3
- package/package.json +8 -8
- package/lib/api-CiWKv2Ad.d.ts +0 -18181
- package/lib/api-DhbS8TfO.d.cts +0 -18181
- package/lib/chunk-225RCDGU.cjs +0 -53
- package/lib/chunk-225RCDGU.cjs.map +0 -1
- package/lib/chunk-2GZROWFO.js +0 -41
- package/lib/chunk-2GZROWFO.js.map +0 -1
- package/lib/chunk-2LZNXUFY.js +0 -55
- package/lib/chunk-2LZNXUFY.js.map +0 -1
- package/lib/chunk-2MSMUHNG.js +0 -66
- package/lib/chunk-2MSMUHNG.js.map +0 -1
- package/lib/chunk-2RW3IPYK.js +0 -60
- package/lib/chunk-2RW3IPYK.js.map +0 -1
- package/lib/chunk-2SAZMGAW.cjs +0 -50
- package/lib/chunk-2SAZMGAW.cjs.map +0 -1
- package/lib/chunk-2V4MFNM5.js +0 -41
- package/lib/chunk-2V4MFNM5.js.map +0 -1
- package/lib/chunk-2YJ4ST4G.cjs +0 -42
- package/lib/chunk-2YJ4ST4G.cjs.map +0 -1
- package/lib/chunk-33UBXTQO.cjs +0 -77
- package/lib/chunk-33UBXTQO.cjs.map +0 -1
- package/lib/chunk-3BDF64VW.js +0 -73
- package/lib/chunk-3BDF64VW.js.map +0 -1
- package/lib/chunk-3IMSCYIC.js +0 -41
- package/lib/chunk-3IMSCYIC.js.map +0 -1
- package/lib/chunk-3JVNXYTI.js +0 -124
- package/lib/chunk-3JVNXYTI.js.map +0 -1
- package/lib/chunk-3NOES4EX.js +0 -49
- package/lib/chunk-3NOES4EX.js.map +0 -1
- package/lib/chunk-3QCIWYSW.cjs +0 -51
- package/lib/chunk-3QCIWYSW.cjs.map +0 -1
- package/lib/chunk-3W33J36Z.js +0 -49
- package/lib/chunk-3W33J36Z.js.map +0 -1
- package/lib/chunk-3WTTRPSK.js +0 -69
- package/lib/chunk-3WTTRPSK.js.map +0 -1
- package/lib/chunk-3ZZ6KGDB.cjs +0 -47
- package/lib/chunk-3ZZ6KGDB.cjs.map +0 -1
- package/lib/chunk-42Y23CRY.cjs +0 -51
- package/lib/chunk-42Y23CRY.cjs.map +0 -1
- package/lib/chunk-4AZXDT2V.cjs +0 -47
- package/lib/chunk-4AZXDT2V.cjs.map +0 -1
- package/lib/chunk-4DUH2RXG.js +0 -37
- package/lib/chunk-4DUH2RXG.js.map +0 -1
- package/lib/chunk-4ESM2OUZ.cjs +0 -50
- package/lib/chunk-4ESM2OUZ.cjs.map +0 -1
- package/lib/chunk-4IFBXO5W.js +0 -55
- package/lib/chunk-4IFBXO5W.js.map +0 -1
- package/lib/chunk-4J2ISS7L.cjs +0 -105
- package/lib/chunk-4J2ISS7L.cjs.map +0 -1
- package/lib/chunk-4JL3Z5QD.cjs +0 -38
- package/lib/chunk-4JL3Z5QD.cjs.map +0 -1
- package/lib/chunk-4PFYUFSO.cjs +0 -39
- package/lib/chunk-4PFYUFSO.cjs.map +0 -1
- package/lib/chunk-4RHF7JN2.js +0 -28
- package/lib/chunk-4RHF7JN2.js.map +0 -1
- package/lib/chunk-52SEULJP.cjs +0 -39
- package/lib/chunk-52SEULJP.cjs.map +0 -1
- package/lib/chunk-55TQRLLK.js +0 -93
- package/lib/chunk-55TQRLLK.js.map +0 -1
- package/lib/chunk-5CTTK5G7.cjs +0 -38
- package/lib/chunk-5CTTK5G7.cjs.map +0 -1
- package/lib/chunk-5HIY5RJQ.cjs +0 -47
- package/lib/chunk-5HIY5RJQ.cjs.map +0 -1
- package/lib/chunk-5RQOHU5P.js +0 -45
- package/lib/chunk-5RQOHU5P.js.map +0 -1
- package/lib/chunk-5S4VIVJT.cjs +0 -54
- package/lib/chunk-5S4VIVJT.cjs.map +0 -1
- package/lib/chunk-5SPLJRDY.js +0 -68
- package/lib/chunk-5SPLJRDY.js.map +0 -1
- package/lib/chunk-5UWLI25I.js +0 -95
- package/lib/chunk-5UWLI25I.js.map +0 -1
- package/lib/chunk-5W4UAUXC.js +0 -283
- package/lib/chunk-5W4UAUXC.js.map +0 -1
- package/lib/chunk-5ZBTQIMD.js +0 -53
- package/lib/chunk-5ZBTQIMD.js.map +0 -1
- package/lib/chunk-62L57UQU.cjs +0 -68
- package/lib/chunk-62L57UQU.cjs.map +0 -1
- package/lib/chunk-62N4SFGW.js +0 -45
- package/lib/chunk-62N4SFGW.js.map +0 -1
- package/lib/chunk-62PWL472.cjs +0 -43
- package/lib/chunk-62PWL472.cjs.map +0 -1
- package/lib/chunk-67DYVCOK.js +0 -45
- package/lib/chunk-67DYVCOK.js.map +0 -1
- package/lib/chunk-6A63W6IB.js +0 -49
- package/lib/chunk-6A63W6IB.js.map +0 -1
- package/lib/chunk-6BI2PL4B.cjs +0 -44
- package/lib/chunk-6BI2PL4B.cjs.map +0 -1
- package/lib/chunk-6H2URCPA.cjs +0 -61
- package/lib/chunk-6H2URCPA.cjs.map +0 -1
- package/lib/chunk-6OJKY6R2.js +0 -91
- package/lib/chunk-6OJKY6R2.js.map +0 -1
- package/lib/chunk-6PB2M2MP.js +0 -37
- package/lib/chunk-6PB2M2MP.js.map +0 -1
- package/lib/chunk-6Q3CIOEF.js +0 -105
- package/lib/chunk-6Q3CIOEF.js.map +0 -1
- package/lib/chunk-6RISOLQJ.js +0 -49
- package/lib/chunk-6RISOLQJ.js.map +0 -1
- package/lib/chunk-6TLH43XL.cjs +0 -30
- package/lib/chunk-6TLH43XL.cjs.map +0 -1
- package/lib/chunk-6ZH7H3BJ.js +0 -61
- package/lib/chunk-6ZH7H3BJ.js.map +0 -1
- package/lib/chunk-7GMW5BUO.cjs +0 -29
- package/lib/chunk-7GMW5BUO.cjs.map +0 -1
- package/lib/chunk-7HY2CVJG.cjs +0 -53
- package/lib/chunk-7HY2CVJG.cjs.map +0 -1
- package/lib/chunk-7IYE2CYM.cjs +0 -39
- package/lib/chunk-7IYE2CYM.cjs.map +0 -1
- package/lib/chunk-7QTFNA3O.js +0 -45
- package/lib/chunk-7QTFNA3O.js.map +0 -1
- package/lib/chunk-7TDUZM36.js +0 -48
- package/lib/chunk-7TDUZM36.js.map +0 -1
- package/lib/chunk-7TN3F3TS.cjs +0 -47
- package/lib/chunk-7TN3F3TS.cjs.map +0 -1
- package/lib/chunk-7XCMIHK2.js +0 -59
- package/lib/chunk-7XCMIHK2.js.map +0 -1
- package/lib/chunk-7XI2G4AH.js +0 -68
- package/lib/chunk-7XI2G4AH.js.map +0 -1
- package/lib/chunk-A6N5NU4Q.cjs +0 -70
- package/lib/chunk-A6N5NU4Q.cjs.map +0 -1
- package/lib/chunk-AANIDX5T.cjs +0 -101
- package/lib/chunk-AANIDX5T.cjs.map +0 -1
- package/lib/chunk-ADVFX6Q4.js +0 -45
- package/lib/chunk-ADVFX6Q4.js.map +0 -1
- package/lib/chunk-AEUJD27H.js +0 -24
- package/lib/chunk-AEUJD27H.js.map +0 -1
- package/lib/chunk-AFTJ3CBC.js +0 -40
- package/lib/chunk-AFTJ3CBC.js.map +0 -1
- package/lib/chunk-AHVQFILB.js +0 -45
- package/lib/chunk-AHVQFILB.js.map +0 -1
- package/lib/chunk-AIRHVW6S.js +0 -49
- package/lib/chunk-AIRHVW6S.js.map +0 -1
- package/lib/chunk-ATLMNH6A.js +0 -49
- package/lib/chunk-ATLMNH6A.js.map +0 -1
- package/lib/chunk-ATVY532N.js +0 -93
- package/lib/chunk-ATVY532N.js.map +0 -1
- package/lib/chunk-AWMC6AUP.js +0 -49
- package/lib/chunk-AWMC6AUP.js.map +0 -1
- package/lib/chunk-AYUBT6TU.js +0 -89
- package/lib/chunk-AYUBT6TU.js.map +0 -1
- package/lib/chunk-BOTOHTVE.cjs +0 -51
- package/lib/chunk-BOTOHTVE.cjs.map +0 -1
- package/lib/chunk-BPAVYFBD.cjs +0 -56
- package/lib/chunk-BPAVYFBD.cjs.map +0 -1
- package/lib/chunk-BPMQD6S6.cjs +0 -42
- package/lib/chunk-BPMQD6S6.cjs.map +0 -1
- package/lib/chunk-BPMSXN65.js +0 -93
- package/lib/chunk-BPMSXN65.js.map +0 -1
- package/lib/chunk-BRL2HVCW.cjs +0 -75
- package/lib/chunk-BRL2HVCW.cjs.map +0 -1
- package/lib/chunk-BSQCD2TW.cjs +0 -95
- package/lib/chunk-BSQCD2TW.cjs.map +0 -1
- package/lib/chunk-BW5ZHHDZ.js +0 -37
- package/lib/chunk-BW5ZHHDZ.js.map +0 -1
- package/lib/chunk-BYE3DAWN.cjs +0 -63
- package/lib/chunk-BYE3DAWN.cjs.map +0 -1
- package/lib/chunk-BZB7R6N6.js +0 -61
- package/lib/chunk-BZB7R6N6.js.map +0 -1
- package/lib/chunk-C3S4LUX5.cjs +0 -51
- package/lib/chunk-C3S4LUX5.cjs.map +0 -1
- package/lib/chunk-C5C3LBW5.js +0 -47
- package/lib/chunk-C5C3LBW5.js.map +0 -1
- package/lib/chunk-CCBBYTAJ.js +0 -93
- package/lib/chunk-CCBBYTAJ.js.map +0 -1
- package/lib/chunk-CHMVP6EF.cjs +0 -47
- package/lib/chunk-CHMVP6EF.cjs.map +0 -1
- package/lib/chunk-CIBRS4EH.cjs +0 -30
- package/lib/chunk-CIBRS4EH.cjs.map +0 -1
- package/lib/chunk-CK4H22TM.js +0 -49
- package/lib/chunk-CK4H22TM.js.map +0 -1
- package/lib/chunk-CO3BTLA4.cjs +0 -47
- package/lib/chunk-CO3BTLA4.cjs.map +0 -1
- package/lib/chunk-CRWGVC3Z.cjs +0 -50
- package/lib/chunk-CRWGVC3Z.cjs.map +0 -1
- package/lib/chunk-CSDHXRCC.cjs +0 -43
- package/lib/chunk-CSDHXRCC.cjs.map +0 -1
- package/lib/chunk-CW5BKX63.js +0 -49
- package/lib/chunk-CW5BKX63.js.map +0 -1
- package/lib/chunk-CXKK7PCG.js +0 -59
- package/lib/chunk-CXKK7PCG.js.map +0 -1
- package/lib/chunk-CXLQBCS4.js +0 -47
- package/lib/chunk-CXLQBCS4.js.map +0 -1
- package/lib/chunk-D23IE5HE.cjs +0 -34
- package/lib/chunk-D23IE5HE.cjs.map +0 -1
- package/lib/chunk-D253IBYC.cjs +0 -285
- package/lib/chunk-D253IBYC.cjs.map +0 -1
- package/lib/chunk-D3IOT5UK.js +0 -54
- package/lib/chunk-D3IOT5UK.js.map +0 -1
- package/lib/chunk-D72VXGOI.js +0 -57
- package/lib/chunk-D72VXGOI.js.map +0 -1
- package/lib/chunk-DALCPLML.cjs +0 -56
- package/lib/chunk-DALCPLML.cjs.map +0 -1
- package/lib/chunk-DCEQF4SO.cjs +0 -49
- package/lib/chunk-DCEQF4SO.cjs.map +0 -1
- package/lib/chunk-DJXJIVYA.js +0 -40
- package/lib/chunk-DJXJIVYA.js.map +0 -1
- package/lib/chunk-DKUADGYA.js +0 -37
- package/lib/chunk-DKUADGYA.js.map +0 -1
- package/lib/chunk-DOSBGZZR.cjs +0 -61
- package/lib/chunk-DOSBGZZR.cjs.map +0 -1
- package/lib/chunk-DSJFQTYA.cjs +0 -55
- package/lib/chunk-DSJFQTYA.cjs.map +0 -1
- package/lib/chunk-DX4A53QM.js +0 -49
- package/lib/chunk-DX4A53QM.js.map +0 -1
- package/lib/chunk-DYSUBTJJ.js +0 -44
- package/lib/chunk-DYSUBTJJ.js.map +0 -1
- package/lib/chunk-E24MPITG.cjs +0 -39
- package/lib/chunk-E24MPITG.cjs.map +0 -1
- package/lib/chunk-E3UAM5IG.js +0 -51
- package/lib/chunk-E3UAM5IG.js.map +0 -1
- package/lib/chunk-E4UQRXQX.js +0 -37
- package/lib/chunk-E4UQRXQX.js.map +0 -1
- package/lib/chunk-EH5M6YWR.cjs +0 -47
- package/lib/chunk-EH5M6YWR.cjs.map +0 -1
- package/lib/chunk-EZMKXDCD.cjs +0 -50
- package/lib/chunk-EZMKXDCD.cjs.map +0 -1
- package/lib/chunk-F2S3T7C7.js +0 -93
- package/lib/chunk-F2S3T7C7.js.map +0 -1
- package/lib/chunk-FHQSNPMZ.js +0 -49
- package/lib/chunk-FHQSNPMZ.js.map +0 -1
- package/lib/chunk-FJL7GQH5.cjs +0 -51
- package/lib/chunk-FJL7GQH5.cjs.map +0 -1
- package/lib/chunk-FLTE7T5O.cjs +0 -51
- package/lib/chunk-FLTE7T5O.cjs.map +0 -1
- package/lib/chunk-FNQRYCRE.js +0 -51
- package/lib/chunk-FNQRYCRE.js.map +0 -1
- package/lib/chunk-FRB2QR5J.js +0 -96
- package/lib/chunk-FRB2QR5J.js.map +0 -1
- package/lib/chunk-FUT3LCHP.cjs +0 -56
- package/lib/chunk-FUT3LCHP.cjs.map +0 -1
- package/lib/chunk-GJ2M5XUU.js +0 -45
- package/lib/chunk-GJ2M5XUU.js.map +0 -1
- package/lib/chunk-GJVFOJKS.cjs +0 -26
- package/lib/chunk-GJVFOJKS.cjs.map +0 -1
- package/lib/chunk-GQWPXVMQ.js +0 -53
- package/lib/chunk-GQWPXVMQ.js.map +0 -1
- package/lib/chunk-GXSSWG6Z.cjs +0 -52
- package/lib/chunk-GXSSWG6Z.cjs.map +0 -1
- package/lib/chunk-GY35DVJ7.cjs +0 -51
- package/lib/chunk-GY35DVJ7.cjs.map +0 -1
- package/lib/chunk-GYWUTAVE.cjs +0 -46
- package/lib/chunk-GYWUTAVE.cjs.map +0 -1
- package/lib/chunk-GZGQSKLF.js +0 -59
- package/lib/chunk-GZGQSKLF.js.map +0 -1
- package/lib/chunk-HJ3RDHVN.cjs +0 -34
- package/lib/chunk-HJ3RDHVN.cjs.map +0 -1
- package/lib/chunk-HJFTJL3E.js +0 -54
- package/lib/chunk-HJFTJL3E.js.map +0 -1
- package/lib/chunk-HJIVGKWG.cjs +0 -46
- package/lib/chunk-HJIVGKWG.cjs.map +0 -1
- package/lib/chunk-HL6MEEU5.js +0 -154
- package/lib/chunk-HL6MEEU5.js.map +0 -1
- package/lib/chunk-HWDD4SMM.js +0 -103
- package/lib/chunk-HWDD4SMM.js.map +0 -1
- package/lib/chunk-HWOQQNX3.cjs +0 -63
- package/lib/chunk-HWOQQNX3.cjs.map +0 -1
- package/lib/chunk-HZIRPRFN.cjs +0 -47
- package/lib/chunk-HZIRPRFN.cjs.map +0 -1
- package/lib/chunk-HZLPTAKA.js +0 -45
- package/lib/chunk-HZLPTAKA.js.map +0 -1
- package/lib/chunk-I4A63K2Q.js +0 -45
- package/lib/chunk-I4A63K2Q.js.map +0 -1
- package/lib/chunk-IHYX6NQH.js +0 -51
- package/lib/chunk-IHYX6NQH.js.map +0 -1
- package/lib/chunk-IP5HITFS.cjs +0 -70
- package/lib/chunk-IP5HITFS.cjs.map +0 -1
- package/lib/chunk-IPS6QJLO.cjs +0 -57
- package/lib/chunk-IPS6QJLO.cjs.map +0 -1
- package/lib/chunk-IRFX6LWG.js +0 -37
- package/lib/chunk-IRFX6LWG.js.map +0 -1
- package/lib/chunk-IYCURPP5.cjs +0 -107
- package/lib/chunk-IYCURPP5.cjs.map +0 -1
- package/lib/chunk-J26HOFAI.cjs +0 -47
- package/lib/chunk-J26HOFAI.cjs.map +0 -1
- package/lib/chunk-JCI5Z3SY.js +0 -59
- package/lib/chunk-JCI5Z3SY.js.map +0 -1
- package/lib/chunk-JF6PN4CF.js +0 -75
- package/lib/chunk-JF6PN4CF.js.map +0 -1
- package/lib/chunk-JGQSZ4FV.cjs +0 -75
- package/lib/chunk-JGQSZ4FV.cjs.map +0 -1
- package/lib/chunk-JO56R3TP.cjs +0 -54
- package/lib/chunk-JO56R3TP.cjs.map +0 -1
- package/lib/chunk-JVEOQPIP.cjs +0 -56
- package/lib/chunk-JVEOQPIP.cjs.map +0 -1
- package/lib/chunk-K6QROUP2.js +0 -45
- package/lib/chunk-K6QROUP2.js.map +0 -1
- package/lib/chunk-KA3ARL4M.cjs +0 -47
- package/lib/chunk-KA3ARL4M.cjs.map +0 -1
- package/lib/chunk-KACVNOCD.cjs +0 -53
- package/lib/chunk-KACVNOCD.cjs.map +0 -1
- package/lib/chunk-KBHOKNEY.cjs +0 -55
- package/lib/chunk-KBHOKNEY.cjs.map +0 -1
- package/lib/chunk-KNAQ4UMU.cjs +0 -51
- package/lib/chunk-KNAQ4UMU.cjs.map +0 -1
- package/lib/chunk-KX2TRARQ.js +0 -54
- package/lib/chunk-KX2TRARQ.js.map +0 -1
- package/lib/chunk-KXU3VOOJ.js +0 -73
- package/lib/chunk-KXU3VOOJ.js.map +0 -1
- package/lib/chunk-LA43RTZ4.js +0 -49
- package/lib/chunk-LA43RTZ4.js.map +0 -1
- package/lib/chunk-LAYXKEVY.js +0 -45
- package/lib/chunk-LAYXKEVY.js.map +0 -1
- package/lib/chunk-LBISZHJS.js +0 -45
- package/lib/chunk-LBISZHJS.js.map +0 -1
- package/lib/chunk-LGIROVQI.js +0 -32
- package/lib/chunk-LGIROVQI.js.map +0 -1
- package/lib/chunk-LL2RPBAA.js +0 -50
- package/lib/chunk-LL2RPBAA.js.map +0 -1
- package/lib/chunk-LL3M46A5.cjs +0 -42
- package/lib/chunk-LL3M46A5.cjs.map +0 -1
- package/lib/chunk-LXLCAD45.js +0 -66
- package/lib/chunk-LXLCAD45.js.map +0 -1
- package/lib/chunk-M5JX4ITG.cjs +0 -59
- package/lib/chunk-M5JX4ITG.cjs.map +0 -1
- package/lib/chunk-M7L2QTCA.cjs +0 -47
- package/lib/chunk-M7L2QTCA.cjs.map +0 -1
- package/lib/chunk-MANWK2IC.cjs +0 -62
- package/lib/chunk-MANWK2IC.cjs.map +0 -1
- package/lib/chunk-MIYTWFUU.js +0 -45
- package/lib/chunk-MIYTWFUU.js.map +0 -1
- package/lib/chunk-MMTE4ANB.cjs +0 -39
- package/lib/chunk-MMTE4ANB.cjs.map +0 -1
- package/lib/chunk-MQZYAWYA.cjs +0 -55
- package/lib/chunk-MQZYAWYA.cjs.map +0 -1
- package/lib/chunk-MSHBNBYN.cjs +0 -47
- package/lib/chunk-MSHBNBYN.cjs.map +0 -1
- package/lib/chunk-MYVVTZRG.cjs +0 -51
- package/lib/chunk-MYVVTZRG.cjs.map +0 -1
- package/lib/chunk-N4VDOIED.cjs +0 -43
- package/lib/chunk-N4VDOIED.cjs.map +0 -1
- package/lib/chunk-NDSFGWQP.cjs +0 -67
- package/lib/chunk-NDSFGWQP.cjs.map +0 -1
- package/lib/chunk-NIVC56IB.cjs +0 -56
- package/lib/chunk-NIVC56IB.cjs.map +0 -1
- package/lib/chunk-NZVKSLMS.js +0 -49
- package/lib/chunk-NZVKSLMS.js.map +0 -1
- package/lib/chunk-O35AP4HQ.js +0 -102
- package/lib/chunk-O35AP4HQ.js.map +0 -1
- package/lib/chunk-O43NEDTK.cjs +0 -61
- package/lib/chunk-O43NEDTK.cjs.map +0 -1
- package/lib/chunk-OAYIA3K5.js +0 -52
- package/lib/chunk-OAYIA3K5.js.map +0 -1
- package/lib/chunk-OCVGJZXG.cjs +0 -51
- package/lib/chunk-OCVGJZXG.cjs.map +0 -1
- package/lib/chunk-ODMNRKW7.js +0 -54
- package/lib/chunk-ODMNRKW7.js.map +0 -1
- package/lib/chunk-OK6YNH74.cjs +0 -51
- package/lib/chunk-OK6YNH74.cjs.map +0 -1
- package/lib/chunk-OVIWTYUN.cjs +0 -57
- package/lib/chunk-OVIWTYUN.cjs.map +0 -1
- package/lib/chunk-P45FTR27.js +0 -45
- package/lib/chunk-P45FTR27.js.map +0 -1
- package/lib/chunk-PBVIPSHG.cjs +0 -43
- package/lib/chunk-PBVIPSHG.cjs.map +0 -1
- package/lib/chunk-PCTX2ZF3.js +0 -44
- package/lib/chunk-PCTX2ZF3.js.map +0 -1
- package/lib/chunk-PF2U2L6L.js +0 -28
- package/lib/chunk-PF2U2L6L.js.map +0 -1
- package/lib/chunk-PHOVUFZ4.cjs +0 -47
- package/lib/chunk-PHOVUFZ4.cjs.map +0 -1
- package/lib/chunk-PNUZIK2G.js +0 -36
- package/lib/chunk-PNUZIK2G.js.map +0 -1
- package/lib/chunk-PUJN7S4J.cjs +0 -51
- package/lib/chunk-PUJN7S4J.cjs.map +0 -1
- package/lib/chunk-PUTFLUDX.js +0 -31
- package/lib/chunk-PUTFLUDX.js.map +0 -1
- package/lib/chunk-PVDC6VVA.cjs +0 -50
- package/lib/chunk-PVDC6VVA.cjs.map +0 -1
- package/lib/chunk-PVUVUM5B.cjs +0 -47
- package/lib/chunk-PVUVUM5B.cjs.map +0 -1
- package/lib/chunk-Q5U3QQ6L.cjs +0 -71
- package/lib/chunk-Q5U3QQ6L.cjs.map +0 -1
- package/lib/chunk-QSSLQRDU.js +0 -51
- package/lib/chunk-QSSLQRDU.js.map +0 -1
- package/lib/chunk-QYM7OXUQ.cjs +0 -68
- package/lib/chunk-QYM7OXUQ.cjs.map +0 -1
- package/lib/chunk-QZ7R3CGB.cjs +0 -42
- package/lib/chunk-QZ7R3CGB.cjs.map +0 -1
- package/lib/chunk-RAXA7MPX.js +0 -40
- package/lib/chunk-RAXA7MPX.js.map +0 -1
- package/lib/chunk-RDOB2GZT.cjs +0 -95
- package/lib/chunk-RDOB2GZT.cjs.map +0 -1
- package/lib/chunk-RJPVLWBM.cjs +0 -38
- package/lib/chunk-RJPVLWBM.cjs.map +0 -1
- package/lib/chunk-RM2WFVF5.cjs +0 -61
- package/lib/chunk-RM2WFVF5.cjs.map +0 -1
- package/lib/chunk-RSS5IWAB.cjs +0 -49
- package/lib/chunk-RSS5IWAB.cjs.map +0 -1
- package/lib/chunk-RX3HJ7IR.js +0 -36
- package/lib/chunk-RX3HJ7IR.js.map +0 -1
- package/lib/chunk-RYNUHEGX.js +0 -32
- package/lib/chunk-RYNUHEGX.js.map +0 -1
- package/lib/chunk-RZGKZSXT.js +0 -54
- package/lib/chunk-RZGKZSXT.js.map +0 -1
- package/lib/chunk-S4TPKIG5.js +0 -41
- package/lib/chunk-S4TPKIG5.js.map +0 -1
- package/lib/chunk-S7Q42BBG.cjs +0 -42
- package/lib/chunk-S7Q42BBG.cjs.map +0 -1
- package/lib/chunk-SERRVB25.cjs +0 -51
- package/lib/chunk-SERRVB25.cjs.map +0 -1
- package/lib/chunk-SWSX4KRR.js +0 -27
- package/lib/chunk-SWSX4KRR.js.map +0 -1
- package/lib/chunk-SYSNGHEG.js +0 -40
- package/lib/chunk-SYSNGHEG.js.map +0 -1
- package/lib/chunk-T23Y2QTM.cjs +0 -107
- package/lib/chunk-T23Y2QTM.cjs.map +0 -1
- package/lib/chunk-T3OBEDI4.cjs +0 -56
- package/lib/chunk-T3OBEDI4.cjs.map +0 -1
- package/lib/chunk-T7QXZHTL.cjs +0 -53
- package/lib/chunk-T7QXZHTL.cjs.map +0 -1
- package/lib/chunk-TIA53DAH.js +0 -54
- package/lib/chunk-TIA53DAH.js.map +0 -1
- package/lib/chunk-TJEA37RN.cjs +0 -39
- package/lib/chunk-TJEA37RN.cjs.map +0 -1
- package/lib/chunk-TPO5GEA3.cjs +0 -91
- package/lib/chunk-TPO5GEA3.cjs.map +0 -1
- package/lib/chunk-TUT5DSFS.cjs +0 -49
- package/lib/chunk-TUT5DSFS.cjs.map +0 -1
- package/lib/chunk-U2QBVG5P.js +0 -48
- package/lib/chunk-U2QBVG5P.js.map +0 -1
- package/lib/chunk-U3UQ2KCY.js +0 -59
- package/lib/chunk-U3UQ2KCY.js.map +0 -1
- package/lib/chunk-U7NPDLRU.js +0 -54
- package/lib/chunk-U7NPDLRU.js.map +0 -1
- package/lib/chunk-UB5WDQ5P.cjs +0 -55
- package/lib/chunk-UB5WDQ5P.cjs.map +0 -1
- package/lib/chunk-UFTGYB2P.js +0 -67
- package/lib/chunk-UFTGYB2P.js.map +0 -1
- package/lib/chunk-UW6CNKMD.cjs +0 -56
- package/lib/chunk-UW6CNKMD.cjs.map +0 -1
- package/lib/chunk-UXGOWL37.cjs +0 -47
- package/lib/chunk-UXGOWL37.cjs.map +0 -1
- package/lib/chunk-UZGOFUD6.js +0 -36
- package/lib/chunk-UZGOFUD6.js.map +0 -1
- package/lib/chunk-V2O6SHTJ.js +0 -53
- package/lib/chunk-V2O6SHTJ.js.map +0 -1
- package/lib/chunk-V2SVBB32.js +0 -54
- package/lib/chunk-V2SVBB32.js.map +0 -1
- package/lib/chunk-VBECGZ7Y.js +0 -48
- package/lib/chunk-VBECGZ7Y.js.map +0 -1
- package/lib/chunk-VG5QRLCS.cjs +0 -42
- package/lib/chunk-VG5QRLCS.cjs.map +0 -1
- package/lib/chunk-VJCI73KC.cjs +0 -156
- package/lib/chunk-VJCI73KC.cjs.map +0 -1
- package/lib/chunk-VNX3YIZW.js +0 -40
- package/lib/chunk-VNX3YIZW.js.map +0 -1
- package/lib/chunk-VRRJS3ZM.cjs +0 -284
- package/lib/chunk-VRRJS3ZM.cjs.map +0 -1
- package/lib/chunk-VZWZ2NTW.js +0 -99
- package/lib/chunk-VZWZ2NTW.js.map +0 -1
- package/lib/chunk-W2T4MBV4.js +0 -47
- package/lib/chunk-W2T4MBV4.js.map +0 -1
- package/lib/chunk-W4CBHKYP.cjs +0 -47
- package/lib/chunk-W4CBHKYP.cjs.map +0 -1
- package/lib/chunk-W4M3OCH3.js +0 -51
- package/lib/chunk-W4M3OCH3.js.map +0 -1
- package/lib/chunk-W5RMMV5S.js +0 -53
- package/lib/chunk-W5RMMV5S.js.map +0 -1
- package/lib/chunk-WEQGEKUT.cjs +0 -51
- package/lib/chunk-WEQGEKUT.cjs.map +0 -1
- package/lib/chunk-WHGWYAWD.cjs +0 -33
- package/lib/chunk-WHGWYAWD.cjs.map +0 -1
- package/lib/chunk-WIM4ZWWT.js +0 -40
- package/lib/chunk-WIM4ZWWT.js.map +0 -1
- package/lib/chunk-WISHL4PL.js +0 -48
- package/lib/chunk-WISHL4PL.js.map +0 -1
- package/lib/chunk-WIVDPOV2.js +0 -53
- package/lib/chunk-WIVDPOV2.js.map +0 -1
- package/lib/chunk-WL267QRV.cjs +0 -54
- package/lib/chunk-WL267QRV.cjs.map +0 -1
- package/lib/chunk-WL6XIY5R.js +0 -52
- package/lib/chunk-WL6XIY5R.js.map +0 -1
- package/lib/chunk-WYHH5QI4.js +0 -65
- package/lib/chunk-WYHH5QI4.js.map +0 -1
- package/lib/chunk-WYMOOVYG.js +0 -96
- package/lib/chunk-WYMOOVYG.js.map +0 -1
- package/lib/chunk-XBFVGK3J.js +0 -48
- package/lib/chunk-XBFVGK3J.js.map +0 -1
- package/lib/chunk-XBXYSL5J.cjs +0 -98
- package/lib/chunk-XBXYSL5J.cjs.map +0 -1
- package/lib/chunk-XCJM3XRN.cjs +0 -53
- package/lib/chunk-XCJM3XRN.cjs.map +0 -1
- package/lib/chunk-XDRKC6JM.js +0 -276
- package/lib/chunk-XDRKC6JM.js.map +0 -1
- package/lib/chunk-XECAN3XD.cjs +0 -55
- package/lib/chunk-XECAN3XD.cjs.map +0 -1
- package/lib/chunk-XIRWNWMI.cjs +0 -42
- package/lib/chunk-XIRWNWMI.cjs.map +0 -1
- package/lib/chunk-XLEJ2PV3.cjs +0 -61
- package/lib/chunk-XLEJ2PV3.cjs.map +0 -1
- package/lib/chunk-XMSZHD4G.js +0 -45
- package/lib/chunk-XMSZHD4G.js.map +0 -1
- package/lib/chunk-XND3VBYX.cjs +0 -55
- package/lib/chunk-XND3VBYX.cjs.map +0 -1
- package/lib/chunk-XTQHJJJ7.cjs +0 -95
- package/lib/chunk-XTQHJJJ7.cjs.map +0 -1
- package/lib/chunk-XVHODDX7.js +0 -49
- package/lib/chunk-XVHODDX7.js.map +0 -1
- package/lib/chunk-XXTRCYWK.cjs +0 -47
- package/lib/chunk-XXTRCYWK.cjs.map +0 -1
- package/lib/chunk-Y6CYBNR2.cjs +0 -52
- package/lib/chunk-Y6CYBNR2.cjs.map +0 -1
- package/lib/chunk-Y6QGYCKB.js +0 -87
- package/lib/chunk-Y6QGYCKB.js.map +0 -1
- package/lib/chunk-Y6ULTGRO.cjs +0 -56
- package/lib/chunk-Y6ULTGRO.cjs.map +0 -1
- package/lib/chunk-YDOTSBF3.js +0 -52
- package/lib/chunk-YDOTSBF3.js.map +0 -1
- package/lib/chunk-YEPVAW3U.cjs +0 -97
- package/lib/chunk-YEPVAW3U.cjs.map +0 -1
- package/lib/chunk-YJXFSO4R.js +0 -40
- package/lib/chunk-YJXFSO4R.js.map +0 -1
- package/lib/chunk-YLT2R3ZO.cjs +0 -69
- package/lib/chunk-YLT2R3ZO.cjs.map +0 -1
- package/lib/chunk-YMEGKTEP.js +0 -53
- package/lib/chunk-YMEGKTEP.js.map +0 -1
- package/lib/chunk-Z2DSJJDB.cjs +0 -89
- package/lib/chunk-Z2DSJJDB.cjs.map +0 -1
- package/lib/chunk-Z2XON3QS.js +0 -45
- package/lib/chunk-Z2XON3QS.js.map +0 -1
- package/lib/chunk-Z66KN6BV.cjs +0 -93
- package/lib/chunk-Z66KN6BV.cjs.map +0 -1
- package/lib/chunk-ZCDDPJN5.js +0 -50
- package/lib/chunk-ZCDDPJN5.js.map +0 -1
- package/lib/chunk-ZERO5UUI.cjs +0 -95
- package/lib/chunk-ZERO5UUI.cjs.map +0 -1
- package/lib/chunk-ZGLO72NX.cjs +0 -98
- package/lib/chunk-ZGLO72NX.cjs.map +0 -1
- package/lib/chunk-ZJ5UZTQT.js +0 -45
- package/lib/chunk-ZJ5UZTQT.js.map +0 -1
- package/lib/chunk-ZMSILIKP.cjs +0 -95
- package/lib/chunk-ZMSILIKP.cjs.map +0 -1
- package/lib/chunk-ZOASE2AV.cjs +0 -47
- package/lib/chunk-ZOASE2AV.cjs.map +0 -1
- package/lib/chunk-ZRAHMGDW.js +0 -42
- package/lib/chunk-ZRAHMGDW.js.map +0 -1
- package/lib/chunk-ZRZ4KAEU.js +0 -45
- package/lib/chunk-ZRZ4KAEU.js.map +0 -1
- package/lib/chunk-ZTYYOE7T.cjs +0 -126
- package/lib/chunk-ZTYYOE7T.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAmHA,IAAM,UAAA,GAAN,MAAM,WAAA,SAAmBA,6BAAA,CAAuB;AAAA,EAE/C,OAAgB,IAAA,GAAsB,YAAA;AAAA,EAEtC,MAAM,MAAA,CAAO,WAAA,EAAiC,MAAA,EAAsC,OAAA,EAA4C;AAC/H,IAAA,MAAM,YAAA,GAAgB,YAA0B,E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AAA,GAAW,IAAI,UAAA,EAAW;AAChC,IAAO,kBAAA,GAAQ","file":"chunk-JF7ZZKBL.cjs","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Attachment } from './attachments'\nimport type { CouponCodesPromotionRule } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\nimport type { OrderAmountPromotionRule } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule } from './sku_list_promotion_rules'\nimport type { SkuList } from './sku_lists'\nimport type { Tag } from './tags'\n\n\ntype PromotionType = 'promotions'\ntype PromotionRel = ResourceRel & { type: PromotionType }\n\n\nexport type PromotionSort = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort\n// export type PromotionFilter = Pick<Promotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n\ninterface Promotion extends Resource {\n\t\n\treadonly type: PromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | 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\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Promotions extends ApiResource<Promotion> {\n\n\tstatic readonly TYPE: PromotionType = 'promotions' as const\n\n\tasync market(promotionId: string | Promotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `promotions/${_promotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `promotions/${_promotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `promotions/${_promotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `promotions/${_promotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(promotionId: string | Promotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `promotions/${_promotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(promotionId: string | Promotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `promotions/${_promotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(promotionId: string | Promotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `promotions/${_promotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(promotionId: string | Promotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `promotions/${_promotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(promotionId: string | Promotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `promotions/${_promotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(promotionId: string | Promotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `promotions/${_promotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(promotionId: string | Promotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _promotionId = (promotionId as Promotion).id || promotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `promotions/${_promotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisPromotion(resource: any): resource is Promotion {\n\t\treturn resource.type && (resource.type === Promotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): PromotionRel {\n\t\treturn super.relationshipOneToOne<PromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): PromotionRel[] {\n\t\treturn super.relationshipOneToMany<PromotionRel>(...ids)\n\t}\n\n\n\ttype(): PromotionType {\n\t\treturn Promotions.TYPE\n\t}\n\n}\n\n\nconst instance = new Promotions()\nexport default instance\n\nexport type { Promotion, Promotions, PromotionType }\n"]}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/manual_tax_calculators.ts
|
|
4
|
+
var ManualTaxCalculators = class _ManualTaxCalculators extends ApiResource {
|
|
5
|
+
static TYPE = "manual_tax_calculators";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _ManualTaxCalculators.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _ManualTaxCalculators.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _ManualTaxCalculators.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async markets(manualTaxCalculatorId, params, options) {
|
|
16
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
|
17
|
+
return this.resources.fetch({ type: "markets" }, `manual_tax_calculators/${_manualTaxCalculatorId}/markets`, params, options);
|
|
18
|
+
}
|
|
19
|
+
async attachments(manualTaxCalculatorId, params, options) {
|
|
20
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
|
21
|
+
return this.resources.fetch({ type: "attachments" }, `manual_tax_calculators/${_manualTaxCalculatorId}/attachments`, params, options);
|
|
22
|
+
}
|
|
23
|
+
async events(manualTaxCalculatorId, params, options) {
|
|
24
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
|
25
|
+
return this.resources.fetch({ type: "events" }, `manual_tax_calculators/${_manualTaxCalculatorId}/events`, params, options);
|
|
26
|
+
}
|
|
27
|
+
async event_stores(manualTaxCalculatorId, params, options) {
|
|
28
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
|
29
|
+
return this.resources.fetch({ type: "event_stores" }, `manual_tax_calculators/${_manualTaxCalculatorId}/event_stores`, params, options);
|
|
30
|
+
}
|
|
31
|
+
async tax_rules(manualTaxCalculatorId, params, options) {
|
|
32
|
+
const _manualTaxCalculatorId = manualTaxCalculatorId.id || manualTaxCalculatorId;
|
|
33
|
+
return this.resources.fetch({ type: "tax_rules" }, `manual_tax_calculators/${_manualTaxCalculatorId}/tax_rules`, params, options);
|
|
34
|
+
}
|
|
35
|
+
isManualTaxCalculator(resource) {
|
|
36
|
+
return resource.type && resource.type === _ManualTaxCalculators.TYPE;
|
|
37
|
+
}
|
|
38
|
+
relationship(id) {
|
|
39
|
+
return super.relationshipOneToOne(id);
|
|
40
|
+
}
|
|
41
|
+
relationshipToMany(...ids) {
|
|
42
|
+
return super.relationshipOneToMany(...ids);
|
|
43
|
+
}
|
|
44
|
+
type() {
|
|
45
|
+
return _ManualTaxCalculators.TYPE;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var instance = new ManualTaxCalculators();
|
|
49
|
+
var manual_tax_calculators_default = instance;
|
|
50
|
+
|
|
51
|
+
export { manual_tax_calculators_default };
|
|
52
|
+
//# sourceMappingURL=chunk-JMINY25P.js.map
|
|
53
|
+
//# sourceMappingURL=chunk-JMINY25P.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"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AAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,qBAAA,CAAqB,IAAA;AAAA,EACjE;AAAA,EAGA,aAAa,EAAA,EAAwD;AACpE,IAAA,OAAO,KAAA,CAAM,qBAA6C,EAAE,CAAA;AAAA,EAC7D;AAAA,EAEA,sBAAsB,GAAA,EAAyC;AAC9D,IAAA,OAAO,KAAA,CAAM,qBAAA,CAA8C,GAAG,GAAG,CAAA;AAAA,EAClE;AAAA,EAGA,IAAA,GAAgC;AAC/B,IAAA,OAAO,qBAAA,CAAqB,IAAA;AAAA,EAC7B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,oBAAA,EAAqB;AAC1C,IAAO,8BAAA,GAAQ","file":"chunk-JMINY25P.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 { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market } from './markets'\nimport type { TaxRule, TaxRuleType } from './tax_rules'\n\n\ntype ManualTaxCalculatorType = 'manual_tax_calculators'\ntype ManualTaxCalculatorRel = ResourceRel & { type: ManualTaxCalculatorType }\ntype TaxRuleRel = ResourceRel & { type: TaxRuleType }\n\n\nexport type ManualTaxCalculatorSort = Pick<ManualTaxCalculator, 'id' | 'name'> & ResourceSort\n// export type ManualTaxCalculatorFilter = Pick<ManualTaxCalculator, 'id' | 'name'> & ResourceFilter\n\n\ninterface ManualTaxCalculator extends Resource {\n\t\n\treadonly type: ManualTaxCalculatorType\n\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\ttax_rules?: TaxRule[] | null\n\n}\n\n\ninterface ManualTaxCalculatorCreate extends ResourceCreate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname: string\n\n\ttax_rules?: TaxRuleRel[] | null\n\n}\n\n\ninterface ManualTaxCalculatorUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The tax calculator's internal name.\n\t * @example ```\"Personal tax calculator\"```\n\t */\n\tname?: string | null\n\n\ttax_rules?: TaxRuleRel[] | null\n\n}\n\n\nclass ManualTaxCalculators extends ApiResource<ManualTaxCalculator> {\n\n\tstatic readonly TYPE: ManualTaxCalculatorType = 'manual_tax_calculators' as const\n\n\tasync create(resource: ManualTaxCalculatorCreate, params?: QueryParamsRetrieve<ManualTaxCalculator>, options?: ResourcesConfig): Promise<ManualTaxCalculator> {\n\t\treturn this.resources.create<ManualTaxCalculatorCreate, ManualTaxCalculator>({ ...resource, type: ManualTaxCalculators.TYPE }, params, options)\n\t}\n\n\tasync update(resource: ManualTaxCalculatorUpdate, params?: QueryParamsRetrieve<ManualTaxCalculator>, options?: ResourcesConfig): Promise<ManualTaxCalculator> {\n\t\treturn this.resources.update<ManualTaxCalculatorUpdate, ManualTaxCalculator>({ ...resource, type: ManualTaxCalculators.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: ManualTaxCalculators.TYPE } : id, options)\n\t}\n\n\tasync markets(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `manual_tax_calculators/${_manualTaxCalculatorId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync attachments(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `manual_tax_calculators/${_manualTaxCalculatorId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `manual_tax_calculators/${_manualTaxCalculatorId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `manual_tax_calculators/${_manualTaxCalculatorId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync tax_rules(manualTaxCalculatorId: string | ManualTaxCalculator, params?: QueryParamsList<TaxRule>, options?: ResourcesConfig): Promise<ListResponse<TaxRule>> {\n\t\tconst _manualTaxCalculatorId = (manualTaxCalculatorId as ManualTaxCalculator).id || manualTaxCalculatorId as string\n\t\treturn this.resources.fetch<TaxRule>({ type: 'tax_rules' }, `manual_tax_calculators/${_manualTaxCalculatorId}/tax_rules`, params, options) as unknown as ListResponse<TaxRule>\n\t}\n\n\n\tisManualTaxCalculator(resource: any): resource is ManualTaxCalculator {\n\t\treturn resource.type && (resource.type === ManualTaxCalculators.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): ManualTaxCalculatorRel {\n\t\treturn super.relationshipOneToOne<ManualTaxCalculatorRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): ManualTaxCalculatorRel[] {\n\t\treturn super.relationshipOneToMany<ManualTaxCalculatorRel>(...ids)\n\t}\n\n\n\ttype(): ManualTaxCalculatorType {\n\t\treturn ManualTaxCalculators.TYPE\n\t}\n\n}\n\n\nconst instance = new ManualTaxCalculators()\nexport default instance\n\nexport type { ManualTaxCalculator, ManualTaxCalculatorCreate, ManualTaxCalculators, ManualTaxCalculatorType, ManualTaxCalculatorUpdate }\n"]}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/adjustments.ts
|
|
4
|
+
var Adjustments = class _Adjustments extends ApiResource {
|
|
5
|
+
static TYPE = "adjustments";
|
|
6
|
+
async create(resource, params, options) {
|
|
7
|
+
return this.resources.create({ ...resource, type: _Adjustments.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async update(resource, params, options) {
|
|
10
|
+
return this.resources.update({ ...resource, type: _Adjustments.TYPE }, params, options);
|
|
11
|
+
}
|
|
12
|
+
async delete(id, options) {
|
|
13
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Adjustments.TYPE } : id, options);
|
|
14
|
+
}
|
|
15
|
+
async event_stores(adjustmentId, params, options) {
|
|
16
|
+
const _adjustmentId = adjustmentId.id || adjustmentId;
|
|
17
|
+
return this.resources.fetch({ type: "event_stores" }, `adjustments/${_adjustmentId}/event_stores`, params, options);
|
|
18
|
+
}
|
|
19
|
+
isAdjustment(resource) {
|
|
20
|
+
return resource.type && resource.type === _Adjustments.TYPE;
|
|
21
|
+
}
|
|
22
|
+
relationship(id) {
|
|
23
|
+
return super.relationshipOneToOne(id);
|
|
24
|
+
}
|
|
25
|
+
relationshipToMany(...ids) {
|
|
26
|
+
return super.relationshipOneToMany(...ids);
|
|
27
|
+
}
|
|
28
|
+
type() {
|
|
29
|
+
return _Adjustments.TYPE;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var instance = new Adjustments();
|
|
33
|
+
var adjustments_default = instance;
|
|
34
|
+
|
|
35
|
+
export { adjustments_default };
|
|
36
|
+
//# sourceMappingURL=chunk-JQWRLR32.js.map
|
|
37
|
+
//# sourceMappingURL=chunk-JQWRLR32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/adjustments.ts"],"names":[],"mappings":";;;AA2GA,IAAM,WAAA,GAAN,MAAM,YAAA,SAAoB,WAAA,CAAwB;AAAA,EAEjD,OAAgB,IAAA,GAAuB,aAAA;AAAA,EAEvC,MAAM,MAAA,CAAO,QAAA,EAA4B,MAAA,EAA0C,OAAA,EAAgD;AAClI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpH;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA4B,MAAA,EAA0C,OAAA,EAAgD;AAClI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAqC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACpH;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,YAAA,CAAY,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EACnG;AAAA,EAEA,MAAM,YAAA,CAAa,YAAA,EAAmC,MAAA,EAAsC,OAAA,EAA8D;AACzJ,IAAA,MAAM,aAAA,GAAiB,aAA4B,EAAA,IAAM,YAAA;AACzD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,YAAA,EAAe,aAAa,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC/H;AAAA,EAGA,aAAa,QAAA,EAAuC;AACnD,IAAA,OAAO,QAAA,CAAS,IAAA,IAAS,QAAA,CAAS,IAAA,KAAS,YAAA,CAAY,IAAA;AAAA,EACxD;AAAA,EAGA,aAAa,EAAA,EAA+C;AAC3D,IAAA,OAAO,KAAA,CAAM,qBAAoC,EAAE,CAAA;AAAA,EACpD;AAAA,EAEA,sBAAsB,GAAA,EAAgC;AACrD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAqC,GAAG,GAAG,CAAA;AAAA,EACzD;AAAA,EAGA,IAAA,GAAuB;AACtB,IAAA,OAAO,YAAA,CAAY,IAAA;AAAA,EACpB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,WAAA,EAAY;AACjC,IAAO,mBAAA,GAAQ","file":"chunk-JQWRLR32.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'\n\nimport type { EventStore } from './event_stores'\n\n\ntype AdjustmentType = 'adjustments'\ntype AdjustmentRel = ResourceRel & { type: AdjustmentType }\n\n\nexport type AdjustmentSort = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceSort\n// export type AdjustmentFilter = Pick<Adjustment, 'id' | 'name' | 'currency_code' | 'amount_cents'> & ResourceFilter\n\n\ninterface Adjustment extends Resource {\n\t\n\treadonly type: AdjustmentType\n\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The adjustment amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The adjustment amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface AdjustmentCreate extends ResourceCreate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\ninterface AdjustmentUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The adjustment name.\n\t * @example ```\"Additional service\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * The adjustment amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents?: number | null\n\t/** \n\t * Indicates if negative adjustment amount is distributed for tax calculation.\n\t * @example ```true```\n\t */\n\tdistribute_discount?: boolean | null\n\t\n}\n\n\nclass Adjustments extends ApiResource<Adjustment> {\n\n\tstatic readonly TYPE: AdjustmentType = 'adjustments' as const\n\n\tasync create(resource: AdjustmentCreate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.create<AdjustmentCreate, Adjustment>({ ...resource, type: Adjustments.TYPE }, params, options)\n\t}\n\n\tasync update(resource: AdjustmentUpdate, params?: QueryParamsRetrieve<Adjustment>, options?: ResourcesConfig): Promise<Adjustment> {\n\t\treturn this.resources.update<AdjustmentUpdate, Adjustment>({ ...resource, type: Adjustments.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: Adjustments.TYPE } : id, options)\n\t}\n\n\tasync event_stores(adjustmentId: string | Adjustment, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _adjustmentId = (adjustmentId as Adjustment).id || adjustmentId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `adjustments/${_adjustmentId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisAdjustment(resource: any): resource is Adjustment {\n\t\treturn resource.type && (resource.type === Adjustments.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): AdjustmentRel {\n\t\treturn super.relationshipOneToOne<AdjustmentRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): AdjustmentRel[] {\n\t\treturn super.relationshipOneToMany<AdjustmentRel>(...ids)\n\t}\n\n\n\ttype(): AdjustmentType {\n\t\treturn Adjustments.TYPE\n\t}\n\n}\n\n\nconst instance = new Adjustments()\nexport default instance\n\nexport type { Adjustment, AdjustmentCreate, Adjustments, AdjustmentType, AdjustmentUpdate }\n"]}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/voids.ts
|
|
4
|
+
var Voids = class _Voids extends ApiResource {
|
|
5
|
+
static TYPE = "voids";
|
|
6
|
+
async update(resource, params, options) {
|
|
7
|
+
return this.resources.update({ ...resource, type: _Voids.TYPE }, params, options);
|
|
8
|
+
}
|
|
9
|
+
async order(voidId, params, options) {
|
|
10
|
+
const _voidId = voidId.id || voidId;
|
|
11
|
+
return this.resources.fetch({ type: "orders" }, `voids/${_voidId}/order`, params, options);
|
|
12
|
+
}
|
|
13
|
+
async attachments(voidId, params, options) {
|
|
14
|
+
const _voidId = voidId.id || voidId;
|
|
15
|
+
return this.resources.fetch({ type: "attachments" }, `voids/${_voidId}/attachments`, params, options);
|
|
16
|
+
}
|
|
17
|
+
async events(voidId, params, options) {
|
|
18
|
+
const _voidId = voidId.id || voidId;
|
|
19
|
+
return this.resources.fetch({ type: "events" }, `voids/${_voidId}/events`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async event_stores(voidId, params, options) {
|
|
22
|
+
const _voidId = voidId.id || voidId;
|
|
23
|
+
return this.resources.fetch({ type: "event_stores" }, `voids/${_voidId}/event_stores`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async reference_authorization(voidId, params, options) {
|
|
26
|
+
const _voidId = voidId.id || voidId;
|
|
27
|
+
return this.resources.fetch({ type: "authorizations" }, `voids/${_voidId}/reference_authorization`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async _forward(id, params, options) {
|
|
30
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Voids.TYPE, _forward: true }, params, options);
|
|
31
|
+
}
|
|
32
|
+
isVoid(resource) {
|
|
33
|
+
return resource.type && resource.type === _Voids.TYPE;
|
|
34
|
+
}
|
|
35
|
+
relationship(id) {
|
|
36
|
+
return super.relationshipOneToOne(id);
|
|
37
|
+
}
|
|
38
|
+
relationshipToMany(...ids) {
|
|
39
|
+
return super.relationshipOneToMany(...ids);
|
|
40
|
+
}
|
|
41
|
+
type() {
|
|
42
|
+
return _Voids.TYPE;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var instance = new Voids();
|
|
46
|
+
var voids_default = instance;
|
|
47
|
+
|
|
48
|
+
export { voids_default };
|
|
49
|
+
//# sourceMappingURL=chunk-JWSRNFYM.js.map
|
|
50
|
+
//# sourceMappingURL=chunk-JWSRNFYM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+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,qBAAA,CAA+B,GAAG,GAAG,CAAA;AAAA,EACnD;AAAA,EAGA,IAAA,GAAiB;AAChB,IAAA,OAAO,MAAA,CAAM,IAAA;AAAA,EACd;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,KAAA,EAAM;AAC3B,IAAO,aAAA,GAAQ","file":"chunk-JWSRNFYM.js","sourcesContent":["import type { QueryParamsList, QueryParamsRetrieve } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, ResourceUpdate, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { AdyenPayment } from './adyen_payments'\nimport type { Attachment } from './attachments'\nimport type { Authorization } from './authorizations'\nimport type { AxervePayment } from './axerve_payments'\nimport type { BraintreePayment } from './braintree_payments'\nimport type { CheckoutComPayment } from './checkout_com_payments'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { ExternalPayment } from './external_payments'\nimport type { KlarnaPayment } from './klarna_payments'\nimport type { Order } from './orders'\nimport type { PaypalPayment } from './paypal_payments'\nimport type { SatispayPayment } from './satispay_payments'\nimport type { StripePayment } from './stripe_payments'\nimport type { WireTransfer } from './wire_transfers'\n\n\ntype VoidType = 'voids'\ntype VoidRel = ResourceRel & { type: VoidType }\n\n\nexport type VoidSort = Pick<Void, 'id' | 'number' | 'amount_cents'> & ResourceSort\n// export type VoidFilter = Pick<Void, 'id' | 'number' | 'currency_code' | 'amount_cents' | 'succeeded' | 'message' | 'error_code' | 'error_detail' | 'token' | 'gateway_transaction_id'> & ResourceFilter\n\n\ninterface Void extends Resource {\n\t\n\treadonly type: VoidType\n\n\t/** \n\t * The transaction number, auto generated.\n\t * @example ```\"42/T/001\"```\n\t */\n\tnumber: string\n\t/** \n\t * Information about the payment method used in the transaction.\n\t * @example ```\"credit card\"```\n\t */\n\tpayment_method_type?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard, inherited from the associated order.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code: string\n\t/** \n\t * The transaction amount, in cents.\n\t * @example ```1500```\n\t */\n\tamount_cents: number\n\t/** \n\t * The transaction amount, float.\n\t * @example ```15```\n\t */\n\tamount_float: number\n\t/** \n\t * The transaction amount, formatted.\n\t * @example ```\"€15,00\"```\n\t */\n\tformatted_amount: string\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded: boolean\n\t/** \n\t * The message returned by the payment gateway.\n\t * @example ```\"Accepted\"```\n\t */\n\tmessage?: string | null\n\t/** \n\t * The error code, if any, returned by the payment gateway.\n\t * @example ```\"00001\"```\n\t */\n\terror_code?: string | null\n\t/** \n\t * The error detail, if any, returned by the payment gateway.\n\t * @example ```\"Already settled\"```\n\t */\n\terror_detail?: string | null\n\t/** \n\t * The token identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\ttoken?: string | null\n\t/** \n\t * The ID identifying the transaction, returned by the payment gateway.\n\t * @example ```\"xxxx-yyyy-zzzz\"```\n\t */\n\tgateway_transaction_id?: string | null\n\n\torder?: Order | null\n\tpayment_source?: AdyenPayment | AxervePayment | BraintreePayment | CheckoutComPayment | ExternalPayment | KlarnaPayment | PaypalPayment | SatispayPayment | StripePayment | WireTransfer | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\tevent_stores?: EventStore[] | null\n\treference_authorization?: Authorization | null\n\n}\n\n\ninterface VoidUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * Indicates if the transaction is successful.\n\t */\n\tsucceeded?: boolean | null\n\t/** \n\t * Send this attribute if you want to forward a stuck transaction to succeeded and update associated order states accordingly.\n\t * @example ```true```\n\t */\n\t_forward?: boolean | null\n\t\n}\n\n\nclass Voids extends ApiResource<Void> {\n\n\tstatic readonly TYPE: VoidType = 'voids' as const\n\n\tasync update(resource: VoidUpdate, params?: QueryParamsRetrieve<Void>, options?: ResourcesConfig): Promise<Void> {\n\t\treturn this.resources.update<VoidUpdate, Void>({ ...resource, type: Voids.TYPE }, params, options)\n\t}\n\n\tasync order(voidId: string | Void, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `voids/${_voidId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync attachments(voidId: string | Void, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `voids/${_voidId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(voidId: string | Void, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `voids/${_voidId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync event_stores(voidId: string | Void, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `voids/${_voidId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync reference_authorization(voidId: string | Void, params?: QueryParamsRetrieve<Authorization>, options?: ResourcesConfig): Promise<Authorization> {\n\t\tconst _voidId = (voidId as Void).id || voidId as string\n\t\treturn this.resources.fetch<Authorization>({ type: 'authorizations' }, `voids/${_voidId}/reference_authorization`, params, options) as unknown as Authorization\n\t}\n\n\tasync _forward(id: string | Void, params?: QueryParamsRetrieve<Void>, options?: ResourcesConfig): Promise<Void> {\n\t\treturn this.resources.update<VoidUpdate, Void>({ id: (typeof id === 'string')? id: id.id, type: Voids.TYPE, _forward: true }, params, options)\n\t}\n\n\n\tisVoid(resource: any): resource is Void {\n\t\treturn resource.type && (resource.type === Voids.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): VoidRel {\n\t\treturn super.relationshipOneToOne<VoidRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): VoidRel[] {\n\t\treturn super.relationshipOneToMany<VoidRel>(...ids)\n\t}\n\n\n\ttype(): VoidType {\n\t\treturn Voids.TYPE\n\t}\n\n}\n\n\nconst instance = new Voids()\nexport default instance\n\nexport type { Void, Voids, VoidType, VoidUpdate }\n"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ApiResource } from './chunk-ADBL6GHI.js';
|
|
2
|
+
|
|
3
|
+
// src/resources/geocoders.ts
|
|
4
|
+
var Geocoders = class _Geocoders extends ApiResource {
|
|
5
|
+
static TYPE = "geocoders";
|
|
6
|
+
async markets(geocoderId, params, options) {
|
|
7
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
8
|
+
return this.resources.fetch({ type: "markets" }, `geocoders/${_geocoderId}/markets`, params, options);
|
|
9
|
+
}
|
|
10
|
+
async addresses(geocoderId, params, options) {
|
|
11
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
12
|
+
return this.resources.fetch({ type: "addresses" }, `geocoders/${_geocoderId}/addresses`, params, options);
|
|
13
|
+
}
|
|
14
|
+
async attachments(geocoderId, params, options) {
|
|
15
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
16
|
+
return this.resources.fetch({ type: "attachments" }, `geocoders/${_geocoderId}/attachments`, params, options);
|
|
17
|
+
}
|
|
18
|
+
async event_stores(geocoderId, params, options) {
|
|
19
|
+
const _geocoderId = geocoderId.id || geocoderId;
|
|
20
|
+
return this.resources.fetch({ type: "event_stores" }, `geocoders/${_geocoderId}/event_stores`, params, options);
|
|
21
|
+
}
|
|
22
|
+
isGeocoder(resource) {
|
|
23
|
+
return resource.type && resource.type === _Geocoders.TYPE;
|
|
24
|
+
}
|
|
25
|
+
relationship(id) {
|
|
26
|
+
return super.relationshipOneToOne(id);
|
|
27
|
+
}
|
|
28
|
+
relationshipToMany(...ids) {
|
|
29
|
+
return super.relationshipOneToMany(...ids);
|
|
30
|
+
}
|
|
31
|
+
type() {
|
|
32
|
+
return _Geocoders.TYPE;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
var instance = new Geocoders();
|
|
36
|
+
var geocoders_default = instance;
|
|
37
|
+
|
|
38
|
+
export { geocoders_default };
|
|
39
|
+
//# sourceMappingURL=chunk-JWZ3H57F.js.map
|
|
40
|
+
//# sourceMappingURL=chunk-JWZ3H57F.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/geocoders.ts"],"names":[],"mappings":";;;AAmCA,IAAM,SAAA,GAAN,MAAM,UAAA,SAAkB,WAAA,CAAsB;AAAA,EAE7C,OAAgB,IAAA,GAAqB,WAAA;AAAA,EAErC,MAAM,OAAA,CAAQ,UAAA,EAA+B,MAAA,EAAkC,OAAA,EAA0D;AACxI,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAc,EAAE,IAAA,EAAM,SAAA,EAAU,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,QAAA,CAAA,EAAY,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC7G;AAAA,EAEA,MAAM,SAAA,CAAU,UAAA,EAA+B,MAAA,EAAmC,OAAA,EAA2D;AAC5I,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAe,EAAE,IAAA,EAAM,WAAA,EAAY,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,UAAA,CAAA,EAAc,MAAA,EAAQ,OAAO,CAAA;AAAA,EAClH;AAAA,EAEA,MAAM,WAAA,CAAY,UAAA,EAA+B,MAAA,EAAsC,OAAA,EAA8D;AACpJ,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,aAAA,EAAc,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,YAAA,CAAA,EAAgB,MAAA,EAAQ,OAAO,CAAA;AAAA,EACzH;AAAA,EAEA,MAAM,YAAA,CAAa,UAAA,EAA+B,MAAA,EAAsC,OAAA,EAA8D;AACrJ,IAAA,MAAM,WAAA,GAAe,WAAwB,EAAA,IAAM,UAAA;AACnD,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,KAAA,CAAkB,EAAE,IAAA,EAAM,cAAA,EAAe,EAAG,CAAA,UAAA,EAAa,WAAW,CAAA,aAAA,CAAA,EAAiB,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC3H;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-JWZ3H57F.js","sourcesContent":["import type { QueryParamsList } from '../query'\nimport type { ListResponse, Resource, ResourceId, ResourceRel, ResourceSort, /* ResourceFilter */ ResourcesConfig, } from '../resource'\nimport { ApiResource } from '../resource'\nimport type { Address } from './addresses'\nimport type { Attachment } from './attachments'\nimport type { EventStore } from './event_stores'\nimport type { Market } from './markets'\n\n\ntype GeocoderType = 'geocoders'\ntype GeocoderRel = ResourceRel & { type: GeocoderType }\n\n\nexport type GeocoderSort = Pick<Geocoder, 'id' | 'name'> & ResourceSort\n// export type GeocoderFilter = Pick<Geocoder, 'id' | 'name'> & ResourceFilter\n\n\ninterface Geocoder extends Resource {\n\t\n\treadonly type: GeocoderType\n\n\t/** \n\t * The geocoder's internal name.\n\t * @example ```\"Default geocoder\"```\n\t */\n\tname: string\n\n\tmarkets?: Market[] | null\n\taddresses?: Address[] | null\n\tattachments?: Attachment[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\nclass Geocoders extends ApiResource<Geocoder> {\n\n\tstatic readonly TYPE: GeocoderType = 'geocoders' as const\n\n\tasync markets(geocoderId: string | Geocoder, params?: QueryParamsList<Market>, options?: ResourcesConfig): Promise<ListResponse<Market>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `geocoders/${_geocoderId}/markets`, params, options) as unknown as ListResponse<Market>\n\t}\n\n\tasync addresses(geocoderId: string | Geocoder, params?: QueryParamsList<Address>, options?: ResourcesConfig): Promise<ListResponse<Address>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Address>({ type: 'addresses' }, `geocoders/${_geocoderId}/addresses`, params, options) as unknown as ListResponse<Address>\n\t}\n\n\tasync attachments(geocoderId: string | Geocoder, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `geocoders/${_geocoderId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync event_stores(geocoderId: string | Geocoder, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _geocoderId = (geocoderId as Geocoder).id || geocoderId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `geocoders/${_geocoderId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisGeocoder(resource: any): resource is Geocoder {\n\t\treturn resource.type && (resource.type === Geocoders.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): GeocoderRel {\n\t\treturn super.relationshipOneToOne<GeocoderRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): GeocoderRel[] {\n\t\treturn super.relationshipOneToMany<GeocoderRel>(...ids)\n\t}\n\n\n\ttype(): GeocoderType {\n\t\treturn Geocoders.TYPE\n\t}\n\n}\n\n\nconst instance = new Geocoders()\nexport default instance\n\nexport type { Geocoder, Geocoders, GeocoderType }\n"]}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/bundles.ts
|
|
6
|
+
var Bundles = class _Bundles extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
+
static TYPE = "bundles";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _Bundles.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _Bundles.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _Bundles.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async market(bundleId, params, options) {
|
|
18
|
+
const _bundleId = bundleId.id || bundleId;
|
|
19
|
+
return this.resources.fetch({ type: "markets" }, `bundles/${_bundleId}/market`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async sku_list(bundleId, params, options) {
|
|
22
|
+
const _bundleId = bundleId.id || bundleId;
|
|
23
|
+
return this.resources.fetch({ type: "sku_lists" }, `bundles/${_bundleId}/sku_list`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async skus(bundleId, params, options) {
|
|
26
|
+
const _bundleId = bundleId.id || bundleId;
|
|
27
|
+
return this.resources.fetch({ type: "skus" }, `bundles/${_bundleId}/skus`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async attachments(bundleId, params, options) {
|
|
30
|
+
const _bundleId = bundleId.id || bundleId;
|
|
31
|
+
return this.resources.fetch({ type: "attachments" }, `bundles/${_bundleId}/attachments`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async events(bundleId, params, options) {
|
|
34
|
+
const _bundleId = bundleId.id || bundleId;
|
|
35
|
+
return this.resources.fetch({ type: "events" }, `bundles/${_bundleId}/events`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async tags(bundleId, params, options) {
|
|
38
|
+
const _bundleId = bundleId.id || bundleId;
|
|
39
|
+
return this.resources.fetch({ type: "tags" }, `bundles/${_bundleId}/tags`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async event_stores(bundleId, params, options) {
|
|
42
|
+
const _bundleId = bundleId.id || bundleId;
|
|
43
|
+
return this.resources.fetch({ type: "event_stores" }, `bundles/${_bundleId}/event_stores`, params, options);
|
|
44
|
+
}
|
|
45
|
+
async _compute_price_amount(id, params, options) {
|
|
46
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Bundles.TYPE, _compute_price_amount: true }, params, options);
|
|
47
|
+
}
|
|
48
|
+
async _compute_compare_at_amount(id, params, options) {
|
|
49
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Bundles.TYPE, _compute_compare_at_amount: true }, params, options);
|
|
50
|
+
}
|
|
51
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
52
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Bundles.TYPE, _add_tags: triggerValue }, params, options);
|
|
53
|
+
}
|
|
54
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
55
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _Bundles.TYPE, _remove_tags: triggerValue }, params, options);
|
|
56
|
+
}
|
|
57
|
+
isBundle(resource) {
|
|
58
|
+
return resource.type && resource.type === _Bundles.TYPE;
|
|
59
|
+
}
|
|
60
|
+
relationship(id) {
|
|
61
|
+
return super.relationshipOneToOne(id);
|
|
62
|
+
}
|
|
63
|
+
relationshipToMany(...ids) {
|
|
64
|
+
return super.relationshipOneToMany(...ids);
|
|
65
|
+
}
|
|
66
|
+
type() {
|
|
67
|
+
return _Bundles.TYPE;
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
var instance = new Bundles();
|
|
71
|
+
var bundles_default = instance;
|
|
72
|
+
|
|
73
|
+
exports.bundles_default = bundles_default;
|
|
74
|
+
//# sourceMappingURL=chunk-JZ3NGNOU.cjs.map
|
|
75
|
+
//# sourceMappingURL=chunk-JZ3NGNOU.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/bundles.ts"],"names":["ApiResource"],"mappings":";;;;;AA+NA,IAAM,OAAA,GAAN,MAAM,QAAA,SAAgBA,6BAAA,CAAoB;AAAA,EAEzC,OAAgB,IAAA,GAAmB,SAAA;AAAA,EAEnC,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAwB,MAAA,EAAsC,OAAA,EAA4C;AACtH,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA6B,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,QAAA,CAAQ,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACxG;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,I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sBAAsB,GAAA,EAA4B;AACjD,IAAA,OAAO,KAAA,CAAM,qBAAA,CAAiC,GAAG,GAAG,CAAA;AAAA,EACrD;AAAA,EAGA,IAAA,GAAmB;AAClB,IAAA,OAAO,QAAA,CAAQ,IAAA;AAAA,EAChB;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,OAAA,EAAQ;AAC7B,IAAO,eAAA,GAAQ","file":"chunk-JZ3NGNOU.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 { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Sku } from './skus'\nimport type { Tag, TagType } from './tags'\n\n\ntype BundleType = 'bundles'\ntype BundleRel = ResourceRel & { type: BundleType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type BundleSort = Pick<Bundle, 'id' | 'code' | 'name' | 'currency_code' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceSort\n// export type BundleFilter = Pick<Bundle, 'id' | 'code' | 'name' | 'currency_code' | 'description' | 'image_url' | 'do_not_ship' | 'do_not_track' | 'price_amount_cents' | 'compare_at_amount_cents'> & ResourceFilter\n\n\ninterface Bundle extends Resource {\n\t\n\treadonly type: BundleType\n\n\t/** \n\t * The bundle code, that uniquely identifies the bundle within the market.\n\t * @example ```\"BUNDMM000000FFFFFFXLXX\"```\n\t */\n\tcode: string\n\t/** \n\t * The internal name of the bundle.\n\t * @example ```\"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the bundle.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the bundle.\n\t * @example ```\"https://img.yourdomain.com/bundles/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * Indicates if the bundle doesn't generate shipments (all sku_list's SKUs must be do_not_ship).\n\t */\n\tdo_not_ship?: boolean | null\n\t/** \n\t * Indicates if the bundle doesn't track the stock inventory (all sku_list's SKUs must be do_not_track).\n\t */\n\tdo_not_track?: boolean | null\n\t/** \n\t * The bundle price amount for the associated market, in cents.\n\t * @example ```10000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The bundle price amount for the associated market, float.\n\t * @example ```100```\n\t */\n\tprice_amount_float?: number | null\n\t/** \n\t * The bundle price amount for the associated market, formatted.\n\t * @example ```\"€100,00\"```\n\t */\n\tformatted_price_amount?: string | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * The compared price amount, float.\n\t * @example ```130```\n\t */\n\tcompare_at_amount_float?: number | null\n\t/** \n\t * The compared price amount, formatted.\n\t * @example ```\"€130,00\"```\n\t */\n\tformatted_compare_at_amount?: string | null\n\t/** \n\t * The total number of SKUs in the bundle.\n\t * @example ```2```\n\t */\n\tskus_count?: number | null\n\n\tmarket?: Market | null\n\tsku_list?: SkuList | null\n\tskus?: Sku[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface BundleCreate extends ResourceCreate {\n\t\n\t/** \n\t * The bundle code, that uniquely identifies the bundle within the market.\n\t * @example ```\"BUNDMM000000FFFFFFXLXX\"```\n\t */\n\tcode: string\n\t/** \n\t * The internal name of the bundle.\n\t * @example ```\"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the bundle.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the bundle.\n\t * @example ```\"https://img.yourdomain.com/bundles/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The bundle price amount for the associated market, in cents.\n\t * @example ```10000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market.\n\t * @example ```true```\n\t */\n\t_compute_price_amount?: boolean | null\n\t/** \n\t * Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market.\n\t * @example ```true```\n\t */\n\t_compute_compare_at_amount?: boolean | null\n\n\tmarket?: MarketRel | null\n\tsku_list: SkuListRel\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface BundleUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The bundle code, that uniquely identifies the bundle within the market.\n\t * @example ```\"BUNDMM000000FFFFFFXLXX\"```\n\t */\n\tcode?: string | null\n\t/** \n\t * The internal name of the bundle.\n\t * @example ```\"Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * An internal description of the bundle.\n\t * @example ```\"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.\"```\n\t */\n\tdescription?: string | null\n\t/** \n\t * The URL of an image that represents the bundle.\n\t * @example ```\"https://img.yourdomain.com/bundles/xYZkjABcde.png\"```\n\t */\n\timage_url?: string | null\n\t/** \n\t * The bundle price amount for the associated market, in cents.\n\t * @example ```10000```\n\t */\n\tprice_amount_cents?: number | null\n\t/** \n\t * The compared price amount, in cents. Useful to display a percentage discount.\n\t * @example ```13000```\n\t */\n\tcompare_at_amount_cents?: number | null\n\t/** \n\t * Send this attribute if you want to compute the price_amount_cents as the sum of the prices of the bundle SKUs for the market.\n\t * @example ```true```\n\t */\n\t_compute_price_amount?: boolean | null\n\t/** \n\t * Send this attribute if you want to compute the compare_at_amount_cents as the sum of the prices of the bundle SKUs for the market.\n\t * @example ```true```\n\t */\n\t_compute_compare_at_amount?: 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\ttags?: TagRel[] | null\n\n}\n\n\nclass Bundles extends ApiResource<Bundle> {\n\n\tstatic readonly TYPE: BundleType = 'bundles' as const\n\n\tasync create(resource: BundleCreate, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.create<BundleCreate, Bundle>({ ...resource, type: Bundles.TYPE }, params, options)\n\t}\n\n\tasync update(resource: BundleUpdate, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.update<BundleUpdate, Bundle>({ ...resource, type: Bundles.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: Bundles.TYPE } : id, options)\n\t}\n\n\tasync market(bundleId: string | Bundle, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `bundles/${_bundleId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync sku_list(bundleId: string | Bundle, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `bundles/${_bundleId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync skus(bundleId: string | Bundle, params?: QueryParamsList<Sku>, options?: ResourcesConfig): Promise<ListResponse<Sku>> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<Sku>({ type: 'skus' }, `bundles/${_bundleId}/skus`, params, options) as unknown as ListResponse<Sku>\n\t}\n\n\tasync attachments(bundleId: string | Bundle, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `bundles/${_bundleId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(bundleId: string | Bundle, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `bundles/${_bundleId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(bundleId: string | Bundle, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `bundles/${_bundleId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(bundleId: string | Bundle, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _bundleId = (bundleId as Bundle).id || bundleId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `bundles/${_bundleId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _compute_price_amount(id: string | Bundle, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.update<BundleUpdate, Bundle>({ id: (typeof id === 'string')? id: id.id, type: Bundles.TYPE, _compute_price_amount: true }, params, options)\n\t}\n\n\tasync _compute_compare_at_amount(id: string | Bundle, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.update<BundleUpdate, Bundle>({ id: (typeof id === 'string')? id: id.id, type: Bundles.TYPE, _compute_compare_at_amount: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | Bundle, triggerValue: string, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.update<BundleUpdate, Bundle>({ id: (typeof id === 'string')? id: id.id, type: Bundles.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | Bundle, triggerValue: string, params?: QueryParamsRetrieve<Bundle>, options?: ResourcesConfig): Promise<Bundle> {\n\t\treturn this.resources.update<BundleUpdate, Bundle>({ id: (typeof id === 'string')? id: id.id, type: Bundles.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisBundle(resource: any): resource is Bundle {\n\t\treturn resource.type && (resource.type === Bundles.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): BundleRel {\n\t\treturn super.relationshipOneToOne<BundleRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): BundleRel[] {\n\t\treturn super.relationshipOneToMany<BundleRel>(...ids)\n\t}\n\n\n\ttype(): BundleType {\n\t\treturn Bundles.TYPE\n\t}\n\n}\n\n\nconst instance = new Bundles()\nexport default instance\n\nexport type { Bundle, BundleCreate, Bundles, BundleType, BundleUpdate }\n"]}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/free_shipping_promotions.ts
|
|
6
|
+
var FreeShippingPromotions = class _FreeShippingPromotions extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
+
static TYPE = "free_shipping_promotions";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _FreeShippingPromotions.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _FreeShippingPromotions.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _FreeShippingPromotions.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async market(freeShippingPromotionId, params, options) {
|
|
18
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
19
|
+
return this.resources.fetch({ type: "markets" }, `free_shipping_promotions/${_freeShippingPromotionId}/market`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async order_amount_promotion_rule(freeShippingPromotionId, params, options) {
|
|
22
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
23
|
+
return this.resources.fetch({ type: "order_amount_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/order_amount_promotion_rule`, params, options);
|
|
24
|
+
}
|
|
25
|
+
async sku_list_promotion_rule(freeShippingPromotionId, params, options) {
|
|
26
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
27
|
+
return this.resources.fetch({ type: "sku_list_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list_promotion_rule`, params, options);
|
|
28
|
+
}
|
|
29
|
+
async coupon_codes_promotion_rule(freeShippingPromotionId, params, options) {
|
|
30
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
31
|
+
return this.resources.fetch({ type: "coupon_codes_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/coupon_codes_promotion_rule`, params, options);
|
|
32
|
+
}
|
|
33
|
+
async custom_promotion_rule(freeShippingPromotionId, params, options) {
|
|
34
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
35
|
+
return this.resources.fetch({ type: "custom_promotion_rules" }, `free_shipping_promotions/${_freeShippingPromotionId}/custom_promotion_rule`, params, options);
|
|
36
|
+
}
|
|
37
|
+
async sku_list(freeShippingPromotionId, params, options) {
|
|
38
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
39
|
+
return this.resources.fetch({ type: "sku_lists" }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options);
|
|
40
|
+
}
|
|
41
|
+
async coupons(freeShippingPromotionId, params, options) {
|
|
42
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
43
|
+
return this.resources.fetch({ type: "coupons" }, `free_shipping_promotions/${_freeShippingPromotionId}/coupons`, params, options);
|
|
44
|
+
}
|
|
45
|
+
async attachments(freeShippingPromotionId, params, options) {
|
|
46
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
47
|
+
return this.resources.fetch({ type: "attachments" }, `free_shipping_promotions/${_freeShippingPromotionId}/attachments`, params, options);
|
|
48
|
+
}
|
|
49
|
+
async events(freeShippingPromotionId, params, options) {
|
|
50
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
51
|
+
return this.resources.fetch({ type: "events" }, `free_shipping_promotions/${_freeShippingPromotionId}/events`, params, options);
|
|
52
|
+
}
|
|
53
|
+
async tags(freeShippingPromotionId, params, options) {
|
|
54
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
55
|
+
return this.resources.fetch({ type: "tags" }, `free_shipping_promotions/${_freeShippingPromotionId}/tags`, params, options);
|
|
56
|
+
}
|
|
57
|
+
async event_stores(freeShippingPromotionId, params, options) {
|
|
58
|
+
const _freeShippingPromotionId = freeShippingPromotionId.id || freeShippingPromotionId;
|
|
59
|
+
return this.resources.fetch({ type: "event_stores" }, `free_shipping_promotions/${_freeShippingPromotionId}/event_stores`, params, options);
|
|
60
|
+
}
|
|
61
|
+
async _disable(id, params, options) {
|
|
62
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _disable: true }, params, options);
|
|
63
|
+
}
|
|
64
|
+
async _enable(id, params, options) {
|
|
65
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _enable: true }, params, options);
|
|
66
|
+
}
|
|
67
|
+
async _add_tags(id, triggerValue, params, options) {
|
|
68
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _add_tags: triggerValue }, params, options);
|
|
69
|
+
}
|
|
70
|
+
async _remove_tags(id, triggerValue, params, options) {
|
|
71
|
+
return this.resources.update({ id: typeof id === "string" ? id : id.id, type: _FreeShippingPromotions.TYPE, _remove_tags: triggerValue }, params, options);
|
|
72
|
+
}
|
|
73
|
+
isFreeShippingPromotion(resource) {
|
|
74
|
+
return resource.type && resource.type === _FreeShippingPromotions.TYPE;
|
|
75
|
+
}
|
|
76
|
+
relationship(id) {
|
|
77
|
+
return super.relationshipOneToOne(id);
|
|
78
|
+
}
|
|
79
|
+
relationshipToMany(...ids) {
|
|
80
|
+
return super.relationshipOneToMany(...ids);
|
|
81
|
+
}
|
|
82
|
+
type() {
|
|
83
|
+
return _FreeShippingPromotions.TYPE;
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var instance = new FreeShippingPromotions();
|
|
87
|
+
var free_shipping_promotions_default = instance;
|
|
88
|
+
|
|
89
|
+
exports.free_shipping_promotions_default = free_shipping_promotions_default;
|
|
90
|
+
//# sourceMappingURL=chunk-K45H4QRJ.cjs.map
|
|
91
|
+
//# sourceMappingURL=chunk-K45H4QRJ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/free_shipping_promotions.ts"],"names":["ApiResource"],"mappings":";;;;;AAwPA,IAAM,sBAAA,GAAN,MAAM,uBAAA,SAA+BA,6BAAA,CAAmC;AAAA,EAEvE,OAAgB,IAAA,GAAkC,0BAAA;AAAA,EAElD,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAAuC,MAAA,EAAqD,OAAA,EAA2D;AACnK,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAA2D,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EACrJ;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB,OAAA,EAA0C;AAC/E,IAAA,MAAM,IAAA,CAAK,SAAA,CAAU,MAAA,CAAQ,OAAO,EAAA,KAAO,QAAA,GAAW,EAAE,EAAA,EAAI,IAAA,EAAM,uBAAA,CAAuB,IAAA,EAAK,GAAI,IAAI,OAAO,CAAA;AAAA,EAC9G;AAAA,EAEA,MAAM,MAAA,CAAO,uBAAA,EAAyD,MAAA,EAAsC,OAAA,EAA4C;AACvJ,IAAA,MAAM,wBAA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,OAAO,uBAAA,CAAuB,IAAA;AAAA,EAC/B;AAED,CAAA;AAGA,IAAM,QAAA,GAAW,IAAI,sBAAA,EAAuB;AAC5C,IAAO,gCAAA,GAAQ","file":"chunk-K45H4QRJ.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 { CouponCodesPromotionRule, CouponCodesPromotionRuleType } from './coupon_codes_promotion_rules'\nimport type { Coupon } from './coupons'\nimport type { CustomPromotionRule, CustomPromotionRuleType } from './custom_promotion_rules'\nimport type { EventStore } from './event_stores'\nimport type { Event } from './events'\nimport type { Market, MarketType } from './markets'\nimport type { OrderAmountPromotionRule, OrderAmountPromotionRuleType } from './order_amount_promotion_rules'\nimport type { PromotionRule } from './promotion_rules'\nimport type { SkuListPromotionRule, SkuListPromotionRuleType } from './sku_list_promotion_rules'\nimport type { SkuList, SkuListType } from './sku_lists'\nimport type { Tag, TagType } from './tags'\n\n\ntype FreeShippingPromotionType = 'free_shipping_promotions'\ntype FreeShippingPromotionRel = ResourceRel & { type: FreeShippingPromotionType }\ntype MarketRel = ResourceRel & { type: MarketType }\ntype OrderAmountPromotionRuleRel = ResourceRel & { type: OrderAmountPromotionRuleType }\ntype SkuListPromotionRuleRel = ResourceRel & { type: SkuListPromotionRuleType }\ntype CouponCodesPromotionRuleRel = ResourceRel & { type: CouponCodesPromotionRuleType }\ntype CustomPromotionRuleRel = ResourceRel & { type: CustomPromotionRuleType }\ntype SkuListRel = ResourceRel & { type: SkuListType }\ntype TagRel = ResourceRel & { type: TagType }\n\n\nexport type FreeShippingPromotionSort = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceSort\n// export type FreeShippingPromotionFilter = Pick<FreeShippingPromotion, 'id' | 'name' | 'currency_code' | 'exclusive' | 'priority' | 'starts_at' | 'expires_at' | 'total_usage_limit' | 'total_usage_count' | 'total_usage_reached' | 'disabled_at'> & ResourceFilter\n\n\ninterface FreeShippingPromotion extends Resource {\n\t\n\treadonly type: FreeShippingPromotionType\n\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | null\n\t/** \n\t * The number of times this promotion has been applied.\n\t * @example ```2```\n\t */\n\ttotal_usage_count?: number | null\n\t/** \n\t * Indicates if the promotion has been applied the total number of allowed times.\n\t */\n\ttotal_usage_reached?: boolean | null\n\t/** \n\t * Indicates if the promotion is active (enabled and not expired).\n\t * @example ```true```\n\t */\n\tactive?: boolean | null\n\t/** \n\t * The promotion status. One of 'disabled', 'expired', 'pending', 'active', or 'inactive'.\n\t * @example ```\"pending\"```\n\t */\n\tstatus?: 'disabled' | 'expired' | 'pending' | 'active' | 'inactive' | null\n\t/** \n\t * The weight of the promotion, computed by exclusivity, priority, type and start time. Determines the order of application, higher weight apply first.\n\t * @example ```112```\n\t */\n\tweight?: number | null\n\t/** \n\t * The total number of coupons created for this promotion.\n\t * @example ```2```\n\t */\n\tcoupons_count?: number | 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\n\tmarket?: Market | null\n\tpromotion_rules?: PromotionRule[] | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRule | null\n\tsku_list_promotion_rule?: SkuListPromotionRule | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRule | null\n\tcustom_promotion_rule?: CustomPromotionRule | null\n\tsku_list?: SkuList | null\n\tcoupons?: Coupon[] | null\n\tattachments?: Attachment[] | null\n\tevents?: Event[] | null\n\ttags?: Tag[] | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface FreeShippingPromotionCreate extends ResourceCreate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname: string\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at: string\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at: string\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | 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\n\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\ninterface FreeShippingPromotionUpdate extends ResourceUpdate {\n\t\n\t/** \n\t * The promotion's internal name.\n\t * @example ```\"Personal promotion\"```\n\t */\n\tname?: string | null\n\t/** \n\t * The international 3-letter currency code as defined by the ISO 4217 standard.\n\t * @example ```\"EUR\"```\n\t */\n\tcurrency_code?: string | null\n\t/** \n\t * Indicates if the promotion will be applied exclusively, based on its priority score.\n\t * @example ```true```\n\t */\n\texclusive?: boolean | null\n\t/** \n\t * The priority assigned to the promotion (lower means higher priority).\n\t * @example ```2```\n\t */\n\tpriority?: number | null\n\t/** \n\t * The activation date/time of this promotion.\n\t * @example ```\"2018-01-01T12:00:00.000Z\"```\n\t */\n\tstarts_at?: string | null\n\t/** \n\t * The expiration date/time of this promotion (must be after starts_at).\n\t * @example ```\"2018-01-02T12:00:00.000Z\"```\n\t */\n\texpires_at?: string | null\n\t/** \n\t * The total number of times this promotion can be applied. When 'null' it means promotion can be applied infinite times.\n\t * @example ```5```\n\t */\n\ttotal_usage_limit?: number | 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 * 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\tmarket?: MarketRel | null\n\torder_amount_promotion_rule?: OrderAmountPromotionRuleRel | null\n\tsku_list_promotion_rule?: SkuListPromotionRuleRel | null\n\tcoupon_codes_promotion_rule?: CouponCodesPromotionRuleRel | null\n\tcustom_promotion_rule?: CustomPromotionRuleRel | null\n\tsku_list?: SkuListRel | null\n\ttags?: TagRel[] | null\n\n}\n\n\nclass FreeShippingPromotions extends ApiResource<FreeShippingPromotion> {\n\n\tstatic readonly TYPE: FreeShippingPromotionType = 'free_shipping_promotions' as const\n\n\tasync create(resource: FreeShippingPromotionCreate, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.create<FreeShippingPromotionCreate, FreeShippingPromotion>({ ...resource, type: FreeShippingPromotions.TYPE }, params, options)\n\t}\n\n\tasync update(resource: FreeShippingPromotionUpdate, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ ...resource, type: FreeShippingPromotions.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: FreeShippingPromotions.TYPE } : id, options)\n\t}\n\n\tasync market(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<Market>, options?: ResourcesConfig): Promise<Market> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Market>({ type: 'markets' }, `free_shipping_promotions/${_freeShippingPromotionId}/market`, params, options) as unknown as Market\n\t}\n\n\tasync order_amount_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<OrderAmountPromotionRule>, options?: ResourcesConfig): Promise<OrderAmountPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<OrderAmountPromotionRule>({ type: 'order_amount_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/order_amount_promotion_rule`, params, options) as unknown as OrderAmountPromotionRule\n\t}\n\n\tasync sku_list_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<SkuListPromotionRule>, options?: ResourcesConfig): Promise<SkuListPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<SkuListPromotionRule>({ type: 'sku_list_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list_promotion_rule`, params, options) as unknown as SkuListPromotionRule\n\t}\n\n\tasync coupon_codes_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<CouponCodesPromotionRule>, options?: ResourcesConfig): Promise<CouponCodesPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<CouponCodesPromotionRule>({ type: 'coupon_codes_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/coupon_codes_promotion_rule`, params, options) as unknown as CouponCodesPromotionRule\n\t}\n\n\tasync custom_promotion_rule(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<CustomPromotionRule>, options?: ResourcesConfig): Promise<CustomPromotionRule> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<CustomPromotionRule>({ type: 'custom_promotion_rules' }, `free_shipping_promotions/${_freeShippingPromotionId}/custom_promotion_rule`, params, options) as unknown as CustomPromotionRule\n\t}\n\n\tasync sku_list(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsRetrieve<SkuList>, options?: ResourcesConfig): Promise<SkuList> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<SkuList>({ type: 'sku_lists' }, `free_shipping_promotions/${_freeShippingPromotionId}/sku_list`, params, options) as unknown as SkuList\n\t}\n\n\tasync coupons(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Coupon>, options?: ResourcesConfig): Promise<ListResponse<Coupon>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Coupon>({ type: 'coupons' }, `free_shipping_promotions/${_freeShippingPromotionId}/coupons`, params, options) as unknown as ListResponse<Coupon>\n\t}\n\n\tasync attachments(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Attachment>, options?: ResourcesConfig): Promise<ListResponse<Attachment>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Attachment>({ type: 'attachments' }, `free_shipping_promotions/${_freeShippingPromotionId}/attachments`, params, options) as unknown as ListResponse<Attachment>\n\t}\n\n\tasync events(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Event>, options?: ResourcesConfig): Promise<ListResponse<Event>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Event>({ type: 'events' }, `free_shipping_promotions/${_freeShippingPromotionId}/events`, params, options) as unknown as ListResponse<Event>\n\t}\n\n\tasync tags(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<Tag>, options?: ResourcesConfig): Promise<ListResponse<Tag>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<Tag>({ type: 'tags' }, `free_shipping_promotions/${_freeShippingPromotionId}/tags`, params, options) as unknown as ListResponse<Tag>\n\t}\n\n\tasync event_stores(freeShippingPromotionId: string | FreeShippingPromotion, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _freeShippingPromotionId = (freeShippingPromotionId as FreeShippingPromotion).id || freeShippingPromotionId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `free_shipping_promotions/${_freeShippingPromotionId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\tasync _disable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _disable: true }, params, options)\n\t}\n\n\tasync _enable(id: string | FreeShippingPromotion, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _enable: true }, params, options)\n\t}\n\n\tasync _add_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _add_tags: triggerValue }, params, options)\n\t}\n\n\tasync _remove_tags(id: string | FreeShippingPromotion, triggerValue: string, params?: QueryParamsRetrieve<FreeShippingPromotion>, options?: ResourcesConfig): Promise<FreeShippingPromotion> {\n\t\treturn this.resources.update<FreeShippingPromotionUpdate, FreeShippingPromotion>({ id: (typeof id === 'string')? id: id.id, type: FreeShippingPromotions.TYPE, _remove_tags: triggerValue }, params, options)\n\t}\n\n\n\tisFreeShippingPromotion(resource: any): resource is FreeShippingPromotion {\n\t\treturn resource.type && (resource.type === FreeShippingPromotions.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): FreeShippingPromotionRel {\n\t\treturn super.relationshipOneToOne<FreeShippingPromotionRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): FreeShippingPromotionRel[] {\n\t\treturn super.relationshipOneToMany<FreeShippingPromotionRel>(...ids)\n\t}\n\n\n\ttype(): FreeShippingPromotionType {\n\t\treturn FreeShippingPromotions.TYPE\n\t}\n\n}\n\n\nconst instance = new FreeShippingPromotions()\nexport default instance\n\nexport type { FreeShippingPromotion, FreeShippingPromotionCreate, FreeShippingPromotions, FreeShippingPromotionType, FreeShippingPromotionUpdate }\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkXYPIGF36_cjs = require('./chunk-XYPIGF36.cjs');
|
|
4
|
+
|
|
5
|
+
// src/resources/wire_transfers.ts
|
|
6
|
+
var WireTransfers = class _WireTransfers extends chunkXYPIGF36_cjs.ApiResource {
|
|
7
|
+
static TYPE = "wire_transfers";
|
|
8
|
+
async create(resource, params, options) {
|
|
9
|
+
return this.resources.create({ ...resource, type: _WireTransfers.TYPE }, params, options);
|
|
10
|
+
}
|
|
11
|
+
async update(resource, params, options) {
|
|
12
|
+
return this.resources.update({ ...resource, type: _WireTransfers.TYPE }, params, options);
|
|
13
|
+
}
|
|
14
|
+
async delete(id, options) {
|
|
15
|
+
await this.resources.delete(typeof id === "string" ? { id, type: _WireTransfers.TYPE } : id, options);
|
|
16
|
+
}
|
|
17
|
+
async order(wireTransferId, params, options) {
|
|
18
|
+
const _wireTransferId = wireTransferId.id || wireTransferId;
|
|
19
|
+
return this.resources.fetch({ type: "orders" }, `wire_transfers/${_wireTransferId}/order`, params, options);
|
|
20
|
+
}
|
|
21
|
+
async event_stores(wireTransferId, params, options) {
|
|
22
|
+
const _wireTransferId = wireTransferId.id || wireTransferId;
|
|
23
|
+
return this.resources.fetch({ type: "event_stores" }, `wire_transfers/${_wireTransferId}/event_stores`, params, options);
|
|
24
|
+
}
|
|
25
|
+
isWireTransfer(resource) {
|
|
26
|
+
return resource.type && resource.type === _WireTransfers.TYPE;
|
|
27
|
+
}
|
|
28
|
+
relationship(id) {
|
|
29
|
+
return super.relationshipOneToOne(id);
|
|
30
|
+
}
|
|
31
|
+
relationshipToMany(...ids) {
|
|
32
|
+
return super.relationshipOneToMany(...ids);
|
|
33
|
+
}
|
|
34
|
+
type() {
|
|
35
|
+
return _WireTransfers.TYPE;
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var instance = new WireTransfers();
|
|
39
|
+
var wire_transfers_default = instance;
|
|
40
|
+
|
|
41
|
+
exports.wire_transfers_default = wire_transfers_default;
|
|
42
|
+
//# sourceMappingURL=chunk-KAEKTLB6.cjs.map
|
|
43
|
+
//# sourceMappingURL=chunk-KAEKTLB6.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/resources/wire_transfers.ts"],"names":["ApiResource"],"mappings":";;;;;AA8CA,IAAM,aAAA,GAAN,MAAM,cAAA,SAAsBA,6BAAA,CAA0B;AAAA,EAErD,OAAgB,IAAA,GAAyB,gBAAA;AAAA,EAEzC,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,QAAA,EAA8B,MAAA,EAA4C,OAAA,EAAkD;AACxI,IAAA,OAAO,IAAA,CAAK,SAAA,CAAU,MAAA,CAAyC,EAAE,GAAG,QAAA,EAAU,IAAA,EAAM,cAAA,CAAc,IAAA,EAAK,EAAG,MAAA,EAAQ,OAAO,CAAA;AAAA,EAC1H;AAAA,EAEA,MAAM,MAAA,CAAO,EAAA,EAAyB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,QAAA,GAAW,IAAI,aAAA,EAAc;AACnC,IAAO,sBAAA,GAAQ","file":"chunk-KAEKTLB6.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 { EventStore } from './event_stores'\nimport type { Order, OrderType } from './orders'\n\n\ntype WireTransferType = 'wire_transfers'\ntype WireTransferRel = ResourceRel & { type: WireTransferType }\ntype OrderRel = ResourceRel & { type: OrderType }\n\n\nexport type WireTransferSort = Pick<WireTransfer, 'id'> & ResourceSort\n// export type WireTransferFilter = Pick<WireTransfer, 'id'> & ResourceFilter\n\n\ninterface WireTransfer extends Resource {\n\t\n\treadonly type: WireTransferType\n\n\t/** \n\t * Information about the payment instrument used in the transaction.\n\t * @example ```{\"issuer\":\"cl bank\",\"card_type\":\"visa\"}```\n\t */\n\tpayment_instrument?: Record<string, any> | null\n\n\torder?: Order | null\n\tevent_stores?: EventStore[] | null\n\n}\n\n\ninterface WireTransferCreate extends ResourceCreate {\n\t\n\torder: OrderRel\n\n}\n\n\ninterface WireTransferUpdate extends ResourceUpdate {\n\t\n\torder?: OrderRel | null\n\n}\n\n\nclass WireTransfers extends ApiResource<WireTransfer> {\n\n\tstatic readonly TYPE: WireTransferType = 'wire_transfers' as const\n\n\tasync create(resource: WireTransferCreate, params?: QueryParamsRetrieve<WireTransfer>, options?: ResourcesConfig): Promise<WireTransfer> {\n\t\treturn this.resources.create<WireTransferCreate, WireTransfer>({ ...resource, type: WireTransfers.TYPE }, params, options)\n\t}\n\n\tasync update(resource: WireTransferUpdate, params?: QueryParamsRetrieve<WireTransfer>, options?: ResourcesConfig): Promise<WireTransfer> {\n\t\treturn this.resources.update<WireTransferUpdate, WireTransfer>({ ...resource, type: WireTransfers.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: WireTransfers.TYPE } : id, options)\n\t}\n\n\tasync order(wireTransferId: string | WireTransfer, params?: QueryParamsRetrieve<Order>, options?: ResourcesConfig): Promise<Order> {\n\t\tconst _wireTransferId = (wireTransferId as WireTransfer).id || wireTransferId as string\n\t\treturn this.resources.fetch<Order>({ type: 'orders' }, `wire_transfers/${_wireTransferId}/order`, params, options) as unknown as Order\n\t}\n\n\tasync event_stores(wireTransferId: string | WireTransfer, params?: QueryParamsList<EventStore>, options?: ResourcesConfig): Promise<ListResponse<EventStore>> {\n\t\tconst _wireTransferId = (wireTransferId as WireTransfer).id || wireTransferId as string\n\t\treturn this.resources.fetch<EventStore>({ type: 'event_stores' }, `wire_transfers/${_wireTransferId}/event_stores`, params, options) as unknown as ListResponse<EventStore>\n\t}\n\n\n\tisWireTransfer(resource: any): resource is WireTransfer {\n\t\treturn resource.type && (resource.type === WireTransfers.TYPE)\n\t}\n\n\n\trelationship(id: string | ResourceId | null): WireTransferRel {\n\t\treturn super.relationshipOneToOne<WireTransferRel>(id)\n\t}\n\n\trelationshipToMany(...ids: string[]): WireTransferRel[] {\n\t\treturn super.relationshipOneToMany<WireTransferRel>(...ids)\n\t}\n\n\n\ttype(): WireTransferType {\n\t\treturn WireTransfers.TYPE\n\t}\n\n}\n\n\nconst instance = new WireTransfers()\nexport default instance\n\nexport type { WireTransfer, WireTransferCreate, WireTransfers, WireTransferType, WireTransferUpdate }\n"]}
|